@camunda/c4-identity

中文文档
0.0.45发布于 2026/07/22Apache-2.0TypeScriptCommonJS近 30 天下载 3.4万

C4 library for Camunda C8 Identity

原始使用文档
文档目录4 节
  1. Design system compat mode
  2. Customization
  3. Dev
  4. Release

C4 Identity library

Design system compat mode

Components in this library render Carbon (@carbon/react) by default. Consuming apps can opt into Camunda's new design system by passing designSystem="ds" to C4IdentityContextProvider. Consumers must bring their own @camunda/design-system/styles.css import when using "ds" mode, the same way they already bring their own Carbon theme/CSS setup for the default mode — this library does not ship CSS to consumers.

Customization

  • Just update the name in package.json.
  • If you want to automatically publish the storybook to Github Pages, enable the Github Action publish-storybook.yml.disabled.
  • If you want to publish package to Github Package registry, enable the Github Action publish-github-package.yaml.disabled.

Dev

# install
yarn

# start storybook
yarn storybook

# build components
yarn build

Release

To release a new version of this library, follow these steps:

  1. Update the version in package.json on main
  2. Create a new release via GitHub UI, tag name being the exact version number, no prepended "v"

版本与发布记录

@camunda/c4-identity 共发布 8 个版本,首次发布于 2025/11/25;过去 12 个月发布了 8 个版本。

版本发布日期距今
0.0.45latest2026/07/223 个月前
0.0.442026/07/084 个月前
0.0.422026/07/074 个月前
0.0.412026/05/215 个月前
0.0.392026/05/056 个月前
0.0.382026/03/307 个月前

关于 @camunda/c4-identity 的常见问题

@camunda/c4-identity 是什么?

C4 library for Camunda C8 Identity

如何安装 @camunda/c4-identity?

在项目目录运行 npm install @camunda/c4-identity,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(19.x)、i18next(*)、react-dom(19.x)、lucide-react(>=1.17.0 <2.0.0)、@carbon/react(>=1.107.0 <2.0.0)、react-i18next(*)、styled-components(^5.3.10 || ^6.0.0)、@camunda/design-system(>=0.17.0 <1.0.0)、@camunda/camunda-composite-components(^0.23.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@camunda/c4-identity 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@camunda/c4-identity 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@camunda/c4-identity 可以商用吗?

@camunda/c4-identity 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@camunda/c4-identity 的下载量有多少?

根据 npm 官方下载统计,@camunda/c4-identity 在 2026/10/09 – 2026/11/07 这 30 天内被下载 33,716 次,日均约 1,124 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@camunda/c4-identity 还在维护吗?

最新版本 0.0.45 发布于 2026/07/22(3 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2025/11/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。