@blackbaud/skyux-branding-builder 5.2.0 → 5.4.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/plugins/build-assets-manifest-plugin.mjs +8 -2
- package/src/plugins/build-assets-manifest-plugin.mjs.map +1 -1
- package/src/plugins/shared/assets-images-config.d.ts +3 -0
- package/src/plugins/shared/assets-manifest-icon-config.d.ts +6 -0
- package/src/plugins/shared/assets-manifest-icon-config.js +2 -0
- package/src/plugins/shared/assets-manifest-icon-config.js.map +1 -0
- package/src/types/demo-metadata.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 5.4.0 (2026-10-28)
|
|
2
|
+
- Support demo content on demo metadata. [#19](https://github.com/blackbaud/skyux-branding-builder/pull/19)
|
|
3
|
+
|
|
4
|
+
# 5.3.0 (2026-10-27)
|
|
5
|
+
- Support additional icons. [#17](https://github.com/blackbaud/skyux-branding-builder/pull/17)
|
|
6
|
+
|
|
1
7
|
# 5.2.0 (2026-10-26)
|
|
2
8
|
- Support context overrides on public API styles. [#15](https://github.com/blackbaud/skyux-branding-builder/pull/15)
|
|
3
9
|
|
package/package.json
CHANGED
|
@@ -18,8 +18,14 @@ function transformAssetsJson(code, projectName) {
|
|
|
18
18
|
}
|
|
19
19
|
// Resolve asset paths in images
|
|
20
20
|
if (assetsConfig.images) {
|
|
21
|
-
for (const
|
|
22
|
-
|
|
21
|
+
for (const imageEntry of Object.values(assetsConfig.images)) {
|
|
22
|
+
// Some entries (e.g. manifestIcons) are lists of images
|
|
23
|
+
const imageConfigs = Array.isArray(imageEntry)
|
|
24
|
+
? imageEntry
|
|
25
|
+
: [imageEntry];
|
|
26
|
+
for (const imageConfig of imageConfigs) {
|
|
27
|
+
imageConfig.src = transformSrc(imageConfig.src, projectName);
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
return JSON.stringify(assetsConfig, null, 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-assets-manifest-plugin.mjs","sourceRoot":"","sources":["../../../src/plugins/build-assets-manifest-plugin.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,SAAS,YAAY,CAAC,GAAW,EAAE,WAAmB;IACpD,OAAO,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC;QAC/B,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,CAAC;QACtC,CAAC,CAAC,GAAG,CAAC;AACV,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAY,EAAE,WAAmB;IAC5D,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAiB,CAAC;QAEtD,+BAA+B;QAC/B,IAAI,YAAY,CAAC,KAAK,EAAE,CAAC;YACvB,KAAK,MAAM,UAAU,IAAI,YAAY,CAAC,KAAK,EAAE,CAAC;gBAC5C,UAAU,CAAC,GAAG,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC;QAED,gCAAgC;QAChC,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC;YACxB,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"build-assets-manifest-plugin.mjs","sourceRoot":"","sources":["../../../src/plugins/build-assets-manifest-plugin.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MA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,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,WAAmB;IAC3D,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,KAAK,CAAC,cAAc;YAClB,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;YAE/D,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;gBAChC,OAAO,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;gBAC9D,OAAO;YACT,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;gBAE9D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACnB,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;oBACrC,OAAO;gBACT,CAAC;gBAED,MAAM,kBAAkB,GAAG,mBAAmB,CAC5C,aAAa,EACb,WAAW,CACZ,CAAC;gBAEF,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBACxB,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;oBAChD,OAAO;gBACT,CAAC;gBAED,IAAI,CAAC,QAAQ,CAAC;oBACZ,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,oBAAoB;oBAC9B,MAAM,EAAE,kBAAkB;iBAC3B,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AssetsImageConfig } from './assets-image-config.js';
|
|
2
|
+
import { AssetsManifestIconConfig } from './assets-manifest-icon-config.js';
|
|
2
3
|
export interface AssetsImagesConfig {
|
|
4
|
+
appleTouchIcon?: AssetsImageConfig;
|
|
3
5
|
favicon: AssetsImageConfig;
|
|
6
|
+
manifestIcons?: AssetsManifestIconConfig[];
|
|
4
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-manifest-icon-config.js","sourceRoot":"","sources":["../../../../src/plugins/shared/assets-manifest-icon-config.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,8 @@ export interface DemoMetadata {
|
|
|
2
2
|
type?: 'border' | 'border-color' | 'border-radius' | 'border-style' | 'border-width' | 'color-swatch' | 'container' | 'elevation' | 'icon-background-color' | 'icon-color' | 'none' | 'text' | 'text-color';
|
|
3
3
|
/** Describes how the demo is rendered, independently of what it demonstrates, if different from standard. */
|
|
4
4
|
renderAs?: 'element' | 'multi-prop';
|
|
5
|
+
/** The sample elements a container demo shows, in order. */
|
|
6
|
+
content?: ('body' | 'body-with-link' | 'heading' | 'icon' | 'icon-button')[];
|
|
5
7
|
background?: string;
|
|
6
8
|
color?: string;
|
|
7
9
|
text?: string;
|