@designcrowd/library.brand-page 5.6.4-scroll-3 → 5.6.4

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.
Files changed (22) hide show
  1. package/lib/src/brand-page/components/page/Page.mixin.d.ts +1 -2
  2. package/lib/src/brand-page/components/page/Page.mixin.js +15 -25
  3. package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +0 -6
  4. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
  5. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -2
  6. package/lib/src/css/library.brand-page-brandCrowd.min.css +15 -15
  7. package/lib/src/css/library.brand-page-brandPage.min.css +15 -15
  8. package/lib/src/css/library.brand-page-designCom.min.css +15 -15
  9. package/lib/src/css/library.brand-page-preview.min.css +15 -15
  10. package/lib/src/index.mjs +3930 -3949
  11. package/lib/src/shared/background-settings/components/BackgroundSettings.mixin.d.ts +0 -6
  12. package/lib/src/shared/background-settings/components/background-color/BackgroundColorSettings.mixin.d.ts +0 -6
  13. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +0 -6
  14. package/lib/src/shared/content-settings/components/color-field/ColorField.mixin.d.ts +0 -6
  15. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -148
  16. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -130
  17. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -10
  18. package/package.json +1 -1
  19. package/src/brand-page/components/page/Page.mixin.ts +20 -39
  20. package/src/brand-page/components/page/Page.vue +1 -2
  21. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  22. package/src/brand-page-maker/components/shop/ProductConfigModal.vue +1 -1
@@ -70,7 +70,6 @@ declare const _default: import("vue").DefineComponent<{}, {
70
70
  fontWeight?: string | undefined;
71
71
  height?: string | undefined;
72
72
  left?: string | undefined;
73
- right?: string | undefined;
74
73
  letterSpacing?: string | undefined;
75
74
  lineHeight?: string | undefined;
76
75
  marginBottom?: string | undefined;
@@ -83,7 +82,6 @@ declare const _default: import("vue").DefineComponent<{}, {
83
82
  textAlign?: string | undefined;
84
83
  textDecoration?: string | undefined;
85
84
  top?: string | undefined;
86
- bottom?: string | undefined;
87
85
  transform?: string | undefined;
88
86
  transformOrigin?: string | undefined;
89
87
  transition?: string | undefined;
@@ -120,7 +118,6 @@ declare const _default: import("vue").DefineComponent<{}, {
120
118
  fontWeight?: string | undefined;
121
119
  height?: string | undefined;
122
120
  left?: string | undefined;
123
- right?: string | undefined;
124
121
  letterSpacing?: string | undefined;
125
122
  lineHeight?: string | undefined;
126
123
  marginBottom?: string | undefined;
@@ -133,7 +130,6 @@ declare const _default: import("vue").DefineComponent<{}, {
133
130
  textAlign?: string | undefined;
134
131
  textDecoration?: string | undefined;
135
132
  top?: string | undefined;
136
- bottom?: string | undefined;
137
133
  transform?: string | undefined;
138
134
  transformOrigin?: string | undefined;
139
135
  transition?: string | undefined;
@@ -169,7 +165,6 @@ declare const _default: import("vue").DefineComponent<{}, {
169
165
  fontWeight?: string | undefined;
170
166
  height?: string | undefined;
171
167
  left?: string | undefined;
172
- right?: string | undefined;
173
168
  letterSpacing?: string | undefined;
174
169
  lineHeight?: string | undefined;
175
170
  marginBottom?: string | undefined;
@@ -182,7 +177,6 @@ declare const _default: import("vue").DefineComponent<{}, {
182
177
  textAlign?: string | undefined;
183
178
  textDecoration?: string | undefined;
184
179
  top?: string | undefined;
185
- bottom?: string | undefined;
186
180
  transform?: string | undefined;
187
181
  transformOrigin?: string | undefined;
188
182
  transition?: string | undefined;
@@ -216,7 +210,6 @@ declare const _default: import("vue").DefineComponent<{}, {
216
210
  fontWeight?: string | undefined;
217
211
  height?: string | undefined;
218
212
  left?: string | undefined;
219
- right?: string | undefined;
220
213
  letterSpacing?: string | undefined;
221
214
  lineHeight?: string | undefined;
222
215
  marginBottom?: string | undefined;
@@ -229,7 +222,6 @@ declare const _default: import("vue").DefineComponent<{}, {
229
222
  textAlign?: string | undefined;
230
223
  textDecoration?: string | undefined;
231
224
  top?: string | undefined;
232
- bottom?: string | undefined;
233
225
  transform?: string | undefined;
234
226
  transformOrigin?: string | undefined;
235
227
  transition?: string | undefined;
@@ -265,7 +257,6 @@ declare const _default: import("vue").DefineComponent<{}, {
265
257
  fontWeight?: string | undefined;
266
258
  height?: string | undefined;
267
259
  left?: string | undefined;
268
- right?: string | undefined;
269
260
  letterSpacing?: string | undefined;
270
261
  lineHeight?: string | undefined;
271
262
  marginBottom?: string | undefined;
@@ -278,7 +269,6 @@ declare const _default: import("vue").DefineComponent<{}, {
278
269
  textAlign?: string | undefined;
279
270
  textDecoration?: string | undefined;
280
271
  top?: string | undefined;
281
- bottom?: string | undefined;
282
272
  transform?: string | undefined;
283
273
  transformOrigin?: string | undefined;
284
274
  transition?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.6.4-scroll-3",
4
+ "version": "5.6.4",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -107,28 +107,7 @@ export default defineComponent({
107
107
  return backgroundShapes;
108
108
  },
109
109
 
110
- rootElementStyles(): BrandPageCssStyle {
111
- const styles: BrandPageCssStyle = {};
112
-
113
- Object.assign(styles, this.viewModel?.styles?.textStyles?.style);
114
-
115
- const textFontFamilyKey =
116
- this.viewModel.styles?.textStyles.textFontFamily ||
117
- DEFAULT_FONT_FAMILY_KEY;
118
-
119
- const textFontFamilyConfig = FONT_FAMILY_CONFIGS[textFontFamilyKey];
120
-
121
- if (textFontFamilyConfig) {
122
- styles.fontFamily = [
123
- `"${textFontFamilyConfig.name}"`,
124
- ...FALLBACK_FONT_FAMILIES,
125
- ].join(', ');
126
- }
127
-
128
- return styles;
129
- },
130
-
131
- rootBackgroundStyles(): BrandPageCssStyle {
110
+ rootStyles(): BrandPageCssStyle {
132
111
  const styles: BrandPageCssStyle = {
133
112
  ...(this.viewModel?.styles?.backgroundStyles?.style || {}),
134
113
  };
@@ -161,10 +140,7 @@ export default defineComponent({
161
140
 
162
141
  if (!this.context.isTemplate) {
163
142
  styles.position = 'fixed';
164
- styles.top = '0';
165
- styles.bottom = '0';
166
- styles.left = '0';
167
- styles.right = '0';
143
+ styles.width = '100%';
168
144
  }
169
145
 
170
146
  delete styles.background;
@@ -180,6 +156,21 @@ export default defineComponent({
180
156
  styles.backgroundAttachment = 'fixed';
181
157
  }
182
158
 
159
+ Object.assign(styles, this.viewModel?.styles?.textStyles?.style);
160
+
161
+ const textFontFamilyKey =
162
+ this.viewModel.styles?.textStyles.textFontFamily ||
163
+ DEFAULT_FONT_FAMILY_KEY;
164
+
165
+ const textFontFamilyConfig = FONT_FAMILY_CONFIGS[textFontFamilyKey];
166
+
167
+ if (textFontFamilyConfig) {
168
+ styles.fontFamily = [
169
+ `"${textFontFamilyConfig.name}"`,
170
+ ...FALLBACK_FONT_FAMILIES,
171
+ ].join(', ');
172
+ }
173
+
183
174
  return styles;
184
175
  },
185
176
 
@@ -339,10 +330,7 @@ export default defineComponent({
339
330
  },
340
331
  },
341
332
  watch: {
342
- rootElementStyles() {
343
- this.setRootStyles();
344
- },
345
- rootBackgroundStyles() {
333
+ rootStyles() {
346
334
  this.setRootStyles();
347
335
  },
348
336
  },
@@ -377,19 +365,12 @@ export default defineComponent({
377
365
  */
378
366
  setRootStyles() {
379
367
  if (this.context.isPreview) {
380
- this.$emit(
381
- 'on-set-preview-styles',
382
- Object.assign({}, this.rootElementStyles, this.rootBackgroundStyles),
383
- );
368
+ this.$emit('on-set-preview-styles', this.rootStyles);
384
369
 
385
370
  return;
386
371
  }
387
372
 
388
- this.styles = Object.assign(
389
- this.styles,
390
- this.rootElementStyles,
391
- this.rootBackgroundStyles,
392
- );
373
+ this.styles = Object.assign(this.styles, this.rootStyles);
393
374
  },
394
375
  scrollToLastContent() {
395
376
  if (!this.contents.length) {
@@ -1,8 +1,7 @@
1
1
  <template>
2
- <div class="brand-page-root-background" :style="rootBackgroundStyles" />
3
2
  <div
4
3
  class="brand-page-root"
5
- :style="rootElementStyles"
4
+ :style="styles"
6
5
  :data-test-device-type="
7
6
  typeof isMobileDevice !== 'undefined'
8
7
  ? isMobileDevice
@@ -164,7 +164,7 @@ export default defineComponent({
164
164
  : null;
165
165
 
166
166
  if (!this.containerStore.baseFabricRenderUrl) {
167
- // throw new Error('base fabric render url is undefined');
167
+ throw new Error('base fabric render url is undefined');
168
168
  }
169
169
 
170
170
  FabricRenderClient.setInstance({
@@ -30,7 +30,7 @@
30
30
  <AddOrEditProductContainer v-if="!isImageUpload" />
31
31
  <ImageUpload v-else />
32
32
  </template>
33
- <template v-if="!isImageUpload" #footer>
33
+ <template #footer v-if="!isImageUpload">
34
34
  <div
35
35
  class="tw-flex tw-justify-center tw-pt-4 tw-border-t tw-border-solid tw-border-grayscale-500"
36
36
  >