@camunda/ccma-saas-frontend 0.13.0 → 0.13.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,3 +1,10 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClustersEmptyStateProps } from './c4-clusters-empty-state.types.js';
3
+ /**
4
+ * Every variant keeps the centered default of `C4EmptyState`, and passes no
5
+ * `align`. A host page puts this empty state in a wide content pane of its own,
6
+ * thus a left-aligned block looks unfinished beside the centered empty states
7
+ * of the other pages (#10119). Design owns this decision: do not add
8
+ * `align='start'` again without design.
9
+ */
3
10
  export declare const C4ClustersEmptyState: (props: C4ClustersEmptyStateProps) => JSX.Element;
@@ -1,6 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { C4_ASSET_URLS } from '../../assetUrls.js';
3
3
  import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
4
+ /**
5
+ * Every variant keeps the centered default of `C4EmptyState`, and passes no
6
+ * `align`. A host page puts this empty state in a wide content pane of its own,
7
+ * thus a left-aligned block looks unfinished beside the centered empty states
8
+ * of the other pages (#10119). Design owns this decision: do not add
9
+ * `align='start'` again without design.
10
+ */
4
11
  export const C4ClustersEmptyState = (props) => {
5
12
  const { variant, texts, onCreateCluster, createClusterButtonDisabled, docsHref, onDocsClick, onUpgrade, onExtendTrial, } = props;
6
13
  if (variant === 'noClusters') {
@@ -19,7 +26,7 @@ export const C4ClustersEmptyState = (props) => {
19
26
  onClick: onDocsClick,
20
27
  }
21
28
  : undefined;
22
- return (_jsx(C4EmptyState, { align: 'start', icon: {
29
+ return (_jsx(C4EmptyState, { icon: {
23
30
  path: C4_ASSET_URLS.clusterIcon,
24
31
  altText: 'clusterIcon',
25
32
  }, heading: texts.noClusters.heading, description: texts.noClusters.description, button: button, link: link }));
@@ -29,7 +36,7 @@ export const C4ClustersEmptyState = (props) => {
29
36
  onClick: onUpgrade ?? (() => undefined),
30
37
  label: texts.trialExpired.upgradeButtonLabel,
31
38
  };
32
- return (_jsx(C4EmptyState, { align: 'start', icon: {
39
+ return (_jsx(C4EmptyState, { icon: {
33
40
  path: C4_ASSET_URLS.upgradeIcon,
34
41
  altText: 'upgradeIcon',
35
42
  }, heading: texts.trialExpired.heading, description: texts.trialExpired.adminDescription, button: onExtendTrial ? undefined : upgradeButton, buttons: onExtendTrial
@@ -42,7 +49,7 @@ export const C4ClustersEmptyState = (props) => {
42
49
  ]
43
50
  : undefined }));
44
51
  }
45
- return (_jsx(C4EmptyState, { align: 'start', icon: {
52
+ return (_jsx(C4EmptyState, { icon: {
46
53
  path: C4_ASSET_URLS.upgradeIcon,
47
54
  altText: 'upgradeIcon',
48
55
  }, heading: texts.trialExpired.heading, description: texts.trialExpired.memberDescription }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/ccma-saas-frontend",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
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": "2.0.0",
100
- "@camunda/ccma-shared-types": "2.0.0",
99
+ "@camunda/ccma-api": "2.1.0",
100
+ "@camunda/ccma-shared-types": "3.0.0",
101
101
  "@pactsafe/pactsafe-react-sdk": "2.15.0",
102
102
  "cron-parser": "5.10.0",
103
103
  "mobx": "6.16.1",