@salesforce/ui-theme-manager 11.46.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/LICENSE.txt +82 -0
- package/README.md +29 -0
- package/dist/authoring/core/ThemeManagerPanelRoot.d.cts +43 -0
- package/dist/authoring/core/ThemeManagerPanelRoot.d.ts +43 -0
- package/dist/authoring/core/ThemeManagerPanelRoot.d.ts.map +1 -0
- package/dist/authoring/core/components/AssetsSection.d.cts +12 -0
- package/dist/authoring/core/components/AssetsSection.d.ts +12 -0
- package/dist/authoring/core/components/AssetsSection.d.ts.map +1 -0
- package/dist/authoring/core/components/BordersSection.d.cts +9 -0
- package/dist/authoring/core/components/BordersSection.d.ts +9 -0
- package/dist/authoring/core/components/BordersSection.d.ts.map +1 -0
- package/dist/authoring/core/components/ButtonSection.d.cts +9 -0
- package/dist/authoring/core/components/ButtonSection.d.ts +9 -0
- package/dist/authoring/core/components/ButtonSection.d.ts.map +1 -0
- package/dist/authoring/core/components/ColorEditors.d.cts +8 -0
- package/dist/authoring/core/components/ColorEditors.d.ts +8 -0
- package/dist/authoring/core/components/ColorEditors.d.ts.map +1 -0
- package/dist/authoring/core/components/ColorField.d.cts +45 -0
- package/dist/authoring/core/components/ColorField.d.ts +45 -0
- package/dist/authoring/core/components/ColorField.d.ts.map +1 -0
- package/dist/authoring/core/components/SaveBar.d.cts +8 -0
- package/dist/authoring/core/components/SaveBar.d.ts +8 -0
- package/dist/authoring/core/components/SaveBar.d.ts.map +1 -0
- package/dist/authoring/core/components/SearchBox.d.cts +16 -0
- package/dist/authoring/core/components/SearchBox.d.ts +16 -0
- package/dist/authoring/core/components/SearchBox.d.ts.map +1 -0
- package/dist/authoring/core/components/TabSwitcher.d.cts +13 -0
- package/dist/authoring/core/components/TabSwitcher.d.ts +13 -0
- package/dist/authoring/core/components/TabSwitcher.d.ts.map +1 -0
- package/dist/authoring/core/components/ThemeGallery.d.cts +9 -0
- package/dist/authoring/core/components/ThemeGallery.d.ts +9 -0
- package/dist/authoring/core/components/ThemeGallery.d.ts.map +1 -0
- package/dist/authoring/core/components/TypographySection.d.cts +9 -0
- package/dist/authoring/core/components/TypographySection.d.ts +9 -0
- package/dist/authoring/core/components/TypographySection.d.ts.map +1 -0
- package/dist/authoring/core/index.d.cts +8 -0
- package/dist/authoring/core/index.d.ts +8 -0
- package/dist/authoring/core/index.d.ts.map +1 -0
- package/dist/authoring/core/labels.d.cts +89 -0
- package/dist/authoring/core/labels.d.ts +89 -0
- package/dist/authoring/core/labels.d.ts.map +1 -0
- package/dist/authoring/react/index.d.cts +16 -0
- package/dist/authoring/react/index.d.ts +16 -0
- package/dist/authoring/react/index.d.ts.map +1 -0
- package/dist/authoring/react/index.js +1 -0
- package/dist/authoring/react/styles.css +1 -0
- package/dist/authoring/web-component/index.d.cts +34 -0
- package/dist/authoring/web-component/index.d.ts +34 -0
- package/dist/authoring/web-component/index.d.ts.map +1 -0
- package/dist/authoring/web-component/index.js +729 -0
- package/dist/protocol/brandCss.cjs +255 -0
- package/dist/protocol/brandCss.d.cts +42 -0
- package/dist/protocol/brandCss.d.ts +42 -0
- package/dist/protocol/brandCss.d.ts.map +1 -0
- package/dist/protocol/brandCss.js +255 -0
- package/dist/protocol/brandResolver.cjs +61 -0
- package/dist/protocol/brandResolver.d.cts +28 -0
- package/dist/protocol/brandResolver.d.ts +28 -0
- package/dist/protocol/brandResolver.d.ts.map +1 -0
- package/dist/protocol/brandResolver.js +61 -0
- package/dist/protocol/brandSearch.cjs +64 -0
- package/dist/protocol/brandSearch.d.cts +133 -0
- package/dist/protocol/brandSearch.d.ts +133 -0
- package/dist/protocol/brandSearch.d.ts.map +1 -0
- package/dist/protocol/brandSearch.js +64 -0
- package/dist/protocol/brandTypes.cjs +30 -0
- package/dist/protocol/brandTypes.d.cts +198 -0
- package/dist/protocol/brandTypes.d.ts +198 -0
- package/dist/protocol/brandTypes.d.ts.map +1 -0
- package/dist/protocol/brandTypes.js +30 -0
- package/dist/protocol/deriveColors.cjs +67 -0
- package/dist/protocol/deriveColors.d.cts +39 -0
- package/dist/protocol/deriveColors.d.ts +39 -0
- package/dist/protocol/deriveColors.d.ts.map +1 -0
- package/dist/protocol/deriveColors.js +67 -0
- package/dist/protocol/index.cjs +55 -0
- package/dist/protocol/index.d.cts +20 -0
- package/dist/protocol/index.d.ts +20 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/index.js +55 -0
- package/dist/protocol/messageTypes.cjs +32 -0
- package/dist/protocol/messageTypes.d.cts +86 -0
- package/dist/protocol/messageTypes.d.ts +86 -0
- package/dist/protocol/messageTypes.d.ts.map +1 -0
- package/dist/protocol/messageTypes.js +32 -0
- package/dist/protocol/ootbThemes.cjs +229 -0
- package/dist/protocol/ootbThemes.d.cts +6 -0
- package/dist/protocol/ootbThemes.d.ts +6 -0
- package/dist/protocol/ootbThemes.d.ts.map +1 -0
- package/dist/protocol/ootbThemes.js +229 -0
- package/dist/protocol/themeCss.cjs +47 -0
- package/dist/protocol/themeCss.d.cts +18 -0
- package/dist/protocol/themeCss.d.ts +18 -0
- package/dist/protocol/themeCss.d.ts.map +1 -0
- package/dist/protocol/themeCss.js +47 -0
- package/dist/protocol/types.d.cts +74 -0
- package/dist/protocol/types.d.ts +74 -0
- package/dist/protocol/types.d.ts.map +1 -0
- package/dist/protocol/utils.cjs +10 -0
- package/dist/protocol/utils.d.cts +20 -0
- package/dist/protocol/utils.d.ts +20 -0
- package/dist/protocol/utils.d.ts.map +1 -0
- package/dist/protocol/utils.js +10 -0
- package/dist/runtime/fontFace.cjs +43 -0
- package/dist/runtime/fontFace.d.cts +15 -0
- package/dist/runtime/fontFace.d.ts +15 -0
- package/dist/runtime/fontFace.d.ts.map +1 -0
- package/dist/runtime/fontFace.js +43 -0
- package/dist/runtime/previewContent.cjs +344 -0
- package/dist/runtime/previewContent.d.cts +43 -0
- package/dist/runtime/previewContent.d.ts +43 -0
- package/dist/runtime/previewContent.d.ts.map +1 -0
- package/dist/runtime/previewContent.js +344 -0
- package/dist/runtime/previewRuntime.d.cts +10 -0
- package/dist/runtime/previewRuntime.d.ts +10 -0
- package/dist/runtime/previewRuntime.d.ts.map +1 -0
- package/dist/runtime/theme-preview-runtime.js +466 -0
- package/package.json +74 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const messageTypes = require("./messageTypes.cjs");
|
|
4
|
+
const themeCss = require("./themeCss.cjs");
|
|
5
|
+
const ootbThemes = require("./ootbThemes.cjs");
|
|
6
|
+
const utils = require("./utils.cjs");
|
|
7
|
+
const brandTypes = require("./brandTypes.cjs");
|
|
8
|
+
const brandResolver = require("./brandResolver.cjs");
|
|
9
|
+
const brandCss = require("./brandCss.cjs");
|
|
10
|
+
const deriveColors = require("./deriveColors.cjs");
|
|
11
|
+
const brandSearch = require("./brandSearch.cjs");
|
|
12
|
+
const PROTOCOL_VERSION = "1.0.0";
|
|
13
|
+
exports.MSG_APPLY_VIBES = messageTypes.MSG_APPLY_VIBES;
|
|
14
|
+
exports.MSG_COMPONENT_OVERRIDE = messageTypes.MSG_COMPONENT_OVERRIDE;
|
|
15
|
+
exports.MSG_NEW_THEME = messageTypes.MSG_NEW_THEME;
|
|
16
|
+
exports.MSG_OPEN_PREVIEW = messageTypes.MSG_OPEN_PREVIEW;
|
|
17
|
+
exports.MSG_REFRESH_LOCAL = messageTypes.MSG_REFRESH_LOCAL;
|
|
18
|
+
exports.MSG_SAVE_THEME = messageTypes.MSG_SAVE_THEME;
|
|
19
|
+
exports.MSG_SEARCH_BRANDS = messageTypes.MSG_SEARCH_BRANDS;
|
|
20
|
+
exports.MSG_SELECT_BRAND = messageTypes.MSG_SELECT_BRAND;
|
|
21
|
+
exports.MSG_SELECT_TAB = messageTypes.MSG_SELECT_TAB;
|
|
22
|
+
exports.MSG_SELECT_THEME = messageTypes.MSG_SELECT_THEME;
|
|
23
|
+
exports.MSG_UPDATE_BRAND = messageTypes.MSG_UPDATE_BRAND;
|
|
24
|
+
exports.MSG_UPDATE_BRAND_PROPERTY = messageTypes.MSG_UPDATE_BRAND_PROPERTY;
|
|
25
|
+
exports.MSG_UPDATE_COMPONENT_OVERRIDE = messageTypes.MSG_UPDATE_COMPONENT_OVERRIDE;
|
|
26
|
+
exports.MSG_UPDATE_PROPERTY = messageTypes.MSG_UPDATE_PROPERTY;
|
|
27
|
+
exports.MSG_UPDATE_THEME = messageTypes.MSG_UPDATE_THEME;
|
|
28
|
+
exports.generateThemeCss = themeCss.generateThemeCss;
|
|
29
|
+
exports.themeToVariables = themeCss.themeToVariables;
|
|
30
|
+
exports.createBuiltInThemes = ootbThemes.createBuiltInThemes;
|
|
31
|
+
exports.camelToLabel = utils.camelToLabel;
|
|
32
|
+
exports.escapeHtml = utils.escapeHtml;
|
|
33
|
+
exports.getBrandLogoAltText = brandTypes.getBrandLogoAltText;
|
|
34
|
+
exports.getBrandLogoUrl = brandTypes.getBrandLogoUrl;
|
|
35
|
+
exports.getBrandTitle = brandTypes.getBrandTitle;
|
|
36
|
+
exports.unwrapBrandEnvelope = brandTypes.unwrapBrandEnvelope;
|
|
37
|
+
exports.isBrandRef = brandResolver.isBrandRef;
|
|
38
|
+
exports.resolveBrandTokens = brandResolver.resolveBrandTokens;
|
|
39
|
+
exports.resolveRef = brandResolver.resolveRef;
|
|
40
|
+
exports.brandToVariables = brandCss.brandToVariables;
|
|
41
|
+
exports.generateBrandCss = brandCss.generateBrandCss;
|
|
42
|
+
exports.darkenColor = deriveColors.darkenColor;
|
|
43
|
+
exports.deriveBrandColors = deriveColors.deriveBrandColors;
|
|
44
|
+
exports.derivePrimaryAccentContrastDerived = deriveColors.derivePrimaryAccentContrastDerived;
|
|
45
|
+
exports.derivePrimaryAccentDerived = deriveColors.derivePrimaryAccentDerived;
|
|
46
|
+
exports.updateDerivedColors = deriveColors.updateDerivedColors;
|
|
47
|
+
exports.DEFAULT_BRAND_SEARCH_OPTIONS = brandSearch.DEFAULT_BRAND_SEARCH_OPTIONS;
|
|
48
|
+
exports.MIN_SEARCH_QUERY_LENGTH = brandSearch.MIN_SEARCH_QUERY_LENGTH;
|
|
49
|
+
exports.SEARCH_CMS_CHANNEL_CONTENT_MIN_API_VERSION = brandSearch.SEARCH_CMS_CHANNEL_CONTENT_MIN_API_VERSION;
|
|
50
|
+
exports.buildBrandSearchRequest = brandSearch.buildBrandSearchRequest;
|
|
51
|
+
exports.getContentUrl = brandSearch.getContentUrl;
|
|
52
|
+
exports.isValidSearchQuery = brandSearch.isValidSearchQuery;
|
|
53
|
+
exports.parseBrandSearchResponse = brandSearch.parseBrandSearchResponse;
|
|
54
|
+
exports.resolveSearchApiVersion = brandSearch.resolveSearchApiVersion;
|
|
55
|
+
exports.PROTOCOL_VERSION = PROTOCOL_VERSION;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Theme manager protocol version
|
|
8
|
+
*/
|
|
9
|
+
export declare const PROTOCOL_VERSION = "1.0.0";
|
|
10
|
+
export * from './types.cjs';
|
|
11
|
+
export * from './messageTypes.cjs';
|
|
12
|
+
export * from './themeCss.cjs';
|
|
13
|
+
export * from './ootbThemes.cjs';
|
|
14
|
+
export * from './utils.cjs';
|
|
15
|
+
export * from './brandTypes.cjs';
|
|
16
|
+
export * from './brandResolver.cjs';
|
|
17
|
+
export * from './brandCss.cjs';
|
|
18
|
+
export * from './deriveColors.cjs';
|
|
19
|
+
export * from './brandSearch.cjs';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Theme manager protocol version
|
|
8
|
+
*/
|
|
9
|
+
export declare const PROTOCOL_VERSION = "1.0.0";
|
|
10
|
+
export * from './types.js';
|
|
11
|
+
export * from './messageTypes.js';
|
|
12
|
+
export * from './themeCss.js';
|
|
13
|
+
export * from './ootbThemes.js';
|
|
14
|
+
export * from './utils.js';
|
|
15
|
+
export * from './brandTypes.js';
|
|
16
|
+
export * from './brandResolver.js';
|
|
17
|
+
export * from './brandCss.js';
|
|
18
|
+
export * from './deriveColors.js';
|
|
19
|
+
export * from './brandSearch.js';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { MSG_APPLY_VIBES, MSG_COMPONENT_OVERRIDE, MSG_NEW_THEME, MSG_OPEN_PREVIEW, MSG_REFRESH_LOCAL, MSG_SAVE_THEME, MSG_SEARCH_BRANDS, MSG_SELECT_BRAND, MSG_SELECT_TAB, MSG_SELECT_THEME, MSG_UPDATE_BRAND, MSG_UPDATE_BRAND_PROPERTY, MSG_UPDATE_COMPONENT_OVERRIDE, MSG_UPDATE_PROPERTY, MSG_UPDATE_THEME } from "./messageTypes.js";
|
|
2
|
+
import { generateThemeCss, themeToVariables } from "./themeCss.js";
|
|
3
|
+
import { createBuiltInThemes } from "./ootbThemes.js";
|
|
4
|
+
import { camelToLabel, escapeHtml } from "./utils.js";
|
|
5
|
+
import { getBrandLogoAltText, getBrandLogoUrl, getBrandTitle, unwrapBrandEnvelope } from "./brandTypes.js";
|
|
6
|
+
import { isBrandRef, resolveBrandTokens, resolveRef } from "./brandResolver.js";
|
|
7
|
+
import { brandToVariables, generateBrandCss } from "./brandCss.js";
|
|
8
|
+
import { darkenColor, deriveBrandColors, derivePrimaryAccentContrastDerived, derivePrimaryAccentDerived, updateDerivedColors } from "./deriveColors.js";
|
|
9
|
+
import { DEFAULT_BRAND_SEARCH_OPTIONS, MIN_SEARCH_QUERY_LENGTH, SEARCH_CMS_CHANNEL_CONTENT_MIN_API_VERSION, buildBrandSearchRequest, getContentUrl, isValidSearchQuery, parseBrandSearchResponse, resolveSearchApiVersion } from "./brandSearch.js";
|
|
10
|
+
const PROTOCOL_VERSION = "1.0.0";
|
|
11
|
+
export {
|
|
12
|
+
DEFAULT_BRAND_SEARCH_OPTIONS,
|
|
13
|
+
MIN_SEARCH_QUERY_LENGTH,
|
|
14
|
+
MSG_APPLY_VIBES,
|
|
15
|
+
MSG_COMPONENT_OVERRIDE,
|
|
16
|
+
MSG_NEW_THEME,
|
|
17
|
+
MSG_OPEN_PREVIEW,
|
|
18
|
+
MSG_REFRESH_LOCAL,
|
|
19
|
+
MSG_SAVE_THEME,
|
|
20
|
+
MSG_SEARCH_BRANDS,
|
|
21
|
+
MSG_SELECT_BRAND,
|
|
22
|
+
MSG_SELECT_TAB,
|
|
23
|
+
MSG_SELECT_THEME,
|
|
24
|
+
MSG_UPDATE_BRAND,
|
|
25
|
+
MSG_UPDATE_BRAND_PROPERTY,
|
|
26
|
+
MSG_UPDATE_COMPONENT_OVERRIDE,
|
|
27
|
+
MSG_UPDATE_PROPERTY,
|
|
28
|
+
MSG_UPDATE_THEME,
|
|
29
|
+
PROTOCOL_VERSION,
|
|
30
|
+
SEARCH_CMS_CHANNEL_CONTENT_MIN_API_VERSION,
|
|
31
|
+
brandToVariables,
|
|
32
|
+
buildBrandSearchRequest,
|
|
33
|
+
camelToLabel,
|
|
34
|
+
createBuiltInThemes,
|
|
35
|
+
darkenColor,
|
|
36
|
+
deriveBrandColors,
|
|
37
|
+
derivePrimaryAccentContrastDerived,
|
|
38
|
+
derivePrimaryAccentDerived,
|
|
39
|
+
escapeHtml,
|
|
40
|
+
generateBrandCss,
|
|
41
|
+
generateThemeCss,
|
|
42
|
+
getBrandLogoAltText,
|
|
43
|
+
getBrandLogoUrl,
|
|
44
|
+
getBrandTitle,
|
|
45
|
+
getContentUrl,
|
|
46
|
+
isBrandRef,
|
|
47
|
+
isValidSearchQuery,
|
|
48
|
+
parseBrandSearchResponse,
|
|
49
|
+
resolveBrandTokens,
|
|
50
|
+
resolveRef,
|
|
51
|
+
resolveSearchApiVersion,
|
|
52
|
+
themeToVariables,
|
|
53
|
+
unwrapBrandEnvelope,
|
|
54
|
+
updateDerivedColors
|
|
55
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const MSG_SELECT_THEME = "select-theme";
|
|
4
|
+
const MSG_UPDATE_PROPERTY = "update-property";
|
|
5
|
+
const MSG_OPEN_PREVIEW = "open-preview";
|
|
6
|
+
const MSG_SAVE_THEME = "save-theme";
|
|
7
|
+
const MSG_NEW_THEME = "new-theme";
|
|
8
|
+
const MSG_COMPONENT_OVERRIDE = "component-override";
|
|
9
|
+
const MSG_UPDATE_THEME = "update-theme";
|
|
10
|
+
const MSG_UPDATE_COMPONENT_OVERRIDE = "update-component-override";
|
|
11
|
+
const MSG_SELECT_BRAND = "select-brand";
|
|
12
|
+
const MSG_SEARCH_BRANDS = "search-brands";
|
|
13
|
+
const MSG_UPDATE_BRAND_PROPERTY = "update-brand-property";
|
|
14
|
+
const MSG_UPDATE_BRAND = "update-brand";
|
|
15
|
+
const MSG_SELECT_TAB = "select-tab";
|
|
16
|
+
const MSG_REFRESH_LOCAL = "refresh-local";
|
|
17
|
+
const MSG_APPLY_VIBES = "apply-vibes";
|
|
18
|
+
exports.MSG_APPLY_VIBES = MSG_APPLY_VIBES;
|
|
19
|
+
exports.MSG_COMPONENT_OVERRIDE = MSG_COMPONENT_OVERRIDE;
|
|
20
|
+
exports.MSG_NEW_THEME = MSG_NEW_THEME;
|
|
21
|
+
exports.MSG_OPEN_PREVIEW = MSG_OPEN_PREVIEW;
|
|
22
|
+
exports.MSG_REFRESH_LOCAL = MSG_REFRESH_LOCAL;
|
|
23
|
+
exports.MSG_SAVE_THEME = MSG_SAVE_THEME;
|
|
24
|
+
exports.MSG_SEARCH_BRANDS = MSG_SEARCH_BRANDS;
|
|
25
|
+
exports.MSG_SELECT_BRAND = MSG_SELECT_BRAND;
|
|
26
|
+
exports.MSG_SELECT_TAB = MSG_SELECT_TAB;
|
|
27
|
+
exports.MSG_SELECT_THEME = MSG_SELECT_THEME;
|
|
28
|
+
exports.MSG_UPDATE_BRAND = MSG_UPDATE_BRAND;
|
|
29
|
+
exports.MSG_UPDATE_BRAND_PROPERTY = MSG_UPDATE_BRAND_PROPERTY;
|
|
30
|
+
exports.MSG_UPDATE_COMPONENT_OVERRIDE = MSG_UPDATE_COMPONENT_OVERRIDE;
|
|
31
|
+
exports.MSG_UPDATE_PROPERTY = MSG_UPDATE_PROPERTY;
|
|
32
|
+
exports.MSG_UPDATE_THEME = MSG_UPDATE_THEME;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Brand } from './brandTypes.cjs';
|
|
2
|
+
import { Theme, ComponentOverride } from './types.cjs';
|
|
3
|
+
/**
|
|
4
|
+
* Typed message contract between the theme-manager authoring host and the
|
|
5
|
+
* preview runtime.
|
|
6
|
+
*
|
|
7
|
+
* Evolution policy: Add new message types and optional fields freely.
|
|
8
|
+
* Never rename or remove. Never change string constant values.
|
|
9
|
+
* Capability advertisement (on initialization) is the preferred mechanism
|
|
10
|
+
* for new behavior.
|
|
11
|
+
*/
|
|
12
|
+
export interface SelectThemeMessage {
|
|
13
|
+
type: "select-theme";
|
|
14
|
+
developerName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdatePropertyMessage {
|
|
17
|
+
type: "update-property";
|
|
18
|
+
section: string;
|
|
19
|
+
property: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OpenPreviewMessage {
|
|
23
|
+
type: "open-preview";
|
|
24
|
+
}
|
|
25
|
+
export interface SaveThemeMessage {
|
|
26
|
+
type: "save-theme";
|
|
27
|
+
}
|
|
28
|
+
export interface NewThemeMessage {
|
|
29
|
+
type: "new-theme";
|
|
30
|
+
}
|
|
31
|
+
export interface ComponentOverrideMessage {
|
|
32
|
+
type: "component-override";
|
|
33
|
+
component: string;
|
|
34
|
+
overrides: Record<string, string>;
|
|
35
|
+
}
|
|
36
|
+
export type SidebarToHostMessage = SelectThemeMessage | UpdatePropertyMessage | OpenPreviewMessage | SaveThemeMessage | NewThemeMessage | ComponentOverrideMessage;
|
|
37
|
+
export interface UpdateThemeMessage {
|
|
38
|
+
type: "update-theme";
|
|
39
|
+
theme: Theme;
|
|
40
|
+
variables: Record<string, string>;
|
|
41
|
+
}
|
|
42
|
+
export interface UpdateComponentOverrideMessage {
|
|
43
|
+
type: "update-component-override";
|
|
44
|
+
component: string;
|
|
45
|
+
overrides: ComponentOverride;
|
|
46
|
+
}
|
|
47
|
+
export type HostToPreviewMessage = UpdateThemeMessage | UpdateComponentOverrideMessage;
|
|
48
|
+
export interface SelectBrandMessage {
|
|
49
|
+
type: "select-brand";
|
|
50
|
+
developerName?: string;
|
|
51
|
+
brandId?: string;
|
|
52
|
+
source?: "local" | "org";
|
|
53
|
+
}
|
|
54
|
+
export interface SearchBrandsMessage {
|
|
55
|
+
type: "search-brands";
|
|
56
|
+
query: string;
|
|
57
|
+
}
|
|
58
|
+
export interface UpdateBrandPropertyMessage {
|
|
59
|
+
type: "update-brand-property";
|
|
60
|
+
section: string;
|
|
61
|
+
path: string;
|
|
62
|
+
value: unknown;
|
|
63
|
+
}
|
|
64
|
+
export type BrandSidebarToHostMessage = SelectBrandMessage | SearchBrandsMessage | UpdateBrandPropertyMessage;
|
|
65
|
+
export interface UpdateBrandMessage {
|
|
66
|
+
type: "update-brand";
|
|
67
|
+
brand: Brand;
|
|
68
|
+
variables: Record<string, string>;
|
|
69
|
+
}
|
|
70
|
+
export type BrandHostToPreviewMessage = UpdateBrandMessage;
|
|
71
|
+
export declare const MSG_SELECT_THEME: "select-theme";
|
|
72
|
+
export declare const MSG_UPDATE_PROPERTY: "update-property";
|
|
73
|
+
export declare const MSG_OPEN_PREVIEW: "open-preview";
|
|
74
|
+
export declare const MSG_SAVE_THEME: "save-theme";
|
|
75
|
+
export declare const MSG_NEW_THEME: "new-theme";
|
|
76
|
+
export declare const MSG_COMPONENT_OVERRIDE: "component-override";
|
|
77
|
+
export declare const MSG_UPDATE_THEME: "update-theme";
|
|
78
|
+
export declare const MSG_UPDATE_COMPONENT_OVERRIDE: "update-component-override";
|
|
79
|
+
export declare const MSG_SELECT_BRAND: "select-brand";
|
|
80
|
+
export declare const MSG_SEARCH_BRANDS: "search-brands";
|
|
81
|
+
export declare const MSG_UPDATE_BRAND_PROPERTY: "update-brand-property";
|
|
82
|
+
export declare const MSG_UPDATE_BRAND: "update-brand";
|
|
83
|
+
export declare const MSG_SELECT_TAB: "select-tab";
|
|
84
|
+
export declare const MSG_REFRESH_LOCAL: "refresh-local";
|
|
85
|
+
export declare const MSG_APPLY_VIBES: "apply-vibes";
|
|
86
|
+
//# sourceMappingURL=messageTypes.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Brand } from './brandTypes.js';
|
|
2
|
+
import { Theme, ComponentOverride } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Typed message contract between the theme-manager authoring host and the
|
|
5
|
+
* preview runtime.
|
|
6
|
+
*
|
|
7
|
+
* Evolution policy: Add new message types and optional fields freely.
|
|
8
|
+
* Never rename or remove. Never change string constant values.
|
|
9
|
+
* Capability advertisement (on initialization) is the preferred mechanism
|
|
10
|
+
* for new behavior.
|
|
11
|
+
*/
|
|
12
|
+
export interface SelectThemeMessage {
|
|
13
|
+
type: "select-theme";
|
|
14
|
+
developerName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdatePropertyMessage {
|
|
17
|
+
type: "update-property";
|
|
18
|
+
section: string;
|
|
19
|
+
property: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OpenPreviewMessage {
|
|
23
|
+
type: "open-preview";
|
|
24
|
+
}
|
|
25
|
+
export interface SaveThemeMessage {
|
|
26
|
+
type: "save-theme";
|
|
27
|
+
}
|
|
28
|
+
export interface NewThemeMessage {
|
|
29
|
+
type: "new-theme";
|
|
30
|
+
}
|
|
31
|
+
export interface ComponentOverrideMessage {
|
|
32
|
+
type: "component-override";
|
|
33
|
+
component: string;
|
|
34
|
+
overrides: Record<string, string>;
|
|
35
|
+
}
|
|
36
|
+
export type SidebarToHostMessage = SelectThemeMessage | UpdatePropertyMessage | OpenPreviewMessage | SaveThemeMessage | NewThemeMessage | ComponentOverrideMessage;
|
|
37
|
+
export interface UpdateThemeMessage {
|
|
38
|
+
type: "update-theme";
|
|
39
|
+
theme: Theme;
|
|
40
|
+
variables: Record<string, string>;
|
|
41
|
+
}
|
|
42
|
+
export interface UpdateComponentOverrideMessage {
|
|
43
|
+
type: "update-component-override";
|
|
44
|
+
component: string;
|
|
45
|
+
overrides: ComponentOverride;
|
|
46
|
+
}
|
|
47
|
+
export type HostToPreviewMessage = UpdateThemeMessage | UpdateComponentOverrideMessage;
|
|
48
|
+
export interface SelectBrandMessage {
|
|
49
|
+
type: "select-brand";
|
|
50
|
+
developerName?: string;
|
|
51
|
+
brandId?: string;
|
|
52
|
+
source?: "local" | "org";
|
|
53
|
+
}
|
|
54
|
+
export interface SearchBrandsMessage {
|
|
55
|
+
type: "search-brands";
|
|
56
|
+
query: string;
|
|
57
|
+
}
|
|
58
|
+
export interface UpdateBrandPropertyMessage {
|
|
59
|
+
type: "update-brand-property";
|
|
60
|
+
section: string;
|
|
61
|
+
path: string;
|
|
62
|
+
value: unknown;
|
|
63
|
+
}
|
|
64
|
+
export type BrandSidebarToHostMessage = SelectBrandMessage | SearchBrandsMessage | UpdateBrandPropertyMessage;
|
|
65
|
+
export interface UpdateBrandMessage {
|
|
66
|
+
type: "update-brand";
|
|
67
|
+
brand: Brand;
|
|
68
|
+
variables: Record<string, string>;
|
|
69
|
+
}
|
|
70
|
+
export type BrandHostToPreviewMessage = UpdateBrandMessage;
|
|
71
|
+
export declare const MSG_SELECT_THEME: "select-theme";
|
|
72
|
+
export declare const MSG_UPDATE_PROPERTY: "update-property";
|
|
73
|
+
export declare const MSG_OPEN_PREVIEW: "open-preview";
|
|
74
|
+
export declare const MSG_SAVE_THEME: "save-theme";
|
|
75
|
+
export declare const MSG_NEW_THEME: "new-theme";
|
|
76
|
+
export declare const MSG_COMPONENT_OVERRIDE: "component-override";
|
|
77
|
+
export declare const MSG_UPDATE_THEME: "update-theme";
|
|
78
|
+
export declare const MSG_UPDATE_COMPONENT_OVERRIDE: "update-component-override";
|
|
79
|
+
export declare const MSG_SELECT_BRAND: "select-brand";
|
|
80
|
+
export declare const MSG_SEARCH_BRANDS: "search-brands";
|
|
81
|
+
export declare const MSG_UPDATE_BRAND_PROPERTY: "update-brand-property";
|
|
82
|
+
export declare const MSG_UPDATE_BRAND: "update-brand";
|
|
83
|
+
export declare const MSG_SELECT_TAB: "select-tab";
|
|
84
|
+
export declare const MSG_REFRESH_LOCAL: "refresh-local";
|
|
85
|
+
export declare const MSG_APPLY_VIBES: "apply-vibes";
|
|
86
|
+
//# sourceMappingURL=messageTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messageTypes.d.ts","sourceRoot":"","sources":["../../src/protocol/messageTypes.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const MSG_SELECT_THEME = "select-theme";
|
|
2
|
+
const MSG_UPDATE_PROPERTY = "update-property";
|
|
3
|
+
const MSG_OPEN_PREVIEW = "open-preview";
|
|
4
|
+
const MSG_SAVE_THEME = "save-theme";
|
|
5
|
+
const MSG_NEW_THEME = "new-theme";
|
|
6
|
+
const MSG_COMPONENT_OVERRIDE = "component-override";
|
|
7
|
+
const MSG_UPDATE_THEME = "update-theme";
|
|
8
|
+
const MSG_UPDATE_COMPONENT_OVERRIDE = "update-component-override";
|
|
9
|
+
const MSG_SELECT_BRAND = "select-brand";
|
|
10
|
+
const MSG_SEARCH_BRANDS = "search-brands";
|
|
11
|
+
const MSG_UPDATE_BRAND_PROPERTY = "update-brand-property";
|
|
12
|
+
const MSG_UPDATE_BRAND = "update-brand";
|
|
13
|
+
const MSG_SELECT_TAB = "select-tab";
|
|
14
|
+
const MSG_REFRESH_LOCAL = "refresh-local";
|
|
15
|
+
const MSG_APPLY_VIBES = "apply-vibes";
|
|
16
|
+
export {
|
|
17
|
+
MSG_APPLY_VIBES,
|
|
18
|
+
MSG_COMPONENT_OVERRIDE,
|
|
19
|
+
MSG_NEW_THEME,
|
|
20
|
+
MSG_OPEN_PREVIEW,
|
|
21
|
+
MSG_REFRESH_LOCAL,
|
|
22
|
+
MSG_SAVE_THEME,
|
|
23
|
+
MSG_SEARCH_BRANDS,
|
|
24
|
+
MSG_SELECT_BRAND,
|
|
25
|
+
MSG_SELECT_TAB,
|
|
26
|
+
MSG_SELECT_THEME,
|
|
27
|
+
MSG_UPDATE_BRAND,
|
|
28
|
+
MSG_UPDATE_BRAND_PROPERTY,
|
|
29
|
+
MSG_UPDATE_COMPONENT_OVERRIDE,
|
|
30
|
+
MSG_UPDATE_PROPERTY,
|
|
31
|
+
MSG_UPDATE_THEME
|
|
32
|
+
};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function createBuiltInThemes() {
|
|
4
|
+
return [
|
|
5
|
+
{
|
|
6
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
7
|
+
metadata: {
|
|
8
|
+
developerName: "cosmos",
|
|
9
|
+
label: "Cosmos",
|
|
10
|
+
description: "Salesforce default theme with signature blues"
|
|
11
|
+
},
|
|
12
|
+
colors: {
|
|
13
|
+
primary: "#0176D3",
|
|
14
|
+
secondary: "#032D60",
|
|
15
|
+
background: "#FFFFFF",
|
|
16
|
+
surface: "#F3F3F3",
|
|
17
|
+
text: "#181818",
|
|
18
|
+
textSecondary: "#444444",
|
|
19
|
+
accent: "#0B5CAB",
|
|
20
|
+
error: "#BA0517",
|
|
21
|
+
success: "#2E844A"
|
|
22
|
+
},
|
|
23
|
+
typography: {
|
|
24
|
+
headingFamily: "'Inter', sans-serif",
|
|
25
|
+
bodyFamily: "'Inter', sans-serif",
|
|
26
|
+
baseFontSize: "16px",
|
|
27
|
+
headingWeight: "700",
|
|
28
|
+
bodyWeight: "400",
|
|
29
|
+
lineHeight: "1.5"
|
|
30
|
+
},
|
|
31
|
+
spacing: { density: "default", baseUnit: "8px" },
|
|
32
|
+
borders: { radius: "4px", radiusSmall: "2px", radiusLarge: "8px" },
|
|
33
|
+
buttons: {
|
|
34
|
+
primaryBg: "#0176D3",
|
|
35
|
+
primaryText: "#FFFFFF",
|
|
36
|
+
borderRadius: "4px",
|
|
37
|
+
paddingX: "16px",
|
|
38
|
+
paddingY: "8px"
|
|
39
|
+
},
|
|
40
|
+
logo: null
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
44
|
+
metadata: {
|
|
45
|
+
developerName: "luxury_hotel",
|
|
46
|
+
label: "Luxury Hotel Portal",
|
|
47
|
+
description: "Sophisticated theme for a luxury hotel portal with gold accents"
|
|
48
|
+
},
|
|
49
|
+
colors: {
|
|
50
|
+
primary: "#1A365D",
|
|
51
|
+
secondary: "#C9A96E",
|
|
52
|
+
background: "#FAF9F7",
|
|
53
|
+
surface: "#FFFFFF",
|
|
54
|
+
text: "#1A202C",
|
|
55
|
+
textSecondary: "#4A5568",
|
|
56
|
+
accent: "#C5A54E",
|
|
57
|
+
error: "#D32F2F",
|
|
58
|
+
success: "#2E7D32"
|
|
59
|
+
},
|
|
60
|
+
typography: {
|
|
61
|
+
headingFamily: "'Playfair Display', serif",
|
|
62
|
+
bodyFamily: "'Inter', sans-serif",
|
|
63
|
+
baseFontSize: "16px",
|
|
64
|
+
headingWeight: "700",
|
|
65
|
+
bodyWeight: "400",
|
|
66
|
+
lineHeight: "1.6"
|
|
67
|
+
},
|
|
68
|
+
spacing: { density: "spacious", baseUnit: "8px" },
|
|
69
|
+
borders: { radius: "12px", radiusSmall: "6px", radiusLarge: "20px" },
|
|
70
|
+
buttons: {
|
|
71
|
+
primaryBg: "#C5A54E",
|
|
72
|
+
primaryText: "#FFFFFF",
|
|
73
|
+
borderRadius: "8px",
|
|
74
|
+
paddingX: "24px",
|
|
75
|
+
paddingY: "12px"
|
|
76
|
+
},
|
|
77
|
+
logo: null
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
81
|
+
metadata: {
|
|
82
|
+
developerName: "midnight",
|
|
83
|
+
label: "Midnight",
|
|
84
|
+
description: "Dark theme with deep blues and purples"
|
|
85
|
+
},
|
|
86
|
+
colors: {
|
|
87
|
+
primary: "#6B5CE7",
|
|
88
|
+
secondary: "#A78BFA",
|
|
89
|
+
background: "#0F0F23",
|
|
90
|
+
surface: "#1A1A3E",
|
|
91
|
+
text: "#E8E8F0",
|
|
92
|
+
textSecondary: "#A0A0C0",
|
|
93
|
+
accent: "#8B5CF6",
|
|
94
|
+
error: "#F87171",
|
|
95
|
+
success: "#4ADE80"
|
|
96
|
+
},
|
|
97
|
+
typography: {
|
|
98
|
+
headingFamily: "'Inter', sans-serif",
|
|
99
|
+
bodyFamily: "'Inter', sans-serif",
|
|
100
|
+
baseFontSize: "16px",
|
|
101
|
+
headingWeight: "600",
|
|
102
|
+
bodyWeight: "400",
|
|
103
|
+
lineHeight: "1.6"
|
|
104
|
+
},
|
|
105
|
+
spacing: { density: "default", baseUnit: "8px" },
|
|
106
|
+
borders: { radius: "6px", radiusSmall: "3px", radiusLarge: "12px" },
|
|
107
|
+
buttons: {
|
|
108
|
+
primaryBg: "#6B5CE7",
|
|
109
|
+
primaryText: "#FFFFFF",
|
|
110
|
+
borderRadius: "6px",
|
|
111
|
+
paddingX: "20px",
|
|
112
|
+
paddingY: "10px"
|
|
113
|
+
},
|
|
114
|
+
logo: null
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
118
|
+
metadata: {
|
|
119
|
+
developerName: "sunrise",
|
|
120
|
+
label: "Sunrise",
|
|
121
|
+
description: "Warm theme with vibrant oranges and yellows"
|
|
122
|
+
},
|
|
123
|
+
colors: {
|
|
124
|
+
primary: "#EA580C",
|
|
125
|
+
secondary: "#D97706",
|
|
126
|
+
background: "#FFFBF5",
|
|
127
|
+
surface: "#FEF3E2",
|
|
128
|
+
text: "#1C1917",
|
|
129
|
+
textSecondary: "#57534E",
|
|
130
|
+
accent: "#F59E0B",
|
|
131
|
+
error: "#DC2626",
|
|
132
|
+
success: "#16A34A"
|
|
133
|
+
},
|
|
134
|
+
typography: {
|
|
135
|
+
headingFamily: "'Inter', sans-serif",
|
|
136
|
+
bodyFamily: "'Inter', sans-serif",
|
|
137
|
+
baseFontSize: "16px",
|
|
138
|
+
headingWeight: "700",
|
|
139
|
+
bodyWeight: "400",
|
|
140
|
+
lineHeight: "1.5"
|
|
141
|
+
},
|
|
142
|
+
spacing: { density: "spacious", baseUnit: "8px" },
|
|
143
|
+
borders: { radius: "8px", radiusSmall: "4px", radiusLarge: "16px" },
|
|
144
|
+
buttons: {
|
|
145
|
+
primaryBg: "#EA580C",
|
|
146
|
+
primaryText: "#FFFFFF",
|
|
147
|
+
borderRadius: "8px",
|
|
148
|
+
paddingX: "18px",
|
|
149
|
+
paddingY: "10px"
|
|
150
|
+
},
|
|
151
|
+
logo: null
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
155
|
+
metadata: {
|
|
156
|
+
developerName: "high_contrast",
|
|
157
|
+
label: "High Contrast",
|
|
158
|
+
description: "Maximum contrast for accessibility with bold colors"
|
|
159
|
+
},
|
|
160
|
+
colors: {
|
|
161
|
+
primary: "#000000",
|
|
162
|
+
secondary: "#1A1A1A",
|
|
163
|
+
background: "#FFFFFF",
|
|
164
|
+
surface: "#F5F5F5",
|
|
165
|
+
text: "#000000",
|
|
166
|
+
textSecondary: "#333333",
|
|
167
|
+
accent: "#0000FF",
|
|
168
|
+
error: "#CC0000",
|
|
169
|
+
success: "#006600"
|
|
170
|
+
},
|
|
171
|
+
typography: {
|
|
172
|
+
headingFamily: "'Inter', sans-serif",
|
|
173
|
+
bodyFamily: "'Inter', sans-serif",
|
|
174
|
+
baseFontSize: "18px",
|
|
175
|
+
headingWeight: "900",
|
|
176
|
+
bodyWeight: "500",
|
|
177
|
+
lineHeight: "1.6"
|
|
178
|
+
},
|
|
179
|
+
spacing: { density: "spacious", baseUnit: "10px" },
|
|
180
|
+
borders: { radius: "0px", radiusSmall: "0px", radiusLarge: "0px" },
|
|
181
|
+
buttons: {
|
|
182
|
+
primaryBg: "#000000",
|
|
183
|
+
primaryText: "#FFFFFF",
|
|
184
|
+
borderRadius: "0px",
|
|
185
|
+
paddingX: "20px",
|
|
186
|
+
paddingY: "12px"
|
|
187
|
+
},
|
|
188
|
+
logo: null
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
$schema: "https://salesforce.com/schema/theme.json",
|
|
192
|
+
metadata: {
|
|
193
|
+
developerName: "muted_professional",
|
|
194
|
+
label: "Muted Professional",
|
|
195
|
+
description: "Subtle grays and navy for a refined business look"
|
|
196
|
+
},
|
|
197
|
+
colors: {
|
|
198
|
+
primary: "#2C3E50",
|
|
199
|
+
secondary: "#34495E",
|
|
200
|
+
background: "#FAFBFC",
|
|
201
|
+
surface: "#EDF2F7",
|
|
202
|
+
text: "#2D3748",
|
|
203
|
+
textSecondary: "#718096",
|
|
204
|
+
accent: "#4A5568",
|
|
205
|
+
error: "#C53030",
|
|
206
|
+
success: "#38A169"
|
|
207
|
+
},
|
|
208
|
+
typography: {
|
|
209
|
+
headingFamily: "'Inter', sans-serif",
|
|
210
|
+
bodyFamily: "'Inter', sans-serif",
|
|
211
|
+
baseFontSize: "15px",
|
|
212
|
+
headingWeight: "600",
|
|
213
|
+
bodyWeight: "400",
|
|
214
|
+
lineHeight: "1.5"
|
|
215
|
+
},
|
|
216
|
+
spacing: { density: "compact", baseUnit: "6px" },
|
|
217
|
+
borders: { radius: "3px", radiusSmall: "2px", radiusLarge: "6px" },
|
|
218
|
+
buttons: {
|
|
219
|
+
primaryBg: "#2C3E50",
|
|
220
|
+
primaryText: "#FFFFFF",
|
|
221
|
+
borderRadius: "3px",
|
|
222
|
+
paddingX: "14px",
|
|
223
|
+
paddingY: "8px"
|
|
224
|
+
},
|
|
225
|
+
logo: null
|
|
226
|
+
}
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
exports.createBuiltInThemes = createBuiltInThemes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ootbThemes.d.ts","sourceRoot":"","sources":["../../src/protocol/ootbThemes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,KAAK,EAAE,CAiO7C"}
|