best-email-builder 0.20.0 → 0.22.0

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 (43) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/ai-server.js +3 -3
  3. package/dist/ai.js +6 -6
  4. package/dist/builder.js +8 -8
  5. package/dist/{chunk-RZPCNCWF.js → chunk-2XSNS7EW.js} +3 -3
  6. package/dist/{chunk-RZPCNCWF.js.map → chunk-2XSNS7EW.js.map} +1 -1
  7. package/dist/{chunk-ACJQTHMG.js → chunk-3FKHX47M.js} +62 -16
  8. package/dist/chunk-3FKHX47M.js.map +1 -0
  9. package/dist/{chunk-EAE6R7EQ.js → chunk-4SRNGFAV.js} +3 -3
  10. package/dist/{chunk-RCN6FCCK.js → chunk-7ZI7ZOYQ.js} +12 -12
  11. package/dist/chunk-7ZI7ZOYQ.js.map +1 -0
  12. package/dist/{chunk-FJ6IJO3K.js → chunk-C22PQBW4.js} +3 -3
  13. package/dist/{chunk-DLQYMFN7.js → chunk-HE2VAOLR.js} +25 -1
  14. package/dist/chunk-HE2VAOLR.js.map +1 -0
  15. package/dist/{chunk-Q2J547BE.js → chunk-IGC3I4XL.js} +2 -2
  16. package/dist/{chunk-THOQ3RVD.js → chunk-LQ3JCPZ2.js} +120 -4
  17. package/dist/chunk-LQ3JCPZ2.js.map +1 -0
  18. package/dist/{chunk-VLBVJJ4X.js → chunk-OSQ5YGHL.js} +2 -2
  19. package/dist/{chunk-LYGVIQGG.js → chunk-WWP3FQYO.js} +4 -4
  20. package/dist/{chunk-2N6YC6JN.js → chunk-XYXN3UBQ.js} +2 -2
  21. package/dist/index.js +10 -10
  22. package/dist/library.js +7 -5
  23. package/dist/server.js +5 -5
  24. package/dist/styles.css +1 -1
  25. package/dist/types/core/EmailEditor.d.ts +10 -3
  26. package/dist/types/core/constants.d.ts +1 -1
  27. package/dist/types/core/mjmlAttributes.d.ts +22 -0
  28. package/dist/types/engine/NativeAdapter.d.ts +1 -1
  29. package/dist/types/features/preview/PreviewButton.d.ts +11 -8
  30. package/dist/types/library.d.ts +1 -0
  31. package/dist/types/renderer/compileEditorMjml.d.ts +5 -1
  32. package/dist/types/renderer/mobileStyles.d.ts +20 -0
  33. package/package.json +1 -1
  34. package/dist/chunk-ACJQTHMG.js.map +0 -1
  35. package/dist/chunk-DLQYMFN7.js.map +0 -1
  36. package/dist/chunk-RCN6FCCK.js.map +0 -1
  37. package/dist/chunk-THOQ3RVD.js.map +0 -1
  38. /package/dist/{chunk-EAE6R7EQ.js.map → chunk-4SRNGFAV.js.map} +0 -0
  39. /package/dist/{chunk-FJ6IJO3K.js.map → chunk-C22PQBW4.js.map} +0 -0
  40. /package/dist/{chunk-Q2J547BE.js.map → chunk-IGC3I4XL.js.map} +0 -0
  41. /package/dist/{chunk-VLBVJJ4X.js.map → chunk-OSQ5YGHL.js.map} +0 -0
  42. /package/dist/{chunk-LYGVIQGG.js.map → chunk-WWP3FQYO.js.map} +0 -0
  43. /package/dist/{chunk-2N6YC6JN.js.map → chunk-XYXN3UBQ.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  validateMjml
3
- } from "./chunk-VLBVJJ4X.js";
3
+ } from "./chunk-OSQ5YGHL.js";
4
4
  import {
5
5
  DEFAULT_VARIABLES
6
- } from "./chunk-DLQYMFN7.js";
6
+ } from "./chunk-HE2VAOLR.js";
7
7
 
8
8
  // src/ai/errors.js
9
9
  var GENERATION_ERRORS = {
@@ -2046,4 +2046,4 @@ export {
2046
2046
  LANGUAGETOOL_PUBLIC_API,
2047
2047
  createLanguageToolProofreader
2048
2048
  };
2049
- //# sourceMappingURL=chunk-EAE6R7EQ.js.map
2049
+ //# sourceMappingURL=chunk-4SRNGFAV.js.map
@@ -15,19 +15,10 @@ import {
15
15
  TabsTrigger,
16
16
  cn,
17
17
  useUi
18
- } from "./chunk-FJ6IJO3K.js";
18
+ } from "./chunk-C22PQBW4.js";
19
19
  import {
20
20
  EMAIL_MOBILE_WIDTH
21
- } from "./chunk-RZPCNCWF.js";
22
-
23
- // src/features/templates/thumbnails.js
24
- var THUMBNAIL_IMAGE = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Crect width='600' height='300' fill='%23dfe6f0'/%3E%3C/svg%3E";
25
- function withThumbnailImages(mjml) {
26
- return String(mjml || "").replace(/<mj-image(?![^>]*\ssrc=)([^>]*)>/g, `<mj-image src="${THUMBNAIL_IMAGE}"$1>`);
27
- }
28
- function withPlaceholderImages(html) {
29
- return String(html || "").replace(/<img(?![^>]*\ssrc=)(\s[^>]*)?>/g, (_m, attrs = "") => `<img src="${THUMBNAIL_IMAGE}"${attrs}>`);
30
- }
21
+ } from "./chunk-2XSNS7EW.js";
31
22
 
32
23
  // src/features/preview/PreviewButton.jsx
33
24
  import { useMemo, useState } from "react";
@@ -221,6 +212,15 @@ function PreviewButton({ context }) {
221
212
  ] });
222
213
  }
223
214
 
215
+ // src/features/templates/thumbnails.js
216
+ var THUMBNAIL_IMAGE = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Crect width='600' height='300' fill='%23dfe6f0'/%3E%3C/svg%3E";
217
+ function withThumbnailImages(mjml) {
218
+ return String(mjml || "").replace(/<mj-image(?![^>]*\ssrc=)([^>]*)>/g, `<mj-image src="${THUMBNAIL_IMAGE}"$1>`);
219
+ }
220
+ function withPlaceholderImages(html) {
221
+ return String(html || "").replace(/<img(?![^>]*\ssrc=)(\s[^>]*)?>/g, (_m, attrs = "") => `<img src="${THUMBNAIL_IMAGE}"${attrs}>`);
222
+ }
223
+
224
224
  // src/ui/primitives/searchShortcut.jsx
225
225
  import { useEffect } from "react";
226
226
  import { jsx as jsx2 } from "react/jsx-runtime";
@@ -291,4 +291,4 @@ export {
291
291
  SearchKeyHint,
292
292
  useLayoutWidth
293
293
  };
294
- //# sourceMappingURL=chunk-RCN6FCCK.js.map
294
+ //# sourceMappingURL=chunk-7ZI7ZOYQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/features/preview/PreviewButton.jsx","../src/core/scrollbars.js","../src/features/templates/thumbnails.js","../src/ui/primitives/searchShortcut.jsx","../src/ui/useLayoutWidth.js"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { AlertTriangle, CheckCircle2, Eye, Info, Loader2, Monitor, Moon, RefreshCw, Smartphone, Sun } from 'lucide-react';\nimport { EMAIL_MOBILE_WIDTH } from '../../core/constants.js';\nimport { FRAME_SCROLLBAR_CSS } from '../../core/scrollbars.js';\nimport { useUi } from '../../ui/context.jsx';\nimport { Button } from '../../ui/primitives/button.jsx';\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../../ui/primitives/overlays.jsx';\nimport { SectionLabel, Tabs, TabsList, TabsTrigger } from '../../ui/primitives/misc.jsx';\nimport { cn } from '../../ui/primitives/cn.js';\nimport { DARK_PAGE, simulateDarkMode } from './darkMode.js';\n\n/**\n * PREVIEW of the FINAL email — rendered by the server, as it will be stored.\n *\n * The canvas already compiles in the browser; the preview goes through the\n * server compilation (the only one that counts), with sample values for the\n * variables, and lists the quality checks (unsubscribe link, alt texts, links,\n * Gmail clipping size) and the MJML warnings.\n *\n * The HTML is shown in an iframe with an EMPTY sandbox: no script, form,\n * navigation, nor same origin. An email is a complete HTML document: injected\n * into the page it would inherit the application's styles and lie.\n *\n * Sun / moon: the email in light mode, or as the apps that repaint emails in\n * dark mode show it (see `darkMode.js`).\n */\n\nconst LEVEL_ICON = { warning: AlertTriangle, info: Info };\n\nexport function QualityList({ quality = [], warnings = [] }) {\n const { t } = useUi();\n if (!quality.length && !warnings.length) {\n return (\n <p className=\"eb:flex eb:items-center eb:gap-1.5 eb:text-[12px] eb:text-foreground-lighter\">\n <CheckCircle2 className=\"eb:size-3.5 eb:text-success\" aria-hidden=\"true\" />\n {t('Nothing to fix.')}\n </p>\n );\n }\n return (\n <ul className=\"eb:space-y-1.5\" aria-label={t('Points to check')}>\n {quality.map((issue) => {\n const Icon = LEVEL_ICON[issue.level] || Info;\n return (\n <li key={issue.code} className=\"eb:flex eb:items-start eb:gap-1.5 eb:text-[12px] eb:text-foreground\">\n <Icon\n className={cn(\n 'eb:mt-0.5 eb:size-3.5 eb:shrink-0',\n issue.level === 'warning' ? 'eb:text-warning' : 'eb:text-foreground-muted'\n )}\n aria-hidden=\"true\"\n />\n {issue.message}\n </li>\n );\n })}\n {warnings.slice(0, 5).map((w, i) => (\n <li key={`mjml-${i}`} className=\"eb:flex eb:items-start eb:gap-1.5 eb:text-[12px] eb:text-foreground-lighter\">\n <Info className=\"eb:mt-0.5 eb:size-3.5 eb:shrink-0 eb:text-foreground-muted\" aria-hidden=\"true\" />\n MJML: {w.message}\n </li>\n ))}\n </ul>\n );\n}\n\n/** The builder's thin scrollbars inside the frame (see `core/scrollbars.js`). */\nconst PREVIEW_SCROLLBAR_CSS = `<style data-preview-scrollbar>${FRAME_SCROLLBAR_CSS}</style>`;\n\nconst withPreviewScrollbars = (html) =>\n !html ? '' : /<\\/head>/i.test(html) ? html.replace(/<\\/head>/i, `${PREVIEW_SCROLLBAR_CSS}</head>`) : PREVIEW_SCROLLBAR_CSS + html;\n\n/**\n * Sandboxed preview frame, desktop or mobile width, light or dark.\n * @param {{html: string, loading?: boolean, error?: string|null, device?: 'desktop'|'mobile', onDeviceChange?: (device: 'desktop'|'mobile') => void, onRefresh?: () => void, hint?: boolean}} props\n */\nexport function EmailPreview({ html, loading = false, error = null, device = 'desktop', onDeviceChange, onRefresh, hint = true }) {\n const { t } = useUi();\n const isMobile = device === 'mobile';\n const [scheme, setScheme] = useState('light');\n const dark = scheme === 'dark';\n // `srcDoc`, not a blob URL: nothing to revoke when the HTML changes.\n const srcDoc = useMemo(() => withPreviewScrollbars(dark ? simulateDarkMode(html) : html), [html, dark]);\n\n return (\n <div className=\"eb:flex eb:h-full eb:min-h-0 eb:flex-col\">\n <div className=\"eb:mb-2 eb:flex eb:shrink-0 eb:flex-wrap eb:items-center eb:gap-2\">\n {/* The same switch as the editor's toolbar. */}\n <Tabs value={device} onValueChange={(value) => onDeviceChange?.(value)}>\n <TabsList aria-label={t('Device')}>\n <TabsTrigger value=\"desktop\">\n <Monitor />\n {t('Desktop')}\n </TabsTrigger>\n <TabsTrigger value=\"mobile\">\n <Smartphone />\n {t('Mobile')}\n </TabsTrigger>\n </TabsList>\n </Tabs>\n <Tabs value={scheme} onValueChange={setScheme}>\n <TabsList aria-label={t('Color scheme')}>\n <TabsTrigger value=\"light\" aria-label={t('Light mode')} title={t('Light mode')}>\n <Sun />\n </TabsTrigger>\n <TabsTrigger value=\"dark\" aria-label={t('Dark mode')} title={t('Dark mode')}>\n <Moon />\n </TabsTrigger>\n </TabsList>\n </Tabs>\n <span className=\"eb:flex-1\" />\n {onRefresh && (\n <Button variant=\"outline\" size=\"sm-compact\" onClick={onRefresh} disabled={loading}>\n {loading ? <Loader2 className=\"eb:animate-spin\" /> : <RefreshCw />}\n {t('Refresh')}\n </Button>\n )}\n </div>\n\n {/* The frame fills the box and scrolls the email itself: one scrollbar, not two. */}\n <div className=\"eb:flex eb:min-h-0 eb:flex-1 eb:flex-col eb:overflow-hidden eb:rounded-lg2 eb:border eb:border-border eb:bg-surface-75 eb:p-3\">\n {error ? (\n <div className=\"eb:flex eb:h-full eb:items-center eb:justify-center eb:p-6 eb:text-center eb:text-[13px] eb:text-destructive\">{error}</div>\n ) : !srcDoc ? (\n <div className=\"eb:flex eb:h-full eb:items-center eb:justify-center eb:p-6 eb:text-center eb:text-[13px] eb:text-foreground-lighter\">\n {loading ? t('Rendering…') : t('Nothing to show yet.')}\n </div>\n ) : (\n // Narrows and widens like the editor's canvas (width .35s ease).\n <div\n className={cn(\n 'eb:mx-auto eb:flex eb:min-h-0 eb:max-w-full eb:flex-1 eb:transition-[width,box-shadow] eb:duration-[350ms] eb:ease-in-out eb:motion-reduce:transition-none',\n isMobile && 'eb:shadow-sm'\n )}\n style={{ width: isMobile ? EMAIL_MOBILE_WIDTH : '100%', background: dark ? DARK_PAGE : '#ffffff' }}\n data-device={device}\n data-scheme={scheme}\n >\n <iframe\n sandbox=\"\"\n srcDoc={srcDoc}\n title={t('Email preview')}\n className=\"eb:block eb:min-h-0 eb:w-full eb:flex-1 eb:border-0\"\n style={{ background: dark ? DARK_PAGE : '#ffffff' }}\n />\n </div>\n )}\n </div>\n\n {dark ? (\n <p className=\"eb:mt-2 eb:shrink-0 eb:text-[11px] eb:leading-relaxed eb:text-foreground-lighter\" data-testid=\"eb-dark-hint\">\n {t('Dark mode as Gmail and Outlook apps show it: light backgrounds turn dark, dark text turns light, images stay as they are.')}\n </p>\n ) : (\n hint && (\n <p className=\"eb:mt-2 eb:shrink-0 eb:text-[11px] eb:leading-relaxed eb:text-foreground-lighter\">\n {t('Indicative preview — check it with “Send test”.')}\n </p>\n )\n )}\n </div>\n );\n}\n\nexport default function PreviewButton({ context }) {\n const { editor, ready, meta, storage } = context;\n const { t } = useUi();\n const [open, setOpen] = useState(false);\n const [device, setDevice] = useState('desktop');\n const [state, setState] = useState({ loading: false, html: '', subject: null, preheader: null, warnings: [], quality: [], error: null });\n\n const refresh = async () => {\n setState((s) => ({ ...s, loading: true, error: null }));\n try {\n const data = await storage.render({ mjml: editor.exportMjml(), subject: meta.subject, preheader: meta.preheader });\n setState({\n loading: false,\n html: data.html,\n // Subject and preview text with their variables filled, when the backend returns them.\n subject: data.subject ?? null,\n preheader: data.preheader ?? null,\n warnings: data.warnings || [],\n quality: data.quality || [],\n error: null,\n });\n } catch (error) {\n setState({ loading: false, html: '', subject: null, preheader: null, warnings: [], quality: [], error: error.message });\n }\n };\n\n return (\n <>\n <Button\n variant=\"outline\"\n size=\"sm-compact\"\n disabled={!ready}\n onClick={() => {\n setOpen(true);\n refresh();\n }}\n >\n <Eye />\n {t('Preview')}\n </Button>\n <Dialog open={open} onOpenChange={setOpen}>\n <DialogContent className=\"eb:flex eb:h-[85vh] eb:max-h-[85vh] eb:flex-col eb:gap-4 eb:sm:max-w-[67.2rem]\">\n <DialogHeader>\n <div className=\"eb:flex eb:items-center eb:gap-3\">\n <span className=\"eb:flex eb:size-10 eb:shrink-0 eb:items-center eb:justify-center eb:rounded-lg2 eb:bg-primary/10 eb:text-primary\">\n <Eye className=\"eb:size-5\" />\n </span>\n <div>\n <DialogTitle className=\"eb:text-base eb:font-normal\">{t('Email preview')}</DialogTitle>\n <DialogDescription className=\"eb:text-[13px]\">{t('Final rendering, variables filled with samples.')}</DialogDescription>\n </div>\n </div>\n </DialogHeader>\n {/* Narrow: the email takes the height left by the points to check. */}\n <div className=\"eb:grid eb:min-h-0 eb:flex-1 eb:grid-cols-1 eb:grid-rows-[minmax(0,1fr)_auto] eb:gap-4 eb:md:grid-cols-[minmax(0,1fr)_260px] eb:md:grid-rows-1\">\n <EmailPreview\n html={state.html}\n loading={state.loading}\n error={state.error}\n device={device}\n onDeviceChange={setDevice}\n onRefresh={refresh}\n // The reminder points to \"Send test\": only when it exists.\n hint={typeof storage.sendTest === 'function'}\n />\n <aside className=\"eb:max-h-48 eb:min-h-0 eb:space-y-5 eb:overflow-y-auto eb:md:max-h-none\" aria-busy={state.loading}>\n <section className=\"eb:space-y-2\">\n <SectionLabel>{t('Inbox')}</SectionLabel>\n <div className=\"eb:rounded-lg2 eb:border eb:border-border eb:bg-surface-75 eb:px-3 eb:py-2.5\">\n <p className=\"eb:text-[13px] eb:font-medium eb:text-foreground\">{(state.subject ?? meta.subject) || t('No subject')}</p>\n <p className=\"eb:text-[12px] eb:text-foreground-muted\">{(state.preheader ?? meta.preheader) || t('No preview text')}</p>\n </div>\n </section>\n <section className=\"eb:space-y-2\">\n <SectionLabel>{t('To check')}</SectionLabel>\n {!state.loading && !state.error && <QualityList quality={state.quality} warnings={state.warnings} />}\n </section>\n </aside>\n </div>\n </DialogContent>\n </Dialog>\n </>\n );\n}\n","// @ts-check\n/**\n * Scrollbars inside the builder's frames (the canvas, the preview),\n * the same as in the rest of the builder: a 5.6 px gutter, a 2.8 px thumb,\n * no arrows, shown only while the pointer is over the scrolling block. A frame is a\n * document of its own, so `styles.css` does not reach it — the same rules\n * are injected into it. Added to the canvas and the preview only, never to\n * the HTML that is saved or sent.\n *\n * Chromium ≥ 121 drops `::-webkit-scrollbar` (and brings back the arrows)\n * as soon as `scrollbar-width` or `scrollbar-color` is set, so those two are\n * kept for Firefox alone.\n */\nexport const FRAME_SCROLLBAR_CSS = `\n::-webkit-scrollbar{width:5.6px;height:5.6px;background:transparent}\n::-webkit-scrollbar-button{display:none;width:0;height:0}\n::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece,::-webkit-scrollbar-corner{background:transparent;border:0;box-shadow:none}\n::-webkit-scrollbar-thumb{background-color:rgba(156,163,175,.45);border:1.4px solid transparent;background-clip:content-box;border-radius:9999px;min-height:2rem;min-width:2rem}\n::-webkit-scrollbar-thumb:hover{background-color:rgba(107,114,128,.7)}\n@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.45) transparent}}\n@media (hover:hover) and (pointer:fine){\n::-webkit-scrollbar-thumb{background-color:transparent}\n*:hover::-webkit-scrollbar-thumb{background-color:rgba(156,163,175,.45)}\n*:hover::-webkit-scrollbar-thumb:hover{background-color:rgba(107,114,128,.7)}\n@supports not selector(::-webkit-scrollbar){*{scrollbar-color:transparent transparent}*:hover{scrollbar-color:rgba(156,163,175,.45) transparent}}\n}`;\n","// @ts-check\n/**\n * THUMBNAILS — a grey frame in place of an image not chosen yet, so a\n * thumbnail or a preview never shows a broken image icon. Apart from the\n * gallery: the library previews templates without loading the bases.\n */\n\n/** Grey frame drawn in place of an image not chosen yet, in thumbnails only. */\nconst THUMBNAIL_IMAGE =\n \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E\" +\n \"%3Crect width='600' height='300' fill='%23dfe6f0'/%3E%3C/svg%3E\";\n\n/**\n * MJML for a thumbnail: empty images get a grey frame instead of a broken\n * image icon. Never saved: the template itself keeps its empty images.\n * @param {string} mjml\n */\nexport function withThumbnailImages(mjml) {\n return String(mjml || '').replace(/<mj-image(?![^>]*\\ssrc=)([^>]*)>/g, `<mj-image src=\"${THUMBNAIL_IMAGE}\"$1>`);\n}\n\n/**\n * Compiled HTML for a thumbnail or a preview: an image not chosen yet (an\n * `<img>` with no `src`) gets the same grey frame. For HTML that went through\n * the server's validator, which rightly refuses `data:` images in MJML.\n * @param {string} html\n */\nexport function withPlaceholderImages(html) {\n return String(html || '').replace(/<img(?![^>]*\\ssrc=)(\\s[^>]*)?>/g, (_m, attrs = '') => `<img src=\"${THUMBNAIL_IMAGE}\"${attrs}>`);\n}\n","import { useEffect } from 'react';\nimport { cn } from './cn.js';\n\n/** ⌘ on Apple keyboards, Ctrl elsewhere. */\nconst apple = () => typeof navigator !== 'undefined' && /Mac|iPhone|iPad|iPod/.test(navigator.platform || navigator.userAgent || '');\n\n/** What a search field announces to assistive technologies. */\nexport const SEARCH_KEYS = 'Control+K Meta+K';\n\n/**\n * Ctrl+K (⌘K) puts the cursor in this search field, its words selected, for\n * as long as the field is on screen — the library's search, the one of the\n * variables next to the subject.\n * @param {{current: HTMLInputElement|null}} inputRef\n */\nexport function useSearchShortcut(inputRef) {\n useEffect(() => {\n const onKey = (/** @type {KeyboardEvent} */ event) => {\n const input = inputRef.current;\n if (!(event.ctrlKey || event.metaKey) || event.altKey || event.shiftKey || event.key.toLowerCase() !== 'k') return;\n if (!input?.isConnected || input.disabled) return;\n event.preventDefault();\n input.focus();\n input.select();\n };\n window.addEventListener('keydown', onKey);\n return () => window.removeEventListener('keydown', onKey);\n }, [inputRef]);\n}\n\n/** The key hint at the end of a search field: Ctrl K (⌘K), or `children` instead. */\nexport function SearchKeyHint({ className, children = null }) {\n return (\n <kbd\n className={cn(\n 'eb:pointer-events-none eb:inline-flex eb:h-5 eb:items-center eb:rounded-md eb:border eb:border-border eb:bg-surface-100 eb:px-1.5 eb:font-mono eb:text-[10px] eb:text-foreground-muted',\n className\n )}\n aria-hidden=\"true\"\n data-testid=\"eb-search-keys\"\n >\n {children ?? (apple() ? '⌘K' : 'Ctrl K')}\n </kbd>\n );\n}\n","'use client';\n\nimport { useEffect, useState } from 'react';\n\n/**\n * Layout of the builder from the width of ITS OWN box, not of the window: the\n * builder is embedded in host pages (a side panel, a modal, a phone), and its\n * room is what counts.\n *\n * wide ≥ 1180 px blocks, canvas and properties side by side;\n * medium ≥ 760 px blocks beside the canvas, properties in a drawer;\n * narrow < 760 px the canvas alone, blocks and properties in drawers.\n *\n * Before the first measure (server rendering, first paint) the layout is\n * `wide`, the desktop one.\n */\n\nexport const LAYOUT_BREAKPOINTS = { wide: 1180, medium: 760 };\n\n/** @param {number} width @returns {'wide'|'medium'|'narrow'} */\nexport function layoutFor(width) {\n if (width >= LAYOUT_BREAKPOINTS.wide) return 'wide';\n if (width >= LAYOUT_BREAKPOINTS.medium) return 'medium';\n return 'narrow';\n}\n\n/** @param {{current: HTMLElement|null}} ref */\nexport function useLayoutWidth(ref) {\n const [layout, setLayout] = useState(/** @type {'wide'|'medium'|'narrow'} */ ('wide'));\n useEffect(() => {\n const el = ref.current;\n if (!el || typeof ResizeObserver === 'undefined') return undefined;\n const measure = () => setLayout(layoutFor(el.getBoundingClientRect().width));\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(el);\n return () => observer.disconnect();\n }, [ref]);\n return layout;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS,gBAAgB;AAClC,SAAS,eAAe,cAAc,KAAK,MAAM,SAAS,SAAS,MAAM,WAAW,YAAY,WAAW;;;ACYpG,IAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ADoB7B,SA8JF,UA7JI,KADF;AANN,IAAM,aAAa,EAAE,SAAS,eAAe,MAAM,KAAK;AAEjD,SAAS,YAAY,EAAE,UAAU,CAAC,GAAG,W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AACxC,WAAO,MAAM,OAAO,oBAAoB,WAAW,KAAK;AAAA,EAC1D,GAAG,CAAC,QAAQ,CAAC;AACf;AAGO,SAAS,cAAc,EAAE,WAAW,WAAW,KAAK,GAAG;AAC5D,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACA,eAAY;AAAA,MACZ,eAAY;AAAA,MAEX,uBAAa,MAAM,IAAI,YAAO;AAAA;AAAA,EACjC;AAEJ;;;AC1CA,SAAS,aAAAC,YAAW,YAAAC,iBAAgB;AAe7B,IAAM,qBAAqB,EAAE,MAAM,MAAM,QAAQ,IAAI;AAGrD,SAAS,UAAU,OAAO;AAC/B,MAAI,SAAS,mBAAmB,KAAM,QAAO;AAC7C,MAAI,SAAS,mBAAmB,OAAQ,QAAO;AAC/C,SAAO;AACT;AAGO,SAAS,eAAe,KAAK;AAClC,QAAM,CAAC,QAAQ,SAAS,IAAIA;AAAA;AAAA,IAAkD;AAAA,EAAO;AACrF,EAAAD,WAAU,MAAM;AACd,UAAM,KAAK,IAAI;AACf,QAAI,CAAC,MAAM,OAAO,mBAAmB,YAAa,QAAO;AACzD,UAAM,UAAU,MAAM,UAAU,UAAU,GAAG,sBAAsB,EAAE,KAAK,CAAC;AAC3E,YAAQ;AACR,UAAM,WAAW,IAAI,eAAe,OAAO;AAC3C,aAAS,QAAQ,EAAE;AACnB,WAAO,MAAM,SAAS,WAAW;AAAA,EACnC,GAAG,CAAC,GAAG,CAAC;AACR,SAAO;AACT;","names":["jsx","useEffect","useState"]}
@@ -7,7 +7,7 @@ import {
7
7
  readDocument,
8
8
  sortTags,
9
9
  validateTag
10
- } from "./chunk-RZPCNCWF.js";
10
+ } from "./chunk-2XSNS7EW.js";
11
11
  import {
12
12
  DEFAULT_ASSETS_PATH,
13
13
  DEFAULT_VARIABLES,
@@ -16,7 +16,7 @@ import {
16
16
  translatorFor,
17
17
  validateCustomVariable,
18
18
  validateVariableEdit
19
- } from "./chunk-DLQYMFN7.js";
19
+ } from "./chunk-HE2VAOLR.js";
20
20
 
21
21
  // src/ui/context.jsx
22
22
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
@@ -1012,4 +1012,4 @@ export {
1012
1012
  createHttpStorage,
1013
1013
  createMemoryStorage
1014
1014
  };
1015
- //# sourceMappingURL=chunk-FJ6IJO3K.js.map
1015
+ //# sourceMappingURL=chunk-C22PQBW4.js.map
@@ -315,6 +315,10 @@ var de = {
315
315
  "Insecure http link ({count})": "Unsichere http-Links: {count}",
316
316
  "Insert a variable in the preview text": "Variable in den Vorschautext einf\xFCgen",
317
317
  "Insert a variable in the link": "Variable in den Link einf\xFCgen",
318
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "Mobilansicht: Die hier ge\xE4nderten Stile gelten nur f\xFCr Telefone. Links und Bilder sind auf allen Bildschirmen gleich.",
319
+ "Different on phones": "Auf dem Telefon anders",
320
+ "Back to the desktop value: {name}": "Zur\xFCck zum Desktop-Wert: {name}",
321
+ "Same as desktop": "Wie auf dem Desktop",
318
322
  "Column width": "Spaltenbreite",
319
323
  "Drag to change the widths of the columns": "Ziehen, um die Breite der Spalten zu \xE4ndern",
320
324
  "Insert a variable in the subject": "Variable in den Betreff einf\xFCgen",
@@ -930,6 +934,10 @@ var es = {
930
934
  "Insecure http link ({count})": "Enlace http no seguro ({count})",
931
935
  "Insert a variable in the preview text": "Insertar una variable en el texto de vista previa",
932
936
  "Insert a variable in the link": "Insertar una variable en el enlace",
937
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "Vista m\xF3vil: los estilos que cambies aqu\xED solo se aplican a los tel\xE9fonos. Los enlaces y las im\xE1genes son los mismos en todas las pantallas.",
938
+ "Different on phones": "Distinto en el tel\xE9fono",
939
+ "Back to the desktop value: {name}": "Volver al valor de escritorio: {name}",
940
+ "Same as desktop": "Igual que en escritorio",
933
941
  "Column width": "Ancho de columna",
934
942
  "Drag to change the widths of the columns": "Arrastra para cambiar el ancho de las columnas",
935
943
  "Insert a variable in the subject": "Insertar una variable en el asunto",
@@ -1545,6 +1553,10 @@ var fr = {
1545
1553
  "Insecure http link ({count})": "Lien non s\xE9curis\xE9 en http ({count})",
1546
1554
  "Insert a variable in the preview text": "Ins\xE9rer une variable dans le texte d\u2019aper\xE7u",
1547
1555
  "Insert a variable in the link": "Ins\xE9rer une variable dans le lien",
1556
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "Vue mobile : les styles modifi\xE9s ici s'appliquent aux t\xE9l\xE9phones seulement. Les liens et les images sont les m\xEAmes sur tous les \xE9crans.",
1557
+ "Different on phones": "Diff\xE9rent sur t\xE9l\xE9phone",
1558
+ "Back to the desktop value: {name}": "Revenir \xE0 la valeur du bureau : {name}",
1559
+ "Same as desktop": "Comme sur ordinateur",
1548
1560
  "Column width": "Largeur de colonne",
1549
1561
  "Drag to change the widths of the columns": "Faites glisser pour changer la largeur des colonnes",
1550
1562
  "Insert a variable in the subject": "Ins\xE9rer une variable dans l\u2019objet",
@@ -2160,6 +2172,10 @@ var pt = {
2160
2172
  "Insecure http link ({count})": "Links http n\xE3o seguros: {count}",
2161
2173
  "Insert a variable in the preview text": "Inserir uma vari\xE1vel no texto de pr\xE9-visualiza\xE7\xE3o",
2162
2174
  "Insert a variable in the link": "Inserir uma vari\xE1vel no link",
2175
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "Vista m\xF3vel: os estilos que alterar aqui aplicam-se apenas aos telem\xF3veis. As liga\xE7\xF5es e as imagens s\xE3o as mesmas em todos os ecr\xE3s.",
2176
+ "Different on phones": "Diferente no telem\xF3vel",
2177
+ "Back to the desktop value: {name}": "Voltar ao valor do computador: {name}",
2178
+ "Same as desktop": "Igual ao computador",
2163
2179
  "Column width": "Largura da coluna",
2164
2180
  "Drag to change the widths of the columns": "Arraste para alterar a largura das colunas",
2165
2181
  "Insert a variable in the subject": "Inserir uma vari\xE1vel no assunto",
@@ -2775,6 +2791,10 @@ var ru = {
2775
2791
  "Insecure http link ({count})": "\u041D\u0435\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438 http: {count}",
2776
2792
  "Insert a variable in the preview text": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E \u0432 \u043F\u0440\u0435\u0445\u0435\u0434\u0435\u0440",
2777
2793
  "Insert a variable in the link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E \u0432 \u0441\u0441\u044B\u043B\u043A\u0443",
2794
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0434: \u0441\u0442\u0438\u043B\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u044B \u043C\u0435\u043D\u044F\u0435\u0442\u0435 \u0437\u0434\u0435\u0441\u044C, \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044E\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430\u0445. \u0421\u0441\u044B\u043B\u043A\u0438 \u0438 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u044B \u043D\u0430 \u0432\u0441\u0435\u0445 \u044D\u043A\u0440\u0430\u043D\u0430\u0445.",
2795
+ "Different on phones": "\u0418\u043D\u0430\u0447\u0435 \u043D\u0430 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0435",
2796
+ "Back to the desktop value: {name}": "\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u043C\u043F\u044C\u044E\u0442\u0435\u0440\u0430: {name}",
2797
+ "Same as desktop": "\u041A\u0430\u043A \u043D\u0430 \u043A\u043E\u043C\u043F\u044C\u044E\u0442\u0435\u0440\u0435",
2778
2798
  "Column width": "\u0428\u0438\u0440\u0438\u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u043A\u0438",
2779
2799
  "Drag to change the widths of the columns": "\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0448\u0438\u0440\u0438\u043D\u0443 \u043A\u043E\u043B\u043E\u043D\u043E\u043A",
2780
2800
  "Insert a variable in the subject": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E \u0432 \u0442\u0435\u043C\u0443",
@@ -3390,6 +3410,10 @@ var zh = {
3390
3410
  "Insecure http link ({count})": "\u4E0D\u5B89\u5168\u7684 http \u94FE\u63A5\uFF08{count}\uFF09",
3391
3411
  "Insert a variable in the preview text": "\u5728\u9884\u89C8\u6587\u672C\u4E2D\u63D2\u5165\u53D8\u91CF",
3392
3412
  "Insert a variable in the link": "\u5728\u94FE\u63A5\u4E2D\u63D2\u5165\u53D8\u91CF",
3413
+ "Mobile view: the styles you change here apply to phones only. Links and pictures are the same on every screen.": "\u79FB\u52A8\u89C6\u56FE\uFF1A\u6B64\u5904\u66F4\u6539\u7684\u6837\u5F0F\u4EC5\u9002\u7528\u4E8E\u624B\u673A\u3002\u94FE\u63A5\u548C\u56FE\u7247\u5728\u6240\u6709\u5C4F\u5E55\u4E0A\u90FD\u76F8\u540C\u3002",
3414
+ "Different on phones": "\u624B\u673A\u4E0A\u4E0D\u540C",
3415
+ "Back to the desktop value: {name}": "\u6062\u590D\u4E3A\u684C\u9762\u503C\uFF1A{name}",
3416
+ "Same as desktop": "\u4E0E\u684C\u9762\u76F8\u540C",
3393
3417
  "Column width": "\u5217\u5BBD",
3394
3418
  "Drag to change the widths of the columns": "\u62D6\u52A8\u4EE5\u66F4\u6539\u5217\u5BBD",
3395
3419
  "Insert a variable in the subject": "\u5728\u4E3B\u9898\u4E2D\u63D2\u5165\u53D8\u91CF",
@@ -3875,4 +3899,4 @@ export {
3875
3899
  absoluteAssetUrls,
3876
3900
  applyServiceLinks
3877
3901
  };
3878
- //# sourceMappingURL=chunk-DLQYMFN7.js.map
3902
+ //# sourceMappingURL=chunk-HE2VAOLR.js.map