@designcrowd/library.brand-page 5.10.15-sync-fix-1 → 5.10.16
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/index.mjs +6 -7
- package/lib/src/shared/content-settings/store/content-settings-store.js +1 -10
- package/lib/src/shared/page-settings/store/page-settings-store.js +1 -3
- package/package.json +1 -1
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +2 -1
- package/src/shared/content-settings/store/content-settings-store.ts +1 -13
- package/src/shared/page-settings/store/page-settings-store.ts +1 -5
- package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +0 -0
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +0 -1
- package/src/brand-page-maker/stores/route/localised-route-store.ts +0 -0
package/lib/src/index.mjs
CHANGED
|
@@ -63798,7 +63798,7 @@ const r0 = (e) => {
|
|
|
63798
63798
|
pageIndex: e,
|
|
63799
63799
|
contents: t
|
|
63800
63800
|
}) {
|
|
63801
|
-
e >= this.pages.length || (
|
|
63801
|
+
e >= this.pages.length || (this.pages[e].contents = t);
|
|
63802
63802
|
},
|
|
63803
63803
|
setPages({ pages: e }) {
|
|
63804
63804
|
var r;
|
|
@@ -64190,15 +64190,14 @@ const rt = Qt("uiContentSettings", {
|
|
|
64190
64190
|
item: e,
|
|
64191
64191
|
index: t
|
|
64192
64192
|
}) {
|
|
64193
|
-
|
|
64193
|
+
this.items.splice(t ?? this.items.length, 0, e), this.initialiseItemState({ item: e });
|
|
64194
64194
|
},
|
|
64195
64195
|
async setState(e) {
|
|
64196
64196
|
this.$patch(e.newState), await this.updateIsDefaultTextColorRequired();
|
|
64197
64197
|
},
|
|
64198
64198
|
_deleteItem({ id: e }) {
|
|
64199
|
-
|
|
64200
|
-
|
|
64201
|
-
if (console.log("Item index:", t), t < 0) {
|
|
64199
|
+
const t = this.items.findIndex((n) => n.id === e);
|
|
64200
|
+
if (t < 0) {
|
|
64202
64201
|
console.error(`Unable to find content item by id '${e}'`);
|
|
64203
64202
|
return;
|
|
64204
64203
|
}
|
|
@@ -64392,7 +64391,7 @@ const rt = Qt("uiContentSettings", {
|
|
|
64392
64391
|
id: e,
|
|
64393
64392
|
itemState: t
|
|
64394
64393
|
}) {
|
|
64395
|
-
|
|
64394
|
+
this.itemStates[e] = t;
|
|
64396
64395
|
},
|
|
64397
64396
|
setItemGroupState({
|
|
64398
64397
|
id: e,
|
|
@@ -78821,7 +78820,7 @@ const eZ1 = /* @__PURE__ */ v(KF1, [["render", QF1], ["__scopeId", "data-v-8240b
|
|
|
78821
78820
|
};
|
|
78822
78821
|
g.setLogoImageToAllContentsAndSections({
|
|
78823
78822
|
logoImage: N
|
|
78824
|
-
}), g.setSelectedLogoImage(N), D.logoDesignAttributes &&
|
|
78823
|
+
}), g.setSelectedLogoImage(N), D.logoDesignAttributes && g.applyLogoDesignAttributes(D.logoDesignAttributes), s.currentLogoIsByo = !0;
|
|
78825
78824
|
}, R = () => {
|
|
78826
78825
|
if (o.isPrePurchase) {
|
|
78827
78826
|
c.setSelectedTabName({
|
|
@@ -8,7 +8,6 @@ import { useUiSideBarStore } from '../../side-bar/store';
|
|
|
8
8
|
import { createDefaultContentItemGroupState, createDefaultContentItemState, } from '../../navigation-style-settings/store';
|
|
9
9
|
import { adminValidatorsDict, dummyValidator, validatorDict, } from '../../../brand-page-maker/validators';
|
|
10
10
|
import { vueDeepMerge } from '../../../helpers/vue.helper';
|
|
11
|
-
import cloneDeep from 'lodash.clonedeep';
|
|
12
11
|
const DEFAULT_TEXT_COLOR_DEPENDENT_TYPES = [
|
|
13
12
|
'profile',
|
|
14
13
|
'text',
|
|
@@ -40,7 +39,6 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
40
39
|
uiStore.onContentChanged();
|
|
41
40
|
},
|
|
42
41
|
_addItem({ item, index, }) {
|
|
43
|
-
console.log('Adding item:', item);
|
|
44
42
|
this.items.splice(index ?? this.items.length, 0, item);
|
|
45
43
|
this.initialiseItemState({ item });
|
|
46
44
|
},
|
|
@@ -49,12 +47,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
49
47
|
await this.updateIsDefaultTextColorRequired();
|
|
50
48
|
},
|
|
51
49
|
_deleteItem({ id: id }) {
|
|
52
|
-
|
|
53
|
-
const idx = this.items.findIndex((i) => {
|
|
54
|
-
console.log('Checking items ', i, 'againsts:', id);
|
|
55
|
-
return i.id === id;
|
|
56
|
-
});
|
|
57
|
-
console.log('Item index:', idx);
|
|
50
|
+
const idx = this.items.findIndex((i) => i.id === id);
|
|
58
51
|
if (idx < 0) {
|
|
59
52
|
console.error(`Unable to find content item by id '${id}'`);
|
|
60
53
|
return;
|
|
@@ -249,9 +242,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
249
242
|
this.activeCategoryTab = activeCategoryTab;
|
|
250
243
|
},
|
|
251
244
|
setItemState({ id, itemState, }) {
|
|
252
|
-
console.log('======= before setItemState =======', this.itemStates);
|
|
253
245
|
this.itemStates[id] = itemState;
|
|
254
|
-
console.log('======= after setItemState =======', this.itemStates);
|
|
255
246
|
},
|
|
256
247
|
setItemGroupState({ id, groupId, groupState, }) {
|
|
257
248
|
if (!this.itemStates[id]) {
|
|
@@ -70,9 +70,7 @@ export const useUiPageSettingsStore = defineStore('uiPageSettings', {
|
|
|
70
70
|
if (pageIndex >= this.pages.length) {
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
this.pages[pageIndex].contents = [...contents];
|
|
75
|
-
console.log('after', this.pages[pageIndex].contents);
|
|
73
|
+
this.pages[pageIndex].contents = contents;
|
|
76
74
|
},
|
|
77
75
|
setPages({ pages }) {
|
|
78
76
|
const contentSettingsStore = useUiContentSettingsStore();
|
package/package.json
CHANGED
|
@@ -357,9 +357,10 @@ const onLogoUpload = (response: CreateWebsiteByoUploadResult) => {
|
|
|
357
357
|
logoSettingStore.setSelectedLogoImage(logoImage);
|
|
358
358
|
|
|
359
359
|
if (response.logoDesignAttributes) {
|
|
360
|
-
console.log('Here? ');
|
|
361
360
|
logoSettingStore.applyLogoDesignAttributes(response.logoDesignAttributes);
|
|
362
361
|
}
|
|
362
|
+
|
|
363
|
+
data.currentLogoIsByo = true;
|
|
363
364
|
};
|
|
364
365
|
|
|
365
366
|
const onEditLogoButtonClicked = () => {
|
|
@@ -50,7 +50,6 @@ import {
|
|
|
50
50
|
validatorDict,
|
|
51
51
|
} from '../../../brand-page-maker/validators';
|
|
52
52
|
import { vueDeepMerge } from '../../../helpers/vue.helper';
|
|
53
|
-
import cloneDeep from 'lodash.clonedeep';
|
|
54
53
|
|
|
55
54
|
const DEFAULT_TEXT_COLOR_DEPENDENT_TYPES: readonly ContentType[] = [
|
|
56
55
|
'profile',
|
|
@@ -115,7 +114,6 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
115
114
|
item: ContentItem<any>;
|
|
116
115
|
index?: number;
|
|
117
116
|
}): void {
|
|
118
|
-
console.log('Adding item:', item);
|
|
119
117
|
this.items.splice(index ?? this.items.length, 0, item);
|
|
120
118
|
this.initialiseItemState({ item });
|
|
121
119
|
},
|
|
@@ -127,15 +125,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
127
125
|
await this.updateIsDefaultTextColorRequired();
|
|
128
126
|
},
|
|
129
127
|
_deleteItem({ id: id }: { id: string }): void {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const idx = this.items.findIndex((i) => {
|
|
133
|
-
console.log('Checking items ', i, 'againsts:', id);
|
|
134
|
-
|
|
135
|
-
return i.id === id;
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
console.log('Item index:', idx);
|
|
128
|
+
const idx = this.items.findIndex((i) => i.id === id);
|
|
139
129
|
|
|
140
130
|
if (idx < 0) {
|
|
141
131
|
console.error(`Unable to find content item by id '${id}'`);
|
|
@@ -466,9 +456,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
466
456
|
id: string;
|
|
467
457
|
itemState: ContentSettingsItemState;
|
|
468
458
|
}): void {
|
|
469
|
-
console.log('======= before setItemState =======', this.itemStates);
|
|
470
459
|
this.itemStates[id] = itemState;
|
|
471
|
-
console.log('======= after setItemState =======', this.itemStates);
|
|
472
460
|
},
|
|
473
461
|
setItemGroupState({
|
|
474
462
|
id,
|
|
@@ -146,11 +146,7 @@ export const useUiPageSettingsStore = defineStore('uiPageSettings', {
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
this.pages[pageIndex].contents = [...contents];
|
|
152
|
-
|
|
153
|
-
console.log('after', this.pages[pageIndex].contents);
|
|
149
|
+
this.pages[pageIndex].contents = contents;
|
|
154
150
|
},
|
|
155
151
|
setPages({ pages }: { pages: ContentPage[] }): void {
|
|
156
152
|
const contentSettingsStore = useUiContentSettingsStore();
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|