@designcrowd/library.brand-page 5.16.39-kp-2 → 5.16.39
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-BB2CgWAe.js → CreatedOnBrandCrowd-de-de-COjtOjW8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BYGLfcMw.js → CreatedOnBrandCrowd-en-us-DM2oqk41.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-B-6NSCJc.js → CreatedOnBrandCrowd-es-es-CcspfiNi.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-EoNGCXhq.js → CreatedOnBrandCrowd-fr-ca-BQES3OdG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-EoNGCXhq.js → CreatedOnBrandCrowd-fr-fr-BQES3OdG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CdXwwPRi.js → CreatedOnBrandCrowd-pt-br-BWidVkXj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CdXwwPRi.js → CreatedOnBrandCrowd-pt-pt-BWidVkXj.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-B2TNzRsR.js → CreatedOnDcom-de-de-cVmBGPQK.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CnKhpTi3.js → CreatedOnDcom-en-us-BWWVlrhw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CUWlgG6E.js → CreatedOnDcom-es-es-hw1dWlPF.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-UiuBRfMF.js → CreatedOnDcom-fr-ca-qzAHh7U0.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C5KLLsHF.js → CreatedOnDcom-fr-fr-Z_31y-_6.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br--Ibal8eA.js → CreatedOnDcom-pt-br-BbQyt8E-.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-BHtfmbMY.js → CreatedOnDcom-pt-pt-_mZXcYaG.js} +1 -1
- package/lib/src/clients/design-template-client.d.ts +1 -1
- package/lib/src/clients/design-template-client.js +1 -4
- package/lib/src/css/library.brand-page-brandCrowd.min.css +27 -27
- package/lib/src/css/library.brand-page-brandPage.min.css +27 -27
- package/lib/src/css/library.brand-page-designCom.min.css +27 -27
- package/lib/src/css/library.brand-page-preview.min.css +27 -27
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BBbjhvyx.js → lib-DUZFCX9g.js} +859 -887
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +0 -11
- package/package.json +1 -1
- package/src/clients/design-template-client.ts +0 -6
- package/src/shared/color-picker/components/ColorPicker.mixin.ts +0 -14
- package/src/shared/content-settings/components/color-field/ColorField.vue +1 -18
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -2
- package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +0 -3
- package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +0 -5
|
@@ -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
|
@@ -108,9 +108,6 @@ export class DesignTemplateClient {
|
|
|
108
108
|
snapshotBase64?: string,
|
|
109
109
|
businessName?: string,
|
|
110
110
|
industry?: string,
|
|
111
|
-
contentType?: string,
|
|
112
|
-
contentId?: string,
|
|
113
|
-
fieldName?: string,
|
|
114
111
|
): Promise<string | null> {
|
|
115
112
|
try {
|
|
116
113
|
// Get CSRF token from meta tag
|
|
@@ -133,9 +130,6 @@ export class DesignTemplateClient {
|
|
|
133
130
|
snapshotBase64: snapshotBase64 || '',
|
|
134
131
|
businessName: businessName || '',
|
|
135
132
|
industry: industry || '',
|
|
136
|
-
contentType: contentType || '',
|
|
137
|
-
contentId: contentId || '',
|
|
138
|
-
fieldName: fieldName || '',
|
|
139
133
|
},
|
|
140
134
|
{
|
|
141
135
|
withCredentials: true,
|
|
@@ -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
|
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
{{ generateText }}
|
|
13
13
|
</p>
|
|
14
14
|
<GenerateAiModal
|
|
15
|
-
:id="props.id"
|
|
16
|
-
:field-name="props.fieldName"
|
|
17
15
|
:is-visible="generateTextModalVisible"
|
|
18
16
|
:existing-text="props.existingText"
|
|
19
17
|
:is-design-com="props.isDesignCom"
|
|
@@ -46,7 +44,6 @@ interface Props {
|
|
|
46
44
|
isDesignCom?: boolean;
|
|
47
45
|
captureSnapshotDelay?: number;
|
|
48
46
|
ctaLocation: string;
|
|
49
|
-
fieldName: string;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -218,12 +218,10 @@ import { useSnapshotStore } from '../../../../brand-page-maker/stores';
|
|
|
218
218
|
import { useBrandPageMakerStore } from '../../../../brand-page-maker/stores';
|
|
219
219
|
|
|
220
220
|
interface Props {
|
|
221
|
-
id: string;
|
|
222
221
|
isVisible: boolean;
|
|
223
222
|
existingText?: string;
|
|
224
223
|
isDesignCom?: boolean;
|
|
225
224
|
ctaLocation: string;
|
|
226
|
-
fieldName: string;
|
|
227
225
|
}
|
|
228
226
|
|
|
229
227
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -583,9 +581,6 @@ const onSendPrompt = async (customPrompt?: string) => {
|
|
|
583
581
|
snapshotBase64.value || undefined,
|
|
584
582
|
businessName.value,
|
|
585
583
|
industry.value,
|
|
586
|
-
props.ctaLocation,
|
|
587
|
-
props.id,
|
|
588
|
-
props.fieldName,
|
|
589
584
|
);
|
|
590
585
|
|
|
591
586
|
// Check if generation was stopped before setting response
|