@useinsider/guido 1.0.0-beta.5790a04 → 1.0.0-beta.5ca5e28

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 (106) hide show
  1. package/README.md +89 -184
  2. package/dist/@types/generic.d.ts +4 -1
  3. package/dist/components/Guido.vue.d.ts +0 -6
  4. package/dist/components/Guido.vue.js +6 -6
  5. package/dist/components/Guido.vue2.js +15 -34
  6. package/dist/components/organisms/{header/HeaderWrapper.vue.js → top-bar/Header.vue.js} +7 -7
  7. package/dist/components/organisms/top-bar/Header.vue2.js +14 -0
  8. package/dist/components/organisms/{header/LeftSlot.vue.js → top-bar/HeaderLeftSlot.vue.js} +7 -7
  9. package/dist/components/organisms/top-bar/HeaderLeftSlot.vue2.js +11 -0
  10. package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +17 -0
  11. package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +11 -0
  12. package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +18 -0
  13. package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +14 -0
  14. package/dist/composables/useStripo.d.ts +2 -2
  15. package/dist/composables/useStripo.js +49 -72
  16. package/dist/composables/useTemplates.d.ts +1 -1
  17. package/dist/composables/useToaster.d.ts +0 -1
  18. package/dist/composables/useTranslations.d.ts +3 -1
  19. package/dist/enums/defaults.enum.d.ts +18 -0
  20. package/dist/guido.css +1 -1
  21. package/dist/library.d.ts +0 -1
  22. package/dist/static/editor.css.js +22 -72
  23. package/dist/stores/counter.d.ts +12 -0
  24. package/package.json +1 -1
  25. package/dist/components/organisms/header/HeaderWrapper.vue2.js +0 -14
  26. package/dist/components/organisms/header/LeftSlot.vue2.js +0 -11
  27. package/dist/components/organisms/header/MiddleSlot.vue.d.ts +0 -2
  28. package/dist/components/organisms/header/MiddleSlot.vue.js +0 -17
  29. package/dist/components/organisms/header/MiddleSlot.vue2.js +0 -20
  30. package/dist/components/organisms/header/RightSlot.vue.d.ts +0 -2
  31. package/dist/components/organisms/header/RightSlot.vue.js +0 -20
  32. package/dist/components/organisms/header/RightSlot.vue2.js +0 -24
  33. package/dist/components/organisms/header/ViewOptions.vue.js +0 -18
  34. package/dist/components/organisms/header/ViewOptions.vue2.js +0 -15
  35. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +0 -2
  36. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +0 -22
  37. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +0 -15
  38. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -16
  39. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +0 -18
  40. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +0 -16
  41. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +0 -18
  42. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +0 -23
  43. package/dist/composables/useActionsApi.d.ts +0 -4
  44. package/dist/composables/useActionsApi.js +0 -36
  45. package/dist/composables/useExport.d.ts +0 -3
  46. package/dist/composables/useExport.js +0 -30
  47. package/dist/composables/useHttp.js +0 -84
  48. package/dist/composables/usePartner.d.ts +0 -4
  49. package/dist/composables/usePartner.js +0 -16
  50. package/dist/composables/useToaster.js +0 -37
  51. package/dist/composables/useTranslations.js +0 -18
  52. package/dist/composables/useVersionHistoryApi.d.ts +0 -8
  53. package/dist/composables/useVersionHistoryApi.js +0 -53
  54. package/dist/enums/defaults.d.ts +0 -4
  55. package/dist/enums/defaults.js +0 -8
  56. package/dist/guido.png +0 -0
  57. package/dist/mock/api/custom-fonts.d.ts +0 -2
  58. package/dist/node_modules/lodash-es/_Hash.js +0 -20
  59. package/dist/node_modules/lodash-es/_ListCache.js +0 -20
  60. package/dist/node_modules/lodash-es/_Map.js +0 -6
  61. package/dist/node_modules/lodash-es/_MapCache.js +0 -20
  62. package/dist/node_modules/lodash-es/_Symbol.js +0 -5
  63. package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
  64. package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
  65. package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
  66. package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
  67. package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
  68. package/dist/node_modules/lodash-es/_getMapData.js +0 -8
  69. package/dist/node_modules/lodash-es/_getNative.js +0 -9
  70. package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
  71. package/dist/node_modules/lodash-es/_getValue.js +0 -6
  72. package/dist/node_modules/lodash-es/_hashClear.js +0 -7
  73. package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
  74. package/dist/node_modules/lodash-es/_hashGet.js +0 -13
  75. package/dist/node_modules/lodash-es/_hashHas.js +0 -9
  76. package/dist/node_modules/lodash-es/_hashSet.js +0 -9
  77. package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
  78. package/dist/node_modules/lodash-es/_isMasked.js +0 -11
  79. package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
  80. package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
  81. package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
  82. package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
  83. package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
  84. package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
  85. package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  86. package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
  87. package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
  88. package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
  89. package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
  90. package/dist/node_modules/lodash-es/_objectToString.js +0 -7
  91. package/dist/node_modules/lodash-es/_root.js +0 -5
  92. package/dist/node_modules/lodash-es/_toSource.js +0 -17
  93. package/dist/node_modules/lodash-es/eq.js +0 -6
  94. package/dist/node_modules/lodash-es/isFunction.js +0 -12
  95. package/dist/node_modules/lodash-es/isObject.js +0 -7
  96. package/dist/node_modules/lodash-es/memoize.js +0 -18
  97. package/dist/stores/editor.d.ts +0 -5
  98. package/dist/stores/editor.js +0 -11
  99. package/dist/stores/version-history.d.ts +0 -80
  100. package/dist/stores/version-history.js +0 -28
  101. package/dist/utils/dateUtil.d.ts +0 -1
  102. package/dist/utils/dateUtil.js +0 -16
  103. /package/dist/components/organisms/{header/HeaderWrapper.vue.d.ts → top-bar/Header.vue.d.ts} +0 -0
  104. /package/dist/components/organisms/{header/LeftSlot.vue.d.ts → top-bar/HeaderLeftSlot.vue.d.ts} +0 -0
  105. /package/dist/components/organisms/{header/ViewOptions.vue.d.ts → top-bar/HeaderMiddleSlot.vue.d.ts} +0 -0
  106. /package/dist/components/organisms/{header/version-history/ViewOptions.vue.d.ts → top-bar/HeaderRightSlot.vue.d.ts} +0 -0
package/README.md CHANGED
@@ -1,33 +1,25 @@
1
- <p align="center">
2
- <a href="https://www.youtube.com/shorts/Y0RwBeMezL4" target="_blank" rel="noopener noreferrer">
3
- <img width="180" src="./public/guido.png" alt="Guido logo">
4
- </a>
5
- </p>
1
+ # @useinsider/guido-plugin
6
2
 
7
-
8
- # @useinsider/guido
9
-
10
- Guido is a Vue 2 + TypeScript wrapper for the Stripo Email Editor plugin. Easily embed the professional email editor in your Vue applications with a clean, customizable interface.
3
+ Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.
11
4
 
12
5
  ## 📦 Install
13
-
14
6
  ```bash
15
7
  npm install @useinsider/guido
16
8
  ```
17
9
 
18
- ## 🚀 Usage
19
-
20
- ### Basic Usage
21
-
22
- ```html
10
+ ## 🚀 Usage (Vue 2)
11
+ ```vue
23
12
  <template>
24
- <div>
25
- <Guido
26
- :email-id="emailId"
27
- :user-id="userId"
28
- :guido-config="guidoConfig"
29
- />
30
- </div>
13
+ <Guido
14
+ email-id="abc123"
15
+ :api="apiEndpoints"
16
+ :extensions="extensions"
17
+ :insider-stripo-config="insiderStripoConfig"
18
+ @save="handleSave"
19
+ @export:requested="onExportRequested"
20
+ @export:ready="handleHtml"
21
+ @close="onClose"
22
+ />
31
23
  </template>
32
24
 
33
25
  <script lang="ts">
@@ -39,186 +31,99 @@ export default {
39
31
  },
40
32
  data() {
41
33
  return {
42
- emailId: 'abc123',
43
- userId: '12345',
44
- guidoConfig: {
45
- translationsPath: 'window.trans.en'
34
+ apiEndpoints: {
35
+ dynamicContent: '/api/dynamic-content',
36
+ unsubPages: '/api/unsub-pages',
37
+ header: '/api/header',
38
+ footer: '/api/footer',
39
+ productName: '/api/product-name',
40
+ productVersion: '/api/product-version',
41
+ token: '/api/stripo-token'
42
+ },
43
+ extensions: {
44
+ dynamicContent: true,
45
+ unsubPages: true,
46
+ header: false,
47
+ footer: false
46
48
  }
47
49
  };
50
+ },
51
+ methods: {
52
+ handleSave(data: any) {
53
+ console.log('Saved:', data);
54
+ },
55
+ handleHtml({ html }: { html: string }) {
56
+ console.log('HTML ready:', html);
57
+ },
58
+ onExportRequested() {
59
+ console.log('Export started');
60
+ },
61
+ onClose() {
62
+ console.log('Closed');
63
+ }
48
64
  }
49
65
  };
50
66
  </script>
51
67
  ```
52
68
 
53
69
  ## 📚 API
70
+ ### `<StripoEditor />` Props
71
+ | Prop | Type | Required | Description |
72
+ |-------------|----------|----------|----------------------------|
73
+ | emailId | string | ✅ | Stripo email draft ID |
74
+ | iframeId | string | ❌ | Custom iframe ID |
75
+ | api | object | ❌ | Custom API endpoints |
76
+ | extensions | object | ❌ | Enable/disable extensions |
77
+ | insiderStripoConfig | object | ❌ | Insider Stripo configuration |
78
+
79
+ ### Extensions
80
+ | Extension | Type | Default | Description |
81
+ |----------------|-----------|---------|--------------------------------|
82
+ | dynamicContent | boolean | true | Dynamic content functionality |
83
+ | unsubPages | boolean | true | Unsubscribe pages feature |
84
+ | header | boolean | true | Header customization |
85
+ | footer | boolean | true | Footer customization |
86
+
87
+ ### Insider Stripo Configuration
88
+ | Property | Type | Default | Description |
89
+ |-------------------|----------|---------|--------------------------------|
90
+ | translationsPath | string | 'window.trans.en | JS Path to translations file |
91
+
92
+ ### API Endpoints
93
+ | Endpoint | Default Path | Description |
94
+ |-------------------|------------------------|--------------------------------|
95
+ | dynamicContent | /api/dynamic-content | Dynamic content endpoint |
96
+ | unsubPages | /api/unsub-pages | Unsubscribe pages endpoint |
97
+ | header | /api/header | Header endpoint |
98
+ | footer | /api/footer | Footer endpoint |
99
+ | productName | /api/product-name | Product name endpoint |
100
+ | productVersion | /api/product-version | Product version endpoint |
101
+ | token | /api/stripo-token | Authentication token endpoint |
102
+
103
+ ### Events
104
+ | Event | Payload | Description |
105
+ |-------------------|------------------------|--------------------------------|
106
+ | `save` | any | Triggered on save |
107
+ | `export:requested`| void | Triggered when export starts |
108
+ | `export:ready` | { html: string } | Triggered when HTML is ready |
109
+ | `close` | void | Triggered when editor closes |
54
110
 
55
- ### Guido Component Props
56
-
57
- | Prop | Type | Required | Default | Description |
58
- |------|------|----------|---------|-------------|
59
- | `emailId` | `string` | ✅ | - | Unique identifier for the email draft |
60
- | `userId` | `string` | ✅ | - | Unique identifier for the user draft |
61
- | `username` | `string` | ⚪ | Guido User | User name |
62
- | `partnerName` | `string` | ⚪ | Getting from URL host | Unique identifier for the partner draft |
63
- | `productType` | `string` | ⚪ | Getting from URL path | Unique identifier for the product draft |
64
- | `guidoConfig` | `GuidoConfig` | ✅ | - | Configuration object for the editor |
65
-
66
- ### GuidoConfig Interface
67
-
68
- ```typescript
69
- interface GuidoConfig {
70
- translationsPath: string;
71
- }
72
- ```
73
-
74
- | Property | Type | Default | Description |
75
- |----------|------|---------|-------------|
76
- | `translationsPath` | `string` | `'window.trans.en'` | JavaScript path to the translations object |
77
-
78
- ### TypeScript Types
79
-
80
- The library exports the following TypeScript types:
81
-
82
- ```typescript
83
- // Main component
84
- import { Guido } from '@useinsider/guido';
85
-
86
- // Types
87
- import type { GuidoConfig } from '@useinsider/guido';
88
- import type { StripoEventType } from '@useinsider/guido';
89
- ```
90
-
91
- ### StripoEventType
92
-
93
- ```typescript
94
- type StripoEventType =
95
- | 'save'
96
- | 'export'
97
- | 'close'
98
- | 'autosave'
99
- | 'publish'
100
- | 'export:requested'
101
- | 'export:ready';
102
- ```
103
111
 
104
112
  ---
105
113
 
106
- ## 🔧 Development
107
-
108
- ### Prerequisites
109
-
110
- - 🧄 `Bun` (strongly recommended)
111
- or
112
- - NodeJS 18+ & `npm`
113
-
114
- ### Setup
115
-
114
+ ## 🛠 Development
116
115
  ```bash
117
- # Install dependencies
118
116
  bun install
119
-
120
- # Start development server
121
117
  bun start
122
-
123
- # Build for production
124
- bun run build
125
-
126
- # Type checking
127
- bun run type-check
128
-
129
- # Linting
130
- bun run lint
131
- ```
132
-
133
- ### Environment Variables
134
-
135
- Create a `.env` file with the following variables: (You can get env variables from your senior)
136
-
137
- ```env
138
- VITE_STRIPO_PLUGIN_ID=your_plugin_id
139
- VITE_STRIPO_SECRET_KEY=your_secret_key
140
- VITE_STRIPO_ROLE=your_role
141
- ```
142
-
143
- ### Project Structure
144
-
145
- ```
146
- src/
147
- ├── components/
148
- │ ├── Guido.vue # Main component
149
- │ └── organisms/
150
- │ └── header/ # Header components
151
- │ └── version-history/ # Version History components
152
- ...
153
- ├── composables/
154
- │ ├── useStripo.ts # Stripo integration
155
- │ └── useTranslations.ts # Translation management
156
- ├── @types/
157
- │ ├── generic.ts # Generic types
158
- │ ├── stripo.d.ts # Stripo-specific types
159
- │ └── events.ts # Event types
160
- ├── static/
161
- │ ├── editor.css # Custom editor styles
162
- │ └── templates/
163
- │ └── default/ # Default email template
164
- └── library.ts # Main export for library
165
- ```
166
-
167
- ## 🌐 i18n
168
- Before running the project, it sends to request to inone.useinsider.com/translations and writes the JSON file into - [trans.json](src/mock/responses/trans.json).
169
- It allows to use production or local translations on your code. 🚀
170
- Example usage:
171
- ```js
172
- import { useTranslations } from '@@/Composables/useTranslations';
173
-
174
- const trans = useTranslations();
175
-
176
- // use everywhere like this:
177
- trans('foo.bar')
178
118
  ```
179
119
 
180
- ## 📦 Build Output
181
-
182
- The library builds to multiple formats:
183
-
184
- - **ES Module**: `dist/library.js` (recommended)
185
- - **CSS**: `dist/guido.css` (custom styles)
186
-
187
- ### Package Exports
188
-
189
- ```json
190
- {
191
- "exports": {
192
- ".": {
193
- "import": "./dist/library.js",
194
- "types": "./dist/components/Guido.vue.d.ts",
195
- "require": "./dist/components/Guido.vue.js"
196
- },
197
- "./style": "./dist/guido.css"
198
- }
199
- }
120
+ Build & types:
121
+ ```bash
122
+ bun run build
200
123
  ```
201
124
 
202
- ## 🤝 Contributing
203
- - PR Titles should be structured like `TASK-ID | 🔥 | Some Clear Task Descriptions`
204
- - PR Labels should be filled.
205
- - PR Assignee required.
206
- - Tests should be covered.
207
- - All required checks should be passed before sending review request.
208
-
209
- ## 📄 License
210
-
211
- ISC License
212
-
213
125
  ---
214
126
 
215
- ## 🔗 Related
216
-
217
- - [Stripo Email Editor](https://stripo.email/) - The underlying email editor
218
- - [@useinsider/design-system-vue](https://github.com/useinsider/design-system-vue) - Insider's Vue design system
219
-
220
- ## 🎯 TODO:
221
- - [editor.css](src/static/editor.css) should be optimized with variables & `sass-loader`.
222
- - Master Version Generator should be fixed.
223
- - Playwright integration
224
- - Commitlint & Precommit Hooks integration
127
+ TODO:
128
+ [ ] - Default Template @edugencioglu
129
+ [ ] - Using CSS variables into [editor.css](./src/static/editor.css) @berkansezer-useinsider
@@ -1,3 +1,6 @@
1
- export type GuidoConfig = {
1
+ export type Translations = {
2
+ [key: string]: string;
3
+ };
4
+ export type InsiderStripoConfig = {
2
5
  translationsPath: string;
3
6
  };
@@ -1,11 +1,5 @@
1
- import type { GuidoConfig } from '@@/Types/generic';
2
1
  type __VLS_Props = {
3
2
  emailId: string;
4
- userId: string;
5
- partnerName?: string;
6
- productType?: string;
7
- username?: string;
8
- guidoConfig: GuidoConfig;
9
3
  };
10
4
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
11
5
  export default _default;
@@ -2,17 +2,17 @@ import o from "./Guido.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../_virtual/_plugin-vue2_normalizer.js";
4
4
  var s = function() {
5
- var e = this, r = e._self._c, t = e._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper" }, [r(t.HeaderWrapper), r("div", { staticClass: "guido-editor__container", attrs: { id: "guido-editor" } })], 1);
7
- }, _ = [], a = /* @__PURE__ */ i(
5
+ var t = this, r = t._self._c, e = t._self._setupProxy;
6
+ return r("div", { staticClass: "guido-editor-wrapper" }, [r(e.Header), r("div", { staticClass: "guido-editor-container", attrs: { id: "guido-editor" } })], 1);
7
+ }, a = [], n = /* @__PURE__ */ i(
8
8
  o,
9
9
  s,
10
- _,
10
+ a,
11
11
  !1,
12
12
  null,
13
- "d4a5c957"
13
+ "c14163ad"
14
14
  );
15
- const f = a.exports;
15
+ const f = n.exports;
16
16
  export {
17
17
  f as default
18
18
  };
@@ -1,43 +1,24 @@
1
- import { defineComponent as f, onMounted as c } from "vue";
2
- import { usePartner as g } from "../composables/usePartner.js";
3
- import { useStripo as _ } from "../composables/useStripo.js";
4
- import { useTemplates as y } from "../composables/useTemplates.js";
5
- import { DefaultUsername as C, DefaultGuidoConfig as T } from "../enums/defaults.js";
6
- import w from "./organisms/header/HeaderWrapper.vue.js";
7
- const h = /* @__PURE__ */ f({
1
+ import { defineComponent as a, onMounted as n } from "vue";
2
+ import { useStripo as m } from "../composables/useStripo.js";
3
+ import { useTemplates as p } from "../composables/useTemplates.js";
4
+ import s from "./organisms/top-bar/Header.vue.js";
5
+ const f = /* @__PURE__ */ a({
8
6
  __name: "Guido",
9
7
  props: {
10
- emailId: null,
11
- userId: null,
12
- partnerName: null,
13
- productType: null,
14
- username: null,
15
- guidoConfig: null
8
+ emailId: null
16
9
  },
17
- setup(d) {
18
- const o = d, { getPartnerName: r, getProductType: t } = g(), {
19
- emailId: n,
20
- userId: i,
21
- guidoConfig: a,
22
- partnerName: u = r(),
23
- productType: p = t(),
24
- username: m = C
25
- } = o;
26
- window.GuidoConfig = {
27
- ...T,
28
- ...a
29
- };
30
- const { initPlugin: l } = _({ emailId: n, userId: i, username: m, partnerName: u, productType: p }), { getDefaultTemplate: s } = y();
31
- return c(async () => {
10
+ setup(i) {
11
+ const e = i, { initPlugin: o } = m(e.emailId), { getDefaultTemplate: r } = p();
12
+ return n(async () => {
32
13
  try {
33
- const e = await s();
34
- await l(e);
35
- } catch (e) {
36
- console.error("Failed to initialize Stripo editor:", e);
14
+ const t = await r();
15
+ await o(t);
16
+ } catch (t) {
17
+ console.error("Failed to initialize Stripo editor:", t);
37
18
  }
38
- }), { __sfc: !0, props: o, getPartnerName: r, getProductType: t, emailId: n, userId: i, guidoConfig: a, partnerName: u, productType: p, username: m, initPlugin: l, getDefaultTemplate: s, HeaderWrapper: w };
19
+ }), { __sfc: !0, props: e, initPlugin: o, getDefaultTemplate: r, Header: s };
39
20
  }
40
21
  });
41
22
  export {
42
- h as default
23
+ f as default
43
24
  };
@@ -1,17 +1,17 @@
1
- import t from "./HeaderWrapper.vue2.js";
1
+ import t from "./Header.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
3
+ var a = function() {
4
4
  var o = this, r = o._self._c, e = o._self._setupProxy;
5
- return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot)], 1)]);
6
- }, a = [], _ = /* @__PURE__ */ s(
5
+ return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.HeaderLeftSlot), r(e.HeaderMiddleSlot), r(e.HeaderRightSlot)], 1)]);
6
+ }, n = [], _ = /* @__PURE__ */ s(
7
7
  t,
8
- n,
9
8
  a,
9
+ n,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const d = _.exports;
14
+ const c = _.exports;
15
15
  export {
16
- d as default
16
+ c as default
17
17
  };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as e } from "vue";
2
+ import { InContainer as r } from "@useinsider/design-system-vue";
3
+ import o from "./HeaderLeftSlot.vue.js";
4
+ import t from "./HeaderMiddleSlot.vue.js";
5
+ import m from "./HeaderRightSlot.vue.js";
6
+ const _ = /* @__PURE__ */ e({
7
+ __name: "Header",
8
+ setup(f) {
9
+ return { __sfc: !0, InContainer: r, HeaderLeftSlot: o, HeaderMiddleSlot: t, HeaderRightSlot: m };
10
+ }
11
+ });
12
+ export {
13
+ _ as default
14
+ };
@@ -1,17 +1,17 @@
1
- import r from "./LeftSlot.vue2.js";
1
+ import n from "./HeaderLeftSlot.vue2.js";
2
2
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var _ = function() {
4
- var t = this, e = t._self._c, n = t._self._setupProxy;
5
- return e("div", [e(n.InButtonV2, { attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } })], 1);
6
- }, s = [], a = /* @__PURE__ */ o(
7
- r,
4
+ var t = this, e = t._self._c, r = t._self._setupProxy;
5
+ return e("div", [e(r.InButtonV2, { attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } })], 1);
6
+ }, a = [], s = /* @__PURE__ */ o(
7
+ n,
8
8
  _,
9
- s,
9
+ a,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const i = a.exports;
14
+ const i = s.exports;
15
15
  export {
16
16
  i as default
17
17
  };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as t } from "vue";
2
+ import { InButtonV2 as e } from "@useinsider/design-system-vue";
3
+ const _ = /* @__PURE__ */ t({
4
+ __name: "HeaderLeftSlot",
5
+ setup(o) {
6
+ return { __sfc: !0, InButtonV2: e };
7
+ }
8
+ });
9
+ export {
10
+ _ as default
11
+ };
@@ -0,0 +1,17 @@
1
+ import o from "./HeaderMiddleSlot.vue2.js";
2
+ import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var l = function() {
4
+ var n = this, t = n._self._c, e = n._self._setupProxy;
5
+ return t("div", { staticClass: "d-f" }, [t(e.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__code-button", "left-icon": "line-code", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1 } })], 1);
6
+ }, a = [], i = /* @__PURE__ */ s(
7
+ o,
8
+ l,
9
+ a,
10
+ !1,
11
+ null,
12
+ null
13
+ );
14
+ const _ = i.exports;
15
+ export {
16
+ _ as default
17
+ };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e } from "vue";
2
+ import { InButtonV2 as t } from "@useinsider/design-system-vue";
3
+ const _ = /* @__PURE__ */ e({
4
+ __name: "HeaderMiddleSlot",
5
+ setup(o) {
6
+ return { __sfc: !0, InButtonV2: t };
7
+ }
8
+ });
9
+ export {
10
+ _ as default
11
+ };
@@ -0,0 +1,18 @@
1
+ import n from "./HeaderRightSlot.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var a = function() {
5
+ var s = this, t = s._self._c, e = s._self._setupProxy;
6
+ return t("div", { staticClass: "d-f header-right-slot" }, [t("div", { staticClass: "d-f" }, [t(e.InSegments, { attrs: { id: "preview-platform-selection", "with-icon": "", selected: "desktop", "segment-list": e.segmentList } })], 1), t("div", { staticClass: "d-f" }, [t(e.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "label-text-status": !1 } })], 1), t(e.InButtonV2, { attrs: { id: "guido__save-button", "label-text": "Save" } })], 1);
7
+ }, i = [], l = /* @__PURE__ */ o(
8
+ n,
9
+ a,
10
+ i,
11
+ !1,
12
+ null,
13
+ "9d879f6f"
14
+ );
15
+ const u = l.exports;
16
+ export {
17
+ u as default
18
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as e } from "vue";
2
+ import { InSegments as t, InButtonV2 as n } from "@useinsider/design-system-vue";
3
+ const p = /* @__PURE__ */ e({
4
+ __name: "HeaderRightSlot",
5
+ setup(o) {
6
+ return { __sfc: !0, segmentList: [
7
+ { text: "", icon: "line-desktop", value: "desktop" },
8
+ { text: "", icon: "line-menu-mobileapp", value: "mobile" }
9
+ ], InButtonV2: n, InSegments: t };
10
+ }
11
+ });
12
+ export {
13
+ p as default
14
+ };
@@ -1,4 +1,4 @@
1
- import type { Metadata, Template } from '@@/Types/stripo';
2
- export declare const useStripo: (metadata: Metadata) => {
1
+ import type { Template } from '@@types/stripo';
2
+ export declare const useStripo: (emailId: string) => {
3
3
  initPlugin: (template: Template) => Promise<void>;
4
4
  };