@maily-to/core 0.2.1 → 0.2.3
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/blocks/{index.js → index.cjs} +2 -2
- package/dist/blocks/index.cjs.map +1 -0
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/{index.js → index.cjs} +637 -304
- package/dist/extensions/index.cjs.map +1 -0
- package/dist/extensions/{index.d.mts → index.d.cts} +32 -1
- package/dist/extensions/index.d.ts +32 -1
- package/dist/extensions/index.mjs +616 -282
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/{index.js → index.cjs} +649 -425
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2351 -0
- package/dist/index.css.map +1 -0
- package/dist/index.mjs +600 -376
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -6
- package/readme.md +2 -0
- package/dist/blocks/index.js.map +0 -1
- package/dist/extensions/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- /package/dist/blocks/{index.d.mts → index.d.cts} +0 -0
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -51,40 +51,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
// #style-inject:#style-inject
|
|
55
|
-
function styleInject(css, { insertAt } = {}) {
|
|
56
|
-
if (!css || typeof document === "undefined") return;
|
|
57
|
-
const head = document.head || document.getElementsByTagName("head")[0];
|
|
58
|
-
const style = document.createElement("style");
|
|
59
|
-
style.type = "text/css";
|
|
60
|
-
if (insertAt === "top") {
|
|
61
|
-
if (head.firstChild) {
|
|
62
|
-
head.insertBefore(style, head.firstChild);
|
|
63
|
-
} else {
|
|
64
|
-
head.appendChild(style);
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
head.appendChild(style);
|
|
68
|
-
}
|
|
69
|
-
if (style.styleSheet) {
|
|
70
|
-
style.styleSheet.cssText = css;
|
|
71
|
-
} else {
|
|
72
|
-
style.appendChild(document.createTextNode(css));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// src/styles/index.css
|
|
77
|
-
styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n --variable-icon-size: 12px;\n --variable-icon-gap: 4px;\n --color-token-tag: #00c951;\n --color-meta-string: #2b7fff;\n --color-attribute: #ad46ff;\n --color-tag: #313233;\n --color-meta: #313233d6;\n}\n.mly-editor .mly-prose p:where([class~=text-sm]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-size: 16px;\n}\n.mly-editor .mly-prose :where(h1, h2, h3):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 12px;\n}\n.mly-editor .mly-prose :where(h1):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-size: 36px;\n}\n.mly-editor .mly-prose :where(h2):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-size: 30px;\n}\n.mly-editor .mly-prose :where(h3):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-size: 24px;\n}\n.mly-editor .mly-prose p:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-size: 15px;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose :where(h1, h2, h3, hr, table) + p:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-editor .mly-prose :where(ol, ul):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose li:not(:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 8px;\n}\n.mly-editor .mly-prose li > p:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin: 0;\n}\n.mly-editor .mly-prose :where(img, .node-logo):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 32px;\n}\n.mly-editor .mly-prose hr:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-block: 32px;\n}\n.mly-editor .mly-prose .footer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n display: block;\n font-size: 13px;\n margin-bottom: 20px;\n color: rgb(100, 116, 139);\n}\n.mly-editor .mly-prose .spacer + *:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-editor .mly-prose p + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -20px;\n}\n.mly-editor .mly-prose blockquote + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -16px;\n}\n.mly-editor .mly-prose :where(h1, h2, h3) + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -12px;\n}\n.mly-editor .mly-prose :where(ol, ul) + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -20px;\n}\n.mly-editor .mly-prose :where(img, .node-logo) + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -32px;\n}\n.mly-editor .mly-prose :where(.node-button, .node-linkCard, footer) + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -20px;\n}\n.mly-editor .mly-prose :where(.node-button, .node-linkCard):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose .node-image:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n line-height: 0;\n margin-top: 0;\n margin-bottom: 32px;\n outline: none;\n}\n.mly-editor .mly-prose .node-image + .spacer:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: -32px;\n}\n.mly-editor .mly-prose code::before,\n.mly-editor .mly-prose code::after {\n content: none;\n}\n.mly-no-scrollbar::-webkit-scrollbar {\n display: none;\n}\n.mly-no-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.mly-editor .react-colorful__alpha {\n border-radius: 0;\n}\n.mly-editor .react-colorful__saturation,\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n border-radius: 8px;\n}\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n height: 16px;\n}\n.mly-editor .react-colorful__pointer {\n width: 16px;\n height: 16px;\n}\n.mly-editable .ProseMirror-selectednode::after {\n content: "";\n position: absolute;\n inset: -2px;\n pointer-events: none;\n border-radius: 6px;\n background: rgba(35, 131, 226, 0.14);\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0;\n &:focus {\n outline: none;\n }\n p:not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n }\n h1 {\n --variable-icon-size: 28px;\n }\n h2 {\n --variable-icon-size: 24px;\n }\n h3 {\n --variable-icon-size: 20px;\n }\n h1,\n h2,\n h3 {\n --variable-icon-gap: 8px;\n }\n :where(.is-editor-empty:first-child, .is-empty):not(:where([data-type=columns], [data-type=section], ul, li, ol))::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--placeholder-color);\n pointer-events: none;\n height: 0;\n }\n .is-empty:where(.node-htmlCodeBlock):not([data-active-tab=preview])::before,\n .is-editor-empty:first-child:where(.node-htmlCodeBlock):not([data-active-tab=preview])::before {\n float: none !important;\n position: absolute;\n left: 9px;\n top: 8px;\n }\n .is-empty:where(.node-htmlCodeBlock):not([data-active-tab=code])::before,\n .is-editor-empty:first-child:where(.node-htmlCodeBlock):not([data-active-tab=code])::before {\n content: "";\n }\n [data-type=columns] .is-empty::before,\n [data-type=section] .is-empty::before {\n --l-threshold: 0.66;\n --diff: calc(var(--l-threshold) - l);\n color: oklch(from var(--bg-color) clamp(0.05, max(min(var(--diff) * infinity, 1), 0), 0.95) c h) !important;\n opacity: 0.6;\n }\n [data-type=columns] {\n display: flex;\n margin: 0;\n padding: 0;\n &.has-focus [data-type=column],\n &:hover [data-type=column] {\n outline: 1.5px solid #e9ecef;\n outline-style: dashed;\n }\n [data-type=column].has-focus {\n outline-style: solid;\n }\n }\n [data-type=column] {\n display: table-cell;\n flex-basis: 0;\n flex-grow: 1;\n overflow: auto;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n [data-type=section] {\n margin: 0;\n padding: 0;\n [data-type=section-cell] {\n padding: 0;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n [data-type=repeat] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n .node-repeat.has-focus [data-repeat-indicator] {\n opacity: 1;\n }\n [data-type=show] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n .mly-image-drop-zone::after {\n content: "";\n position: absolute;\n inset: 0;\n border: 2px dashed #00bcff;\n border-radius: 4px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n .mly-image-drop-zone.mly-drag-over::after {\n opacity: 1;\n }\n *:has(+ .ProseMirror-gapcursor) {\n margin-bottom: 0 !important;\n }\n .ProseMirror-gapcursor {\n &::after {\n border: 1.5px solid gray;\n width: 24px;\n }\n & + * {\n margin-top: 0 !important;\n }\n }\n pre {\n code {\n background: none;\n color: inherit;\n }\n .hljs-comment,\n .hljs-quote {\n color: #616161;\n }\n .hljs-variable,\n .hljs-template-variable,\n .hljs-attribute,\n .hljs-regexp,\n .hljs-link,\n .hljs-selector-id,\n .hljs-selector-class {\n color: var(--color-token-tag);\n }\n .hljs-tag {\n color: var(--color-tag);\n }\n .hljs-name {\n color: var(--color-token-tag);\n }\n .hljs-number,\n .hljs-built_in,\n .hljs-builtin-name,\n .hljs-literal,\n .hljs-type,\n .hljs-params {\n color: var(--color-meta-string);\n }\n .hljs-meta,\n .hljs-keyword {\n color: var(--color-meta);\n }\n .hljs-string,\n .hljs-symbol,\n .hljs-bullet {\n color: var(--color-meta-string);\n }\n .hljs-title,\n .hljs-section {\n color: #faf594;\n }\n .hljs-emphasis {\n font-style: italic;\n }\n .hljs-strong {\n font-weight: 700;\n }\n .hljs-attr {\n color: var(--color-attribute);\n }\n .hljs-selector-tag {\n color: var(--color-meta-string);\n }\n }\n}\n.hide-number-controls {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &[type=number] {\n -moz-appearance: textfield;\n }\n}\n.hide-scrollbars {\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n}\n');
|
|
78
|
-
|
|
79
|
-
// src/styles/preflight.css
|
|
80
|
-
styleInject(':where(.mly-editor),\n:where(.mly-editor) ::before,\n:where(.mly-editor) ::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb;\n}\n:where(.mly-editor) ::before,\n:where(.mly-editor) ::after {\n --mly-tw-content: "";\n}\n:where(.mly-editor) html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n:where(.mly-editor) body {\n margin: 0;\n line-height: inherit;\n}\n:where(.mly-editor) hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n:where(.mly-editor) abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n:where(.mly-editor) h1,\n:where(.mly-editor) h2,\n:where(.mly-editor) h3,\n:where(.mly-editor) h4,\n:where(.mly-editor) h5,\n:where(.mly-editor) h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n:where(.mly-editor) a {\n color: inherit;\n text-decoration: inherit;\n}\n:where(.mly-editor) b,\n:where(.mly-editor) strong {\n font-weight: bolder;\n}\n:where(.mly-editor) code,\n:where(.mly-editor) kbd,\n:where(.mly-editor) samp,\n:where(.mly-editor) pre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n font-size: 1em;\n}\n:where(.mly-editor) small {\n font-size: 80%;\n}\n:where(.mly-editor) sub,\n:where(.mly-editor) sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n:where(.mly-editor) sub {\n bottom: -0.25em;\n}\n:where(.mly-editor) sup {\n top: -0.5em;\n}\n:where(.mly-editor) table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) input,\n:where(.mly-editor) optgroup,\n:where(.mly-editor) select,\n:where(.mly-editor) textarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) select {\n text-transform: none;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) [type=button],\n:where(.mly-editor) [type=reset],\n:where(.mly-editor) [type=submit] {\n -webkit-appearance: button;\n background-image: none;\n}\n:where(.mly-editor) :-moz-focusring {\n outline: auto;\n}\n:where(.mly-editor) :-moz-ui-invalid {\n box-shadow: none;\n}\n:where(.mly-editor) progress {\n vertical-align: baseline;\n}\n:where(.mly-editor) ::-webkit-inner-spin-button,\n:where(.mly-editor) ::-webkit-outer-spin-button {\n height: auto;\n}\n:where(.mly-editor) [type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n:where(.mly-editor) ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n:where(.mly-editor) ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n:where(.mly-editor) summary {\n display: list-item;\n}\n:where(.mly-editor) blockquote,\n:where(.mly-editor) dl,\n:where(.mly-editor) dd,\n:where(.mly-editor) h1,\n:where(.mly-editor) h2,\n:where(.mly-editor) h3,\n:where(.mly-editor) h4,\n:where(.mly-editor) h5,\n:where(.mly-editor) h6,\n:where(.mly-editor) hr,\n:where(.mly-editor) figure,\n:where(.mly-editor) p,\n:where(.mly-editor) pre {\n margin: 0;\n}\n:where(.mly-editor) fieldset {\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) legend {\n padding: 0;\n}\n:where(.mly-editor) ol,\n:where(.mly-editor) ul,\n:where(.mly-editor) menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n:where(.mly-editor) dialog {\n padding: 0;\n}\n:where(.mly-editor) textarea {\n resize: vertical;\n}\n:where(.mly-editor) input::-moz-placeholder,\n:where(.mly-editor) textarea::-moz-placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.mly-editor) input::placeholder,\n:where(.mly-editor) textarea::placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.mly-editor) button,\n:where(.mly-editor) [role=button] {\n cursor: pointer;\n}\n:where(.mly-editor) :disabled {\n cursor: default;\n}\n:where(.mly-editor) img,\n:where(.mly-editor) svg,\n:where(.mly-editor) video,\n:where(.mly-editor) canvas,\n:where(.mly-editor) audio,\n:where(.mly-editor) iframe,\n:where(.mly-editor) embed,\n:where(.mly-editor) object {\n display: block;\n vertical-align: middle;\n}\n:where(.mly-editor) img,\n:where(.mly-editor) video {\n max-width: 100%;\n height: auto;\n}\n:where(.mly-editor) [hidden] {\n display: none;\n}\n');
|
|
81
|
-
|
|
82
|
-
// src/styles/tailwind.css
|
|
83
|
-
styleInject('*,\n::before,\n::after {\n --mly-tw-border-spacing-x: 0;\n --mly-tw-border-spacing-y: 0;\n --mly-tw-translate-x: 0;\n --mly-tw-translate-y: 0;\n --mly-tw-rotate: 0;\n --mly-tw-skew-x: 0;\n --mly-tw-skew-y: 0;\n --mly-tw-scale-x: 1;\n --mly-tw-scale-y: 1;\n --mly-tw-pan-x: ;\n --mly-tw-pan-y: ;\n --mly-tw-pinch-zoom: ;\n --mly-tw-scroll-snap-strictness: proximity;\n --mly-tw-gradient-from-position: ;\n --mly-tw-gradient-via-position: ;\n --mly-tw-gradient-to-position: ;\n --mly-tw-ordinal: ;\n --mly-tw-slashed-zero: ;\n --mly-tw-numeric-figure: ;\n --mly-tw-numeric-spacing: ;\n --mly-tw-numeric-fraction: ;\n --mly-tw-ring-inset: ;\n --mly-tw-ring-offset-width: 0px;\n --mly-tw-ring-offset-color: #fff;\n --mly-tw-ring-color: rgb(59 130 246 / 0.5);\n --mly-tw-ring-offset-shadow: 0 0 #0000;\n --mly-tw-ring-shadow: 0 0 #0000;\n --mly-tw-shadow: 0 0 #0000;\n --mly-tw-shadow-colored: 0 0 #0000;\n --mly-tw-blur: ;\n --mly-tw-brightness: ;\n --mly-tw-contrast: ;\n --mly-tw-grayscale: ;\n --mly-tw-hue-rotate: ;\n --mly-tw-invert: ;\n --mly-tw-saturate: ;\n --mly-tw-sepia: ;\n --mly-tw-drop-shadow: ;\n --mly-tw-backdrop-blur: ;\n --mly-tw-backdrop-brightness: ;\n --mly-tw-backdrop-contrast: ;\n --mly-tw-backdrop-grayscale: ;\n --mly-tw-backdrop-hue-rotate: ;\n --mly-tw-backdrop-invert: ;\n --mly-tw-backdrop-opacity: ;\n --mly-tw-backdrop-saturate: ;\n --mly-tw-backdrop-sepia: ;\n --mly-tw-contain-size: ;\n --mly-tw-contain-layout: ;\n --mly-tw-contain-paint: ;\n --mly-tw-contain-style: ;\n}\n::backdrop {\n --mly-tw-border-spacing-x: 0;\n --mly-tw-border-spacing-y: 0;\n --mly-tw-translate-x: 0;\n --mly-tw-translate-y: 0;\n --mly-tw-rotate: 0;\n --mly-tw-skew-x: 0;\n --mly-tw-skew-y: 0;\n --mly-tw-scale-x: 1;\n --mly-tw-scale-y: 1;\n --mly-tw-pan-x: ;\n --mly-tw-pan-y: ;\n --mly-tw-pinch-zoom: ;\n --mly-tw-scroll-snap-strictness: proximity;\n --mly-tw-gradient-from-position: ;\n --mly-tw-gradient-via-position: ;\n --mly-tw-gradient-to-position: ;\n --mly-tw-ordinal: ;\n --mly-tw-slashed-zero: ;\n --mly-tw-numeric-figure: ;\n --mly-tw-numeric-spacing: ;\n --mly-tw-numeric-fraction: ;\n --mly-tw-ring-inset: ;\n --mly-tw-ring-offset-width: 0px;\n --mly-tw-ring-offset-color: #fff;\n --mly-tw-ring-color: rgb(59 130 246 / 0.5);\n --mly-tw-ring-offset-shadow: 0 0 #0000;\n --mly-tw-ring-shadow: 0 0 #0000;\n --mly-tw-shadow: 0 0 #0000;\n --mly-tw-shadow-colored: 0 0 #0000;\n --mly-tw-blur: ;\n --mly-tw-brightness: ;\n --mly-tw-contrast: ;\n --mly-tw-grayscale: ;\n --mly-tw-hue-rotate: ;\n --mly-tw-invert: ;\n --mly-tw-saturate: ;\n --mly-tw-sepia: ;\n --mly-tw-drop-shadow: ;\n --mly-tw-backdrop-blur: ;\n --mly-tw-backdrop-brightness: ;\n --mly-tw-backdrop-contrast: ;\n --mly-tw-backdrop-grayscale: ;\n --mly-tw-backdrop-hue-rotate: ;\n --mly-tw-backdrop-invert: ;\n --mly-tw-backdrop-opacity: ;\n --mly-tw-backdrop-saturate: ;\n --mly-tw-backdrop-sepia: ;\n --mly-tw-contain-size: ;\n --mly-tw-contain-layout: ;\n --mly-tw-contain-paint: ;\n --mly-tw-contain-style: ;\n}\n* {\n scrollbar-color: initial;\n scrollbar-width: initial;\n}\n.mly-prose {\n color: var(--mly-tw-prose-body);\n max-width: 65ch;\n}\n.mly-prose :where(p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where([class~=lead]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}\n.mly-prose :where(a):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}\n.mly-prose :where(strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-bold);\n font-weight: 600;\n}\n.mly-prose :where(a strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol[type=A]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=A s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-alpha;\n}\n.mly-prose :where(ol[type=a s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-alpha;\n}\n.mly-prose :where(ol[type=I]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type=I s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: upper-roman;\n}\n.mly-prose :where(ol[type=i s]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: lower-roman;\n}\n.mly-prose :where(ol[type="1"]):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: decimal;\n}\n.mly-prose :where(ul):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n font-weight: 400;\n color: var(--mly-tw-prose-counters);\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n color: var(--mly-tw-prose-bullets);\n}\n.mly-prose :where(dt):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}\n.mly-prose :where(hr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-color: var(--mly-tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}\n.mly-prose :where(blockquote):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-style: italic;\n color: var(--mly-tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--mly-tw-prose-quote-borders);\n quotes: "\\201c""\\201d""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}\n.mly-prose :where(blockquote p:first-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: open-quote;\n}\n.mly-prose :where(blockquote p:last-of-type):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: close-quote;\n}\n.mly-prose :where(h1):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}\n.mly-prose :where(h1 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 900;\n color: inherit;\n}\n.mly-prose :where(h2):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}\n.mly-prose :where(h2 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 800;\n color: inherit;\n}\n.mly-prose :where(h3):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}\n.mly-prose :where(h3 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(h4):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}\n.mly-prose :where(h4 strong):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 700;\n color: inherit;\n}\n.mly-prose :where(img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(picture):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(video):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(kbd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n font-weight: 500;\n font-family: inherit;\n color: var(--mly-tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--mly-tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--mly-tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: "`";\n}\n.mly-prose :where(code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: "`";\n}\n.mly-prose :where(a code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h1 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(h2 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.875em;\n}\n.mly-prose :where(h3 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n font-size: 0.9em;\n}\n.mly-prose :where(h4 code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(blockquote code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(thead th code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: inherit;\n}\n.mly-prose :where(pre):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-pre-code);\n background-color: var(--mly-tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::before {\n content: none;\n}\n.mly-prose :where(pre code):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::after {\n content: none;\n}\n.mly-prose :where(table):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}\n.mly-prose :where(thead):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--mly-tw-prose-th-borders);\n}\n.mly-prose :where(thead th):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody tr):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--mly-tw-prose-td-borders);\n}\n.mly-prose :where(tbody tr:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-bottom-width: 0;\n}\n.mly-prose :where(tbody td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: baseline;\n}\n.mly-prose :where(tfoot):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n border-top-width: 1px;\n border-top-color: var(--mly-tw-prose-th-borders);\n}\n.mly-prose :where(tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n vertical-align: top;\n}\n.mly-prose :where(th, td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n text-align: start;\n}\n.mly-prose :where(figure > *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(figcaption):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--mly-tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n.mly-prose {\n --mly-tw-prose-body: #374151;\n --mly-tw-prose-headings: #111827;\n --mly-tw-prose-lead: #4b5563;\n --mly-tw-prose-links: #111827;\n --mly-tw-prose-bold: #111827;\n --mly-tw-prose-counters: #6b7280;\n --mly-tw-prose-bullets: #d1d5db;\n --mly-tw-prose-hr: #e5e7eb;\n --mly-tw-prose-quotes: #111827;\n --mly-tw-prose-quote-borders: #e5e7eb;\n --mly-tw-prose-captions: #6b7280;\n --mly-tw-prose-kbd: #111827;\n --mly-tw-prose-kbd-shadows: 17 24 39;\n --mly-tw-prose-code: #111827;\n --mly-tw-prose-pre-code: #e5e7eb;\n --mly-tw-prose-pre-bg: #1f2937;\n --mly-tw-prose-th-borders: #d1d5db;\n --mly-tw-prose-td-borders: #e5e7eb;\n --mly-tw-prose-invert-body: #d1d5db;\n --mly-tw-prose-invert-headings: #fff;\n --mly-tw-prose-invert-lead: #9ca3af;\n --mly-tw-prose-invert-links: #fff;\n --mly-tw-prose-invert-bold: #fff;\n --mly-tw-prose-invert-counters: #9ca3af;\n --mly-tw-prose-invert-bullets: #4b5563;\n --mly-tw-prose-invert-hr: #374151;\n --mly-tw-prose-invert-quotes: #f3f4f6;\n --mly-tw-prose-invert-quote-borders: #374151;\n --mly-tw-prose-invert-captions: #9ca3af;\n --mly-tw-prose-invert-kbd: #fff;\n --mly-tw-prose-invert-kbd-shadows: 255 255 255;\n --mly-tw-prose-invert-code: #fff;\n --mly-tw-prose-invert-pre-code: #d1d5db;\n --mly-tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --mly-tw-prose-invert-th-borders: #4b5563;\n --mly-tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}\n.mly-prose :where(picture > img):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n.mly-prose :where(li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n.mly-prose :where(ol > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0.375em;\n}\n.mly-prose :where(.mly-prose > ul > li p):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ul > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n}\n.mly-prose :where(.mly-prose > ol > li > p:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 1.25em;\n}\n.mly-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n.mly-prose :where(dl):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n.mly-prose :where(dd):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}\n.mly-prose :where(hr + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h2 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h3 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(h4 + *):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(thead th:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(thead th:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(tbody td, tfoot td):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n.mly-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-start: 0;\n}\n.mly-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n padding-inline-end: 0;\n}\n.mly-prose :where(figure):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n.mly-prose :where(.mly-prose > :first-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-top: 0;\n}\n.mly-prose :where(.mly-prose > :last-child):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n margin-bottom: 0;\n}\n.mly-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.mly-pointer-events-none {\n pointer-events: none;\n}\n.mly-visible {\n visibility: visible;\n}\n.mly-absolute {\n position: absolute;\n}\n.mly-relative {\n position: relative;\n}\n.mly-inset-0 {\n inset: 0px;\n}\n.mly-inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.mly-left-0 {\n left: 0px;\n}\n.mly-left-1\\.5 {\n left: 0.375rem;\n}\n.mly-left-2 {\n left: 0.5rem;\n}\n.mly-right-0 {\n right: 0px;\n}\n.mly-right-1 {\n right: 0.25rem;\n}\n.mly-top-0 {\n top: 0px;\n}\n.mly-top-8 {\n top: 2rem;\n}\n.mly-isolate {\n isolation: isolate;\n}\n.mly-z-0 {\n z-index: 0;\n}\n.mly-z-10 {\n z-index: 10;\n}\n.mly-z-20 {\n z-index: 20;\n}\n.mly-z-50 {\n z-index: 50;\n}\n.mly-z-\\[1\\] {\n z-index: 1;\n}\n.mly-z-\\[9999\\] {\n z-index: 9999;\n}\n.\\!mly-my-0 {\n margin-top: 0px !important;\n margin-bottom: 0px !important;\n}\n.-mly-mx-4 {\n margin-left: -1rem;\n margin-right: -1rem;\n}\n.mly--mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mly-mx-0 {\n margin-left: 0px;\n margin-right: 0px;\n}\n.mly-mx-0\\.5 {\n margin-left: 0.125rem;\n margin-right: 0.125rem;\n}\n.mly-mx-1\\.5 {\n margin-left: 0.375rem;\n margin-right: 0.375rem;\n}\n.mly-my-0 {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.mly-my-0\\.5 {\n margin-top: 0.125rem;\n margin-bottom: 0.125rem;\n}\n.mly-my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.mly-my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.mly-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n.\\!mly-mb-0 {\n margin-bottom: 0px !important;\n}\n.\\!mly-mb-1\\.5 {\n margin-bottom: 0.375rem !important;\n}\n.-mly-ms-px {\n margin-inline-start: -1px;\n}\n.mly-mb-1\\.5 {\n margin-bottom: 0.375rem;\n}\n.mly-mb-2 {\n margin-bottom: 0.5rem;\n}\n.mly-mb-4 {\n margin-bottom: 1rem;\n}\n.mly-ml-1 {\n margin-left: 0.25rem;\n}\n.mly-ml-auto {\n margin-left: auto;\n}\n.mly-mt-1 {\n margin-top: 0.25rem;\n}\n.mly-mt-2 {\n margin-top: 0.5rem;\n}\n.mly-mt-4 {\n margin-top: 1rem;\n}\n.mly-block {\n display: block;\n}\n.mly-inline-block {\n display: inline-block;\n}\n.mly-inline {\n display: inline;\n}\n.mly-flex {\n display: flex;\n}\n.mly-inline-flex {\n display: inline-flex;\n}\n.mly-grid {\n display: grid;\n}\n.mly-inline-grid {\n display: inline-grid;\n}\n.mly-hidden {\n display: none;\n}\n.mly-aspect-\\[2\\.5\\] {\n aspect-ratio: 2.5;\n}\n.mly-aspect-square {\n aspect-ratio: 1 / 1;\n}\n.\\!mly-size-5 {\n width: 1.25rem !important;\n height: 1.25rem !important;\n}\n.\\!mly-size-7 {\n width: 1.75rem !important;\n height: 1.75rem !important;\n}\n.mly-size-3 {\n width: 0.75rem;\n height: 0.75rem;\n}\n.mly-size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.mly-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.mly-size-5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.mly-size-6 {\n width: 1.5rem;\n height: 1.5rem;\n}\n.mly-size-7 {\n width: 1.75rem;\n height: 1.75rem;\n}\n.mly-size-\\[15px\\] {\n width: 15px;\n height: 15px;\n}\n.mly-size-\\[var\\(--variable-icon-size\\)\\] {\n width: var(--variable-icon-size);\n height: var(--variable-icon-size);\n}\n.\\!mly-h-7 {\n height: 1.75rem !important;\n}\n.mly-h-10 {\n height: 2.5rem;\n}\n.mly-h-11 {\n height: 2.75rem;\n}\n.mly-h-3 {\n height: 0.75rem;\n}\n.mly-h-4 {\n height: 1rem;\n}\n.mly-h-5 {\n height: 1.25rem;\n}\n.mly-h-6 {\n height: 1.5rem;\n}\n.mly-h-7 {\n height: 1.75rem;\n}\n.mly-h-8 {\n height: 2rem;\n}\n.mly-h-9 {\n height: 2.25rem;\n}\n.mly-h-\\[2px\\] {\n height: 2px;\n}\n.mly-h-auto {\n height: auto;\n}\n.mly-h-full {\n height: 100%;\n}\n.mly-h-px {\n height: 1px;\n}\n.mly-max-h-52 {\n max-height: 13rem;\n}\n.mly-max-h-\\[330px\\] {\n max-height: 330px;\n}\n.mly-min-h-24 {\n min-height: 6rem;\n}\n.mly-min-h-7 {\n min-height: 1.75rem;\n}\n.mly-min-h-\\[42px\\] {\n min-height: 42px;\n}\n.\\!mly-w-full {\n width: 100% !important;\n}\n.mly-w-10 {\n width: 2.5rem;\n}\n.mly-w-3 {\n width: 0.75rem;\n}\n.mly-w-32 {\n width: 8rem;\n}\n.mly-w-36 {\n width: 9rem;\n}\n.mly-w-4 {\n width: 1rem;\n}\n.mly-w-40 {\n width: 10rem;\n}\n.mly-w-5 {\n width: 1.25rem;\n}\n.mly-w-52 {\n width: 13rem;\n}\n.mly-w-6 {\n width: 1.5rem;\n}\n.mly-w-64 {\n width: 16rem;\n}\n.mly-w-7 {\n width: 1.75rem;\n}\n.mly-w-72 {\n width: 18rem;\n}\n.mly-w-9 {\n width: 2.25rem;\n}\n.mly-w-96 {\n width: 24rem;\n}\n.mly-w-\\[1\\.5px\\] {\n width: 1.5px;\n}\n.mly-w-\\[160px\\] {\n width: 160px;\n}\n.mly-w-\\[300px\\] {\n width: 300px;\n}\n.mly-w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.mly-w-full {\n width: 100%;\n}\n.mly-w-max {\n width: -moz-max-content;\n width: max-content;\n}\n.mly-w-px {\n width: 1px;\n}\n.mly-min-w-0 {\n min-width: 0px;\n}\n.mly-min-w-28 {\n min-width: 7rem;\n}\n.mly-min-w-\\[260px\\] {\n min-width: 260px;\n}\n.mly-min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.mly-min-w-full {\n min-width: 100%;\n}\n.mly-max-w-12 {\n max-width: 3rem;\n}\n.mly-max-w-20 {\n max-width: 5rem;\n}\n.mly-max-w-28 {\n max-width: 7rem;\n}\n.mly-max-w-\\[260px\\] {\n max-width: 260px;\n}\n.mly-max-w-\\[285px\\] {\n max-width: 285px;\n}\n.mly-max-w-max {\n max-width: -moz-max-content;\n max-width: max-content;\n}\n.mly-max-w-xs {\n max-width: 20rem;\n}\n.mly-shrink-0 {\n flex-shrink: 0;\n}\n.mly-grow {\n flex-grow: 1;\n}\n.mly-table-fixed {\n table-layout: fixed;\n}\n.mly-border-separate {\n border-collapse: separate;\n}\n.mly-translate-x-full {\n --mly-tw-translate-x: 100%;\n transform: translate(var(--mly-tw-translate-x), var(--mly-tw-translate-y)) rotate(var(--mly-tw-rotate)) skewX(var(--mly-tw-skew-x)) skewY(var(--mly-tw-skew-y)) scaleX(var(--mly-tw-scale-x)) scaleY(var(--mly-tw-scale-y));\n}\n.mly-transform {\n transform: translate(var(--mly-tw-translate-x), var(--mly-tw-translate-y)) rotate(var(--mly-tw-rotate)) skewX(var(--mly-tw-skew-x)) skewY(var(--mly-tw-skew-y)) scaleX(var(--mly-tw-scale-x)) scaleY(var(--mly-tw-scale-y));\n}\n@keyframes mly-pulse {\n 50% {\n opacity: .5;\n }\n}\n.mly-animate-pulse {\n animation: mly-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n@keyframes mly-spin {\n to {\n transform: rotate(360deg);\n }\n}\n.mly-animate-spin {\n animation: mly-spin 1s linear infinite;\n}\n.mly-cursor-default {\n cursor: default;\n}\n.mly-cursor-grab {\n cursor: grab;\n}\n.mly-cursor-pointer {\n cursor: pointer;\n}\n.mly-select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.mly-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.mly-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.mly-grid-cols-\\[12px_1fr\\] {\n grid-template-columns: 12px 1fr;\n}\n.mly-flex-col {\n flex-direction: column;\n}\n.mly-flex-wrap {\n flex-wrap: wrap;\n}\n.mly-items-center {\n align-items: center;\n}\n.mly-items-stretch {\n align-items: stretch;\n}\n.mly-justify-start {\n justify-content: flex-start;\n}\n.mly-justify-center {\n justify-content: center;\n}\n.mly-justify-between {\n justify-content: space-between;\n}\n.mly-gap-0\\.5 {\n gap: 0.125rem;\n}\n.mly-gap-1 {\n gap: 0.25rem;\n}\n.mly-gap-1\\.5 {\n gap: 0.375rem;\n}\n.mly-gap-2 {\n gap: 0.5rem;\n}\n.mly-gap-3 {\n gap: 0.75rem;\n}\n.mly-gap-4 {\n gap: 1rem;\n}\n.mly-gap-\\[1px\\] {\n gap: 1px;\n}\n.mly-gap-\\[var\\(--variable-icon-gap\\)\\] {\n gap: var(--variable-icon-gap);\n}\n.mly-space-x-0\\.5 > :not([hidden]) ~ :not([hidden]) {\n --mly-tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--mly-tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--mly-tw-space-x-reverse)));\n}\n.mly-space-y-0\\.5 > :not([hidden]) ~ :not([hidden]) {\n --mly-tw-space-y-reverse: 0;\n margin-top: calc(0.125rem * calc(1 - var(--mly-tw-space-y-reverse)));\n margin-bottom: calc(0.125rem * var(--mly-tw-space-y-reverse));\n}\n.mly-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --mly-tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--mly-tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--mly-tw-space-y-reverse));\n}\n.mly-overflow-hidden {\n overflow: hidden;\n}\n.mly-overflow-y-auto {\n overflow-y: auto;\n}\n.mly-scroll-smooth {\n scroll-behavior: smooth;\n}\n.mly-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\!mly-rounded {\n border-radius: 0.25rem !important;\n}\n.\\!mly-rounded-full {\n border-radius: 9999px !important;\n}\n.\\!mly-rounded-md {\n border-radius: 0.375rem !important;\n}\n.\\!mly-rounded-none {\n border-radius: 0px !important;\n}\n.mly-rounded {\n border-radius: 0.25rem;\n}\n.mly-rounded-full {\n border-radius: 9999px;\n}\n.mly-rounded-lg {\n border-radius: 0.5rem;\n}\n.mly-rounded-md {\n border-radius: 0.375rem;\n}\n.mly-rounded-none {\n border-radius: 0px;\n}\n.mly-rounded-sm {\n border-radius: 0.125rem;\n}\n.mly-rounded-xl {\n border-radius: 0.75rem;\n}\n.mly-rounded-s-lg {\n border-start-start-radius: 0.5rem;\n border-end-start-radius: 0.5rem;\n}\n.mly-rounded-s-none {\n border-start-start-radius: 0px;\n border-end-start-radius: 0px;\n}\n.mly-rounded-t-lg {\n border-top-left-radius: 0.5rem;\n border-top-right-radius: 0.5rem;\n}\n.mly-border {\n border-width: 1px;\n}\n.mly-border-0 {\n border-width: 0px;\n}\n.mly-border-2 {\n border-width: 2px;\n}\n.mly-border-\\[1\\.5px\\] {\n border-width: 1.5px;\n}\n.mly-border-b {\n border-bottom-width: 1px;\n}\n.mly-border-l-4 {\n border-left-width: 4px;\n}\n.mly-border-t {\n border-top-width: 1px;\n}\n.mly-border-none {\n border-style: none;\n}\n.mly-border-\\[var\\(--button-var-border-color\\)\\] {\n border-color: var(--button-var-border-color);\n}\n.mly-border-gray-200 {\n --mly-tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--mly-tw-border-opacity, 1));\n}\n.mly-border-gray-300 {\n --mly-tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--mly-tw-border-opacity, 1));\n}\n.mly-border-gray-700 {\n --mly-tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--mly-tw-border-opacity, 1));\n}\n.mly-border-rose-400 {\n --mly-tw-border-opacity: 1;\n border-color: rgb(251 113 133 / var(--mly-tw-border-opacity, 1));\n}\n.mly-border-slate-200 {\n --mly-tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--mly-tw-border-opacity, 1));\n}\n.mly-border-white {\n --mly-tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--mly-tw-border-opacity, 1));\n}\n.\\!mly-bg-transparent {\n background-color: transparent !important;\n}\n.mly-bg-\\[\\#efefef\\] {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(239 239 239 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-gray-100 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-gray-200 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-gray-50 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-gray-900 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-red-100 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-red-500 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-rose-100 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-rose-300 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(253 164 175 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-rose-50 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(255 241 242 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-rose-500 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 63 94 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-soft-gray {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-soft-gray\\/40 {\n background-color: rgb(244 245 246 / 0.4);\n}\n.mly-bg-soft-gray\\/60 {\n background-color: rgb(244 245 246 / 0.6);\n}\n.mly-bg-transparent {\n background-color: transparent;\n}\n.mly-bg-white {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-bg-yellow-200 {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--mly-tw-bg-opacity, 1));\n}\n.mly-stroke-midnight-gray {\n stroke: #333333;\n}\n.mly-stroke-\\[1\\.2\\] {\n stroke-width: 1.2;\n}\n.mly-stroke-\\[1\\] {\n stroke-width: 1;\n}\n.mly-stroke-\\[2\\.5\\] {\n stroke-width: 2.5;\n}\n.mly-object-cover {\n -o-object-fit: cover;\n object-fit: cover;\n}\n.\\!mly-p-0 {\n padding: 0px !important;\n}\n.\\!mly-p-0\\.5 {\n padding: 0.125rem !important;\n}\n.mly-p-0 {\n padding: 0px;\n}\n.mly-p-0\\.5 {\n padding: 0.125rem;\n}\n.mly-p-1 {\n padding: 0.25rem;\n}\n.mly-p-2 {\n padding: 0.5rem;\n}\n.mly-p-3 {\n padding: 0.75rem;\n}\n.mly-p-4 {\n padding: 1rem;\n}\n.mly-px-0\\.5 {\n padding-left: 0.125rem;\n padding-right: 0.125rem;\n}\n.mly-px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.mly-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.mly-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.mly-px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.mly-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.mly-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.mly-px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.mly-px-\\[26px\\] {\n padding-left: 26px;\n padding-right: 26px;\n}\n.mly-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.mly-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.mly-py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.mly-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.mly-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.mly-pe-8 {\n padding-inline-end: 2rem;\n}\n.mly-pl-1 {\n padding-left: 0.25rem;\n}\n.mly-pl-4 {\n padding-left: 1rem;\n}\n.mly-pl-7 {\n padding-left: 1.75rem;\n}\n.mly-pl-8 {\n padding-left: 2rem;\n}\n.mly-pl-\\[26px\\] {\n padding-left: 26px;\n}\n.mly-pr-1\\.5 {\n padding-right: 0.375rem;\n}\n.mly-pr-6 {\n padding-right: 1.5rem;\n}\n.mly-pr-7 {\n padding-right: 1.75rem;\n}\n.mly-ps-3 {\n padding-inline-start: 0.75rem;\n}\n.mly-text-left {\n text-align: left;\n}\n.mly-text-center {\n text-align: center;\n}\n.mly-font-mono {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n}\n.\\!mly-text-base {\n font-size: 1rem !important;\n line-height: 1.5rem !important;\n}\n.\\!mly-text-lg {\n font-size: 1.125rem !important;\n line-height: 1.75rem !important;\n}\n.mly-text-\\[10px\\] {\n font-size: 10px;\n}\n.mly-text-\\[13px\\] {\n font-size: 13px;\n}\n.mly-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.mly-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.mly-font-medium {\n font-weight: 500;\n}\n.mly-font-normal {\n font-weight: 400;\n}\n.mly-font-semibold {\n font-weight: 600;\n}\n.mly-uppercase {\n text-transform: uppercase;\n}\n.mly-capitalize {\n text-transform: capitalize;\n}\n.mly-tabular-nums {\n --mly-tw-numeric-spacing: tabular-nums;\n font-variant-numeric: var(--mly-tw-ordinal) var(--mly-tw-slashed-zero) var(--mly-tw-numeric-figure) var(--mly-tw-numeric-spacing) var(--mly-tw-numeric-fraction);\n}\n.mly-leading-none {\n line-height: 1;\n}\n.mly-tracking-normal {\n letter-spacing: 0em;\n}\n.mly-tracking-widest {\n letter-spacing: 0.1em;\n}\n.mly-text-black {\n --mly-tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-400 {\n --mly-tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-50 {\n --mly-tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-500 {\n --mly-tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-600 {\n --mly-tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-700 {\n --mly-tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-900 {\n --mly-tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-gray-950 {\n --mly-tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-midnight-gray {\n --mly-tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-midnight-gray\\/60 {\n color: rgb(51 51 51 / 0.6);\n}\n.mly-text-red-500 {\n --mly-tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-red-600 {\n --mly-tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-rose-600 {\n --mly-tw-text-opacity: 1;\n color: rgb(225 29 72 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-rose-800 {\n --mly-tw-text-opacity: 1;\n color: rgb(159 18 57 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-slate-400 {\n --mly-tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-slate-500 {\n --mly-tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-slate-600 {\n --mly-tw-text-opacity: 1;\n color: rgb(71 85 105 / var(--mly-tw-text-opacity, 1));\n}\n.mly-text-slate-700 {\n --mly-tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--mly-tw-text-opacity, 1));\n}\n.mly-no-underline {\n text-decoration-line: none;\n}\n.mly-underline-offset-4 {\n text-underline-offset: 4px;\n}\n.mly-antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.mly-opacity-0 {\n opacity: 0;\n}\n.mly-opacity-40 {\n opacity: 0.4;\n}\n.mly-opacity-60 {\n opacity: 0.6;\n}\n.mly-shadow {\n --mly-tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mly-tw-shadow-colored: 0 1px 3px 0 var(--mly-tw-shadow-color), 0 1px 2px -1px var(--mly-tw-shadow-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow, 0 0 #0000),\n var(--mly-tw-ring-shadow, 0 0 #0000),\n var(--mly-tw-shadow);\n}\n.mly-shadow-lg {\n --mly-tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --mly-tw-shadow-colored: 0 10px 15px -3px var(--mly-tw-shadow-color), 0 4px 6px -4px var(--mly-tw-shadow-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow, 0 0 #0000),\n var(--mly-tw-ring-shadow, 0 0 #0000),\n var(--mly-tw-shadow);\n}\n.mly-shadow-md {\n --mly-tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --mly-tw-shadow-colored: 0 4px 6px -1px var(--mly-tw-shadow-color), 0 2px 4px -2px var(--mly-tw-shadow-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow, 0 0 #0000),\n var(--mly-tw-ring-shadow, 0 0 #0000),\n var(--mly-tw-shadow);\n}\n.mly-shadow-none {\n --mly-tw-shadow: 0 0 #0000;\n --mly-tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--mly-tw-ring-offset-shadow, 0 0 #0000),\n var(--mly-tw-ring-shadow, 0 0 #0000),\n var(--mly-tw-shadow);\n}\n.mly-shadow-sm {\n --mly-tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --mly-tw-shadow-colored: 0 1px 2px 0 var(--mly-tw-shadow-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow, 0 0 #0000),\n var(--mly-tw-ring-shadow, 0 0 #0000),\n var(--mly-tw-shadow);\n}\n.mly-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.mly-ring-offset-white {\n --mly-tw-ring-offset-color: #fff;\n}\n.mly-drop-shadow-md {\n --mly-tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n filter: var(--mly-tw-blur) var(--mly-tw-brightness) var(--mly-tw-contrast) var(--mly-tw-grayscale) var(--mly-tw-hue-rotate) var(--mly-tw-invert) var(--mly-tw-saturate) var(--mly-tw-sepia) var(--mly-tw-drop-shadow);\n}\n.mly-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.mly-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n@keyframes enter {\n from {\n opacity: var(--mly-tw-enter-opacity, 1);\n transform: translate3d(var(--mly-tw-enter-translate-x, 0), var(--mly-tw-enter-translate-y, 0), 0) scale3d(var(--mly-tw-enter-scale, 1), var(--mly-tw-enter-scale, 1), var(--mly-tw-enter-scale, 1)) rotate(var(--mly-tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--mly-tw-exit-opacity, 1);\n transform: translate3d(var(--mly-tw-exit-translate-x, 0), var(--mly-tw-exit-translate-y, 0), 0) scale3d(var(--mly-tw-exit-scale, 1), var(--mly-tw-exit-scale, 1), var(--mly-tw-exit-scale, 1)) rotate(var(--mly-tw-exit-rotate, 0));\n }\n}\n.mly-animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --mly-tw-enter-opacity: initial;\n --mly-tw-enter-scale: initial;\n --mly-tw-enter-rotate: initial;\n --mly-tw-enter-translate-x: initial;\n --mly-tw-enter-translate-y: initial;\n}\n.mly-fade-in-0 {\n --mly-tw-enter-opacity: 0;\n}\n.mly-zoom-in-95 {\n --mly-tw-enter-scale: .95;\n}\n.mly-ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track {\n background-color: var(--scrollbar-track);\n border-radius: var(--scrollbar-track-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track:hover {\n background-color: var(--scrollbar-track-hover, var(--scrollbar-track));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-track:active {\n background-color: var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb);\n border-radius: var(--scrollbar-thumb-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover, var(--scrollbar-thumb));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-thumb:active {\n background-color: var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner {\n background-color: var(--scrollbar-corner);\n border-radius: var(--scrollbar-corner-radius);\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner:hover {\n background-color: var(--scrollbar-corner-hover, var(--scrollbar-corner));\n}\n.mly-scrollbar-thin::-webkit-scrollbar-corner:active {\n background-color: var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)));\n}\n.mly-scrollbar-thin {\n scrollbar-width: thin;\n scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);\n}\n.mly-scrollbar-thin::-webkit-scrollbar {\n display: block;\n width: 8px;\n height: 8px;\n}\n.mly-scrollbar-track-transparent {\n --scrollbar-track: transparent !important;\n}\n.mly-scrollbar-thumb-gray-200 {\n --scrollbar-thumb: #e5e7eb !important;\n}\n.\\[text-align\\:revert-layer\\] {\n text-align: revert-layer;\n}\n.file\\:mly-border-0::file-selector-button {\n border-width: 0px;\n}\n.file\\:mly-bg-transparent::file-selector-button {\n background-color: transparent;\n}\n.file\\:mly-text-sm::file-selector-button {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.file\\:mly-font-medium::file-selector-button {\n font-weight: 500;\n}\n.placeholder\\:mly-text-gray-400::-moz-placeholder {\n --mly-tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--mly-tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-400::placeholder {\n --mly-tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--mly-tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-500::-moz-placeholder {\n --mly-tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--mly-tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-500::placeholder {\n --mly-tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--mly-tw-text-opacity, 1));\n}\n.mly-peer:disabled ~ .peer-disabled\\:mly-opacity-50 {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:mly-pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[state\\=open\\]\\:mly-bg-rose-100[data-state=open] {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--mly-tw-bg-opacity, 1));\n}\n.data-\\[state\\=open\\]\\:mly-bg-soft-gray[data-state=open] {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.data-\\[state\\=true\\]\\:mly-bg-soft-gray[data-state=true] {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.data-\\[state\\=true\\]\\:mly-text-gray-900[data-state=true] {\n --mly-tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--mly-tw-text-opacity, 1));\n}\n.data-\\[disabled\\]\\:mly-opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.hover\\:mly-bg-gray-100:hover {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--mly-tw-bg-opacity, 1));\n}\n.hover\\:mly-bg-gray-100\\/80:hover {\n background-color: rgb(243 244 246 / 0.8);\n}\n.hover\\:mly-bg-red-200:hover {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--mly-tw-bg-opacity, 1));\n}\n.hover\\:mly-bg-red-500\\/90:hover {\n background-color: rgb(239 68 68 / 0.9);\n}\n.hover\\:mly-bg-rose-100:hover {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--mly-tw-bg-opacity, 1));\n}\n.hover\\:mly-bg-soft-gray:hover {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.hover\\:mly-bg-soft-gray\\/60:hover {\n background-color: rgb(244 245 246 / 0.6);\n}\n.hover\\:mly-text-black:hover {\n --mly-tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--mly-tw-text-opacity, 1));\n}\n.hover\\:mly-text-gray-900:hover {\n --mly-tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--mly-tw-text-opacity, 1));\n}\n.hover\\:mly-text-midnight-gray:hover {\n --mly-tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--mly-tw-text-opacity, 1));\n}\n.hover\\:mly-underline:hover {\n text-decoration-line: underline;\n}\n.focus\\:mly-z-10:focus {\n z-index: 10;\n}\n.focus\\:mly-bg-gray-100:focus {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--mly-tw-bg-opacity, 1));\n}\n.focus\\:mly-bg-red-200:focus {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--mly-tw-bg-opacity, 1));\n}\n.focus\\:mly-bg-soft-gray:focus {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.focus\\:mly-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:mly-ring-1:focus {\n --mly-tw-ring-offset-shadow: var(--mly-tw-ring-inset) 0 0 0 var(--mly-tw-ring-offset-width) var(--mly-tw-ring-offset-color);\n --mly-tw-ring-shadow: var(--mly-tw-ring-inset) 0 0 0 calc(1px + var(--mly-tw-ring-offset-width)) var(--mly-tw-ring-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow),\n var(--mly-tw-ring-shadow),\n var(--mly-tw-shadow, 0 0 #0000);\n}\n.focus\\:mly-ring-midnight-gray\\/50:focus {\n --mly-tw-ring-color: rgb(51 51 51 / 0.5);\n}\n.focus-visible\\:mly-relative:focus-visible {\n position: relative;\n}\n.focus-visible\\:mly-z-10:focus-visible {\n z-index: 10;\n}\n.focus-visible\\:mly-border-gray-400:focus-visible {\n --mly-tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--mly-tw-border-opacity, 1));\n}\n.focus-visible\\:mly-outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:mly-ring-2:focus-visible {\n --mly-tw-ring-offset-shadow: var(--mly-tw-ring-inset) 0 0 0 var(--mly-tw-ring-offset-width) var(--mly-tw-ring-offset-color);\n --mly-tw-ring-shadow: var(--mly-tw-ring-inset) 0 0 0 calc(2px + var(--mly-tw-ring-offset-width)) var(--mly-tw-ring-color);\n box-shadow:\n var(--mly-tw-ring-offset-shadow),\n var(--mly-tw-ring-shadow),\n var(--mly-tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:mly-ring-gray-400:focus-visible {\n --mly-tw-ring-opacity: 1;\n --mly-tw-ring-color: rgb(156 163 175 / var(--mly-tw-ring-opacity, 1));\n}\n.focus-visible\\:mly-ring-offset-2:focus-visible {\n --mly-tw-ring-offset-width: 2px;\n}\n.active\\:mly-bg-soft-gray:active {\n --mly-tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--mly-tw-bg-opacity, 1));\n}\n.disabled\\:mly-pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:mly-cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:mly-opacity-50:disabled {\n opacity: 0.5;\n}\n.\\[\\&_svg\\]\\:mly-pointer-events-none svg {\n pointer-events: none;\n}\n');
|
|
84
|
-
|
|
85
54
|
// src/editor/index.tsx
|
|
86
55
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
87
|
-
import { useMemo as
|
|
56
|
+
import { useMemo as useMemo14, useRef as useRef13 } from "react";
|
|
88
57
|
|
|
89
58
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
90
59
|
import { BubbleMenu } from "@tiptap/react";
|
|
@@ -2590,10 +2559,24 @@ var useEvent = (handler) => {
|
|
|
2590
2559
|
}, []);
|
|
2591
2560
|
};
|
|
2592
2561
|
|
|
2562
|
+
// src/editor/utils/aspect-ratio.ts
|
|
2563
|
+
function getAspectRatio(width, height) {
|
|
2564
|
+
return width / height;
|
|
2565
|
+
}
|
|
2566
|
+
function getNewHeight(width, aspectRatio) {
|
|
2567
|
+
if (width <= 0 || aspectRatio <= 0) {
|
|
2568
|
+
return 0;
|
|
2569
|
+
}
|
|
2570
|
+
return width / aspectRatio;
|
|
2571
|
+
}
|
|
2572
|
+
function getNewWidth(height, aspectRatio) {
|
|
2573
|
+
return height * aspectRatio;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2593
2576
|
// src/editor/nodes/image/image-view.tsx
|
|
2594
2577
|
import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2595
2578
|
var MIN_WIDTH = 20;
|
|
2596
|
-
var
|
|
2579
|
+
var IMAGE_MAX_WIDTH = 600;
|
|
2597
2580
|
function ImageView(props) {
|
|
2598
2581
|
const { node, updateAttributes: updateAttributes2, selected, editor } = props;
|
|
2599
2582
|
const [status, setStatus] = useState4("idle");
|
|
@@ -2611,7 +2594,10 @@ function ImageView(props) {
|
|
|
2611
2594
|
if (!imgRef.current || !imageParent || !selected) {
|
|
2612
2595
|
return;
|
|
2613
2596
|
}
|
|
2614
|
-
const imageParentWidth = Math.max(
|
|
2597
|
+
const imageParentWidth = Math.max(
|
|
2598
|
+
imageParent.offsetWidth,
|
|
2599
|
+
IMAGE_MAX_WIDTH
|
|
2600
|
+
);
|
|
2615
2601
|
event.preventDefault();
|
|
2616
2602
|
const direction = event.currentTarget.dataset.direction || "--";
|
|
2617
2603
|
const initialXPosition = event.clientX;
|
|
@@ -2623,7 +2609,8 @@ function ImageView(props) {
|
|
|
2623
2609
|
const removeListeners = () => {
|
|
2624
2610
|
window.removeEventListener("mousemove", mouseMoveHandler);
|
|
2625
2611
|
window.removeEventListener("mouseup", removeListeners);
|
|
2626
|
-
|
|
2612
|
+
const aspectRatio = getAspectRatio(newWidth, newHeight);
|
|
2613
|
+
updateAttributes2({ width: newWidth, height: newHeight, aspectRatio });
|
|
2627
2614
|
setResizingStyle(void 0);
|
|
2628
2615
|
};
|
|
2629
2616
|
const mouseMoveHandler = (event2) => {
|
|
@@ -2669,17 +2656,29 @@ function ImageView(props) {
|
|
|
2669
2656
|
},
|
|
2670
2657
|
[handleMouseDown, isPlaceholderImage]
|
|
2671
2658
|
);
|
|
2672
|
-
let {
|
|
2659
|
+
let {
|
|
2660
|
+
alignment = "center",
|
|
2661
|
+
width,
|
|
2662
|
+
height,
|
|
2663
|
+
src,
|
|
2664
|
+
borderRadius: borderRadius2
|
|
2665
|
+
} = node.attrs || {};
|
|
2673
2666
|
const _a = node.attrs || {}, {
|
|
2674
2667
|
externalLink,
|
|
2675
2668
|
isExternalLinkVariable,
|
|
2676
2669
|
isSrcVariable,
|
|
2677
|
-
showIfKey
|
|
2670
|
+
showIfKey,
|
|
2671
|
+
aspectRatio: defaultAspectRatio,
|
|
2672
|
+
borderRadius: _,
|
|
2673
|
+
lockAspectRatio
|
|
2678
2674
|
} = _a, attrs = __objRest(_a, [
|
|
2679
2675
|
"externalLink",
|
|
2680
2676
|
"isExternalLinkVariable",
|
|
2681
2677
|
"isSrcVariable",
|
|
2682
|
-
"showIfKey"
|
|
2678
|
+
"showIfKey",
|
|
2679
|
+
"aspectRatio",
|
|
2680
|
+
"borderRadius",
|
|
2681
|
+
"lockAspectRatio"
|
|
2683
2682
|
]);
|
|
2684
2683
|
const hasImageSrc = !!attrs.src;
|
|
2685
2684
|
const isDroppable = !!onImageUpload && editor.isEditable && !hasImageSrc && !isSrcVariable && status === "idle";
|
|
@@ -2726,14 +2725,15 @@ function ImageView(props) {
|
|
|
2726
2725
|
return;
|
|
2727
2726
|
}
|
|
2728
2727
|
const wrapperWidth = wrapper.offsetWidth;
|
|
2729
|
-
const aspectRatio = naturalWidth
|
|
2728
|
+
const aspectRatio = getAspectRatio(naturalWidth, naturalHeight);
|
|
2730
2729
|
const calculatedHeight = Math.min(
|
|
2731
|
-
wrapperWidth
|
|
2730
|
+
getNewHeight(wrapperWidth, aspectRatio),
|
|
2732
2731
|
naturalHeight
|
|
2733
2732
|
);
|
|
2734
2733
|
updateAttributes2({
|
|
2735
2734
|
width: Math.min(wrapperWidth, naturalWidth),
|
|
2736
|
-
height: Math.min(calculatedHeight, naturalHeight)
|
|
2735
|
+
height: Math.min(calculatedHeight, naturalHeight),
|
|
2736
|
+
aspectRatio
|
|
2737
2737
|
});
|
|
2738
2738
|
};
|
|
2739
2739
|
img.onerror = () => {
|
|
@@ -2803,7 +2803,8 @@ function ImageView(props) {
|
|
|
2803
2803
|
position: "relative",
|
|
2804
2804
|
// Weird! Basically tiptap/prose wraps this in a span and the line height causes an annoying buffer.
|
|
2805
2805
|
lineHeight: "0px",
|
|
2806
|
-
display: "block"
|
|
2806
|
+
display: "block",
|
|
2807
|
+
maxWidth: "100%"
|
|
2807
2808
|
}), {
|
|
2808
2809
|
center: { marginLeft: "auto", marginRight: "auto" },
|
|
2809
2810
|
left: { marginRight: "auto" },
|
|
@@ -2845,7 +2846,8 @@ function ImageView(props) {
|
|
|
2845
2846
|
ref: imgRef,
|
|
2846
2847
|
style: __spreadProps(__spreadValues({}, resizingStyle), {
|
|
2847
2848
|
cursor: "default",
|
|
2848
|
-
marginBottom: 0
|
|
2849
|
+
marginBottom: 0,
|
|
2850
|
+
borderRadius: borderRadius2
|
|
2849
2851
|
}),
|
|
2850
2852
|
draggable: editor.isEditable,
|
|
2851
2853
|
className: cn(
|
|
@@ -3195,9 +3197,33 @@ var LogoExtension = TiptapImage.extend({
|
|
|
3195
3197
|
}
|
|
3196
3198
|
});
|
|
3197
3199
|
|
|
3200
|
+
// src/editor/utils/border-radius.ts
|
|
3201
|
+
var borderRadius = [
|
|
3202
|
+
{
|
|
3203
|
+
name: "Sharp",
|
|
3204
|
+
value: 0
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
name: "Smooth",
|
|
3208
|
+
value: 8
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
name: "Smoother",
|
|
3212
|
+
value: 16
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
name: "Rounded",
|
|
3216
|
+
value: 24
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
name: "Circle",
|
|
3220
|
+
value: 9999
|
|
3221
|
+
}
|
|
3222
|
+
];
|
|
3223
|
+
|
|
3198
3224
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
3199
3225
|
import { BubbleMenu as BubbleMenu3 } from "@tiptap/react";
|
|
3200
|
-
import { ImageDown } from "lucide-react";
|
|
3226
|
+
import { ImageDown, LockIcon, LockOpenIcon } from "lucide-react";
|
|
3201
3227
|
import { sticky as sticky3 } from "tippy.js";
|
|
3202
3228
|
|
|
3203
3229
|
// src/editor/components/alignment-switch.tsx
|
|
@@ -3273,7 +3299,7 @@ function AlignmentSwitch(props) {
|
|
|
3273
3299
|
}
|
|
3274
3300
|
|
|
3275
3301
|
// src/editor/components/ui/link-input-popover.tsx
|
|
3276
|
-
import {
|
|
3302
|
+
import { Link, LinkIcon as LinkIcon2 } from "lucide-react";
|
|
3277
3303
|
import { useRef as useRef7, useState as useState7 } from "react";
|
|
3278
3304
|
|
|
3279
3305
|
// src/editor/provider.tsx
|
|
@@ -3351,7 +3377,7 @@ var inlineImage = {
|
|
|
3351
3377
|
icon: /* @__PURE__ */ jsx22(ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
3352
3378
|
command: ({ editor, range }) => {
|
|
3353
3379
|
editor.chain().focus().deleteRange(range).setInlineImage({
|
|
3354
|
-
src: ""
|
|
3380
|
+
src: "https://maily.to/brand/logo.png"
|
|
3355
3381
|
}).command((props) => {
|
|
3356
3382
|
const { tr, state, view, editor: editor2 } = props;
|
|
3357
3383
|
const { from } = range;
|
|
@@ -4198,7 +4224,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
4198
4224
|
|
|
4199
4225
|
// src/editor/provider.tsx
|
|
4200
4226
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
4201
|
-
var DEFAULT_PLACEHOLDER_URL = "maily.to/";
|
|
4227
|
+
var DEFAULT_PLACEHOLDER_URL = "https://maily.to/";
|
|
4202
4228
|
var MailyContext = createContext({
|
|
4203
4229
|
placeholderUrl: DEFAULT_PLACEHOLDER_URL,
|
|
4204
4230
|
blocks: DEFAULT_SLASH_COMMANDS
|
|
@@ -4629,10 +4655,9 @@ var VariableExtension = Node4.create({
|
|
|
4629
4655
|
});
|
|
4630
4656
|
|
|
4631
4657
|
// src/editor/components/ui/link-input-popover.tsx
|
|
4632
|
-
import {
|
|
4633
|
-
var LINK_PROTOCOL_REGEX = /https?:\/\//;
|
|
4658
|
+
import { jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4634
4659
|
function LinkInputPopover(props) {
|
|
4635
|
-
var _a, _b
|
|
4660
|
+
var _a, _b;
|
|
4636
4661
|
const {
|
|
4637
4662
|
defaultValue = "",
|
|
4638
4663
|
onValueChange,
|
|
@@ -4641,22 +4666,16 @@ function LinkInputPopover(props) {
|
|
|
4641
4666
|
editor,
|
|
4642
4667
|
isVariable
|
|
4643
4668
|
} = props;
|
|
4644
|
-
const defaultProtocol = (_a = defaultValue.match(LINK_PROTOCOL_REGEX)) == null ? void 0 : _a[0];
|
|
4645
|
-
const defaultUrlWithoutProtocol = defaultValue.replace(
|
|
4646
|
-
LINK_PROTOCOL_REGEX,
|
|
4647
|
-
""
|
|
4648
|
-
);
|
|
4649
4669
|
const [isOpen, setIsOpen] = useState7(false);
|
|
4650
|
-
const [protocol, setProtocol] = useState7(defaultProtocol || "https://");
|
|
4651
4670
|
const [isEditing, setIsEditing] = useState7(!isVariable);
|
|
4652
4671
|
const linkInputRef = useRef7(null);
|
|
4653
4672
|
const { placeholderUrl = DEFAULT_PLACEHOLDER_URL } = useMailyContext();
|
|
4654
4673
|
const options = useVariableOptions(editor);
|
|
4655
4674
|
const renderVariable = options == null ? void 0 : options.renderVariable;
|
|
4656
4675
|
const variables = options == null ? void 0 : options.variables;
|
|
4657
|
-
const variableTriggerCharacter = (
|
|
4676
|
+
const variableTriggerCharacter = (_b = (_a = options == null ? void 0 : options.suggestion) == null ? void 0 : _a.char) != null ? _b : DEFAULT_VARIABLE_TRIGGER_CHAR;
|
|
4658
4677
|
const autoCompleteOptions = useMemo6(() => {
|
|
4659
|
-
const withoutTrigger =
|
|
4678
|
+
const withoutTrigger = defaultValue.replace(
|
|
4660
4679
|
new RegExp(variableTriggerCharacter, "g"),
|
|
4661
4680
|
""
|
|
4662
4681
|
);
|
|
@@ -4665,7 +4684,7 @@ function LinkInputPopover(props) {
|
|
|
4665
4684
|
from: "bubble-variable",
|
|
4666
4685
|
editor
|
|
4667
4686
|
}).map((variable) => variable.name);
|
|
4668
|
-
}, [variables, variableTriggerCharacter,
|
|
4687
|
+
}, [variables, variableTriggerCharacter, defaultValue, editor]);
|
|
4669
4688
|
const popoverButton = /* @__PURE__ */ jsx35(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx35(
|
|
4670
4689
|
BaseButton,
|
|
4671
4690
|
{
|
|
@@ -4673,130 +4692,105 @@ function LinkInputPopover(props) {
|
|
|
4673
4692
|
size: "sm",
|
|
4674
4693
|
type: "button",
|
|
4675
4694
|
className: "mly-size-7",
|
|
4676
|
-
"data-state": !!
|
|
4695
|
+
"data-state": !!defaultValue,
|
|
4677
4696
|
children: /* @__PURE__ */ jsx35(Icon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-midnight-gray" })
|
|
4678
4697
|
}
|
|
4679
4698
|
) });
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
+
return /* @__PURE__ */ jsxs17(
|
|
4700
|
+
Popover,
|
|
4701
|
+
{
|
|
4702
|
+
open: isOpen,
|
|
4703
|
+
onOpenChange: (open) => {
|
|
4704
|
+
setIsOpen(open);
|
|
4705
|
+
if (open) {
|
|
4706
|
+
setTimeout(() => {
|
|
4707
|
+
var _a2;
|
|
4708
|
+
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
4709
|
+
}, 0);
|
|
4710
|
+
}
|
|
4711
|
+
},
|
|
4712
|
+
children: [
|
|
4713
|
+
tooltip ? /* @__PURE__ */ jsxs17(Tooltip, { children: [
|
|
4714
|
+
/* @__PURE__ */ jsx35(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
4715
|
+
/* @__PURE__ */ jsx35(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
4716
|
+
] }) : popoverButton,
|
|
4717
|
+
/* @__PURE__ */ jsx35(
|
|
4718
|
+
PopoverContent,
|
|
4699
4719
|
{
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
},
|
|
4721
|
-
children: renderVariable({
|
|
4722
|
-
variable: {
|
|
4723
|
-
name: defaultUrlWithoutProtocol,
|
|
4724
|
-
valid: true
|
|
4725
|
-
},
|
|
4726
|
-
fallback: "",
|
|
4727
|
-
from: "bubble-variable",
|
|
4728
|
-
editor
|
|
4729
|
-
})
|
|
4730
|
-
}
|
|
4731
|
-
) }),
|
|
4732
|
-
isEditing && /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4733
|
-
/* @__PURE__ */ jsxs17("div", { className: "mly-relative", children: [
|
|
4734
|
-
/* @__PURE__ */ jsxs17(
|
|
4735
|
-
"select",
|
|
4720
|
+
align: "end",
|
|
4721
|
+
side: "top",
|
|
4722
|
+
className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
|
|
4723
|
+
sideOffset: 8,
|
|
4724
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
4725
|
+
children: /* @__PURE__ */ jsx35(
|
|
4726
|
+
"form",
|
|
4727
|
+
{
|
|
4728
|
+
onSubmit: (e) => {
|
|
4729
|
+
e.preventDefault();
|
|
4730
|
+
const input = linkInputRef.current;
|
|
4731
|
+
if (!input) {
|
|
4732
|
+
return;
|
|
4733
|
+
}
|
|
4734
|
+
onValueChange == null ? void 0 : onValueChange(input.value);
|
|
4735
|
+
setIsOpen(false);
|
|
4736
|
+
},
|
|
4737
|
+
children: /* @__PURE__ */ jsxs17("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
4738
|
+
!isEditing && /* @__PURE__ */ jsx35("div", { className: "mly-flex mly-h-8 mly-items-center mly-rounded-lg mly-border mly-border-gray-300 mly-bg-white mly-px-0.5", children: /* @__PURE__ */ jsx35(
|
|
4739
|
+
"button",
|
|
4736
4740
|
{
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
setProtocol(protocol2);
|
|
4744
|
-
const newValue = normalizeProtocol(
|
|
4745
|
-
((_a2 = linkInputRef.current) == null ? void 0 : _a2.value) || "",
|
|
4746
|
-
protocol2
|
|
4747
|
-
);
|
|
4748
|
-
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
4741
|
+
onClick: () => {
|
|
4742
|
+
setIsEditing(true);
|
|
4743
|
+
setTimeout(() => {
|
|
4744
|
+
var _a2;
|
|
4745
|
+
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
4746
|
+
}, 0);
|
|
4749
4747
|
},
|
|
4750
|
-
children:
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
size: 16,
|
|
4760
|
-
strokeWidth: 2,
|
|
4761
|
-
"aria-hidden": "true",
|
|
4762
|
-
role: "img"
|
|
4748
|
+
children: renderVariable({
|
|
4749
|
+
variable: {
|
|
4750
|
+
name: defaultValue,
|
|
4751
|
+
valid: true
|
|
4752
|
+
},
|
|
4753
|
+
fallback: "",
|
|
4754
|
+
from: "bubble-variable",
|
|
4755
|
+
editor
|
|
4756
|
+
})
|
|
4763
4757
|
}
|
|
4764
|
-
) })
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4758
|
+
) }),
|
|
4759
|
+
isEditing && /* @__PURE__ */ jsxs17("div", { className: "mly-relative", children: [
|
|
4760
|
+
/* @__PURE__ */ jsx35("div", { className: "mly-absolute mly-inset-y-0 mly-left-1.5 mly-z-10 mly-flex mly-items-center", children: /* @__PURE__ */ jsx35(LinkIcon2, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) }),
|
|
4761
|
+
/* @__PURE__ */ jsx35(
|
|
4762
|
+
InputAutocomplete,
|
|
4763
|
+
{
|
|
4764
|
+
editor,
|
|
4765
|
+
value: defaultValue,
|
|
4766
|
+
onValueChange: (value) => {
|
|
4767
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
4768
|
+
},
|
|
4769
|
+
autoCompleteOptions,
|
|
4770
|
+
ref: linkInputRef,
|
|
4771
|
+
placeholder: placeholderUrl,
|
|
4772
|
+
className: "-mly-ms-px mly-block mly-h-8 mly-w-56 mly-rounded-lg mly-border mly-border-gray-300 mly-px-2 mly-py-1.5 mly-pl-6 mly-pr-6 mly-text-sm mly-shadow-sm mly-outline-none placeholder:mly-text-gray-400",
|
|
4773
|
+
triggerChar: variableTriggerCharacter,
|
|
4774
|
+
onSelectOption: (value) => {
|
|
4775
|
+
var _a2;
|
|
4776
|
+
const isVariable2 = (_a2 = autoCompleteOptions.includes(value)) != null ? _a2 : false;
|
|
4777
|
+
if (isVariable2) {
|
|
4778
|
+
setIsEditing(false);
|
|
4779
|
+
}
|
|
4780
|
+
onValueChange == null ? void 0 : onValueChange(value, isVariable2);
|
|
4781
|
+
setIsOpen(false);
|
|
4782
|
+
}
|
|
4787
4783
|
}
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
] })
|
|
4794
|
-
] })
|
|
4784
|
+
)
|
|
4785
|
+
] })
|
|
4786
|
+
] })
|
|
4787
|
+
}
|
|
4788
|
+
)
|
|
4795
4789
|
}
|
|
4796
4790
|
)
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4791
|
+
]
|
|
4792
|
+
}
|
|
4793
|
+
);
|
|
4800
4794
|
}
|
|
4801
4795
|
|
|
4802
4796
|
// src/editor/components/image-menu/image-size.tsx
|
|
@@ -4825,19 +4819,22 @@ var useImageState = (editor) => {
|
|
|
4825
4819
|
const states = useEditorState3({
|
|
4826
4820
|
editor,
|
|
4827
4821
|
selector: ({ editor: editor2 }) => {
|
|
4828
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4822
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
4829
4823
|
return {
|
|
4830
4824
|
width: String(editor2.getAttributes("image").width),
|
|
4831
4825
|
height: String(editor2.getAttributes("image").height),
|
|
4832
4826
|
isImageActive: editor2.isActive("image"),
|
|
4833
4827
|
isLogoActive: editor2.isActive("logo"),
|
|
4834
4828
|
alignment: ((_a = editor2.getAttributes("image")) == null ? void 0 : _a.alignment) || ((_b = editor2.getAttributes("logo")) == null ? void 0 : _b.alignment),
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4829
|
+
borderRadius: (_c = editor2.getAttributes("image")) == null ? void 0 : _c.borderRadius,
|
|
4830
|
+
logoSize: ((_d = editor2.getAttributes("logo")) == null ? void 0 : _d.size) || DEFAULT_LOGO_SIZE,
|
|
4831
|
+
imageSrc: ((_e = editor2.getAttributes("image")) == null ? void 0 : _e.src) || ((_f = editor2.getAttributes("logo")) == null ? void 0 : _f.src) || "",
|
|
4832
|
+
isSrcVariable: (_j = (_i = (_g = editor2.getAttributes("image")) == null ? void 0 : _g.isSrcVariable) != null ? _i : (_h = editor2.getAttributes("logo")) == null ? void 0 : _h.isSrcVariable) != null ? _j : false,
|
|
4833
|
+
imageExternalLink: ((_k = editor2.getAttributes("image")) == null ? void 0 : _k.externalLink) || "",
|
|
4834
|
+
isExternalLinkVariable: (_l = editor2.getAttributes("image")) == null ? void 0 : _l.isExternalLinkVariable,
|
|
4835
|
+
lockAspectRatio: (_m = editor2.getAttributes("image")) == null ? void 0 : _m.lockAspectRatio,
|
|
4836
|
+
aspectRatio: (_n = editor2.getAttributes("image")) == null ? void 0 : _n.aspectRatio,
|
|
4837
|
+
currentShowIfKey: ((_o = editor2.getAttributes("image")) == null ? void 0 : _o.showIfKey) || ((_p = editor2.getAttributes("logo")) == null ? void 0 : _p.showIfKey) || ""
|
|
4841
4838
|
};
|
|
4842
4839
|
},
|
|
4843
4840
|
equalityFn: deepEql3
|
|
@@ -4846,7 +4843,7 @@ var useImageState = (editor) => {
|
|
|
4846
4843
|
};
|
|
4847
4844
|
|
|
4848
4845
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
4849
|
-
import { Fragment as
|
|
4846
|
+
import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4850
4847
|
function ImageBubbleMenu(props) {
|
|
4851
4848
|
var _a, _b, _c, _d;
|
|
4852
4849
|
const { editor, appendTo } = props;
|
|
@@ -4870,12 +4867,13 @@ function ImageBubbleMenu(props) {
|
|
|
4870
4867
|
maxWidth: "100%"
|
|
4871
4868
|
}
|
|
4872
4869
|
});
|
|
4870
|
+
const { lockAspectRatio } = state;
|
|
4873
4871
|
return /* @__PURE__ */ jsx37(
|
|
4874
4872
|
BubbleMenu3,
|
|
4875
4873
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4876
4874
|
className: "mly-flex mly-rounded-lg mly-border mly-border-gray-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
4877
4875
|
children: /* @__PURE__ */ jsxs19(TooltipProvider, { children: [
|
|
4878
|
-
state.isLogoActive && state.imageSrc && /* @__PURE__ */ jsxs19(
|
|
4876
|
+
state.isLogoActive && state.imageSrc && /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
4879
4877
|
/* @__PURE__ */ jsx37(
|
|
4880
4878
|
Select,
|
|
4881
4879
|
{
|
|
@@ -4947,8 +4945,26 @@ function ImageBubbleMenu(props) {
|
|
|
4947
4945
|
}
|
|
4948
4946
|
)
|
|
4949
4947
|
] }),
|
|
4950
|
-
state.isImageActive && state.imageSrc && /* @__PURE__ */ jsxs19(
|
|
4948
|
+
state.isImageActive && state.imageSrc && /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
4951
4949
|
/* @__PURE__ */ jsx37(Divider, {}),
|
|
4950
|
+
/* @__PURE__ */ jsx37(
|
|
4951
|
+
Select,
|
|
4952
|
+
{
|
|
4953
|
+
label: "Border Radius",
|
|
4954
|
+
value: state == null ? void 0 : state.borderRadius,
|
|
4955
|
+
options: borderRadius.map((value) => ({
|
|
4956
|
+
value: String(value.value),
|
|
4957
|
+
label: value.name
|
|
4958
|
+
})),
|
|
4959
|
+
onValueChange: (value) => {
|
|
4960
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", {
|
|
4961
|
+
borderRadius: Number(value)
|
|
4962
|
+
}).run();
|
|
4963
|
+
},
|
|
4964
|
+
tooltip: "Border Radius",
|
|
4965
|
+
className: "mly-capitalize"
|
|
4966
|
+
}
|
|
4967
|
+
),
|
|
4952
4968
|
/* @__PURE__ */ jsxs19("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
4953
4969
|
/* @__PURE__ */ jsx37(
|
|
4954
4970
|
ImageSize,
|
|
@@ -4956,7 +4972,14 @@ function ImageBubbleMenu(props) {
|
|
|
4956
4972
|
dimension: "width",
|
|
4957
4973
|
value: (_c = state == null ? void 0 : state.width) != null ? _c : "",
|
|
4958
4974
|
onValueChange: (value) => {
|
|
4959
|
-
|
|
4975
|
+
const width = Math.min(Number(value) || 0, IMAGE_MAX_WIDTH);
|
|
4976
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", __spreadValues({
|
|
4977
|
+
width: String(width)
|
|
4978
|
+
}, lockAspectRatio && value ? {
|
|
4979
|
+
height: String(
|
|
4980
|
+
getNewHeight(width, state.aspectRatio)
|
|
4981
|
+
)
|
|
4982
|
+
} : {})).run();
|
|
4960
4983
|
}
|
|
4961
4984
|
}
|
|
4962
4985
|
),
|
|
@@ -4966,9 +4989,33 @@ function ImageBubbleMenu(props) {
|
|
|
4966
4989
|
dimension: "height",
|
|
4967
4990
|
value: (_d = state == null ? void 0 : state.height) != null ? _d : "",
|
|
4968
4991
|
onValueChange: (value) => {
|
|
4969
|
-
|
|
4992
|
+
const height = Number(value) || 0;
|
|
4993
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", __spreadValues({
|
|
4994
|
+
height: String(height)
|
|
4995
|
+
}, lockAspectRatio && value ? {
|
|
4996
|
+
width: String(
|
|
4997
|
+
getNewWidth(height, state.aspectRatio)
|
|
4998
|
+
)
|
|
4999
|
+
} : {})).run();
|
|
4970
5000
|
}
|
|
4971
5001
|
}
|
|
5002
|
+
),
|
|
5003
|
+
/* @__PURE__ */ jsx37(
|
|
5004
|
+
BubbleMenuButton,
|
|
5005
|
+
{
|
|
5006
|
+
isActive: () => lockAspectRatio,
|
|
5007
|
+
command: () => {
|
|
5008
|
+
const width = Number(state.width) || 0;
|
|
5009
|
+
const height = Number(state.height) || 0;
|
|
5010
|
+
const aspectRatio = width / height;
|
|
5011
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", {
|
|
5012
|
+
lockAspectRatio: !lockAspectRatio,
|
|
5013
|
+
aspectRatio
|
|
5014
|
+
}).run();
|
|
5015
|
+
},
|
|
5016
|
+
icon: lockAspectRatio ? LockIcon : LockOpenIcon,
|
|
5017
|
+
tooltip: "Lock Aspect Ratio"
|
|
5018
|
+
}
|
|
4972
5019
|
)
|
|
4973
5020
|
] })
|
|
4974
5021
|
] }),
|
|
@@ -5616,7 +5663,7 @@ var useSectionState = (editor) => {
|
|
|
5616
5663
|
};
|
|
5617
5664
|
|
|
5618
5665
|
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
5619
|
-
import { Fragment as
|
|
5666
|
+
import { Fragment as Fragment5, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5620
5667
|
function SectionBubbleMenu(props) {
|
|
5621
5668
|
const { appendTo, editor } = props;
|
|
5622
5669
|
if (!editor) {
|
|
@@ -5852,7 +5899,7 @@ function SectionBubbleMenu(props) {
|
|
|
5852
5899
|
editor
|
|
5853
5900
|
}
|
|
5854
5901
|
),
|
|
5855
|
-
state.isColumnsActive && /* @__PURE__ */ jsxs24(
|
|
5902
|
+
state.isColumnsActive && /* @__PURE__ */ jsxs24(Fragment5, { children: [
|
|
5856
5903
|
/* @__PURE__ */ jsx44(Divider, {}),
|
|
5857
5904
|
/* @__PURE__ */ jsxs24(Popover, { children: [
|
|
5858
5905
|
/* @__PURE__ */ jsxs24(PopoverTrigger, { className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray", children: [
|
|
@@ -7110,6 +7157,7 @@ var ButtonExtension = Node9.create({
|
|
|
7110
7157
|
// src/editor/nodes/image/image.ts
|
|
7111
7158
|
import TiptapImage2 from "@tiptap/extension-image";
|
|
7112
7159
|
import { ReactNodeViewRenderer as ReactNodeViewRenderer5 } from "@tiptap/react";
|
|
7160
|
+
var DEFAULT_IMAGE_BORDER_RADIUS = 0;
|
|
7113
7161
|
var ImageExtension = TiptapImage2.extend({
|
|
7114
7162
|
addAttributes() {
|
|
7115
7163
|
var _a;
|
|
@@ -7173,6 +7221,17 @@ var ImageExtension = TiptapImage2.extend({
|
|
|
7173
7221
|
};
|
|
7174
7222
|
}
|
|
7175
7223
|
},
|
|
7224
|
+
borderRadius: {
|
|
7225
|
+
default: DEFAULT_IMAGE_BORDER_RADIUS,
|
|
7226
|
+
parseHTML: (element) => {
|
|
7227
|
+
return Number(element.getAttribute("data-border-radius"));
|
|
7228
|
+
},
|
|
7229
|
+
renderHTML: (attributes) => {
|
|
7230
|
+
return {
|
|
7231
|
+
"data-border-radius": attributes.borderRadius
|
|
7232
|
+
};
|
|
7233
|
+
}
|
|
7234
|
+
},
|
|
7176
7235
|
// Later we will remove this attribute
|
|
7177
7236
|
// and use the `src` attribute instead when implement
|
|
7178
7237
|
// the URL variable feature
|
|
@@ -7190,6 +7249,34 @@ var ImageExtension = TiptapImage2.extend({
|
|
|
7190
7249
|
};
|
|
7191
7250
|
}
|
|
7192
7251
|
},
|
|
7252
|
+
aspectRatio: {
|
|
7253
|
+
default: null,
|
|
7254
|
+
parseHTML: (element) => {
|
|
7255
|
+
return element.getAttribute("data-aspect-ratio") || null;
|
|
7256
|
+
},
|
|
7257
|
+
renderHTML: (attributes) => {
|
|
7258
|
+
if (!(attributes == null ? void 0 : attributes.aspectRatio)) {
|
|
7259
|
+
return {};
|
|
7260
|
+
}
|
|
7261
|
+
return {
|
|
7262
|
+
"data-aspect-ratio": attributes == null ? void 0 : attributes.aspectRatio
|
|
7263
|
+
};
|
|
7264
|
+
}
|
|
7265
|
+
},
|
|
7266
|
+
lockAspectRatio: {
|
|
7267
|
+
default: true,
|
|
7268
|
+
parseHTML: (element) => {
|
|
7269
|
+
return element.getAttribute("data-lock-aspect-ratio") === "true";
|
|
7270
|
+
},
|
|
7271
|
+
renderHTML: (attributes) => {
|
|
7272
|
+
if (!attributes.lockAspectRatio) {
|
|
7273
|
+
return {};
|
|
7274
|
+
}
|
|
7275
|
+
return {
|
|
7276
|
+
"data-lock-aspect-ratio": "true"
|
|
7277
|
+
};
|
|
7278
|
+
}
|
|
7279
|
+
},
|
|
7193
7280
|
showIfKey: {
|
|
7194
7281
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
7195
7282
|
parseHTML: (element) => {
|
|
@@ -7269,7 +7356,24 @@ function HTMLCodeBlockView(props) {
|
|
|
7269
7356
|
"mly-not-prose mly-rounded-lg mly-border mly-border-gray-200 mly-p-2",
|
|
7270
7357
|
isEmpty && "mly-min-h-[42px]"
|
|
7271
7358
|
),
|
|
7272
|
-
|
|
7359
|
+
ref: (node2) => {
|
|
7360
|
+
if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
|
|
7361
|
+
return;
|
|
7362
|
+
}
|
|
7363
|
+
const shadow = node2.attachShadow({ mode: "open" });
|
|
7364
|
+
const sheet = new CSSStyleSheet();
|
|
7365
|
+
sheet.replaceSync(`
|
|
7366
|
+
* { font-family: 'Inter', sans-serif; }
|
|
7367
|
+
blockquote, h1, h2, h3, img, li, ol, p, ul {
|
|
7368
|
+
margin-top: 0;
|
|
7369
|
+
margin-bottom: 0;
|
|
7370
|
+
}
|
|
7371
|
+
`);
|
|
7372
|
+
shadow.adoptedStyleSheets = [sheet];
|
|
7373
|
+
const container = document.createElement("div");
|
|
7374
|
+
container.innerHTML = html2;
|
|
7375
|
+
shadow.appendChild(container);
|
|
7376
|
+
},
|
|
7273
7377
|
contentEditable: false,
|
|
7274
7378
|
onClick: () => {
|
|
7275
7379
|
if (!isEmpty) {
|
|
@@ -7694,21 +7798,123 @@ import { ReactRenderer } from "@tiptap/react";
|
|
|
7694
7798
|
import {
|
|
7695
7799
|
forwardRef as forwardRef8,
|
|
7696
7800
|
Fragment as Fragment7,
|
|
7697
|
-
useCallback as
|
|
7698
|
-
useEffect as
|
|
7801
|
+
useCallback as useCallback11,
|
|
7802
|
+
useEffect as useEffect8,
|
|
7699
7803
|
useImperativeHandle as useImperativeHandle2,
|
|
7700
7804
|
useLayoutEffect as useLayoutEffect2,
|
|
7701
|
-
useRef as
|
|
7702
|
-
useState as
|
|
7805
|
+
useRef as useRef11,
|
|
7806
|
+
useState as useState11
|
|
7703
7807
|
} from "react";
|
|
7704
7808
|
import tippy2 from "tippy.js";
|
|
7809
|
+
|
|
7810
|
+
// src/editor/extensions/slash-command/slash-command-item.tsx
|
|
7705
7811
|
import { ChevronRightIcon } from "lucide-react";
|
|
7706
|
-
import {
|
|
7812
|
+
import { useCallback as useCallback10, useState as useState10, useRef as useRef10, useEffect as useEffect7 } from "react";
|
|
7813
|
+
import { Fragment as Fragment6, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7814
|
+
function SlashCommandItem(props) {
|
|
7815
|
+
var _a;
|
|
7816
|
+
const {
|
|
7817
|
+
item,
|
|
7818
|
+
groupIndex,
|
|
7819
|
+
commandIndex,
|
|
7820
|
+
selectedGroupIndex,
|
|
7821
|
+
selectedCommandIndex,
|
|
7822
|
+
editor,
|
|
7823
|
+
activeCommandRef,
|
|
7824
|
+
selectItem
|
|
7825
|
+
} = props;
|
|
7826
|
+
const [open, setOpen] = useState10(false);
|
|
7827
|
+
const [isHovered, setIsHovered] = useState10(false);
|
|
7828
|
+
const isActive = groupIndex === selectedGroupIndex && commandIndex === selectedCommandIndex;
|
|
7829
|
+
const isSubCommand = item && "commands" in item;
|
|
7830
|
+
const shouldOpenTooltip = !!(item == null ? void 0 : item.preview) && (isActive || isHovered);
|
|
7831
|
+
const hasRenderFunction = typeof item.render === "function";
|
|
7832
|
+
const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
|
|
7833
|
+
let value = /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
7834
|
+
/* @__PURE__ */ jsx53("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
|
|
7835
|
+
/* @__PURE__ */ jsxs31("div", { className: "mly-grow", children: [
|
|
7836
|
+
/* @__PURE__ */ jsx53("p", { className: "mly-font-medium", children: item.title }),
|
|
7837
|
+
/* @__PURE__ */ jsx53("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
|
|
7838
|
+
] }),
|
|
7839
|
+
isSubCommand && /* @__PURE__ */ jsx53("span", { className: "mly-block mly-px-1 mly-text-gray-400", children: /* @__PURE__ */ jsx53(ChevronRightIcon, { className: "mly-size-3.5 mly-stroke-[2.5]" }) })
|
|
7840
|
+
] });
|
|
7841
|
+
if (renderFunctionValue !== null && renderFunctionValue !== true) {
|
|
7842
|
+
value = renderFunctionValue;
|
|
7843
|
+
}
|
|
7844
|
+
const openTimerRef = useRef10(0);
|
|
7845
|
+
const handleDelayedOpen = useCallback10(() => {
|
|
7846
|
+
window.clearTimeout(openTimerRef.current);
|
|
7847
|
+
const delay = 200;
|
|
7848
|
+
openTimerRef.current = window.setTimeout(() => {
|
|
7849
|
+
setOpen(true);
|
|
7850
|
+
openTimerRef.current = 0;
|
|
7851
|
+
}, delay);
|
|
7852
|
+
}, [setOpen]);
|
|
7853
|
+
useEffect7(() => {
|
|
7854
|
+
if (shouldOpenTooltip) {
|
|
7855
|
+
handleDelayedOpen();
|
|
7856
|
+
} else {
|
|
7857
|
+
window.clearTimeout(openTimerRef.current);
|
|
7858
|
+
openTimerRef.current = 0;
|
|
7859
|
+
setOpen(false);
|
|
7860
|
+
}
|
|
7861
|
+
}, [shouldOpenTooltip]);
|
|
7862
|
+
useEffect7(() => {
|
|
7863
|
+
return () => {
|
|
7864
|
+
if (openTimerRef.current) {
|
|
7865
|
+
window.clearTimeout(openTimerRef.current);
|
|
7866
|
+
openTimerRef.current = 0;
|
|
7867
|
+
}
|
|
7868
|
+
};
|
|
7869
|
+
}, []);
|
|
7870
|
+
return /* @__PURE__ */ jsxs31(Tooltip, { open, children: [
|
|
7871
|
+
/* @__PURE__ */ jsx53(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx53(
|
|
7872
|
+
"button",
|
|
7873
|
+
{
|
|
7874
|
+
className: cn(
|
|
7875
|
+
"mly-flex mly-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-gray-900 hover:mly-bg-gray-100 hover:mly-text-gray-900",
|
|
7876
|
+
isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
|
|
7877
|
+
),
|
|
7878
|
+
onClick: () => selectItem(groupIndex, commandIndex),
|
|
7879
|
+
onMouseEnter: () => setIsHovered(true),
|
|
7880
|
+
onMouseLeave: () => setIsHovered(false),
|
|
7881
|
+
type: "button",
|
|
7882
|
+
ref: isActive ? activeCommandRef : null,
|
|
7883
|
+
children: value
|
|
7884
|
+
}
|
|
7885
|
+
) }),
|
|
7886
|
+
/* @__PURE__ */ jsx53(
|
|
7887
|
+
TooltipContent,
|
|
7888
|
+
{
|
|
7889
|
+
side: "right",
|
|
7890
|
+
sideOffset: 10,
|
|
7891
|
+
className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
|
|
7892
|
+
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
7893
|
+
/* @__PURE__ */ jsx53("figure", { className: "mly-relative mly-aspect-[2.5] mly-w-full mly-overflow-hidden mly-rounded-md mly-border mly-border-gray-200", children: /* @__PURE__ */ jsx53(
|
|
7894
|
+
"img",
|
|
7895
|
+
{
|
|
7896
|
+
src: item == null ? void 0 : item.preview,
|
|
7897
|
+
alt: item == null ? void 0 : item.title,
|
|
7898
|
+
className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
|
|
7899
|
+
}
|
|
7900
|
+
) }),
|
|
7901
|
+
/* @__PURE__ */ jsx53("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
|
|
7902
|
+
] })
|
|
7903
|
+
}
|
|
7904
|
+
)
|
|
7905
|
+
] }, `${groupIndex}-${commandIndex}`);
|
|
7906
|
+
}
|
|
7907
|
+
|
|
7908
|
+
// src/editor/extensions/slash-command/slash-command-view.tsx
|
|
7909
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7707
7910
|
var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
7708
|
-
const { items: groups, command, editor } = props;
|
|
7709
|
-
const [selectedGroupIndex, setSelectedGroupIndex] =
|
|
7710
|
-
const [selectedCommandIndex, setSelectedCommandIndex] =
|
|
7711
|
-
const
|
|
7911
|
+
const { items: groups, command, editor, range, query } = props;
|
|
7912
|
+
const [selectedGroupIndex, setSelectedGroupIndex] = useState11(0);
|
|
7913
|
+
const [selectedCommandIndex, setSelectedCommandIndex] = useState11(0);
|
|
7914
|
+
const prevQuery = useRef11("");
|
|
7915
|
+
const prevSelectedGroupIndex = useRef11(0);
|
|
7916
|
+
const prevSelectedCommandIndex = useRef11(0);
|
|
7917
|
+
const selectItem = useCallback11(
|
|
7712
7918
|
(groupIndex, commandIndex) => {
|
|
7713
7919
|
const item = groups[groupIndex].commands[commandIndex];
|
|
7714
7920
|
if (!item) {
|
|
@@ -7720,62 +7926,94 @@ var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
|
7720
7926
|
);
|
|
7721
7927
|
useImperativeHandle2(ref, () => ({
|
|
7722
7928
|
onKeyDown: ({ event }) => {
|
|
7723
|
-
var _a, _b;
|
|
7724
|
-
const navigationKeys = [
|
|
7929
|
+
var _a, _b, _c, _d;
|
|
7930
|
+
const navigationKeys = [
|
|
7931
|
+
"ArrowUp",
|
|
7932
|
+
"ArrowDown",
|
|
7933
|
+
"Enter",
|
|
7934
|
+
"ArrowLeft",
|
|
7935
|
+
"ArrowRight"
|
|
7936
|
+
];
|
|
7725
7937
|
if (navigationKeys.includes(event.key)) {
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7938
|
+
let newCommandIndex = selectedCommandIndex;
|
|
7939
|
+
let newGroupIndex = selectedGroupIndex;
|
|
7940
|
+
switch (event.key) {
|
|
7941
|
+
case "ArrowLeft":
|
|
7942
|
+
event.preventDefault();
|
|
7943
|
+
const group = groups == null ? void 0 : groups[selectedGroupIndex];
|
|
7944
|
+
const isInsideSubCommand = group && "id" in group;
|
|
7945
|
+
if (!isInsideSubCommand) {
|
|
7946
|
+
return false;
|
|
7947
|
+
}
|
|
7948
|
+
editor.chain().focus().insertContentAt(range, `/${prevQuery.current}`).run();
|
|
7949
|
+
setTimeout(() => {
|
|
7950
|
+
setSelectedGroupIndex(prevSelectedGroupIndex.current);
|
|
7951
|
+
setSelectedCommandIndex(prevSelectedCommandIndex.current);
|
|
7952
|
+
}, 0);
|
|
7953
|
+
return true;
|
|
7954
|
+
case "ArrowRight":
|
|
7955
|
+
event.preventDefault();
|
|
7956
|
+
const command2 = (_b = (_a = groups == null ? void 0 : groups[selectedGroupIndex]) == null ? void 0 : _a.commands) == null ? void 0 : _b[selectedCommandIndex];
|
|
7957
|
+
const isSelectingSubCommand = command2 && "commands" in command2;
|
|
7958
|
+
if (!isSelectingSubCommand) {
|
|
7959
|
+
return false;
|
|
7960
|
+
}
|
|
7961
|
+
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7962
|
+
prevQuery.current = query;
|
|
7963
|
+
prevSelectedGroupIndex.current = selectedGroupIndex;
|
|
7964
|
+
prevSelectedCommandIndex.current = selectedCommandIndex;
|
|
7965
|
+
return true;
|
|
7966
|
+
case "Enter":
|
|
7967
|
+
if (!groups.length) {
|
|
7968
|
+
return false;
|
|
7969
|
+
}
|
|
7970
|
+
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7971
|
+
prevQuery.current = query;
|
|
7972
|
+
prevSelectedGroupIndex.current = selectedGroupIndex;
|
|
7973
|
+
prevSelectedCommandIndex.current = selectedCommandIndex;
|
|
7974
|
+
return true;
|
|
7975
|
+
case "ArrowUp":
|
|
7976
|
+
if (!groups.length) {
|
|
7977
|
+
return false;
|
|
7978
|
+
}
|
|
7979
|
+
newCommandIndex = selectedCommandIndex - 1;
|
|
7980
|
+
newGroupIndex = selectedGroupIndex;
|
|
7981
|
+
if (newCommandIndex < 0) {
|
|
7982
|
+
newGroupIndex = selectedGroupIndex - 1;
|
|
7983
|
+
newCommandIndex = ((_c = groups[newGroupIndex]) == null ? void 0 : _c.commands.length) - 1 || 0;
|
|
7984
|
+
}
|
|
7985
|
+
if (newGroupIndex < 0) {
|
|
7986
|
+
newGroupIndex = groups.length - 1;
|
|
7987
|
+
newCommandIndex = ((_d = groups[newGroupIndex]) == null ? void 0 : _d.commands.length) - 1 || 0;
|
|
7988
|
+
}
|
|
7989
|
+
setSelectedGroupIndex(newGroupIndex);
|
|
7990
|
+
setSelectedCommandIndex(newCommandIndex);
|
|
7991
|
+
return true;
|
|
7992
|
+
case "ArrowDown":
|
|
7993
|
+
if (!groups.length) {
|
|
7994
|
+
return false;
|
|
7995
|
+
}
|
|
7996
|
+
const commands = groups[selectedGroupIndex].commands;
|
|
7997
|
+
newCommandIndex = selectedCommandIndex + 1;
|
|
7998
|
+
newGroupIndex = selectedGroupIndex;
|
|
7999
|
+
if (commands.length - 1 < newCommandIndex) {
|
|
8000
|
+
newCommandIndex = 0;
|
|
8001
|
+
newGroupIndex = selectedGroupIndex + 1;
|
|
8002
|
+
}
|
|
8003
|
+
if (groups.length - 1 < newGroupIndex) {
|
|
8004
|
+
newGroupIndex = 0;
|
|
8005
|
+
}
|
|
8006
|
+
setSelectedGroupIndex(newGroupIndex);
|
|
8007
|
+
setSelectedCommandIndex(newCommandIndex);
|
|
8008
|
+
return true;
|
|
8009
|
+
default:
|
|
7764
8010
|
return false;
|
|
7765
|
-
}
|
|
7766
|
-
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7767
|
-
return true;
|
|
7768
8011
|
}
|
|
7769
|
-
return false;
|
|
7770
8012
|
}
|
|
7771
8013
|
}
|
|
7772
8014
|
}));
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
setSelectedCommandIndex(0);
|
|
7776
|
-
}, [groups]);
|
|
7777
|
-
const commandListContainer = useRef10(null);
|
|
7778
|
-
const activeCommandRef = useRef10(null);
|
|
8015
|
+
const commandListContainer = useRef11(null);
|
|
8016
|
+
const activeCommandRef = useRef11(null);
|
|
7779
8017
|
useLayoutEffect2(() => {
|
|
7780
8018
|
const container = commandListContainer == null ? void 0 : commandListContainer.current;
|
|
7781
8019
|
const activeCommandContainer = activeCommandRef == null ? void 0 : activeCommandRef.current;
|
|
@@ -7783,6 +8021,7 @@ var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
|
7783
8021
|
return;
|
|
7784
8022
|
}
|
|
7785
8023
|
const { offsetTop, offsetHeight } = activeCommandContainer;
|
|
8024
|
+
container.style.transition = "none";
|
|
7786
8025
|
container.scrollTop = offsetTop - offsetHeight;
|
|
7787
8026
|
}, [
|
|
7788
8027
|
selectedGroupIndex,
|
|
@@ -7790,15 +8029,26 @@ var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
|
7790
8029
|
commandListContainer,
|
|
7791
8030
|
activeCommandRef
|
|
7792
8031
|
]);
|
|
7793
|
-
|
|
7794
|
-
|
|
8032
|
+
useEffect8(() => {
|
|
8033
|
+
setSelectedGroupIndex(0);
|
|
8034
|
+
setSelectedCommandIndex(0);
|
|
8035
|
+
}, [groups]);
|
|
8036
|
+
useEffect8(() => {
|
|
8037
|
+
return () => {
|
|
8038
|
+
prevQuery.current = "";
|
|
8039
|
+
prevSelectedGroupIndex.current = 0;
|
|
8040
|
+
prevSelectedCommandIndex.current = 0;
|
|
8041
|
+
};
|
|
8042
|
+
}, []);
|
|
8043
|
+
return groups.length > 0 ? /* @__PURE__ */ jsx54(TooltipProvider, { children: /* @__PURE__ */ jsxs32("div", { className: "mly-z-50 mly-w-72 mly-overflow-hidden mly-rounded-md mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
|
|
8044
|
+
/* @__PURE__ */ jsx54(
|
|
7795
8045
|
"div",
|
|
7796
8046
|
{
|
|
7797
8047
|
id: "slash-command",
|
|
7798
8048
|
ref: commandListContainer,
|
|
7799
|
-
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto
|
|
7800
|
-
children: groups.map((group, groupIndex) => /* @__PURE__ */
|
|
7801
|
-
/* @__PURE__ */
|
|
8049
|
+
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto",
|
|
8050
|
+
children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs32(Fragment7, { children: [
|
|
8051
|
+
/* @__PURE__ */ jsx54(
|
|
7802
8052
|
"span",
|
|
7803
8053
|
{
|
|
7804
8054
|
className: cn(
|
|
@@ -7808,72 +8058,35 @@ var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
|
7808
8058
|
children: group.title
|
|
7809
8059
|
}
|
|
7810
8060
|
),
|
|
7811
|
-
/* @__PURE__ */
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
value = renderFunctionValue;
|
|
7827
|
-
}
|
|
7828
|
-
const shouldOpenTooltip = !!(item == null ? void 0 : item.preview) && isActive;
|
|
7829
|
-
return /* @__PURE__ */ jsxs31(Tooltip, { open: shouldOpenTooltip, children: [
|
|
7830
|
-
/* @__PURE__ */ jsx53(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx53(
|
|
7831
|
-
"button",
|
|
7832
|
-
{
|
|
7833
|
-
className: cn(
|
|
7834
|
-
"mly-flex mly-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-gray-900 hover:mly-bg-gray-100 hover:mly-text-gray-900",
|
|
7835
|
-
isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
|
|
7836
|
-
),
|
|
7837
|
-
onClick: () => selectItem(groupIndex, commandIndex),
|
|
7838
|
-
type: "button",
|
|
7839
|
-
ref: isActive ? activeCommandRef : null,
|
|
7840
|
-
children: value
|
|
7841
|
-
}
|
|
7842
|
-
) }),
|
|
7843
|
-
/* @__PURE__ */ jsx53(
|
|
7844
|
-
TooltipContent,
|
|
7845
|
-
{
|
|
7846
|
-
side: "right",
|
|
7847
|
-
sideOffset: 10,
|
|
7848
|
-
className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
|
|
7849
|
-
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ jsxs31(Fragment8, { children: [
|
|
7850
|
-
/* @__PURE__ */ jsx53("figure", { className: "mly-relative mly-aspect-[2.5] mly-w-full mly-overflow-hidden mly-rounded-md mly-border mly-border-gray-200", children: /* @__PURE__ */ jsx53(
|
|
7851
|
-
"img",
|
|
7852
|
-
{
|
|
7853
|
-
src: item == null ? void 0 : item.preview,
|
|
7854
|
-
alt: item == null ? void 0 : item.title,
|
|
7855
|
-
className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
|
|
7856
|
-
}
|
|
7857
|
-
) }),
|
|
7858
|
-
/* @__PURE__ */ jsx53("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
|
|
7859
|
-
] })
|
|
7860
|
-
}
|
|
7861
|
-
)
|
|
7862
|
-
] }, commandIndex);
|
|
8061
|
+
/* @__PURE__ */ jsx54("div", { className: "mly-space-y-0.5 mly-p-1", children: group.commands.map((item, commandIndex) => {
|
|
8062
|
+
return /* @__PURE__ */ jsx54(
|
|
8063
|
+
SlashCommandItem,
|
|
8064
|
+
{
|
|
8065
|
+
item,
|
|
8066
|
+
groupIndex,
|
|
8067
|
+
commandIndex,
|
|
8068
|
+
selectedGroupIndex,
|
|
8069
|
+
selectedCommandIndex,
|
|
8070
|
+
selectItem: () => selectItem(groupIndex, commandIndex),
|
|
8071
|
+
editor,
|
|
8072
|
+
activeCommandRef
|
|
8073
|
+
},
|
|
8074
|
+
commandIndex
|
|
8075
|
+
);
|
|
7863
8076
|
}) })
|
|
7864
8077
|
] }, groupIndex))
|
|
7865
8078
|
}
|
|
7866
8079
|
),
|
|
7867
|
-
/* @__PURE__ */
|
|
7868
|
-
/* @__PURE__ */
|
|
7869
|
-
/* @__PURE__ */
|
|
7870
|
-
/* @__PURE__ */
|
|
8080
|
+
/* @__PURE__ */ jsx54("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ jsxs32("div", { className: "mly-flex mly-items-center", children: [
|
|
8081
|
+
/* @__PURE__ */ jsxs32("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
8082
|
+
/* @__PURE__ */ jsx54("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
8083
|
+
/* @__PURE__ */ jsx54("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
7871
8084
|
" ",
|
|
7872
8085
|
"to navigate"
|
|
7873
8086
|
] }),
|
|
7874
|
-
/* @__PURE__ */
|
|
7875
|
-
/* @__PURE__ */
|
|
7876
|
-
/* @__PURE__ */
|
|
8087
|
+
/* @__PURE__ */ jsx54("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
8088
|
+
/* @__PURE__ */ jsxs32("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
8089
|
+
/* @__PURE__ */ jsx54("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
7877
8090
|
" ",
|
|
7878
8091
|
"to select"
|
|
7879
8092
|
] })
|
|
@@ -7976,24 +8189,36 @@ function getSlashCommandSuggestions(groups = DEFAULT_SLASH_COMMANDS) {
|
|
|
7976
8189
|
});
|
|
7977
8190
|
},
|
|
7978
8191
|
onUpdate: (props) => {
|
|
8192
|
+
var _a;
|
|
8193
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8194
|
+
if (!currentPopup || ((_a = currentPopup == null ? void 0 : currentPopup.state) == null ? void 0 : _a.isDestroyed)) {
|
|
8195
|
+
return;
|
|
8196
|
+
}
|
|
7979
8197
|
component == null ? void 0 : component.updateProps(props);
|
|
7980
|
-
|
|
8198
|
+
currentPopup.setProps({
|
|
7981
8199
|
getReferenceClientRect: props.clientRect
|
|
7982
8200
|
});
|
|
7983
8201
|
},
|
|
7984
8202
|
onKeyDown: (props) => {
|
|
7985
|
-
var _a;
|
|
8203
|
+
var _a, _b;
|
|
7986
8204
|
if (props.event.key === "Escape") {
|
|
7987
|
-
popup == null ? void 0 : popup[0]
|
|
8205
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8206
|
+
if (!((_a = currentPopup == null ? void 0 : currentPopup.state) == null ? void 0 : _a.isDestroyed)) {
|
|
8207
|
+
currentPopup == null ? void 0 : currentPopup.destroy();
|
|
8208
|
+
}
|
|
8209
|
+
component == null ? void 0 : component.destroy();
|
|
7988
8210
|
return true;
|
|
7989
8211
|
}
|
|
7990
|
-
return (
|
|
8212
|
+
return (_b = component == null ? void 0 : component.ref) == null ? void 0 : _b.onKeyDown(props);
|
|
7991
8213
|
},
|
|
7992
8214
|
onExit: () => {
|
|
7993
8215
|
if (!popup || !(popup == null ? void 0 : popup[0]) || !component) {
|
|
7994
8216
|
return;
|
|
7995
8217
|
}
|
|
7996
|
-
popup == null ? void 0 : popup[0]
|
|
8218
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8219
|
+
if (!currentPopup.state.isDestroyed) {
|
|
8220
|
+
currentPopup.destroy();
|
|
8221
|
+
}
|
|
7997
8222
|
component == null ? void 0 : component.destroy();
|
|
7998
8223
|
}
|
|
7999
8224
|
};
|
|
@@ -8003,13 +8228,13 @@ function getSlashCommandSuggestions(groups = DEFAULT_SLASH_COMMANDS) {
|
|
|
8003
8228
|
|
|
8004
8229
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
8005
8230
|
import { ReactRenderer as ReactRenderer2 } from "@tiptap/react";
|
|
8006
|
-
import { forwardRef as forwardRef9, useImperativeHandle as useImperativeHandle3, useRef as
|
|
8231
|
+
import { forwardRef as forwardRef9, useImperativeHandle as useImperativeHandle3, useRef as useRef12 } from "react";
|
|
8007
8232
|
import tippy3 from "tippy.js";
|
|
8008
|
-
import { jsx as
|
|
8233
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
8009
8234
|
var VariableList = forwardRef9((props, ref) => {
|
|
8010
8235
|
var _a;
|
|
8011
8236
|
const { items = [], editor } = props;
|
|
8012
|
-
const popoverRef =
|
|
8237
|
+
const popoverRef = useRef12(null);
|
|
8013
8238
|
const VariableSuggestionPopoverComponent = (_a = useVariableOptions(editor)) == null ? void 0 : _a.variableSuggestionsPopover;
|
|
8014
8239
|
useImperativeHandle3(ref, () => ({
|
|
8015
8240
|
onKeyDown: ({ event }) => {
|
|
@@ -8034,7 +8259,7 @@ var VariableList = forwardRef9((props, ref) => {
|
|
|
8034
8259
|
return false;
|
|
8035
8260
|
}
|
|
8036
8261
|
}));
|
|
8037
|
-
return /* @__PURE__ */
|
|
8262
|
+
return /* @__PURE__ */ jsx55(
|
|
8038
8263
|
VariableSuggestionPopoverComponent,
|
|
8039
8264
|
{
|
|
8040
8265
|
items,
|
|
@@ -8256,7 +8481,7 @@ var useTextMenuState = (editor) => {
|
|
|
8256
8481
|
};
|
|
8257
8482
|
|
|
8258
8483
|
// src/editor/components/text-menu/text-bubble-content.tsx
|
|
8259
|
-
import { Fragment as
|
|
8484
|
+
import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
8260
8485
|
function TextBubbleContent(props) {
|
|
8261
8486
|
var _a, _b, _c, _d;
|
|
8262
8487
|
const { editor, showListMenu = true } = props;
|
|
@@ -8300,9 +8525,9 @@ function TextBubbleContent(props) {
|
|
|
8300
8525
|
tooltip: "Code"
|
|
8301
8526
|
}
|
|
8302
8527
|
];
|
|
8303
|
-
return /* @__PURE__ */
|
|
8304
|
-
items.map((item, index) => /* @__PURE__ */
|
|
8305
|
-
/* @__PURE__ */
|
|
8528
|
+
return /* @__PURE__ */ jsxs33(Fragment8, { children: [
|
|
8529
|
+
items.map((item, index) => /* @__PURE__ */ jsx56(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
8530
|
+
/* @__PURE__ */ jsx56(
|
|
8306
8531
|
AlignmentSwitch,
|
|
8307
8532
|
{
|
|
8308
8533
|
alignment: state.textAlign,
|
|
@@ -8311,8 +8536,8 @@ function TextBubbleContent(props) {
|
|
|
8311
8536
|
}
|
|
8312
8537
|
}
|
|
8313
8538
|
),
|
|
8314
|
-
!state.isListActive && showListMenu && /* @__PURE__ */
|
|
8315
|
-
/* @__PURE__ */
|
|
8539
|
+
!state.isListActive && showListMenu && /* @__PURE__ */ jsxs33(Fragment8, { children: [
|
|
8540
|
+
/* @__PURE__ */ jsx56(
|
|
8316
8541
|
BubbleMenuButton,
|
|
8317
8542
|
{
|
|
8318
8543
|
icon: List2,
|
|
@@ -8322,7 +8547,7 @@ function TextBubbleContent(props) {
|
|
|
8322
8547
|
tooltip: "Bullet List"
|
|
8323
8548
|
}
|
|
8324
8549
|
),
|
|
8325
|
-
/* @__PURE__ */
|
|
8550
|
+
/* @__PURE__ */ jsx56(
|
|
8326
8551
|
BubbleMenuButton,
|
|
8327
8552
|
{
|
|
8328
8553
|
icon: ListOrdered2,
|
|
@@ -8333,13 +8558,12 @@ function TextBubbleContent(props) {
|
|
|
8333
8558
|
}
|
|
8334
8559
|
)
|
|
8335
8560
|
] }),
|
|
8336
|
-
/* @__PURE__ */
|
|
8561
|
+
/* @__PURE__ */ jsx56(
|
|
8337
8562
|
LinkInputPopover,
|
|
8338
8563
|
{
|
|
8339
8564
|
defaultValue: (_d = state == null ? void 0 : state.linkUrl) != null ? _d : "",
|
|
8340
8565
|
onValueChange: (value, isVariable) => {
|
|
8341
|
-
|
|
8342
|
-
if (!defaultValueWithoutProtocol) {
|
|
8566
|
+
if (!value) {
|
|
8343
8567
|
editor == null ? void 0 : editor.chain().focus().extendMarkRange("link").unsetLink().unsetUnderline().run();
|
|
8344
8568
|
return;
|
|
8345
8569
|
}
|
|
@@ -8350,8 +8574,8 @@ function TextBubbleContent(props) {
|
|
|
8350
8574
|
isVariable: state.isUrlVariable
|
|
8351
8575
|
}
|
|
8352
8576
|
),
|
|
8353
|
-
/* @__PURE__ */
|
|
8354
|
-
/* @__PURE__ */
|
|
8577
|
+
/* @__PURE__ */ jsx56(Divider, {}),
|
|
8578
|
+
/* @__PURE__ */ jsx56(
|
|
8355
8579
|
ColorPicker,
|
|
8356
8580
|
{
|
|
8357
8581
|
color: state.currentTextColor,
|
|
@@ -8360,16 +8584,16 @@ function TextBubbleContent(props) {
|
|
|
8360
8584
|
},
|
|
8361
8585
|
tooltip: "Text Color",
|
|
8362
8586
|
suggestedColors,
|
|
8363
|
-
children: /* @__PURE__ */
|
|
8587
|
+
children: /* @__PURE__ */ jsx56(
|
|
8364
8588
|
BaseButton,
|
|
8365
8589
|
{
|
|
8366
8590
|
variant: "ghost",
|
|
8367
8591
|
size: "sm",
|
|
8368
8592
|
type: "button",
|
|
8369
8593
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
8370
|
-
children: /* @__PURE__ */
|
|
8371
|
-
/* @__PURE__ */
|
|
8372
|
-
/* @__PURE__ */
|
|
8594
|
+
children: /* @__PURE__ */ jsxs33("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
8595
|
+
/* @__PURE__ */ jsx56("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
8596
|
+
/* @__PURE__ */ jsx56(
|
|
8373
8597
|
"div",
|
|
8374
8598
|
{
|
|
8375
8599
|
className: "mly-h-[2px] mly-w-3",
|
|
@@ -8385,35 +8609,35 @@ function TextBubbleContent(props) {
|
|
|
8385
8609
|
}
|
|
8386
8610
|
|
|
8387
8611
|
// src/editor/components/text-menu/turn-into-block.tsx
|
|
8388
|
-
import { ChevronDownIcon as
|
|
8389
|
-
import { useMemo as
|
|
8390
|
-
import { jsx as
|
|
8612
|
+
import { ChevronDownIcon as ChevronDownIcon2, PilcrowIcon } from "lucide-react";
|
|
8613
|
+
import { useMemo as useMemo13 } from "react";
|
|
8614
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
8391
8615
|
var isOption = (option) => option.type === "option";
|
|
8392
8616
|
var isCategory = (option) => option.type === "category";
|
|
8393
8617
|
function TurnIntoBlock(props) {
|
|
8394
8618
|
const { options } = props;
|
|
8395
|
-
const activeItem =
|
|
8619
|
+
const activeItem = useMemo13(
|
|
8396
8620
|
() => options.find((option) => option.type === "option" && option.isActive()),
|
|
8397
8621
|
[options]
|
|
8398
8622
|
);
|
|
8399
8623
|
const { icon: ActiveIcon = PilcrowIcon } = activeItem || {};
|
|
8400
|
-
return /* @__PURE__ */
|
|
8401
|
-
/* @__PURE__ */
|
|
8402
|
-
/* @__PURE__ */
|
|
8624
|
+
return /* @__PURE__ */ jsxs34(Popover, { children: [
|
|
8625
|
+
/* @__PURE__ */ jsxs34(Tooltip, { children: [
|
|
8626
|
+
/* @__PURE__ */ jsx57(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs34(
|
|
8403
8627
|
PopoverTrigger,
|
|
8404
8628
|
{
|
|
8405
8629
|
className: cn(
|
|
8406
8630
|
"mly-flex mly-aspect-square mly-h-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2"
|
|
8407
8631
|
),
|
|
8408
8632
|
children: [
|
|
8409
|
-
/* @__PURE__ */
|
|
8410
|
-
/* @__PURE__ */
|
|
8633
|
+
/* @__PURE__ */ jsx57(ActiveIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
8634
|
+
/* @__PURE__ */ jsx57(ChevronDownIcon2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" })
|
|
8411
8635
|
]
|
|
8412
8636
|
}
|
|
8413
8637
|
) }),
|
|
8414
|
-
/* @__PURE__ */
|
|
8638
|
+
/* @__PURE__ */ jsx57(TooltipContent, { sideOffset: 8, children: "Turn into" })
|
|
8415
8639
|
] }),
|
|
8416
|
-
/* @__PURE__ */
|
|
8640
|
+
/* @__PURE__ */ jsx57(
|
|
8417
8641
|
PopoverContent,
|
|
8418
8642
|
{
|
|
8419
8643
|
align: "start",
|
|
@@ -8422,21 +8646,21 @@ function TurnIntoBlock(props) {
|
|
|
8422
8646
|
className: "mly-flex mly-w-[160px] mly-flex-col mly-rounded-md mly-p-1",
|
|
8423
8647
|
children: options.map((option, index) => {
|
|
8424
8648
|
if (isOption(option)) {
|
|
8425
|
-
return /* @__PURE__ */
|
|
8649
|
+
return /* @__PURE__ */ jsxs34(
|
|
8426
8650
|
BaseButton,
|
|
8427
8651
|
{
|
|
8428
8652
|
onClick: option.onClick,
|
|
8429
8653
|
variant: "ghost",
|
|
8430
8654
|
className: "mly-h-auto mly-justify-start mly-gap-2 !mly-rounded mly-px-2 mly-py-1 mly-text-sm mly-font-normal mly-text-midnight-gray",
|
|
8431
8655
|
children: [
|
|
8432
|
-
/* @__PURE__ */
|
|
8656
|
+
/* @__PURE__ */ jsx57(option.icon, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
8433
8657
|
option.label
|
|
8434
8658
|
]
|
|
8435
8659
|
},
|
|
8436
8660
|
option.id
|
|
8437
8661
|
);
|
|
8438
8662
|
} else if (isCategory(option)) {
|
|
8439
|
-
return /* @__PURE__ */
|
|
8663
|
+
return /* @__PURE__ */ jsx57(
|
|
8440
8664
|
"label",
|
|
8441
8665
|
{
|
|
8442
8666
|
className: cn(
|
|
@@ -8549,7 +8773,7 @@ function useTurnIntoBlockOptions(editor) {
|
|
|
8549
8773
|
}
|
|
8550
8774
|
|
|
8551
8775
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
8552
|
-
import { jsx as
|
|
8776
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
8553
8777
|
function TextBubbleMenu(props) {
|
|
8554
8778
|
const { editor, appendTo } = props;
|
|
8555
8779
|
if (!editor) {
|
|
@@ -8600,14 +8824,14 @@ function TextBubbleMenu(props) {
|
|
|
8600
8824
|
}
|
|
8601
8825
|
});
|
|
8602
8826
|
const turnIntoBlockOptions = useTurnIntoBlockOptions(editor);
|
|
8603
|
-
return /* @__PURE__ */
|
|
8827
|
+
return /* @__PURE__ */ jsx58(
|
|
8604
8828
|
BubbleMenu8,
|
|
8605
8829
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
8606
8830
|
className: "mly-flex mly-gap-0.5 mly-rounded-lg mly-border mly-border-gray-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
8607
|
-
children: /* @__PURE__ */
|
|
8608
|
-
/* @__PURE__ */
|
|
8609
|
-
/* @__PURE__ */
|
|
8610
|
-
/* @__PURE__ */
|
|
8831
|
+
children: /* @__PURE__ */ jsxs35(TooltipProvider, { children: [
|
|
8832
|
+
/* @__PURE__ */ jsx58(TurnIntoBlock, { options: turnIntoBlockOptions }),
|
|
8833
|
+
/* @__PURE__ */ jsx58(Divider, { className: "mly-mx-0" }),
|
|
8834
|
+
/* @__PURE__ */ jsx58(TextBubbleContent, { editor })
|
|
8611
8835
|
] })
|
|
8612
8836
|
})
|
|
8613
8837
|
);
|
|
@@ -8616,7 +8840,7 @@ function TextBubbleMenu(props) {
|
|
|
8616
8840
|
// src/editor/components/variable-menu/variable-bubble-menu.tsx
|
|
8617
8841
|
import { BubbleMenu as BubbleMenu9 } from "@tiptap/react";
|
|
8618
8842
|
import { sticky as sticky7 } from "tippy.js";
|
|
8619
|
-
import { jsx as
|
|
8843
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
8620
8844
|
function VariableBubbleMenu(props) {
|
|
8621
8845
|
const { editor, appendTo } = props;
|
|
8622
8846
|
if (!editor) {
|
|
@@ -8639,11 +8863,11 @@ function VariableBubbleMenu(props) {
|
|
|
8639
8863
|
placement: "top-start"
|
|
8640
8864
|
}
|
|
8641
8865
|
});
|
|
8642
|
-
return /* @__PURE__ */
|
|
8866
|
+
return /* @__PURE__ */ jsx59(
|
|
8643
8867
|
BubbleMenu9,
|
|
8644
8868
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
8645
8869
|
className: "mly-flex mly-gap-0.5 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
8646
|
-
children: /* @__PURE__ */
|
|
8870
|
+
children: /* @__PURE__ */ jsx59(TooltipProvider, { children: /* @__PURE__ */ jsx59(TextBubbleContent, { showListMenu: false, editor }) })
|
|
8647
8871
|
})
|
|
8648
8872
|
);
|
|
8649
8873
|
}
|
|
@@ -8697,7 +8921,7 @@ function replaceDeprecatedNode(json) {
|
|
|
8697
8921
|
}
|
|
8698
8922
|
|
|
8699
8923
|
// src/editor/index.tsx
|
|
8700
|
-
import { jsx as
|
|
8924
|
+
import { jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
8701
8925
|
function Editor13(props) {
|
|
8702
8926
|
const {
|
|
8703
8927
|
config: {
|
|
@@ -8718,7 +8942,7 @@ function Editor13(props) {
|
|
|
8718
8942
|
editable = true,
|
|
8719
8943
|
placeholderUrl = DEFAULT_PLACEHOLDER_URL
|
|
8720
8944
|
} = props;
|
|
8721
|
-
const formattedContent =
|
|
8945
|
+
const formattedContent = useMemo14(() => {
|
|
8722
8946
|
if (contentJson) {
|
|
8723
8947
|
const json = (contentJson == null ? void 0 : contentJson.type) === "doc" ? contentJson : {
|
|
8724
8948
|
type: "doc",
|
|
@@ -8739,7 +8963,7 @@ function Editor13(props) {
|
|
|
8739
8963
|
};
|
|
8740
8964
|
}
|
|
8741
8965
|
}, [contentHtml, contentJson, replaceDeprecatedNode]);
|
|
8742
|
-
const menuContainerRef =
|
|
8966
|
+
const menuContainerRef = useRef13(null);
|
|
8743
8967
|
const editor = useEditor({
|
|
8744
8968
|
editorProps: {
|
|
8745
8969
|
attributes: {
|
|
@@ -8765,7 +8989,7 @@ function Editor13(props) {
|
|
|
8765
8989
|
if (!editor) {
|
|
8766
8990
|
return null;
|
|
8767
8991
|
}
|
|
8768
|
-
return /* @__PURE__ */
|
|
8992
|
+
return /* @__PURE__ */ jsx60(MailyProvider, { placeholderUrl, children: /* @__PURE__ */ jsxs36(
|
|
8769
8993
|
"div",
|
|
8770
8994
|
{
|
|
8771
8995
|
className: cn(
|
|
@@ -8775,8 +8999,8 @@ function Editor13(props) {
|
|
|
8775
8999
|
),
|
|
8776
9000
|
ref: menuContainerRef,
|
|
8777
9001
|
children: [
|
|
8778
|
-
hasMenuBar && /* @__PURE__ */
|
|
8779
|
-
/* @__PURE__ */
|
|
9002
|
+
hasMenuBar && /* @__PURE__ */ jsx60(EditorMenuBar, { config: props.config, editor }),
|
|
9003
|
+
/* @__PURE__ */ jsxs36(
|
|
8780
9004
|
"div",
|
|
8781
9005
|
{
|
|
8782
9006
|
className: cn(
|
|
@@ -8784,17 +9008,17 @@ function Editor13(props) {
|
|
|
8784
9008
|
bodyClassName
|
|
8785
9009
|
),
|
|
8786
9010
|
children: [
|
|
8787
|
-
/* @__PURE__ */
|
|
8788
|
-
/* @__PURE__ */
|
|
8789
|
-
/* @__PURE__ */
|
|
8790
|
-
/* @__PURE__ */
|
|
8791
|
-
/* @__PURE__ */
|
|
8792
|
-
/* @__PURE__ */
|
|
8793
|
-
/* @__PURE__ */
|
|
8794
|
-
/* @__PURE__ */
|
|
8795
|
-
/* @__PURE__ */
|
|
8796
|
-
/* @__PURE__ */
|
|
8797
|
-
/* @__PURE__ */
|
|
9011
|
+
/* @__PURE__ */ jsx60(TextBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9012
|
+
/* @__PURE__ */ jsx60(ImageBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9013
|
+
/* @__PURE__ */ jsx60(SpacerBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9014
|
+
/* @__PURE__ */ jsx60(EditorContent, { editor }),
|
|
9015
|
+
/* @__PURE__ */ jsx60(SectionBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9016
|
+
/* @__PURE__ */ jsx60(ColumnsBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9017
|
+
/* @__PURE__ */ jsx60(ContentMenu, { editor }),
|
|
9018
|
+
/* @__PURE__ */ jsx60(VariableBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9019
|
+
/* @__PURE__ */ jsx60(RepeatBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9020
|
+
/* @__PURE__ */ jsx60(HTMLBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
9021
|
+
/* @__PURE__ */ jsx60(InlineImageBubbleMenu, { editor, appendTo: menuContainerRef })
|
|
8798
9022
|
]
|
|
8799
9023
|
}
|
|
8800
9024
|
)
|