@salesforce/metadata-core-sdk 1.2.1 → 1.3.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.
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+
8
+ .mv-legend-panel {
9
+ position: absolute;
10
+ bottom: 100%;
11
+ right: 0;
12
+ margin-bottom: var(--mv-spacing-xs);
13
+ width: 200px;
14
+ background: var(--mv-panel-bg);
15
+ border: 1px solid var(--mv-panel-border);
16
+ border-radius: var(--mv-radius-lg);
17
+ box-shadow: var(--mv-shadow-lg);
18
+ z-index: 100;
19
+ overflow: hidden;
20
+ }
21
+
22
+ .mv-legend-panel__header {
23
+ padding: var(--mv-spacing-sm) var(--mv-spacing-md);
24
+ font-size: var(--mv-font-size-xs);
25
+ font-weight: var(--mv-font-weight-semibold);
26
+ color: var(--mv-text-secondary);
27
+ letter-spacing: 0.5px;
28
+ text-transform: uppercase;
29
+ border-bottom: 1px solid var(--mv-separator);
30
+ }
31
+
32
+ .mv-legend-panel__body {
33
+ padding: var(--mv-spacing-sm) 0;
34
+ }
35
+
36
+ .mv-legend-panel__item {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: var(--mv-spacing-md);
40
+ padding: var(--mv-spacing-sm) var(--mv-spacing-md);
41
+ font-size: var(--mv-font-size-sm);
42
+ color: var(--mv-text-primary);
43
+ }
44
+
45
+ .mv-legend-panel__icon {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ width: 28px;
50
+ flex-shrink: 0;
51
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ import React from 'react';
8
+ import './LegendPanel.css';
9
+ export interface LegendItem {
10
+ /** Stable key for React list rendering. */
11
+ key: string;
12
+ /** Visual marker (swatch, line, svg, etc.) rendered in the icon slot. */
13
+ icon: React.ReactNode;
14
+ /** Label text shown to the right of the icon. */
15
+ label: string;
16
+ }
17
+ export interface LegendPanelProps {
18
+ /** Items to render. Each item provides its own icon node. */
19
+ items: LegendItem[];
20
+ /** Optional header text. Defaults to "LEGEND". */
21
+ header?: string;
22
+ }
23
+ export declare const LegendPanel: React.FC<LegendPanelProps>;
24
+ //# sourceMappingURL=LegendPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendPanel.d.ts","sourceRoot":"","sources":["../../../../src/sdk/components/LegendPanel/LegendPanel.tsx"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,yEAAyE;IACzE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,6DAA6D;IAC7D,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYlD,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ import React from 'react';
8
+ import './LegendPanel.css';
9
+ export const LegendPanel = ({ items, header = 'LEGEND' }) => (React.createElement("div", { className: "mv-legend-panel" },
10
+ React.createElement("div", { className: "mv-legend-panel__header" }, header),
11
+ React.createElement("div", { className: "mv-legend-panel__body" }, items.map((item) => (React.createElement("div", { key: item.key, className: "mv-legend-panel__item" },
12
+ React.createElement("span", { className: "mv-legend-panel__icon" }, item.icon),
13
+ item.label))))));
14
+ //# sourceMappingURL=LegendPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendPanel.js","sourceRoot":"","sources":["../../../../src/sdk/components/LegendPanel/LegendPanel.tsx"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAkB3B,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvF,6BAAK,SAAS,EAAC,iBAAiB;IAC9B,6BAAK,SAAS,EAAC,yBAAyB,IAAE,MAAM,CAAO;IACvD,6BAAK,SAAS,EAAC,uBAAuB,IACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,6BAAK,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,SAAS,EAAC,uBAAuB;QACnD,8BAAM,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAC,IAAI,CAAQ;QACzD,IAAI,CAAC,KAAK,CACP,CACP,CAAC,CACE,CACF,CACP,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { LegendPanel } from './LegendPanel.js';
8
+ export type { LegendItem, LegendPanelProps } from './LegendPanel.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/components/LegendPanel/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { LegendPanel } from './LegendPanel.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/components/LegendPanel/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+
8
+ .mv-zoom-bar {
9
+ position: relative;
10
+ background: var(--mv-panel-bg);
11
+ border-radius: var(--mv-radius-sm);
12
+ padding: var(--mv-spacing-xs) var(--mv-spacing-sm);
13
+ box-shadow: var(--mv-shadow-md);
14
+ border: 1px solid var(--mv-panel-border);
15
+ display: flex;
16
+ align-items: center;
17
+ gap: var(--mv-spacing-xs);
18
+ }
19
+
20
+ .mv-zoom-bar__btn {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 28px;
25
+ height: 28px;
26
+ border: none;
27
+ border-radius: var(--mv-radius-md);
28
+ background: transparent;
29
+ color: var(--mv-text-secondary);
30
+ cursor: pointer;
31
+ padding: 0;
32
+ transition:
33
+ background var(--mv-transition-fast),
34
+ color var(--mv-transition-fast);
35
+ }
36
+
37
+ .mv-zoom-bar__btn:hover {
38
+ background: var(--mv-bg-surface-hover);
39
+ color: var(--mv-text-primary);
40
+ }
41
+
42
+ .mv-zoom-bar__btn--active {
43
+ background: var(--mv-bg-surface-hover);
44
+ color: var(--mv-interactive-primary);
45
+ }
46
+
47
+ .mv-zoom-bar__btn--disabled {
48
+ opacity: 0.4;
49
+ cursor: not-allowed;
50
+ }
51
+
52
+ .mv-zoom-bar__level {
53
+ font-size: var(--mv-font-size-sm);
54
+ font-weight: var(--mv-font-weight-medium);
55
+ color: var(--mv-text-primary);
56
+ min-width: 40px;
57
+ text-align: center;
58
+ user-select: none;
59
+ }
60
+
61
+ .mv-zoom-bar__divider {
62
+ width: 1px;
63
+ height: 20px;
64
+ background: var(--mv-separator);
65
+ margin: 0 var(--mv-spacing-xs);
66
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ import React from 'react';
8
+ import './ZoomBar.css';
9
+ export interface ZoomBarProps {
10
+ /** Optional legend popover content. When provided, a legend toggle button is rendered. */
11
+ legend?: React.ReactNode;
12
+ }
13
+ export declare const ZoomBar: React.FC<ZoomBarProps>;
14
+ //# sourceMappingURL=ZoomBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoomBar.d.ts","sourceRoot":"","sources":["../../../../src/sdk/components/ZoomBar/ZoomBar.tsx"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,YAAY;IAC3B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwI1C,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ import React, { useEffect, useRef, useState } from 'react';
8
+ import { Panel, useReactFlow, useViewport } from '@xyflow/react';
9
+ import './ZoomBar.css';
10
+ export const ZoomBar = ({ legend }) => {
11
+ const { zoomIn, zoomOut } = useReactFlow();
12
+ const { zoom } = useViewport();
13
+ const [legendOpen, setLegendOpen] = useState(false);
14
+ const containerRef = useRef(null);
15
+ useEffect(() => {
16
+ if (!legendOpen)
17
+ return;
18
+ const handleClick = (e) => {
19
+ if (containerRef.current && !containerRef.current.contains(e.target)) {
20
+ setLegendOpen(false);
21
+ }
22
+ };
23
+ const handleKeyDown = (e) => {
24
+ if (e.key === 'Escape') {
25
+ setLegendOpen(false);
26
+ }
27
+ };
28
+ document.addEventListener('mousedown', handleClick);
29
+ document.addEventListener('keydown', handleKeyDown);
30
+ return () => {
31
+ document.removeEventListener('mousedown', handleClick);
32
+ document.removeEventListener('keydown', handleKeyDown);
33
+ };
34
+ }, [legendOpen]);
35
+ const zoomPercent = `${Math.round(zoom * 100)}%`;
36
+ return (React.createElement(Panel, { position: "bottom-right", style: { margin: 'var(--mv-spacing-md)', marginBottom: '60px' } },
37
+ React.createElement("div", { className: "mv-zoom-bar", ref: containerRef },
38
+ legend && (React.createElement(React.Fragment, null,
39
+ React.createElement("button", { className: `mv-zoom-bar__btn ${legendOpen ? 'mv-zoom-bar__btn--active' : ''}`, onClick: () => setLegendOpen(!legendOpen), "aria-label": "Legend", "aria-haspopup": "true", "aria-expanded": legendOpen },
40
+ React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
41
+ React.createElement("line", { x1: "6", y1: "3.5", x2: "14", y2: "3.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
42
+ React.createElement("line", { x1: "6", y1: "8", x2: "14", y2: "8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
43
+ React.createElement("line", { x1: "6", y1: "12.5", x2: "14", y2: "12.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
44
+ React.createElement("circle", { cx: "3", cy: "3.5", r: "1.5", fill: "currentColor" }),
45
+ React.createElement("circle", { cx: "3", cy: "8", r: "1.5", fill: "currentColor" }),
46
+ React.createElement("circle", { cx: "3", cy: "12.5", r: "1.5", fill: "currentColor" }))),
47
+ React.createElement("span", { className: "mv-zoom-bar__divider" }))),
48
+ React.createElement("button", { className: "mv-zoom-bar__btn", onClick: () => zoomOut(), "aria-label": "Zoom out" },
49
+ React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
50
+ React.createElement("circle", { cx: "7", cy: "7", r: "5.5", stroke: "currentColor", strokeWidth: "1.5" }),
51
+ React.createElement("line", { x1: "11", y1: "11", x2: "14", y2: "14", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
52
+ React.createElement("line", { x1: "4.5", y1: "7", x2: "9.5", y2: "7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }))),
53
+ React.createElement("span", { className: "mv-zoom-bar__level" }, zoomPercent),
54
+ React.createElement("button", { className: "mv-zoom-bar__btn", onClick: () => zoomIn(), "aria-label": "Zoom in" },
55
+ React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
56
+ React.createElement("circle", { cx: "7", cy: "7", r: "5.5", stroke: "currentColor", strokeWidth: "1.5" }),
57
+ React.createElement("line", { x1: "11", y1: "11", x2: "14", y2: "14", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
58
+ React.createElement("line", { x1: "4.5", y1: "7", x2: "9.5", y2: "7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
59
+ React.createElement("line", { x1: "7", y1: "4.5", x2: "7", y2: "9.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }))),
60
+ legend && legendOpen && legend)));
61
+ };
62
+ //# sourceMappingURL=ZoomBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoomBar.js","sourceRoot":"","sources":["../../../../src/sdk/components/ZoomBar/ZoomBar.tsx"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,eAAe,CAAC;AAOvB,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC;IAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,MAAM,WAAW,GAAG,CAAC,CAAa,EAAE,EAAE;YACpC,IAAI,YAAY,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAqB,CAAC,EAAE,CAAC;gBACpF,aAAa,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;QACH,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,CAAC,CAAgB,EAAE,EAAE;YACzC,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;gBACvB,aAAa,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;QACH,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
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { ZoomBar } from './ZoomBar.js';
8
+ export type { ZoomBarProps } from './ZoomBar.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/components/ZoomBar/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { ZoomBar } from './ZoomBar.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/components/ZoomBar/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2025, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { ZoomBar } from './ZoomBar/index.js';
8
+ export type { ZoomBarProps } from './ZoomBar/index.js';
9
+ export { LegendPanel } from './LegendPanel/index.js';
10
+ export type { LegendItem, LegendPanelProps } from './LegendPanel/index.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/components/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ **/
7
+ export { ZoomBar } from './ZoomBar/index.js';
8
+ export { LegendPanel } from './LegendPanel/index.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/components/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/metadata-core-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Core SDK with shared contracts and platform abstractions for visualization plugins",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,14 @@
14
14
  "types": "./dist/sdk/design-system/index.d.ts",
15
15
  "default": "./dist/sdk/design-system/index.js"
16
16
  },
17
+ "./components": {
18
+ "types": "./dist/sdk/components/index.d.ts",
19
+ "default": "./dist/sdk/components/index.js"
20
+ },
21
+ "./components/*": {
22
+ "types": "./dist/sdk/components/*",
23
+ "default": "./dist/sdk/components/*"
24
+ },
17
25
  "./test-helpers": {
18
26
  "types": "./dist/sdk/utils/test-helpers/index.d.ts",
19
27
  "default": "./dist/sdk/utils/test-helpers/index.js"
@@ -50,9 +58,28 @@
50
58
  "fast-xml-parser": "^5.5.8",
51
59
  "glob": "^11.0.0"
52
60
  },
61
+ "peerDependencies": {
62
+ "@xyflow/react": "^12.10.1",
63
+ "react": "^18.2.0",
64
+ "react-dom": "^18.2.0"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "@xyflow/react": {
68
+ "optional": true
69
+ },
70
+ "react": {
71
+ "optional": true
72
+ },
73
+ "react-dom": {
74
+ "optional": true
75
+ }
76
+ },
53
77
  "devDependencies": {
54
78
  "@types/jest": "^29.5.0",
55
79
  "@types/node": "^20.0.0",
80
+ "@types/react": "^18.3.31",
81
+ "@types/react-dom": "^18.3.7",
82
+ "@xyflow/react": "^12.11.0",
56
83
  "esbuild": "^0.27.2",
57
84
  "react": "^18.2.0",
58
85
  "react-dom": "^18.2.0",