@useinsider/guido 2.1.0-beta.5c1d75f → 2.1.0-beta.5e38fec

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.
@@ -4,7 +4,7 @@ import { useConfig as v } from "./useConfig.js";
4
4
  import { useCustomInterfaceAppearance as A } from "./useCustomInterfaceAppearance.js";
5
5
  import { useStripoEventHandler as F } from "./useStripoEventHandler.js";
6
6
  import { useToaster as D } from "./useToaster.js";
7
- import { localePatch as I } from "../config/i18n/index.js";
7
+ import { localePatch as I } from "../config/localePatch/index.js";
8
8
  import { displayConditions as M } from "../enums/displayConditions.js";
9
9
  import { useStripoApi as U } from "../services/stripoApi.js";
10
10
  import P from "../static/styles/customEditorStyle.css.js";
@@ -1,11 +1,13 @@
1
1
  import o from "./labels.json.js";
2
2
  import t from "./toasters.json.js";
3
3
  import r from "./tooltips.json.js";
4
- const e = {
5
- ...o,
6
- ...r,
7
- ...t
4
+ const p = {
5
+ en: {
6
+ ...o,
7
+ ...r,
8
+ ...t
9
+ }
8
10
  };
9
11
  export {
10
- e as en
12
+ p as localePatch
11
13
  };
@@ -1,4 +1,4 @@
1
- const e = "Your version has been restored successfully.", o = "Restore Image", t = "Cancel", a = {
1
+ const e = "Your version has been restored successfully.", o = {
2
2
  "The image has been deleted.": "The image has been deleted successfully.",
3
3
  "Aim for the drop zone!": "Drag and drop your image inside the upload area to continue.",
4
4
  "Image processing": "The image upload is in progress. This may take some time.",
@@ -14,14 +14,11 @@ const e = "Your version has been restored successfully.", o = "Restore Image", t
14
14
  "Error message from image processing": "The Play Button couldn't be added to the Video Thumbnail right now. You can select another Play Button and try again.",
15
15
  "The AI is fine-tuning your result... Please wait! This may take up to 1 minute.": "AI content generation is in progress. This may take some time.",
16
16
  "Can not complete AI request. Try again later": "AI content generation couldn't be completed right now. You can reload the editor or wait for a while and try again.",
17
- "Http failure response for https://plugins.stripo.email/api/v1/documents/v3/documents/link: 400 OK": "Upload a valid image to continue.",
18
- "Http failure response for https://plugins.stripo.email/api/v1/documents/v3/documents/base64: 400 OK": "The video thumbnail couldn’t be uploaded from the URL. Check and update your URL to continue.",
19
17
  "AI is processing your request": "AI content generation is in progress. This may take some time.",
20
- "Whoops, something went wrong. Our experts are working to resolve this issue. Try again later please": "Your action couldn't be done right now. You can reload the editor or wait for a while and try again.",
21
18
  "Unable to paste text. Limit is 256kB. Please trim it down.": "Add a text to Text Block of up to 256KB to continue.",
22
19
  "Banner src included merge tag": "The image upload is in progress. This may take some time.",
23
20
  "Module deletion error": "The module couldn't be deleted right now. You can wait for a while and try again.",
24
- "Can`t delete the module": "The module couldn't be deleted right now. You can wait for a while and try again.",
21
+ "Module deletion error with action button": "The module couldn't be deleted right now. You can wait for a while and try again.",
25
22
  "Block action error": "Your content couldn't added right now. You can wait for a while and try again.",
26
23
  history_revert_to_patch: e,
27
24
  "There is no connection to the server. Please reload the page or click 'Reconnect' to continue.": "Your server connection is lost. Reload the page to continue.",
@@ -32,7 +29,7 @@ const e = "Your version has been restored successfully.", o = "Restore Image", t
32
29
  "Timer update error": "Your action couldn't be undone right now. You can reload the editor or wait for a while and try again.",
33
30
  "Cannot edit base64 images": "This image type can't be edited.",
34
31
  "Failed to copy URL": "Your Image Link couldn't be copied to clipboard right now. You can wait for a while and try again.",
35
- "Error message from image service": "The image couldnt be uploaded from the URL. Check and update your URL to continue.",
32
+ "Error message from image service": "The image couldn't be loaded from the URL you entered. Check and update your URL to continue.",
36
33
  "Error message from image preload": "The image couldn't be loaded from the URL you entered. Check and update your Image Link to continue.",
37
34
  "An error has occurred. Please report the error code to support: {trace_id} and reload the editor. Also, send a bug report with email logs to the development team.": "Your design couldn't be loaded right now. You can reload the page and try again.",
38
35
  "The number of requests within your session has been exceeded. Please wait.": "Your requests are being processed. You can wait for a while to take new actions.",
@@ -40,17 +37,12 @@ const e = "Your version has been restored successfully.", o = "Restore Image", t
40
37
  "Warning: custom fonts": "Use custom fonts up to 10 to continue.",
41
38
  "Image recovery error": "The image couldn't be restored right now. You can wait for a while and try again.",
42
39
  "Image moved to trash": "The image has been deleted successfully.",
43
- Recover: o,
44
- Stop: t,
45
- "Can`t delete the image": "The image couldn’t be deleted right now. You can wait for a while and try again.",
46
- "Can`t restore the image": "The image couldn’t be restored right now. You can wait for a while and try again.",
47
40
  "Image delete error": "The image couldn't be deleted right now. You can wait for a while and try again.",
48
41
  "The maximum number of users who can simultaneously work with the sheet has been exceeded. Maximum allowed number: {{max_users_per_model}}": "You can’t edit the design right now as the maximum number of users are currently editing it.",
49
- "The monthly limit of Timer basic block is reached. Please change the subscription pricing plan to activate new quotas": "You have reached your monthly limit of Timer Blocks. You can contact your Account Director for more information."
42
+ "The monthly limit of Timer basic block is reached. Please change the subscription pricing plan to activate new quotas": "You've reached your monthly Timer Block limit for your plan. You can upgrade your plan to add new Timer Block items.",
43
+ "The monthly limit of Timer basic block is reached.": "You've reached your monthly Timer Block limit for your plan. You can upgrade your plan to add new Timer Block items."
50
44
  };
51
45
  export {
52
- o as Recover,
53
- t as Stop,
54
- a as default,
46
+ o as default,
55
47
  e as history_revert_to_patch
56
48
  };
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Stripo Editor Translation Overrides
3
+ *
4
+ * Custom translations for Stripo editor UI elements.
5
+ * Translations are stored in JSON files for easier maintenance.
6
+ *
7
+ * Reference: https://email-static.useinsider.com/guido/{version}/assets/i18n/en.json
8
+ * @module config/localePatch
9
+ */
10
+ /**
11
+ * Combined locale patch for Stripo editor initialization.
12
+ * Merges labels, tooltips, and toasters into a single object.
13
+ */
14
+ export declare const localePatch: {
15
+ en: {
16
+ "The image has been deleted.": string;
17
+ "Aim for the drop zone!": string;
18
+ "Image processing": string;
19
+ "Can not get image from an external source.": string;
20
+ "The selected basic color cannot be added to My Palette. Please choose a different one from the color picker.": string;
21
+ "Copied to clipboard": string;
22
+ "The file {fileName} has wrong format {fileFormat}": string;
23
+ "The file {fileName} size exceeds the allowed size {maxFileSize}": string;
24
+ "Image link invalid": string;
25
+ "Image upload failed": string;
26
+ "Image upload error": string;
27
+ "Error message from video service": string;
28
+ "Error message from image processing": string;
29
+ "The AI is fine-tuning your result... Please wait! This may take up to 1 minute.": string;
30
+ "Can not complete AI request. Try again later": string;
31
+ "AI is processing your request": string;
32
+ "Unable to paste text. Limit is 256kB. Please trim it down.": string;
33
+ "Banner src included merge tag": string;
34
+ "Module deletion error": string;
35
+ "Module deletion error with action button": string;
36
+ "Block action error": string;
37
+ history_revert_to_patch: string;
38
+ "There is no connection to the server. Please reload the page or click 'Reconnect' to continue.": string;
39
+ "Reconnecting...": string;
40
+ "Failed to load version history. Contact support for assistance.": string;
41
+ "Connection restored": string;
42
+ "Invalid base64 image format. Please replace the image link.": string;
43
+ "Timer update error": string;
44
+ "Cannot edit base64 images": string;
45
+ "Failed to copy URL": string;
46
+ "Error message from image service": string;
47
+ "Error message from image preload": string;
48
+ "An error has occurred. Please report the error code to support: {trace_id} and reload the editor. Also, send a bug report with email logs to the development team.": string;
49
+ "The number of requests within your session has been exceeded. Please wait.": string;
50
+ "An error has occurred. Please report the error code to support.": string;
51
+ "Warning: custom fonts": string;
52
+ "Image recovery error": string;
53
+ "Image moved to trash": string;
54
+ "Image delete error": string;
55
+ "The maximum number of users who can simultaneously work with the sheet has been exceeded. Maximum allowed number: {{max_users_per_model}}": string;
56
+ "The monthly limit of Timer basic block is reached. Please change the subscription pricing plan to activate new quotas": string;
57
+ "The monthly limit of Timer basic block is reached.": string;
58
+ "Add template/pre-built modules, or structures with containers": string;
59
+ "Allows uploading and editing images": string;
60
+ "Allows working on text styles, adding merge tags and lists": string;
61
+ "Allows designing buttons of any shape, size, and color": string;
62
+ "Meant to visually separate elements with a horizontal line": string;
63
+ "Offers 70+ social media icons and chats of different design styles": string;
64
+ "Helps taking users from emails to necessary pages on your site": string;
65
+ "Allows adding elements with custom code in emails": string;
66
+ "Allows applying filters to images and placing text over them": string;
67
+ "Allows setting thumbnail images & play buttons for videos": string;
68
+ "Adds a countdown to a specific date. Use the timer in emails for promotions, launches, and events": string;
69
+ "The \"AMP Carousel\" block is currently being developed. Switch to the Old version of the Editor to access the full functionality needed to continue working on this email. Please note, that all changes you have already made to this email will be saved and available in the Old version": string;
70
+ "The \"AMP Accordion\" block is currently being development. Switch to the Old version of the Editor to access the full functionality needed to continue working on this email. Please note, that all changes you have already made to this email will be saved and available in the Old version": string;
71
+ "An AMP Form block lets users collect feedback or run surveys directly in an email. It includes input fields and can be added in the Editor, allowing recipients to respond right from their inbox": string;
72
+ "Will be applied to the entire email": string;
73
+ "Background image for the entire email. Some email clients (Windows 10 Mail, Android 4.4, the Gmail app for iOS, and Android for non-Gmail accounts) do not support background images. Thus, we recommend choosing a background color for the entire email similar to the selected image as a fallback.": string;
74
+ "Repetition of the email background image. In Outlook for Windows, the image will be repeated in any case, regardless of whether this option is enabled or not. To bypass the Outlook limitation, you need to create an image in a third-party editor of the needed color and size so that it fits the entire background size, apply the required graphics to it, upload it, and center-align it in the email. The dimensions of such a background image should be at least 1,920 pixels in width, and the height should be equal to the height of the email.": string;
75
+ "The standard width of the email varies between 540-700 pixels. <a href=\"https://stripo.email/blog/email-template-size-width-height/\" target=\"_blank\" aria-label=\"Read more about the message width in our blog.\">Read more here</a>": string;
76
+ "Alignment of the email content area ": string;
77
+ "Your email will automatically adjust for smaller screens by displaying content in a single column. Side-by-side blocks will be stacked vertically": string;
78
+ "Your email will display the desktop version on mobile devices. Mobile-specific settings will be turned off in the Editor": string;
79
+ "Enable the right-to-left (RTL) text direction to build emails easily without coding for recipients using RTL scripts, such as Arabic, Hebrew, Persian, Urdu, etc.": string;
80
+ "Margins around the email message area": string;
81
+ "The background image of the stripe. The image will not be displayed in an Outlook app on Windows email clients. We recommend choosing a stripe background color similar to the selected image as a fallback": string;
82
+ "We automatically calculate the optimal indentation for your text. It depends on font size and line spacing <a href=\"https://en.wikipedia.org/wiki/Leading\" target=\"_blank\">leading<a/>": string;
83
+ "Padding in the \"Text\" block makes space around the added text.": string;
84
+ "If an email client doesn't support the non-standard font, a similar standard font will be used instead.": string;
85
+ "This option ensures the most accurate display of your buttons in MS Outlook email clients by inserting a special VML-code. When this option is activated, the email message size can be increased up to kilobyte for each added button.": string;
86
+ "Outlook for Windows does not have support for a separate button border width setting": string;
87
+ "Outlook for Windows does not have a support for the border radius property. We recommend enabling the Outlook support option.": string;
88
+ "The option \"hover button styles\" (changing colors upon a mouseover) is supported by a limited number of email clients. <a href=\"{link}\" target=\"_blank\">Learn more</a>": string;
89
+ "Button padding that makes the space around the button text": string;
90
+ "The icon inside the button will not show in Outlook 2002, 2007, 2010, 2013, 2016, 2019 on Windows.": string;
91
+ "Margins around the button": string;
92
+ "It only works with CSS styles, so it is not supported by Outlook on Windows. We recommend enabling the Support for Outlook option.": string;
93
+ "Not supported by Outlook on Windows, so we recommend enabling the Support for Outlook option in the General Settings tab.": string;
94
+ "Add content to the email, click it, and choose \u201CSave as a module\u201D. Stripes, Structures, and Containers can be saved as a module.": string;
95
+ "This feature is only supported by Yahoo! Mail, Ukr.net, AOL, Gmail, iCloud Mail, Outlook 2003, Outlook for Mac and macOS Apple Mail": string;
96
+ "The aspect ratio of the added image does not match the others. Please replace it to match the {ratio} format": string;
97
+ "Margins around the image": string;
98
+ "The image will automatically adjust to the width of the screen on mobile devices that support it": string;
99
+ "Images won't be adjusted to the width of the screen on mobile devices, which may lead to poor display of images and content": string;
100
+ "Make the image to fit to the width of a mobile screen. Please note: It only works on devices that have support for media queries.": string;
101
+ "You have the option of displaying a different image when your countdown timer expires.": string;
102
+ "Margins around the timer": string;
103
+ "Not all email clients support the selected link protocol. Check the <a href=\"https://support.stripo.email/en/articles/5332466-what-are-link-protocols-compatible-with-emails\" target=\"_blank\">compatibility guide</a> to learn more about supported clients.": string;
104
+ "This forces the accordion to only allow one expanded section at any given time. Expanding one section will cause any other open sections to close.": string;
105
+ "Outlook for Windows does not have support for dashed and dotted borders": string;
106
+ "Internal padding creates space around containers and blocks": string;
107
+ "Margins around the separator line": string;
108
+ "Use your own title and alternative text to each icon": string;
109
+ "Margins around social network icons": string;
110
+ "Makes the menu fit to the container width": string;
111
+ "Margins around elements formed by custom code": string;
112
+ "Margins around the banner": string;
113
+ "Creates an anchor for this element. Anchor links in emails are designed to make navigation easier. They help take readers to specific places in the email without the need to scroll. <a href=\"https://support.stripo.email/en/articles/3174098-how-to-apply-anchor-hyperlinks\" target=\"_blank\">Learn more</a> about how it works and how to create one with Stripo.": string;
114
+ "Include the element in the necessary version of the email, or in both. <a target=\"_blank\" href=\"https://stripo.email/blog/how-to-build-amp-emails-with-stripo/\">Learn more about \u26A1 HTML (AMP HTML).</a>": string;
115
+ "The element will be included in both MIME versions of the email: classic HTML and AMP HTML": string;
116
+ "The element will be included only in the HTML MIME version of the email message. The item will be hidden in the AMP HTML version": string;
117
+ "The element will be included only in the AMP HTML MIME version of the email message. The item will be hidden in the HTML version": string;
118
+ "This element will not be hidden in email clients which do not support media queries.": string;
119
+ "The element will be hidden on Yahoo mobile App, as well as in mobile email client which do not support media queries.": string;
120
+ "The element already hidden on Desktop. Activating this option you turning off hidden state for Desktop.": string;
121
+ "The element already hidden on Mobile. Activating this option you turning off hidden state for Mobile.": string;
122
+ "An anchor link should not exceed more than 150 characters": string;
123
+ "An alternate text should not exceed more than 255 characters": string;
124
+ "A HEX color value should not exceed more than 8 symbols": string;
125
+ "A keyword must have at least 2 characters": string;
126
+ "Button label should not exceed more than 255 characters": string;
127
+ "Link Name should not exceed more than 500 characters": string;
128
+ "Menu Item Name should not exceed more than 255 characters": string;
129
+ "It is not possible to upload more than 50 files simultaneously. If possible, please try to complete this over a few iterations.": string;
130
+ "Please enter a valid link": string;
131
+ "The image with the invalid link cannot be saved to the image gallery": string;
132
+ "The data source link is unavailable. Please, make sure there is an access to the data source.": string;
133
+ "The file should not exceed the maximum resolution of {maxImageResolution}px.": string;
134
+ "The option is disabled because was overridden in the Code editor": string;
135
+ "Global Styles & Layout": string;
136
+ "Structures & Modules": string;
137
+ };
138
+ };
@@ -23,10 +23,6 @@ ue-notifications-container .alert-message-wrapper.loader {
23
23
  color: inherit;
24
24
  }
25
25
 
26
- .alert-message-wrapper .alert-message-main {
27
- align-items: center;
28
- }
29
-
30
26
  ue-notifications-container ue-caption .caption {
31
27
  color: var(--guido-color-white) !important;
32
28
  }
@@ -1,4 +1,4 @@
1
- const e = `ue-emoji .emoji-tabs .active-smile-tab {
1
+ const o = `ue-emoji .emoji-tabs .active-smile-tab {
2
2
  border-color: var(--guido-color-primary-500);
3
3
  }
4
4
 
@@ -17,11 +17,7 @@ ue-insert-table .template-cell {
17
17
  border: 1px solid var(--guido-color-gray-300);
18
18
  box-shadow: var(--guido-box-shadow);
19
19
  }
20
-
21
- .ue-popover.dark-tiny {
22
- text-align: left !important;
23
- }
24
20
  `;
25
21
  export {
26
- e as default
22
+ o as default
27
23
  };
@@ -10,7 +10,6 @@ const o = `:host {
10
10
  --guido-color-gray-1: #F0F0F0;
11
11
  --guido-color-gray-0: #F9F9F9;
12
12
  --guido-color-neutral-800: #222938;
13
- --guido-color-neutral-700: #2C3546;
14
13
  --guido-color-neutral-200: #DCDFE6;
15
14
  --guido-color-neutral-100: #EFF2F4;
16
15
  --guido-color-danger-300: #e84342;
@@ -26,7 +25,7 @@ const o = `:host {
26
25
  --guido-color-border-onpage-message-error: var(--guido-color-danger-500);
27
26
  --guido-color-background-toaster-success: #128745;
28
27
  --guido-color-background-toaster-error: var(--guido-color-danger-500);
29
- --guido-color-background-toaster-info: var(--guido-color-neutral-700);
28
+ --guido-color-background-toaster-info: #2C3546;
30
29
  --guido-color-background-toaster-warn: #D37400;
31
30
  }
32
31
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "2.1.0-beta.5c1d75f",
3
+ "version": "2.1.0-beta.5e38fec",
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,7 +0,0 @@
1
- import { en as o } from "./en/index.js";
2
- const c = {
3
- en: o
4
- };
5
- export {
6
- c as localePatch
7
- };
@@ -1 +0,0 @@
1
- export declare const en: Record<string, string>;
@@ -1,16 +0,0 @@
1
- /**
2
- * Stripo Editor Translation Overrides
3
- *
4
- * Custom translations for Stripo editor UI elements.
5
- * Each language has its own folder with categorized JSON files.
6
- *
7
- * Reference: https://email-static.useinsider.com/guido/{version}/assets/i18n/en.json
8
- * @module config/i18n
9
- */
10
- /**
11
- * Combined locale patch for Stripo editor initialization.
12
- * Maps language codes to their translation overrides.
13
- */
14
- export declare const localePatch: {
15
- en: Record<string, string>;
16
- };