@salesforce/metadata-core-sdk 1.2.0 → 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.
- package/dist/sdk/components/LegendPanel/LegendPanel.css +51 -0
- package/dist/sdk/components/LegendPanel/LegendPanel.d.ts +24 -0
- package/dist/sdk/components/LegendPanel/LegendPanel.d.ts.map +1 -0
- package/dist/sdk/components/LegendPanel/LegendPanel.js +14 -0
- package/dist/sdk/components/LegendPanel/LegendPanel.js.map +1 -0
- package/dist/sdk/components/LegendPanel/index.d.ts +9 -0
- package/dist/sdk/components/LegendPanel/index.d.ts.map +1 -0
- package/dist/sdk/components/LegendPanel/index.js +8 -0
- package/dist/sdk/components/LegendPanel/index.js.map +1 -0
- package/dist/sdk/components/ZoomBar/ZoomBar.css +66 -0
- package/dist/sdk/components/ZoomBar/ZoomBar.d.ts +14 -0
- package/dist/sdk/components/ZoomBar/ZoomBar.d.ts.map +1 -0
- package/dist/sdk/components/ZoomBar/ZoomBar.js +62 -0
- package/dist/sdk/components/ZoomBar/ZoomBar.js.map +1 -0
- package/dist/sdk/components/ZoomBar/index.d.ts +9 -0
- package/dist/sdk/components/ZoomBar/index.d.ts.map +1 -0
- package/dist/sdk/components/ZoomBar/index.js +8 -0
- package/dist/sdk/components/ZoomBar/index.js.map +1 -0
- package/dist/sdk/components/index.d.ts +11 -0
- package/dist/sdk/components/index.d.ts.map +1 -0
- package/dist/sdk/components/index.js +9 -0
- package/dist/sdk/components/index.js.map +1 -0
- package/dist/sdk/utils/HostCommunicationUtils.d.ts.map +1 -1
- package/dist/sdk/utils/HostCommunicationUtils.js +25 -6
- package/dist/sdk/utils/HostCommunicationUtils.js.map +1 -1
- package/package.json +28 -1
|
@@ -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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AAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,GACrB;oBACF,8BACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,KAAK,EACR,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,GACrB,CACE,CACC;YACR,MAAM,IAAI,UAAU,IAAI,MAAM,CAC3B,CACA,CACT,CAAC;AACJ,CAAC,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.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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostCommunicationUtils.d.ts","sourceRoot":"","sources":["../../../src/sdk/utils/HostCommunicationUtils.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAsB,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKnG;;;GAGG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,0BAA0B,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;KAChE;CACF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAqC3D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,aAAa,CAAC,SAAS,GAAE,MAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAqDhG;
|
|
1
|
+
{"version":3,"file":"HostCommunicationUtils.d.ts","sourceRoot":"","sources":["../../../src/sdk/utils/HostCommunicationUtils.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAsB,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKnG;;;GAGG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,0BAA0B,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;KAChE;CACF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAqC3D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,aAAa,CAAC,SAAS,GAAE,MAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAqDhG;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAAG,MAAM,IAAI,CAkBrF"}
|
|
@@ -126,21 +126,40 @@ export async function getPluginData(timeoutMs = 5000) {
|
|
|
126
126
|
* Reject `message` events whose source isn't a trusted host.
|
|
127
127
|
*
|
|
128
128
|
* Trusted sources:
|
|
129
|
-
* - `window.parent` — the iframe host (web adapter case).
|
|
130
129
|
* - `null` — native host bridges that synthesize message events without an
|
|
131
|
-
* originating window (
|
|
130
|
+
* originating window (some embedders).
|
|
131
|
+
* - `window.parent` (when in an iframe) — the iframe host (web adapter case).
|
|
132
|
+
* - `window` itself (when at top level, i.e. `window.parent === window`) —
|
|
133
|
+
* VS Code's `webview.postMessage` delivers responses with `event.source`
|
|
134
|
+
* set to the webview's own window. There's no opener/parent that could
|
|
135
|
+
* forge messages in this context, so accepting self as the source is safe.
|
|
132
136
|
*
|
|
133
|
-
* Anything else (sibling iframes, popups
|
|
134
|
-
*
|
|
135
|
-
*
|
|
137
|
+
* Anything else (sibling iframes, popups) is dropped silently. The check has
|
|
138
|
+
* to live on the receive side because postMessage targetOrigin only
|
|
139
|
+
* constrains the recipient's origin, not the sender's.
|
|
136
140
|
*/
|
|
137
141
|
function isTrustedHostMessage(event) {
|
|
138
142
|
if (event.source === null) {
|
|
139
143
|
return true;
|
|
140
144
|
}
|
|
141
|
-
if (typeof window
|
|
145
|
+
if (typeof window === 'undefined') {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
if (window.parent !== window && event.source === window.parent) {
|
|
142
149
|
return true;
|
|
143
150
|
}
|
|
151
|
+
if (window.parent === window) {
|
|
152
|
+
// Top-level context (VS Code webview, native host). No iframe parent, no
|
|
153
|
+
// sibling frames, no popups — the only senders that can postMessage here
|
|
154
|
+
// are this window itself or a host bridge that wraps it. VS Code in
|
|
155
|
+
// particular delivers `webview.postMessage` responses with `event.source`
|
|
156
|
+
// pointing at a cross-realm `WindowProxy` for this window, so identity
|
|
157
|
+
// (`event.source === window`) fails. Trust any `Window`-typed source.
|
|
158
|
+
const ctor = event.source?.constructor?.name;
|
|
159
|
+
if (ctor === 'Window') {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
144
163
|
return false;
|
|
145
164
|
}
|
|
146
165
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostCommunicationUtils.js","sourceRoot":"","sources":["../../../src/sdk/utils/HostCommunicationUtils.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,kBAAkB,EAAsC,MAAM,2BAA2B,CAAC;AAEnG,0EAA0E;AAC1E,IAAI,yBAAyB,GAA8C,IAAI,CAAC;AAYhF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAC,OAAuB;IAChD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,4DAA4D;IAC5D,IAAI,OAAO,MAAM,CAAC,0BAA0B,KAAK,UAAU,EAAE,CAAC;QAC5D,IAAI,CAAC;YACH,MAAM,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;YAC3C,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sCAAsC;YACtC,OAAO,CAAC,KAAK,CAAC,4DAA4D,EAAE,KAAK,CAAC,CAAC;YACnF,oCAAoC;QACtC,CAAC;IACH,CAAC;IAED,kDAAkD;IAClD,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,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AAC,CAAC;IAEnD,8BAA8B;IAC9B,OAAO,GAAG,EAAE;QACV,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACxD,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/metadata-core-sdk",
|
|
3
|
-
"version": "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",
|