@camunda/ccma-saas-frontend 0.22.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -273,7 +273,7 @@ export interface C4CreateClusterProps {
273
273
  title: string;
274
274
  channels: C4CreateClusterChannelWithGenerations[];
275
275
  olderGenerationsLabel?: string;
276
- /** Shown under the channel switcher for each empty channel. */
276
+ /** Tooltip of the empty Alpha channel in the channel switcher. */
277
277
  emptyChannelNote?: string;
278
278
  olderGenerationsHelperText?: string;
279
279
  orgUnlockedGenerationsHelperText?: string;
@@ -52,7 +52,7 @@ function renderInlineLink(value, opts) {
52
52
  const prefix = match[1] ?? '';
53
53
  const label = match[2] ?? opts.labelFallback;
54
54
  const suffix = match[3] ?? '';
55
- return (_jsxs(_Fragment, { children: [prefix, _jsx(Link, { href: opts.href, onClick: (event) => {
55
+ return (_jsxs(_Fragment, { children: [prefix, _jsx(Link, { inline: true, href: opts.href, onClick: (event) => {
56
56
  if (!opts.onNavigate) {
57
57
  return;
58
58
  }
@@ -5,6 +5,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { ConsoleValueMetricsService, HdpService, } from '@camunda/ccma-api';
8
+ import { USAGE_SALES_PLAN_TYPES, } from '@camunda/ccma-shared-types';
8
9
  import { observer } from 'mobx-react-lite';
9
10
  import { useCallback, useEffect, useMemo, useState } from 'react';
10
11
  import { getClusterLoadConfig } from '../../components/c4-cluster-overview/c4-cluster-overview.js';
@@ -422,7 +423,7 @@ export const C4DashboardApp = observer((props) => {
422
423
  // that has usage. Shown while orgInfo is not loaded, like canViewUsers.
423
424
  const canViewUsage = (orgInfo?.permissions?.org?.usage?.read ?? true) &&
424
425
  (salesPlanType === undefined ||
425
- ['trial', 'in-negotiation', 'enterprise', 'internal'].includes(salesPlanType));
426
+ USAGE_SALES_PLAN_TYPES.includes(salesPlanType));
426
427
  // Mirrors the "trial expired" gating used elsewhere in Console (e.g. the
427
428
  // Clusters nav item / cluster list) so the dashboard's Create Cluster CTA
428
429
  // doesn't let expired trials submit a request that will fail server-side.
@@ -7,7 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
7
7
  import { C4GroupsList, C4IdentityContextProvider } from '@camunda/c4-identity';
8
8
  import { useC3Profile } from '@camunda/camunda-composite-components';
9
9
  import { AuditLoggerService, ConsoleApiClientsService, ConsoleClusterParametersService, ConsoleValueMetricsService, EarlyAccessFeaturesService, HdpService, HttpError, OrganizationMembersService, OrgsService, UsageAlertsService, } from '@camunda/ccma-api';
10
- import { addMonthsClamped, checkVersion, diffInWholeMonths, getCurrentEnterpriseTerm, getDisplayedSalesPlan, getRevisitedSalesPlanName, IDENTITY_MANAGEMENT_MIN_VERSION, NEW_CLUSTER_ROLES_MIN_VERSION, OrganizationRole, peakWithinTerm, SseEntity, toUtcDayStartMs, VersionCheckOperator, } from '@camunda/ccma-shared-types';
10
+ import { addMonthsClamped, checkVersion, diffInWholeMonths, getCurrentEnterpriseTerm, getDisplayedSalesPlan, getRevisitedSalesPlanName, IDENTITY_MANAGEMENT_MIN_VERSION, NEW_CLUSTER_ROLES_MIN_VERSION, OrganizationRole, peakWithinTerm, SseEntity, toUtcDayStartMs, USAGE_SALES_PLAN_TYPES, VersionCheckOperator, } from '@camunda/ccma-shared-types';
11
11
  import { observer } from 'mobx-react-lite';
12
12
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
13
13
  import { C4AiUsage } from '../../components/c4-ai-usage/c4-ai-usage.js';
@@ -2883,7 +2883,7 @@ export const C4ManagementApp = observer(({ orgId, embedded = false, environments
2883
2883
  ]);
2884
2884
  const isEnterprise = orgHasSalesPlanType(org, 'enterprise');
2885
2885
  const isTrial = orgHasSalesPlanType(org, 'trial');
2886
- const isUsageSalesPlan = orgHasSalesPlanType(org, 'trial', 'in-negotiation', 'enterprise', 'internal');
2886
+ const isUsageSalesPlan = orgHasSalesPlanType(org, ...USAGE_SALES_PLAN_TYPES);
2887
2887
  const billingVisible = canReadBilling && isEnterprise;
2888
2888
  const usageVisible = canReadUsage && isUsageSalesPlan;
2889
2889
  const liteLlmEnabled = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/ccma-saas-frontend",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Camunda Composite Components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
@@ -47,29 +47,29 @@
47
47
  "@playwright/test": "1.64.1",
48
48
  "@camunda/c4-identity": "0.0.45",
49
49
  "@camunda/camunda-composite-components": "0.25.5",
50
- "@camunda/design-system": "0.74.0",
51
- "@carbon/react": "1.118.0",
50
+ "@camunda/design-system": "0.75.0",
51
+ "@carbon/react": "1.119.0",
52
52
  "recharts": "3.10.1",
53
- "@chromatic-com/storybook": "5.5.1",
53
+ "@chromatic-com/storybook": "5.6.0",
54
54
  "@mdx-js/react": "3.1.1",
55
- "@storybook/addon-docs": "10.6.2",
56
- "@storybook/addon-links": "10.6.2",
57
- "@storybook/react": "10.6.2",
58
- "@storybook/react-vite": "10.6.2",
55
+ "@storybook/addon-docs": "10.6.3",
56
+ "@storybook/addon-links": "10.6.3",
57
+ "@storybook/react": "10.6.3",
58
+ "@storybook/react-vite": "10.6.3",
59
59
  "@testing-library/jest-dom": "7.0.1",
60
60
  "@testing-library/react": "16.3.3",
61
61
  "@testing-library/user-event": "14.6.8",
62
62
  "eslint-import-resolver-typescript": "4.4.5",
63
63
  "eslint-plugin-react": "7.37.5",
64
64
  "eslint-plugin-react-hooks": "7.1.1",
65
- "eslint-plugin-storybook": "10.6.2",
65
+ "eslint-plugin-storybook": "10.6.3",
66
66
  "jsdom": "30.1.3",
67
- "lucide-react": "1.59.0",
67
+ "lucide-react": "1.61.0",
68
68
  "react": "19.3.1",
69
69
  "react-dom": "19.3.1",
70
70
  "react-is": "19.3.1",
71
71
  "rimraf": "6.1.3",
72
- "storybook": "10.6.2",
72
+ "storybook": "10.6.3",
73
73
  "styled-components": "6.6.0"
74
74
  },
75
75
  "peerDependencies": {
@@ -85,8 +85,8 @@
85
85
  "react-markdown": "^8.0.7 || ^10.0.0"
86
86
  },
87
87
  "dependencies": {
88
- "@camunda/ccma-api": "6.1.0",
89
- "@camunda/ccma-shared-types": "10.8.0",
88
+ "@camunda/ccma-api": "6.1.1",
89
+ "@camunda/ccma-shared-types": "10.9.0",
90
90
  "@pactsafe/pactsafe-react-sdk": "2.15.0",
91
91
  "cron-parser": "5.10.2",
92
92
  "mobx": "6.16.1",