@salesforce/metadata-core-sdk 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/index.d.ts +5 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +26 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/contracts/core/IMetadataParser.d.ts +39 -0
  6. package/dist/sdk/contracts/core/IMetadataParser.d.ts.map +1 -1
  7. package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts +39 -9
  8. package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts.map +1 -1
  9. package/dist/sdk/contracts/types/SelectableNode.d.ts +62 -0
  10. package/dist/sdk/contracts/types/SelectableNode.d.ts.map +1 -0
  11. package/dist/sdk/contracts/types/SelectableNode.js +8 -0
  12. package/dist/sdk/contracts/types/SelectableNode.js.map +1 -0
  13. package/dist/sdk/contracts/types/index.d.ts +1 -0
  14. package/dist/sdk/contracts/types/index.d.ts.map +1 -1
  15. package/dist/sdk/contracts/types/index.js +1 -0
  16. package/dist/sdk/contracts/types/index.js.map +1 -1
  17. package/dist/sdk/hooks/vibe-edit/index.d.ts +39 -0
  18. package/dist/sdk/hooks/vibe-edit/index.d.ts.map +1 -0
  19. package/dist/sdk/hooks/vibe-edit/index.js +42 -0
  20. package/dist/sdk/hooks/vibe-edit/index.js.map +1 -0
  21. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.d.ts +56 -0
  22. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.d.ts.map +1 -0
  23. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.js +138 -0
  24. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.js.map +1 -0
  25. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.d.ts +66 -0
  26. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.d.ts.map +1 -0
  27. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.js +73 -0
  28. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.js.map +1 -0
  29. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.d.ts +64 -0
  30. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.d.ts.map +1 -0
  31. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.js +161 -0
  32. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.js.map +1 -0
  33. package/dist/sdk/hooks/vibe-edit/selection/types.d.ts +47 -0
  34. package/dist/sdk/hooks/vibe-edit/selection/types.d.ts.map +1 -0
  35. package/dist/sdk/hooks/vibe-edit/selection/types.js +40 -0
  36. package/dist/sdk/hooks/vibe-edit/selection/types.js.map +1 -0
  37. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.d.ts +30 -0
  38. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.d.ts.map +1 -0
  39. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.js +50 -0
  40. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.js.map +1 -0
  41. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.css +26 -0
  42. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.d.ts +84 -0
  43. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.d.ts.map +1 -0
  44. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.js +256 -0
  45. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.js.map +1 -0
  46. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.css +207 -0
  47. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.d.ts +43 -0
  48. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.d.ts.map +1 -0
  49. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.js +80 -0
  50. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.js.map +1 -0
  51. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.css +79 -0
  52. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.d.ts +116 -0
  53. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.d.ts.map +1 -0
  54. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.js +264 -0
  55. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.js.map +1 -0
  56. package/dist/sdk/utils/HostCommunicationUtils.d.ts +2 -0
  57. package/dist/sdk/utils/HostCommunicationUtils.d.ts.map +1 -1
  58. package/dist/sdk/utils/HostCommunicationUtils.js +11 -2
  59. package/dist/sdk/utils/HostCommunicationUtils.js.map +1 -1
  60. package/dist/sdk/webviewMessageTypes.d.ts +103 -5
  61. package/dist/sdk/webviewMessageTypes.d.ts.map +1 -1
  62. package/dist/sdk/webviewMessageTypes.js +9 -4
  63. package/dist/sdk/webviewMessageTypes.js.map +1 -1
  64. package/package.json +11 -3
@@ -8,11 +8,14 @@
8
8
  * Message types for webview <-> extension host communication.
9
9
  * Single source of truth: used by plugin iframes (postMessage), ErrorBuilder, and extension host (message handler).
10
10
  */
11
+ import type { SelectableNode } from './contracts/types/SelectableNode.js';
11
12
  export declare const WebviewMessageType: {
12
13
  /** Plugin reports an error to the extension (payload: PluginError) */
13
14
  readonly PLUGIN_ERROR: "PLUGIN_ERROR";
14
15
  /** Retry visualization after error */
15
16
  readonly RETRY_VISUALIZATION: "RETRY_VISUALIZATION";
17
+ /** Close the correlated visualizer panel */
18
+ readonly CLOSE_VISUALIZER: "CLOSE_VISUALIZER";
16
19
  /** Copy stack trace to clipboard */
17
20
  readonly COPY_STACK_TRACE: "COPY_STACK_TRACE";
18
21
  /** Open settings panel */
@@ -23,6 +26,13 @@ export declare const WebviewMessageType: {
23
26
  readonly PLUGIN_DATA_RESPONSE: "PLUGIN_DATA_RESPONSE";
24
27
  /** Host pushes updated plugin data to plugin (payload: PluginDataResponse) */
25
28
  readonly PLUGIN_DATA_UPDATE: "PLUGIN_DATA_UPDATE";
29
+ /**
30
+ * Plugin asks the host to apply a natural-language edit, plus the spatial
31
+ * context of the user's current selection, via the IDE's coding agent
32
+ * (payload: EditRequest). The host owns delivery to whatever agent the
33
+ * platform embeds.
34
+ */
35
+ readonly SUBMIT_EDIT: "SUBMIT_EDIT";
26
36
  };
27
37
  export type WebviewMessageTypeValue = (typeof WebviewMessageType)[keyof typeof WebviewMessageType];
28
38
  /**
@@ -33,16 +43,95 @@ export type WebviewMessageTypeValue = (typeof WebviewMessageType)[keyof typeof W
33
43
  * call sites that don't know the shape (host-side message routing, etc.)
34
44
  * keep working unchanged.
35
45
  */
46
+ export type PluginDataContext = {
47
+ kind: 'file';
48
+ filePath: string;
49
+ fileName: string;
50
+ } | {
51
+ kind: 'payload';
52
+ pluginId: string;
53
+ };
36
54
  export interface PluginDataResponse<T = unknown> {
37
55
  /** Plugin data */
38
56
  data: T;
39
- /** Plugin context (file path, file name) */
40
- context: {
41
- filePath: string;
42
- fileName: string;
43
- };
57
+ /** Source-aware plugin context. Payloads never expose a synthetic file path. */
58
+ context: PluginDataContext;
44
59
  /** Unique file ID for tracking file changes */
45
60
  fileId: string;
61
+ /**
62
+ * Monotonic within one render and reset when a new render starts. Consumers
63
+ * must use the surrounding message's renderId as the outer ordering key.
64
+ */
65
+ revision?: number;
66
+ /**
67
+ * SelectionGraph (C1): the flat, normalized selectable nodes for this file,
68
+ * emitted by the parser's optional `getSelectableNodes()`. Optional — absent
69
+ * for plugins that don't opt into the SelectionGraph path. Uses the canonical
70
+ * `SelectableNode` (now in `contracts/types/`, the lowest SDK layer) so this
71
+ * message contract can't drift from the parser's return type. The old inline
72
+ * structural duplicate existed only to avoid a hooks-layer import, which the
73
+ * contracts-layer home removes.
74
+ */
75
+ selectableNodes?: SelectableNode[];
76
+ }
77
+ /**
78
+ * Spatial / semantic context for a single selected visualization element.
79
+ *
80
+ * This is the "what and where" the coding agent needs to locate the element
81
+ * in the underlying metadata. The POC populates semantic identity only
82
+ * (`elementType`, `apiName`, `parent`, `attributes`, `fileName`); the agent
83
+ * finds the element by name in the metadata. `sourceLocation` is intentionally
84
+ * optional so parsers can later emit precise line/xpath ranges without a
85
+ * contract change.
86
+ *
87
+ * Note: `filePath` is optional because not all host environments (e.g., web-based
88
+ * IDEs like CodysStudio) may have access to file system paths. `fileName` should
89
+ * always be available as it comes from the plugin data context.
90
+ */
91
+ export interface SpatialContext {
92
+ /** Kind of element, e.g. 'object' | 'field' | 'region'. Plugin-defined. */
93
+ elementType: string;
94
+ /** API name / stable identifier of the element (e.g. 'Account', 'Industry__c'). */
95
+ apiName: string;
96
+ /** API name of the containing element, if any (e.g. the parent object of a field). */
97
+ parent?: string;
98
+ /** Salient attributes worth surfacing to the agent (type, label, etc.). */
99
+ attributes?: Record<string, unknown>;
100
+ /** Name of the metadata file this element lives in (e.g., 'Account.object-meta.xml'). Always available. */
101
+ fileName?: string;
102
+ /** Optional full path of the metadata file (may not be available in all host environments). */
103
+ filePath?: string;
104
+ /** Optional precise source location. Not populated by the POC. */
105
+ sourceLocation?: {
106
+ lineStart: number;
107
+ lineEnd: number;
108
+ xpath?: string;
109
+ };
110
+ }
111
+ /**
112
+ * Payload for SUBMIT_EDIT: the user's instruction plus one SpatialContext per
113
+ * selected element. The host assembles this into an agent prompt.
114
+ */
115
+ export interface EditRequest {
116
+ /** The user's natural-language instruction. */
117
+ prompt: string;
118
+ /** Spatial context for each selected element (one entry per element). */
119
+ attachments: SpatialContext[];
120
+ }
121
+ /**
122
+ * Result of a host's attempt to deliver an EditRequest to the embedded agent.
123
+ *
124
+ * `channel` records which delivery mechanism actually fired (see the fallback
125
+ * chain in the design doc): the Agentforce Vibes inject command, the standard
126
+ * chat command, or the universal clipboard floor.
127
+ */
128
+ export interface EditHandoffResult {
129
+ /** Whether the request was delivered to (or staged for) the agent. */
130
+ delivered: boolean;
131
+ /** Which delivery channel was used. */
132
+ channel: 'vibes.inject' | 'chat.open' | 'clipboard' | 'none';
133
+ /** Optional human-readable detail (e.g. why a channel was skipped). */
134
+ detail?: string;
46
135
  }
47
136
  /** Set of all valid message types for whitelist validation */
48
137
  export declare const VALID_MESSAGE_TYPES: Set<string>;
@@ -54,5 +143,14 @@ export interface WebviewMessage {
54
143
  type: WebviewMessageTypeValue;
55
144
  /** Optional payload data (type depends on message type) */
56
145
  payload?: unknown;
146
+ /**
147
+ * Host-provided render correlation identifier.
148
+ *
149
+ * Optional in the platform-neutral contract because browser hosts do not yet
150
+ * implement render correlation. The VS Code bootstrap stamps this value onto
151
+ * every outbound message and filters scoped responses against its immutable
152
+ * expected value.
153
+ */
154
+ renderId?: string;
57
155
  }
58
156
  //# sourceMappingURL=webviewMessageTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webviewMessageTypes.d.ts","sourceRoot":"","sources":["../../src/sdk/webviewMessageTypes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,sEAAsE;;IAEtE,sCAAsC;;IAEtC,oCAAoC;;IAEpC,0BAA0B;;IAG1B,4CAA4C;;IAG5C,qEAAqE;;IAGrE,8EAA8E;;CAEtE,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAEnG;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,kBAAkB;IAClB,IAAI,EAAE,CAAC,CAAC;IACR,4CAA4C;IAC5C,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,aAAqD,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"webviewMessageTypes.d.ts","sourceRoot":"","sources":["../../src/sdk/webviewMessageTypes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;GAGG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,eAAO,MAAM,kBAAkB;IAC7B,sEAAsE;;IAEtE,sCAAsC;;IAEtC,4CAA4C;;IAE5C,oCAAoC;;IAEpC,0BAA0B;;IAG1B,4CAA4C;;IAG5C,qEAAqE;;IAGrE,8EAA8E;;IAG9E;;;;;OAKG;;CAEK,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAEnG;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,kBAAkB;IAClB,IAAI,EAAE,CAAC,CAAC;IACR,gFAAgF;IAChF,OAAO,EAAE,iBAAiB,CAAC;IAC3B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACpC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC7B,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,cAAc,CAAC,EAAE;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,SAAS,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,OAAO,EAAE,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,CAAC;IAC7D,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,aAAqD,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -4,15 +4,13 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  **/
7
- /**
8
- * Message types for webview <-> extension host communication.
9
- * Single source of truth: used by plugin iframes (postMessage), ErrorBuilder, and extension host (message handler).
10
- */
11
7
  export const WebviewMessageType = {
12
8
  /** Plugin reports an error to the extension (payload: PluginError) */
13
9
  PLUGIN_ERROR: 'PLUGIN_ERROR',
14
10
  /** Retry visualization after error */
15
11
  RETRY_VISUALIZATION: 'RETRY_VISUALIZATION',
12
+ /** Close the correlated visualizer panel */
13
+ CLOSE_VISUALIZER: 'CLOSE_VISUALIZER',
16
14
  /** Copy stack trace to clipboard */
17
15
  COPY_STACK_TRACE: 'COPY_STACK_TRACE',
18
16
  /** Open settings panel */
@@ -23,6 +21,13 @@ export const WebviewMessageType = {
23
21
  PLUGIN_DATA_RESPONSE: 'PLUGIN_DATA_RESPONSE',
24
22
  /** Host pushes updated plugin data to plugin (payload: PluginDataResponse) */
25
23
  PLUGIN_DATA_UPDATE: 'PLUGIN_DATA_UPDATE',
24
+ /**
25
+ * Plugin asks the host to apply a natural-language edit, plus the spatial
26
+ * context of the user's current selection, via the IDE's coding agent
27
+ * (payload: EditRequest). The host owns delivery to whatever agent the
28
+ * platform embeds.
29
+ */
30
+ SUBMIT_EDIT: 'SUBMIT_EDIT',
26
31
  };
27
32
  /** Set of all valid message types for whitelist validation */
28
33
  export const VALID_MESSAGE_TYPES = new Set(Object.values(WebviewMessageType));
@@ -1 +1 @@
1
- {"version":3,"file":"webviewMessageTypes.js","sourceRoot":"","sources":["../../src/sdk/webviewMessageTypes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,sEAAsE;IACtE,YAAY,EAAE,cAAc;IAC5B,sCAAsC;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,oCAAoC;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,0BAA0B;IAC1B,aAAa,EAAE,cAAc;IAE7B,4CAA4C;IAC5C,mBAAmB,EAAE,qBAAqB;IAE1C,qEAAqE;IACrE,oBAAoB,EAAE,sBAAsB;IAE5C,8EAA8E;IAC9E,kBAAkB,EAAE,oBAAoB;CAChC,CAAC;AAwBX,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"webviewMessageTypes.js","sourceRoot":"","sources":["../../src/sdk/webviewMessageTypes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAQJ,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,sEAAsE;IACtE,YAAY,EAAE,cAAc;IAC5B,sCAAsC;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,4CAA4C;IAC5C,gBAAgB,EAAE,kBAAkB;IACpC,oCAAoC;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,0BAA0B;IAC1B,aAAa,EAAE,cAAc;IAE7B,4CAA4C;IAC5C,mBAAmB,EAAE,qBAAqB;IAE1C,qEAAqE;IACrE,oBAAoB,EAAE,sBAAsB;IAE5C,8EAA8E;IAC9E,kBAAkB,EAAE,oBAAoB;IAExC;;;;;OAKG;IACH,WAAW,EAAE,aAAa;CAClB,CAAC;AAsGX,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/metadata-core-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.7.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,10 @@
14
14
  "types": "./dist/sdk/design-system/index.d.ts",
15
15
  "default": "./dist/sdk/design-system/index.js"
16
16
  },
17
+ "./vibe-edit": {
18
+ "types": "./dist/sdk/hooks/vibe-edit/index.d.ts",
19
+ "default": "./dist/sdk/hooks/vibe-edit/index.js"
20
+ },
17
21
  "./components": {
18
22
  "types": "./dist/sdk/components/index.d.ts",
19
23
  "default": "./dist/sdk/components/index.js"
@@ -22,6 +26,10 @@
22
26
  "types": "./dist/sdk/components/*",
23
27
  "default": "./dist/sdk/components/*"
24
28
  },
29
+ "./constants": {
30
+ "types": "./dist/sdk/constants.d.ts",
31
+ "default": "./dist/sdk/constants.js"
32
+ },
25
33
  "./test-helpers": {
26
34
  "types": "./dist/sdk/utils/test-helpers/index.d.ts",
27
35
  "default": "./dist/sdk/utils/test-helpers/index.js"
@@ -76,7 +84,7 @@
76
84
  },
77
85
  "devDependencies": {
78
86
  "@types/jest": "^29.5.0",
79
- "@types/node": "^20.0.0",
87
+ "@types/node": "^22.0.0",
80
88
  "@types/react": "^18.3.31",
81
89
  "@types/react-dom": "^18.3.7",
82
90
  "@xyflow/react": "^12.11.0",
@@ -96,6 +104,6 @@
96
104
  "access": "public"
97
105
  },
98
106
  "engines": {
99
- "node": ">=18.0.0"
107
+ "node": ">=22.0.0"
100
108
  }
101
109
  }