@salesforce/metadata-core-sdk 1.3.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.
- package/README.md +25 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk/abstractions/core/IPlatformContext.d.ts +1 -1
- package/dist/sdk/abstractions/core/IPlatformContext.js +1 -1
- package/dist/sdk/abstractions/core/index.d.ts +1 -1
- package/dist/sdk/abstractions/core/index.js +1 -1
- package/dist/sdk/abstractions/index.d.ts +1 -1
- package/dist/sdk/abstractions/index.js +1 -1
- package/dist/sdk/abstractions/services/IFileSystem.d.ts +1 -1
- package/dist/sdk/abstractions/services/IFileSystem.js +1 -1
- package/dist/sdk/abstractions/services/ILogger.d.ts +1 -1
- package/dist/sdk/abstractions/services/ILogger.js +1 -1
- package/dist/sdk/abstractions/services/ITelemetry.d.ts +1 -1
- package/dist/sdk/abstractions/services/ITelemetry.js +1 -1
- package/dist/sdk/abstractions/services/index.d.ts +1 -1
- package/dist/sdk/abstractions/services/index.js +1 -1
- package/dist/sdk/abstractions/types/FileMetadata.d.ts +1 -1
- package/dist/sdk/abstractions/types/FileMetadata.js +1 -1
- package/dist/sdk/abstractions/types/Result.d.ts +1 -1
- package/dist/sdk/abstractions/types/Result.js +1 -1
- package/dist/sdk/abstractions/types/index.d.ts +1 -1
- package/dist/sdk/abstractions/types/index.js +1 -1
- package/dist/sdk/components/LegendPanel/index.d.ts +1 -1
- package/dist/sdk/components/LegendPanel/index.js +1 -1
- package/dist/sdk/components/ZoomBar/ZoomBar.d.ts.map +1 -1
- package/dist/sdk/components/ZoomBar/ZoomBar.js +2 -1
- package/dist/sdk/components/ZoomBar/ZoomBar.js.map +1 -1
- package/dist/sdk/components/ZoomBar/index.d.ts +1 -1
- package/dist/sdk/components/ZoomBar/index.js +1 -1
- package/dist/sdk/components/index.d.ts +1 -1
- package/dist/sdk/components/index.js +1 -1
- package/dist/sdk/constants.d.ts +1 -1
- package/dist/sdk/constants.js +1 -1
- package/dist/sdk/contracts/core/IMetadataParser.d.ts +1 -1
- package/dist/sdk/contracts/core/IMetadataParser.js +1 -1
- package/dist/sdk/contracts/core/IVisualizationPlugin.d.ts +1 -1
- package/dist/sdk/contracts/core/IVisualizationPlugin.js +1 -1
- package/dist/sdk/contracts/core/index.d.ts +1 -1
- package/dist/sdk/contracts/core/index.js +1 -1
- package/dist/sdk/contracts/index.d.ts +1 -1
- package/dist/sdk/contracts/index.js +1 -1
- package/dist/sdk/contracts/types/MetadataFileInfo.d.ts +1 -1
- package/dist/sdk/contracts/types/MetadataFileInfo.js +1 -1
- package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts +11 -1
- package/dist/sdk/contracts/types/MetadataPluginInfo.d.ts.map +1 -1
- package/dist/sdk/contracts/types/MetadataPluginInfo.js +1 -1
- package/dist/sdk/contracts/types/PluginConfig.d.ts +1 -1
- package/dist/sdk/contracts/types/PluginConfig.js +1 -1
- package/dist/sdk/contracts/types/PluginContext.d.ts +1 -1
- package/dist/sdk/contracts/types/PluginContext.js +1 -1
- package/dist/sdk/contracts/types/PluginError.d.ts +1 -1
- package/dist/sdk/contracts/types/PluginError.js +1 -1
- package/dist/sdk/contracts/types/ValidationResult.d.ts +1 -1
- package/dist/sdk/contracts/types/ValidationResult.js +1 -1
- package/dist/sdk/contracts/types/VersionInfo.d.ts +1 -1
- package/dist/sdk/contracts/types/VersionInfo.js +1 -1
- package/dist/sdk/contracts/types/index.d.ts +1 -1
- package/dist/sdk/contracts/types/index.js +1 -1
- package/dist/sdk/design-system/index.d.ts +3 -1
- package/dist/sdk/design-system/index.d.ts.map +1 -1
- package/dist/sdk/design-system/index.js +3 -1
- package/dist/sdk/design-system/index.js.map +1 -1
- package/dist/sdk/design-system/light-design-system.css +724 -0
- package/dist/sdk/design-system/themes.d.ts +32 -0
- package/dist/sdk/design-system/themes.d.ts.map +1 -0
- package/dist/sdk/design-system/themes.js +32 -0
- package/dist/sdk/design-system/themes.js.map +1 -0
- package/dist/sdk/design-system/tokens/colors.d.ts +1 -1
- package/dist/sdk/design-system/tokens/colors.js +1 -1
- package/dist/sdk/design-system/tokens/spacing.d.ts +1 -1
- package/dist/sdk/design-system/tokens/spacing.js +1 -1
- package/dist/sdk/design-system/tokens/typography.d.ts +1 -1
- package/dist/sdk/design-system/tokens/typography.js +1 -1
- package/dist/sdk/design-system/utils.d.ts +1 -1
- package/dist/sdk/design-system/utils.js +1 -1
- package/dist/sdk/utils/HostCommunicationUtils.d.ts +1 -1
- package/dist/sdk/utils/HostCommunicationUtils.js +1 -1
- package/dist/sdk/utils/errors/ErrorBuilder.d.ts +1 -1
- package/dist/sdk/utils/errors/ErrorBuilder.js +1 -1
- package/dist/sdk/utils/errors/setupHandlers.d.ts +1 -1
- package/dist/sdk/utils/errors/setupHandlers.js +1 -1
- package/dist/sdk/utils/logger.d.ts +1 -1
- package/dist/sdk/utils/logger.js +1 -1
- package/dist/sdk/utils/test-helpers/architecture-test-utils.d.ts +1 -1
- package/dist/sdk/utils/test-helpers/architecture-test-utils.js +1 -1
- package/dist/sdk/utils/test-helpers/index.d.ts +1 -1
- package/dist/sdk/utils/test-helpers/index.js +1 -1
- package/dist/sdk/utils/xmlParser.d.ts +1 -1
- package/dist/sdk/utils/xmlParser.js +1 -1
- package/dist/sdk/webviewMessageTypes.d.ts +1 -1
- package/dist/sdk/webviewMessageTypes.js +1 -1
- package/package.json +1 -1
- package/src/sdk/utils/test-helpers/architecture-test-utils.ts +1 -1
- 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"}
|
package/dist/sdk/utils/logger.js
CHANGED
package/package.json
CHANGED