@useinsider/guido 1.0.2-beta.b11c72f → 1.0.2-beta.b6e86c0

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 (63) hide show
  1. package/README.md +1 -31
  2. package/dist/@types/generic.d.ts +0 -4
  3. package/dist/components/Guido.vue.d.ts +1 -3
  4. package/dist/components/Guido.vue.js +2 -2
  5. package/dist/components/Guido.vue2.js +58 -69
  6. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  7. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
  8. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  9. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  10. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
  11. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
  12. package/dist/components/organisms/header/RightSlot.vue.js +3 -5
  13. package/dist/components/organisms/header/RightSlot.vue2.js +27 -26
  14. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +11 -11
  15. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
  16. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +8 -8
  17. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +1 -1
  18. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +28 -40
  19. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +6 -6
  20. package/dist/composables/useCustomInterfaceAppearance.js +18 -22
  21. package/dist/composables/useHtmlCompiler.js +9 -17
  22. package/dist/composables/useStripo.js +25 -27
  23. package/dist/composables/useToaster.js +17 -17
  24. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
  25. package/dist/enums/defaults.d.ts +1 -5
  26. package/dist/enums/defaults.js +10 -14
  27. package/dist/guido.css +1 -1
  28. package/dist/static/styles/components/alert-message.css.js +2 -32
  29. package/dist/static/styles/components/button.css.js +2 -32
  30. package/dist/static/styles/components/wide-panel.css.js +1 -5
  31. package/dist/static/styles/customEditorStyle.css.js +0 -6
  32. package/dist/static/styles/variables.css.js +0 -10
  33. package/dist/stores/dynamic-content.d.ts +0 -12
  34. package/dist/stores/dynamic-content.js +6 -7
  35. package/dist/utils/genericUtil.js +6 -9
  36. package/dist/utils/templatePreparation.js +14 -21
  37. package/package.json +1 -1
  38. package/dist/composables/useHtmlValidator.d.ts +0 -3
  39. package/dist/composables/useHtmlValidator.js +0 -120
  40. package/dist/composables/useRecommendation.d.ts +0 -19
  41. package/dist/composables/useRecommendation.js +0 -27
  42. package/dist/composables/useSave.d.ts +0 -4
  43. package/dist/composables/useSave.js +0 -15
  44. package/dist/config/compiler/outlookCompilerRules.js +0 -36
  45. package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
  46. package/dist/config/compiler/recommendationCompilerRules.js +0 -83
  47. package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
  48. package/dist/config/compiler/socialCompilerRules.js +0 -21
  49. package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
  50. package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
  51. package/dist/enums/html-validator.d.ts +0 -6
  52. package/dist/enums/html-validator.js +0 -7
  53. package/dist/enums/recommendation.d.ts +0 -54
  54. package/dist/enums/recommendation.js +0 -56
  55. package/dist/enums/unsubscribe.d.ts +0 -15
  56. package/dist/enums/unsubscribe.js +0 -17
  57. package/dist/mock/api/validator.d.ts +0 -2
  58. package/dist/static/styles/components/notification.css.js +0 -55
  59. package/dist/static/styles/components/popup.css.js +0 -68
  60. package/dist/stores/recommendation.d.ts +0 -10
  61. package/dist/stores/recommendation.js +0 -9
  62. package/dist/stores/unsubscribe.d.ts +0 -8
  63. package/dist/stores/unsubscribe.js +0 -9
@@ -1,15 +0,0 @@
1
- export declare const LINK_TYPES: {
2
- UNSUBSCRIBE_LINK_TYPE: number;
3
- PREFERENCES_LINK_TYPE: number;
4
- };
5
- export declare const LINK_REGEXES: {
6
- UNSUBSCRIBE_LINK_REGEX: RegExp;
7
- DATA_OGSB_BUTTON_CSS_REGEX: string;
8
- GLOBAL_UNSUBSCRIBE_LINK_REGEX: RegExp;
9
- PREFERENCES_UNSUBSCRIBE_LINK_REGEX: RegExp;
10
- };
11
- export declare const URLS: {
12
- UNSUBSCRIBE_URL: string;
13
- PREFERENCES_URL: string;
14
- };
15
- export declare const INSIDER_ID = "iid";
@@ -1,17 +0,0 @@
1
- const E = {
2
- UNSUBSCRIBE_LINK_TYPE: 1,
3
- PREFERENCES_LINK_TYPE: 3
4
- }, s = {
5
- UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
6
- DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
7
- GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
8
- PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
9
- }, _ = {
10
- UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
11
- PREFERENCES_URL: "https://mail.useinsider.com/user/v1/prefs"
12
- };
13
- export {
14
- s as LINK_REGEXES,
15
- E as LINK_TYPES,
16
- _ as URLS
17
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("msw").HttpHandler[];
2
- export default _default;
@@ -1,55 +0,0 @@
1
- const n = `ue-notifications-container {
2
- left: 96px;
3
- margin: 0;
4
- bottom: 32px;
5
- top: unset;
6
- width: unset;
7
- }
8
-
9
- ue-notifications-container ue-message + ue-message {
10
- margin-bottom: 24px;
11
- }
12
-
13
- ue-notifications-container .alert-message-wrapper {
14
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
15
- border: none;
16
- padding: 16px 24px;
17
- }
18
-
19
- ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-content {
20
- width: calc(100% - 64px);
21
- }
22
-
23
- ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-text {
24
- font-size: 15px;
25
- font-weight: 600;
26
- }
27
-
28
- ue-notifications-container .alert-message-text,
29
- ue-notifications-container .alert-message-wrapper ue-icon-component.icon,
30
- ue-notifications-container .alert-message-wrapper ue-icon-component.icon-button {
31
- color: var(--guido-color-white);
32
- }
33
-
34
- ue-notifications-container ue-message ue-button.close {
35
- margin: 0 0 0 16px;
36
- }
37
-
38
- ue-notifications-container .alert-message-wrapper.success {
39
- background: var(--guido-color-background-toaster-success);
40
- color: inherit;
41
- }
42
-
43
- ue-notifications-container .alert-message-wrapper.error {
44
- background: var(--guido-color-background-toaster-error);
45
- color: inherit;
46
- }
47
-
48
- ue-notifications-container .alert-message-wrapper.warn {
49
- background: var(--guido-color-background-toaster-warn);
50
- color: inherit;
51
- }
52
- `;
53
- export {
54
- n as default
55
- };
@@ -1,68 +0,0 @@
1
- const n = `ue-popup {
2
- -webkit-backdrop-filter: unset;
3
- backdrop-filter: unset;
4
- background-color: rgba(44, 53, 70, 0.5);
5
- }
6
-
7
- ue-popup .popup-wrapper {
8
- max-width: 400px;
9
- border: 1px solid var(--guido-color-neutral-200);
10
- box-shadow: none;
11
- background: var(--guido-color-white);
12
- font-size: 15px;
13
- line-height: 24px;
14
- }
15
-
16
- ue-popup .popup-title {
17
- padding: 32px 56px 0 32px;
18
- line-height: 24px;
19
- font-size: 20px;
20
- font-weight: 400;
21
- border-bottom: none;
22
- }
23
-
24
- ue-popup .confirmation .confirmation-wrapper {
25
- padding: 32px;
26
- gap: 16px;
27
- }
28
-
29
- ue-popup .confirmation .confirmation-actions {
30
- flex-direction: row-reverse;
31
- justify-content: space-between;
32
- }
33
-
34
- ue-popup .danger > .button {
35
- font-size: 15px;
36
- padding: 8px 16px;
37
- }
38
-
39
- ue-popup .e2e-cancel {
40
- margin-left: unset;
41
- }
42
-
43
- ue-popup .e2e-cancel .button {
44
- background-color: transparent;
45
- border: none;
46
- padding: 8px 0;
47
- font-size: 15px;
48
- }
49
-
50
- ue-popup .e2e-cancel .button:hover:not(:disabled,.disabled) {
51
- text-decoration: underline;
52
- background-color: transparent;
53
- }
54
-
55
- ue-popup .popup-close {
56
- top: 32px;
57
- right: 32px;
58
- }
59
-
60
- ue-popup .popup-close .button {
61
- padding: 0;
62
- min-width: unset;
63
- min-height: unset;
64
- }
65
- `;
66
- export {
67
- n as default
68
- };
@@ -1,10 +0,0 @@
1
- type RecommendationConfig = {
2
- filters: {
3
- value: string;
4
- }[];
5
- };
6
- interface StoreState {
7
- recommendationConfigs: RecommendationConfig[];
8
- }
9
- export declare const useRecommendationStore: import("pinia").StoreDefinition<"recommendation", StoreState, {}, {}>;
10
- export {};
@@ -1,9 +0,0 @@
1
- import { defineStore as e } from "pinia";
2
- const t = () => ({
3
- recommendationConfigs: []
4
- }), n = e("recommendation", {
5
- state: () => t()
6
- });
7
- export {
8
- n as useRecommendationStore
9
- };
@@ -1,8 +0,0 @@
1
- type UnsubscribePage = {
2
- type: number;
3
- };
4
- interface StoreState {
5
- selectedUnsubscribePages: UnsubscribePage[];
6
- }
7
- export declare const useUnsubscribeStore: import("pinia").StoreDefinition<"unsubscribe", StoreState, {}, {}>;
8
- export {};
@@ -1,9 +0,0 @@
1
- import { defineStore as e } from "pinia";
2
- const t = () => ({
3
- selectedUnsubscribePages: []
4
- }), r = e("unsubscribe", {
5
- state: () => t()
6
- });
7
- export {
8
- r as useUnsubscribeStore
9
- };