@useinsider/guido 3.30.0-beta.a94eba0 → 3.30.0-beta.b86be87
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/README.md +15 -12
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +140 -123
- package/dist/components/organisms/dynamic-content/InvalidDynamicContentCard.vue.js +22 -0
- package/dist/components/organisms/dynamic-content/InvalidDynamicContentCard.vue2.js +21 -0
- package/dist/composables/useInvalidDynamicContentMarking.js +113 -0
- package/dist/composables/useModuleRepair.js +50 -56
- package/dist/composables/useStripo.js +63 -67
- package/dist/config/migrator/index.js +9 -10
- package/dist/enums/academy.js +1 -2
- package/dist/extensions/DynamicContent/dynamic-content.js +28 -26
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/@types/generic.d.ts +11 -0
- package/dist/src/components/Guido.vue.d.ts +5 -1
- package/dist/src/components/organisms/dynamic-content/InvalidDynamicContentCard.vue.d.ts +22 -0
- package/dist/src/composables/useInvalidDynamicContentMarking.d.ts +4 -0
- package/dist/src/composables/useModuleRepair.d.ts +1 -1
- package/dist/src/enums/academy.d.ts +0 -1
- package/dist/src/library.d.ts +1 -1
- package/dist/src/stores/dynamic-content.d.ts +42 -1
- package/dist/src/stores/editor.d.ts +0 -54
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +0 -3
- package/dist/static/styles/customEditorStyle.css.js +4 -0
- package/dist/stores/dynamic-content.js +19 -7
- package/dist/stores/editor.js +0 -2
- package/dist/utils/legacyUnsubscribeConversion.js +28 -69
- package/package.json +1 -1
- package/dist/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue.js +0 -17
- package/dist/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue2.js +0 -30
- package/dist/config/migrator/sfmcUnsubscribeTextMigrator.js +0 -20
- package/dist/src/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue.d.ts +0 -2
- package/dist/src/config/migrator/sfmcUnsubscribeTextMigrator.d.ts +0 -1
|
@@ -1,81 +1,75 @@
|
|
|
1
|
-
import { useConfig as
|
|
2
|
-
import { useToaster as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ModuleDynamicContentAttribute as
|
|
5
|
-
import { ToasterTypeOptions as
|
|
6
|
-
import { itemsBlockDynamicVariables as
|
|
1
|
+
import { useConfig as h } from "./useConfig.js";
|
|
2
|
+
import { useToaster as v } from "./useToaster.js";
|
|
3
|
+
import { useTranslations as M } from "./useTranslations.js";
|
|
4
|
+
import { ModuleDynamicContentAttribute as T } from "../enums/dynamic-content.js";
|
|
5
|
+
import { ToasterTypeOptions as A } from "../enums/toaster.js";
|
|
6
|
+
import { itemsBlockDynamicVariables as O } from "../extensions/Blocks/Items/enums/productEnums.js";
|
|
7
7
|
import { useDynamicContentStore as E } from "../stores/dynamic-content.js";
|
|
8
|
-
import { useEditorStore as
|
|
9
|
-
import { useModuleDynamicContentStore as
|
|
10
|
-
import { buildDynamicContentLookup as
|
|
11
|
-
import { stripPendingMarker as
|
|
12
|
-
import { flattenDynamicContentCandidates as
|
|
13
|
-
import { repairItemsCurrencyAttributes as
|
|
14
|
-
import {
|
|
15
|
-
import { extractUsedDynamicContent as
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
return { html: s.replace(
|
|
22
|
-
},
|
|
8
|
+
import { useEditorStore as L } from "../stores/editor.js";
|
|
9
|
+
import { useModuleDynamicContentStore as U } from "../stores/module-dynamic-content.js";
|
|
10
|
+
import { buildDynamicContentLookup as _, convertModuleDynamicContent as F } from "../utils/dynamicContentConverter.js";
|
|
11
|
+
import { stripPendingMarker as P } from "../utils/dynamicContentPendingMarker.js";
|
|
12
|
+
import { flattenDynamicContentCandidates as S } from "../utils/genericUtil.js";
|
|
13
|
+
import { repairItemsCurrencyAttributes as N } from "../utils/itemsCurrencyRepair.js";
|
|
14
|
+
import { convertLegacyUnsubscribeInModuleHtml as R } from "../utils/legacyUnsubscribeConversion.js";
|
|
15
|
+
import { extractUsedDynamicContent as k } from "../utils/registerUsedDynamicContent.js";
|
|
16
|
+
const q = "dynamic-content.unresolved-attributes-on-drop", H = /^(\s*<[a-zA-Z][a-zA-Z0-9-]*)/;
|
|
17
|
+
let y = 0;
|
|
18
|
+
const $ = (s) => {
|
|
19
|
+
y += 1;
|
|
20
|
+
const o = `${Date.now().toString(36)}-${y}`;
|
|
21
|
+
return { html: s.replace(H, `$1 ${T.Pending}="${o}"`), id: o };
|
|
22
|
+
}, I = (s, o) => {
|
|
23
23
|
try {
|
|
24
|
-
const i =
|
|
24
|
+
const i = k(s, o.map(({ text: a, value: m }) => ({ text: a, value: m })));
|
|
25
25
|
i.length > 0 && E().registerDynamicContent(i);
|
|
26
26
|
} catch (i) {
|
|
27
27
|
console.error("Failed to register module dynamic content:", i);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
const { template: s, isFeatureEnabled:
|
|
29
|
+
}, re = () => {
|
|
30
|
+
const { template: s, isFeatureEnabled: o } = h(), { showToaster: i } = v(), a = M(), m = (r) => {
|
|
31
31
|
var u, e;
|
|
32
|
-
const
|
|
33
|
-
return c.size === 0 ? { html:
|
|
34
|
-
...
|
|
35
|
-
|
|
32
|
+
const t = o("liquidSyntax") ? [] : S((u = s.value) == null ? void 0 : u.dynamicContentList), c = _(t);
|
|
33
|
+
return c.size === 0 ? { html: r, unresolved: [], ambiguous: [], candidates: t } : {
|
|
34
|
+
...F(
|
|
35
|
+
r,
|
|
36
36
|
c,
|
|
37
|
-
[...((e = s.value) == null ? void 0 : e.customFieldAttributes) ?? [], ...
|
|
37
|
+
[...((e = s.value) == null ? void 0 : e.customFieldAttributes) ?? [], ...O]
|
|
38
38
|
),
|
|
39
|
-
candidates:
|
|
39
|
+
candidates: t
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
return { handleModuleAdd: (
|
|
42
|
+
return { handleModuleAdd: (r, t) => {
|
|
43
43
|
var c, u;
|
|
44
44
|
try {
|
|
45
|
-
if ((
|
|
45
|
+
if ((r == null ? void 0 : r.action) !== "ADD" && (r == null ? void 0 : r.action) !== "COPY")
|
|
46
46
|
return;
|
|
47
|
-
const e = (c =
|
|
48
|
-
if (!e || typeof
|
|
47
|
+
const e = (c = t == null ? void 0 : t.getTargetNode) == null ? void 0 : c.call(t), l = (u = e == null ? void 0 : e.getOuterHTML) == null ? void 0 : u.call(e);
|
|
48
|
+
if (!e || typeof l != "string")
|
|
49
49
|
return;
|
|
50
|
-
let
|
|
51
|
-
convertToPriceFormat:
|
|
52
|
-
})),
|
|
53
|
-
|
|
54
|
-
const { html:
|
|
50
|
+
let n = P(N(l, {
|
|
51
|
+
convertToPriceFormat: o("itemsPriceFormatting")
|
|
52
|
+
})), p = !1;
|
|
53
|
+
o("legacyUnsubscribeConversion") && ({ html: n, converted: p } = R(n));
|
|
54
|
+
const { html: f, unresolved: b, ambiguous: g, candidates: C } = m(n);
|
|
55
55
|
let d = null;
|
|
56
|
-
if (
|
|
56
|
+
if (n = f, g.length > 0 && ({ html: n, id: d } = $(n)), n !== l && t.modifyHtml(e).replaceWith(n), I(n, C), p)
|
|
57
57
|
try {
|
|
58
|
-
|
|
59
|
-
} catch (
|
|
60
|
-
console.error("Failed to request the legacy unsubscribe modal:",
|
|
58
|
+
L().isLegacyUnsubscribeModalRequested = !0;
|
|
59
|
+
} catch (D) {
|
|
60
|
+
console.error("Failed to request the legacy unsubscribe modal:", D);
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
} catch (p) {
|
|
66
|
-
console.error("Failed to request the SFMC unsubscribe modal:", p);
|
|
67
|
-
}
|
|
68
|
-
d && F().enqueue({ id: d, items: g }), v.length > 0 && i({
|
|
69
|
-
type: O.Warning,
|
|
70
|
-
message: m(I)
|
|
62
|
+
d && U().enqueue({ id: d, items: g }), b.length > 0 && i({
|
|
63
|
+
type: A.Warning,
|
|
64
|
+
message: a(q)
|
|
71
65
|
});
|
|
72
66
|
} catch (e) {
|
|
73
67
|
console.error("Failed to repair module on add:", e);
|
|
74
68
|
}
|
|
75
|
-
}, convertDynamicContent:
|
|
69
|
+
}, convertDynamicContent: m };
|
|
76
70
|
};
|
|
77
71
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
q as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
|
|
73
|
+
I as registerUsedAttributes,
|
|
74
|
+
re as useModuleRepair
|
|
81
75
|
};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useAmbiguousDynamicContent as
|
|
3
|
-
import { useBlocksConfig as
|
|
4
|
-
import { useConfig as
|
|
1
|
+
import { useActionsApi as j } from "./useActionsApi.js";
|
|
2
|
+
import { useAmbiguousDynamicContent as z } from "./useAmbiguousDynamicContent.js";
|
|
3
|
+
import { useBlocksConfig as $ } from "./useBlocksConfig.js";
|
|
4
|
+
import { useConfig as G } from "./useConfig.js";
|
|
5
5
|
import { useCustomInterfaceAppearance as v } from "./useCustomInterfaceAppearance.js";
|
|
6
|
-
import { useFullStoryBridge as
|
|
7
|
-
import { useModuleRepair as
|
|
8
|
-
import { useStripoEventHandler as
|
|
9
|
-
import { useStripoNotifications as
|
|
10
|
-
import { useToaster as
|
|
11
|
-
import { localePatch as
|
|
6
|
+
import { useFullStoryBridge as X } from "./useFullStoryBridge.js";
|
|
7
|
+
import { useModuleRepair as J } from "./useModuleRepair.js";
|
|
8
|
+
import { useStripoEventHandler as K } from "./useStripoEventHandler.js";
|
|
9
|
+
import { useStripoNotifications as Q } from "./useStripoNotifications.js";
|
|
10
|
+
import { useToaster as W } from "./useToaster.js";
|
|
11
|
+
import { localePatch as Y } from "../config/i18n/index.js";
|
|
12
12
|
import { en as B } from "../config/i18n/en/index.js";
|
|
13
|
-
import { ToasterTypeOptions as
|
|
14
|
-
import { useStripoApi as
|
|
15
|
-
import
|
|
16
|
-
import { useEditorStore as
|
|
17
|
-
import { buildMergeTagEntries as
|
|
18
|
-
import { getStripoRuntimeBaseUrl as
|
|
19
|
-
let d = null,
|
|
20
|
-
const
|
|
21
|
-
const { features: u, template: m, isFeatureEnabled: p } =
|
|
13
|
+
import { ToasterTypeOptions as Z } from "../enums/toaster.js";
|
|
14
|
+
import { useStripoApi as ee } from "../services/stripoApi.js";
|
|
15
|
+
import te from "../static/styles/customEditorStyle.css.js";
|
|
16
|
+
import { useEditorStore as T } from "../stores/editor.js";
|
|
17
|
+
import { buildMergeTagEntries as oe, flattenDynamicContentList as re } from "../utils/genericUtil.js";
|
|
18
|
+
import { getStripoRuntimeBaseUrl as ie } from "../utils/stripoRuntime.js";
|
|
19
|
+
let d = null, F = !1;
|
|
20
|
+
const ve = (t) => {
|
|
21
|
+
const { features: u, template: m, isFeatureEnabled: p } = G(), { handleError: f, showToaster: A } = W(), { getToken: P, getCustomFonts: R, getSyncModulesStatus: D } = ee(), { handleEvent: U } = K(), { handleModuleAdd: V } = J(), { restorePending: I } = z(), { getStripoBlocksConfig: L } = $(), { getStripoNotifications: q } = Q(), g = () => d || (d = new Promise((n, s) => {
|
|
22
22
|
if (document.getElementById("UiEditorScript")) {
|
|
23
23
|
n();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
const i =
|
|
26
|
+
const i = ie();
|
|
27
27
|
if (!i) {
|
|
28
28
|
s(
|
|
29
29
|
new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
|
|
30
30
|
);
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
const a = `${i}UIEditor.js`,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
}, document.body.appendChild(
|
|
33
|
+
const a = `${i}UIEditor.js`, e = document.createElement("script");
|
|
34
|
+
e.id = "UiEditorScript", e.type = "module", e.src = a, e.onload = () => {
|
|
35
|
+
F = !0, n();
|
|
36
|
+
}, e.onerror = () => {
|
|
37
|
+
e.remove(), s(new Error(`Failed to load Stripo UIEditor script from S3: ${a}`));
|
|
38
|
+
}, document.body.appendChild(e);
|
|
39
39
|
}), d.catch(() => {
|
|
40
40
|
d = null;
|
|
41
|
-
}), d),
|
|
42
|
-
var
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
41
|
+
}), d), x = async (n, s, i, a = [], e = !1, c = !1) => {
|
|
42
|
+
var w, k, b, _;
|
|
43
|
+
const o = T(), { html: S, css: y } = n, { baseBlocks: E, extensions: O } = await L();
|
|
44
|
+
t.mark("blocks_config_ready");
|
|
45
|
+
const h = ((w = u.value) == null ? void 0 : w.displayConditions) ?? !0, H = ((k = u.value) == null ? void 0 : k.modulesDisabled) ?? !1, C = c || (((b = m.value) == null ? void 0 : b.forceRecreate) ?? !1), M = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
|
|
46
|
+
t.setTemplate({ html: S, css: y, forceRecreate: C }), v().importCss(), t.mark("init_editor"), await window.UIEditor.initEditor(
|
|
47
47
|
document.querySelector("#guido-editor"),
|
|
48
48
|
{
|
|
49
49
|
metadata: s,
|
|
@@ -59,12 +59,12 @@ const Be = (o) => {
|
|
|
59
59
|
customAppearanceMergetags: !p("liquidSyntax"),
|
|
60
60
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
61
61
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
62
|
-
customViewStyles:
|
|
63
|
-
conditionsEnabled:
|
|
64
|
-
customConditionsEnabled:
|
|
62
|
+
customViewStyles: te,
|
|
63
|
+
conditionsEnabled: h,
|
|
64
|
+
customConditionsEnabled: h,
|
|
65
65
|
enableXSSSecurity: !0,
|
|
66
66
|
modulesDisabled: H,
|
|
67
|
-
syncModulesEnabled:
|
|
67
|
+
syncModulesEnabled: e,
|
|
68
68
|
messageSettingsEnabled: !0,
|
|
69
69
|
displayGmailAnnotations: !0,
|
|
70
70
|
displayHiddenPreheader: !1,
|
|
@@ -75,7 +75,7 @@ const Be = (o) => {
|
|
|
75
75
|
selectElementAfterDrop: !0,
|
|
76
76
|
sameFontSizeForOutlook: !0,
|
|
77
77
|
allowedScriptSourceDomains: M,
|
|
78
|
-
...
|
|
78
|
+
...E ? { baseBlocks: E } : {},
|
|
79
79
|
editorFonts: {
|
|
80
80
|
showDefaultStandardFonts: !0,
|
|
81
81
|
showDefaultNotStandardFonts: !0,
|
|
@@ -83,51 +83,47 @@ const Be = (o) => {
|
|
|
83
83
|
},
|
|
84
84
|
mergeTags: [
|
|
85
85
|
{
|
|
86
|
-
entries:
|
|
86
|
+
entries: oe(
|
|
87
87
|
i.preselectedDynamicContentList,
|
|
88
|
-
|
|
88
|
+
re((_ = m.value) == null ? void 0 : _.dynamicContentList),
|
|
89
89
|
p("liquidSyntax")
|
|
90
90
|
)
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
93
|
async onTokenRefreshRequest(r) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
t.mark("token_start");
|
|
96
96
|
const l = await P();
|
|
97
|
-
|
|
97
|
+
t.mark("token_end"), r(l);
|
|
98
98
|
} catch (l) {
|
|
99
99
|
f(l, "Failed to refresh token");
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
onTemplateLoaded() {
|
|
103
103
|
try {
|
|
104
|
-
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } =
|
|
105
|
-
v().importCss(), r(), N(),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} catch (j) {
|
|
109
|
-
console.error("Failed to settle the change state after template load:", j);
|
|
110
|
-
}
|
|
111
|
-
}, 1e3), o.markReady();
|
|
104
|
+
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = j(), { injectFullStory: N } = X();
|
|
105
|
+
v().importCss(), r(), N(), I(), l(), i.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
|
|
106
|
+
o.hasChanges = !1;
|
|
107
|
+
}, 1e3), t.markReady();
|
|
112
108
|
} catch (r) {
|
|
113
109
|
f(r, "Failed to load custom interface appearance");
|
|
114
110
|
}
|
|
115
111
|
},
|
|
116
112
|
onCodeEditorVisibilityChanged(r) {
|
|
117
|
-
|
|
113
|
+
o.isCodeEditorOpen = r;
|
|
118
114
|
},
|
|
119
115
|
onEditorVisualModeChanged(r) {
|
|
120
|
-
|
|
116
|
+
o.editorVisualMode = r.toLowerCase();
|
|
121
117
|
},
|
|
122
118
|
onVersionHistoryVisibilityChanged(r) {
|
|
123
|
-
|
|
119
|
+
o.isVersionHistoryOpen = r;
|
|
124
120
|
},
|
|
125
121
|
onDataChanged() {
|
|
126
|
-
|
|
122
|
+
o.hasChanges = !0, o.changeSeq += 1;
|
|
127
123
|
},
|
|
128
|
-
onEvent:
|
|
124
|
+
onEvent: U,
|
|
129
125
|
onModuleAdd: V,
|
|
130
|
-
notifications:
|
|
126
|
+
notifications: q(),
|
|
131
127
|
// Stripo deselects the block on any click outside the canvas, so every surface
|
|
132
128
|
// that belongs to the block's own flow has to be listed here (SD-153273).
|
|
133
129
|
ignoreClickOutsideSelectors: [
|
|
@@ -137,29 +133,29 @@ const Be = (o) => {
|
|
|
137
133
|
".in-modal-v2-wrapper",
|
|
138
134
|
".in-toasts-wrapper"
|
|
139
135
|
],
|
|
140
|
-
extensions:
|
|
141
|
-
localePatch:
|
|
136
|
+
extensions: O,
|
|
137
|
+
localePatch: Y
|
|
142
138
|
}
|
|
143
139
|
);
|
|
144
140
|
};
|
|
145
141
|
return { initPlugin: async (n, s, i, a = !1) => {
|
|
146
|
-
const
|
|
142
|
+
const e = T();
|
|
147
143
|
try {
|
|
148
|
-
|
|
149
|
-
const [c,
|
|
150
|
-
|
|
151
|
-
|
|
144
|
+
t.mark("plugin_start"), t.setScriptPreloaded(F), await g(), t.mark("script_ready");
|
|
145
|
+
const [c, o] = await Promise.all([
|
|
146
|
+
R(),
|
|
147
|
+
D()
|
|
152
148
|
]);
|
|
153
|
-
|
|
149
|
+
t.mark("fonts_sync_ready"), e.syncModulesEnabled = o, await x(n, s, i, c, o, a);
|
|
154
150
|
} catch {
|
|
155
|
-
|
|
156
|
-
type:
|
|
151
|
+
e.loadingStatus = !1, A({
|
|
152
|
+
type: Z.Error,
|
|
157
153
|
message: B["An error has occurred. Please report the error code to support."],
|
|
158
154
|
actionButton: {
|
|
159
155
|
text: B["Reload page"],
|
|
160
156
|
onClick: () => window.location.reload()
|
|
161
157
|
}
|
|
162
|
-
}),
|
|
158
|
+
}), t.markFailed();
|
|
163
159
|
}
|
|
164
160
|
}, preloadRuntime: () => {
|
|
165
161
|
g().catch(() => {
|
|
@@ -167,5 +163,5 @@ const Be = (o) => {
|
|
|
167
163
|
} };
|
|
168
164
|
};
|
|
169
165
|
export {
|
|
170
|
-
|
|
166
|
+
ve as useStripo
|
|
171
167
|
};
|
|
@@ -5,17 +5,16 @@ import { migrateItemsBlock as g } from "./itemsBlockMigrator.js";
|
|
|
5
5
|
import { migrateItemsPriceFormat as n } from "./itemsPriceFormatMigrator.js";
|
|
6
6
|
import { migrateLegacyUnsubscribeText as p } from "./legacyUnsubscribeTextMigrator.js";
|
|
7
7
|
import { migrateProductNameLink as f } from "./productNameLinkMigrator.js";
|
|
8
|
-
import { migrateRadioButton as
|
|
9
|
-
import { migrateRecommendation as
|
|
10
|
-
import { migrateRecommendationPartnerScope as
|
|
11
|
-
import { migrateRecommendationTitle as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const N = async (t, i = {}, o, r) => {
|
|
8
|
+
import { migrateRadioButton as l } from "./radioButtonMigrator.js";
|
|
9
|
+
import { migrateRecommendation as s } from "./recommendationMigrator.js";
|
|
10
|
+
import { migrateRecommendationPartnerScope as d } from "./recommendationPartnerMigrator.js";
|
|
11
|
+
import { migrateRecommendationTitle as b } from "./recommendationTitleMigrator.js";
|
|
12
|
+
import { migrateSocialIcons as k } from "./socialIconMigrator.js";
|
|
13
|
+
import { migrateUnsubscribe as P } from "./unsubscribeMigrator.js";
|
|
14
|
+
const w = async (t, i = {}, o, r) => {
|
|
16
15
|
let m = t;
|
|
17
|
-
return m = e(m), m =
|
|
16
|
+
return m = e(m), m = l(m), m = p(m), m = await P(m), m = a(m), m = s(m, i), o && (m = d(m, o)), m = b(m), m = g(m), r != null && r.itemsPriceFormatting && (m = n(m)), m = f(m), m = k(m), m = c(m), m;
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
w as migrate
|
|
21
20
|
};
|
package/dist/enums/academy.js
CHANGED
|
@@ -4,8 +4,7 @@ const e = "https://academy.insiderone.com", o = {
|
|
|
4
4
|
AMP_FOR_EMAILS: `${e}/docs/amp-for-emails`,
|
|
5
5
|
EMAIL_DISPLAY_CONDITIONS: `${e}/docs/new-editor-add-display-conditions-to-an-email`,
|
|
6
6
|
EMAIL_RECOMMENDATION_BLOCK: `${e}/docs/new-editor-email-recommendation-block`,
|
|
7
|
-
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails
|
|
8
|
-
SFMC_RELAY: `${e}/docs/sfmc-relay`
|
|
7
|
+
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails`
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
10
|
o as ACADEMY_LINKS
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var g = (
|
|
3
|
-
var
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var g = (r, o, t) => o in r ? c(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
|
|
3
|
+
var s = (r, o, t) => g(r, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { useConfig as m } from "../../composables/useConfig.js";
|
|
5
|
+
import { applyInvalidDynamicContentMarking as d } from "../../composables/useInvalidDynamicContentMarking.js";
|
|
6
|
+
import { findEditorShadowRoot as u } from "../../utils/editorShadowRoot.js";
|
|
7
|
+
import { mergeTagToDynamicContent as h, dynamicContentToMergeTags as T } from "../../utils/genericUtil.js";
|
|
8
|
+
import { UIElement as y, UIElementType as a, UEAttr as C, UIElementTagRegistry as E } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
9
|
+
import { ExternalMergeTagsLibrary as L } from "./dynamic-content-modal.js";
|
|
10
|
+
const l = "external-dynamic-content-ui-element", k = "button-add-dynamic-content";
|
|
11
|
+
class D extends E {
|
|
12
|
+
registerUiElements(o) {
|
|
13
|
+
o[a.MERGETAGS] = l;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
class
|
|
16
|
+
class U extends y {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
s(this, "mergeTagsButton", null);
|
|
20
|
+
s(this, "mergeTagsLibrary", null);
|
|
21
|
+
s(this, "clickListener", null);
|
|
22
|
+
s(this, "lastClickedElement", null);
|
|
23
|
+
s(this, "lastClickedFrame", null);
|
|
24
|
+
s(this, "mousedownListener", null);
|
|
24
25
|
}
|
|
25
26
|
getId() {
|
|
26
27
|
return l;
|
|
@@ -45,7 +46,7 @@ class x extends T {
|
|
|
45
46
|
onAttributeUpdated(t, e) {
|
|
46
47
|
if (t !== "mergeTag" || !(e != null && e.value))
|
|
47
48
|
return;
|
|
48
|
-
const n =
|
|
49
|
+
const n = h(e), i = this._getLastClickedPosition();
|
|
49
50
|
this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
|
|
50
51
|
}
|
|
51
52
|
openMergeTagLibrary() {
|
|
@@ -57,14 +58,15 @@ class x extends T {
|
|
|
57
58
|
* Dispatches event with dynamic content data and position
|
|
58
59
|
*/
|
|
59
60
|
_openDynamicContentLibrary(t, e) {
|
|
60
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
61
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new L()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
61
62
|
t,
|
|
62
63
|
(n) => {
|
|
63
64
|
if (n.text && n.value) {
|
|
64
|
-
const { isFeatureEnabled: i } =
|
|
65
|
-
this.api.triggerValueChange(
|
|
65
|
+
const { isFeatureEnabled: i } = m();
|
|
66
|
+
this.api.triggerValueChange(T([n], i("liquidSyntax"))[0]);
|
|
66
67
|
} else
|
|
67
68
|
this.api.triggerValueChange(null);
|
|
69
|
+
d();
|
|
68
70
|
},
|
|
69
71
|
e
|
|
70
72
|
);
|
|
@@ -96,7 +98,7 @@ class x extends T {
|
|
|
96
98
|
*/
|
|
97
99
|
_getEditorFrame() {
|
|
98
100
|
var e, n;
|
|
99
|
-
const t = (e =
|
|
101
|
+
const t = (e = u()) == null ? void 0 : e.querySelector("iframe");
|
|
100
102
|
return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
|
|
101
103
|
}
|
|
102
104
|
/**
|
|
@@ -145,7 +147,7 @@ class x extends T {
|
|
|
145
147
|
<${a.BUTTON}
|
|
146
148
|
id="guido__btn-add-dynamic-content"
|
|
147
149
|
class="btn btn-primary"
|
|
148
|
-
${
|
|
150
|
+
${C.BUTTON.name}="${k}">
|
|
149
151
|
<${a.ICON} src="plus" class="icon icon-button color-primary">
|
|
150
152
|
</${a.ICON}>
|
|
151
153
|
${this.api.translate("Add Dynamic Content")}
|
|
@@ -154,6 +156,6 @@ class x extends T {
|
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
158
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
D as DynamicContentTagRegistry,
|
|
160
|
+
U as DynamicContentUiElementExtension
|
|
159
161
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-
|
|
1
|
+
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-b7cb4d33]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-b7cb4d33]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-b7cb4d33]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}.invalid-dynamic-content-card[data-v-007c64e1]{position:fixed;z-index:1000;max-width:280px;padding:12px 16px;border:1px solid #dc2a2a;border-radius:4px;background-color:#fff;box-shadow:0 2px 8px #00000029}.invalid-dynamic-content-card__title[data-v-007c64e1]{margin:0 0 4px;font-weight:600;color:#dc2a2a}.invalid-dynamic-content-card__description[data-v-007c64e1]{margin:0;color:#4a4a4a}.invalid-dynamic-content-card__action[data-v-007c64e1]{margin-top:8px;padding:0;border:none;background:none;color:#0a2ecc;cursor:pointer}.invalid-dynamic-content-card__action[data-v-007c64e1]:hover{text-decoration:underline}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.30.0-beta.
|
|
1
|
+
const o = "3.30.0-beta.b86be87", s = { stripo: { version: "2.87.0" } }, e = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -13,6 +13,13 @@ export type BaseDynamicContent = {
|
|
|
13
13
|
export type DynamicContent = BaseDynamicContent & {
|
|
14
14
|
text: string;
|
|
15
15
|
};
|
|
16
|
+
export type InvalidDynamicContent = {
|
|
17
|
+
value: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
actionLabel: string;
|
|
21
|
+
actionAvailable: boolean;
|
|
22
|
+
};
|
|
16
23
|
/**
|
|
17
24
|
* A node in the partner-keyed dynamic-content tree (backend categorized-fields
|
|
18
25
|
* shape). Category nodes carry `children`/`select_items`; leaf nodes are the
|
|
@@ -54,6 +61,10 @@ export type DynamicContentEvent = {
|
|
|
54
61
|
attribute: DynamicContent;
|
|
55
62
|
position?: PositionData;
|
|
56
63
|
};
|
|
64
|
+
export type InvalidDynamicContentHoverEvent = {
|
|
65
|
+
entry: InvalidDynamicContent;
|
|
66
|
+
position: PositionData;
|
|
67
|
+
};
|
|
57
68
|
export type MergeTagClickEvent = {
|
|
58
69
|
position: PositionData;
|
|
59
70
|
element: HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicContent, GuidoConfigInput } from '@@/Types/config';
|
|
2
|
-
import type { PositionData } from '@@/Types/generic';
|
|
2
|
+
import type { InvalidDynamicContent, PositionData } from '@@/Types/generic';
|
|
3
3
|
import type { SavedTemplateDetails } from '@@/Types/stripo';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
/** Guido configuration object */
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
13
|
dynamicContent: {
|
|
14
14
|
insert: (data: DynamicContent) => void;
|
|
15
15
|
close: () => void;
|
|
16
|
+
setInvalid: (list: InvalidDynamicContent[]) => void;
|
|
16
17
|
};
|
|
17
18
|
hasChanges: import("vue").ComputedRef<boolean>;
|
|
18
19
|
saveSilent: () => Promise<{
|
|
@@ -50,6 +51,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
50
51
|
ready: () => void;
|
|
51
52
|
"onboarding:finished": () => void;
|
|
52
53
|
"test-email:click": () => void;
|
|
54
|
+
"dynamic-content:invalid-action": (detail: {
|
|
55
|
+
value: string;
|
|
56
|
+
}) => void;
|
|
53
57
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
54
58
|
ready: boolean;
|
|
55
59
|
}>>>, {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InvalidDynamicContent, PositionData } from '@@/Types/generic';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
entry: InvalidDynamicContent;
|
|
4
|
+
position: PositionData;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
7
|
+
"dynamic-content:invalid-action": (detail: {
|
|
8
|
+
value: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
mouseenter: () => void;
|
|
11
|
+
mouseleave: () => void;
|
|
12
|
+
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|