@useinsider/guido 3.18.1-beta.d931f79 → 3.18.1-beta.db1e41e

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.
@@ -1,19 +1,19 @@
1
1
  import { useActionsApi as R } from "../composables/useActionsApi.js";
2
2
  import { useConfig as k } from "../composables/useConfig.js";
3
3
  import { useHtmlCompiler as N } from "../composables/useHtmlCompiler.js";
4
- import { RRS_CONFIG_VERSION as U, DEFAULT_CURRENCY as d, DEFAULT_NODE_CONFIG as a } from "../extensions/Blocks/Recommendation/constants/defaultConfig.js";
4
+ import { CURRENT_CONFIG_VERSION as U, DEFAULT_CURRENCY as d, DEFAULT_NODE_CONFIG as a } from "../extensions/Blocks/Recommendation/constants/defaultConfig.js";
5
5
  import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
6
6
  import { mapLegacyStrategy as x } from "../extensions/Blocks/Recommendation/utils/legacyStrategyMap.js";
7
- import { DATA_ATTRIBUTES as C } from "../extensions/Blocks/Unsubscribe/utils/constants.js";
7
+ import { DATA_ATTRIBUTES as A } from "../extensions/Blocks/Unsubscribe/utils/constants.js";
8
8
  import { parsePageList as L } from "../extensions/Blocks/Unsubscribe/utils/utils.js";
9
9
  import { useDynamicContentStore as z } from "../stores/dynamic-content.js";
10
10
  import { useEditorStore as _ } from "../stores/editor.js";
11
11
  import { useUnsubscribeStore as O } from "../stores/unsubscribe.js";
12
12
  import { assignTrackingIds as v } from "./linkTrackingIds.js";
13
13
  function B(m) {
14
- const i = new DOMParser().parseFromString(m, "text/html").querySelectorAll(`[${C.PAGE_LIST}]`), t = [];
14
+ const i = new DOMParser().parseFromString(m, "text/html").querySelectorAll(`[${A.PAGE_LIST}]`), t = [];
15
15
  return i.forEach((s) => {
16
- const r = s.getAttribute(C.PAGE_LIST);
16
+ const r = s.getAttribute(A.PAGE_LIST);
17
17
  r && t.push(...L(r));
18
18
  }), [...new Set(t)];
19
19
  }
@@ -85,19 +85,19 @@ const ee = () => {
85
85
  resetDataSavedFlag: !1
86
86
  });
87
87
  n.selectedUnsubscribePages.length && await n.fetchTemplates(), await G(o);
88
- const { compiledHtml: I, stats: S, appliedRules: w } = r(f), D = c && p(c).compiledHtml, E = m.getSelectedDynamicContentList, F = T(), A = B(o);
88
+ const { compiledHtml: I, stats: S, appliedRules: E } = r(f), w = c && p(c).compiledHtml, D = m.getSelectedDynamicContentList, F = T(), C = B(o);
89
89
  return console.debug("HTML Compilation Stats:", {
90
90
  originalSize: S.originalSize,
91
91
  compiledSize: S.compiledSize,
92
92
  reduction: `${S.reductionPercentage.toFixed(2)}%`,
93
- appliedRules: w,
93
+ appliedRules: E,
94
94
  executionTime: `${S.executionTime.toFixed(2)}ms`
95
95
  }), {
96
- dynamicContentList: E,
96
+ dynamicContentList: D,
97
97
  compiledHtml: I,
98
98
  rawHtml: o,
99
99
  css: l,
100
- ampHtml: D,
100
+ ampHtml: w,
101
101
  ampErrors: y,
102
102
  modules: g.map(Number),
103
103
  recommendation: {
@@ -105,8 +105,8 @@ const ee = () => {
105
105
  configs: {}
106
106
  },
107
107
  unsubscribe: {
108
- status: A.length > 0,
109
- config: A
108
+ status: C.length > 0,
109
+ config: C
110
110
  }
111
111
  };
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.18.1-beta.d931f79",
3
+ "version": "3.18.1-beta.db1e41e",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -1,19 +0,0 @@
1
- import { useRecommendationExtensionStore as c } from "../store/recommendation.js";
2
- import { commitBlockChangeOutsidePanel as m } from "./nodeConfigWriter.js";
3
- async function s(o) {
4
- const e = c(), { strategyId: t, size: r } = e.recommendationConfigs;
5
- try {
6
- await e.fetchRecommendationProducts();
7
- } catch (n) {
8
- console.error("[recommendation] product refetch after strategy removal failed", n);
9
- }
10
- m(
11
- o,
12
- { strategyId: t, size: r },
13
- e.recommendationProducts,
14
- "Removed recommendation strategy"
15
- );
16
- }
17
- export {
18
- s as commitStrategyDetach
19
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Repaints a block whose strategy assignment was just cleared, straight to the document.
3
- *
4
- * Both callers are host-rendered UI outside `ui-editor`, so neither can leave this to the
5
- * settings panel: the remove modal's click deselects the block and destroys the control, and
6
- * the edit button opens the strategy page in the same gesture, so the panel's 500 ms debounced
7
- * refetch races a tab that is already gone. Either way the canvas kept the old strategy's
8
- * products while the block read as unassigned (SD-149916).
9
- *
10
- * Call AFTER the store assignment is cleared (`removeStrategy`).
11
- */
12
- export declare function commitStrategyDetach(blockId: number): Promise<void>;
@@ -1,23 +0,0 @@
1
- const e = `/*
2
- * Mirrors the design system's InSkeleton 1:1 (gradient stops, 200% size, 1.6s linear).
3
- * The Stripo panel lives in the editor's shadow root and is built from raw HTML strings,
4
- * so the Vue component cannot be used there. Hex values are literal in the DS too.
5
- *
6
- * Base only: each panel sizes its own \`.guido-skeleton--*\` modifier to the footprint of
7
- * the element it stands in for.
8
- */
9
- .guido-skeleton {
10
- display: none;
11
- border-radius: 4px;
12
- background: linear-gradient(90deg, #f0f0f0 39.5%, #e1e1e1 66.02%, #f0f0f0 89.42%);
13
- background-size: 200% 100%;
14
- animation: guido-skeleton-shine 1.6s linear infinite;
15
- }
16
-
17
- @keyframes guido-skeleton-shine {
18
- to { background-position-x: -200%; }
19
- }
20
- `;
21
- export {
22
- e as default
23
- };