@salesforce/metadata-core-sdk 1.4.0 → 1.5.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 (94) hide show
  1. package/README.md +25 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/sdk/abstractions/core/IPlatformContext.d.ts +1 -1
  5. package/dist/sdk/abstractions/core/IPlatformContext.js +1 -1
  6. package/dist/sdk/abstractions/core/index.d.ts +1 -1
  7. package/dist/sdk/abstractions/core/index.js +1 -1
  8. package/dist/sdk/abstractions/index.d.ts +1 -1
  9. package/dist/sdk/abstractions/index.js +1 -1
  10. package/dist/sdk/abstractions/services/IFileSystem.d.ts +1 -1
  11. package/dist/sdk/abstractions/services/IFileSystem.js +1 -1
  12. package/dist/sdk/abstractions/services/ILogger.d.ts +1 -1
  13. package/dist/sdk/abstractions/services/ILogger.js +1 -1
  14. package/dist/sdk/abstractions/services/ITelemetry.d.ts +1 -1
  15. package/dist/sdk/abstractions/services/ITelemetry.js +1 -1
  16. package/dist/sdk/abstractions/services/index.d.ts +1 -1
  17. package/dist/sdk/abstractions/services/index.js +1 -1
  18. package/dist/sdk/abstractions/types/FileMetadata.d.ts +1 -1
  19. package/dist/sdk/abstractions/types/FileMetadata.js +1 -1
  20. package/dist/sdk/abstractions/types/Result.d.ts +1 -1
  21. package/dist/sdk/abstractions/types/Result.js +1 -1
  22. package/dist/sdk/abstractions/types/index.d.ts +1 -1
  23. package/dist/sdk/abstractions/types/index.js +1 -1
  24. package/dist/sdk/components/LegendPanel/index.d.ts +1 -1
  25. package/dist/sdk/components/LegendPanel/index.js +1 -1
  26. package/dist/sdk/components/ZoomBar/ZoomBar.d.ts.map +1 -1
  27. package/dist/sdk/components/ZoomBar/ZoomBar.js +2 -1
  28. package/dist/sdk/components/ZoomBar/ZoomBar.js.map +1 -1
  29. package/dist/sdk/components/ZoomBar/index.d.ts +1 -1
  30. package/dist/sdk/components/ZoomBar/index.js +1 -1
  31. package/dist/sdk/components/index.d.ts +1 -1
  32. package/dist/sdk/components/index.js +1 -1
  33. package/dist/sdk/constants.d.ts +1 -1
  34. package/dist/sdk/constants.js +1 -1
  35. package/dist/sdk/contracts/core/IMetadataParser.d.ts +1 -1
  36. package/dist/sdk/contracts/core/IMetadataParser.js +1 -1
  37. package/dist/sdk/contracts/core/IVisualizationPlugin.d.ts +1 -1
  38. package/dist/sdk/contracts/core/IVisualizationPlugin.js +1 -1
  39. package/dist/sdk/contracts/core/index.d.ts +1 -1
  40. package/dist/sdk/contracts/core/index.js +1 -1
  41. package/dist/sdk/contracts/index.d.ts +1 -1
  42. package/dist/sdk/contracts/index.js +1 -1
  43. package/dist/sdk/contracts/types/MetadataFileInfo.d.ts +1 -1
  44. package/dist/sdk/contracts/types/MetadataFileInfo.js +1 -1
  45. package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts +1 -1
  46. package/dist/sdk/contracts/types/MetadataPluginInfo.js +1 -1
  47. package/dist/sdk/contracts/types/PluginConfig.d.ts +1 -1
  48. package/dist/sdk/contracts/types/PluginConfig.js +1 -1
  49. package/dist/sdk/contracts/types/PluginContext.d.ts +1 -1
  50. package/dist/sdk/contracts/types/PluginContext.js +1 -1
  51. package/dist/sdk/contracts/types/PluginError.d.ts +1 -1
  52. package/dist/sdk/contracts/types/PluginError.js +1 -1
  53. package/dist/sdk/contracts/types/ValidationResult.d.ts +1 -1
  54. package/dist/sdk/contracts/types/ValidationResult.js +1 -1
  55. package/dist/sdk/contracts/types/VersionInfo.d.ts +1 -1
  56. package/dist/sdk/contracts/types/VersionInfo.js +1 -1
  57. package/dist/sdk/contracts/types/index.d.ts +1 -1
  58. package/dist/sdk/contracts/types/index.js +1 -1
  59. package/dist/sdk/design-system/index.d.ts +3 -1
  60. package/dist/sdk/design-system/index.d.ts.map +1 -1
  61. package/dist/sdk/design-system/index.js +3 -1
  62. package/dist/sdk/design-system/index.js.map +1 -1
  63. package/dist/sdk/design-system/light-design-system.css +724 -0
  64. package/dist/sdk/design-system/themes.d.ts +32 -0
  65. package/dist/sdk/design-system/themes.d.ts.map +1 -0
  66. package/dist/sdk/design-system/themes.js +32 -0
  67. package/dist/sdk/design-system/themes.js.map +1 -0
  68. package/dist/sdk/design-system/tokens/colors.d.ts +1 -1
  69. package/dist/sdk/design-system/tokens/colors.js +1 -1
  70. package/dist/sdk/design-system/tokens/spacing.d.ts +1 -1
  71. package/dist/sdk/design-system/tokens/spacing.js +1 -1
  72. package/dist/sdk/design-system/tokens/typography.d.ts +1 -1
  73. package/dist/sdk/design-system/tokens/typography.js +1 -1
  74. package/dist/sdk/design-system/utils.d.ts +1 -1
  75. package/dist/sdk/design-system/utils.js +1 -1
  76. package/dist/sdk/utils/HostCommunicationUtils.d.ts +1 -1
  77. package/dist/sdk/utils/HostCommunicationUtils.js +1 -1
  78. package/dist/sdk/utils/errors/ErrorBuilder.d.ts +1 -1
  79. package/dist/sdk/utils/errors/ErrorBuilder.js +1 -1
  80. package/dist/sdk/utils/errors/setupHandlers.d.ts +1 -1
  81. package/dist/sdk/utils/errors/setupHandlers.js +1 -1
  82. package/dist/sdk/utils/logger.d.ts +1 -1
  83. package/dist/sdk/utils/logger.js +1 -1
  84. package/dist/sdk/utils/test-helpers/architecture-test-utils.d.ts +1 -1
  85. package/dist/sdk/utils/test-helpers/architecture-test-utils.js +1 -1
  86. package/dist/sdk/utils/test-helpers/index.d.ts +1 -1
  87. package/dist/sdk/utils/test-helpers/index.js +1 -1
  88. package/dist/sdk/utils/xmlParser.d.ts +1 -1
  89. package/dist/sdk/utils/xmlParser.js +1 -1
  90. package/dist/sdk/webviewMessageTypes.d.ts +1 -1
  91. package/dist/sdk/webviewMessageTypes.js +1 -1
  92. package/package.json +1 -1
  93. package/src/sdk/utils/test-helpers/architecture-test-utils.ts +1 -1
  94. package/src/sdk/utils/test-helpers/index.ts +1 -1
@@ -0,0 +1,32 @@
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
+ * Available design system themes.
9
+ * Each theme provides a full `--vscode-*` variable layer that the base
10
+ * sheet (`vscode-design-system.css`) reads for its `--mv-*` token definitions.
11
+ *
12
+ * Dark is intentionally absent: it is not a theme file. The base sheet's own
13
+ * inline `var(--vscode-*, <dark-fallback>)` defaults render dark when nothing
14
+ * declares the `--vscode-*` layer, so the default (no-theme) sheet is dark.
15
+ */
16
+ export declare const DESIGN_SYSTEM_THEMES: readonly ["light"];
17
+ /**
18
+ * Union of valid theme names.
19
+ */
20
+ export type DesignSystemTheme = (typeof DESIGN_SYSTEM_THEMES)[number];
21
+ /**
22
+ * Type guard: checks if a value is a valid theme name.
23
+ * Use this to validate user input before passing to theme-aware APIs.
24
+ */
25
+ export declare function isDesignSystemTheme(val: unknown): val is DesignSystemTheme;
26
+ /**
27
+ * Resolve a theme to its CSS filename.
28
+ * @param theme - Optional theme name. Undefined resolves to the default (dark-fallback) sheet.
29
+ * @returns CSS filename (`'platform.css'` for undefined, `'<theme>-design-system.css'` otherwise)
30
+ */
31
+ export declare function designSystemCssFileName(theme?: DesignSystemTheme): string;
32
+ //# sourceMappingURL=themes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/sdk/design-system/themes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,oBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,iBAAiB,CAE1E;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAEzE"}
@@ -0,0 +1,32 @@
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
+ * Available design system themes.
9
+ * Each theme provides a full `--vscode-*` variable layer that the base
10
+ * sheet (`vscode-design-system.css`) reads for its `--mv-*` token definitions.
11
+ *
12
+ * Dark is intentionally absent: it is not a theme file. The base sheet's own
13
+ * inline `var(--vscode-*, <dark-fallback>)` defaults render dark when nothing
14
+ * declares the `--vscode-*` layer, so the default (no-theme) sheet is dark.
15
+ */
16
+ export const DESIGN_SYSTEM_THEMES = ['light'];
17
+ /**
18
+ * Type guard: checks if a value is a valid theme name.
19
+ * Use this to validate user input before passing to theme-aware APIs.
20
+ */
21
+ export function isDesignSystemTheme(val) {
22
+ return typeof val === 'string' && DESIGN_SYSTEM_THEMES.includes(val);
23
+ }
24
+ /**
25
+ * Resolve a theme to its CSS filename.
26
+ * @param theme - Optional theme name. Undefined resolves to the default (dark-fallback) sheet.
27
+ * @returns CSS filename (`'platform.css'` for undefined, `'<theme>-design-system.css'` otherwise)
28
+ */
29
+ export function designSystemCssFileName(theme) {
30
+ return theme ? `${theme}-design-system.css` : 'platform.css';
31
+ }
32
+ //# sourceMappingURL=themes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../src/sdk/design-system/themes.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAO,CAAU,CAAC;AAOvD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAK,oBAA0C,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC9F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAyB;IAC/D,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC;AAC/D,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,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
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.5.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",
@@ -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