@salesforce/metadata-core-sdk 1.4.0 → 1.6.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 (144) hide show
  1. package/README.md +25 -0
  2. package/dist/index.d.ts +5 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +27 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/sdk/abstractions/core/IPlatformContext.d.ts +1 -1
  7. package/dist/sdk/abstractions/core/IPlatformContext.js +1 -1
  8. package/dist/sdk/abstractions/core/index.d.ts +1 -1
  9. package/dist/sdk/abstractions/core/index.js +1 -1
  10. package/dist/sdk/abstractions/index.d.ts +1 -1
  11. package/dist/sdk/abstractions/index.js +1 -1
  12. package/dist/sdk/abstractions/services/IFileSystem.d.ts +1 -1
  13. package/dist/sdk/abstractions/services/IFileSystem.js +1 -1
  14. package/dist/sdk/abstractions/services/ILogger.d.ts +1 -1
  15. package/dist/sdk/abstractions/services/ILogger.js +1 -1
  16. package/dist/sdk/abstractions/services/ITelemetry.d.ts +1 -1
  17. package/dist/sdk/abstractions/services/ITelemetry.js +1 -1
  18. package/dist/sdk/abstractions/services/index.d.ts +1 -1
  19. package/dist/sdk/abstractions/services/index.js +1 -1
  20. package/dist/sdk/abstractions/types/FileMetadata.d.ts +1 -1
  21. package/dist/sdk/abstractions/types/FileMetadata.js +1 -1
  22. package/dist/sdk/abstractions/types/Result.d.ts +1 -1
  23. package/dist/sdk/abstractions/types/Result.js +1 -1
  24. package/dist/sdk/abstractions/types/index.d.ts +1 -1
  25. package/dist/sdk/abstractions/types/index.js +1 -1
  26. package/dist/sdk/components/LegendPanel/index.d.ts +1 -1
  27. package/dist/sdk/components/LegendPanel/index.js +1 -1
  28. package/dist/sdk/components/ZoomBar/ZoomBar.d.ts.map +1 -1
  29. package/dist/sdk/components/ZoomBar/ZoomBar.js +2 -1
  30. package/dist/sdk/components/ZoomBar/ZoomBar.js.map +1 -1
  31. package/dist/sdk/components/ZoomBar/index.d.ts +1 -1
  32. package/dist/sdk/components/ZoomBar/index.js +1 -1
  33. package/dist/sdk/components/index.d.ts +1 -1
  34. package/dist/sdk/components/index.js +1 -1
  35. package/dist/sdk/constants.d.ts +1 -1
  36. package/dist/sdk/constants.js +1 -1
  37. package/dist/sdk/contracts/core/IMetadataParser.d.ts +23 -1
  38. package/dist/sdk/contracts/core/IMetadataParser.d.ts.map +1 -1
  39. package/dist/sdk/contracts/core/IMetadataParser.js +1 -1
  40. package/dist/sdk/contracts/core/IVisualizationPlugin.d.ts +1 -1
  41. package/dist/sdk/contracts/core/IVisualizationPlugin.js +1 -1
  42. package/dist/sdk/contracts/core/index.d.ts +1 -1
  43. package/dist/sdk/contracts/core/index.js +1 -1
  44. package/dist/sdk/contracts/index.d.ts +1 -1
  45. package/dist/sdk/contracts/index.js +1 -1
  46. package/dist/sdk/contracts/types/MetadataFileInfo.d.ts +1 -1
  47. package/dist/sdk/contracts/types/MetadataFileInfo.js +1 -1
  48. package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts +1 -1
  49. package/dist/sdk/contracts/types/MetadataPluginInfo.js +1 -1
  50. package/dist/sdk/contracts/types/PluginConfig.d.ts +1 -1
  51. package/dist/sdk/contracts/types/PluginConfig.js +1 -1
  52. package/dist/sdk/contracts/types/PluginContext.d.ts +1 -1
  53. package/dist/sdk/contracts/types/PluginContext.js +1 -1
  54. package/dist/sdk/contracts/types/PluginError.d.ts +1 -1
  55. package/dist/sdk/contracts/types/PluginError.js +1 -1
  56. package/dist/sdk/contracts/types/SelectableNode.d.ts +62 -0
  57. package/dist/sdk/contracts/types/SelectableNode.d.ts.map +1 -0
  58. package/dist/sdk/contracts/types/SelectableNode.js +8 -0
  59. package/dist/sdk/contracts/types/SelectableNode.js.map +1 -0
  60. package/dist/sdk/contracts/types/ValidationResult.d.ts +1 -1
  61. package/dist/sdk/contracts/types/ValidationResult.js +1 -1
  62. package/dist/sdk/contracts/types/VersionInfo.d.ts +1 -1
  63. package/dist/sdk/contracts/types/VersionInfo.js +1 -1
  64. package/dist/sdk/contracts/types/index.d.ts +2 -1
  65. package/dist/sdk/contracts/types/index.d.ts.map +1 -1
  66. package/dist/sdk/contracts/types/index.js +2 -1
  67. package/dist/sdk/contracts/types/index.js.map +1 -1
  68. package/dist/sdk/design-system/index.d.ts +3 -1
  69. package/dist/sdk/design-system/index.d.ts.map +1 -1
  70. package/dist/sdk/design-system/index.js +3 -1
  71. package/dist/sdk/design-system/index.js.map +1 -1
  72. package/dist/sdk/design-system/light-design-system.css +724 -0
  73. package/dist/sdk/design-system/themes.d.ts +32 -0
  74. package/dist/sdk/design-system/themes.d.ts.map +1 -0
  75. package/dist/sdk/design-system/themes.js +32 -0
  76. package/dist/sdk/design-system/themes.js.map +1 -0
  77. package/dist/sdk/design-system/tokens/colors.d.ts +1 -1
  78. package/dist/sdk/design-system/tokens/colors.js +1 -1
  79. package/dist/sdk/design-system/tokens/spacing.d.ts +1 -1
  80. package/dist/sdk/design-system/tokens/spacing.js +1 -1
  81. package/dist/sdk/design-system/tokens/typography.d.ts +1 -1
  82. package/dist/sdk/design-system/tokens/typography.js +1 -1
  83. package/dist/sdk/design-system/utils.d.ts +1 -1
  84. package/dist/sdk/design-system/utils.js +1 -1
  85. package/dist/sdk/hooks/vibe-edit/index.d.ts +39 -0
  86. package/dist/sdk/hooks/vibe-edit/index.d.ts.map +1 -0
  87. package/dist/sdk/hooks/vibe-edit/index.js +42 -0
  88. package/dist/sdk/hooks/vibe-edit/index.js.map +1 -0
  89. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.d.ts +56 -0
  90. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.d.ts.map +1 -0
  91. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.js +138 -0
  92. package/dist/sdk/hooks/vibe-edit/selection/selectionGeometry.js.map +1 -0
  93. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.d.ts +66 -0
  94. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.d.ts.map +1 -0
  95. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.js +73 -0
  96. package/dist/sdk/hooks/vibe-edit/selection/selectionGraph.js.map +1 -0
  97. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.d.ts +64 -0
  98. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.d.ts.map +1 -0
  99. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.js +161 -0
  100. package/dist/sdk/hooks/vibe-edit/selection/selectionGraphEngine.js.map +1 -0
  101. package/dist/sdk/hooks/vibe-edit/selection/types.d.ts +47 -0
  102. package/dist/sdk/hooks/vibe-edit/selection/types.d.ts.map +1 -0
  103. package/dist/sdk/hooks/vibe-edit/selection/types.js +40 -0
  104. package/dist/sdk/hooks/vibe-edit/selection/types.js.map +1 -0
  105. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.d.ts +30 -0
  106. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.d.ts.map +1 -0
  107. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.js +50 -0
  108. package/dist/sdk/hooks/vibe-edit/selection/useMarqueeSelection.js.map +1 -0
  109. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.css +26 -0
  110. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.d.ts +84 -0
  111. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.d.ts.map +1 -0
  112. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.js +256 -0
  113. package/dist/sdk/hooks/vibe-edit/ui/MarqueeSelection.js.map +1 -0
  114. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.css +207 -0
  115. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.d.ts +43 -0
  116. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.d.ts.map +1 -0
  117. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.js +80 -0
  118. package/dist/sdk/hooks/vibe-edit/ui/VibeEditPanel.js.map +1 -0
  119. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.css +79 -0
  120. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.d.ts +116 -0
  121. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.d.ts.map +1 -0
  122. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.js +264 -0
  123. package/dist/sdk/hooks/vibe-edit/ui/useVibeEdit.js.map +1 -0
  124. package/dist/sdk/utils/HostCommunicationUtils.d.ts +1 -1
  125. package/dist/sdk/utils/HostCommunicationUtils.js +1 -1
  126. package/dist/sdk/utils/errors/ErrorBuilder.d.ts +1 -1
  127. package/dist/sdk/utils/errors/ErrorBuilder.js +1 -1
  128. package/dist/sdk/utils/errors/setupHandlers.d.ts +1 -1
  129. package/dist/sdk/utils/errors/setupHandlers.js +1 -1
  130. package/dist/sdk/utils/logger.d.ts +1 -1
  131. package/dist/sdk/utils/logger.js +1 -1
  132. package/dist/sdk/utils/test-helpers/architecture-test-utils.d.ts +1 -1
  133. package/dist/sdk/utils/test-helpers/architecture-test-utils.js +1 -1
  134. package/dist/sdk/utils/test-helpers/index.d.ts +1 -1
  135. package/dist/sdk/utils/test-helpers/index.js +1 -1
  136. package/dist/sdk/utils/xmlParser.d.ts +1 -1
  137. package/dist/sdk/utils/xmlParser.js +1 -1
  138. package/dist/sdk/webviewMessageTypes.d.ts +78 -1
  139. package/dist/sdk/webviewMessageTypes.d.ts.map +1 -1
  140. package/dist/sdk/webviewMessageTypes.js +8 -5
  141. package/dist/sdk/webviewMessageTypes.js.map +1 -1
  142. package/package.json +11 -3
  143. package/src/sdk/utils/test-helpers/architecture-test-utils.ts +1 -1
  144. package/src/sdk/utils/test-helpers/index.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2025, Salesforce, Inc.
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
3
  * All rights reserved.
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
@@ -8,6 +8,7 @@
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";
@@ -23,6 +24,13 @@ export declare const WebviewMessageType: {
23
24
  readonly PLUGIN_DATA_RESPONSE: "PLUGIN_DATA_RESPONSE";
24
25
  /** Host pushes updated plugin data to plugin (payload: PluginDataResponse) */
25
26
  readonly PLUGIN_DATA_UPDATE: "PLUGIN_DATA_UPDATE";
27
+ /**
28
+ * Plugin asks the host to apply a natural-language edit, plus the spatial
29
+ * context of the user's current selection, via the IDE's coding agent
30
+ * (payload: EditRequest). The host owns delivery to whatever agent the
31
+ * platform embeds.
32
+ */
33
+ readonly SUBMIT_EDIT: "SUBMIT_EDIT";
26
34
  };
27
35
  export type WebviewMessageTypeValue = (typeof WebviewMessageType)[keyof typeof WebviewMessageType];
28
36
  /**
@@ -43,6 +51,75 @@ export interface PluginDataResponse<T = unknown> {
43
51
  };
44
52
  /** Unique file ID for tracking file changes */
45
53
  fileId: string;
54
+ /**
55
+ * SelectionGraph (C1): the flat, normalized selectable nodes for this file,
56
+ * emitted by the parser's optional `getSelectableNodes()`. Optional — absent
57
+ * for plugins that don't opt into the SelectionGraph path. Uses the canonical
58
+ * `SelectableNode` (now in `contracts/types/`, the lowest SDK layer) so this
59
+ * message contract can't drift from the parser's return type. The old inline
60
+ * structural duplicate existed only to avoid a hooks-layer import, which the
61
+ * contracts-layer home removes.
62
+ */
63
+ selectableNodes?: SelectableNode[];
64
+ }
65
+ /**
66
+ * Spatial / semantic context for a single selected visualization element.
67
+ *
68
+ * This is the "what and where" the coding agent needs to locate the element
69
+ * in the underlying metadata. The POC populates semantic identity only
70
+ * (`elementType`, `apiName`, `parent`, `attributes`, `fileName`); the agent
71
+ * finds the element by name in the metadata. `sourceLocation` is intentionally
72
+ * optional so parsers can later emit precise line/xpath ranges without a
73
+ * contract change.
74
+ *
75
+ * Note: `filePath` is optional because not all host environments (e.g., web-based
76
+ * IDEs like CodysStudio) may have access to file system paths. `fileName` should
77
+ * always be available as it comes from the plugin data context.
78
+ */
79
+ export interface SpatialContext {
80
+ /** Kind of element, e.g. 'object' | 'field' | 'region'. Plugin-defined. */
81
+ elementType: string;
82
+ /** API name / stable identifier of the element (e.g. 'Account', 'Industry__c'). */
83
+ apiName: string;
84
+ /** API name of the containing element, if any (e.g. the parent object of a field). */
85
+ parent?: string;
86
+ /** Salient attributes worth surfacing to the agent (type, label, etc.). */
87
+ attributes?: Record<string, unknown>;
88
+ /** Name of the metadata file this element lives in (e.g., 'Account.object-meta.xml'). Always available. */
89
+ fileName?: string;
90
+ /** Optional full path of the metadata file (may not be available in all host environments). */
91
+ filePath?: string;
92
+ /** Optional precise source location. Not populated by the POC. */
93
+ sourceLocation?: {
94
+ lineStart: number;
95
+ lineEnd: number;
96
+ xpath?: string;
97
+ };
98
+ }
99
+ /**
100
+ * Payload for SUBMIT_EDIT: the user's instruction plus one SpatialContext per
101
+ * selected element. The host assembles this into an agent prompt.
102
+ */
103
+ export interface EditRequest {
104
+ /** The user's natural-language instruction. */
105
+ prompt: string;
106
+ /** Spatial context for each selected element (one entry per element). */
107
+ attachments: SpatialContext[];
108
+ }
109
+ /**
110
+ * Result of a host's attempt to deliver an EditRequest to the embedded agent.
111
+ *
112
+ * `channel` records which delivery mechanism actually fired (see the fallback
113
+ * chain in the design doc): the Agentforce Vibes inject command, the standard
114
+ * chat command, or the universal clipboard floor.
115
+ */
116
+ export interface EditHandoffResult {
117
+ /** Whether the request was delivered to (or staged for) the agent. */
118
+ delivered: boolean;
119
+ /** Which delivery channel was used. */
120
+ channel: 'vibes.inject' | 'chat.open' | 'clipboard' | 'none';
121
+ /** Optional human-readable detail (e.g. why a channel was skipped). */
122
+ detail?: string;
46
123
  }
47
124
  /** Set of all valid message types for whitelist validation */
48
125
  export declare const VALID_MESSAGE_TYPES: Set<string>;
@@ -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,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,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;IACf;;;;;;;;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;CACnB"}
@@ -1,13 +1,9 @@
1
1
  /**
2
- * Copyright (c) 2025, Salesforce, Inc.
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
3
  * All rights reserved.
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',
@@ -23,6 +19,13 @@ export const WebviewMessageType = {
23
19
  PLUGIN_DATA_RESPONSE: 'PLUGIN_DATA_RESPONSE',
24
20
  /** Host pushes updated plugin data to plugin (payload: PluginDataResponse) */
25
21
  PLUGIN_DATA_UPDATE: 'PLUGIN_DATA_UPDATE',
22
+ /**
23
+ * Plugin asks the host to apply a natural-language edit, plus the spatial
24
+ * context of the user's current selection, via the IDE's coding agent
25
+ * (payload: EditRequest). The host owns delivery to whatever agent the
26
+ * platform embeds.
27
+ */
28
+ SUBMIT_EDIT: 'SUBMIT_EDIT',
26
29
  };
27
30
  /** Set of all valid message types for whitelist validation */
28
31
  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,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;AAgGX,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.4.0",
3
+ "version": "1.6.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
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2025, Salesforce, Inc.
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
3
  * All rights reserved.
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2025, Salesforce, Inc.
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
3
  * All rights reserved.
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