@camunda/ccma-saas-frontend 0.15.0 → 0.15.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C3ClusterTag, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { Layer } from '@carbon/react';
|
|
9
|
-
import { Add,
|
|
9
|
+
import { Add, Information, Launch, Pause, Play, UpdateNow, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
|
|
10
10
|
import { useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
12
12
|
import { Button, CodeSnippet, Link, TextArea, Tooltip } from '../../ui/index.js';
|
|
@@ -15,48 +15,19 @@ import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
|
15
15
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
16
16
|
import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
17
17
|
import { ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
// affordance. The `height: 0` `Layer` wrapper is a Carbon-only trick to keep
|
|
21
|
-
// the snippet from growing the fixed-height row — it doesn't apply in DS
|
|
22
|
-
// mode, which renders the snippet inline and lets the cell's own vertical
|
|
23
|
-
// centering handle alignment.
|
|
18
|
+
// The `height: 0` `Layer` wrapper is a Carbon-only trick to keep the snippet
|
|
19
|
+
// from growing the fixed-height row. It does not apply in DS mode.
|
|
24
20
|
const ClusterDetailsIdValue = (props) => {
|
|
25
21
|
const designSystem = useC4DesignSystem();
|
|
26
|
-
const [copied, setCopied] = useState(false);
|
|
27
|
-
const resetTimerRef = useRef(null);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
return () => {
|
|
30
|
-
if (resetTimerRef.current !== null) {
|
|
31
|
-
window.clearTimeout(resetTimerRef.current);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
22
|
if (designSystem !== 'ds') {
|
|
36
23
|
return (_jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.value }) }));
|
|
37
24
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
setCopied(true);
|
|
45
|
-
if (resetTimerRef.current !== null) {
|
|
46
|
-
window.clearTimeout(resetTimerRef.current);
|
|
47
|
-
}
|
|
48
|
-
resetTimerRef.current = window.setTimeout(() => setCopied(false), 2000);
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
// Clipboard access might be denied / unavailable.
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return (_jsxs("div", { style: {
|
|
55
|
-
display: 'inline-flex',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
gap: 'var(--cds-spacing-02)',
|
|
58
|
-
maxWidth: '22rem',
|
|
59
|
-
}, children: [_jsx(CodeSnippet, { type: 'single', children: props.value }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: copied ? Checkmark : Copy, iconDescription: copied ? props.copiedLabel : props.copyLabel, "aria-label": copied ? props.copiedLabel : props.copyLabel, onClick: handleCopy })] }));
|
|
25
|
+
// '-' is the placeholder for an ID that is not known. There is nothing to
|
|
26
|
+
// copy, so show plain text without a code box or a copy button.
|
|
27
|
+
if (props.value === '' || props.value === '-') {
|
|
28
|
+
return _jsx("span", { children: "-" });
|
|
29
|
+
}
|
|
30
|
+
return (_jsx("div", { style: { maxWidth: '22rem' }, children: _jsx(CodeSnippet, { type: 'single', copyButtonDescription: props.copyLabel, feedback: props.copiedLabel, children: props.value }) }));
|
|
60
31
|
};
|
|
61
32
|
export const ClusterDetails = (props) => {
|
|
62
33
|
const isDsMode = useC4DesignSystem() === 'ds';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
2
|
/** The Camunda Hub docs page that the banner links to by default. */
|
|
3
|
-
export declare const HUB_DOCS_URL = "https://
|
|
3
|
+
export declare const HUB_DOCS_URL = "https://docs.camunda.io/docs/next/components/hub/#about-camunda-hub";
|
|
4
4
|
declare const COPY: {
|
|
5
5
|
hub: {
|
|
6
6
|
title: string;
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { useState } from 'react';
|
|
8
8
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
9
9
|
/** The Camunda Hub docs page that the banner links to by default. */
|
|
10
|
-
export const HUB_DOCS_URL = 'https://
|
|
10
|
+
export const HUB_DOCS_URL = 'https://docs.camunda.io/docs/next/components/hub/#about-camunda-hub';
|
|
11
11
|
const COPY = {
|
|
12
12
|
hub: {
|
|
13
13
|
title: 'Camunda Hub is coming on October 13',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@camunda/ccma-api": "3.
|
|
99
|
+
"@camunda/ccma-api": "3.1.0",
|
|
100
100
|
"@camunda/ccma-shared-types": "5.0.0",
|
|
101
101
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
102
102
|
"cron-parser": "5.10.0",
|