@camunda/camunda-composite-components 0.21.4 → 0.22.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.
Files changed (119) hide show
  1. package/lib/esm/package.json +55 -67
  2. package/lib/esm/src/api/api.js +5 -0
  3. package/lib/esm/src/api/clusters.js +5 -0
  4. package/lib/esm/src/api/endpoints.const.js +5 -0
  5. package/lib/esm/src/api/help-center.js +5 -0
  6. package/lib/esm/src/api/jwt.utils.js +5 -0
  7. package/lib/esm/src/api/notifications.js +5 -0
  8. package/lib/esm/src/api/organizations.js +5 -0
  9. package/lib/esm/src/api/profile.js +5 -0
  10. package/lib/esm/src/api/status.js +5 -0
  11. package/lib/esm/src/assets/c3-icons.types.js +5 -0
  12. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards-config.js +5 -0
  13. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.d.ts +1 -0
  14. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.js +5 -0
  15. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.d.ts +1 -1
  16. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.js +5 -0
  17. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.js +5 -0
  18. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.test.js +5 -0
  19. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.js +5 -0
  20. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.js +5 -0
  21. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.test.js +5 -0
  22. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.types.js +5 -0
  23. package/lib/esm/src/components/c3-data-table/c3-data-table.d.ts +1 -0
  24. package/lib/esm/src/components/c3-data-table/c3-data-table.js +5 -0
  25. package/lib/esm/src/components/c3-data-table/c3-data-table.types.js +5 -0
  26. package/lib/esm/src/components/c3-data-table/link-button/link-button.d.ts +1 -0
  27. package/lib/esm/src/components/c3-data-table/link-button/link-button.js +5 -0
  28. package/lib/esm/src/components/c3-data-table/link-button/link-button.types.js +5 -0
  29. package/lib/esm/src/components/c3-empty-state/c3-empty-state.d.ts +1 -0
  30. package/lib/esm/src/components/c3-empty-state/c3-empty-state.js +5 -0
  31. package/lib/esm/src/components/c3-empty-state/c3-empty-state.test.js +5 -0
  32. package/lib/esm/src/components/c3-empty-state/c3-empty-state.types.js +5 -0
  33. package/lib/esm/src/components/c3-help-center/c3-help-center-provider.js +5 -0
  34. package/lib/esm/src/components/c3-help-center/c3-help-center.d.ts +1 -1
  35. package/lib/esm/src/components/c3-help-center/c3-help-center.js +9 -2
  36. package/lib/esm/src/components/c3-help-center/c3-help-center.types.js +5 -0
  37. package/lib/esm/src/components/c3-help-center/defaultHelpCenterConfig.js +5 -0
  38. package/lib/esm/src/components/c3-help-center/help-center-hint.d.ts +1 -0
  39. package/lib/esm/src/components/c3-help-center/help-center-hint.js +5 -0
  40. package/lib/esm/src/components/c3-help-center/help-center.js +5 -0
  41. package/lib/esm/src/components/c3-help-center/recommendations.js +5 -0
  42. package/lib/esm/src/components/c3-help-center/styles.js +5 -0
  43. package/lib/esm/src/components/c3-help-center/tabs/feedback.js +12 -7
  44. package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +5 -0
  45. package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +5 -0
  46. package/lib/esm/src/components/c3-help-center/tile.js +8 -1
  47. package/lib/esm/src/components/c3-navigation/c3-info-button.js +5 -0
  48. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +5 -0
  49. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +1 -1
  50. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +5 -0
  51. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.js +29 -15
  52. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.js +5 -0
  53. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +5 -0
  54. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +1 -0
  55. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +5 -0
  56. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +1 -1
  57. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +7 -5
  58. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +2 -0
  59. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +5 -0
  60. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +6 -1
  61. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +5 -0
  62. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +5 -0
  63. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/components.js +5 -0
  64. package/lib/esm/src/components/c3-navigation/c3-navigation.d.ts +1 -0
  65. package/lib/esm/src/components/c3-navigation/c3-navigation.js +20 -2
  66. package/lib/esm/src/components/c3-navigation/c3-navigation.test.js +9 -0
  67. package/lib/esm/src/components/c3-navigation/c3-navigation.types.d.ts +17 -15
  68. package/lib/esm/src/components/c3-navigation/c3-navigation.types.js +5 -0
  69. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.js +5 -0
  70. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +0 -12
  71. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +5 -0
  72. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.js +5 -0
  73. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.js +5 -0
  74. package/lib/esm/src/components/c3-navigation/helpers.d.ts +2 -2
  75. package/lib/esm/src/components/c3-navigation/helpers.js +5 -0
  76. package/lib/esm/src/components/c3-navigation/index.js +5 -0
  77. package/lib/esm/src/components/c3-navigation/stories/story-helpers.d.ts +1 -0
  78. package/lib/esm/src/components/c3-navigation/stories/story-helpers.js +23 -0
  79. package/lib/esm/src/components/c3-navigation/stories/story-templates.js +5 -0
  80. package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.d.ts +1 -1
  81. package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.js +5 -0
  82. package/lib/esm/src/components/c3-onboarding-survey/defaultOnboardingConfig.js +5 -0
  83. package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.js +5 -0
  84. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.js +5 -0
  85. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.js +5 -0
  86. package/lib/esm/src/components/c3-onboarding-survey/elements/textField.js +5 -0
  87. package/lib/esm/src/components/c3-onboarding-survey/helpers.js +5 -0
  88. package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.d.ts +1 -12
  89. package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.js +5 -1
  90. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.d.ts +1 -1
  91. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.js +5 -0
  92. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.d.ts +1 -0
  93. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.js +5 -0
  94. package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.js +5 -0
  95. package/lib/esm/src/components/c3-onboarding-survey/step.d.ts +1 -0
  96. package/lib/esm/src/components/c3-onboarding-survey/step.js +5 -0
  97. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.js +5 -0
  98. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.types.js +5 -0
  99. package/lib/esm/src/components/c3-page/c3-page.js +5 -0
  100. package/lib/esm/src/components/c3-page/c3-page.test.js +5 -0
  101. package/lib/esm/src/components/c3-page/c3-page.types.js +5 -0
  102. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.js +5 -0
  103. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.types.js +5 -0
  104. package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.js +5 -0
  105. package/lib/esm/src/components/c3-user-configuration/authToken.js +5 -0
  106. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +1 -0
  107. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +1 -1
  108. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +5 -0
  109. package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.d.ts +1 -1
  110. package/lib/esm/src/components/styles.js +5 -0
  111. package/lib/esm/src/components/test-utils.js +5 -0
  112. package/lib/esm/src/hooks/useApi.js +5 -0
  113. package/lib/esm/src/index.d.ts +1 -1
  114. package/lib/esm/src/index.js +5 -0
  115. package/lib/esm/src/utils/camunda.d.ts +15 -1
  116. package/lib/esm/src/utils/camunda.js +39 -4
  117. package/lib/esm/src/utils/camunda.types.d.ts +1 -1
  118. package/lib/esm/src/utils/camunda.types.js +5 -0
  119. package/package.json +54 -60
@@ -1,16 +1,27 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.21.4",
4
- "type": "module",
5
- "publishConfig": {
6
- "access": "public",
7
- "registry": "https://registry.npmjs.org/"
3
+ "version": "0.22.0",
4
+ "description": "Camunda Composite Components",
5
+ "bugs": {
6
+ "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
8
7
  },
9
8
  "repository": {
10
9
  "type": "git",
11
- "url": "git+https://github.com/camunda/camunda-cloud-management-apps.git",
10
+ "url": "https://github.com/camunda/camunda-cloud-management-apps.git",
12
11
  "directory": "packages/c3"
13
12
  },
13
+ "license": "Apache-2.0",
14
+ "author": "Camunda",
15
+ "type": "module",
16
+ "main": "./lib/esm/src/index.js",
17
+ "types": "./lib/esm/src/index.d.ts",
18
+ "files": [
19
+ "/lib"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public",
23
+ "registry": "https://registry.npmjs.org/"
24
+ },
14
25
  "scripts": {
15
26
  "clean": "rimraf lib/",
16
27
  "build": "pnpm clean && tsc && node fix-esm-imports.mjs",
@@ -34,57 +45,48 @@
34
45
  "test:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm test:visual-regression",
35
46
  "update:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm update:visual-regression",
36
47
  "test:all": "pnpm test:ts && pnpm test:storybook",
37
- "test": "pnpm test:ts"
48
+ "test": "pnpm test:ts",
49
+ "typecheck": "tsc --noEmit"
50
+ },
51
+ "dependencies": {
52
+ "jwt-decode": "4.0.0",
53
+ "react-error-boundary": "6.1.0",
54
+ "react-markdown": "10.1.0",
55
+ "semver": "7.7.4"
38
56
  },
39
57
  "devDependencies": {
40
- "@auth0/auth0-spa-js": "^2.8.0",
58
+ "@auth0/auth0-spa-js": "2.15.0",
41
59
  "@camunda-cloud/shared-types": "workspace:*",
42
- "@carbon/react": "1.90.0",
43
- "@chromatic-com/storybook": "^4.1.2",
44
- "@mdx-js/react": "^3.1.1",
45
- "@playwright/test": "1.56.1",
46
- "@storybook/addon-a11y": "^10.0.7",
47
- "@storybook/addon-docs": "^10.0.7",
48
- "@storybook/addon-links": "^10.0.7",
49
- "@storybook/addon-vitest": "^10.0.8",
50
- "@storybook/react": "^10.0.7",
51
- "@storybook/react-vite": "^10.0.7",
52
- "@types/event-source-polyfill": "1.0.5",
53
- "@types/mixpanel-browser": "2.49.0",
54
- "@types/node": "22.13.14",
55
- "@types/react": "18.3.12",
56
- "@types/react-dom": "18.3.2",
57
- "@types/semver": "^7.5.8",
58
- "@vitejs/plugin-react": "^5.1.1",
59
- "@vitest/browser": "^4.0.13",
60
- "@vitest/browser-playwright": "^4.0.13",
61
- "conventional-changelog-conventionalcommits": "7.0.2",
62
- "eslint-import-resolver-typescript": "3.6.1",
63
- "eslint-plugin-react": "7.37.2",
64
- "eslint-plugin-react-hooks": "5.0.0",
65
- "eslint-plugin-storybook": "^10.0.7",
60
+ "@carbon/react": "1.97.0",
61
+ "@chromatic-com/storybook": "5.0.1",
62
+ "@mdx-js/react": "3.1.1",
63
+ "@playwright/test": "1.58.2",
64
+ "@storybook/addon-a11y": "10.2.8",
65
+ "@storybook/addon-docs": "10.2.8",
66
+ "@storybook/addon-links": "10.2.8",
67
+ "@storybook/addon-vitest": "10.2.8",
68
+ "@storybook/react": "10.2.8",
69
+ "@storybook/react-vite": "10.2.8",
70
+ "@vitest/browser": "4.0.18",
71
+ "@vitest/browser-playwright": "4.0.18",
72
+ "vitest": "4.0.18",
73
+ "conventional-changelog-conventionalcommits": "9.1.0",
74
+ "eslint-import-resolver-typescript": "4.4.4",
75
+ "eslint-plugin-react": "7.37.5",
76
+ "eslint-plugin-react-hooks": "7.0.1",
77
+ "eslint-plugin-storybook": "10.2.8",
66
78
  "event-source-polyfill": "1.0.31",
67
- "mixpanel-browser": "2.49.0",
68
- "playwright": "^1.56.1",
69
- "react": "19.1.0",
70
- "react-dom": "19.1.0",
71
- "react-is": "^19.1.0",
72
- "rimraf": "6.0.1",
73
- "sass": "1.74.1",
74
- "serve": "14.2.4",
75
- "storybook": "^10.0.7",
76
- "styled-components": "6.1.8",
77
- "typescript": "5.8.3",
78
- "typescript-eslint": "^8.46.4",
79
- "vite": "^7.2.2",
80
- "vitest": "^4.0.13",
81
- "wait-on": "8.0.2"
82
- },
83
- "dependencies": {
84
- "jwt-decode": "4.0.0",
85
- "react-error-boundary": "4.0.13",
86
- "react-markdown": "8.0.7",
87
- "semver": "^7.7.3"
79
+ "mixpanel-browser": "2.74.0",
80
+ "playwright": "1.58.2",
81
+ "react": "19.2.4",
82
+ "react-dom": "19.2.4",
83
+ "react-is": "19.2.4",
84
+ "rimraf": "6.1.2",
85
+ "serve": "14.2.5",
86
+ "storybook": "10.2.8",
87
+ "styled-components": "6.3.9",
88
+ "typescript-eslint": "8.55.0",
89
+ "wait-on": "9.0.4"
88
90
  },
89
91
  "peerDependencies": {
90
92
  "@carbon/react": "1.x",
@@ -92,19 +94,5 @@
92
94
  "react": "18.x || 19.x",
93
95
  "react-dom": "18.x || 19.x",
94
96
  "styled-components": "5.x || 6.x"
95
- },
96
- "description": "Camunda Composite Components",
97
- "main": "./lib/esm/src/index.js",
98
- "types": "./lib/esm/src/index.d.ts",
99
- "files": [
100
- "/lib"
101
- ],
102
- "author": "Camunda",
103
- "license": "Apache-2.0",
104
- "pnpm": {
105
- "overrides": {
106
- "@types/react": "18.3.12",
107
- "@types/react-dom": "18.3.2"
108
- }
109
97
  }
110
98
  }
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { ACCOUNTS, getEndpoint, NOTIFICATIONS, } from './endpoints.const.js';
2
7
  import { JWTUtils } from './jwt.utils.js';
3
8
  export const request = async (payload) => {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { EventSourcePolyfill } from 'event-source-polyfill';
2
7
  import { CONSOLE, getEndpointByOptions, } from './endpoints.const.js';
3
8
  export class ClustersService {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export const NOTIFICATIONS = {
2
7
  id: 'notifications',
3
8
  dev: 'https://notifications.cloud.dev.ultrawombat.com',
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { recommendations } from '../components/c3-help-center/recommendations.js';
2
7
  import { request } from './api.js';
3
8
  export const getConfig = async (accessToken, audience, orgId) => {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export class JWTUtils {
2
7
  static decode(token) {
3
8
  const base64Url = token.split('.')[1];
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { EventSourcePolyfill } from 'event-source-polyfill';
2
7
  import { request } from './api.js';
3
8
  import { getEndpointByOptions, NOTIFICATIONS } from './endpoints.const.js';
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { request } from './api.js';
2
7
  export const getStartingPrice = async ({ token, audience, }) => request({
3
8
  url: `https://accounts.${audience}/external/organizations/startingPrice`,
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { jwtDecode } from 'jwt-decode';
2
7
  import { request } from './api.js';
3
8
  const decodeJWT = (userToken) => {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { request } from './api.js';
2
7
  import { getEndpoint, STATUS } from './endpoints.const.js';
3
8
  export class StatusService {
@@ -1 +1,6 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export {};
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export const appTeaserCardsConfig = {
2
7
  operate: [
3
8
  {
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { type AppTeaserCardProps } from './app-teaster-card';
2
3
  type AppTeaserCardsProps = {
3
4
  title: string;
@@ -1,5 +1,10 @@
1
1
  import { createElement as _createElement } from "react";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ /*
4
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
5
+ * under one or more contributor license agreements. Licensed under a commercial license.
6
+ * You may not use this file except in compliance with the commercial license.
7
+ */
3
8
  import { Button, InlineNotification, Stack } from '@carbon/react';
4
9
  import styled from 'styled-components';
5
10
  import { body02 } from '../styles.js';
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { JSX, ReactNode } from 'react';
2
2
  export type AppTeaserCardProps = {
3
3
  grid?: {
4
4
  column?: number | string;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Tile } from '@carbon/react';
3
8
  import styled from 'styled-components';
4
9
  const Description = styled.p `
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Loading } from '@carbon/react';
3
8
  import { canCreateCluster, canUpgradePlan, isTrialExpired, } from '../../utils/camunda.js';
4
9
  import { useC3Profile } from '../c3-user-configuration/c3-profile-provider/c3-profile-provider.js';
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { expect, test } from '@playwright/test';
2
7
  import { getStory } from '../test-utils.js';
3
8
  test.describe('App teaser page', () => {
@@ -1,4 +1,9 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Add, Settings } from '@carbon/react/icons/index.esm.js';
3
8
  import { getReadableAppName } from '../../utils/camunda.js';
4
9
  import { DefaultStyleWrapper } from '../styles.js';
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Tag } from '@carbon/react';
3
8
  import { useC3Profile } from '../c3-user-configuration/c3-profile-provider/c3-profile-provider.js';
4
9
  export const C3ClusterTagWithClusterName = (props) => {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { expect, test } from '@playwright/test';
2
7
  import { getStory } from '../test-utils.js';
3
8
  test.describe('Cluster tag', () => {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export const StageClusterLabels = {
2
7
  dev: 'dev',
3
8
  test: 'test',
@@ -1,2 +1,3 @@
1
+ import { type JSX } from 'react';
1
2
  import type { C3DataTableProps, RowBaseProps } from './c3-data-table.types';
2
3
  export declare const C3DataTable: <T extends RowBaseProps>({ data, headers, options, toolbar: singleToolbar, toolbars, isLoading, title, description, actions, id, queryPrefix, }: C3DataTableProps<T>) => JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Button, CodeSnippet, DataTableSkeleton, Link, MenuButton, MenuItem, MultiSelect, OverflowMenu, OverflowMenuItem, Pagination, Select, SelectItem, Table, TableBody, TableCell, TableContainer, TableExpandedRow, TableExpandHeader, TableExpandRow, TableHead, TableHeader, TableRow, TableSelectAll, TableSelectRow, TableToolbar, TableToolbarContent, TableToolbarSearch, } from '@carbon/react';
3
8
  import React, { useEffect, useRef, useState } from 'react';
4
9
  import styled from 'styled-components';
@@ -1 +1,6 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export {};
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { LinkButtonProps } from './link-button.types';
2
3
  export declare const LinkButton: ({ label, onClick, style, inline, icon, disabled, }: LinkButtonProps) => JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Link } from '@carbon/react';
3
8
  export const LinkButton = ({ label, onClick, style, inline, icon, disabled, }) => {
4
9
  if (disabled === undefined) {
@@ -1 +1,6 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export {};
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { C3EmptyStateProps } from './c3-empty-state.types';
2
3
  export declare const C3EmptyState: ({ icon, heading, description, button, buttons, link, }: C3EmptyStateProps) => JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Button, Link, MenuButton, MenuItem, Stack, Tile } from '@carbon/react';
3
8
  import { C3ResponsiveStack } from '../c3-responsive-stack/c3-responsive-stack.js';
4
9
  export const C3EmptyState = ({ icon, heading, description, button, buttons, link, }) => (_jsx(_Fragment, { children: _jsx(Tile, { style: {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { expect, test } from '@playwright/test';
2
7
  import { getStory } from '../test-utils.js';
3
8
  test.describe('Empty State', () => {
@@ -1 +1,6 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export {};
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import React, { useEffect, useState, } from 'react';
3
8
  export var HelpCenterHintType;
4
9
  (function (HelpCenterHintType) {
@@ -3,7 +3,7 @@ import { type FC } from 'react';
3
3
  import { type Theme } from '../c3-user-configuration/c3-profile-provider/c3-profile-provider';
4
4
  import type { Persona } from './c3-help-center.types';
5
5
  export interface C3HelpCenterProps {
6
- origin?: 'console' | 'webmodeler' | 'operate' | 'tasklist' | 'optimize';
6
+ origin?: 'console' | 'webmodeler' | 'operate' | 'tasklist' | 'optimize' | 'identity' | 'admin';
7
7
  theme?: Theme;
8
8
  flags?: string[];
9
9
  activeTab?: string;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { ActionableNotification, ComposedModal, Layer, ModalBody, ModalHeader, } from '@carbon/react';
3
8
  import React, { useEffect, useRef, useState } from 'react';
4
9
  import { ErrorBoundary } from 'react-error-boundary';
@@ -21,7 +26,7 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, onRequestClose, m
21
26
  const { userToken, decodedToken, activeOrganizationId, handleTheme, decodedAudience, analyticsTrack, currentApp, } = useC3UserConfiguration();
22
27
  const { theme: themeConfig, isEnabled, reloadClusters } = useC3Profile();
23
28
  const themeHandlingEnabled = isEnabled && !!handleTheme && !!themeConfig;
24
- const themeRef = useRef();
29
+ const themeRef = useRef('system');
25
30
  const [resolvedTheme, setResolvedTheme] = useState(defaultTheme);
26
31
  const [persona, setPersona] = useState(undefined);
27
32
  const [userId, setUserId] = useState('');
@@ -56,7 +61,9 @@ export const C3HelpCenter = ({ autoStartSurvey, origin, flags, onRequestClose, m
56
61
  }, []);
57
62
  useEffect(() => {
58
63
  const newTheme = themeHandlingEnabled ? themeConfig : theme;
59
- themeRef.current = newTheme;
64
+ if (newTheme) {
65
+ themeRef.current = newTheme;
66
+ }
60
67
  setResolvedTheme(resolveTheme(newTheme || 'light'));
61
68
  }, [theme, themeConfig, isOpen]);
62
69
  const fetchConfig = async () => {
@@ -1 +1,6 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export {};
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export const defaultHelpCenterConfig = {
2
7
  tabs: [
3
8
  {
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export declare const HelpCenterHint: ({ children }: {
2
3
  children: JSX.Element;
3
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  // React import not required with automatic JSX runtime
3
8
  import { Button, Toggletip, ToggletipActions, ToggletipContent, } from '@carbon/react';
4
9
  import { HelpCenterHintType, useC3HelpCenter } from './c3-help-center-provider.js';
@@ -1,4 +1,9 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
2
7
  import { Button, ModalFooter, SideNav, SideNavItems, SideNavMenuItem, Stack, } from '@carbon/react';
3
8
  import { Undo } from '@carbon/react/icons/index.esm.js';
4
9
  import React, { useEffect, useState } from 'react';
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  export const recommendations = (persona, flags, tileConfig, salesPlanType, hasClusters) => {
2
7
  persona = { ...persona, ...{ flags, salesPlanType, hasClusters } };
3
8
  if (!tileConfig) {
@@ -1,3 +1,8 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
1
6
  import { ModalBody, ModalHeader } from '@carbon/react';
2
7
  import styled, { css } from 'styled-components';
3
8
  import { body01, heading01, heading02, heading03, heading04, heading05, heading06, } from '../styles.js';