@useinsider/guido 3.2.0-beta.739a669 → 3.2.0-beta.8feb39d
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/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +31 -51
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +22 -23
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +39 -37
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +3 -3
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +41 -30
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +14 -15
- package/dist/composables/useFullStoryBridge.js +14 -0
- package/dist/composables/useRecommendation.js +2 -2
- package/dist/composables/useStripo.js +44 -42
- package/dist/enums/displayConditions.js +82 -78
- package/dist/enums/extensions/recommendationBlock.js +95 -41
- package/dist/enums/onboarding.js +2 -7
- package/dist/enums/unsubscribe.js +17 -16
- package/dist/extensions/Blocks/Checkbox/control.js +23 -23
- package/dist/extensions/Blocks/RadioButton/control.js +15 -15
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +3 -3
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +324 -218
- package/dist/package.json.js +1 -1
- package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
- package/dist/src/enums/displayConditions.d.ts +5 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +5 -1
- package/dist/src/enums/onboarding.d.ts +0 -6
- package/dist/src/enums/unsubscribe.d.ts +8 -3
- package/dist/src/stores/onboarding.d.ts +0 -4
- package/dist/static/styles/components/button.css.js +16 -9
- package/dist/static/styles/components/loader.css.js +4 -0
- package/dist/static/styles/components/narrow-panel.css.js +52 -0
- package/dist/stores/onboarding.js +0 -4
- package/package.json +3 -3
- package/dist/composables/useRibbonOffset.js +0 -21
- package/dist/src/composables/useRibbonOffset.d.ts +0 -4
package/dist/package.json.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Injects the hosted FullStory bridge script into the Stripo editor iframe.
|
|
3
|
+
*
|
|
4
|
+
* The bridge script's origin is allowlisted via Stripo's
|
|
5
|
+
* `allowedScriptSourceDomains` in useStripo, so the iframe's CSP permits
|
|
6
|
+
* the load. The bundled script itself handles reading FS config from the
|
|
7
|
+
* parent window and booting the FullStory queue stub inside the iframe.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useFullStoryBridge: () => {
|
|
10
|
+
injectFullStory: () => void;
|
|
11
|
+
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { ConditionCategories } from '@@/Types/condition-categories';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Get display conditions lazily so translations resolve at access time.
|
|
4
|
+
* Must be called within a Vue component context or after Pinia is initialized.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getDisplayConditions: () => ConditionCategories;
|
|
@@ -6,7 +6,11 @@ export declare const URLS: {
|
|
|
6
6
|
export declare const QUERY_PARAMS: {
|
|
7
7
|
CLIENT_ID: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Get recommendation feed source maps lazily so translated names resolve at access time.
|
|
11
|
+
* Must be called within a Vue component context or after Pinia is initialized.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getRecommendationFeedSourceMaps: () => RecommendationFeedItem[];
|
|
10
14
|
export declare const PriceAttributes: string[];
|
|
11
15
|
export declare const currencyLocationMaps: TextValueObject[];
|
|
12
16
|
export declare const currencyOperators: TextValueObject[];
|
|
@@ -3,9 +3,3 @@ export declare const UI_EDITOR_SELECTOR = "ui-editor";
|
|
|
3
3
|
export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
|
|
4
4
|
export declare const SETTINGS_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Settings\"]";
|
|
5
5
|
export declare const RIBBON_SELECTOR = ".in-ribbons-wrapper";
|
|
6
|
-
export declare const DYNAMIC_CONTENT_BUTTON_SELECTOR = "#guido__btn-add-dynamic-content";
|
|
7
|
-
export declare const AMP_TOGGLE_BUTTON_SELECTOR = ".guido__amp-toggle-html";
|
|
8
|
-
export declare const AMP_TOGGLE_WRAPPER_SELECTOR = ".in-segments-wrapper";
|
|
9
|
-
export declare const HEADER_SELECTOR = "[data-testid=\"guido-header\"]";
|
|
10
|
-
export declare const POPOVER_LEFT_OFFSET = 158;
|
|
11
|
-
export declare const POPOVER_TOP_GAP = 10;
|
|
@@ -13,9 +13,14 @@ export declare const URLS: {
|
|
|
13
13
|
PREFERENCES_URL: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const INSIDER_ID = "iid";
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
export declare const DEFAULT_UNSUBSCRIBE_GROUP_SEND_GRID_ID = "G";
|
|
17
|
+
/**
|
|
18
|
+
* Get the default unsubscribe group lazily so the translated name resolves at access time.
|
|
19
|
+
* Must be called within a Vue component context or after Pinia is initialized.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getDefaultUnsubscribeGroup: () => {
|
|
22
|
+
name: string;
|
|
23
|
+
sendGridId: string;
|
|
19
24
|
};
|
|
20
25
|
export declare const UNSUBSCRIBE_PAGES_LINK = "/email/unsubscribe-pages";
|
|
21
26
|
export declare const PAGE_TYPES: {
|
|
@@ -1392,10 +1392,6 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
|
|
|
1392
1392
|
close(type: OnboardingType): Promise<void>;
|
|
1393
1393
|
next(type: OnboardingType): void;
|
|
1394
1394
|
previous(type: OnboardingType): void;
|
|
1395
|
-
updateCardPosition(type: OnboardingType, cardIndex: number, position: {
|
|
1396
|
-
top: string;
|
|
1397
|
-
position: string;
|
|
1398
|
-
}): void;
|
|
1399
1395
|
setConfig(type: OnboardingType, config: OnboardingCardConfig[]): void;
|
|
1400
1396
|
onDiscoverNowClicked(): Promise<void>;
|
|
1401
1397
|
onRemindMeLater(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = `.control-shadow-wrapper:has(.button) {
|
|
2
2
|
border-radius: 0;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
background-color: transparent;
|
|
@@ -99,18 +99,12 @@ ue-check-button.checked:not(.flat-white) input:checked + label .icon-button {
|
|
|
99
99
|
color: var(--guido-color-primary-500);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
ue-select.full-width .button {
|
|
103
|
-
border: none !important;
|
|
104
|
-
background-color: var(--guido-color-neutral-200) !important;
|
|
105
|
-
color: var(--guido-color-neutral-800) !important;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
102
|
ue-select.full-width .button .icon-button {
|
|
109
103
|
color: var(--guido-color-gray-600) !important;
|
|
110
104
|
}
|
|
111
105
|
|
|
112
106
|
ue-select.full-width .button:hover:not(:disabled,.disabled) {
|
|
113
|
-
background-color: var(--guido-color-
|
|
107
|
+
background-color: var(--guido-color-gray-0) !important;
|
|
114
108
|
}
|
|
115
109
|
|
|
116
110
|
ue-color {
|
|
@@ -130,7 +124,20 @@ ue-select-text-input .select-text-input-toggle .button {
|
|
|
130
124
|
justify-content: center;
|
|
131
125
|
background-color: transparent !important;
|
|
132
126
|
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
.control-shadow-wrapper,
|
|
130
|
+
ue-button:not(.no-shadow,.flat-white),
|
|
131
|
+
ue-toggle:not(.no-shadow,.flat-white),
|
|
132
|
+
:is(ue-popover-toggler,ue-toggle-icon-picker,ue-emoji-toggle),
|
|
133
|
+
.button-group,
|
|
134
|
+
ue-counter:not(.no-shadow),
|
|
135
|
+
:is(ue-select,ue-mergetags,ue-font-family-select):not(.no-shadow),
|
|
136
|
+
ue-check-button:not(.no-shadow,.flat-white) {
|
|
137
|
+
background: none;
|
|
138
|
+
padding: 0;
|
|
139
|
+
}
|
|
133
140
|
`;
|
|
134
141
|
export {
|
|
135
|
-
|
|
142
|
+
n as default
|
|
136
143
|
};
|
|
@@ -28,6 +28,58 @@ ue-stripe-thumb:hover:not(.disabled),
|
|
|
28
28
|
border-color: var(--guido-color-primary-500);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* Module search — initial */
|
|
32
|
+
.module-search-container {
|
|
33
|
+
background-color: var(--guido-color-gray-0);
|
|
34
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.module-search-container .service-element {
|
|
39
|
+
background-color: unset;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.module-filter-toggle {
|
|
43
|
+
top: -1px !important;
|
|
44
|
+
right: -1px !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.module-filter-toggle > .button,
|
|
48
|
+
.module-search-container:hover .module-filter-toggle > .button {
|
|
49
|
+
border: none;
|
|
50
|
+
background: transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Module search — hover */
|
|
54
|
+
.module-search-container:has(.module-search-chip-input:hover) {
|
|
55
|
+
border-color: var(--guido-color-primary-500);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.module-search-container .module-search-chip-input .service-element:hover {
|
|
59
|
+
background-color: var(--guido-color-gray-0);
|
|
60
|
+
border-radius: 4px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.module-search-container .module-filter-toggle:hover > .button {
|
|
64
|
+
background-color: var(--guido-color-gray-1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Module search — selected (.on) */
|
|
68
|
+
.module-search-container:has(.module-search-chip-input.on),
|
|
69
|
+
.module-search-container:has(.module-search-chip-input.on):hover {
|
|
70
|
+
border-color: var(--guido-color-primary-500);
|
|
71
|
+
box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.module-search-container .module-search-chip-input.on .input-section {
|
|
75
|
+
background-color: unset;
|
|
76
|
+
box-shadow: unset;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.module-categories-list .menu-item {
|
|
80
|
+
padding: 8px 20px !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
31
83
|
.modules-layout-wrapper {
|
|
32
84
|
padding: 0 16px 16px;
|
|
33
85
|
grid-row-gap: 16px;
|
|
@@ -71,10 +71,6 @@ const t = () => ({
|
|
|
71
71
|
previous(n) {
|
|
72
72
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
73
73
|
},
|
|
74
|
-
updateCardPosition(n, i, o) {
|
|
75
|
-
const s = this.onboardings[n].config[i];
|
|
76
|
-
s && (s.top = o.top, s.position = o.position);
|
|
77
|
-
},
|
|
78
74
|
setConfig(n, i) {
|
|
79
75
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
80
76
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.2.0-beta.
|
|
3
|
+
"version": "3.2.0-beta.8feb39d",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stripoinc/ui-editor-extensions": "3.
|
|
35
|
+
"@stripoinc/ui-editor-extensions": "3.7.0",
|
|
36
36
|
"@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
|
|
37
37
|
"@vueuse/core": "11.3.0",
|
|
38
38
|
"lodash-es": "4.17.21",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"guido": {
|
|
88
88
|
"stripo": {
|
|
89
|
-
"version": "2.
|
|
89
|
+
"version": "2.60.0"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RIBBON_SELECTOR as r } from "../enums/onboarding.js";
|
|
2
|
-
import { ref as f, onMounted as c, onBeforeUnmount as i } from "vue";
|
|
3
|
-
const m = () => {
|
|
4
|
-
const o = f(0);
|
|
5
|
-
let e = null;
|
|
6
|
-
const n = () => {
|
|
7
|
-
const t = document.querySelector(r), s = (t == null ? void 0 : t.offsetHeight) ?? 0;
|
|
8
|
-
o.value !== s && (o.value = s);
|
|
9
|
-
}, u = (t) => `${t + o.value}px`;
|
|
10
|
-
return c(() => {
|
|
11
|
-
n(), e = new MutationObserver(n), e.observe(document.body, {
|
|
12
|
-
childList: !0,
|
|
13
|
-
subtree: !0
|
|
14
|
-
});
|
|
15
|
-
}), i(() => {
|
|
16
|
-
e == null || e.disconnect();
|
|
17
|
-
}), { ribbonOffset: o, getTopPosition: u };
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
m as useRibbonOffset
|
|
21
|
-
};
|