@designcrowd/library.brand-page 5.16.37 → 5.16.38
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/lib/src/{CreatedOnBrandCrowd-de-de-D6VcZobR.js → CreatedOnBrandCrowd-de-de-CM11v_Oz.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-wsJfOTjZ.js → CreatedOnBrandCrowd-en-us-C9swNo_b.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CagjxPB-.js → CreatedOnBrandCrowd-es-es-DiyHRG5i.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BAW8jiRE.js → CreatedOnBrandCrowd-fr-ca-CQHStWHV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BAW8jiRE.js → CreatedOnBrandCrowd-fr-fr-CQHStWHV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-cJrHbUnv.js → CreatedOnBrandCrowd-pt-br-CxtJg7-e.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-cJrHbUnv.js → CreatedOnBrandCrowd-pt-pt-CxtJg7-e.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-C52BwAwv.js → CreatedOnDcom-de-de-D3j64Kcb.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DIw5rfH4.js → CreatedOnDcom-en-us-DV7MDMEL.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Bg_dnUE6.js → CreatedOnDcom-es-es-BgLu8EEM.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-C0GBgEx8.js → CreatedOnDcom-fr-ca-CHTihJaY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CqPgdsfY.js → CreatedOnDcom-fr-fr-C14VlbrV.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-BSRSSQJh.js → CreatedOnDcom-pt-br-Chfwx4Tw.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DVMD0JZC.js → CreatedOnDcom-pt-pt-BVNNQ5uv.js} +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +15 -18
- package/lib/src/css/library.brand-page-brandPage.min.css +15 -19
- package/lib/src/css/library.brand-page-designCom.min.css +15 -18
- package/lib/src/css/library.brand-page-preview.min.css +15 -18
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-tG-tVfMq.js → lib-DG4GuHPT.js} +844 -860
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +0 -11
- package/package.json +1 -1
- package/src/brand-page/components/page/Page.vue +1 -1
- package/src/shared/color-picker/components/ColorPicker.mixin.ts +0 -14
- package/src/shared/content-settings/components/color-field/ColorField.vue +1 -18
|
@@ -90,17 +90,6 @@ export default defineComponent({
|
|
|
90
90
|
handler(newColor) {
|
|
91
91
|
// Always update when initialColor changes
|
|
92
92
|
if (newColor) {
|
|
93
|
-
if (typeof newColor === 'object') {
|
|
94
|
-
if (Array.isArray(newColor.colors)) {
|
|
95
|
-
const colorsArray = newColor.colors.map((c) => c && c.color);
|
|
96
|
-
if (colorsArray.length > 0) {
|
|
97
|
-
newColor = arrayToLinearGradient(colorsArray);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
newColor = '';
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
93
|
this.initialSelectedColor = normalizeColorToHex(newColor);
|
|
105
94
|
// Update selection state for all new colors when initialColor changes
|
|
106
95
|
this.newColors = this.newColors.map((color) => ({
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:media="viewModel.styles.backgroundStylesViewModel.mediaViewModel"
|
|
10
10
|
:context="context"
|
|
11
11
|
:img-classes="{
|
|
12
|
-
'tw-absolute tw-left-0 tw-top-0 tw-z-0 tw-w-full tw-h-full tw-object-cover
|
|
12
|
+
'tw-absolute tw-left-0 tw-top-0 tw-z-0 tw-w-full tw-h-full tw-object-cover tw-fixed': true,
|
|
13
13
|
}"
|
|
14
14
|
:media-type="viewModel.styles.backgroundStylesViewModel.mediaViewModel.type"
|
|
15
15
|
content-index="0"
|
|
@@ -111,20 +111,6 @@ export default defineComponent({
|
|
|
111
111
|
handler(newColor: string | undefined) {
|
|
112
112
|
// Always update when initialColor changes
|
|
113
113
|
if (newColor) {
|
|
114
|
-
if (typeof newColor === 'object') {
|
|
115
|
-
if (Array.isArray((newColor as any).colors)) {
|
|
116
|
-
const colorsArray = (newColor as any).colors.map(
|
|
117
|
-
(c: any) => c && c.color,
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
if (colorsArray.length > 0) {
|
|
121
|
-
newColor = arrayToLinearGradient(colorsArray);
|
|
122
|
-
} else {
|
|
123
|
-
newColor = '';
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
114
|
this.initialSelectedColor = normalizeColorToHex(newColor);
|
|
129
115
|
|
|
130
116
|
// Update selection state for all new colors when initialColor changes
|
|
@@ -286,28 +286,11 @@ const onColorMatchToggled = (value: boolean) => {
|
|
|
286
286
|
onBeforeMount(() => {
|
|
287
287
|
isInitialised.value = false;
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
const initialColor =
|
|
290
290
|
(props.valueConvertor
|
|
291
291
|
? props.valueConvertor.convert(props.value)
|
|
292
292
|
: props.value) || '';
|
|
293
293
|
|
|
294
|
-
if (initialColor && typeof initialColor === 'object') {
|
|
295
|
-
if (Array.isArray((initialColor as any).colors)) {
|
|
296
|
-
const colorsArray = (initialColor as any).colors.map(
|
|
297
|
-
(c: any) => c && c.color,
|
|
298
|
-
);
|
|
299
|
-
|
|
300
|
-
if (colorsArray.length > 0) {
|
|
301
|
-
initialColor = arrayToLinearGradient(colorsArray);
|
|
302
|
-
} else {
|
|
303
|
-
initialColor = '';
|
|
304
|
-
}
|
|
305
|
-
} else {
|
|
306
|
-
// Unsupported object shape - fall back to empty string to avoid runtime errors
|
|
307
|
-
initialColor = '';
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
294
|
color.value = initialColor;
|
|
312
295
|
newColor.value = initialColor;
|
|
313
296
|
|