@camunda/camunda-composite-components 0.1.1 → 0.1.2

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 (70) hide show
  1. package/README.md +60 -0
  2. package/lib/esm/api/api.d.ts +19 -19
  3. package/lib/esm/api/api.js +67 -65
  4. package/lib/esm/api/endpoints.const.d.ts +12 -12
  5. package/lib/esm/api/endpoints.const.js +25 -24
  6. package/lib/esm/api/jwt.utils.d.ts +3 -3
  7. package/lib/esm/api/jwt.utils.js +21 -23
  8. package/lib/esm/api/notifications.d.ts +35 -64
  9. package/lib/esm/api/notifications.js +159 -168
  10. package/lib/esm/components/c3-empty-state/c3-empty-state.d.ts +2 -9
  11. package/lib/esm/components/c3-empty-state/c3-empty-state.js +17 -58
  12. package/lib/esm/components/c3-empty-state/c3-empty-state.test.d.ts +1 -0
  13. package/lib/esm/components/c3-empty-state/c3-empty-state.test.js +12 -0
  14. package/lib/esm/components/c3-empty-state/c3-empty-state.types.d.ts +19 -19
  15. package/lib/esm/components/c3-empty-state/c3-empty-state.types.js +1 -1
  16. package/lib/esm/components/c3-navigation/c3-info-button.d.ts +3 -3
  17. package/lib/esm/components/c3-navigation/c3-info-button.js +5 -13
  18. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +5 -5
  19. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +13 -21
  20. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +10 -6
  21. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +1 -1
  22. package/lib/esm/components/c3-navigation/c3-navigation-appbar.d.ts +3 -3
  23. package/lib/esm/components/c3-navigation/c3-navigation-appbar.js +68 -157
  24. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +5 -5
  25. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +39 -62
  26. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +9 -10
  27. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +33 -56
  28. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +9 -9
  29. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +57 -110
  30. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +61 -72
  31. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +1 -1
  32. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +4 -4
  33. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +88 -142
  34. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.d.ts +5 -5
  35. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +51 -105
  36. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +24 -26
  37. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +25 -38
  38. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +5 -5
  39. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +57 -146
  40. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +2 -8
  41. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.js +4 -4
  42. package/lib/esm/components/c3-navigation/c3-navigation.d.ts +2 -14
  43. package/lib/esm/components/c3-navigation/c3-navigation.js +90 -214
  44. package/lib/esm/components/c3-navigation/c3-navigation.test.d.ts +1 -0
  45. package/lib/esm/components/c3-navigation/c3-navigation.test.js +80 -0
  46. package/lib/esm/components/c3-navigation/c3-navigation.types.d.ts +63 -70
  47. package/lib/esm/components/c3-navigation/c3-navigation.types.js +1 -1
  48. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +13 -30
  49. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.js +70 -114
  50. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +27 -29
  51. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +90 -118
  52. package/lib/esm/components/c3-navigation/helpers.d.ts +3 -5
  53. package/lib/esm/components/c3-navigation/helpers.js +49 -53
  54. package/lib/esm/components/c3-navigation/index.d.ts +2 -4
  55. package/lib/esm/components/c3-navigation/index.js +3 -3
  56. package/lib/esm/components/c3-navigation/story-helpers.d.ts +18 -24
  57. package/lib/esm/components/c3-navigation/story-helpers.js +197 -200
  58. package/lib/esm/components/c3-navigation/story-templates.d.ts +8 -8
  59. package/lib/esm/components/c3-navigation/story-templates.js +33 -66
  60. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.d.ts +16 -20
  61. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.js +4 -9
  62. package/lib/esm/components/test-utils.d.ts +3 -0
  63. package/lib/esm/components/test-utils.js +22 -0
  64. package/lib/esm/icons/c3-icons.d.ts +5 -8
  65. package/lib/esm/icons/c3-icons.js +14 -82
  66. package/lib/esm/icons/c3-icons.types.d.ts +1 -1
  67. package/lib/esm/icons/c3-icons.types.js +1 -1
  68. package/lib/esm/index.d.ts +9 -14
  69. package/lib/esm/index.js +4 -4
  70. package/package.json +30 -20
@@ -0,0 +1,22 @@
1
+ import fs from "fs";
2
+ import path from "path"; // Add this import
3
+ const STORYBOOK_DIR = path.resolve(__dirname, "../../storybook-static/");
4
+ /** Load Storybook story for Playwright testing */
5
+ export async function getStory(page, storyID) {
6
+ // Load stories.json
7
+ const storiesManifestPath = path.resolve(STORYBOOK_DIR, "stories.json");
8
+ if (!fs.existsSync(storiesManifestPath)) {
9
+ throw new Error("Could not find storybook-static/stories.json. Try rebuilding with `yarn build:storybook`");
10
+ }
11
+ const storiesManifest = JSON.parse(fs.readFileSync(storiesManifestPath, "utf8"));
12
+ // Find the specified story
13
+ const story = storiesManifest.stories[storyID];
14
+ if (!story) {
15
+ throw new Error(`Could not find story ID "${storyID}".`);
16
+ }
17
+ // Navigate to the specific story
18
+ const search = new URLSearchParams({ viewMode: "story", id: storyID });
19
+ await page.goto(`iframe?${search.toString()}`, {
20
+ waitUntil: "networkidle",
21
+ });
22
+ }
@@ -1,8 +1,5 @@
1
- /// <reference types="react" />
2
- import { C3IconProps } from "./c3-icons.types"
3
- export declare const C3AppMenuIcon: ({ size }: C3IconProps) => JSX.Element
4
- export declare const C3NotificationsUnreadIcon: ({
5
- size,
6
- }: C3IconProps) => JSX.Element
7
- export declare const C3BellIcon: ({ size }: C3IconProps) => JSX.Element
8
- export declare const CamundaLogo: () => JSX.Element
1
+ import { C3IconProps } from "./c3-icons.types";
2
+ export declare const C3AppMenuIcon: ({ size }: C3IconProps) => JSX.Element;
3
+ export declare const C3NotificationsUnreadIcon: ({ size }: C3IconProps) => JSX.Element;
4
+ export declare const C3BellIcon: ({ size }: C3IconProps) => JSX.Element;
5
+ export declare const CamundaLogo: () => JSX.Element;
@@ -1,82 +1,14 @@
1
- import React from "react"
2
- export const C3AppMenuIcon = ({ size }) =>
3
- React.createElement(
4
- "svg",
5
- {
6
- width: size,
7
- height: size,
8
- viewBox: `0 0 ${size} ${size}`,
9
- fill: "transparent",
10
- xmlns: "http://www.w3.org/2000/svg",
11
- },
12
- React.createElement("path", {
13
- fill: "transparent",
14
- style: { mixBlendMode: "multiply" },
15
- d: "M0 0h20v20H0z",
16
- }),
17
- React.createElement("path", {
18
- d: "M11.5 1h-3v3h3V1ZM4 1H1v3h3V1Zm15 0h-3v3h3V1Zm-7.5 7.5h-3v3h3v-3ZM4 8.5H1v3h3v-3Zm15 0h-3v3h3v-3ZM11.5 16h-3v3h3v-3ZM4 16H1v3h3v-3Zm15 0h-3v3h3v-3Z",
19
- }),
20
- )
21
- export const C3NotificationsUnreadIcon = ({ size }) =>
22
- React.createElement(
23
- "svg",
24
- {
25
- width: size,
26
- height: size,
27
- viewBox: `0 0 ${size} ${size}`,
28
- fill: "none",
29
- xmlns: "http://www.w3.org/2000/svg",
30
- },
31
- React.createElement("path", {
32
- fillRule: "evenodd",
33
- clipRule: "evenodd",
34
- d: "M10.625.857V.625h-1.25v1.282A6.258 6.258 0 0 0 3.75 8.125v2.241l-1.692 1.692a.625.625 0 0 0-.183.442v1.875A.625.625 0 0 0 2.5 15h4.375v.486a3.22 3.22 0 0 0 2.813 3.249 3.129 3.129 0 0 0 3.437-3.11V15H17.5a.624.624 0 0 0 .625-.625V12.5a.625.625 0 0 0-.183-.442l-.939-.939a6.174 6.174 0 0 1-1.46.308l1.332 1.332v.991H3.125v-.991l1.692-1.692A.625.625 0 0 0 5 10.625v-2.5a5 5 0 0 1 4.148-4.927A6.202 6.202 0 0 1 10.625.857Zm5.625 9.235V8.125a6.258 6.258 0 0 0-5.044-6.131 5.003 5.003 0 0 0-.743 1.152A5 5 0 0 1 15 8.125v2.125c.432 0 .85-.055 1.25-.158Zm-4.924 6.859c.351-.352.549-.829.549-1.326V15h-3.75v.625a1.875 1.875 0 0 0 3.2 1.326Z",
35
- fill: "$icon-primary",
36
- }),
37
- React.createElement("path", {
38
- d: "M15 10.25a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",
39
- style: { fill: "var(--cds-link-primary)" },
40
- }),
41
- )
42
- export const C3BellIcon = ({ size }) =>
43
- React.createElement(
44
- "svg",
45
- {
46
- width: size,
47
- height: size,
48
- viewBox: `0 0 ${size} ${size}`,
49
- fill: "transparent",
50
- xmlns: "http://www.w3.org/2000/svg",
51
- },
52
- React.createElement("path", {
53
- d: "M50.2373 33.7627L45.5 29.0253V22.75C45.4944 18.4134 43.881 14.2329 40.9718 11.0169C38.0626 7.80093 34.0643 5.77786 29.75 5.3389V1.75H26.25V5.3389C21.9357 5.77786 17.9374 7.80093 15.0282 11.0169C12.119 14.2329 10.5056 18.4134 10.5 22.75V29.0253L5.76275 33.7627C5.60018 33.9252 5.47122 34.118 5.38324 34.3303C5.29526 34.5426 5.24998 34.7702 5.25 35V40.25C5.25 40.7141 5.43437 41.1592 5.76256 41.4874C6.09075 41.8156 6.53587 42 7 42H19.25V43.75C19.25 46.0706 20.1719 48.2962 21.8128 49.9372C23.4538 51.5781 25.6794 52.5 28 52.5C30.3206 52.5 32.5462 51.5781 34.1872 49.9372C35.8281 48.2962 36.75 46.0706 36.75 43.75V42H49C49.4641 42 49.9092 41.8156 50.2374 41.4874C50.5656 41.1592 50.75 40.7141 50.75 40.25V35C50.75 34.7702 50.7047 34.5426 50.6168 34.3303C50.5288 34.118 50.3998 33.9252 50.2373 33.7627ZM33.25 43.75C33.25 45.1424 32.6969 46.4777 31.7123 47.4623C30.7277 48.4469 29.3924 49 28 49C26.6076 49 25.2723 48.4469 24.2877 47.4623C23.3031 46.4777 22.75 45.1424 22.75 43.75V42H33.25V43.75Z",
54
- fill: "#FF8201",
55
- }),
56
- )
57
- export const CamundaLogo = () =>
58
- React.createElement(
59
- "svg",
60
- {
61
- xmlns: "http://www.w3.org/2000/svg",
62
- width: "24",
63
- height: "24",
64
- viewBox: "0 0 24 24",
65
- fill: "none",
66
- },
67
- React.createElement("title", null, "Camunda logo"),
68
- React.createElement("rect", {
69
- width: "24",
70
- height: "24",
71
- rx: "3",
72
- style: { fill: "var(--cds-icon-primary)" },
73
- }),
74
- React.createElement("path", {
75
- d: "M11.986 15.585c1.824 0 2.762-1.075 2.776-2.967v-1.564h-1.755v1.687c0 .844-.368 1.143-.966 1.143-.585 0-.966-.3-.966-1.143V6.364c0-.843.367-1.17.966-1.156.585 0 .966.326.966 1.17v1.261h1.755V6.496c0-1.891-.94-2.965-2.762-2.965-1.823 0-2.764 1.074-2.776 2.965v6.136c0 1.864.943 2.953 2.762 2.953Z",
76
- style: { fill: "var(--cds-text-inverse)" },
77
- }),
78
- React.createElement("path", {
79
- d: "M14.762 17.312H9.224v3.13h5.538v-3.13Z",
80
- fill: "#FC5D0D",
81
- }),
82
- )
1
+ import React from "react";
2
+ export const C3AppMenuIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg" },
3
+ React.createElement("path", { fill: "transparent", style: { mixBlendMode: "multiply" }, d: "M0 0h20v20H0z" }),
4
+ React.createElement("path", { d: "M11.5 1h-3v3h3V1ZM4 1H1v3h3V1Zm15 0h-3v3h3V1Zm-7.5 7.5h-3v3h3v-3ZM4 8.5H1v3h3v-3Zm15 0h-3v3h3v-3ZM11.5 16h-3v3h3v-3ZM4 16H1v3h3v-3Zm15 0h-3v3h3v-3Z" })));
5
+ export const C3NotificationsUnreadIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.625.857V.625h-1.25v1.282A6.258 6.258 0 0 0 3.75 8.125v2.241l-1.692 1.692a.625.625 0 0 0-.183.442v1.875A.625.625 0 0 0 2.5 15h4.375v.486a3.22 3.22 0 0 0 2.813 3.249 3.129 3.129 0 0 0 3.437-3.11V15H17.5a.624.624 0 0 0 .625-.625V12.5a.625.625 0 0 0-.183-.442l-.939-.939a6.174 6.174 0 0 1-1.46.308l1.332 1.332v.991H3.125v-.991l1.692-1.692A.625.625 0 0 0 5 10.625v-2.5a5 5 0 0 1 4.148-4.927A6.202 6.202 0 0 1 10.625.857Zm5.625 9.235V8.125a6.258 6.258 0 0 0-5.044-6.131 5.003 5.003 0 0 0-.743 1.152A5 5 0 0 1 15 8.125v2.125c.432 0 .85-.055 1.25-.158Zm-4.924 6.859c.351-.352.549-.829.549-1.326V15h-3.75v.625a1.875 1.875 0 0 0 3.2 1.326Z", fill: "$icon-primary" }),
7
+ React.createElement("path", { d: "M15 10.25a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z", style: { fill: "var(--cds-link-primary)" } })));
8
+ export const C3BellIcon = ({ size }) => (React.createElement("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, fill: "transparent", xmlns: "http://www.w3.org/2000/svg" },
9
+ React.createElement("path", { d: "M50.2373 33.7627L45.5 29.0253V22.75C45.4944 18.4134 43.881 14.2329 40.9718 11.0169C38.0626 7.80093 34.0643 5.77786 29.75 5.3389V1.75H26.25V5.3389C21.9357 5.77786 17.9374 7.80093 15.0282 11.0169C12.119 14.2329 10.5056 18.4134 10.5 22.75V29.0253L5.76275 33.7627C5.60018 33.9252 5.47122 34.118 5.38324 34.3303C5.29526 34.5426 5.24998 34.7702 5.25 35V40.25C5.25 40.7141 5.43437 41.1592 5.76256 41.4874C6.09075 41.8156 6.53587 42 7 42H19.25V43.75C19.25 46.0706 20.1719 48.2962 21.8128 49.9372C23.4538 51.5781 25.6794 52.5 28 52.5C30.3206 52.5 32.5462 51.5781 34.1872 49.9372C35.8281 48.2962 36.75 46.0706 36.75 43.75V42H49C49.4641 42 49.9092 41.8156 50.2374 41.4874C50.5656 41.1592 50.75 40.7141 50.75 40.25V35C50.75 34.7702 50.7047 34.5426 50.6168 34.3303C50.5288 34.118 50.3998 33.9252 50.2373 33.7627ZM33.25 43.75C33.25 45.1424 32.6969 46.4777 31.7123 47.4623C30.7277 48.4469 29.3924 49 28 49C26.6076 49 25.2723 48.4469 24.2877 47.4623C23.3031 46.4777 22.75 45.1424 22.75 43.75V42H33.25V43.75Z", fill: "#FF8201" })));
10
+ export const CamundaLogo = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
11
+ React.createElement("title", null, "Camunda logo"),
12
+ React.createElement("rect", { width: "24", height: "24", rx: "3", style: { fill: "var(--cds-icon-primary)" } }),
13
+ React.createElement("path", { d: "M11.986 15.585c1.824 0 2.762-1.075 2.776-2.967v-1.564h-1.755v1.687c0 .844-.368 1.143-.966 1.143-.585 0-.966-.3-.966-1.143V6.364c0-.843.367-1.17.966-1.156.585 0 .966.326.966 1.17v1.261h1.755V6.496c0-1.891-.94-2.965-2.762-2.965-1.823 0-2.764 1.074-2.776 2.965v6.136c0 1.864.943 2.953 2.762 2.953Z", style: { fill: "var(--cds-text-inverse)" } }),
14
+ React.createElement("path", { d: "M14.762 17.312H9.224v3.13h5.538v-3.13Z", fill: "#FC5D0D" })));
@@ -1,3 +1,3 @@
1
1
  export interface C3IconProps {
2
- size: number
2
+ size: number;
3
3
  }
@@ -1 +1 @@
1
- export {}
1
+ export {};
@@ -1,14 +1,9 @@
1
- export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state"
2
- export { C3EmptyStateProps } from "./components/c3-empty-state/c3-empty-state.types"
3
- export { default as C3Navigation } from "./components/c3-navigation"
4
- export {
5
- C3NavigationAppProps,
6
- C3NavigationElementProps,
7
- C3NavigationNavBarProps,
8
- C3NavigationProps,
9
- } from "./components/c3-navigation/c3-navigation.types"
10
- export { C3NavigationSideBarBaseProps } from "./components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types"
11
- export { C3AppMenuIcon } from "./icons/c3-icons"
12
- export { C3IconProps } from "./icons/c3-icons.types"
13
- export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider"
14
- export { C3UserConfiguration } from "./components/c3-user-configuration/c3-user-configuration-provider"
1
+ export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state";
2
+ export { C3EmptyStateProps } from "./components/c3-empty-state/c3-empty-state.types";
3
+ export { default as C3Navigation } from "./components/c3-navigation";
4
+ export { C3NavigationAppProps, C3NavigationElementProps, C3NavigationNavBarProps, C3NavigationProps, } from "./components/c3-navigation/c3-navigation.types";
5
+ export { C3NavigationSideBarBaseProps } from "./components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types";
6
+ export { C3AppMenuIcon } from "./icons/c3-icons";
7
+ export { C3IconProps } from "./icons/c3-icons.types";
8
+ export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider";
9
+ export { C3UserConfiguration } from "./components/c3-user-configuration/c3-user-configuration-provider";
package/lib/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state"
2
- export { default as C3Navigation } from "./components/c3-navigation"
3
- export { C3AppMenuIcon } from "./icons/c3-icons"
4
- export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider"
1
+ export { C3EmptyState } from "./components/c3-empty-state/c3-empty-state";
2
+ export { default as C3Navigation } from "./components/c3-navigation";
3
+ export { C3AppMenuIcon } from "./icons/c3-icons";
4
+ export { default as C3UserConfigurationProvider } from "./components/c3-user-configuration/c3-user-configuration-provider";
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@camunda/camunda-composite-components",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "scripts": {
5
5
  "clean": "rimraf lib/",
6
- "copy-css-files": "copyfiles -u 1 src/components/**/*.css lib/esm",
7
- "build": "yarn clean && tsc && yarn copy-css-files",
6
+ "build": "yarn clean && tsc",
8
7
  "storybook": "storybook dev -p 6006",
9
8
  "start": "yarn storybook",
10
- "build-storybook": "storybook build",
9
+ "build:storybook": "storybook build",
10
+ "serve:storybook": "serve ./storybook-static -p 8081 -n -L",
11
11
  "prepare": "husky install",
12
12
  "format": "prettier --write .",
13
13
  "lint": "eslint src/",
@@ -15,15 +15,23 @@
15
15
  "test:ts": "tsc --noEmit --project ./tsconfig.json",
16
16
  "test:storybook": "TEST_A11Y=true test-storybook",
17
17
  "test:storybook:smoke": "test-storybook",
18
- "test": "yarn test:ts && yarn test:storybook"
18
+ "start:docker-storybook": "yarn build:storybook && docker run --rm --network host -v $(pwd):/work/ -w /work/ -it --name c3-visual-regression mcr.microsoft.com/playwright:v1.37.0 yarn serve:storybook",
19
+ "test:visual-regression": "wait-on http://localhost:8081 && PWTEST_SKIP_TEST_OUTPUT=1 yarn playwright test",
20
+ "test:visual-regression:ui": "yarn test:playwright --ui",
21
+ "report:visual-regression": "yarn playwright show-report",
22
+ "update:visual-regression": "yarn playwright test --update-snapshots",
23
+ "test:visual-regression:docker": "docker exec -it -t c3-visual-regression yarn test:visual-regression",
24
+ "update:visual-regression:docker": "docker exec -it -t c3-visual-regression yarn update:visual-regression",
25
+ "test": "yarn test:ts && yarn test:storybook && yarn test:visual-regression:docker"
19
26
  },
20
27
  "devDependencies": {
21
- "@babel/core": "7.19.6",
22
- "@babel/preset-env": "7.22.4",
23
- "@babel/preset-react": "7.22.3",
24
- "@babel/preset-typescript": "7.21.5",
25
- "@carbon/react": "1.34.1",
28
+ "@babel/core": "7.22.10",
29
+ "@babel/preset-env": "7.22.10",
30
+ "@babel/preset-react": "7.22.5",
31
+ "@babel/preset-typescript": "7.22.5",
32
+ "@carbon/react": "1.35.0",
26
33
  "@mdx-js/react": "1.6.22",
34
+ "@playwright/test": "1.37.0",
27
35
  "@storybook/addon-a11y": "7.0.18",
28
36
  "@storybook/addon-actions": "7.0.18",
29
37
  "@storybook/addon-docs": "7.0.18",
@@ -34,10 +42,10 @@
34
42
  "@storybook/preset-scss": "1.0.3",
35
43
  "@storybook/react": "7.0.18",
36
44
  "@storybook/react-webpack5": "7.0.18",
37
- "@storybook/test-runner": "0.10.0",
38
- "@storybook/testing-library": "0.1.0",
45
+ "@storybook/test-runner": "0.13.0",
46
+ "@storybook/testing-library": "0.2.0",
39
47
  "@types/carbon-components-react": "7.55.2",
40
- "@types/event-source-polyfill": "1.0.0",
48
+ "@types/event-source-polyfill": "1.0.1",
41
49
  "@types/node": "18.11.5",
42
50
  "@types/react": "18.0.22",
43
51
  "@types/react-dom": "18.0.7",
@@ -54,19 +62,21 @@
54
62
  "eslint-plugin-prettier": "4.2.1",
55
63
  "eslint-plugin-react": "7.31.10",
56
64
  "eslint-plugin-react-hooks": "4.6.0",
57
- "eslint-plugin-storybook": "0.6.12",
65
+ "eslint-plugin-storybook": "0.6.13",
58
66
  "event-source-polyfill": "1.0.31",
59
- "husky": "8.0.0",
60
- "prettier": "2.7.1",
67
+ "husky": "8.0.3",
68
+ "prettier": "2.8.8",
61
69
  "react": "18.2.0",
62
70
  "react-dom": "18.2.0",
63
71
  "rimraf": "3.0.2",
64
72
  "sass": "1.55.0",
65
73
  "sass-loader": "13.1.0",
74
+ "serve": "14.2.0",
66
75
  "storybook": "7.0.18",
67
- "style-loader": "3.3.1",
68
- "styled-components": "5.3.6",
69
- "typescript": "4.8.4"
76
+ "style-loader": "3.3.3",
77
+ "styled-components": "5.3.11",
78
+ "typescript": "4.8.4",
79
+ "wait-on": "7.0.1"
70
80
  },
71
81
  "peerDependencies": {
72
82
  "@carbon/react": "1.x",
@@ -83,5 +93,5 @@
83
93
  ],
84
94
  "author": "Camunda",
85
95
  "license": "Apache-2.0",
86
- "packageManager": "yarn@3.2.1"
96
+ "packageManager": "yarn@3.6.1"
87
97
  }