@useinsider/guido 3.20.1-beta.42d31bd → 3.20.1-beta.50850f4

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 (34) hide show
  1. package/dist/composables/useStripo.js +8 -8
  2. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +152 -150
  3. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +1 -2
  4. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +102 -78
  5. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +155 -142
  6. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +15 -13
  7. package/dist/extensions/Blocks/Recommendation/controls/main/pricePlacement.js +17 -12
  8. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +92 -84
  9. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +271 -251
  10. package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +23 -18
  11. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +1 -2
  12. package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +6 -6
  13. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +12 -9
  14. package/dist/extensions/Blocks/Recommendation/extension.js +3 -2
  15. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +3 -2
  16. package/dist/extensions/Blocks/Recommendation/utils/blockRefresh.js +13 -13
  17. package/dist/extensions/Blocks/Recommendation/utils/followUpApply.js +20 -0
  18. package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +9 -9
  19. package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +44 -43
  20. package/dist/extensions/Blocks/Recommendation/utils/productIds.js +3 -5
  21. package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +3 -0
  22. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +2 -0
  23. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +1 -18
  24. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +8 -0
  25. package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +10 -6
  26. package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +2 -3
  27. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +1 -1
  28. package/dist/src/extensions/Blocks/Recommendation/utils/blockRefresh.d.ts +3 -1
  29. package/dist/src/extensions/Blocks/Recommendation/utils/followUpApply.d.ts +18 -0
  30. package/dist/src/extensions/Blocks/Recommendation/utils/nodeConfigWriter.d.ts +3 -1
  31. package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +0 -2
  32. package/dist/src/stores/editor.d.ts +3 -1
  33. package/dist/stores/editor.js +5 -0
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { useActionsApi as L } from "./useActionsApi.js";
2
- import { useBlocksConfig as O } from "./useBlocksConfig.js";
1
+ import { useActionsApi as O } from "./useActionsApi.js";
2
+ import { useBlocksConfig as q } from "./useBlocksConfig.js";
3
3
  import { useConfig as H } from "./useConfig.js";
4
4
  import { useCustomInterfaceAppearance as w } from "./useCustomInterfaceAppearance.js";
5
5
  import { useFullStoryBridge as N } from "./useFullStoryBridge.js";
@@ -17,7 +17,7 @@ import { buildMergeTagEntries as W, flattenDynamicContentList as Y } from "../ut
17
17
  import Z from "../package.json.js";
18
18
  let n = null;
19
19
  const he = () => {
20
- const { features: c, template: u, isFeatureEnabled: p } = H(), { handleError: m, showToaster: v } = G(), { getToken: B, getCustomFonts: M, getSyncModulesStatus: T } = K(), { handleEvent: F } = z(), { handleModuleAdd: A } = j(), { getStripoBlocksConfig: V } = O(), { getStripoNotifications: _ } = $(), f = () => n || (n = new Promise((r, s) => {
20
+ const { features: c, template: u, isFeatureEnabled: p } = H(), { handleError: m, showToaster: v } = G(), { getToken: B, getCustomFonts: M, getSyncModulesStatus: T } = K(), { handleEvent: F } = z(), { handleModuleAdd: A } = j(), { getStripoBlocksConfig: V } = q(), { getStripoNotifications: _ } = $(), f = () => n || (n = new Promise((r, s) => {
21
21
  var d;
22
22
  if (document.getElementById("UiEditorScript")) {
23
23
  r();
@@ -31,7 +31,7 @@ const he = () => {
31
31
  n = null;
32
32
  }), n), D = async (r, s, o, a = [], i = !1) => {
33
33
  var y, E, h, C;
34
- const e = k(), { html: d, css: P } = r, { baseBlocks: g, extensions: R } = await V(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, U = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, I = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1), q = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
34
+ const e = k(), { html: d, css: P } = r, { baseBlocks: g, extensions: R } = await V(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, U = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, I = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1), x = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
35
35
  w().importCss(), await window.UIEditor.initEditor(
36
36
  document.querySelector("#guido-editor"),
37
37
  {
@@ -63,7 +63,7 @@ const he = () => {
63
63
  copyPasteEnabled: !1,
64
64
  selectElementAfterDrop: !0,
65
65
  sameFontSizeForOutlook: !0,
66
- allowedScriptSourceDomains: q,
66
+ allowedScriptSourceDomains: x,
67
67
  ...g ? { baseBlocks: g } : {},
68
68
  editorFonts: {
69
69
  showDefaultStandardFonts: !0,
@@ -89,8 +89,8 @@ const he = () => {
89
89
  },
90
90
  onTemplateLoaded() {
91
91
  try {
92
- const { activateCustomViewStyles: t, updateTimerInClonedTemplate: l } = L(), { injectFullStory: x } = N();
93
- w().importCss(), t(), x(), l(), o.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
92
+ const { activateCustomViewStyles: t, updateTimerInClonedTemplate: l } = O(), { injectFullStory: L } = N();
93
+ w().importCss(), t(), L(), l(), o.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
94
94
  e.hasChanges = !1;
95
95
  }, 1e3);
96
96
  } catch (t) {
@@ -107,7 +107,7 @@ const he = () => {
107
107
  e.isVersionHistoryOpen = t;
108
108
  },
109
109
  onDataChanged() {
110
- e.hasChanges = !0, e.changeSeq += 1;
110
+ e.markChanged();
111
111
  },
112
112
  onEvent: F,
113
113
  onModuleAdd: A,