@camunda/ccma-saas-frontend 0.22.1 → 0.22.3
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.
|
@@ -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
|
-
|
|
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,
|
|
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.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -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.
|
|
89
|
-
"@camunda/ccma-shared-types": "10.
|
|
88
|
+
"@camunda/ccma-api": "6.1.2",
|
|
89
|
+
"@camunda/ccma-shared-types": "10.10.0",
|
|
90
90
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
91
91
|
"cron-parser": "5.10.2",
|
|
92
92
|
"mobx": "6.16.1",
|