@camunda/camunda-composite-components 0.22.2 → 0.22.4

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 (196) hide show
  1. package/package.json +19 -19
  2. package/lib/esm/package.json +0 -98
  3. package/lib/esm/src/api/api.d.ts +0 -29
  4. package/lib/esm/src/api/api.js +0 -92
  5. package/lib/esm/src/api/clusters.d.ts +0 -10
  6. package/lib/esm/src/api/clusters.js +0 -32
  7. package/lib/esm/src/api/endpoints.const.d.ts +0 -22
  8. package/lib/esm/src/api/endpoints.const.js +0 -70
  9. package/lib/esm/src/api/help-center.d.ts +0 -42
  10. package/lib/esm/src/api/help-center.js +0 -56
  11. package/lib/esm/src/api/jwt.utils.d.ts +0 -5
  12. package/lib/esm/src/api/jwt.utils.js +0 -26
  13. package/lib/esm/src/api/notifications.d.ts +0 -41
  14. package/lib/esm/src/api/notifications.js +0 -170
  15. package/lib/esm/src/api/organizations.d.ts +0 -15
  16. package/lib/esm/src/api/organizations.js +0 -16
  17. package/lib/esm/src/api/profile.d.ts +0 -20
  18. package/lib/esm/src/api/profile.js +0 -48
  19. package/lib/esm/src/api/status.d.ts +0 -7
  20. package/lib/esm/src/api/status.js +0 -46
  21. package/lib/esm/src/assets/c3-icons.d.ts +0 -5
  22. package/lib/esm/src/assets/c3-icons.js +0 -5
  23. package/lib/esm/src/assets/c3-icons.types.d.ts +0 -3
  24. package/lib/esm/src/assets/c3-icons.types.js +0 -6
  25. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards-config.d.ts +0 -5
  26. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards-config.js +0 -94
  27. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.d.ts +0 -17
  28. package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.js +0 -31
  29. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.d.ts +0 -14
  30. package/lib/esm/src/components/c3-app-teaser/app-teaster-card.js +0 -24
  31. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.d.ts +0 -9
  32. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.js +0 -48
  33. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.test.d.ts +0 -1
  34. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.test.js +0 -33
  35. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.d.ts +0 -14
  36. package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.js +0 -53
  37. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.d.ts +0 -6
  38. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.js +0 -84
  39. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.test.d.ts +0 -1
  40. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.test.js +0 -13
  41. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.types.d.ts +0 -26
  42. package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.types.js +0 -11
  43. package/lib/esm/src/components/c3-data-table/c3-data-table.d.ts +0 -3
  44. package/lib/esm/src/components/c3-data-table/c3-data-table.js +0 -509
  45. package/lib/esm/src/components/c3-data-table/c3-data-table.types.d.ts +0 -122
  46. package/lib/esm/src/components/c3-data-table/c3-data-table.types.js +0 -6
  47. package/lib/esm/src/components/c3-data-table/link-button/link-button.d.ts +0 -3
  48. package/lib/esm/src/components/c3-data-table/link-button/link-button.js +0 -15
  49. package/lib/esm/src/components/c3-data-table/link-button/link-button.types.d.ts +0 -8
  50. package/lib/esm/src/components/c3-data-table/link-button/link-button.types.js +0 -6
  51. package/lib/esm/src/components/c3-empty-state/c3-empty-state.d.ts +0 -3
  52. package/lib/esm/src/components/c3-empty-state/c3-empty-state.js +0 -15
  53. package/lib/esm/src/components/c3-empty-state/c3-empty-state.test.d.ts +0 -1
  54. package/lib/esm/src/components/c3-empty-state/c3-empty-state.test.js +0 -25
  55. package/lib/esm/src/components/c3-empty-state/c3-empty-state.types.d.ts +0 -29
  56. package/lib/esm/src/components/c3-empty-state/c3-empty-state.types.js +0 -6
  57. package/lib/esm/src/components/c3-help-center/c3-help-center-provider.d.ts +0 -19
  58. package/lib/esm/src/components/c3-help-center/c3-help-center-provider.js +0 -58
  59. package/lib/esm/src/components/c3-help-center/c3-help-center.d.ts +0 -16
  60. package/lib/esm/src/components/c3-help-center/c3-help-center.js +0 -218
  61. package/lib/esm/src/components/c3-help-center/c3-help-center.types.d.ts +0 -43
  62. package/lib/esm/src/components/c3-help-center/c3-help-center.types.js +0 -6
  63. package/lib/esm/src/components/c3-help-center/defaultHelpCenterConfig.d.ts +0 -10
  64. package/lib/esm/src/components/c3-help-center/defaultHelpCenterConfig.js +0 -17
  65. package/lib/esm/src/components/c3-help-center/help-center-hint.d.ts +0 -4
  66. package/lib/esm/src/components/c3-help-center/help-center-hint.js +0 -15
  67. package/lib/esm/src/components/c3-help-center/help-center.d.ts +0 -18
  68. package/lib/esm/src/components/c3-help-center/help-center.js +0 -189
  69. package/lib/esm/src/components/c3-help-center/recommendations.d.ts +0 -4
  70. package/lib/esm/src/components/c3-help-center/recommendations.js +0 -55
  71. package/lib/esm/src/components/c3-help-center/styles.d.ts +0 -4
  72. package/lib/esm/src/components/c3-help-center/styles.js +0 -48
  73. package/lib/esm/src/components/c3-help-center/tabs/feedback.d.ts +0 -9
  74. package/lib/esm/src/components/c3-help-center/tabs/feedback.js +0 -141
  75. package/lib/esm/src/components/c3-help-center/tabs/tabContent.d.ts +0 -20
  76. package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +0 -22
  77. package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.d.ts +0 -2
  78. package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +0 -26
  79. package/lib/esm/src/components/c3-help-center/tile.d.ts +0 -10
  80. package/lib/esm/src/components/c3-help-center/tile.js +0 -61
  81. package/lib/esm/src/components/c3-navigation/c3-info-button.d.ts +0 -4
  82. package/lib/esm/src/components/c3-navigation/c3-info-button.js +0 -9
  83. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +0 -6
  84. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +0 -18
  85. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +0 -10
  86. package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +0 -6
  87. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.d.ts +0 -4
  88. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.js +0 -380
  89. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.d.ts +0 -2
  90. package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.js +0 -21
  91. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +0 -6
  92. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +0 -38
  93. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +0 -12
  94. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +0 -68
  95. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +0 -10
  96. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +0 -87
  97. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +0 -81
  98. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +0 -6
  99. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +0 -5
  100. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +0 -107
  101. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +0 -29
  102. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +0 -54
  103. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +0 -6
  104. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +0 -57
  105. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/components.d.ts +0 -2
  106. package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/components.js +0 -11
  107. package/lib/esm/src/components/c3-navigation/c3-navigation.d.ts +0 -7
  108. package/lib/esm/src/components/c3-navigation/c3-navigation.js +0 -262
  109. package/lib/esm/src/components/c3-navigation/c3-navigation.test.d.ts +0 -1
  110. package/lib/esm/src/components/c3-navigation/c3-navigation.test.js +0 -89
  111. package/lib/esm/src/components/c3-navigation/c3-navigation.types.d.ts +0 -97
  112. package/lib/esm/src/components/c3-navigation/c3-navigation.types.js +0 -6
  113. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +0 -13
  114. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.js +0 -100
  115. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +0 -19
  116. package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +0 -110
  117. package/lib/esm/src/components/c3-navigation/c3-org-name.d.ts +0 -6
  118. package/lib/esm/src/components/c3-navigation/c3-org-name.js +0 -34
  119. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.d.ts +0 -6
  120. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.js +0 -188
  121. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.d.ts +0 -29
  122. package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.js +0 -92
  123. package/lib/esm/src/components/c3-navigation/helpers.d.ts +0 -8
  124. package/lib/esm/src/components/c3-navigation/helpers.js +0 -58
  125. package/lib/esm/src/components/c3-navigation/index.d.ts +0 -2
  126. package/lib/esm/src/components/c3-navigation/index.js +0 -8
  127. package/lib/esm/src/components/c3-navigation/stories/story-helpers.d.ts +0 -35
  128. package/lib/esm/src/components/c3-navigation/stories/story-helpers.js +0 -264
  129. package/lib/esm/src/components/c3-navigation/stories/story-templates.d.ts +0 -9
  130. package/lib/esm/src/components/c3-navigation/stories/story-templates.js +0 -38
  131. package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.d.ts +0 -14
  132. package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.js +0 -94
  133. package/lib/esm/src/components/c3-onboarding-survey/defaultOnboardingConfig.d.ts +0 -16
  134. package/lib/esm/src/components/c3-onboarding-survey/defaultOnboardingConfig.js +0 -8
  135. package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.d.ts +0 -15
  136. package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.js +0 -58
  137. package/lib/esm/src/components/c3-onboarding-survey/elements/inlineNotification.d.ts +0 -3
  138. package/lib/esm/src/components/c3-onboarding-survey/elements/inlineNotification.js +0 -10
  139. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.d.ts +0 -7
  140. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.js +0 -53
  141. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.d.ts +0 -7
  142. package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.js +0 -36
  143. package/lib/esm/src/components/c3-onboarding-survey/elements/textField.d.ts +0 -6
  144. package/lib/esm/src/components/c3-onboarding-survey/elements/textField.js +0 -14
  145. package/lib/esm/src/components/c3-onboarding-survey/helpers.d.ts +0 -1
  146. package/lib/esm/src/components/c3-onboarding-survey/helpers.js +0 -10
  147. package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.d.ts +0 -30
  148. package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.js +0 -13
  149. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.d.ts +0 -25
  150. package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.js +0 -52
  151. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.d.ts +0 -21
  152. package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.js +0 -35
  153. package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.d.ts +0 -17
  154. package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.js +0 -148
  155. package/lib/esm/src/components/c3-onboarding-survey/step.d.ts +0 -7
  156. package/lib/esm/src/components/c3-onboarding-survey/step.js +0 -44
  157. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.d.ts +0 -3
  158. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.js +0 -28
  159. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.types.d.ts +0 -19
  160. package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.types.js +0 -6
  161. package/lib/esm/src/components/c3-page/c3-page.d.ts +0 -4
  162. package/lib/esm/src/components/c3-page/c3-page.js +0 -16
  163. package/lib/esm/src/components/c3-page/c3-page.test.d.ts +0 -1
  164. package/lib/esm/src/components/c3-page/c3-page.test.js +0 -25
  165. package/lib/esm/src/components/c3-page/c3-page.types.d.ts +0 -18
  166. package/lib/esm/src/components/c3-page/c3-page.types.js +0 -6
  167. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.d.ts +0 -3
  168. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.js +0 -37
  169. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.types.d.ts +0 -14
  170. package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.types.js +0 -6
  171. package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.d.ts +0 -2
  172. package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.js +0 -18
  173. package/lib/esm/src/components/c3-user-configuration/authToken.d.ts +0 -30
  174. package/lib/esm/src/components/c3-user-configuration/authToken.js +0 -30
  175. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +0 -26
  176. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +0 -117
  177. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.d.ts +0 -13
  178. package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +0 -29
  179. package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.d.ts +0 -54
  180. package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.js +0 -43
  181. package/lib/esm/src/components/styles.d.ts +0 -13
  182. package/lib/esm/src/components/styles.js +0 -90
  183. package/lib/esm/src/components/test-utils.d.ts +0 -3
  184. package/lib/esm/src/components/test-utils.js +0 -32
  185. package/lib/esm/src/contexts/c3-cluster-update-manager.d.ts +0 -12
  186. package/lib/esm/src/contexts/c3-cluster-update-manager.js +0 -27
  187. package/lib/esm/src/hooks/useApi.d.ts +0 -20
  188. package/lib/esm/src/hooks/useApi.js +0 -54
  189. package/lib/esm/src/index.d.ts +0 -23
  190. package/lib/esm/src/index.js +0 -19
  191. package/lib/esm/src/utils/camunda.d.ts +0 -21
  192. package/lib/esm/src/utils/camunda.js +0 -59
  193. package/lib/esm/src/utils/camunda.types.d.ts +0 -63
  194. package/lib/esm/src/utils/camunda.types.js +0 -6
  195. package/lib/esm/src/utils/versionCheck.utils.d.ts +0 -15
  196. package/lib/esm/src/utils/versionCheck.utils.js +0 -79
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.22.2",
3
+ "version": "0.22.4",
4
4
  "description": "Camunda Composite Components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
@@ -29,38 +29,38 @@
29
29
  "semver": "7.7.4"
30
30
  },
31
31
  "devDependencies": {
32
- "@auth0/auth0-spa-js": "2.17.0",
33
- "@carbon/react": "1.102.0",
34
- "@chromatic-com/storybook": "5.0.1",
32
+ "@auth0/auth0-spa-js": "2.18.0",
33
+ "@carbon/react": "1.103.0",
34
+ "@chromatic-com/storybook": "5.0.2",
35
35
  "@mdx-js/react": "3.1.1",
36
36
  "@playwright/test": "1.58.2",
37
- "@storybook/addon-a11y": "10.2.15",
38
- "@storybook/addon-docs": "10.2.15",
39
- "@storybook/addon-links": "10.2.15",
40
- "@storybook/addon-vitest": "10.2.15",
41
- "@storybook/react": "10.2.15",
42
- "@storybook/react-vite": "10.2.15",
43
- "@vitest/browser": "4.0.18",
44
- "@vitest/browser-playwright": "4.0.18",
45
- "vitest": "4.0.18",
37
+ "@storybook/addon-a11y": "10.3.1",
38
+ "@storybook/addon-docs": "10.3.1",
39
+ "@storybook/addon-links": "10.3.1",
40
+ "@storybook/addon-vitest": "10.3.1",
41
+ "@storybook/react": "10.3.1",
42
+ "@storybook/react-vite": "10.3.1",
43
+ "@vitest/browser": "4.1.0",
44
+ "@vitest/browser-playwright": "4.1.0",
45
+ "vitest": "4.1.0",
46
46
  "conventional-changelog-conventionalcommits": "9.3.0",
47
47
  "eslint-import-resolver-typescript": "4.4.4",
48
48
  "eslint-plugin-react": "7.37.5",
49
49
  "eslint-plugin-react-hooks": "7.0.1",
50
- "eslint-plugin-storybook": "10.2.15",
50
+ "eslint-plugin-storybook": "10.3.1",
51
51
  "event-source-polyfill": "1.0.31",
52
- "mixpanel-browser": "2.75.0",
52
+ "mixpanel-browser": "2.76.0",
53
53
  "playwright": "1.58.2",
54
54
  "react": "19.2.4",
55
55
  "react-dom": "19.2.4",
56
56
  "react-is": "19.2.4",
57
57
  "rimraf": "6.1.3",
58
58
  "serve": "14.2.6",
59
- "storybook": "10.2.15",
60
- "styled-components": "6.3.11",
61
- "typescript-eslint": "8.56.1",
59
+ "storybook": "10.3.1",
60
+ "styled-components": "6.3.12",
61
+ "typescript-eslint": "8.57.1",
62
62
  "wait-on": "9.0.4",
63
- "@camunda-cloud/shared-types": "0.0.1"
63
+ "@camunda/ccma-shared-types": "0.0.2"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@carbon/react": "1.x",
@@ -1,98 +0,0 @@
1
- {
2
- "name": "@camunda/camunda-composite-components",
3
- "version": "0.22.2",
4
- "description": "Camunda Composite Components",
5
- "bugs": {
6
- "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/camunda/camunda-cloud-management-apps.git",
11
- "directory": "packages/c3"
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
- },
25
- "scripts": {
26
- "clean": "rimraf lib/",
27
- "build": "pnpm clean && tsc && node fix-esm-imports.mjs",
28
- "storybook": "storybook dev -p 6006",
29
- "start": "pnpm storybook",
30
- "build-storybook": "storybook build",
31
- "build:all": "pnpm build && pnpm build-storybook",
32
- "serve:storybook": "npx --yes serve ./storybook-static -p 6006 -n -L",
33
- "docker:setup": "pnpm install && npx playwright install",
34
- "format": "prettier --write .",
35
- "lint": "biome lint ./src",
36
- "lint:fix": "eslint --fix src/",
37
- "test:ts": "tsc --noEmit --project ./tsconfig.json",
38
- "test:storybook": "vitest run",
39
- "test:storybook:watch": "vitest",
40
- "start:docker-storybook": "pnpm build-storybook && docker-compose up -d && docker-compose exec c3-visual-regression pnpm docker:setup && docker-compose exec c3-visual-regression pnpm serve:storybook",
41
- "test:visual-regression": "wait-on http://localhost:6006 && pnpm playwright test",
42
- "test:visual-regression:ui": "pnpm playwright test --ui",
43
- "report:visual-regression": "pnpm playwright show-report",
44
- "update:visual-regression": "pnpm playwright test --update-snapshots",
45
- "test:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm test:visual-regression",
46
- "update:visual-regression:docker": "docker exec -it -t c3-visual-regression pnpm update:visual-regression",
47
- "test:all": "pnpm test:ts && pnpm test:storybook",
48
- "test": "pnpm test:ts",
49
- "typecheck": "tsc --noEmit"
50
- },
51
- "dependencies": {
52
- "jwt-decode": "4.0.0",
53
- "react-error-boundary": "6.1.1",
54
- "react-markdown": "10.1.0",
55
- "semver": "7.7.4"
56
- },
57
- "devDependencies": {
58
- "@auth0/auth0-spa-js": "2.17.0",
59
- "@camunda-cloud/shared-types": "workspace:*",
60
- "@carbon/react": "1.102.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.15",
65
- "@storybook/addon-docs": "10.2.15",
66
- "@storybook/addon-links": "10.2.15",
67
- "@storybook/addon-vitest": "10.2.15",
68
- "@storybook/react": "10.2.15",
69
- "@storybook/react-vite": "10.2.15",
70
- "@vitest/browser": "4.0.18",
71
- "@vitest/browser-playwright": "4.0.18",
72
- "vitest": "4.0.18",
73
- "conventional-changelog-conventionalcommits": "9.3.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.15",
78
- "event-source-polyfill": "1.0.31",
79
- "mixpanel-browser": "2.75.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.3",
85
- "serve": "14.2.6",
86
- "storybook": "10.2.15",
87
- "styled-components": "6.3.11",
88
- "typescript-eslint": "8.56.1",
89
- "wait-on": "9.0.4"
90
- },
91
- "peerDependencies": {
92
- "@carbon/react": "1.x",
93
- "event-source-polyfill": "1.0.x",
94
- "react": "18.x || 19.x",
95
- "react-dom": "18.x || 19.x",
96
- "styled-components": "5.x || 6.x"
97
- }
98
- }
@@ -1,29 +0,0 @@
1
- import { type Endpoints, type Stage } from './endpoints.const';
2
- export interface RequestPayload {
3
- url: string;
4
- base?: 'notifications' | 'accounts';
5
- stage?: Stage;
6
- endpoints?: Endpoints;
7
- method?: 'get' | 'post' | 'put' | 'delete' | 'patch';
8
- headers?: {
9
- [key: string]: string;
10
- };
11
- type?: 'json' | 'text' | 'form' | 'none';
12
- responseType?: 'json' | 'text' | 'none';
13
- camundaAuth?: {
14
- token: string;
15
- refreshTokenMethod?: () => Promise<string>;
16
- };
17
- body?: string | FormData | {
18
- [key: string]: unknown;
19
- };
20
- enableLogs?: boolean;
21
- signal?: AbortSignal;
22
- }
23
- export type RequestResponse<R = undefined> = {
24
- success: boolean;
25
- result?: R;
26
- status?: number;
27
- error?: string;
28
- };
29
- export declare const request: <R = undefined>(payload: RequestPayload) => Promise<RequestResponse<R>>;
@@ -1,92 +0,0 @@
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
- */
6
- import { ACCOUNTS, getEndpoint, NOTIFICATIONS, } from './endpoints.const.js';
7
- import { JWTUtils } from './jwt.utils.js';
8
- export const request = async (payload) => {
9
- const headers = {};
10
- if (payload.camundaAuth) {
11
- if (JWTUtils.isExpired(payload.camundaAuth.token) &&
12
- payload.camundaAuth.refreshTokenMethod) {
13
- const newToken = await payload.camundaAuth?.refreshTokenMethod?.();
14
- headers.Authorization = `Bearer ${newToken}`;
15
- }
16
- else {
17
- headers.Authorization = `Bearer ${payload.camundaAuth.token}`;
18
- }
19
- }
20
- const type = payload.type ?? 'json';
21
- if (type) {
22
- switch (type) {
23
- case 'json':
24
- headers['Content-Type'] = 'application/json';
25
- break;
26
- case 'text':
27
- headers['Content-Type'] = 'text/plain';
28
- break;
29
- }
30
- }
31
- const body = payload.body && type === 'json'
32
- ? JSON.stringify(payload.body)
33
- : payload.body instanceof FormData
34
- ? payload.body
35
- : undefined;
36
- let base;
37
- if (payload.base) {
38
- switch (payload.base) {
39
- case 'notifications':
40
- if (payload.endpoints?.notifications) {
41
- base = payload.endpoints.notifications;
42
- }
43
- else if (payload.stage) {
44
- base = getEndpoint(payload.stage, NOTIFICATIONS);
45
- }
46
- break;
47
- case 'accounts':
48
- if (payload.endpoints?.accounts) {
49
- base = payload.endpoints.accounts;
50
- }
51
- else if (payload.stage) {
52
- base = getEndpoint(payload.stage, ACCOUNTS);
53
- }
54
- }
55
- }
56
- const url = base ? `${base}/${payload.url}` : payload.url;
57
- try {
58
- const response = await fetch(url, {
59
- method: payload.method ? payload.method.toUpperCase() : 'GET',
60
- headers,
61
- body,
62
- signal: payload?.signal,
63
- });
64
- if (response.status >= 400) {
65
- if (payload.enableLogs)
66
- console.error(response.statusText, response.status);
67
- return {
68
- success: false,
69
- status: response.status,
70
- error: response.statusText,
71
- };
72
- }
73
- const responseType = payload.responseType ?? type;
74
- let res;
75
- switch (responseType) {
76
- case 'json':
77
- res = await response.json();
78
- break;
79
- case 'text':
80
- res = await response.text();
81
- break;
82
- default:
83
- res = response;
84
- }
85
- return { success: true, result: res };
86
- }
87
- catch (error) {
88
- if (payload.enableLogs)
89
- console.error('API request failed:', error);
90
- return { success: false, error: error?.toString() };
91
- }
92
- };
@@ -1,10 +0,0 @@
1
- import { EventSourcePolyfill } from 'event-source-polyfill';
2
- import { type Endpoints, type Stage } from './endpoints.const';
3
- export interface C3ClustersProps {
4
- stage?: Stage;
5
- endpoints?: Endpoints;
6
- userToken: string;
7
- }
8
- export declare class ClustersService {
9
- static clustersStream(options: C3ClustersProps): EventSourcePolyfill;
10
- }
@@ -1,32 +0,0 @@
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
- */
6
- import { EventSourcePolyfill } from 'event-source-polyfill';
7
- import { CONSOLE, getEndpointByOptions, } from './endpoints.const.js';
8
- export class ClustersService {
9
- static clustersStream(options) {
10
- const baseUrl = getEndpointByOptions({
11
- ...options,
12
- endpoint: CONSOLE,
13
- });
14
- const source = new EventSourcePolyfill(`${baseUrl}/external/events`, {
15
- headers: {
16
- authorization: `Bearer ${options.userToken}`,
17
- },
18
- heartbeatTimeout: 2 * 60 * 1000,
19
- });
20
- source.onmessage = (event) => {
21
- const data = JSON.parse(event.data);
22
- const clusterChangeEvent = new CustomEvent('clusterchange', {
23
- detail: data,
24
- });
25
- window.dispatchEvent(clusterChangeEvent);
26
- };
27
- source.onerror = (_error) => {
28
- console.log({ _error });
29
- };
30
- return source;
31
- }
32
- }
@@ -1,22 +0,0 @@
1
- export interface Endpoint {
2
- id: string;
3
- dev: string;
4
- int: string;
5
- prod: string;
6
- }
7
- export interface Endpoints {
8
- notifications?: string;
9
- accounts?: string;
10
- console?: string;
11
- }
12
- export declare const NOTIFICATIONS: Endpoint;
13
- export declare const ACCOUNTS: Endpoint;
14
- export declare const CONSOLE: Endpoint;
15
- export declare const STATUS: Endpoint;
16
- export type Stage = 'dev' | 'int' | 'prod';
17
- export declare function getEndpoint(stage: Stage, endpoint: Endpoint): string;
18
- export declare function getEndpointByOptions(options: {
19
- stage?: Stage;
20
- endpoints?: Endpoints;
21
- endpoint: Endpoint;
22
- }): string;
@@ -1,70 +0,0 @@
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
- */
6
- export const NOTIFICATIONS = {
7
- id: 'notifications',
8
- dev: 'https://notifications.cloud.dev.ultrawombat.com',
9
- int: 'https://notifications.cloud.ultrawombat.com',
10
- prod: 'https://notifications.cloud.camunda.io',
11
- };
12
- export const ACCOUNTS = {
13
- id: 'accounts',
14
- dev: 'https://accounts.cloud.dev.ultrawombat.com',
15
- int: 'https://accounts.cloud.ultrawombat.com',
16
- prod: 'https://accounts.cloud.camunda.io',
17
- };
18
- export const CONSOLE = {
19
- id: 'console',
20
- dev: 'https://console.cloud.dev.ultrawombat.com',
21
- int: 'https://console.cloud.ultrawombat.com',
22
- prod: 'https://console.cloud.camunda.io',
23
- };
24
- export const STATUS = {
25
- id: 'status',
26
- dev: 'https://camundaultrawombat.statuspage.io/',
27
- int: 'https://camundaultrawombat.statuspage.io/',
28
- prod: 'https://status.camunda.io',
29
- };
30
- export function getEndpoint(stage, endpoint) {
31
- switch (stage) {
32
- case 'dev':
33
- return endpoint.dev;
34
- case 'int':
35
- return endpoint.int;
36
- case 'prod':
37
- return endpoint.prod;
38
- default:
39
- throw new Error(`Unknown stage: ${stage}`);
40
- }
41
- }
42
- export function getEndpointByOptions(options) {
43
- switch (options.endpoint.id) {
44
- case 'notifications':
45
- if (options.endpoints?.notifications) {
46
- return options.endpoints.notifications;
47
- }
48
- else if (options.stage) {
49
- return getEndpoint(options.stage, options.endpoint);
50
- }
51
- break;
52
- case 'accounts':
53
- if (options.endpoints?.accounts) {
54
- return options.endpoints.accounts;
55
- }
56
- else if (options.stage) {
57
- return getEndpoint(options.stage, options.endpoint);
58
- }
59
- break;
60
- case 'console':
61
- if (options.endpoints?.console) {
62
- return options.endpoints.console;
63
- }
64
- else if (options.stage) {
65
- return getEndpoint(options.stage, options.endpoint);
66
- }
67
- break;
68
- }
69
- throw new Error(`Missing stage or notifications endpoint`);
70
- }
@@ -1,42 +0,0 @@
1
- import type { Persona, TileConfig, WpCardType } from '../components/c3-help-center/c3-help-center.types';
2
- import type { HelpCenterConfig } from '../components/c3-help-center/defaultHelpCenterConfig';
3
- import type { OnboardingConfig } from '../components/c3-onboarding-survey/defaultOnboardingConfig';
4
- import { type RequestPayload, type RequestResponse } from './api';
5
- export declare const getConfig: (accessToken: string, audience: string, orgId: string) => Promise<RequestResponse<HelpCenterConfig | null>>;
6
- export declare const getTiles: ({ accessToken, tileConfig, salesPlanType, clusterIds, persona, flags, cloudAudience, signal, }: {
7
- accessToken: string;
8
- tileConfig: TileConfig[];
9
- cloudAudience: string;
10
- persona: {
11
- [id: string]: unknown;
12
- };
13
- clusterIds: string[];
14
- salesPlanType: string;
15
- flags: string[];
16
- signal?: AbortSignal;
17
- }) => Promise<RequestResponse<WpCardType[]>>;
18
- export declare const getOnboardingConfig: ({ camundaAuth, audience, orgId, }: {
19
- audience: string;
20
- camundaAuth: RequestPayload["camundaAuth"];
21
- orgId: string;
22
- }) => Promise<RequestResponse<OnboardingConfig>>;
23
- export declare const updatePersona: ({ newPersona, audience, accessToken, orgId, userId, }: {
24
- newPersona: Persona;
25
- audience: string;
26
- orgId: string;
27
- userId: string;
28
- accessToken: string;
29
- }) => Promise<RequestResponse<undefined>>;
30
- export declare const submitSurvey: ({ audience, token, data, }: {
31
- audience: string;
32
- token: string;
33
- data: Persona & {
34
- email: string;
35
- orgUuid: string;
36
- };
37
- }) => Promise<RequestResponse<undefined>>;
38
- export declare const submitFeedback: ({ token, audience, formData, }: {
39
- token: string;
40
- audience: string;
41
- formData: FormData;
42
- }) => Promise<RequestResponse<undefined>>;
@@ -1,56 +0,0 @@
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
- */
6
- import { recommendations } from '../components/c3-help-center/recommendations.js';
7
- import { request } from './api.js';
8
- export const getConfig = async (accessToken, audience, orgId) => {
9
- return await request({
10
- url: `https://helpcenter.${audience}/helpcenter/config/${orgId}`,
11
- camundaAuth: {
12
- token: accessToken,
13
- },
14
- });
15
- };
16
- export const getTiles = async ({ accessToken, tileConfig, salesPlanType, clusterIds, persona, flags, cloudAudience, signal, }) => {
17
- const availableTileTypes = recommendations(persona, flags, tileConfig, salesPlanType, clusterIds?.length > 0);
18
- if (availableTileTypes.length) {
19
- return await request({
20
- url: `https://helpcenter.${cloudAudience}/cards?card_id=${availableTileTypes.join(',')}`,
21
- responseType: 'json',
22
- camundaAuth: { token: accessToken },
23
- signal,
24
- });
25
- }
26
- return { success: true };
27
- };
28
- export const getOnboardingConfig = ({ camundaAuth, audience, orgId, }) => request({
29
- url: `https://helpcenter.${audience}/survey/config/${orgId}`,
30
- camundaAuth,
31
- type: 'json',
32
- });
33
- export const updatePersona = async ({ newPersona, audience, accessToken, orgId, userId, }) => request({
34
- url: `https://helpcenter.${audience}/persona`,
35
- method: 'patch',
36
- camundaAuth: { token: accessToken },
37
- type: 'json',
38
- body: { persona: newPersona, userId, orgId },
39
- responseType: 'text',
40
- });
41
- export const submitSurvey = async ({ audience, token, data, }) => request({
42
- method: 'post',
43
- url: `https://helpcenter.${audience}/survey/submit`,
44
- camundaAuth: { token },
45
- type: 'json',
46
- body: { data },
47
- responseType: 'text',
48
- });
49
- export const submitFeedback = async ({ token, audience, formData, }) => request({
50
- method: 'post',
51
- url: `https://helpcenter.${audience}/feedback/submit`,
52
- camundaAuth: { token },
53
- body: formData,
54
- type: 'form',
55
- responseType: 'text',
56
- });
@@ -1,5 +0,0 @@
1
- export declare class JWTUtils {
2
- static decode(token: string): any;
3
- static getExpiration(token: string): number;
4
- static isExpired(token: string): boolean;
5
- }
@@ -1,26 +0,0 @@
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
- */
6
- export class JWTUtils {
7
- static decode(token) {
8
- const base64Url = token.split('.')[1];
9
- const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
10
- const jsonPayload = decodeURIComponent(window
11
- .atob(base64)
12
- .split('')
13
- .map((c) => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))
14
- .join(''));
15
- return JSON.parse(jsonPayload);
16
- }
17
- static getExpiration(token) {
18
- const decoded = JWTUtils.decode(token);
19
- return decoded.exp;
20
- }
21
- static isExpired(token) {
22
- const expiration = JWTUtils.getExpiration(token);
23
- const now = new Date().getTime() / 1000;
24
- return expiration < now;
25
- }
26
- }
@@ -1,41 +0,0 @@
1
- import type { C3NotificationsProps } from '../components/c3-navigation/c3-navigation.types';
2
- import { type RequestResponse } from './api';
3
- export interface Notification {
4
- uuid: string;
5
- userId?: string;
6
- orgId?: string;
7
- timestamp: number;
8
- source: string;
9
- type: string;
10
- title: string;
11
- description: string;
12
- state: string;
13
- meta?: {
14
- identifier?: string;
15
- href?: string;
16
- label?: string;
17
- entity?: {
18
- id: string;
19
- type: string;
20
- };
21
- parentEntity?: {
22
- id: string;
23
- type: string;
24
- };
25
- };
26
- }
27
- export type AnalyticsEvent = 'notification-panel-opened' | 'notification-clicked-cta';
28
- export declare class NotificationService {
29
- static getNotifications(options: C3NotificationsProps): Promise<RequestResponse<Notification[]>>;
30
- static sendAnalyticsEvent(options: C3NotificationsProps, eventOptions: {
31
- event: AnalyticsEvent;
32
- id?: string;
33
- }): void;
34
- static changeState(options: C3NotificationsProps, notificationId: string, operation: 'read' | 'dismiss'): void;
35
- static markManyAsRead(options: C3NotificationsProps, notificationIds: string[]): void;
36
- static dismissAll(options: C3NotificationsProps, orgId: string): void;
37
- static notificationsStream(options: C3NotificationsProps, handler: (notification: Notification) => void): void;
38
- static updateNotifications(allNotifications: Notification[], newNotification: Notification): Notification[];
39
- static updateNotificationState(allNotifications: Notification[], notificationId: string, newState: 'read' | 'dismiss'): Notification[];
40
- static updateNotificationStates(allNotifications: Notification[], notificationIds: string[], newState: 'read' | 'dismiss'): Notification[];
41
- }