@camunda/ccma-saas-frontend 0.12.0 → 0.13.0
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.
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +11 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +2 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +2 -4
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +0 -4
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +2 -2
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +5 -0
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.d.ts +10 -0
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +96 -0
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.types.d.ts +22 -0
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.types.js +6 -0
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +4 -0
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +14 -1
- package/lib/esm/i18n/en/modals/clusterclients.json +16 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +1 -6
- package/lib/esm/i18n/en/pages/createcluster.json +1 -1
- package/lib/esm/i18n/en/pages/orgmanagement.json +3 -0
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.js +2 -2
- package/lib/esm/runtime/org-cluster-defaults.d.ts +14 -0
- package/lib/esm/runtime/org-cluster-defaults.js +19 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +78 -11
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +56 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +11 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +2 -70
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +2 -2
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +6 -0
- package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +98 -3
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +6 -0
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.js +6 -4
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -0
- package/lib/esm/widgets/management/management-tabs.d.ts +1 -1
- package/lib/esm/widgets/management/management-tabs.js +5 -0
- package/lib/esm/widgets/management/tabs/c4-management-cluster-defaults-tab.d.ts +5 -0
- package/lib/esm/widgets/management/tabs/c4-management-cluster-defaults-tab.js +5 -0
- package/package.json +3 -3
- package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +0 -14
- package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +0 -12
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { C4ManagementPageProps } from './c4-management-page.types.js';
|
|
3
|
-
export declare const C4ManagementPage: ({ loading, notFound, tabs, }: C4ManagementPageProps) => JSX.Element;
|
|
3
|
+
export declare const C4ManagementPage: ({ loading, notFound, embedded, tabs, }: C4ManagementPageProps) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { C4PageTemplate } from '../../components/c4-page-template/c4-page-templa
|
|
|
3
3
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
4
4
|
import { TabsSkeleton } from '../../ui/index.js';
|
|
5
5
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
6
|
-
export const C4ManagementPage = ({ loading, notFound, tabs, }) => {
|
|
6
|
+
export const C4ManagementPage = ({ loading, notFound, embedded = false, tabs, }) => {
|
|
7
7
|
const runtime = useC4ConsoleRuntime();
|
|
8
8
|
const t = runtime.i18n?.t;
|
|
9
9
|
if (notFound) {
|
|
@@ -12,9 +12,11 @@ export const C4ManagementPage = ({ loading, notFound, tabs, }) => {
|
|
|
12
12
|
if (loading) {
|
|
13
13
|
return _jsx(TabsSkeleton, {}, 'tabs-skeleton');
|
|
14
14
|
}
|
|
15
|
-
return (_jsx(C4PageTemplate, { header:
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
return (_jsx(C4PageTemplate, { header: embedded
|
|
16
|
+
? undefined
|
|
17
|
+
: {
|
|
18
|
+
title: safeTranslate(t, 'c4console:orgManagement.title', 'Organization management'),
|
|
19
|
+
}, padding: embedded ? 'none' : 'default', tabs: {
|
|
18
20
|
list: tabs.list,
|
|
19
21
|
desiredTabId: tabs.desiredTabId,
|
|
20
22
|
onChange: tabs.onChange,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ManagementTabId = 'overview' | 'users' | 'groups' | 'activity' | 'usage' | 'aiUsage' | 'billing' | 'pricing' | 'api' | 'settings';
|
|
1
|
+
export type ManagementTabId = 'overview' | 'users' | 'groups' | 'activity' | 'usage' | 'aiUsage' | 'billing' | 'pricing' | 'api' | 'clusterDefaults' | 'settings';
|
|
2
2
|
export interface ManagementTabDescriptor {
|
|
3
3
|
id: ManagementTabId;
|
|
4
4
|
/** i18n key (namespaced, e.g. `orgmanagement:tabs.overview.title`). */
|
|
@@ -60,6 +60,11 @@ export const MANAGEMENT_TABS = [
|
|
|
60
60
|
titleKey: 'orgmanagement:tabs.api.title',
|
|
61
61
|
titleFallback: 'Administration API',
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
id: 'clusterDefaults',
|
|
65
|
+
titleKey: 'orgmanagement:tabs.clusterDefaults.title',
|
|
66
|
+
titleFallback: 'Cluster defaults',
|
|
67
|
+
},
|
|
63
68
|
{
|
|
64
69
|
id: 'settings',
|
|
65
70
|
titleKey: 'orgmanagement:tabs.settings.title',
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { C4OrgClusterDefaultsProps } from '../../../components/c4-org-cluster-defaults/c4-org-cluster-defaults.types.js';
|
|
3
|
+
export interface C4ManagementClusterDefaultsTabProps extends C4OrgClusterDefaultsProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const C4ManagementClusterDefaultsTab: (props: C4ManagementClusterDefaultsTabProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C4OrgClusterDefaults } from '../../../components/c4-org-cluster-defaults/c4-org-cluster-defaults.js';
|
|
3
|
+
export const C4ManagementClusterDefaultsTab = (props) => {
|
|
4
|
+
return _jsx(C4OrgClusterDefaults, { ...props });
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@camunda/ccma-api": "
|
|
100
|
-
"@camunda/ccma-shared-types": "
|
|
99
|
+
"@camunda/ccma-api": "2.0.0",
|
|
100
|
+
"@camunda/ccma-shared-types": "2.0.0",
|
|
101
101
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
102
102
|
"cron-parser": "5.10.0",
|
|
103
103
|
"mobx": "6.16.1",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { JSX, ReactNode } from 'react';
|
|
2
|
-
export interface OptionalTelemetryToggleProps {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
action: {
|
|
5
|
-
label: string;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
};
|
|
9
|
-
description: ReactNode;
|
|
10
|
-
permissions: {
|
|
11
|
-
mayChange: boolean;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const OptionalTelemetryToggle: (props: OptionalTelemetryToggleProps) => JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
|
|
3
|
-
export const OptionalTelemetryToggle = (props) => {
|
|
4
|
-
const component = (_jsx(C4Toggle, { id: 'optional-telemetry-toggle', supported: true, enabled: props.enabled, title: props.action.label, notices: [
|
|
5
|
-
{
|
|
6
|
-
notice: props.description,
|
|
7
|
-
},
|
|
8
|
-
], onClick: props.action.onClick, permissions: {
|
|
9
|
-
mayToggle: props.permissions.mayChange && !props.action.disabled,
|
|
10
|
-
} }));
|
|
11
|
-
return component;
|
|
12
|
-
};
|