@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
|
@@ -84,40 +84,9 @@ __export(src_exports, {
|
|
|
84
84
|
});
|
|
85
85
|
module.exports = __toCommonJS(src_exports);
|
|
86
86
|
|
|
87
|
-
// #style-inject:#style-inject
|
|
88
|
-
function styleInject(css, { insertAt } = {}) {
|
|
89
|
-
if (!css || typeof document === "undefined") return;
|
|
90
|
-
const head = document.head || document.getElementsByTagName("head")[0];
|
|
91
|
-
const style = document.createElement("style");
|
|
92
|
-
style.type = "text/css";
|
|
93
|
-
if (insertAt === "top") {
|
|
94
|
-
if (head.firstChild) {
|
|
95
|
-
head.insertBefore(style, head.firstChild);
|
|
96
|
-
} else {
|
|
97
|
-
head.appendChild(style);
|
|
98
|
-
}
|
|
99
|
-
} else {
|
|
100
|
-
head.appendChild(style);
|
|
101
|
-
}
|
|
102
|
-
if (style.styleSheet) {
|
|
103
|
-
style.styleSheet.cssText = css;
|
|
104
|
-
} else {
|
|
105
|
-
style.appendChild(document.createTextNode(css));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// src/styles/index.css
|
|
110
|
-
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');
|
|
111
|
-
|
|
112
|
-
// src/styles/preflight.css
|
|
113
|
-
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');
|
|
114
|
-
|
|
115
|
-
// src/styles/tailwind.css
|
|
116
|
-
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');
|
|
117
|
-
|
|
118
87
|
// src/editor/index.tsx
|
|
119
|
-
var
|
|
120
|
-
var
|
|
88
|
+
var import_react66 = require("@tiptap/react");
|
|
89
|
+
var import_react67 = require("react");
|
|
121
90
|
|
|
122
91
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
123
92
|
var import_react8 = require("@tiptap/react");
|
|
@@ -457,7 +426,7 @@ function getColumnWidths(editor) {
|
|
|
457
426
|
|
|
458
427
|
// src/editor/components/column-menu/use-columns-state.tsx
|
|
459
428
|
var import_react = require("@tiptap/react");
|
|
460
|
-
var import_fast_deep_equal = __toESM(require("fast-deep-equal"));
|
|
429
|
+
var import_fast_deep_equal = __toESM(require("fast-deep-equal"), 1);
|
|
461
430
|
var useColumnsState = (editor) => {
|
|
462
431
|
const states = (0, import_react.useEditorState)({
|
|
463
432
|
editor,
|
|
@@ -505,8 +474,8 @@ function Divider(props) {
|
|
|
505
474
|
}
|
|
506
475
|
|
|
507
476
|
// src/editor/components/ui/tooltip.tsx
|
|
508
|
-
var React = __toESM(require("react"));
|
|
509
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
477
|
+
var React = __toESM(require("react"), 1);
|
|
478
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
510
479
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
511
480
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
512
481
|
var Tooltip = TooltipPrimitive.Root;
|
|
@@ -531,7 +500,7 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
|
531
500
|
var import_lucide_react = require("lucide-react");
|
|
532
501
|
|
|
533
502
|
// src/editor/components/base-button.tsx
|
|
534
|
-
var React2 = __toESM(require("react"));
|
|
503
|
+
var React2 = __toESM(require("react"), 1);
|
|
535
504
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
536
505
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
537
506
|
var BaseButton = React2.forwardRef(
|
|
@@ -706,8 +675,8 @@ You can check out the documentation for more information: https://github.com/ari
|
|
|
706
675
|
}
|
|
707
676
|
|
|
708
677
|
// src/editor/components/popover.tsx
|
|
709
|
-
var React3 = __toESM(require("react"));
|
|
710
|
-
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
678
|
+
var React3 = __toESM(require("react"), 1);
|
|
679
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
711
680
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
712
681
|
var Popover = PopoverPrimitive.Root;
|
|
713
682
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
@@ -1327,7 +1296,7 @@ var import_react10 = require("react");
|
|
|
1327
1296
|
|
|
1328
1297
|
// src/editor/plugins/drag-handle/drag-handle-plugin.ts
|
|
1329
1298
|
var import_state2 = require("@tiptap/pm/state");
|
|
1330
|
-
var import_tippy2 = __toESM(require("tippy.js"));
|
|
1299
|
+
var import_tippy2 = __toESM(require("tippy.js"), 1);
|
|
1331
1300
|
var import_y_prosemirror = require("y-prosemirror");
|
|
1332
1301
|
var import_model2 = require("@tiptap/pm/model");
|
|
1333
1302
|
function getSelectionRanges(state, range, depth) {
|
|
@@ -2021,7 +1990,7 @@ var import_tippy3 = require("tippy.js");
|
|
|
2021
1990
|
|
|
2022
1991
|
// src/editor/components/html-menu/use-html-state.ts
|
|
2023
1992
|
var import_react13 = require("@tiptap/react");
|
|
2024
|
-
var import_fast_deep_equal2 = __toESM(require("fast-deep-equal"));
|
|
1993
|
+
var import_fast_deep_equal2 = __toESM(require("fast-deep-equal"), 1);
|
|
2025
1994
|
var useHtmlState = (editor) => {
|
|
2026
1995
|
const states = (0, import_react13.useEditorState)({
|
|
2027
1996
|
editor,
|
|
@@ -2134,7 +2103,7 @@ function HTMLBubbleMenu(props) {
|
|
|
2134
2103
|
}
|
|
2135
2104
|
|
|
2136
2105
|
// src/editor/nodes/logo/logo.ts
|
|
2137
|
-
var import_extension_image = __toESM(require("@tiptap/extension-image"));
|
|
2106
|
+
var import_extension_image = __toESM(require("@tiptap/extension-image"), 1);
|
|
2138
2107
|
var import_react23 = require("@tiptap/react");
|
|
2139
2108
|
|
|
2140
2109
|
// src/editor/nodes/section/section.ts
|
|
@@ -2595,10 +2564,24 @@ var useEvent = (handler) => {
|
|
|
2595
2564
|
}, []);
|
|
2596
2565
|
};
|
|
2597
2566
|
|
|
2567
|
+
// src/editor/utils/aspect-ratio.ts
|
|
2568
|
+
function getAspectRatio(width, height) {
|
|
2569
|
+
return width / height;
|
|
2570
|
+
}
|
|
2571
|
+
function getNewHeight(width, aspectRatio) {
|
|
2572
|
+
if (width <= 0 || aspectRatio <= 0) {
|
|
2573
|
+
return 0;
|
|
2574
|
+
}
|
|
2575
|
+
return width / aspectRatio;
|
|
2576
|
+
}
|
|
2577
|
+
function getNewWidth(height, aspectRatio) {
|
|
2578
|
+
return height * aspectRatio;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2598
2581
|
// src/editor/nodes/image/image-view.tsx
|
|
2599
2582
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2600
2583
|
var MIN_WIDTH = 20;
|
|
2601
|
-
var
|
|
2584
|
+
var IMAGE_MAX_WIDTH = 600;
|
|
2602
2585
|
function ImageView(props) {
|
|
2603
2586
|
const { node, updateAttributes: updateAttributes2, selected, editor } = props;
|
|
2604
2587
|
const [status, setStatus] = (0, import_react18.useState)("idle");
|
|
@@ -2616,7 +2599,10 @@ function ImageView(props) {
|
|
|
2616
2599
|
if (!imgRef.current || !imageParent || !selected) {
|
|
2617
2600
|
return;
|
|
2618
2601
|
}
|
|
2619
|
-
const imageParentWidth = Math.max(
|
|
2602
|
+
const imageParentWidth = Math.max(
|
|
2603
|
+
imageParent.offsetWidth,
|
|
2604
|
+
IMAGE_MAX_WIDTH
|
|
2605
|
+
);
|
|
2620
2606
|
event.preventDefault();
|
|
2621
2607
|
const direction = event.currentTarget.dataset.direction || "--";
|
|
2622
2608
|
const initialXPosition = event.clientX;
|
|
@@ -2628,7 +2614,8 @@ function ImageView(props) {
|
|
|
2628
2614
|
const removeListeners = () => {
|
|
2629
2615
|
window.removeEventListener("mousemove", mouseMoveHandler);
|
|
2630
2616
|
window.removeEventListener("mouseup", removeListeners);
|
|
2631
|
-
|
|
2617
|
+
const aspectRatio = getAspectRatio(newWidth, newHeight);
|
|
2618
|
+
updateAttributes2({ width: newWidth, height: newHeight, aspectRatio });
|
|
2632
2619
|
setResizingStyle(void 0);
|
|
2633
2620
|
};
|
|
2634
2621
|
const mouseMoveHandler = (event2) => {
|
|
@@ -2674,17 +2661,29 @@ function ImageView(props) {
|
|
|
2674
2661
|
},
|
|
2675
2662
|
[handleMouseDown, isPlaceholderImage]
|
|
2676
2663
|
);
|
|
2677
|
-
let {
|
|
2664
|
+
let {
|
|
2665
|
+
alignment = "center",
|
|
2666
|
+
width,
|
|
2667
|
+
height,
|
|
2668
|
+
src,
|
|
2669
|
+
borderRadius: borderRadius2
|
|
2670
|
+
} = node.attrs || {};
|
|
2678
2671
|
const _a = node.attrs || {}, {
|
|
2679
2672
|
externalLink,
|
|
2680
2673
|
isExternalLinkVariable,
|
|
2681
2674
|
isSrcVariable,
|
|
2682
|
-
showIfKey
|
|
2675
|
+
showIfKey,
|
|
2676
|
+
aspectRatio: defaultAspectRatio,
|
|
2677
|
+
borderRadius: _,
|
|
2678
|
+
lockAspectRatio
|
|
2683
2679
|
} = _a, attrs = __objRest(_a, [
|
|
2684
2680
|
"externalLink",
|
|
2685
2681
|
"isExternalLinkVariable",
|
|
2686
2682
|
"isSrcVariable",
|
|
2687
|
-
"showIfKey"
|
|
2683
|
+
"showIfKey",
|
|
2684
|
+
"aspectRatio",
|
|
2685
|
+
"borderRadius",
|
|
2686
|
+
"lockAspectRatio"
|
|
2688
2687
|
]);
|
|
2689
2688
|
const hasImageSrc = !!attrs.src;
|
|
2690
2689
|
const isDroppable = !!onImageUpload && editor.isEditable && !hasImageSrc && !isSrcVariable && status === "idle";
|
|
@@ -2731,14 +2730,15 @@ function ImageView(props) {
|
|
|
2731
2730
|
return;
|
|
2732
2731
|
}
|
|
2733
2732
|
const wrapperWidth = wrapper.offsetWidth;
|
|
2734
|
-
const aspectRatio = naturalWidth
|
|
2733
|
+
const aspectRatio = getAspectRatio(naturalWidth, naturalHeight);
|
|
2735
2734
|
const calculatedHeight = Math.min(
|
|
2736
|
-
wrapperWidth
|
|
2735
|
+
getNewHeight(wrapperWidth, aspectRatio),
|
|
2737
2736
|
naturalHeight
|
|
2738
2737
|
);
|
|
2739
2738
|
updateAttributes2({
|
|
2740
2739
|
width: Math.min(wrapperWidth, naturalWidth),
|
|
2741
|
-
height: Math.min(calculatedHeight, naturalHeight)
|
|
2740
|
+
height: Math.min(calculatedHeight, naturalHeight),
|
|
2741
|
+
aspectRatio
|
|
2742
2742
|
});
|
|
2743
2743
|
};
|
|
2744
2744
|
img.onerror = () => {
|
|
@@ -2808,7 +2808,8 @@ function ImageView(props) {
|
|
|
2808
2808
|
position: "relative",
|
|
2809
2809
|
// Weird! Basically tiptap/prose wraps this in a span and the line height causes an annoying buffer.
|
|
2810
2810
|
lineHeight: "0px",
|
|
2811
|
-
display: "block"
|
|
2811
|
+
display: "block",
|
|
2812
|
+
maxWidth: "100%"
|
|
2812
2813
|
}), {
|
|
2813
2814
|
center: { marginLeft: "auto", marginRight: "auto" },
|
|
2814
2815
|
left: { marginRight: "auto" },
|
|
@@ -2850,7 +2851,8 @@ function ImageView(props) {
|
|
|
2850
2851
|
ref: imgRef,
|
|
2851
2852
|
style: __spreadProps(__spreadValues({}, resizingStyle), {
|
|
2852
2853
|
cursor: "default",
|
|
2853
|
-
marginBottom: 0
|
|
2854
|
+
marginBottom: 0,
|
|
2855
|
+
borderRadius: borderRadius2
|
|
2854
2856
|
}),
|
|
2855
2857
|
draggable: editor.isEditable,
|
|
2856
2858
|
className: cn(
|
|
@@ -3200,6 +3202,30 @@ var LogoExtension = import_extension_image.default.extend({
|
|
|
3200
3202
|
}
|
|
3201
3203
|
});
|
|
3202
3204
|
|
|
3205
|
+
// src/editor/utils/border-radius.ts
|
|
3206
|
+
var borderRadius = [
|
|
3207
|
+
{
|
|
3208
|
+
name: "Sharp",
|
|
3209
|
+
value: 0
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
name: "Smooth",
|
|
3213
|
+
value: 8
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
name: "Smoother",
|
|
3217
|
+
value: 16
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
name: "Rounded",
|
|
3221
|
+
value: 24
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
name: "Circle",
|
|
3225
|
+
value: 9999
|
|
3226
|
+
}
|
|
3227
|
+
];
|
|
3228
|
+
|
|
3203
3229
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
3204
3230
|
var import_react32 = require("@tiptap/react");
|
|
3205
3231
|
var import_lucide_react23 = require("lucide-react");
|
|
@@ -3356,7 +3382,7 @@ var inlineImage = {
|
|
|
3356
3382
|
icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react14.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
3357
3383
|
command: ({ editor, range }) => {
|
|
3358
3384
|
editor.chain().focus().deleteRange(range).setInlineImage({
|
|
3359
|
-
src: ""
|
|
3385
|
+
src: "https://maily.to/brand/logo.png"
|
|
3360
3386
|
}).command((props) => {
|
|
3361
3387
|
const { tr, state, view, editor: editor2 } = props;
|
|
3362
3388
|
const { from } = range;
|
|
@@ -4184,7 +4210,7 @@ var DEFAULT_SLASH_COMMANDS = [
|
|
|
4184
4210
|
|
|
4185
4211
|
// src/editor/provider.tsx
|
|
4186
4212
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4187
|
-
var DEFAULT_PLACEHOLDER_URL = "maily.to/";
|
|
4213
|
+
var DEFAULT_PLACEHOLDER_URL = "https://maily.to/";
|
|
4188
4214
|
var MailyContext = (0, import_react24.createContext)({
|
|
4189
4215
|
placeholderUrl: DEFAULT_PLACEHOLDER_URL,
|
|
4190
4216
|
blocks: DEFAULT_SLASH_COMMANDS
|
|
@@ -4208,7 +4234,7 @@ var import_react30 = require("react");
|
|
|
4208
4234
|
var import_core7 = require("@tiptap/core");
|
|
4209
4235
|
var import_state5 = require("@tiptap/pm/state");
|
|
4210
4236
|
var import_react28 = require("@tiptap/react");
|
|
4211
|
-
var import_suggestion = __toESM(require("@tiptap/suggestion"));
|
|
4237
|
+
var import_suggestion = __toESM(require("@tiptap/suggestion"), 1);
|
|
4212
4238
|
|
|
4213
4239
|
// src/editor/nodes/variable/variable-suggestions-popover.tsx
|
|
4214
4240
|
var import_lucide_react20 = require("lucide-react");
|
|
@@ -4605,9 +4631,8 @@ var VariableExtension = import_core7.Node.create({
|
|
|
4605
4631
|
|
|
4606
4632
|
// src/editor/components/ui/link-input-popover.tsx
|
|
4607
4633
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4608
|
-
var LINK_PROTOCOL_REGEX = /https?:\/\//;
|
|
4609
4634
|
function LinkInputPopover(props) {
|
|
4610
|
-
var _a, _b
|
|
4635
|
+
var _a, _b;
|
|
4611
4636
|
const {
|
|
4612
4637
|
defaultValue = "",
|
|
4613
4638
|
onValueChange,
|
|
@@ -4616,22 +4641,16 @@ function LinkInputPopover(props) {
|
|
|
4616
4641
|
editor,
|
|
4617
4642
|
isVariable
|
|
4618
4643
|
} = props;
|
|
4619
|
-
const defaultProtocol = (_a = defaultValue.match(LINK_PROTOCOL_REGEX)) == null ? void 0 : _a[0];
|
|
4620
|
-
const defaultUrlWithoutProtocol = defaultValue.replace(
|
|
4621
|
-
LINK_PROTOCOL_REGEX,
|
|
4622
|
-
""
|
|
4623
|
-
);
|
|
4624
4644
|
const [isOpen, setIsOpen] = (0, import_react29.useState)(false);
|
|
4625
|
-
const [protocol, setProtocol] = (0, import_react29.useState)(defaultProtocol || "https://");
|
|
4626
4645
|
const [isEditing, setIsEditing] = (0, import_react29.useState)(!isVariable);
|
|
4627
4646
|
const linkInputRef = (0, import_react29.useRef)(null);
|
|
4628
4647
|
const { placeholderUrl = DEFAULT_PLACEHOLDER_URL } = useMailyContext();
|
|
4629
4648
|
const options = useVariableOptions(editor);
|
|
4630
4649
|
const renderVariable = options == null ? void 0 : options.renderVariable;
|
|
4631
4650
|
const variables = options == null ? void 0 : options.variables;
|
|
4632
|
-
const variableTriggerCharacter = (
|
|
4651
|
+
const variableTriggerCharacter = (_b = (_a = options == null ? void 0 : options.suggestion) == null ? void 0 : _a.char) != null ? _b : DEFAULT_VARIABLE_TRIGGER_CHAR;
|
|
4633
4652
|
const autoCompleteOptions = (0, import_react30.useMemo)(() => {
|
|
4634
|
-
const withoutTrigger =
|
|
4653
|
+
const withoutTrigger = defaultValue.replace(
|
|
4635
4654
|
new RegExp(variableTriggerCharacter, "g"),
|
|
4636
4655
|
""
|
|
4637
4656
|
);
|
|
@@ -4640,7 +4659,7 @@ function LinkInputPopover(props) {
|
|
|
4640
4659
|
from: "bubble-variable",
|
|
4641
4660
|
editor
|
|
4642
4661
|
}).map((variable) => variable.name);
|
|
4643
|
-
}, [variables, variableTriggerCharacter,
|
|
4662
|
+
}, [variables, variableTriggerCharacter, defaultValue, editor]);
|
|
4644
4663
|
const popoverButton = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4645
4664
|
BaseButton,
|
|
4646
4665
|
{
|
|
@@ -4648,130 +4667,105 @@ function LinkInputPopover(props) {
|
|
|
4648
4667
|
size: "sm",
|
|
4649
4668
|
type: "button",
|
|
4650
4669
|
className: "mly-size-7",
|
|
4651
|
-
"data-state": !!
|
|
4670
|
+
"data-state": !!defaultValue,
|
|
4652
4671
|
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-midnight-gray" })
|
|
4653
4672
|
}
|
|
4654
4673
|
) });
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
4675
|
+
Popover,
|
|
4676
|
+
{
|
|
4677
|
+
open: isOpen,
|
|
4678
|
+
onOpenChange: (open) => {
|
|
4679
|
+
setIsOpen(open);
|
|
4680
|
+
if (open) {
|
|
4681
|
+
setTimeout(() => {
|
|
4682
|
+
var _a2;
|
|
4683
|
+
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
4684
|
+
}, 0);
|
|
4685
|
+
}
|
|
4686
|
+
},
|
|
4687
|
+
children: [
|
|
4688
|
+
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Tooltip, { children: [
|
|
4689
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
4690
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
4691
|
+
] }) : popoverButton,
|
|
4692
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4693
|
+
PopoverContent,
|
|
4674
4694
|
{
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
},
|
|
4696
|
-
children: renderVariable({
|
|
4697
|
-
variable: {
|
|
4698
|
-
name: defaultUrlWithoutProtocol,
|
|
4699
|
-
valid: true
|
|
4700
|
-
},
|
|
4701
|
-
fallback: "",
|
|
4702
|
-
from: "bubble-variable",
|
|
4703
|
-
editor
|
|
4704
|
-
})
|
|
4705
|
-
}
|
|
4706
|
-
) }),
|
|
4707
|
-
isEditing && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
4708
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly-relative", children: [
|
|
4709
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
4710
|
-
"select",
|
|
4695
|
+
align: "end",
|
|
4696
|
+
side: "top",
|
|
4697
|
+
className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
|
|
4698
|
+
sideOffset: 8,
|
|
4699
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
4700
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4701
|
+
"form",
|
|
4702
|
+
{
|
|
4703
|
+
onSubmit: (e) => {
|
|
4704
|
+
e.preventDefault();
|
|
4705
|
+
const input = linkInputRef.current;
|
|
4706
|
+
if (!input) {
|
|
4707
|
+
return;
|
|
4708
|
+
}
|
|
4709
|
+
onValueChange == null ? void 0 : onValueChange(input.value);
|
|
4710
|
+
setIsOpen(false);
|
|
4711
|
+
},
|
|
4712
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
4713
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsx)(
|
|
4714
|
+
"button",
|
|
4711
4715
|
{
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
setProtocol(protocol2);
|
|
4719
|
-
const newValue = normalizeProtocol(
|
|
4720
|
-
((_a2 = linkInputRef.current) == null ? void 0 : _a2.value) || "",
|
|
4721
|
-
protocol2
|
|
4722
|
-
);
|
|
4723
|
-
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
4716
|
+
onClick: () => {
|
|
4717
|
+
setIsEditing(true);
|
|
4718
|
+
setTimeout(() => {
|
|
4719
|
+
var _a2;
|
|
4720
|
+
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
4721
|
+
}, 0);
|
|
4724
4722
|
},
|
|
4725
|
-
children:
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
size: 16,
|
|
4735
|
-
strokeWidth: 2,
|
|
4736
|
-
"aria-hidden": "true",
|
|
4737
|
-
role: "img"
|
|
4723
|
+
children: renderVariable({
|
|
4724
|
+
variable: {
|
|
4725
|
+
name: defaultValue,
|
|
4726
|
+
valid: true
|
|
4727
|
+
},
|
|
4728
|
+
fallback: "",
|
|
4729
|
+
from: "bubble-variable",
|
|
4730
|
+
editor
|
|
4731
|
+
})
|
|
4738
4732
|
}
|
|
4739
|
-
) })
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4733
|
+
) }),
|
|
4734
|
+
isEditing && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mly-relative", children: [
|
|
4735
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-left-1.5 mly-z-10 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react22.LinkIcon, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) }),
|
|
4736
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4737
|
+
InputAutocomplete,
|
|
4738
|
+
{
|
|
4739
|
+
editor,
|
|
4740
|
+
value: defaultValue,
|
|
4741
|
+
onValueChange: (value) => {
|
|
4742
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
4743
|
+
},
|
|
4744
|
+
autoCompleteOptions,
|
|
4745
|
+
ref: linkInputRef,
|
|
4746
|
+
placeholder: placeholderUrl,
|
|
4747
|
+
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",
|
|
4748
|
+
triggerChar: variableTriggerCharacter,
|
|
4749
|
+
onSelectOption: (value) => {
|
|
4750
|
+
var _a2;
|
|
4751
|
+
const isVariable2 = (_a2 = autoCompleteOptions.includes(value)) != null ? _a2 : false;
|
|
4752
|
+
if (isVariable2) {
|
|
4753
|
+
setIsEditing(false);
|
|
4754
|
+
}
|
|
4755
|
+
onValueChange == null ? void 0 : onValueChange(value, isVariable2);
|
|
4756
|
+
setIsOpen(false);
|
|
4757
|
+
}
|
|
4762
4758
|
}
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
] })
|
|
4769
|
-
] })
|
|
4759
|
+
)
|
|
4760
|
+
] })
|
|
4761
|
+
] })
|
|
4762
|
+
}
|
|
4763
|
+
)
|
|
4770
4764
|
}
|
|
4771
4765
|
)
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4766
|
+
]
|
|
4767
|
+
}
|
|
4768
|
+
);
|
|
4775
4769
|
}
|
|
4776
4770
|
|
|
4777
4771
|
// src/editor/components/image-menu/image-size.tsx
|
|
@@ -4795,24 +4789,27 @@ function ImageSize(props) {
|
|
|
4795
4789
|
|
|
4796
4790
|
// src/editor/components/image-menu/use-image-state.tsx
|
|
4797
4791
|
var import_react31 = require("@tiptap/react");
|
|
4798
|
-
var import_fast_deep_equal3 = __toESM(require("fast-deep-equal"));
|
|
4792
|
+
var import_fast_deep_equal3 = __toESM(require("fast-deep-equal"), 1);
|
|
4799
4793
|
var useImageState = (editor) => {
|
|
4800
4794
|
const states = (0, import_react31.useEditorState)({
|
|
4801
4795
|
editor,
|
|
4802
4796
|
selector: ({ editor: editor2 }) => {
|
|
4803
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4797
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
4804
4798
|
return {
|
|
4805
4799
|
width: String(editor2.getAttributes("image").width),
|
|
4806
4800
|
height: String(editor2.getAttributes("image").height),
|
|
4807
4801
|
isImageActive: editor2.isActive("image"),
|
|
4808
4802
|
isLogoActive: editor2.isActive("logo"),
|
|
4809
4803
|
alignment: ((_a = editor2.getAttributes("image")) == null ? void 0 : _a.alignment) || ((_b = editor2.getAttributes("logo")) == null ? void 0 : _b.alignment),
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4804
|
+
borderRadius: (_c = editor2.getAttributes("image")) == null ? void 0 : _c.borderRadius,
|
|
4805
|
+
logoSize: ((_d = editor2.getAttributes("logo")) == null ? void 0 : _d.size) || DEFAULT_LOGO_SIZE,
|
|
4806
|
+
imageSrc: ((_e = editor2.getAttributes("image")) == null ? void 0 : _e.src) || ((_f = editor2.getAttributes("logo")) == null ? void 0 : _f.src) || "",
|
|
4807
|
+
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,
|
|
4808
|
+
imageExternalLink: ((_k = editor2.getAttributes("image")) == null ? void 0 : _k.externalLink) || "",
|
|
4809
|
+
isExternalLinkVariable: (_l = editor2.getAttributes("image")) == null ? void 0 : _l.isExternalLinkVariable,
|
|
4810
|
+
lockAspectRatio: (_m = editor2.getAttributes("image")) == null ? void 0 : _m.lockAspectRatio,
|
|
4811
|
+
aspectRatio: (_n = editor2.getAttributes("image")) == null ? void 0 : _n.aspectRatio,
|
|
4812
|
+
currentShowIfKey: ((_o = editor2.getAttributes("image")) == null ? void 0 : _o.showIfKey) || ((_p = editor2.getAttributes("logo")) == null ? void 0 : _p.showIfKey) || ""
|
|
4816
4813
|
};
|
|
4817
4814
|
},
|
|
4818
4815
|
equalityFn: import_fast_deep_equal3.default
|
|
@@ -4845,6 +4842,7 @@ function ImageBubbleMenu(props) {
|
|
|
4845
4842
|
maxWidth: "100%"
|
|
4846
4843
|
}
|
|
4847
4844
|
});
|
|
4845
|
+
const { lockAspectRatio } = state;
|
|
4848
4846
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4849
4847
|
import_react32.BubbleMenu,
|
|
4850
4848
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
@@ -4924,6 +4922,24 @@ function ImageBubbleMenu(props) {
|
|
|
4924
4922
|
] }),
|
|
4925
4923
|
state.isImageActive && state.imageSrc && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
4926
4924
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Divider, {}),
|
|
4925
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4926
|
+
Select,
|
|
4927
|
+
{
|
|
4928
|
+
label: "Border Radius",
|
|
4929
|
+
value: state == null ? void 0 : state.borderRadius,
|
|
4930
|
+
options: borderRadius.map((value) => ({
|
|
4931
|
+
value: String(value.value),
|
|
4932
|
+
label: value.name
|
|
4933
|
+
})),
|
|
4934
|
+
onValueChange: (value) => {
|
|
4935
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", {
|
|
4936
|
+
borderRadius: Number(value)
|
|
4937
|
+
}).run();
|
|
4938
|
+
},
|
|
4939
|
+
tooltip: "Border Radius",
|
|
4940
|
+
className: "mly-capitalize"
|
|
4941
|
+
}
|
|
4942
|
+
),
|
|
4927
4943
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
4928
4944
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4929
4945
|
ImageSize,
|
|
@@ -4931,7 +4947,14 @@ function ImageBubbleMenu(props) {
|
|
|
4931
4947
|
dimension: "width",
|
|
4932
4948
|
value: (_c = state == null ? void 0 : state.width) != null ? _c : "",
|
|
4933
4949
|
onValueChange: (value) => {
|
|
4934
|
-
|
|
4950
|
+
const width = Math.min(Number(value) || 0, IMAGE_MAX_WIDTH);
|
|
4951
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", __spreadValues({
|
|
4952
|
+
width: String(width)
|
|
4953
|
+
}, lockAspectRatio && value ? {
|
|
4954
|
+
height: String(
|
|
4955
|
+
getNewHeight(width, state.aspectRatio)
|
|
4956
|
+
)
|
|
4957
|
+
} : {})).run();
|
|
4935
4958
|
}
|
|
4936
4959
|
}
|
|
4937
4960
|
),
|
|
@@ -4941,9 +4964,33 @@ function ImageBubbleMenu(props) {
|
|
|
4941
4964
|
dimension: "height",
|
|
4942
4965
|
value: (_d = state == null ? void 0 : state.height) != null ? _d : "",
|
|
4943
4966
|
onValueChange: (value) => {
|
|
4944
|
-
|
|
4967
|
+
const height = Number(value) || 0;
|
|
4968
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", __spreadValues({
|
|
4969
|
+
height: String(height)
|
|
4970
|
+
}, lockAspectRatio && value ? {
|
|
4971
|
+
width: String(
|
|
4972
|
+
getNewWidth(height, state.aspectRatio)
|
|
4973
|
+
)
|
|
4974
|
+
} : {})).run();
|
|
4945
4975
|
}
|
|
4946
4976
|
}
|
|
4977
|
+
),
|
|
4978
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4979
|
+
BubbleMenuButton,
|
|
4980
|
+
{
|
|
4981
|
+
isActive: () => lockAspectRatio,
|
|
4982
|
+
command: () => {
|
|
4983
|
+
const width = Number(state.width) || 0;
|
|
4984
|
+
const height = Number(state.height) || 0;
|
|
4985
|
+
const aspectRatio = width / height;
|
|
4986
|
+
editor == null ? void 0 : editor.chain().updateAttributes("image", {
|
|
4987
|
+
lockAspectRatio: !lockAspectRatio,
|
|
4988
|
+
aspectRatio
|
|
4989
|
+
}).run();
|
|
4990
|
+
},
|
|
4991
|
+
icon: lockAspectRatio ? import_lucide_react23.LockIcon : import_lucide_react23.LockOpenIcon,
|
|
4992
|
+
tooltip: "Lock Aspect Ratio"
|
|
4993
|
+
}
|
|
4947
4994
|
)
|
|
4948
4995
|
] })
|
|
4949
4996
|
] }),
|
|
@@ -5085,7 +5132,7 @@ var InlineImageExtension = import_core8.Node.create({
|
|
|
5085
5132
|
|
|
5086
5133
|
// src/editor/components/inline-image-menu/use-inline-image-state.tsx
|
|
5087
5134
|
var import_react33 = require("@tiptap/react");
|
|
5088
|
-
var import_fast_deep_equal4 = __toESM(require("fast-deep-equal"));
|
|
5135
|
+
var import_fast_deep_equal4 = __toESM(require("fast-deep-equal"), 1);
|
|
5089
5136
|
var useInlineImageState = (editor) => {
|
|
5090
5137
|
const states = (0, import_react33.useEditorState)({
|
|
5091
5138
|
editor,
|
|
@@ -5193,7 +5240,7 @@ var import_tippy6 = require("tippy.js");
|
|
|
5193
5240
|
|
|
5194
5241
|
// src/editor/components/repeat-menu/use-repeat-state.ts
|
|
5195
5242
|
var import_react35 = require("@tiptap/react");
|
|
5196
|
-
var import_fast_deep_equal5 = __toESM(require("fast-deep-equal"));
|
|
5243
|
+
var import_fast_deep_equal5 = __toESM(require("fast-deep-equal"), 1);
|
|
5197
5244
|
var useRepeatState = (editor) => {
|
|
5198
5245
|
const states = (0, import_react35.useEditorState)({
|
|
5199
5246
|
editor,
|
|
@@ -5561,7 +5608,7 @@ function ColorPicker(props) {
|
|
|
5561
5608
|
|
|
5562
5609
|
// src/editor/components/section-menu/use-section-state.tsx
|
|
5563
5610
|
var import_react38 = require("@tiptap/react");
|
|
5564
|
-
var import_fast_deep_equal6 = __toESM(require("fast-deep-equal"));
|
|
5611
|
+
var import_fast_deep_equal6 = __toESM(require("fast-deep-equal"), 1);
|
|
5565
5612
|
var useSectionState = (editor) => {
|
|
5566
5613
|
const states = (0, import_react38.useEditorState)({
|
|
5567
5614
|
editor,
|
|
@@ -5862,7 +5909,7 @@ var import_react42 = require("@tiptap/react");
|
|
|
5862
5909
|
|
|
5863
5910
|
// src/editor/components/spacer-menu/use-spacer-state.ts
|
|
5864
5911
|
var import_react41 = require("@tiptap/react");
|
|
5865
|
-
var import_fast_deep_equal7 = __toESM(require("fast-deep-equal"));
|
|
5912
|
+
var import_fast_deep_equal7 = __toESM(require("fast-deep-equal"), 1);
|
|
5866
5913
|
var useSpacerState = (editor) => {
|
|
5867
5914
|
const states = (0, import_react41.useEditorState)({
|
|
5868
5915
|
editor,
|
|
@@ -6079,7 +6126,7 @@ var HorizontalRule = import_extension_horizontal_rule.HorizontalRule.extend({
|
|
|
6079
6126
|
});
|
|
6080
6127
|
|
|
6081
6128
|
// src/editor/utils/is-custom-node-selected.ts
|
|
6082
|
-
var import_extension_image3 = __toESM(require("@tiptap/extension-image"));
|
|
6129
|
+
var import_extension_image3 = __toESM(require("@tiptap/extension-image"), 1);
|
|
6083
6130
|
|
|
6084
6131
|
// src/editor/nodes/spacer.ts
|
|
6085
6132
|
var import_core12 = require("@tiptap/core");
|
|
@@ -6168,7 +6215,7 @@ var import_react45 = require("@tiptap/react");
|
|
|
6168
6215
|
var import_react44 = require("@tiptap/react");
|
|
6169
6216
|
|
|
6170
6217
|
// src/editor/components/input.tsx
|
|
6171
|
-
var React5 = __toESM(require("react"));
|
|
6218
|
+
var React5 = __toESM(require("react"), 1);
|
|
6172
6219
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6173
6220
|
var Input = React5.forwardRef(
|
|
6174
6221
|
(_a, ref) => {
|
|
@@ -6190,7 +6237,7 @@ var Input = React5.forwardRef(
|
|
|
6190
6237
|
Input.displayName = "Input";
|
|
6191
6238
|
|
|
6192
6239
|
// src/editor/components/textarea.tsx
|
|
6193
|
-
var React6 = __toESM(require("react"));
|
|
6240
|
+
var React6 = __toESM(require("react"), 1);
|
|
6194
6241
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6195
6242
|
var Textarea = React6.forwardRef(
|
|
6196
6243
|
(_a, ref) => {
|
|
@@ -7083,8 +7130,9 @@ var ButtonExtension = import_core14.Node.create({
|
|
|
7083
7130
|
});
|
|
7084
7131
|
|
|
7085
7132
|
// src/editor/nodes/image/image.ts
|
|
7086
|
-
var import_extension_image2 = __toESM(require("@tiptap/extension-image"));
|
|
7133
|
+
var import_extension_image2 = __toESM(require("@tiptap/extension-image"), 1);
|
|
7087
7134
|
var import_react50 = require("@tiptap/react");
|
|
7135
|
+
var DEFAULT_IMAGE_BORDER_RADIUS = 0;
|
|
7088
7136
|
var ImageExtension = import_extension_image2.default.extend({
|
|
7089
7137
|
addAttributes() {
|
|
7090
7138
|
var _a;
|
|
@@ -7148,6 +7196,17 @@ var ImageExtension = import_extension_image2.default.extend({
|
|
|
7148
7196
|
};
|
|
7149
7197
|
}
|
|
7150
7198
|
},
|
|
7199
|
+
borderRadius: {
|
|
7200
|
+
default: DEFAULT_IMAGE_BORDER_RADIUS,
|
|
7201
|
+
parseHTML: (element) => {
|
|
7202
|
+
return Number(element.getAttribute("data-border-radius"));
|
|
7203
|
+
},
|
|
7204
|
+
renderHTML: (attributes) => {
|
|
7205
|
+
return {
|
|
7206
|
+
"data-border-radius": attributes.borderRadius
|
|
7207
|
+
};
|
|
7208
|
+
}
|
|
7209
|
+
},
|
|
7151
7210
|
// Later we will remove this attribute
|
|
7152
7211
|
// and use the `src` attribute instead when implement
|
|
7153
7212
|
// the URL variable feature
|
|
@@ -7165,6 +7224,34 @@ var ImageExtension = import_extension_image2.default.extend({
|
|
|
7165
7224
|
};
|
|
7166
7225
|
}
|
|
7167
7226
|
},
|
|
7227
|
+
aspectRatio: {
|
|
7228
|
+
default: null,
|
|
7229
|
+
parseHTML: (element) => {
|
|
7230
|
+
return element.getAttribute("data-aspect-ratio") || null;
|
|
7231
|
+
},
|
|
7232
|
+
renderHTML: (attributes) => {
|
|
7233
|
+
if (!(attributes == null ? void 0 : attributes.aspectRatio)) {
|
|
7234
|
+
return {};
|
|
7235
|
+
}
|
|
7236
|
+
return {
|
|
7237
|
+
"data-aspect-ratio": attributes == null ? void 0 : attributes.aspectRatio
|
|
7238
|
+
};
|
|
7239
|
+
}
|
|
7240
|
+
},
|
|
7241
|
+
lockAspectRatio: {
|
|
7242
|
+
default: true,
|
|
7243
|
+
parseHTML: (element) => {
|
|
7244
|
+
return element.getAttribute("data-lock-aspect-ratio") === "true";
|
|
7245
|
+
},
|
|
7246
|
+
renderHTML: (attributes) => {
|
|
7247
|
+
if (!attributes.lockAspectRatio) {
|
|
7248
|
+
return {};
|
|
7249
|
+
}
|
|
7250
|
+
return {
|
|
7251
|
+
"data-lock-aspect-ratio": "true"
|
|
7252
|
+
};
|
|
7253
|
+
}
|
|
7254
|
+
},
|
|
7168
7255
|
showIfKey: {
|
|
7169
7256
|
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
7170
7257
|
parseHTML: (element) => {
|
|
@@ -7189,10 +7276,10 @@ var ImageExtension = import_extension_image2.default.extend({
|
|
|
7189
7276
|
});
|
|
7190
7277
|
|
|
7191
7278
|
// src/editor/nodes/html/html.tsx
|
|
7192
|
-
var import_extension_code_block_lowlight = __toESM(require("@tiptap/extension-code-block-lowlight"));
|
|
7279
|
+
var import_extension_code_block_lowlight = __toESM(require("@tiptap/extension-code-block-lowlight"), 1);
|
|
7193
7280
|
var import_state7 = require("@tiptap/pm/state");
|
|
7194
|
-
var
|
|
7195
|
-
var import_xml = __toESM(require("highlight.js/lib/languages/xml"));
|
|
7281
|
+
var import_react60 = require("@tiptap/react");
|
|
7282
|
+
var import_xml = __toESM(require("highlight.js/lib/languages/xml"), 1);
|
|
7196
7283
|
var import_lowlight = require("lowlight");
|
|
7197
7284
|
|
|
7198
7285
|
// src/editor/nodes/html/html-view.tsx
|
|
@@ -7242,7 +7329,24 @@ function HTMLCodeBlockView(props) {
|
|
|
7242
7329
|
"mly-not-prose mly-rounded-lg mly-border mly-border-gray-200 mly-p-2",
|
|
7243
7330
|
isEmpty && "mly-min-h-[42px]"
|
|
7244
7331
|
),
|
|
7245
|
-
|
|
7332
|
+
ref: (node2) => {
|
|
7333
|
+
if (!node2 || (node2 == null ? void 0 : node2.shadowRoot)) {
|
|
7334
|
+
return;
|
|
7335
|
+
}
|
|
7336
|
+
const shadow = node2.attachShadow({ mode: "open" });
|
|
7337
|
+
const sheet = new CSSStyleSheet();
|
|
7338
|
+
sheet.replaceSync(`
|
|
7339
|
+
* { font-family: 'Inter', sans-serif; }
|
|
7340
|
+
blockquote, h1, h2, h3, img, li, ol, p, ul {
|
|
7341
|
+
margin-top: 0;
|
|
7342
|
+
margin-bottom: 0;
|
|
7343
|
+
}
|
|
7344
|
+
`);
|
|
7345
|
+
shadow.adoptedStyleSheets = [sheet];
|
|
7346
|
+
const container = document.createElement("div");
|
|
7347
|
+
container.innerHTML = html2;
|
|
7348
|
+
shadow.appendChild(container);
|
|
7349
|
+
},
|
|
7246
7350
|
contentEditable: false,
|
|
7247
7351
|
onClick: () => {
|
|
7248
7352
|
if (!isEmpty) {
|
|
@@ -7260,7 +7364,7 @@ function HTMLCodeBlockView(props) {
|
|
|
7260
7364
|
}
|
|
7261
7365
|
|
|
7262
7366
|
// src/editor/extensions/color.ts
|
|
7263
|
-
var import_extension_color = __toESM(require("@tiptap/extension-color"));
|
|
7367
|
+
var import_extension_color = __toESM(require("@tiptap/extension-color"), 1);
|
|
7264
7368
|
var Color = import_extension_color.default.extend({
|
|
7265
7369
|
addStorage() {
|
|
7266
7370
|
return {
|
|
@@ -7271,16 +7375,16 @@ var Color = import_extension_color.default.extend({
|
|
|
7271
7375
|
|
|
7272
7376
|
// src/editor/extensions/maily-kit.tsx
|
|
7273
7377
|
var import_core17 = require("@tiptap/core");
|
|
7274
|
-
var import_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
7275
|
-
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"));
|
|
7276
|
-
var import_extension_paragraph2 = __toESM(require("@tiptap/extension-paragraph"));
|
|
7277
|
-
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"));
|
|
7278
|
-
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"));
|
|
7279
|
-
var import_extension_heading2 = __toESM(require("@tiptap/extension-heading"));
|
|
7280
|
-
var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
|
|
7281
|
-
var import_extension_document = __toESM(require("@tiptap/extension-document"));
|
|
7282
|
-
var import_extension_focus = __toESM(require("@tiptap/extension-focus"));
|
|
7283
|
-
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"));
|
|
7378
|
+
var import_starter_kit = __toESM(require("@tiptap/starter-kit"), 1);
|
|
7379
|
+
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"), 1);
|
|
7380
|
+
var import_extension_paragraph2 = __toESM(require("@tiptap/extension-paragraph"), 1);
|
|
7381
|
+
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"), 1);
|
|
7382
|
+
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"), 1);
|
|
7383
|
+
var import_extension_heading2 = __toESM(require("@tiptap/extension-heading"), 1);
|
|
7384
|
+
var import_extension_underline = __toESM(require("@tiptap/extension-underline"), 1);
|
|
7385
|
+
var import_extension_document = __toESM(require("@tiptap/extension-document"), 1);
|
|
7386
|
+
var import_extension_focus = __toESM(require("@tiptap/extension-focus"), 1);
|
|
7387
|
+
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"), 1);
|
|
7284
7388
|
|
|
7285
7389
|
// src/editor/nodes/footer.ts
|
|
7286
7390
|
var import_core15 = require("@tiptap/core");
|
|
@@ -7323,7 +7427,7 @@ var Footer = import_core15.Node.create({
|
|
|
7323
7427
|
});
|
|
7324
7428
|
|
|
7325
7429
|
// src/editor/nodes/link.ts
|
|
7326
|
-
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
7430
|
+
var import_extension_link = __toESM(require("@tiptap/extension-link"), 1);
|
|
7327
7431
|
var LinkExtension = import_extension_link.default.extend({
|
|
7328
7432
|
addAttributes() {
|
|
7329
7433
|
var _a;
|
|
@@ -7344,7 +7448,7 @@ var LinkExtension = import_extension_link.default.extend({
|
|
|
7344
7448
|
});
|
|
7345
7449
|
|
|
7346
7450
|
// src/editor/nodes/heading/heading.ts
|
|
7347
|
-
var import_extension_heading = __toESM(require("@tiptap/extension-heading"));
|
|
7451
|
+
var import_extension_heading = __toESM(require("@tiptap/extension-heading"), 1);
|
|
7348
7452
|
var HeadingExtension = import_extension_heading.default.extend({
|
|
7349
7453
|
addAttributes() {
|
|
7350
7454
|
var _a;
|
|
@@ -7368,7 +7472,7 @@ var HeadingExtension = import_extension_heading.default.extend({
|
|
|
7368
7472
|
});
|
|
7369
7473
|
|
|
7370
7474
|
// src/editor/nodes/paragraph/paragraph.ts
|
|
7371
|
-
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"));
|
|
7475
|
+
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"), 1);
|
|
7372
7476
|
var ParagraphExtension = import_extension_paragraph.default.extend({
|
|
7373
7477
|
addAttributes() {
|
|
7374
7478
|
var _a;
|
|
@@ -7621,7 +7725,7 @@ var MailyKit = import_core17.Extension.create({
|
|
|
7621
7725
|
});
|
|
7622
7726
|
|
|
7623
7727
|
// src/editor/extensions/placeholder.ts
|
|
7624
|
-
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"));
|
|
7728
|
+
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"), 1);
|
|
7625
7729
|
var PlaceholderExtension = import_extension_placeholder.default.configure({
|
|
7626
7730
|
placeholder: ({ node }) => {
|
|
7627
7731
|
if (node.type.name === "heading") {
|
|
@@ -7640,7 +7744,7 @@ var PlaceholderExtension = import_extension_placeholder.default.configure({
|
|
|
7640
7744
|
|
|
7641
7745
|
// src/editor/extensions/slash-command/slash-command.ts
|
|
7642
7746
|
var import_core18 = require("@tiptap/core");
|
|
7643
|
-
var import_suggestion2 = __toESM(require("@tiptap/suggestion"));
|
|
7747
|
+
var import_suggestion2 = __toESM(require("@tiptap/suggestion"), 1);
|
|
7644
7748
|
var SlashCommandExtension = import_core18.Extension.create({
|
|
7645
7749
|
name: "slash-command",
|
|
7646
7750
|
addOptions() {
|
|
@@ -7663,16 +7767,118 @@ var SlashCommandExtension = import_core18.Extension.create({
|
|
|
7663
7767
|
});
|
|
7664
7768
|
|
|
7665
7769
|
// src/editor/extensions/slash-command/slash-command-view.tsx
|
|
7666
|
-
var
|
|
7667
|
-
var
|
|
7668
|
-
var import_tippy8 = __toESM(require("tippy.js"));
|
|
7770
|
+
var import_react56 = require("@tiptap/react");
|
|
7771
|
+
var import_react57 = require("react");
|
|
7772
|
+
var import_tippy8 = __toESM(require("tippy.js"), 1);
|
|
7773
|
+
|
|
7774
|
+
// src/editor/extensions/slash-command/slash-command-item.tsx
|
|
7669
7775
|
var import_lucide_react28 = require("lucide-react");
|
|
7776
|
+
var import_react55 = require("react");
|
|
7670
7777
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
const
|
|
7674
|
-
|
|
7675
|
-
|
|
7778
|
+
function SlashCommandItem(props) {
|
|
7779
|
+
var _a;
|
|
7780
|
+
const {
|
|
7781
|
+
item,
|
|
7782
|
+
groupIndex,
|
|
7783
|
+
commandIndex,
|
|
7784
|
+
selectedGroupIndex,
|
|
7785
|
+
selectedCommandIndex,
|
|
7786
|
+
editor,
|
|
7787
|
+
activeCommandRef,
|
|
7788
|
+
selectItem
|
|
7789
|
+
} = props;
|
|
7790
|
+
const [open, setOpen] = (0, import_react55.useState)(false);
|
|
7791
|
+
const [isHovered, setIsHovered] = (0, import_react55.useState)(false);
|
|
7792
|
+
const isActive = groupIndex === selectedGroupIndex && commandIndex === selectedCommandIndex;
|
|
7793
|
+
const isSubCommand = item && "commands" in item;
|
|
7794
|
+
const shouldOpenTooltip = !!(item == null ? void 0 : item.preview) && (isActive || isHovered);
|
|
7795
|
+
const hasRenderFunction = typeof item.render === "function";
|
|
7796
|
+
const renderFunctionValue = hasRenderFunction ? (_a = item.render) == null ? void 0 : _a.call(item, editor) : null;
|
|
7797
|
+
let value = /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
7798
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
|
|
7799
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "mly-grow", children: [
|
|
7800
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "mly-font-medium", children: item.title }),
|
|
7801
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
|
|
7802
|
+
] }),
|
|
7803
|
+
isSubCommand && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "mly-block mly-px-1 mly-text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react28.ChevronRightIcon, { className: "mly-size-3.5 mly-stroke-[2.5]" }) })
|
|
7804
|
+
] });
|
|
7805
|
+
if (renderFunctionValue !== null && renderFunctionValue !== true) {
|
|
7806
|
+
value = renderFunctionValue;
|
|
7807
|
+
}
|
|
7808
|
+
const openTimerRef = (0, import_react55.useRef)(0);
|
|
7809
|
+
const handleDelayedOpen = (0, import_react55.useCallback)(() => {
|
|
7810
|
+
window.clearTimeout(openTimerRef.current);
|
|
7811
|
+
const delay = 200;
|
|
7812
|
+
openTimerRef.current = window.setTimeout(() => {
|
|
7813
|
+
setOpen(true);
|
|
7814
|
+
openTimerRef.current = 0;
|
|
7815
|
+
}, delay);
|
|
7816
|
+
}, [setOpen]);
|
|
7817
|
+
(0, import_react55.useEffect)(() => {
|
|
7818
|
+
if (shouldOpenTooltip) {
|
|
7819
|
+
handleDelayedOpen();
|
|
7820
|
+
} else {
|
|
7821
|
+
window.clearTimeout(openTimerRef.current);
|
|
7822
|
+
openTimerRef.current = 0;
|
|
7823
|
+
setOpen(false);
|
|
7824
|
+
}
|
|
7825
|
+
}, [shouldOpenTooltip]);
|
|
7826
|
+
(0, import_react55.useEffect)(() => {
|
|
7827
|
+
return () => {
|
|
7828
|
+
if (openTimerRef.current) {
|
|
7829
|
+
window.clearTimeout(openTimerRef.current);
|
|
7830
|
+
openTimerRef.current = 0;
|
|
7831
|
+
}
|
|
7832
|
+
};
|
|
7833
|
+
}, []);
|
|
7834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Tooltip, { open, children: [
|
|
7835
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7836
|
+
"button",
|
|
7837
|
+
{
|
|
7838
|
+
className: cn(
|
|
7839
|
+
"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",
|
|
7840
|
+
isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
|
|
7841
|
+
),
|
|
7842
|
+
onClick: () => selectItem(groupIndex, commandIndex),
|
|
7843
|
+
onMouseEnter: () => setIsHovered(true),
|
|
7844
|
+
onMouseLeave: () => setIsHovered(false),
|
|
7845
|
+
type: "button",
|
|
7846
|
+
ref: isActive ? activeCommandRef : null,
|
|
7847
|
+
children: value
|
|
7848
|
+
}
|
|
7849
|
+
) }),
|
|
7850
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7851
|
+
TooltipContent,
|
|
7852
|
+
{
|
|
7853
|
+
side: "right",
|
|
7854
|
+
sideOffset: 10,
|
|
7855
|
+
className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
|
|
7856
|
+
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
7857
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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__ */ (0, import_jsx_runtime53.jsx)(
|
|
7858
|
+
"img",
|
|
7859
|
+
{
|
|
7860
|
+
src: item == null ? void 0 : item.preview,
|
|
7861
|
+
alt: item == null ? void 0 : item.title,
|
|
7862
|
+
className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
|
|
7863
|
+
}
|
|
7864
|
+
) }),
|
|
7865
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
|
|
7866
|
+
] })
|
|
7867
|
+
}
|
|
7868
|
+
)
|
|
7869
|
+
] }, `${groupIndex}-${commandIndex}`);
|
|
7870
|
+
}
|
|
7871
|
+
|
|
7872
|
+
// src/editor/extensions/slash-command/slash-command-view.tsx
|
|
7873
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7874
|
+
var CommandList = (0, import_react57.forwardRef)(function CommandList2(props, ref) {
|
|
7875
|
+
const { items: groups, command, editor, range, query } = props;
|
|
7876
|
+
const [selectedGroupIndex, setSelectedGroupIndex] = (0, import_react57.useState)(0);
|
|
7877
|
+
const [selectedCommandIndex, setSelectedCommandIndex] = (0, import_react57.useState)(0);
|
|
7878
|
+
const prevQuery = (0, import_react57.useRef)("");
|
|
7879
|
+
const prevSelectedGroupIndex = (0, import_react57.useRef)(0);
|
|
7880
|
+
const prevSelectedCommandIndex = (0, import_react57.useRef)(0);
|
|
7881
|
+
const selectItem = (0, import_react57.useCallback)(
|
|
7676
7882
|
(groupIndex, commandIndex) => {
|
|
7677
7883
|
const item = groups[groupIndex].commands[commandIndex];
|
|
7678
7884
|
if (!item) {
|
|
@@ -7682,71 +7888,104 @@ var CommandList = (0, import_react56.forwardRef)(function CommandList2(props, re
|
|
|
7682
7888
|
},
|
|
7683
7889
|
[command]
|
|
7684
7890
|
);
|
|
7685
|
-
(0,
|
|
7891
|
+
(0, import_react57.useImperativeHandle)(ref, () => ({
|
|
7686
7892
|
onKeyDown: ({ event }) => {
|
|
7687
|
-
var _a, _b;
|
|
7688
|
-
const navigationKeys = [
|
|
7893
|
+
var _a, _b, _c, _d;
|
|
7894
|
+
const navigationKeys = [
|
|
7895
|
+
"ArrowUp",
|
|
7896
|
+
"ArrowDown",
|
|
7897
|
+
"Enter",
|
|
7898
|
+
"ArrowLeft",
|
|
7899
|
+
"ArrowRight"
|
|
7900
|
+
];
|
|
7689
7901
|
if (navigationKeys.includes(event.key)) {
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7902
|
+
let newCommandIndex = selectedCommandIndex;
|
|
7903
|
+
let newGroupIndex = selectedGroupIndex;
|
|
7904
|
+
switch (event.key) {
|
|
7905
|
+
case "ArrowLeft":
|
|
7906
|
+
event.preventDefault();
|
|
7907
|
+
const group = groups == null ? void 0 : groups[selectedGroupIndex];
|
|
7908
|
+
const isInsideSubCommand = group && "id" in group;
|
|
7909
|
+
if (!isInsideSubCommand) {
|
|
7910
|
+
return false;
|
|
7911
|
+
}
|
|
7912
|
+
editor.chain().focus().insertContentAt(range, `/${prevQuery.current}`).run();
|
|
7913
|
+
setTimeout(() => {
|
|
7914
|
+
setSelectedGroupIndex(prevSelectedGroupIndex.current);
|
|
7915
|
+
setSelectedCommandIndex(prevSelectedCommandIndex.current);
|
|
7916
|
+
}, 0);
|
|
7917
|
+
return true;
|
|
7918
|
+
case "ArrowRight":
|
|
7919
|
+
event.preventDefault();
|
|
7920
|
+
const command2 = (_b = (_a = groups == null ? void 0 : groups[selectedGroupIndex]) == null ? void 0 : _a.commands) == null ? void 0 : _b[selectedCommandIndex];
|
|
7921
|
+
const isSelectingSubCommand = command2 && "commands" in command2;
|
|
7922
|
+
if (!isSelectingSubCommand) {
|
|
7923
|
+
return false;
|
|
7924
|
+
}
|
|
7925
|
+
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7926
|
+
prevQuery.current = query;
|
|
7927
|
+
prevSelectedGroupIndex.current = selectedGroupIndex;
|
|
7928
|
+
prevSelectedCommandIndex.current = selectedCommandIndex;
|
|
7929
|
+
return true;
|
|
7930
|
+
case "Enter":
|
|
7931
|
+
if (!groups.length) {
|
|
7932
|
+
return false;
|
|
7933
|
+
}
|
|
7934
|
+
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7935
|
+
prevQuery.current = query;
|
|
7936
|
+
prevSelectedGroupIndex.current = selectedGroupIndex;
|
|
7937
|
+
prevSelectedCommandIndex.current = selectedCommandIndex;
|
|
7938
|
+
return true;
|
|
7939
|
+
case "ArrowUp":
|
|
7940
|
+
if (!groups.length) {
|
|
7941
|
+
return false;
|
|
7942
|
+
}
|
|
7943
|
+
newCommandIndex = selectedCommandIndex - 1;
|
|
7944
|
+
newGroupIndex = selectedGroupIndex;
|
|
7945
|
+
if (newCommandIndex < 0) {
|
|
7946
|
+
newGroupIndex = selectedGroupIndex - 1;
|
|
7947
|
+
newCommandIndex = ((_c = groups[newGroupIndex]) == null ? void 0 : _c.commands.length) - 1 || 0;
|
|
7948
|
+
}
|
|
7949
|
+
if (newGroupIndex < 0) {
|
|
7950
|
+
newGroupIndex = groups.length - 1;
|
|
7951
|
+
newCommandIndex = ((_d = groups[newGroupIndex]) == null ? void 0 : _d.commands.length) - 1 || 0;
|
|
7952
|
+
}
|
|
7953
|
+
setSelectedGroupIndex(newGroupIndex);
|
|
7954
|
+
setSelectedCommandIndex(newCommandIndex);
|
|
7955
|
+
return true;
|
|
7956
|
+
case "ArrowDown":
|
|
7957
|
+
if (!groups.length) {
|
|
7958
|
+
return false;
|
|
7959
|
+
}
|
|
7960
|
+
const commands = groups[selectedGroupIndex].commands;
|
|
7961
|
+
newCommandIndex = selectedCommandIndex + 1;
|
|
7962
|
+
newGroupIndex = selectedGroupIndex;
|
|
7963
|
+
if (commands.length - 1 < newCommandIndex) {
|
|
7964
|
+
newCommandIndex = 0;
|
|
7965
|
+
newGroupIndex = selectedGroupIndex + 1;
|
|
7966
|
+
}
|
|
7967
|
+
if (groups.length - 1 < newGroupIndex) {
|
|
7968
|
+
newGroupIndex = 0;
|
|
7969
|
+
}
|
|
7970
|
+
setSelectedGroupIndex(newGroupIndex);
|
|
7971
|
+
setSelectedCommandIndex(newCommandIndex);
|
|
7972
|
+
return true;
|
|
7973
|
+
default:
|
|
7728
7974
|
return false;
|
|
7729
|
-
}
|
|
7730
|
-
selectItem(selectedGroupIndex, selectedCommandIndex);
|
|
7731
|
-
return true;
|
|
7732
7975
|
}
|
|
7733
|
-
return false;
|
|
7734
7976
|
}
|
|
7735
7977
|
}
|
|
7736
7978
|
}));
|
|
7737
|
-
(0,
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
}, [groups]);
|
|
7741
|
-
const commandListContainer = (0, import_react56.useRef)(null);
|
|
7742
|
-
const activeCommandRef = (0, import_react56.useRef)(null);
|
|
7743
|
-
(0, import_react56.useLayoutEffect)(() => {
|
|
7979
|
+
const commandListContainer = (0, import_react57.useRef)(null);
|
|
7980
|
+
const activeCommandRef = (0, import_react57.useRef)(null);
|
|
7981
|
+
(0, import_react57.useLayoutEffect)(() => {
|
|
7744
7982
|
const container = commandListContainer == null ? void 0 : commandListContainer.current;
|
|
7745
7983
|
const activeCommandContainer = activeCommandRef == null ? void 0 : activeCommandRef.current;
|
|
7746
7984
|
if (!container || !activeCommandContainer) {
|
|
7747
7985
|
return;
|
|
7748
7986
|
}
|
|
7749
7987
|
const { offsetTop, offsetHeight } = activeCommandContainer;
|
|
7988
|
+
container.style.transition = "none";
|
|
7750
7989
|
container.scrollTop = offsetTop - offsetHeight;
|
|
7751
7990
|
}, [
|
|
7752
7991
|
selectedGroupIndex,
|
|
@@ -7754,15 +7993,26 @@ var CommandList = (0, import_react56.forwardRef)(function CommandList2(props, re
|
|
|
7754
7993
|
commandListContainer,
|
|
7755
7994
|
activeCommandRef
|
|
7756
7995
|
]);
|
|
7757
|
-
|
|
7758
|
-
|
|
7996
|
+
(0, import_react57.useEffect)(() => {
|
|
7997
|
+
setSelectedGroupIndex(0);
|
|
7998
|
+
setSelectedCommandIndex(0);
|
|
7999
|
+
}, [groups]);
|
|
8000
|
+
(0, import_react57.useEffect)(() => {
|
|
8001
|
+
return () => {
|
|
8002
|
+
prevQuery.current = "";
|
|
8003
|
+
prevSelectedGroupIndex.current = 0;
|
|
8004
|
+
prevSelectedCommandIndex.current = 0;
|
|
8005
|
+
};
|
|
8006
|
+
}, []);
|
|
8007
|
+
return groups.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("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: [
|
|
8008
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7759
8009
|
"div",
|
|
7760
8010
|
{
|
|
7761
8011
|
id: "slash-command",
|
|
7762
8012
|
ref: commandListContainer,
|
|
7763
|
-
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto
|
|
7764
|
-
children: groups.map((group, groupIndex) => /* @__PURE__ */ (0,
|
|
7765
|
-
/* @__PURE__ */ (0,
|
|
8013
|
+
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto",
|
|
8014
|
+
children: groups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react57.Fragment, { children: [
|
|
8015
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7766
8016
|
"span",
|
|
7767
8017
|
{
|
|
7768
8018
|
className: cn(
|
|
@@ -7772,72 +8022,35 @@ var CommandList = (0, import_react56.forwardRef)(function CommandList2(props, re
|
|
|
7772
8022
|
children: group.title
|
|
7773
8023
|
}
|
|
7774
8024
|
),
|
|
7775
|
-
/* @__PURE__ */ (0,
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
value = renderFunctionValue;
|
|
7791
|
-
}
|
|
7792
|
-
const shouldOpenTooltip = !!(item == null ? void 0 : item.preview) && isActive;
|
|
7793
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Tooltip, { open: shouldOpenTooltip, children: [
|
|
7794
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7795
|
-
"button",
|
|
7796
|
-
{
|
|
7797
|
-
className: cn(
|
|
7798
|
-
"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",
|
|
7799
|
-
isActive ? "mly-bg-gray-100 mly-text-gray-900" : "mly-bg-transparent"
|
|
7800
|
-
),
|
|
7801
|
-
onClick: () => selectItem(groupIndex, commandIndex),
|
|
7802
|
-
type: "button",
|
|
7803
|
-
ref: isActive ? activeCommandRef : null,
|
|
7804
|
-
children: value
|
|
7805
|
-
}
|
|
7806
|
-
) }),
|
|
7807
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7808
|
-
TooltipContent,
|
|
7809
|
-
{
|
|
7810
|
-
side: "right",
|
|
7811
|
-
sideOffset: 10,
|
|
7812
|
-
className: "mly-w-52 mly-rounded-lg mly-border-none mly-p-1 mly-shadow",
|
|
7813
|
-
children: typeof item.preview === "function" ? item == null ? void 0 : item.preview(editor) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
7814
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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__ */ (0, import_jsx_runtime53.jsx)(
|
|
7815
|
-
"img",
|
|
7816
|
-
{
|
|
7817
|
-
src: item == null ? void 0 : item.preview,
|
|
7818
|
-
alt: item == null ? void 0 : item.title,
|
|
7819
|
-
className: "mly-absolute mly-inset-0 mly-h-full mly-w-full mly-object-cover"
|
|
7820
|
-
}
|
|
7821
|
-
) }),
|
|
7822
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "mly-mt-2 mly-px-0.5 mly-text-gray-500", children: item.description })
|
|
7823
|
-
] })
|
|
7824
|
-
}
|
|
7825
|
-
)
|
|
7826
|
-
] }, commandIndex);
|
|
8025
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mly-space-y-0.5 mly-p-1", children: group.commands.map((item, commandIndex) => {
|
|
8026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
8027
|
+
SlashCommandItem,
|
|
8028
|
+
{
|
|
8029
|
+
item,
|
|
8030
|
+
groupIndex,
|
|
8031
|
+
commandIndex,
|
|
8032
|
+
selectedGroupIndex,
|
|
8033
|
+
selectedCommandIndex,
|
|
8034
|
+
selectItem: () => selectItem(groupIndex, commandIndex),
|
|
8035
|
+
editor,
|
|
8036
|
+
activeCommandRef
|
|
8037
|
+
},
|
|
8038
|
+
commandIndex
|
|
8039
|
+
);
|
|
7827
8040
|
}) })
|
|
7828
8041
|
] }, groupIndex))
|
|
7829
8042
|
}
|
|
7830
8043
|
),
|
|
7831
|
-
/* @__PURE__ */ (0,
|
|
7832
|
-
/* @__PURE__ */ (0,
|
|
7833
|
-
/* @__PURE__ */ (0,
|
|
7834
|
-
/* @__PURE__ */ (0,
|
|
8044
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "mly-flex mly-items-center", children: [
|
|
8045
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
8046
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
8047
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
7835
8048
|
" ",
|
|
7836
8049
|
"to navigate"
|
|
7837
8050
|
] }),
|
|
7838
|
-
/* @__PURE__ */ (0,
|
|
7839
|
-
/* @__PURE__ */ (0,
|
|
7840
|
-
/* @__PURE__ */ (0,
|
|
8051
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
8053
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
7841
8054
|
" ",
|
|
7842
8055
|
"to select"
|
|
7843
8056
|
] })
|
|
@@ -7926,7 +8139,7 @@ function getSlashCommandSuggestions(groups = DEFAULT_SLASH_COMMANDS) {
|
|
|
7926
8139
|
let popup = null;
|
|
7927
8140
|
return {
|
|
7928
8141
|
onStart: (props) => {
|
|
7929
|
-
component = new
|
|
8142
|
+
component = new import_react56.ReactRenderer(CommandList, {
|
|
7930
8143
|
props,
|
|
7931
8144
|
editor: props.editor
|
|
7932
8145
|
});
|
|
@@ -7940,24 +8153,36 @@ function getSlashCommandSuggestions(groups = DEFAULT_SLASH_COMMANDS) {
|
|
|
7940
8153
|
});
|
|
7941
8154
|
},
|
|
7942
8155
|
onUpdate: (props) => {
|
|
8156
|
+
var _a;
|
|
8157
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8158
|
+
if (!currentPopup || ((_a = currentPopup == null ? void 0 : currentPopup.state) == null ? void 0 : _a.isDestroyed)) {
|
|
8159
|
+
return;
|
|
8160
|
+
}
|
|
7943
8161
|
component == null ? void 0 : component.updateProps(props);
|
|
7944
|
-
|
|
8162
|
+
currentPopup.setProps({
|
|
7945
8163
|
getReferenceClientRect: props.clientRect
|
|
7946
8164
|
});
|
|
7947
8165
|
},
|
|
7948
8166
|
onKeyDown: (props) => {
|
|
7949
|
-
var _a;
|
|
8167
|
+
var _a, _b;
|
|
7950
8168
|
if (props.event.key === "Escape") {
|
|
7951
|
-
popup == null ? void 0 : popup[0]
|
|
8169
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8170
|
+
if (!((_a = currentPopup == null ? void 0 : currentPopup.state) == null ? void 0 : _a.isDestroyed)) {
|
|
8171
|
+
currentPopup == null ? void 0 : currentPopup.destroy();
|
|
8172
|
+
}
|
|
8173
|
+
component == null ? void 0 : component.destroy();
|
|
7952
8174
|
return true;
|
|
7953
8175
|
}
|
|
7954
|
-
return (
|
|
8176
|
+
return (_b = component == null ? void 0 : component.ref) == null ? void 0 : _b.onKeyDown(props);
|
|
7955
8177
|
},
|
|
7956
8178
|
onExit: () => {
|
|
7957
8179
|
if (!popup || !(popup == null ? void 0 : popup[0]) || !component) {
|
|
7958
8180
|
return;
|
|
7959
8181
|
}
|
|
7960
|
-
popup == null ? void 0 : popup[0]
|
|
8182
|
+
const currentPopup = popup == null ? void 0 : popup[0];
|
|
8183
|
+
if (!currentPopup.state.isDestroyed) {
|
|
8184
|
+
currentPopup.destroy();
|
|
8185
|
+
}
|
|
7961
8186
|
component == null ? void 0 : component.destroy();
|
|
7962
8187
|
}
|
|
7963
8188
|
};
|
|
@@ -7966,16 +8191,16 @@ function getSlashCommandSuggestions(groups = DEFAULT_SLASH_COMMANDS) {
|
|
|
7966
8191
|
}
|
|
7967
8192
|
|
|
7968
8193
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
7969
|
-
var
|
|
7970
|
-
var
|
|
7971
|
-
var import_tippy9 = __toESM(require("tippy.js"));
|
|
7972
|
-
var
|
|
7973
|
-
var VariableList = (0,
|
|
8194
|
+
var import_react58 = require("@tiptap/react");
|
|
8195
|
+
var import_react59 = require("react");
|
|
8196
|
+
var import_tippy9 = __toESM(require("tippy.js"), 1);
|
|
8197
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
8198
|
+
var VariableList = (0, import_react59.forwardRef)((props, ref) => {
|
|
7974
8199
|
var _a;
|
|
7975
8200
|
const { items = [], editor } = props;
|
|
7976
|
-
const popoverRef = (0,
|
|
8201
|
+
const popoverRef = (0, import_react59.useRef)(null);
|
|
7977
8202
|
const VariableSuggestionPopoverComponent = (_a = useVariableOptions(editor)) == null ? void 0 : _a.variableSuggestionsPopover;
|
|
7978
|
-
(0,
|
|
8203
|
+
(0, import_react59.useImperativeHandle)(ref, () => ({
|
|
7979
8204
|
onKeyDown: ({ event }) => {
|
|
7980
8205
|
if (!popoverRef.current) {
|
|
7981
8206
|
return false;
|
|
@@ -7998,7 +8223,7 @@ var VariableList = (0, import_react58.forwardRef)((props, ref) => {
|
|
|
7998
8223
|
return false;
|
|
7999
8224
|
}
|
|
8000
8225
|
}));
|
|
8001
|
-
return /* @__PURE__ */ (0,
|
|
8226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
8002
8227
|
VariableSuggestionPopoverComponent,
|
|
8003
8228
|
{
|
|
8004
8229
|
items,
|
|
@@ -8031,7 +8256,7 @@ function getVariableSuggestions(char = DEFAULT_VARIABLE_TRIGGER_CHAR) {
|
|
|
8031
8256
|
let popup = null;
|
|
8032
8257
|
return {
|
|
8033
8258
|
onStart: (props) => {
|
|
8034
|
-
component = new
|
|
8259
|
+
component = new import_react58.ReactRenderer(VariableList, {
|
|
8035
8260
|
props,
|
|
8036
8261
|
editor: props.editor
|
|
8037
8262
|
});
|
|
@@ -8105,7 +8330,7 @@ var HTMLCodeBlockExtension = import_extension_code_block_lowlight.default.extend
|
|
|
8105
8330
|
});
|
|
8106
8331
|
},
|
|
8107
8332
|
addNodeView() {
|
|
8108
|
-
return (0,
|
|
8333
|
+
return (0, import_react60.ReactNodeViewRenderer)(HTMLCodeBlockView, {
|
|
8109
8334
|
className: "mly-relative",
|
|
8110
8335
|
attrs: ({ node }) => {
|
|
8111
8336
|
var _a;
|
|
@@ -8180,17 +8405,17 @@ var isCustomNodeSelected = (editor, node) => {
|
|
|
8180
8405
|
};
|
|
8181
8406
|
|
|
8182
8407
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
8183
|
-
var
|
|
8408
|
+
var import_react64 = require("@tiptap/react");
|
|
8184
8409
|
|
|
8185
8410
|
// src/editor/components/text-menu/text-bubble-content.tsx
|
|
8186
8411
|
var import_lucide_react29 = require("lucide-react");
|
|
8187
8412
|
|
|
8188
8413
|
// src/editor/components/text-menu/use-text-menu-state.tsx
|
|
8189
|
-
var
|
|
8190
|
-
var import_fast_deep_equal8 = __toESM(require("fast-deep-equal"));
|
|
8414
|
+
var import_react61 = require("@tiptap/react");
|
|
8415
|
+
var import_fast_deep_equal8 = __toESM(require("fast-deep-equal"), 1);
|
|
8191
8416
|
var DEFAULT_TEXT_COLOR = "#374151";
|
|
8192
8417
|
var useTextMenuState = (editor) => {
|
|
8193
|
-
const states = (0,
|
|
8418
|
+
const states = (0, import_react61.useEditorState)({
|
|
8194
8419
|
editor,
|
|
8195
8420
|
selector: (ctx) => {
|
|
8196
8421
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -8212,7 +8437,7 @@ var useTextMenuState = (editor) => {
|
|
|
8212
8437
|
};
|
|
8213
8438
|
|
|
8214
8439
|
// src/editor/components/text-menu/text-bubble-content.tsx
|
|
8215
|
-
var
|
|
8440
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
8216
8441
|
function TextBubbleContent(props) {
|
|
8217
8442
|
var _a, _b, _c, _d;
|
|
8218
8443
|
const { editor, showListMenu = true } = props;
|
|
@@ -8256,9 +8481,9 @@ function TextBubbleContent(props) {
|
|
|
8256
8481
|
tooltip: "Code"
|
|
8257
8482
|
}
|
|
8258
8483
|
];
|
|
8259
|
-
return /* @__PURE__ */ (0,
|
|
8260
|
-
items.map((item, index) => /* @__PURE__ */ (0,
|
|
8261
|
-
/* @__PURE__ */ (0,
|
|
8484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
8485
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
8486
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8262
8487
|
AlignmentSwitch,
|
|
8263
8488
|
{
|
|
8264
8489
|
alignment: state.textAlign,
|
|
@@ -8267,8 +8492,8 @@ function TextBubbleContent(props) {
|
|
|
8267
8492
|
}
|
|
8268
8493
|
}
|
|
8269
8494
|
),
|
|
8270
|
-
!state.isListActive && showListMenu && /* @__PURE__ */ (0,
|
|
8271
|
-
/* @__PURE__ */ (0,
|
|
8495
|
+
!state.isListActive && showListMenu && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
8496
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8272
8497
|
BubbleMenuButton,
|
|
8273
8498
|
{
|
|
8274
8499
|
icon: import_lucide_react29.List,
|
|
@@ -8278,7 +8503,7 @@ function TextBubbleContent(props) {
|
|
|
8278
8503
|
tooltip: "Bullet List"
|
|
8279
8504
|
}
|
|
8280
8505
|
),
|
|
8281
|
-
/* @__PURE__ */ (0,
|
|
8506
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8282
8507
|
BubbleMenuButton,
|
|
8283
8508
|
{
|
|
8284
8509
|
icon: import_lucide_react29.ListOrdered,
|
|
@@ -8289,13 +8514,12 @@ function TextBubbleContent(props) {
|
|
|
8289
8514
|
}
|
|
8290
8515
|
)
|
|
8291
8516
|
] }),
|
|
8292
|
-
/* @__PURE__ */ (0,
|
|
8517
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8293
8518
|
LinkInputPopover,
|
|
8294
8519
|
{
|
|
8295
8520
|
defaultValue: (_d = state == null ? void 0 : state.linkUrl) != null ? _d : "",
|
|
8296
8521
|
onValueChange: (value, isVariable) => {
|
|
8297
|
-
|
|
8298
|
-
if (!defaultValueWithoutProtocol) {
|
|
8522
|
+
if (!value) {
|
|
8299
8523
|
editor == null ? void 0 : editor.chain().focus().extendMarkRange("link").unsetLink().unsetUnderline().run();
|
|
8300
8524
|
return;
|
|
8301
8525
|
}
|
|
@@ -8306,8 +8530,8 @@ function TextBubbleContent(props) {
|
|
|
8306
8530
|
isVariable: state.isUrlVariable
|
|
8307
8531
|
}
|
|
8308
8532
|
),
|
|
8309
|
-
/* @__PURE__ */ (0,
|
|
8310
|
-
/* @__PURE__ */ (0,
|
|
8533
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Divider, {}),
|
|
8534
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8311
8535
|
ColorPicker,
|
|
8312
8536
|
{
|
|
8313
8537
|
color: state.currentTextColor,
|
|
@@ -8316,16 +8540,16 @@ function TextBubbleContent(props) {
|
|
|
8316
8540
|
},
|
|
8317
8541
|
tooltip: "Text Color",
|
|
8318
8542
|
suggestedColors,
|
|
8319
|
-
children: /* @__PURE__ */ (0,
|
|
8543
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8320
8544
|
BaseButton,
|
|
8321
8545
|
{
|
|
8322
8546
|
variant: "ghost",
|
|
8323
8547
|
size: "sm",
|
|
8324
8548
|
type: "button",
|
|
8325
8549
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
8326
|
-
children: /* @__PURE__ */ (0,
|
|
8327
|
-
/* @__PURE__ */ (0,
|
|
8328
|
-
/* @__PURE__ */ (0,
|
|
8550
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
8551
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
8552
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8329
8553
|
"div",
|
|
8330
8554
|
{
|
|
8331
8555
|
className: "mly-h-[2px] mly-w-3",
|
|
@@ -8342,34 +8566,34 @@ function TextBubbleContent(props) {
|
|
|
8342
8566
|
|
|
8343
8567
|
// src/editor/components/text-menu/turn-into-block.tsx
|
|
8344
8568
|
var import_lucide_react30 = require("lucide-react");
|
|
8345
|
-
var
|
|
8346
|
-
var
|
|
8569
|
+
var import_react62 = require("react");
|
|
8570
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8347
8571
|
var isOption = (option) => option.type === "option";
|
|
8348
8572
|
var isCategory = (option) => option.type === "category";
|
|
8349
8573
|
function TurnIntoBlock(props) {
|
|
8350
8574
|
const { options } = props;
|
|
8351
|
-
const activeItem = (0,
|
|
8575
|
+
const activeItem = (0, import_react62.useMemo)(
|
|
8352
8576
|
() => options.find((option) => option.type === "option" && option.isActive()),
|
|
8353
8577
|
[options]
|
|
8354
8578
|
);
|
|
8355
8579
|
const { icon: ActiveIcon = import_lucide_react30.PilcrowIcon } = activeItem || {};
|
|
8356
|
-
return /* @__PURE__ */ (0,
|
|
8357
|
-
/* @__PURE__ */ (0,
|
|
8358
|
-
/* @__PURE__ */ (0,
|
|
8580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Popover, { children: [
|
|
8581
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Tooltip, { children: [
|
|
8582
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
8359
8583
|
PopoverTrigger,
|
|
8360
8584
|
{
|
|
8361
8585
|
className: cn(
|
|
8362
8586
|
"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"
|
|
8363
8587
|
),
|
|
8364
8588
|
children: [
|
|
8365
|
-
/* @__PURE__ */ (0,
|
|
8366
|
-
/* @__PURE__ */ (0,
|
|
8589
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ActiveIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
8590
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react30.ChevronDownIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" })
|
|
8367
8591
|
]
|
|
8368
8592
|
}
|
|
8369
8593
|
) }),
|
|
8370
|
-
/* @__PURE__ */ (0,
|
|
8594
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipContent, { sideOffset: 8, children: "Turn into" })
|
|
8371
8595
|
] }),
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8596
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8373
8597
|
PopoverContent,
|
|
8374
8598
|
{
|
|
8375
8599
|
align: "start",
|
|
@@ -8378,21 +8602,21 @@ function TurnIntoBlock(props) {
|
|
|
8378
8602
|
className: "mly-flex mly-w-[160px] mly-flex-col mly-rounded-md mly-p-1",
|
|
8379
8603
|
children: options.map((option, index) => {
|
|
8380
8604
|
if (isOption(option)) {
|
|
8381
|
-
return /* @__PURE__ */ (0,
|
|
8605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
8382
8606
|
BaseButton,
|
|
8383
8607
|
{
|
|
8384
8608
|
onClick: option.onClick,
|
|
8385
8609
|
variant: "ghost",
|
|
8386
8610
|
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",
|
|
8387
8611
|
children: [
|
|
8388
|
-
/* @__PURE__ */ (0,
|
|
8612
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(option.icon, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
8389
8613
|
option.label
|
|
8390
8614
|
]
|
|
8391
8615
|
},
|
|
8392
8616
|
option.id
|
|
8393
8617
|
);
|
|
8394
8618
|
} else if (isCategory(option)) {
|
|
8395
|
-
return /* @__PURE__ */ (0,
|
|
8619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8396
8620
|
"label",
|
|
8397
8621
|
{
|
|
8398
8622
|
className: cn(
|
|
@@ -8411,10 +8635,10 @@ function TurnIntoBlock(props) {
|
|
|
8411
8635
|
}
|
|
8412
8636
|
|
|
8413
8637
|
// src/editor/components/text-menu/use-turn-into-block-options.tsx
|
|
8414
|
-
var
|
|
8638
|
+
var import_react63 = require("@tiptap/react");
|
|
8415
8639
|
var import_lucide_react31 = require("lucide-react");
|
|
8416
8640
|
function useTurnIntoBlockOptions(editor) {
|
|
8417
|
-
return (0,
|
|
8641
|
+
return (0, import_react63.useEditorState)({
|
|
8418
8642
|
editor,
|
|
8419
8643
|
selector: ({ editor: editor2 }) => [
|
|
8420
8644
|
{
|
|
@@ -8497,7 +8721,7 @@ function useTurnIntoBlockOptions(editor) {
|
|
|
8497
8721
|
}
|
|
8498
8722
|
|
|
8499
8723
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
8500
|
-
var
|
|
8724
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
8501
8725
|
function TextBubbleMenu(props) {
|
|
8502
8726
|
const { editor, appendTo } = props;
|
|
8503
8727
|
if (!editor) {
|
|
@@ -8548,23 +8772,23 @@ function TextBubbleMenu(props) {
|
|
|
8548
8772
|
}
|
|
8549
8773
|
});
|
|
8550
8774
|
const turnIntoBlockOptions = useTurnIntoBlockOptions(editor);
|
|
8551
|
-
return /* @__PURE__ */ (0,
|
|
8552
|
-
|
|
8775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8776
|
+
import_react64.BubbleMenu,
|
|
8553
8777
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
8554
8778
|
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",
|
|
8555
|
-
children: /* @__PURE__ */ (0,
|
|
8556
|
-
/* @__PURE__ */ (0,
|
|
8557
|
-
/* @__PURE__ */ (0,
|
|
8558
|
-
/* @__PURE__ */ (0,
|
|
8779
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(TooltipProvider, { children: [
|
|
8780
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TurnIntoBlock, { options: turnIntoBlockOptions }),
|
|
8781
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Divider, { className: "mly-mx-0" }),
|
|
8782
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TextBubbleContent, { editor })
|
|
8559
8783
|
] })
|
|
8560
8784
|
})
|
|
8561
8785
|
);
|
|
8562
8786
|
}
|
|
8563
8787
|
|
|
8564
8788
|
// src/editor/components/variable-menu/variable-bubble-menu.tsx
|
|
8565
|
-
var
|
|
8789
|
+
var import_react65 = require("@tiptap/react");
|
|
8566
8790
|
var import_tippy10 = require("tippy.js");
|
|
8567
|
-
var
|
|
8791
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
8568
8792
|
function VariableBubbleMenu(props) {
|
|
8569
8793
|
const { editor, appendTo } = props;
|
|
8570
8794
|
if (!editor) {
|
|
@@ -8587,11 +8811,11 @@ function VariableBubbleMenu(props) {
|
|
|
8587
8811
|
placement: "top-start"
|
|
8588
8812
|
}
|
|
8589
8813
|
});
|
|
8590
|
-
return /* @__PURE__ */ (0,
|
|
8591
|
-
|
|
8814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8815
|
+
import_react65.BubbleMenu,
|
|
8592
8816
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
8593
8817
|
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",
|
|
8594
|
-
children: /* @__PURE__ */ (0,
|
|
8818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TextBubbleContent, { showListMenu: false, editor }) })
|
|
8595
8819
|
})
|
|
8596
8820
|
);
|
|
8597
8821
|
}
|
|
@@ -8645,7 +8869,7 @@ function replaceDeprecatedNode(json) {
|
|
|
8645
8869
|
}
|
|
8646
8870
|
|
|
8647
8871
|
// src/editor/index.tsx
|
|
8648
|
-
var
|
|
8872
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
8649
8873
|
function Editor13(props) {
|
|
8650
8874
|
const {
|
|
8651
8875
|
config: {
|
|
@@ -8666,7 +8890,7 @@ function Editor13(props) {
|
|
|
8666
8890
|
editable = true,
|
|
8667
8891
|
placeholderUrl = DEFAULT_PLACEHOLDER_URL
|
|
8668
8892
|
} = props;
|
|
8669
|
-
const formattedContent = (0,
|
|
8893
|
+
const formattedContent = (0, import_react67.useMemo)(() => {
|
|
8670
8894
|
if (contentJson) {
|
|
8671
8895
|
const json = (contentJson == null ? void 0 : contentJson.type) === "doc" ? contentJson : {
|
|
8672
8896
|
type: "doc",
|
|
@@ -8687,8 +8911,8 @@ function Editor13(props) {
|
|
|
8687
8911
|
};
|
|
8688
8912
|
}
|
|
8689
8913
|
}, [contentHtml, contentJson, replaceDeprecatedNode]);
|
|
8690
|
-
const menuContainerRef = (0,
|
|
8691
|
-
const editor = (0,
|
|
8914
|
+
const menuContainerRef = (0, import_react67.useRef)(null);
|
|
8915
|
+
const editor = (0, import_react66.useEditor)({
|
|
8692
8916
|
editorProps: {
|
|
8693
8917
|
attributes: {
|
|
8694
8918
|
class: cn(`mly-prose mly-w-full`, contentClassName),
|
|
@@ -8713,7 +8937,7 @@ function Editor13(props) {
|
|
|
8713
8937
|
if (!editor) {
|
|
8714
8938
|
return null;
|
|
8715
8939
|
}
|
|
8716
|
-
return /* @__PURE__ */ (0,
|
|
8940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MailyProvider, { placeholderUrl, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
8717
8941
|
"div",
|
|
8718
8942
|
{
|
|
8719
8943
|
className: cn(
|
|
@@ -8723,8 +8947,8 @@ function Editor13(props) {
|
|
|
8723
8947
|
),
|
|
8724
8948
|
ref: menuContainerRef,
|
|
8725
8949
|
children: [
|
|
8726
|
-
hasMenuBar && /* @__PURE__ */ (0,
|
|
8727
|
-
/* @__PURE__ */ (0,
|
|
8950
|
+
hasMenuBar && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(EditorMenuBar, { config: props.config, editor }),
|
|
8951
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
8728
8952
|
"div",
|
|
8729
8953
|
{
|
|
8730
8954
|
className: cn(
|
|
@@ -8732,17 +8956,17 @@ function Editor13(props) {
|
|
|
8732
8956
|
bodyClassName
|
|
8733
8957
|
),
|
|
8734
8958
|
children: [
|
|
8735
|
-
/* @__PURE__ */ (0,
|
|
8736
|
-
/* @__PURE__ */ (0,
|
|
8737
|
-
/* @__PURE__ */ (0,
|
|
8738
|
-
/* @__PURE__ */ (0,
|
|
8739
|
-
/* @__PURE__ */ (0,
|
|
8740
|
-
/* @__PURE__ */ (0,
|
|
8741
|
-
/* @__PURE__ */ (0,
|
|
8742
|
-
/* @__PURE__ */ (0,
|
|
8743
|
-
/* @__PURE__ */ (0,
|
|
8744
|
-
/* @__PURE__ */ (0,
|
|
8745
|
-
/* @__PURE__ */ (0,
|
|
8959
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8960
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ImageBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8961
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SpacerBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8962
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react66.EditorContent, { editor }),
|
|
8963
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SectionBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8964
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ColumnsBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8965
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ContentMenu, { editor }),
|
|
8966
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(VariableBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8967
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RepeatBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8968
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(HTMLBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
8969
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InlineImageBubbleMenu, { editor, appendTo: menuContainerRef })
|
|
8746
8970
|
]
|
|
8747
8971
|
}
|
|
8748
8972
|
)
|
|
@@ -8754,4 +8978,4 @@ function Editor13(props) {
|
|
|
8754
8978
|
0 && (module.exports = {
|
|
8755
8979
|
Editor
|
|
8756
8980
|
});
|
|
8757
|
-
//# sourceMappingURL=index.
|
|
8981
|
+
//# sourceMappingURL=index.cjs.map
|