@camunda/ccma-saas-frontend

中文文档
0.28.6发布于 2026/11/07Apache-2.0TypeScriptES Module近 30 天下载 2.3万

Camunda Composite Components

原始使用文档
文档目录6 节
  1. Dev
  2. Tests
  3. Release
  4. Usage
  5. @camunda/ccma-saas-frontend — components and widgets
  6. @camunda/ccma-saas-frontend/runtime — the headless data lay…

Camunda Console Composite Components

Storybook: Link

Dev

# install
pnpm install

# start storybook
pnpm build-storybook
pnpm start

# build components
pnpm build

Turbo builds the workspace dependencies before C4. Outside Turbo, pnpm build also builds the API and shared-types packages.

Tests

Build the workspace dependencies before the first test run:

pnpm --filter @camunda/ccma-api... build
pnpm --filter @camunda/camunda-composite-components build
pnpm --filter @camunda/ccma-saas-frontend test

The full suite uses up to two isolated fork workers, capped at half the available CPU capacity. A two-core runner uses one worker. The node project runs an explicit list of DOM-free tests without browser setup. All other tests use the dom project with jsdom and the existing browser setup.

For worker benchmarks, override the limit with --maxWorkers=1 or 2:

pnpm --filter @camunda/ccma-saas-frontend test --maxWorkers=2

Release

Bump version in package.json and create a new release. This will start a github action to publish the package to the github package repository.

Pushing to main will update the storybook available under cloudflare page.

Usage

The package has two entry points.

@camunda/ccma-saas-frontend — components and widgets

import { C4WorkflowInformation } from '@camunda/ccma-saas-frontend'

// ...

return (
  <C4WorkflowInformation
    isLoading={true}
    // ...
  />
)

@camunda/ccma-saas-frontend/runtime — the headless data layer

Providers, hooks, SSE and Camunda entity logic, with no presentational dependencies — 14 modules instead of 287, and no Carbon, lucide-react, recharts or react-markdown in the graph. This is the entry point for external consumers that only need the data (e.g. feeding the Camunda Design System navigation components).

import { useC4ClusterNavEntries } from '@camunda/ccma-saas-frontend/runtime'

Every runtime name is exported from both entry points, so importing from the package root still works exactly as before. See docs/runtime.md for the integration guide and for what the subpath does and does not shrink.

Deep imports (@camunda/ccma-saas-frontend/lib/esm/…) still resolve, but are a deprecated compatibility shim scheduled for removal in the next major — they hard-code unversioned internal paths. Use one of the two entry points above.

版本与发布记录

@camunda/ccma-saas-frontend 共发布 129 个版本,首次发布于 2026/03/13;过去 12 个月发布了 129 个版本。

版本发布日期距今
0.28.6latest2026/11/072 天前
0.28.52026/11/072 天前
0.28.42026/11/072 天前
0.28.32026/11/062 天前
0.28.22026/11/063 天前
0.28.12026/11/063 天前

关于 @camunda/ccma-saas-frontend 的常见问题

@camunda/ccma-saas-frontend 是什么?

Camunda Composite Components

如何安装 @camunda/ccma-saas-frontend?

在项目目录运行 npm install @camunda/ccma-saas-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(18.x || 19.x)、recharts(3.x)、react-dom(18.x || 19.x)、lucide-react(>=1.0.0 <2)、@carbon/react(1.x)、react-markdown(^8.0.7 || ^10.0.0)、@camunda/c4-identity(0.x)、@camunda/c4-connectors(1.x)、@camunda/design-system(0.x)、@camunda/camunda-composite-components(0.x)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@camunda/ccma-saas-frontend 支持 TypeScript 吗?

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

@camunda/ccma-saas-frontend 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@camunda/ccma-saas-frontend 可以商用吗?

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

@camunda/ccma-saas-frontend 的下载量有多少?

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

@camunda/ccma-saas-frontend 还在维护吗?

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