@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
package/README.md CHANGED
@@ -116,6 +116,31 @@ import {
116
116
  } from '@salesforce/metadata-core-sdk/design-system';
117
117
  ```
118
118
 
119
+ #### Theme Catalog
120
+
121
+ The design system provides a small catalog of authored themes. Each theme is a full `--vscode-*` variable layer that the base sheet (`vscode-design-system.css`) reads for its `--mv-*` token definitions. When no theme is supplied, the base sheet falls back to its inline dark defaults.
122
+
123
+ - `DESIGN_SYSTEM_THEMES` — Readonly array of available theme names (currently `['light']`).
124
+ - `DesignSystemTheme` — Literal type union of valid theme names.
125
+ - `isDesignSystemTheme(val: unknown): val is DesignSystemTheme` — Type guard for runtime validation.
126
+ - `designSystemCssFileName(theme?: DesignSystemTheme): string` — Resolves a theme to its CSS filename (`undefined` → `'platform.css'`, `'light'` → `'light-design-system.css'`).
127
+
128
+ ```typescript
129
+ import {
130
+ DESIGN_SYSTEM_THEMES,
131
+ isDesignSystemTheme,
132
+ designSystemCssFileName,
133
+ } from '@salesforce/metadata-core-sdk/design-system';
134
+
135
+ // Validate user input
136
+ if (!isDesignSystemTheme(userTheme)) {
137
+ throw new Error(`Invalid theme: ${userTheme}`);
138
+ }
139
+
140
+ // Resolve to a bundled CSS filename
141
+ const cssFile = designSystemCssFileName(userTheme);
142
+ ```
143
+
119
144
  ## API
120
145
 
121
146
  ### Plugin Contracts
package/dist/index.d.ts CHANGED
@@ -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
@@ -31,9 +31,12 @@ export { Logger } from './sdk/utils/logger.js';
31
31
  export { ErrorBuilder } from './sdk/utils/errors/ErrorBuilder.js';
32
32
  export { setupErrorHandlers } from './sdk/utils/errors/setupHandlers.js';
33
33
  export { WebviewMessageType, VALID_MESSAGE_TYPES } from './sdk/webviewMessageTypes.js';
34
- export type { PluginDataResponse, WebviewMessage } from './sdk/webviewMessageTypes.js';
34
+ export type { PluginDataResponse, WebviewMessage, SpatialContext, EditRequest, EditHandoffResult, } from './sdk/webviewMessageTypes.js';
35
35
  export { getPluginData, sendToHost, onDataUpdate } from './sdk/utils/HostCommunicationUtils.js';
36
36
  export type { VersionInfo } from './sdk/contracts/types/VersionInfo.js';
37
37
  export { PLUGINS_DIST_DIR, PLUGINS_DIR, REACT_UI_DIR_NAME } from './sdk/constants.js';
38
38
  export * from './sdk/design-system/index.js';
39
+ export { itemKey } from './sdk/hooks/vibe-edit/selection/selectionGeometry.js';
40
+ export { SELECTABLE_ATTR, TYPE_ATTR, ID_ATTR, COVERAGE_THRESHOLD, CLICK_THRESHOLD_PX, type SelectedItem, } from './sdk/hooks/vibe-edit/selection/types.js';
41
+ export { type SelectableNode, type SfdxPathInput, sfdxPath, hashString, structuralId, } from './sdk/hooks/vibe-edit/selection/selectionGraph.js';
39
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;GAQG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAG1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,YAAY,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,cAAc,6BAA6B,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAC9E,YAAY,EAAE,OAAO,E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B,EAAE,MAAM,6CAA6C,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAC9E,YAAY,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAGtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACvF,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,WAAW,EACX,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAGhG,YAAY,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGtF,cAAc,8BAA8B,CAAC;AAwB7C,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC;AAC/E,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,YAAY,GAClB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,QAAQ,EACR,UAAU,EACV,YAAY,GACb,MAAM,mDAAmD,CAAC"}
package/dist/index.js CHANGED
@@ -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
@@ -20,4 +20,30 @@ export { getPluginData, sendToHost, onDataUpdate } from './sdk/utils/HostCommuni
20
20
  export { PLUGINS_DIST_DIR, PLUGINS_DIR, REACT_UI_DIR_NAME } from './sdk/constants.js';
21
21
  // Design System
22
22
  export * from './sdk/design-system/index.js';
23
+ // Vibe-edit feature (plugin-side, SelectionGraph). The feature is split across
24
+ // two entry points so that importing this MAIN barrel in a plain Node/ESM
25
+ // context that lacks `react` (a filesystem-only consumer such as the App Studio
26
+ // visualization service — react/react-dom are only OPTIONAL peers) never fails
27
+ // to resolve, and so a CSS side-effect import never reaches a loader that can't
28
+ // handle it (the vscode-ext `generate:settings` script does `await import()` on
29
+ // the plugins package, which evaluates this barrel — a bare `import './x.css'`
30
+ // from the JSX layer would crash it with ERR_UNKNOWN_FILE_EXTENSION):
31
+ //
32
+ // - MAIN ('.') → the pure, Node-safe SelectionGraph LOGIC only: the
33
+ // SelectableNode contract, deterministic-id / SFDX helpers, hit-test/geometry
34
+ // constants + `itemKey`, and the tagger/inverter engine. This is all a plugin
35
+ // PARSER and the framework need; NONE of it imports `react` or CSS. (The
36
+ // marquee state hook `useMarqueeSelection` is React, so it is NOT re-exported
37
+ // here — pulling it in would make `react` a hard requirement of the main
38
+ // entry; it lives on the subpath below.)
39
+ // - SUBPATH ('./vibe-edit') → the React layer (`useVibeEdit`, `VibeEditPanel`,
40
+ // `MarqueeSelection`, `useMarqueeSelection`). Only a plugin's Vite-bundled
41
+ // `ui/` code imports these, where react and CSS side-effects are handled by
42
+ // the bundler. See the './vibe-edit' export in package.json.
43
+ //
44
+ // See sdk/hooks/vibe-edit/ (ui/ = JSX layer, selection/ = logic layer).
45
+ export { itemKey } from './sdk/hooks/vibe-edit/selection/selectionGeometry.js';
46
+ export { SELECTABLE_ATTR, TYPE_ATTR, ID_ATTR, COVERAGE_THRESHOLD, CLICK_THRESHOLD_PX, } from './sdk/hooks/vibe-edit/selection/types.js';
47
+ // SelectionGraph (C1 + C4): normalized node contract + deterministic-id / SFDX helpers.
48
+ export { sfdxPath, hashString, structuralId, } from './sdk/hooks/vibe-edit/selection/selectionGraph.js';
23
49
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAqBJ,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAIrE,wBAAwB;AACxB,cAAc,6BAA6B,CAAC;AAK5C,YAAY;AACZ,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,0EAA0E;AAC1E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGvF,+DAA+D;AAC/D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAKhG,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,gBAAgB;AAChB,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAqBJ,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAIrE,wBAAwB;AACxB,cAAc,6BAA6B,CAAC;AAK5C,YAAY;AACZ,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,0EAA0E;AAC1E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AASvF,+DAA+D;AAC/D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAKhG,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,gBAAgB;AAChB,cAAc,8BAA8B,CAAC;AAE7C,+EAA+E;AAC/E,0EAA0E;AAC1E,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF;AAChF,+EAA+E;AAC/E,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,6EAA6E;AAC7E,kFAAkF;AAClF,6EAA6E;AAC7E,6CAA6C;AAC7C,iFAAiF;AACjF,+EAA+E;AAC/E,gFAAgF;AAChF,iEAAiE;AACjE,EAAE;AACF,wEAAwE;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC;AAC/E,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,0CAA0C,CAAC;AAClD,wFAAwF;AACxF,OAAO,EAGL,QAAQ,EACR,UAAU,EACV,YAAY,GACb,MAAM,mDAAmD,CAAC"}
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1 +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"}
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,CA0I1C,CAAC"}
@@ -13,8 +13,9 @@ export const ZoomBar = ({ legend }) => {
13
13
  const [legendOpen, setLegendOpen] = useState(false);
14
14
  const containerRef = useRef(null);
15
15
  useEffect(() => {
16
- if (!legendOpen)
16
+ if (!legendOpen) {
17
17
  return;
18
+ }
18
19
  const handleClick = (e) => {
19
20
  if (containerRef.current && !containerRef.current.contains(e.target)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C,WAAW,EAAC,IAAI,EAAC,MAAM;oBACzD,gCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,GAAG;oBACxE,8BACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,GACrB;oBACF,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,GAAG,EACN,MAAM,EAAC,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"}
@@ -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
@@ -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
@@ -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
@@ -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 @@ import { ValidationResult } from '../types/ValidationResult.js';
8
8
  import { VersionInfo } from '../types/VersionInfo.js';
9
9
  import { MetadataFileInfo } from '../types/MetadataFileInfo.js';
10
10
  import { IPlatformContext } from '../../abstractions/core/IPlatformContext.js';
11
+ import { SelectableNode } from '../types/SelectableNode.js';
11
12
  /**
12
13
  * Contract for parsing metadata files
13
14
  *
@@ -67,5 +68,26 @@ export interface IMetadataParser<TData> {
67
68
  * @returns Metadata info, or `null` if no labels can be derived from the data
68
69
  */
69
70
  extractMetadataInfo?(data: TData): MetadataFileInfo | null;
71
+ /**
72
+ * Emit the vibe-edit SelectionGraph — a flat, normalized list of the selectable
73
+ * elements in this parsed data (SelectionGraph / C1).
74
+ *
75
+ * Optional, opt-in per plugin. When implemented, the parser projects its own
76
+ * bespoke shape into uniform {@link SelectableNode}s as it walks the data it
77
+ * already traverses to render. The framework/host caches this array and the
78
+ * generic selection engine resolves a selected DOM element to its node by
79
+ * `id` alone — it never introspects the plugin's opaque parsed shape (dissolves
80
+ * the consumption side of shape-opacity). Assign each node's `id` via
81
+ * {@link structuralId} and set `filePath` via {@link sfdxPath} so ids are
82
+ * deterministic (host + render agree) and file paths follow SFDX conventions
83
+ * without the plugin hand-writing path strings.
84
+ *
85
+ * Plugins that don't implement this fall back to the descriptor / buildContext
86
+ * paths; nothing breaks.
87
+ *
88
+ * @param data - Data returned by `parse()`
89
+ * @returns The selectable nodes for this file (empty array if none)
90
+ */
91
+ getSelectableNodes?(data: TData): SelectableNode[];
70
92
  }
71
93
  //# sourceMappingURL=IMetadataParser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IMetadataParser.d.ts","sourceRoot":"","sources":["../../../../src/sdk/contracts/core/IMetadataParser.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,eAAe,CAAC,KAAK;IACpC;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAElE;;;;;;;;OAQG;IACH,QAAQ,CAAC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K,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAE3D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG,cAAc,EAAE,CAAC;CACpD"}
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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