@maily-to/core 0.0.21 → 0.0.23
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 +5 -0
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/index.mjs +5 -0
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/index.d.mts +300 -0
- package/dist/extensions/index.d.ts +300 -0
- package/dist/extensions/index.js +4224 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/index.mjs +4178 -0
- package/dist/extensions/index.mjs.map +1 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1124 -426
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1117 -405
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -3
- package/readme.md +50 -0
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n
|
|
|
60
60
|
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 --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');
|
|
61
61
|
|
|
62
62
|
// src/styles/tailwind.css
|
|
63
|
-
styleInject('*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n* {\n scrollbar-color: initial;\n scrollbar-width: initial;\n}\n.mly-prose {\n color: var(--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(--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(--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(--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(--tw-prose-counters);\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n color: var(--tw-prose-bullets);\n}\n.mly-prose :where(dt):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--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(--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(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--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(--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(--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(--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(--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(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--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(--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(--tw-prose-pre-code);\n background-color: var(--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(--tw-prose-th-borders);\n}\n.mly-prose :where(thead th):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--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(--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(--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(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n.mly-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --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-pointer-events-none {\n pointer-events: none;\n}\n.mly-absolute {\n position: absolute;\n}\n.mly-relative {\n position: relative;\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-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\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\\.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-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-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-4 {\n margin-top: 1rem;\n}\n.mly-block {\n display: block;\n}\n.mly-inline-block {\n display: inline-block;\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-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-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-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-\\[300px\\] {\n width: 300px;\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-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-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 --tw-translate-x: 100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.mly-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\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-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 --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--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-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n.mly-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.mly-border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity));\n}\n.mly-border-rose-400 {\n --tw-border-opacity: 1;\n border-color: rgb(251 113 133 / var(--tw-border-opacity));\n}\n.mly-border-slate-200 {\n --tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--tw-border-opacity));\n}\n.mly-border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n.\\!mly-bg-transparent {\n background-color: transparent !important;\n}\n.mly-bg-\\[\\#efefef\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(239 239 239 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n.mly-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.mly-bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity));\n}\n.mly-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(253 164 175 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 241 242 / var(--tw-bg-opacity));\n}\n.mly-bg-rose-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(244 63 94 / var(--tw-bg-opacity));\n}\n.mly-bg-soft-gray {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\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 --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.mly-bg-yellow-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--tw-bg-opacity));\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-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-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-px-\\[32px\\] {\n padding-left: 32px;\n padding-right: 32px;\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-py-\\[20px\\] {\n padding-top: 20px;\n padding-bottom: 20px;\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 --tw-numeric-spacing: tabular-nums;\n font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--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-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.mly-text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity));\n}\n.mly-text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.mly-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n.mly-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n.mly-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.mly-text-gray-950 {\n --tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--tw-text-opacity));\n}\n.mly-text-midnight-gray {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\n}\n.mly-text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.mly-text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}\n.mly-text-rose-600 {\n --tw-text-opacity: 1;\n color: rgb(225 29 72 / var(--tw-text-opacity));\n}\n.mly-text-rose-800 {\n --tw-text-opacity: 1;\n color: rgb(159 18 57 / var(--tw-text-opacity));\n}\n.mly-text-slate-400 {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity));\n}\n.mly-text-slate-500 {\n --tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--tw-text-opacity));\n}\n.mly-text-slate-600 {\n --tw-text-opacity: 1;\n color: rgb(71 85 105 / var(--tw-text-opacity));\n}\n.mly-text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity));\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-60 {\n opacity: 0.6;\n}\n.mly-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.mly-ring-offset-white {\n --tw-ring-offset-color: #fff;\n}\n.mly-drop-shadow-md {\n --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(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--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(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.mly-animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.mly-fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.mly-zoom-in-95 {\n --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 --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-500::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.placeholder\\:mly-text-gray-500::placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\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 --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=open\\]\\:mly-bg-soft-gray[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-bg-soft-gray[data-state=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.data-\\[state\\=true\\]\\:mly-text-gray-900[data-state=true] {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.data-\\[disabled\\]\\:mly-opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.hover\\:mly-bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\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 --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\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 --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity));\n}\n.hover\\:mly-bg-soft-gray:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\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 --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-gray-900:hover {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.hover\\:mly-text-midnight-gray:hover {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--tw-text-opacity));\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 --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-red-200:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.focus\\:mly-bg-soft-gray:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\n}\n.focus\\:mly-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:mly-ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:mly-ring-midnight-gray\\/50:focus {\n --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 --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity));\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 --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:mly-ring-gray-400:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));\n}\n.focus-visible\\:mly-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.active\\:mly-bg-soft-gray:active {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\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');
|
|
63
|
+
styleInject('*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n* {\n scrollbar-color: initial;\n scrollbar-width: initial;\n}\n.mly-prose {\n color: var(--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(--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(--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(--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(--tw-prose-counters);\n}\n.mly-prose :where(ul > li):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *))::marker {\n color: var(--tw-prose-bullets);\n}\n.mly-prose :where(dt):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--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(--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(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--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(--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(--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(--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(--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(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--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(--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(--tw-prose-pre-code);\n background-color: var(--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(--tw-prose-th-borders);\n}\n.mly-prose :where(thead th):not(:where([class~=mly-not-prose], [class~=mly-not-prose] *)) {\n color: var(--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(--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(--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(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n.mly-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --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-pointer-events-none {\n pointer-events: none;\n}\n.mly-absolute {\n position: absolute;\n}\n.mly-relative {\n position: relative;\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\\.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-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-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-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-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-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 --tw-translate-x: 100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.mly-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\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 --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.mly-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--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 --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n.mly-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n.mly-border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));\n}\n.mly-border-rose-400 {\n --tw-border-opacity: 1;\n border-color: rgb(251 113 133 / var(--tw-border-opacity, 1));\n}\n.mly-border-slate-200 {\n --tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));\n}\n.mly-border-white {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));\n}\n.\\!mly-bg-transparent {\n background-color: transparent !important;\n}\n.mly-bg-\\[\\#efefef\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(239 239 239 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-rose-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-rose-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(253 164 175 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-rose-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-rose-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-soft-gray {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.mly-bg-yellow-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--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-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-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-px-\\[32px\\] {\n padding-left: 32px;\n padding-right: 32px;\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-py-\\[20px\\] {\n padding-top: 20px;\n padding-bottom: 20px;\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 --tw-numeric-spacing: tabular-nums;\n font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--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-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.mly-text-gray-950 {\n --tw-text-opacity: 1;\n color: rgb(3 7 18 / var(--tw-text-opacity, 1));\n}\n.mly-text-midnight-gray {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--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 --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.mly-text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity, 1));\n}\n.mly-text-rose-600 {\n --tw-text-opacity: 1;\n color: rgb(225 29 72 / var(--tw-text-opacity, 1));\n}\n.mly-text-rose-800 {\n --tw-text-opacity: 1;\n color: rgb(159 18 57 / var(--tw-text-opacity, 1));\n}\n.mly-text-slate-400 {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity, 1));\n}\n.mly-text-slate-500 {\n --tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--tw-text-opacity, 1));\n}\n.mly-text-slate-600 {\n --tw-text-opacity: 1;\n color: rgb(71 85 105 / var(--tw-text-opacity, 1));\n}\n.mly-text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--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-60 {\n opacity: 0.6;\n}\n.mly-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.mly-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.mly-ring-offset-white {\n --tw-ring-offset-color: #fff;\n}\n.mly-drop-shadow-md {\n --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(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--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(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.mly-animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.mly-fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.mly-zoom-in-95 {\n --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 --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-500::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.placeholder\\:mly-text-gray-500::placeholder {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=open\\]\\:mly-bg-soft-gray[data-state=open] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=true\\]\\:mly-bg-soft-gray[data-state=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=true\\]\\:mly-text-gray-900[data-state=true] {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));\n}\n.hover\\:mly-bg-soft-gray:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--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 --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n.hover\\:mly-text-gray-900:hover {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.hover\\:mly-text-midnight-gray:hover {\n --tw-text-opacity: 1;\n color: rgb(51 51 51 / var(--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 --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.focus\\:mly-bg-red-200:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity, 1));\n}\n.focus\\:mly-bg-soft-gray:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--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 --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:mly-ring-midnight-gray\\/50:focus {\n --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 --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--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 --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:mly-ring-gray-400:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:mly-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.active\\:mly-bg-soft-gray:active {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--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');
|
|
64
64
|
|
|
65
65
|
// src/editor/index.tsx
|
|
66
66
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
@@ -522,10 +522,10 @@ function BubbleMenuButton(item) {
|
|
|
522
522
|
const { tooltip } = item;
|
|
523
523
|
const content = /* @__PURE__ */ jsx4(
|
|
524
524
|
BaseButton,
|
|
525
|
-
{
|
|
525
|
+
__spreadProps(__spreadValues({
|
|
526
526
|
variant: "ghost",
|
|
527
|
-
size: "sm"
|
|
528
|
-
|
|
527
|
+
size: "sm"
|
|
528
|
+
}, item.command ? { onClick: item.command } : {}), {
|
|
529
529
|
"data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
|
|
530
530
|
className: cn(
|
|
531
531
|
"!mly-size-7 mly-px-2.5 disabled:mly-cursor-not-allowed",
|
|
@@ -551,7 +551,7 @@ function BubbleMenuButton(item) {
|
|
|
551
551
|
children: item.name
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
|
-
}
|
|
554
|
+
})
|
|
555
555
|
);
|
|
556
556
|
if (tooltip) {
|
|
557
557
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
@@ -600,7 +600,7 @@ function VerticalAlignmentSwitch(props) {
|
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
// src/editor/components/show-popover.tsx
|
|
603
|
-
import {
|
|
603
|
+
import { Eye } from "lucide-react";
|
|
604
604
|
|
|
605
605
|
// src/editor/components/popover.tsx
|
|
606
606
|
import * as React3 from "react";
|
|
@@ -699,13 +699,13 @@ var VariablePopover = forwardRef4((props, ref) => {
|
|
|
699
699
|
{
|
|
700
700
|
ref: scrollContainerRef,
|
|
701
701
|
className: "mly-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
|
|
702
|
-
children: /* @__PURE__ */ jsx7("div", { className: "mly-flex mly-flex-col mly-gap-0.5 mly-p-1", children: (items == null ? void 0 : items.length) ? items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs2(
|
|
702
|
+
children: /* @__PURE__ */ jsx7("div", { className: "mly-flex mly-w-fit mly-min-w-full mly-flex-col mly-gap-0.5 mly-p-1", children: (items == null ? void 0 : items.length) ? items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs2(
|
|
703
703
|
"button",
|
|
704
704
|
{
|
|
705
705
|
ref: (el) => itemRefs.current[index] = el,
|
|
706
706
|
onClick: () => onSelectItem(item),
|
|
707
707
|
className: cn(
|
|
708
|
-
"mly-flex mly-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-font-mono mly-text-sm mly-text-gray-900 hover:mly-bg-soft-gray",
|
|
708
|
+
"mly-flex mly-w-fit mly-min-w-full mly-items-center mly-gap-2 mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-font-mono mly-text-sm mly-text-gray-900 hover:mly-bg-soft-gray",
|
|
709
709
|
index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
|
|
710
710
|
),
|
|
711
711
|
children: [
|
|
@@ -741,6 +741,13 @@ function VariableIcon(props) {
|
|
|
741
741
|
);
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
// src/editor/utils/constants.ts
|
|
745
|
+
var AUTOCOMPLETE_PASSWORD_MANAGERS_OFF = Object.freeze({
|
|
746
|
+
autoComplete: "off",
|
|
747
|
+
"data-1p-ignore": true,
|
|
748
|
+
"data-form-type": "other"
|
|
749
|
+
});
|
|
750
|
+
|
|
744
751
|
// src/editor/utils/use-outside-click.ts
|
|
745
752
|
import { useCallback } from "react";
|
|
746
753
|
import { useEffect as useEffect2 } from "react";
|
|
@@ -795,10 +802,10 @@ var InputAutocomplete = forwardRef5((props, ref) => {
|
|
|
795
802
|
/* @__PURE__ */ jsxs3("label", { className: "mly-relative", children: [
|
|
796
803
|
/* @__PURE__ */ jsx8(
|
|
797
804
|
"input",
|
|
798
|
-
__spreadProps(__spreadValues({
|
|
805
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
799
806
|
placeholder: "e.g. items",
|
|
800
807
|
type: "text"
|
|
801
|
-
}, inputProps), {
|
|
808
|
+
}), inputProps), {
|
|
802
809
|
ref,
|
|
803
810
|
value,
|
|
804
811
|
onChange: (e) => {
|
|
@@ -823,7 +830,8 @@ var InputAutocomplete = forwardRef5((props, ref) => {
|
|
|
823
830
|
e.preventDefault();
|
|
824
831
|
select();
|
|
825
832
|
}
|
|
826
|
-
}
|
|
833
|
+
},
|
|
834
|
+
spellCheck: false
|
|
827
835
|
})
|
|
828
836
|
),
|
|
829
837
|
/* @__PURE__ */ jsx8("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ jsx8(CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
@@ -868,6 +876,11 @@ var linkCard = {
|
|
|
868
876
|
icon: /* @__PURE__ */ jsx9(ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
|
|
869
877
|
command: ({ editor, range }) => {
|
|
870
878
|
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
879
|
+
},
|
|
880
|
+
shouldBeHidden: (editor) => {
|
|
881
|
+
return editor.extensionManager.extensions.findIndex(
|
|
882
|
+
(ext) => ext.name === "linkCard"
|
|
883
|
+
) === -1;
|
|
871
884
|
}
|
|
872
885
|
};
|
|
873
886
|
|
|
@@ -1099,9 +1112,10 @@ function VariableView(props) {
|
|
|
1099
1112
|
draggable: "false",
|
|
1100
1113
|
children: /* @__PURE__ */ jsxs4(Popover, { children: [
|
|
1101
1114
|
/* @__PURE__ */ jsx14(PopoverTrigger, { children: renderVariable({
|
|
1102
|
-
variable: { name: id, required },
|
|
1115
|
+
variable: { name: id, required, valid: true },
|
|
1103
1116
|
fallback,
|
|
1104
|
-
editor
|
|
1117
|
+
editor,
|
|
1118
|
+
from: "content-variable"
|
|
1105
1119
|
}) }),
|
|
1106
1120
|
/* @__PURE__ */ jsx14(
|
|
1107
1121
|
PopoverContent,
|
|
@@ -1117,7 +1131,7 @@ function VariableView(props) {
|
|
|
1117
1131
|
/* @__PURE__ */ jsx14("span", { className: "mly-inline-block mly-px-2 mly-text-xs mly-text-midnight-gray", children: "Variable" }),
|
|
1118
1132
|
/* @__PURE__ */ jsx14(
|
|
1119
1133
|
"input",
|
|
1120
|
-
{
|
|
1134
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1121
1135
|
value: id != null ? id : "",
|
|
1122
1136
|
onChange: (e) => {
|
|
1123
1137
|
updateAttributes2({
|
|
@@ -1126,7 +1140,7 @@ function VariableView(props) {
|
|
|
1126
1140
|
},
|
|
1127
1141
|
placeholder: "ie. name...",
|
|
1128
1142
|
className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
1129
|
-
}
|
|
1143
|
+
})
|
|
1130
1144
|
)
|
|
1131
1145
|
] }),
|
|
1132
1146
|
/* @__PURE__ */ jsx14(Divider, { className: "mly-mx-1.5" }),
|
|
@@ -1134,7 +1148,7 @@ function VariableView(props) {
|
|
|
1134
1148
|
/* @__PURE__ */ jsx14("span", { className: "mly-inline-block mly-px-2 mly-pl-1 mly-text-xs mly-text-midnight-gray", children: "Default" }),
|
|
1135
1149
|
/* @__PURE__ */ jsx14(
|
|
1136
1150
|
"input",
|
|
1137
|
-
{
|
|
1151
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1138
1152
|
value: fallback != null ? fallback : "",
|
|
1139
1153
|
onChange: (e) => {
|
|
1140
1154
|
updateAttributes2({
|
|
@@ -1143,7 +1157,7 @@ function VariableView(props) {
|
|
|
1143
1157
|
},
|
|
1144
1158
|
placeholder: "ie. John Doe...",
|
|
1145
1159
|
className: "mly-h-7 mly-w-32 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
1146
|
-
}
|
|
1160
|
+
})
|
|
1147
1161
|
),
|
|
1148
1162
|
/* @__PURE__ */ jsx14("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ jsx14(Pencil, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
1149
1163
|
] })
|
|
@@ -1155,8 +1169,29 @@ function VariableView(props) {
|
|
|
1155
1169
|
);
|
|
1156
1170
|
}
|
|
1157
1171
|
var DefaultRenderVariable = (props) => {
|
|
1158
|
-
const { variable, fallback } = props;
|
|
1159
|
-
const { name, required } = variable;
|
|
1172
|
+
const { variable, fallback, from } = props;
|
|
1173
|
+
const { name, required, valid } = variable;
|
|
1174
|
+
if (from === "button-variable") {
|
|
1175
|
+
return /* @__PURE__ */ jsxs4("div", { className: "mly-inline-grid mly-h-7 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-border-[var(--button-var-border-color)] mly-px-2 mly-font-mono mly-text-sm", children: [
|
|
1176
|
+
/* @__PURE__ */ jsx14(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
1177
|
+
/* @__PURE__ */ jsx14("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
1178
|
+
] });
|
|
1179
|
+
}
|
|
1180
|
+
if (from === "bubble-variable") {
|
|
1181
|
+
return /* @__PURE__ */ jsxs4(
|
|
1182
|
+
"div",
|
|
1183
|
+
{
|
|
1184
|
+
className: cn(
|
|
1185
|
+
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
1186
|
+
!valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1187
|
+
),
|
|
1188
|
+
children: [
|
|
1189
|
+
/* @__PURE__ */ jsx14(Braces2, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1190
|
+
/* @__PURE__ */ jsx14("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
1191
|
+
]
|
|
1192
|
+
}
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1160
1195
|
return /* @__PURE__ */ jsxs4(
|
|
1161
1196
|
"span",
|
|
1162
1197
|
{
|
|
@@ -1227,7 +1262,7 @@ You can check out the documentation for more information: https://github.com/ari
|
|
|
1227
1262
|
import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1228
1263
|
function _ShowPopover(props) {
|
|
1229
1264
|
const { showIfKey = "", onShowIfKeyValueChange, editor } = props;
|
|
1230
|
-
const { variables = [] } = useMailyContext();
|
|
1265
|
+
const { variables = [], renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
1231
1266
|
const [isUpdatingKey, setIsUpdatingKey] = useState3(false);
|
|
1232
1267
|
const inputRef = useRef3(null);
|
|
1233
1268
|
const autoCompleteOptions = useMemo2(() => {
|
|
@@ -1248,16 +1283,19 @@ function _ShowPopover(props) {
|
|
|
1248
1283
|
setIsUpdatingKey(false);
|
|
1249
1284
|
},
|
|
1250
1285
|
children: [
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1286
|
+
/* @__PURE__ */ jsxs5(Tooltip, { children: [
|
|
1287
|
+
/* @__PURE__ */ jsx16(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx16(
|
|
1288
|
+
PopoverTrigger,
|
|
1289
|
+
{
|
|
1290
|
+
className: cn(
|
|
1291
|
+
"mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray 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",
|
|
1292
|
+
showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
|
|
1293
|
+
),
|
|
1294
|
+
children: /* @__PURE__ */ jsx16(Eye, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" })
|
|
1295
|
+
}
|
|
1296
|
+
) }),
|
|
1297
|
+
/* @__PURE__ */ jsx16(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
|
|
1298
|
+
] }),
|
|
1261
1299
|
/* @__PURE__ */ jsxs5(
|
|
1262
1300
|
PopoverContent,
|
|
1263
1301
|
{
|
|
@@ -1273,13 +1311,9 @@ function _ShowPopover(props) {
|
|
|
1273
1311
|
},
|
|
1274
1312
|
children: [
|
|
1275
1313
|
/* @__PURE__ */ jsx16("span", { className: "mly-flex mly-items-center mly-px-1.5 mly-text-sm mly-leading-none", children: "Show if" }),
|
|
1276
|
-
!isUpdatingKey && /* @__PURE__ */
|
|
1314
|
+
!isUpdatingKey && /* @__PURE__ */ jsx16(
|
|
1277
1315
|
"button",
|
|
1278
1316
|
{
|
|
1279
|
-
className: cn(
|
|
1280
|
-
"mly-flex mly-h-7 mly-min-w-28 mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
1281
|
-
!isValidWhenKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1282
|
-
),
|
|
1283
1317
|
onClick: () => {
|
|
1284
1318
|
setIsUpdatingKey(true);
|
|
1285
1319
|
setTimeout(() => {
|
|
@@ -1287,10 +1321,15 @@ function _ShowPopover(props) {
|
|
|
1287
1321
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
1288
1322
|
}, 0);
|
|
1289
1323
|
},
|
|
1290
|
-
children:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1324
|
+
children: renderVariable({
|
|
1325
|
+
variable: {
|
|
1326
|
+
name: showIfKey,
|
|
1327
|
+
valid: !!isValidWhenKey
|
|
1328
|
+
},
|
|
1329
|
+
fallback: "",
|
|
1330
|
+
from: "bubble-variable",
|
|
1331
|
+
editor
|
|
1332
|
+
})
|
|
1294
1333
|
}
|
|
1295
1334
|
),
|
|
1296
1335
|
isUpdatingKey && /* @__PURE__ */ jsx16(
|
|
@@ -1398,7 +1437,7 @@ function ColumnsWidthConfig(props) {
|
|
|
1398
1437
|
/* @__PURE__ */ jsxs6("label", { className: "mly-relative", children: [
|
|
1399
1438
|
/* @__PURE__ */ jsx17(
|
|
1400
1439
|
"input",
|
|
1401
|
-
{
|
|
1440
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1402
1441
|
placeholder: "auto",
|
|
1403
1442
|
min: 1,
|
|
1404
1443
|
max: 90,
|
|
@@ -1409,7 +1448,7 @@ function ColumnsWidthConfig(props) {
|
|
|
1409
1448
|
const value2 = e.target.value;
|
|
1410
1449
|
onColumnWidthChange == null ? void 0 : onColumnWidthChange(index, value2);
|
|
1411
1450
|
}
|
|
1412
|
-
}
|
|
1451
|
+
})
|
|
1413
1452
|
),
|
|
1414
1453
|
/* @__PURE__ */ jsx17("span", { className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-aspect-square mly-items-center mly-justify-center mly-text-xs mly-tabular-nums mly-text-gray-500", children: "%" })
|
|
1415
1454
|
] })
|
|
@@ -1644,12 +1683,392 @@ function ColumnsBubbleMenu(props) {
|
|
|
1644
1683
|
import { useCallback as useCallback3, useEffect as useEffect4, useState as useState5 } from "react";
|
|
1645
1684
|
import { Copy, GripVertical, Plus, Trash2 } from "lucide-react";
|
|
1646
1685
|
|
|
1647
|
-
// src/editor/
|
|
1686
|
+
// src/editor/plugins/drag-handle/drag-handle.tsx
|
|
1648
1687
|
import { useState as useState4, useRef as useRef4, useEffect as useEffect3 } from "react";
|
|
1688
|
+
|
|
1689
|
+
// src/editor/plugins/drag-handle/drag-handle-plugin.ts
|
|
1649
1690
|
import {
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1691
|
+
SelectionRange,
|
|
1692
|
+
Selection,
|
|
1693
|
+
PluginKey,
|
|
1694
|
+
Plugin
|
|
1695
|
+
} from "@tiptap/pm/state";
|
|
1696
|
+
import tippy from "tippy.js";
|
|
1697
|
+
import {
|
|
1698
|
+
ySyncPluginKey,
|
|
1699
|
+
absolutePositionToRelativePosition
|
|
1700
|
+
} from "y-prosemirror";
|
|
1701
|
+
import { NodeRange } from "@tiptap/pm/model";
|
|
1702
|
+
function getSelectionRanges(state, range, depth) {
|
|
1703
|
+
const ranges = [];
|
|
1704
|
+
const root = state.node(0);
|
|
1705
|
+
depth = typeof depth === "number" && depth >= 0 ? depth : state.sameParent(range) ? Math.max(0, state.sharedDepth(range.pos) - 1) : state.sharedDepth(range.pos);
|
|
1706
|
+
const nodeRange = new NodeRange(state, range, depth);
|
|
1707
|
+
const startIndex = nodeRange.depth === 0 ? 0 : root.resolve(nodeRange.start).posAtIndex(0);
|
|
1708
|
+
nodeRange.parent.forEach((size, offset) => {
|
|
1709
|
+
const from = startIndex + offset;
|
|
1710
|
+
const to = from + size.nodeSize;
|
|
1711
|
+
if (from < nodeRange.start || from >= nodeRange.end) return;
|
|
1712
|
+
const selectionRange = new SelectionRange(
|
|
1713
|
+
root.resolve(from),
|
|
1714
|
+
root.resolve(to)
|
|
1715
|
+
);
|
|
1716
|
+
ranges.push(selectionRange);
|
|
1717
|
+
});
|
|
1718
|
+
return ranges;
|
|
1719
|
+
}
|
|
1720
|
+
var NodeRangeBookmark = class _NodeRangeBookmark {
|
|
1721
|
+
constructor(anchor, head) {
|
|
1722
|
+
this.anchor = anchor;
|
|
1723
|
+
this.head = head;
|
|
1724
|
+
}
|
|
1725
|
+
map(mapping) {
|
|
1726
|
+
return new _NodeRangeBookmark(
|
|
1727
|
+
mapping.map(this.anchor),
|
|
1728
|
+
mapping.map(this.head)
|
|
1729
|
+
);
|
|
1730
|
+
}
|
|
1731
|
+
resolve(doc) {
|
|
1732
|
+
const e = doc.resolve(this.anchor);
|
|
1733
|
+
const o = doc.resolve(this.head);
|
|
1734
|
+
return new NodeRangeSelection(e, o);
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
var NodeRangeSelection = class _NodeRangeSelection extends Selection {
|
|
1738
|
+
constructor(t, e, o, s = 1) {
|
|
1739
|
+
const { doc: r } = t;
|
|
1740
|
+
const n = t === e;
|
|
1741
|
+
const i = t.pos === r.content.size && e.pos === r.content.size;
|
|
1742
|
+
const a = n && !i ? r.resolve(e.pos + (s > 0 ? 1 : -1)) : e;
|
|
1743
|
+
const c = n && i ? r.resolve(t.pos - (s > 0 ? 1 : -1)) : t;
|
|
1744
|
+
const d = getSelectionRanges(c.min(a), c.max(a), o);
|
|
1745
|
+
super(
|
|
1746
|
+
a.pos >= t.pos ? d[0].$from : d[d.length - 1].$to,
|
|
1747
|
+
a.pos >= t.pos ? d[d.length - 1].$to : d[0].$from,
|
|
1748
|
+
d
|
|
1749
|
+
);
|
|
1750
|
+
this.depth = o;
|
|
1751
|
+
}
|
|
1752
|
+
get $to() {
|
|
1753
|
+
return this.ranges[this.ranges.length - 1].$to;
|
|
1754
|
+
}
|
|
1755
|
+
eq(other) {
|
|
1756
|
+
return other instanceof _NodeRangeSelection && other.$from.pos === this.$from.pos && other.$to.pos === this.$to.pos;
|
|
1757
|
+
}
|
|
1758
|
+
// @ts-ignore
|
|
1759
|
+
map(doc, mapping) {
|
|
1760
|
+
const o = doc.resolve(mapping.map(this.anchor));
|
|
1761
|
+
const s = doc.resolve(mapping.map(this.head));
|
|
1762
|
+
return new _NodeRangeSelection(o, s);
|
|
1763
|
+
}
|
|
1764
|
+
toJSON() {
|
|
1765
|
+
return { type: "nodeRange", anchor: this.anchor, head: this.head };
|
|
1766
|
+
}
|
|
1767
|
+
get isForwards() {
|
|
1768
|
+
return this.head >= this.anchor;
|
|
1769
|
+
}
|
|
1770
|
+
get isBackwards() {
|
|
1771
|
+
return !this.isForwards;
|
|
1772
|
+
}
|
|
1773
|
+
extendBackwards() {
|
|
1774
|
+
const { doc: t } = this.$from;
|
|
1775
|
+
if (this.isForwards && this.ranges.length > 1) {
|
|
1776
|
+
const t2 = this.ranges.slice(0, -1);
|
|
1777
|
+
const e2 = t2[0].$from;
|
|
1778
|
+
const o2 = t2[t2.length - 1].$to;
|
|
1779
|
+
return new _NodeRangeSelection(e2, o2, this.depth);
|
|
1780
|
+
}
|
|
1781
|
+
const e = this.ranges[0];
|
|
1782
|
+
const o = t.resolve(Math.max(0, e.$from.pos - 1));
|
|
1783
|
+
return new _NodeRangeSelection(this.$anchor, o, this.depth);
|
|
1784
|
+
}
|
|
1785
|
+
extendForwards() {
|
|
1786
|
+
const { doc: t } = this.$from;
|
|
1787
|
+
if (this.isBackwards && this.ranges.length > 1) {
|
|
1788
|
+
const t2 = this.ranges.slice(1);
|
|
1789
|
+
const e2 = t2[0].$from;
|
|
1790
|
+
const o2 = t2[t2.length - 1].$to;
|
|
1791
|
+
return new _NodeRangeSelection(o2, e2, this.depth);
|
|
1792
|
+
}
|
|
1793
|
+
const e = this.ranges[this.ranges.length - 1];
|
|
1794
|
+
const o = t.resolve(Math.min(t.content.size, e.$to.pos + 1));
|
|
1795
|
+
return new _NodeRangeSelection(this.$anchor, o, this.depth);
|
|
1796
|
+
}
|
|
1797
|
+
static fromJSON(doc, json) {
|
|
1798
|
+
return new _NodeRangeSelection(
|
|
1799
|
+
doc.resolve(json.anchor),
|
|
1800
|
+
doc.resolve(json.head)
|
|
1801
|
+
);
|
|
1802
|
+
}
|
|
1803
|
+
static create(doc, anchor, head, depth, bias = 1) {
|
|
1804
|
+
return new this(doc.resolve(anchor), doc.resolve(head), depth, bias);
|
|
1805
|
+
}
|
|
1806
|
+
// @ts-ignore
|
|
1807
|
+
getBookmark() {
|
|
1808
|
+
return new NodeRangeBookmark(this.anchor, this.head);
|
|
1809
|
+
}
|
|
1810
|
+
};
|
|
1811
|
+
function cloneElement(node) {
|
|
1812
|
+
const clonedNode = node.cloneNode(true);
|
|
1813
|
+
const originalElements = [
|
|
1814
|
+
node,
|
|
1815
|
+
...Array.from(node.getElementsByTagName("*"))
|
|
1816
|
+
];
|
|
1817
|
+
const clonedElements = [
|
|
1818
|
+
clonedNode,
|
|
1819
|
+
...Array.from(clonedNode.getElementsByTagName("*"))
|
|
1820
|
+
];
|
|
1821
|
+
originalElements.forEach((element, index) => {
|
|
1822
|
+
const clonedElement = clonedElements[index];
|
|
1823
|
+
if (clonedElement instanceof HTMLElement && element instanceof HTMLElement) {
|
|
1824
|
+
clonedElement.style.cssText = function(element2) {
|
|
1825
|
+
let styles = "";
|
|
1826
|
+
const computedStyles = getComputedStyle(element2);
|
|
1827
|
+
for (let i = 0; i < computedStyles.length; i += 1) {
|
|
1828
|
+
styles += `${computedStyles[i]}:${computedStyles.getPropertyValue(computedStyles[i])};`;
|
|
1829
|
+
}
|
|
1830
|
+
return styles;
|
|
1831
|
+
}(element);
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
return clonedNode;
|
|
1835
|
+
}
|
|
1836
|
+
function getComputedStyles(node, property) {
|
|
1837
|
+
return window.getComputedStyle(node)[property];
|
|
1838
|
+
}
|
|
1839
|
+
function minMax(value = 0, min = 0, max = 0) {
|
|
1840
|
+
return Math.min(Math.max(value, min), max);
|
|
1841
|
+
}
|
|
1842
|
+
function removeNode(node) {
|
|
1843
|
+
if (node.parentNode !== null && node.parentNode !== void 0) {
|
|
1844
|
+
node.parentNode.removeChild(node);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
var findElementNextToCoords = (options) => {
|
|
1848
|
+
const { x, y, direction, editor } = options;
|
|
1849
|
+
let resultElement = null;
|
|
1850
|
+
let resultNode = null;
|
|
1851
|
+
let d = null;
|
|
1852
|
+
let l = x;
|
|
1853
|
+
for (; null === resultNode && l < window.innerWidth && l > 0; ) {
|
|
1854
|
+
const elements = document.elementsFromPoint(l, y);
|
|
1855
|
+
const index = elements.findIndex(
|
|
1856
|
+
(el) => el.classList.contains("ProseMirror")
|
|
1857
|
+
);
|
|
1858
|
+
const filteredElements = elements.slice(0, index);
|
|
1859
|
+
if (filteredElements.length > 0) {
|
|
1860
|
+
const element = filteredElements[0];
|
|
1861
|
+
resultElement = element;
|
|
1862
|
+
d = editor.view.posAtDOM(element, 0);
|
|
1863
|
+
if (d >= 0) {
|
|
1864
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d - 1, 0));
|
|
1865
|
+
if (resultNode === null || resultNode.isText) {
|
|
1866
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d - 1, 0));
|
|
1867
|
+
}
|
|
1868
|
+
if (!resultNode) {
|
|
1869
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d, 0));
|
|
1870
|
+
}
|
|
1871
|
+
break;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
if (direction === "left") {
|
|
1875
|
+
l -= 1;
|
|
1876
|
+
} else {
|
|
1877
|
+
l += 1;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
return { resultElement, resultNode, pos: d !== null ? d : null };
|
|
1881
|
+
};
|
|
1882
|
+
function getSelectionRangesNearCursor(e, t) {
|
|
1883
|
+
const { doc: n } = t.view.state, o = findElementNextToCoords({
|
|
1884
|
+
editor: t,
|
|
1885
|
+
x: e.clientX,
|
|
1886
|
+
y: e.clientY,
|
|
1887
|
+
direction: "right"
|
|
1888
|
+
});
|
|
1889
|
+
if (!o.resultNode || null === o.pos) return [];
|
|
1890
|
+
const r = e.clientX, i = function(e2, t2, n2) {
|
|
1891
|
+
const o2 = parseInt(getComputedStyles(e2.dom, "paddingLeft"), 10), r2 = parseInt(getComputedStyles(e2.dom, "paddingRight"), 10), i2 = parseInt(getComputedStyles(e2.dom, "borderLeftWidth"), 10), s2 = parseInt(getComputedStyles(e2.dom, "borderLeftWidth"), 10), d2 = e2.dom.getBoundingClientRect();
|
|
1892
|
+
return { left: minMax(t2, d2.left + o2 + i2, d2.right - r2 - s2), top: n2 };
|
|
1893
|
+
}(t.view, r, e.clientY), s = t.view.posAtCoords(i);
|
|
1894
|
+
if (!s) return [];
|
|
1895
|
+
const { pos: d } = s;
|
|
1896
|
+
if (!n.resolve(d).parent) return [];
|
|
1897
|
+
const a = n.resolve(o.pos), p = n.resolve(o.pos + 1);
|
|
1898
|
+
return getSelectionRanges(a, p, 0);
|
|
1899
|
+
}
|
|
1900
|
+
var getPreviousNodeStartPosition = (e, t) => {
|
|
1901
|
+
const n = e.resolve(t), { depth: o } = n;
|
|
1902
|
+
if (0 === o) return t;
|
|
1903
|
+
return n.pos - n.parentOffset - 1;
|
|
1904
|
+
};
|
|
1905
|
+
var getAncestorNodeAtDepth = (e, t) => {
|
|
1906
|
+
const n = e.nodeAt(t), o = e.resolve(t);
|
|
1907
|
+
let { depth: r } = o, i = n;
|
|
1908
|
+
for (; r > 0; ) {
|
|
1909
|
+
const e2 = o.node(r);
|
|
1910
|
+
r -= 1, 0 === r && (i = e2);
|
|
1911
|
+
}
|
|
1912
|
+
return i;
|
|
1913
|
+
};
|
|
1914
|
+
var getOuterNode = (doc, pos) => {
|
|
1915
|
+
const n = ySyncPluginKey.getState(doc);
|
|
1916
|
+
return n ? absolutePositionToRelativePosition(pos, n.type, n.binding.mapping) : null;
|
|
1917
|
+
};
|
|
1918
|
+
var getOuterNodePos = (e, t) => {
|
|
1919
|
+
let n = t;
|
|
1920
|
+
for (; n && n.parentNode && n.parentNode !== e.dom; ) n = n.parentNode;
|
|
1921
|
+
return n;
|
|
1922
|
+
};
|
|
1923
|
+
var dragHandlePluginDefaultKey = new PluginKey("dragHandle");
|
|
1924
|
+
function DragHandlePlugin(options) {
|
|
1925
|
+
const {
|
|
1926
|
+
pluginKey: e = dragHandlePluginDefaultKey,
|
|
1927
|
+
element,
|
|
1928
|
+
editor,
|
|
1929
|
+
tippyOptions,
|
|
1930
|
+
onNodeChange
|
|
1931
|
+
} = options;
|
|
1932
|
+
const container = document.createElement("div");
|
|
1933
|
+
let tippyInstance = null;
|
|
1934
|
+
let x = false;
|
|
1935
|
+
let currentNode = null;
|
|
1936
|
+
let lastNodePos = -1;
|
|
1937
|
+
element.addEventListener("dragstart", (e2) => {
|
|
1938
|
+
const { view } = editor;
|
|
1939
|
+
if (!e2.dataTransfer) return;
|
|
1940
|
+
const { empty, $from, $to } = view.state.selection;
|
|
1941
|
+
const s = getSelectionRangesNearCursor(e2, editor);
|
|
1942
|
+
const d = getSelectionRanges($from, $to, 0);
|
|
1943
|
+
const c = d.some(
|
|
1944
|
+
(e3) => s.find((t) => t.$from === e3.$from && t.$to === e3.$to)
|
|
1945
|
+
);
|
|
1946
|
+
const u = empty || !c ? s : d;
|
|
1947
|
+
if (!u.length) return;
|
|
1948
|
+
const { tr: g } = view.state;
|
|
1949
|
+
const h = document.createElement("div");
|
|
1950
|
+
const y = u[0].$from.pos;
|
|
1951
|
+
const v = u[u.length - 1].$to.pos;
|
|
1952
|
+
const C = NodeRangeSelection.create(view.state.doc, y, v);
|
|
1953
|
+
const E = C.content();
|
|
1954
|
+
u.forEach((e3) => {
|
|
1955
|
+
const t = cloneElement(view == null ? void 0 : view.nodeDOM(e3.$from.pos));
|
|
1956
|
+
h.append(t);
|
|
1957
|
+
});
|
|
1958
|
+
h.style.position = "absolute";
|
|
1959
|
+
h.style.top = "-10000px";
|
|
1960
|
+
document.body.append(h);
|
|
1961
|
+
e2.dataTransfer.clearData();
|
|
1962
|
+
e2.dataTransfer.setDragImage(h, 0, 0);
|
|
1963
|
+
view.dragging = { slice: E, move: true };
|
|
1964
|
+
g.setSelection(C);
|
|
1965
|
+
view.dispatch(g);
|
|
1966
|
+
document.addEventListener("drop", () => removeNode(h), { once: true });
|
|
1967
|
+
setTimeout(() => {
|
|
1968
|
+
element && (element.style.pointerEvents = "none");
|
|
1969
|
+
}, 0);
|
|
1970
|
+
});
|
|
1971
|
+
element.addEventListener("dragend", () => {
|
|
1972
|
+
element && (element.style.pointerEvents = "auto");
|
|
1973
|
+
});
|
|
1974
|
+
return new Plugin({
|
|
1975
|
+
key: typeof e === "string" ? new PluginKey(e) : e,
|
|
1976
|
+
state: {
|
|
1977
|
+
init: () => ({ locked: false }),
|
|
1978
|
+
apply(e2, t, n, o) {
|
|
1979
|
+
const l = e2.getMeta("lockDragHandle");
|
|
1980
|
+
const a = e2.getMeta("hideDragHandle");
|
|
1981
|
+
if (void 0 !== l && (x = l), a && tippyInstance) {
|
|
1982
|
+
return tippyInstance == null ? void 0 : tippyInstance.hide(), x = false, currentNode = null, lastNodePos = -1, null == onNodeChange || onNodeChange({ editor, node: null, pos: -1 }), t;
|
|
1983
|
+
}
|
|
1984
|
+
if (e2.docChanged && -1 !== lastNodePos && element && tippyInstance) {
|
|
1985
|
+
const t2 = e2.mapping.map(lastNodePos);
|
|
1986
|
+
t2 !== lastNodePos && (lastNodePos = t2, getOuterNode(o, lastNodePos));
|
|
1987
|
+
}
|
|
1988
|
+
return t;
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
view: (e2) => {
|
|
1992
|
+
var t;
|
|
1993
|
+
return element.draggable = true, element.style.pointerEvents = "auto", null === (t = editor.view.dom.parentElement) || void 0 === t || t.appendChild(container), container.appendChild(element), container.style.pointerEvents = "none", container.style.position = "absolute", container.style.top = "0", container.style.left = "0", tippyInstance = tippy(e2.dom, __spreadProps(__spreadValues({
|
|
1994
|
+
getReferenceClientRect: null,
|
|
1995
|
+
interactive: true,
|
|
1996
|
+
trigger: "manual",
|
|
1997
|
+
placement: "left-start",
|
|
1998
|
+
hideOnClick: false,
|
|
1999
|
+
duration: 100,
|
|
2000
|
+
zIndex: 10,
|
|
2001
|
+
popperOptions: {
|
|
2002
|
+
modifiers: [
|
|
2003
|
+
{ name: "flip", enabled: false },
|
|
2004
|
+
{
|
|
2005
|
+
name: "preventOverflow",
|
|
2006
|
+
options: { rootBoundary: "document", mainAxis: false }
|
|
2007
|
+
}
|
|
2008
|
+
]
|
|
2009
|
+
}
|
|
2010
|
+
}, tippyOptions), {
|
|
2011
|
+
appendTo: container,
|
|
2012
|
+
content: element
|
|
2013
|
+
})), {
|
|
2014
|
+
update(t2, n) {
|
|
2015
|
+
if (!element || !tippyInstance) return;
|
|
2016
|
+
if (element.draggable = !x, e2.state.doc.eq(n.doc) || -1 === lastNodePos)
|
|
2017
|
+
return;
|
|
2018
|
+
let o = e2.nodeDOM(lastNodePos);
|
|
2019
|
+
if (o = getOuterNodePos(e2, o), o === e2.dom) return;
|
|
2020
|
+
if (1 !== (null == o ? void 0 : o.nodeType)) return;
|
|
2021
|
+
const r = e2.posAtDOM(o, 0), s = getAncestorNodeAtDepth(editor.state.doc, r);
|
|
2022
|
+
if (s !== currentNode) {
|
|
2023
|
+
const t3 = getPreviousNodeStartPosition(editor.state.doc, r);
|
|
2024
|
+
currentNode = s, lastNodePos = t3, getOuterNode(e2.state, lastNodePos), null == onNodeChange || onNodeChange({
|
|
2025
|
+
editor,
|
|
2026
|
+
node: currentNode,
|
|
2027
|
+
pos: lastNodePos
|
|
2028
|
+
}), tippyInstance.setProps({
|
|
2029
|
+
getReferenceClientRect: () => o == null ? void 0 : o.getBoundingClientRect()
|
|
2030
|
+
}), tippyInstance.show();
|
|
2031
|
+
}
|
|
2032
|
+
},
|
|
2033
|
+
destroy() {
|
|
2034
|
+
null == tippyInstance || tippyInstance.destroy(), element && removeNode(container);
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
},
|
|
2038
|
+
props: {
|
|
2039
|
+
handleDOMEvents: {
|
|
2040
|
+
mouseleave: (e2, event) => (x || event.target && !container.contains(event == null ? void 0 : event.relatedTarget) && (null == tippyInstance || tippyInstance.hide(), currentNode = null, lastNodePos = -1, null == onNodeChange || onNodeChange({ editor, node: null, pos: -1 })), false),
|
|
2041
|
+
mousemove(e2, t) {
|
|
2042
|
+
if (!element || !tippyInstance || x) return false;
|
|
2043
|
+
const n = findElementNextToCoords({
|
|
2044
|
+
x: t.clientX,
|
|
2045
|
+
y: t.clientY,
|
|
2046
|
+
direction: "right",
|
|
2047
|
+
editor
|
|
2048
|
+
});
|
|
2049
|
+
if (!n.resultElement) return false;
|
|
2050
|
+
let o = n.resultElement;
|
|
2051
|
+
if (o = getOuterNodePos(e2, o), o === e2.dom) return false;
|
|
2052
|
+
if (1 !== (null == o ? void 0 : o.nodeType)) return false;
|
|
2053
|
+
const r = e2.posAtDOM(o, 0), s = getAncestorNodeAtDepth(editor.state.doc, r);
|
|
2054
|
+
if (s !== currentNode) {
|
|
2055
|
+
const t2 = getPreviousNodeStartPosition(editor.state.doc, r);
|
|
2056
|
+
currentNode = s, lastNodePos = t2, getOuterNode(e2.state, lastNodePos), null == onNodeChange || onNodeChange({
|
|
2057
|
+
editor,
|
|
2058
|
+
node: currentNode,
|
|
2059
|
+
pos: lastNodePos
|
|
2060
|
+
}), tippyInstance.setProps({
|
|
2061
|
+
getReferenceClientRect: () => o.getBoundingClientRect()
|
|
2062
|
+
}), tippyInstance.show();
|
|
2063
|
+
}
|
|
2064
|
+
return false;
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
// src/editor/plugins/drag-handle/drag-handle.tsx
|
|
1653
2072
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1654
2073
|
function DragHandle(props) {
|
|
1655
2074
|
const {
|
|
@@ -1975,7 +2394,9 @@ var EditorMenuBar = (props) => {
|
|
|
1975
2394
|
|
|
1976
2395
|
// src/editor/components/for-menu/for-bubble-menu.tsx
|
|
1977
2396
|
import { BubbleMenu as BubbleMenu2, findChildren } from "@tiptap/react";
|
|
1978
|
-
import {
|
|
2397
|
+
import {
|
|
2398
|
+
InfoIcon
|
|
2399
|
+
} from "lucide-react";
|
|
1979
2400
|
import { useCallback as useCallback4, useMemo as useMemo4, useRef as useRef5, useState as useState6 } from "react";
|
|
1980
2401
|
import { sticky as sticky2 } from "tippy.js";
|
|
1981
2402
|
|
|
@@ -2037,7 +2458,7 @@ function ForBubbleMenu(props) {
|
|
|
2037
2458
|
},
|
|
2038
2459
|
pluginKey: "forBubbleMenu"
|
|
2039
2460
|
});
|
|
2040
|
-
const { variables = [] } = useMailyContext();
|
|
2461
|
+
const { variables = [], renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
2041
2462
|
const inputRef = useRef5(null);
|
|
2042
2463
|
const [isUpdatingKey, setIsUpdatingKey] = useState6(false);
|
|
2043
2464
|
const eachKey = (state == null ? void 0 : state.each) || "";
|
|
@@ -2048,20 +2469,35 @@ function ForBubbleMenu(props) {
|
|
|
2048
2469
|
from: "for-variable"
|
|
2049
2470
|
}).map((variable) => variable.name);
|
|
2050
2471
|
}, [variables, eachKey, editor]);
|
|
2051
|
-
const isValidEachKey = eachKey
|
|
2472
|
+
const isValidEachKey = eachKey;
|
|
2052
2473
|
return /* @__PURE__ */ jsx24(
|
|
2053
2474
|
BubbleMenu2,
|
|
2054
2475
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
2055
2476
|
className: "mly-flex mly-items-stretch mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
2056
2477
|
children: /* @__PURE__ */ jsxs10(TooltipProvider, { children: [
|
|
2057
|
-
/* @__PURE__ */
|
|
2058
|
-
|
|
2478
|
+
/* @__PURE__ */ jsxs10("div", { className: "mly-flex mly-items-center mly-gap-1.5 mly-px-1.5 mly-text-sm mly-leading-none", children: [
|
|
2479
|
+
"For",
|
|
2480
|
+
/* @__PURE__ */ jsxs10(Tooltip, { children: [
|
|
2481
|
+
/* @__PURE__ */ jsx24(TooltipTrigger, { children: /* @__PURE__ */ jsx24(
|
|
2482
|
+
InfoIcon,
|
|
2483
|
+
{
|
|
2484
|
+
className: cn("mly-size-3 mly-stroke-[2.5] mly-text-gray-500")
|
|
2485
|
+
}
|
|
2486
|
+
) }),
|
|
2487
|
+
/* @__PURE__ */ jsx24(
|
|
2488
|
+
TooltipContent,
|
|
2489
|
+
{
|
|
2490
|
+
sideOffset: 14,
|
|
2491
|
+
className: "mly-max-w-[260px]",
|
|
2492
|
+
align: "start",
|
|
2493
|
+
children: "Ensure the selected variable is iterable, such as an array of objects."
|
|
2494
|
+
}
|
|
2495
|
+
)
|
|
2496
|
+
] })
|
|
2497
|
+
] }),
|
|
2498
|
+
!isUpdatingKey && /* @__PURE__ */ jsx24(
|
|
2059
2499
|
"button",
|
|
2060
2500
|
{
|
|
2061
|
-
className: cn(
|
|
2062
|
-
"mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
2063
|
-
!isValidEachKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
2064
|
-
),
|
|
2065
2501
|
onClick: () => {
|
|
2066
2502
|
setIsUpdatingKey(true);
|
|
2067
2503
|
setTimeout(() => {
|
|
@@ -2069,10 +2505,15 @@ function ForBubbleMenu(props) {
|
|
|
2069
2505
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
2070
2506
|
}, 0);
|
|
2071
2507
|
},
|
|
2072
|
-
children:
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2508
|
+
children: renderVariable({
|
|
2509
|
+
variable: {
|
|
2510
|
+
name: state == null ? void 0 : state.each,
|
|
2511
|
+
valid: isValidEachKey
|
|
2512
|
+
},
|
|
2513
|
+
fallback: "",
|
|
2514
|
+
from: "bubble-variable",
|
|
2515
|
+
editor
|
|
2516
|
+
})
|
|
2076
2517
|
}
|
|
2077
2518
|
),
|
|
2078
2519
|
isUpdatingKey && /* @__PURE__ */ jsx24(
|
|
@@ -2090,6 +2531,7 @@ function ForBubbleMenu(props) {
|
|
|
2090
2531
|
children: /* @__PURE__ */ jsx24(
|
|
2091
2532
|
InputAutocomplete,
|
|
2092
2533
|
{
|
|
2534
|
+
placeholder: "ie. payload.items",
|
|
2093
2535
|
value: (state == null ? void 0 : state.each) || "",
|
|
2094
2536
|
onValueChange: (value) => {
|
|
2095
2537
|
editor.commands.updateFor({
|
|
@@ -2173,7 +2615,6 @@ function AlignmentSwitch(props) {
|
|
|
2173
2615
|
|
|
2174
2616
|
// src/editor/components/ui/link-input-popover.tsx
|
|
2175
2617
|
import {
|
|
2176
|
-
BracesIcon,
|
|
2177
2618
|
ChevronDownIcon as ChevronDownIcon2,
|
|
2178
2619
|
Link
|
|
2179
2620
|
} from "lucide-react";
|
|
@@ -2202,7 +2643,8 @@ function LinkInputPopover(props) {
|
|
|
2202
2643
|
const linkInputRef = useRef6(null);
|
|
2203
2644
|
const {
|
|
2204
2645
|
variables = [],
|
|
2205
|
-
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR
|
|
2646
|
+
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
2647
|
+
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
2206
2648
|
} = useMailyContext();
|
|
2207
2649
|
const autoCompleteOptions = useMemo5(() => {
|
|
2208
2650
|
const withoutTrigger = defaultUrlWithoutProtocol.replace(
|
|
@@ -2257,10 +2699,9 @@ function LinkInputPopover(props) {
|
|
|
2257
2699
|
setIsOpen(false);
|
|
2258
2700
|
},
|
|
2259
2701
|
children: /* @__PURE__ */ jsxs11("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
2260
|
-
!isEditing && /* @__PURE__ */ jsx26("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__ */
|
|
2702
|
+
!isEditing && /* @__PURE__ */ jsx26("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__ */ jsx26(
|
|
2261
2703
|
"button",
|
|
2262
2704
|
{
|
|
2263
|
-
className: "mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
2264
2705
|
onClick: () => {
|
|
2265
2706
|
setIsEditing(true);
|
|
2266
2707
|
setTimeout(() => {
|
|
@@ -2268,10 +2709,15 @@ function LinkInputPopover(props) {
|
|
|
2268
2709
|
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
2269
2710
|
}, 0);
|
|
2270
2711
|
},
|
|
2271
|
-
children:
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2712
|
+
children: renderVariable({
|
|
2713
|
+
variable: {
|
|
2714
|
+
name: defaultUrlWithoutProtocol,
|
|
2715
|
+
valid: true
|
|
2716
|
+
},
|
|
2717
|
+
fallback: "",
|
|
2718
|
+
from: "bubble-variable",
|
|
2719
|
+
editor
|
|
2720
|
+
})
|
|
2275
2721
|
}
|
|
2276
2722
|
) }),
|
|
2277
2723
|
isEditing && /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
@@ -2351,12 +2797,12 @@ function ImageSize(props) {
|
|
|
2351
2797
|
/* @__PURE__ */ jsx27("span", { className: "mly-absolute mly-inset-y-0 mly-left-2 mly-flex mly-items-center mly-text-xs mly-leading-none mly-text-gray-400", children: dimension === "width" ? "W" : "H" }),
|
|
2352
2798
|
/* @__PURE__ */ jsx27(
|
|
2353
2799
|
"input",
|
|
2354
|
-
{
|
|
2800
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
2355
2801
|
className: "hide-number-controls mly-h-auto mly-max-w-20 mly-appearance-none mly-border-0 mly-border-none mly-p-1 mly-px-[26px] mly-text-sm mly-uppercase mly-tabular-nums mly-outline-none focus-visible:mly-outline-none",
|
|
2356
2802
|
type: "number",
|
|
2357
2803
|
value,
|
|
2358
2804
|
onChange: (e) => onValueChange(e.target.value)
|
|
2359
|
-
}
|
|
2805
|
+
})
|
|
2360
2806
|
),
|
|
2361
2807
|
/* @__PURE__ */ jsx27("span", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center mly-text-xs mly-leading-none mly-text-gray-400", children: "PX" })
|
|
2362
2808
|
] });
|
|
@@ -3340,7 +3786,9 @@ function ColorPicker(props) {
|
|
|
3340
3786
|
backgroundColor,
|
|
3341
3787
|
tooltip,
|
|
3342
3788
|
className,
|
|
3343
|
-
children
|
|
3789
|
+
children,
|
|
3790
|
+
onClose,
|
|
3791
|
+
suggestedColors = []
|
|
3344
3792
|
} = props;
|
|
3345
3793
|
const handleColorChange = (color2) => {
|
|
3346
3794
|
queueMicrotask(() => {
|
|
@@ -3368,39 +3816,73 @@ function ColorPicker(props) {
|
|
|
3368
3816
|
)
|
|
3369
3817
|
}
|
|
3370
3818
|
) });
|
|
3371
|
-
return /* @__PURE__ */ jsxs17(
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
/* @__PURE__ */ jsx34(
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3819
|
+
return /* @__PURE__ */ jsxs17(
|
|
3820
|
+
Popover,
|
|
3821
|
+
{
|
|
3822
|
+
onOpenChange: (open) => {
|
|
3823
|
+
if (!open) {
|
|
3824
|
+
onClose == null ? void 0 : onClose(color);
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3827
|
+
children: [
|
|
3828
|
+
tooltip ? /* @__PURE__ */ jsxs17(Tooltip, { children: [
|
|
3829
|
+
/* @__PURE__ */ jsx34(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
3830
|
+
/* @__PURE__ */ jsx34(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
3831
|
+
] }) : popoverButton,
|
|
3832
|
+
/* @__PURE__ */ jsx34(
|
|
3833
|
+
PopoverContent,
|
|
3834
|
+
{
|
|
3835
|
+
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
3836
|
+
sideOffset: 8,
|
|
3837
|
+
children: /* @__PURE__ */ jsxs17("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
3838
|
+
/* @__PURE__ */ jsx34(
|
|
3839
|
+
HexColorPicker,
|
|
3840
|
+
{
|
|
3841
|
+
color,
|
|
3842
|
+
onChange: handleColorChange,
|
|
3843
|
+
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
3844
|
+
}
|
|
3845
|
+
),
|
|
3846
|
+
/* @__PURE__ */ jsx34(
|
|
3847
|
+
HexColorInput,
|
|
3848
|
+
{
|
|
3849
|
+
alpha: true,
|
|
3850
|
+
color,
|
|
3851
|
+
onChange: handleColorChange,
|
|
3852
|
+
className: "mly-mt-4 mly-w-full mly-min-w-0 mly-rounded-lg mly-border mly-px-2 mly-py-1.5 mly-text-sm mly-uppercase focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
|
|
3853
|
+
prefixed: true
|
|
3854
|
+
}
|
|
3855
|
+
),
|
|
3856
|
+
suggestedColors.length > 0 && /* @__PURE__ */ jsxs17("div", { children: [
|
|
3857
|
+
/* @__PURE__ */ jsx34("div", { className: "-mly-mx-4 mly-my-4 mly-h-px mly-bg-gray-200" }),
|
|
3858
|
+
/* @__PURE__ */ jsx34("h2", { className: "mly-text-xs mly-text-gray-500", children: "Recently used" }),
|
|
3859
|
+
/* @__PURE__ */ jsx34("div", { className: "mly-mt-2 mly-flex mly-flex-wrap mly-gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ jsx34(
|
|
3860
|
+
BaseButton,
|
|
3861
|
+
{
|
|
3862
|
+
variant: "ghost",
|
|
3863
|
+
size: "sm",
|
|
3864
|
+
className: "!mly-size-7 mly-shrink-0",
|
|
3865
|
+
type: "button",
|
|
3866
|
+
onClick: () => handleColorChange(suggestedColor),
|
|
3867
|
+
children: /* @__PURE__ */ jsx34(
|
|
3868
|
+
"div",
|
|
3869
|
+
{
|
|
3870
|
+
className: "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded",
|
|
3871
|
+
style: {
|
|
3872
|
+
backgroundColor: suggestedColor
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3875
|
+
)
|
|
3876
|
+
},
|
|
3877
|
+
suggestedColor
|
|
3878
|
+
)) })
|
|
3879
|
+
] })
|
|
3880
|
+
] })
|
|
3881
|
+
}
|
|
3882
|
+
)
|
|
3883
|
+
]
|
|
3884
|
+
}
|
|
3885
|
+
);
|
|
3404
3886
|
}
|
|
3405
3887
|
|
|
3406
3888
|
// src/editor/components/section-menu/use-section-state.tsx
|
|
@@ -3824,11 +4306,11 @@ function SpacerBubbleMenu(props) {
|
|
|
3824
4306
|
}
|
|
3825
4307
|
});
|
|
3826
4308
|
const state = useSpacerState(editor);
|
|
3827
|
-
return /* @__PURE__ */
|
|
4309
|
+
return /* @__PURE__ */ jsx36(
|
|
3828
4310
|
BubbleMenu5,
|
|
3829
4311
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
3830
4312
|
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",
|
|
3831
|
-
children: [
|
|
4313
|
+
children: /* @__PURE__ */ jsxs19(TooltipProvider, { children: [
|
|
3832
4314
|
items.map((item, index) => /* @__PURE__ */ jsx36(
|
|
3833
4315
|
BubbleMenuButton,
|
|
3834
4316
|
__spreadValues({
|
|
@@ -3849,7 +4331,7 @@ function SpacerBubbleMenu(props) {
|
|
|
3849
4331
|
editor
|
|
3850
4332
|
}
|
|
3851
4333
|
)
|
|
3852
|
-
]
|
|
4334
|
+
] })
|
|
3853
4335
|
})
|
|
3854
4336
|
);
|
|
3855
4337
|
}
|
|
@@ -3936,7 +4418,7 @@ var Input = React5.forwardRef(
|
|
|
3936
4418
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
3937
4419
|
return /* @__PURE__ */ jsx37(
|
|
3938
4420
|
"input",
|
|
3939
|
-
__spreadValues({
|
|
4421
|
+
__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
3940
4422
|
type,
|
|
3941
4423
|
className: cn(
|
|
3942
4424
|
"mly-flex mly-h-10 mly-w-full mly-rounded-md mly-border mly-border-gray-200 mly-bg-white mly-px-3 mly-py-2 mly-text-sm mly-ring-offset-white file:mly-border-0 file:mly-bg-transparent file:mly-text-sm file:mly-font-medium placeholder:mly-text-gray-500 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 disabled:mly-cursor-not-allowed disabled:mly-opacity-50",
|
|
@@ -3944,7 +4426,7 @@ var Input = React5.forwardRef(
|
|
|
3944
4426
|
className
|
|
3945
4427
|
),
|
|
3946
4428
|
ref
|
|
3947
|
-
}, props)
|
|
4429
|
+
}), props)
|
|
3948
4430
|
);
|
|
3949
4431
|
}
|
|
3950
4432
|
);
|
|
@@ -4223,7 +4705,6 @@ import { ReactNodeViewRenderer as ReactNodeViewRenderer3 } from "@tiptap/react";
|
|
|
4223
4705
|
import { NodeViewWrapper as NodeViewWrapper5 } from "@tiptap/react";
|
|
4224
4706
|
|
|
4225
4707
|
// src/editor/nodes/button/button-label-input.tsx
|
|
4226
|
-
import { BracesIcon as BracesIcon3 } from "lucide-react";
|
|
4227
4708
|
import { useMemo as useMemo6 } from "react";
|
|
4228
4709
|
import { useState as useState10 } from "react";
|
|
4229
4710
|
import { useRef as useRef9 } from "react";
|
|
@@ -4234,7 +4715,8 @@ function ButtonLabelInput(props) {
|
|
|
4234
4715
|
const [isEditing, setIsEditing] = useState10(!isVariable);
|
|
4235
4716
|
const {
|
|
4236
4717
|
variables = [],
|
|
4237
|
-
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR
|
|
4718
|
+
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
4719
|
+
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
4238
4720
|
} = useMailyContext();
|
|
4239
4721
|
const autoCompleteOptions = useMemo6(() => {
|
|
4240
4722
|
const withoutTrigger = value.replace(
|
|
@@ -4248,10 +4730,9 @@ function ButtonLabelInput(props) {
|
|
|
4248
4730
|
}).map((variable) => variable.name);
|
|
4249
4731
|
}, [variables, value, editor]);
|
|
4250
4732
|
return /* @__PURE__ */ jsxs21("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
4251
|
-
!isEditing && /* @__PURE__ */
|
|
4733
|
+
!isEditing && /* @__PURE__ */ jsx40(
|
|
4252
4734
|
"button",
|
|
4253
4735
|
{
|
|
4254
|
-
className: "mly-inline-grid mly-h-7 mly-min-w-28 mly-max-w-xs mly-grid-cols-[12px_1fr] mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
4255
4736
|
onClick: () => {
|
|
4256
4737
|
setIsEditing(true);
|
|
4257
4738
|
setTimeout(() => {
|
|
@@ -4259,10 +4740,15 @@ function ButtonLabelInput(props) {
|
|
|
4259
4740
|
(_a = linkInputRef.current) == null ? void 0 : _a.focus();
|
|
4260
4741
|
}, 0);
|
|
4261
4742
|
},
|
|
4262
|
-
children:
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4743
|
+
children: renderVariable({
|
|
4744
|
+
variable: {
|
|
4745
|
+
name: value,
|
|
4746
|
+
valid: true
|
|
4747
|
+
},
|
|
4748
|
+
fallback: "",
|
|
4749
|
+
from: "bubble-variable",
|
|
4750
|
+
editor
|
|
4751
|
+
})
|
|
4266
4752
|
}
|
|
4267
4753
|
),
|
|
4268
4754
|
isEditing && /* @__PURE__ */ jsx40(
|
|
@@ -4306,6 +4792,7 @@ function ButtonView(props) {
|
|
|
4306
4792
|
showIfKey = "",
|
|
4307
4793
|
isUrlVariable
|
|
4308
4794
|
} = node.attrs;
|
|
4795
|
+
const { renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
4309
4796
|
return /* @__PURE__ */ jsx41(
|
|
4310
4797
|
NodeViewWrapper5,
|
|
4311
4798
|
{
|
|
@@ -4335,14 +4822,22 @@ function ButtonView(props) {
|
|
|
4335
4822
|
color: textColor,
|
|
4336
4823
|
borderWidth: 2,
|
|
4337
4824
|
borderStyle: "solid",
|
|
4338
|
-
borderColor: buttonColor
|
|
4825
|
+
borderColor: buttonColor,
|
|
4826
|
+
// decrease the border color opacity to 80%
|
|
4827
|
+
// so that it's not too prominent
|
|
4828
|
+
"--button-var-border-color": `${textColor}80`
|
|
4339
4829
|
},
|
|
4340
4830
|
onClick: (e) => {
|
|
4341
4831
|
e.preventDefault();
|
|
4342
4832
|
const pos = getPos();
|
|
4343
4833
|
editor.commands.setNodeSelection(pos);
|
|
4344
4834
|
},
|
|
4345
|
-
children:
|
|
4835
|
+
children: isTextVariable ? renderVariable({
|
|
4836
|
+
variable: { name: text2, valid: true },
|
|
4837
|
+
fallback: text2,
|
|
4838
|
+
from: "button-variable",
|
|
4839
|
+
editor
|
|
4840
|
+
}) : text2
|
|
4346
4841
|
}
|
|
4347
4842
|
) }) }),
|
|
4348
4843
|
/* @__PURE__ */ jsx41(
|
|
@@ -4714,10 +5209,10 @@ var ButtonExtension = Node6.create({
|
|
|
4714
5209
|
|
|
4715
5210
|
// src/editor/nodes/variable/variable.ts
|
|
4716
5211
|
import { mergeAttributes as mergeAttributes6, Node as Node7 } from "@tiptap/core";
|
|
4717
|
-
import { PluginKey } from "@tiptap/pm/state";
|
|
5212
|
+
import { PluginKey as PluginKey2 } from "@tiptap/pm/state";
|
|
4718
5213
|
import { ReactNodeViewRenderer as ReactNodeViewRenderer4 } from "@tiptap/react";
|
|
4719
5214
|
import Suggestion from "@tiptap/suggestion";
|
|
4720
|
-
var VariablePluginKey = new
|
|
5215
|
+
var VariablePluginKey = new PluginKey2("variable");
|
|
4721
5216
|
var VariableExtension = Node7.create({
|
|
4722
5217
|
name: "variable",
|
|
4723
5218
|
group: "inline",
|
|
@@ -4726,7 +5221,8 @@ var VariableExtension = Node7.create({
|
|
|
4726
5221
|
atom: true,
|
|
4727
5222
|
addOptions() {
|
|
4728
5223
|
return {
|
|
4729
|
-
|
|
5224
|
+
variables: [],
|
|
5225
|
+
triggerChar: "@",
|
|
4730
5226
|
renderLabel({ options, node }) {
|
|
4731
5227
|
var _a;
|
|
4732
5228
|
return `${(_a = node.attrs.label) != null ? _a : node.attrs.id}`;
|
|
@@ -4822,11 +5318,7 @@ var VariableExtension = Node7.create({
|
|
|
4822
5318
|
renderHTML({ node, HTMLAttributes: HTMLAttributes2 }) {
|
|
4823
5319
|
return [
|
|
4824
5320
|
"div",
|
|
4825
|
-
mergeAttributes6(
|
|
4826
|
-
{ "data-type": this.name },
|
|
4827
|
-
this.options.HTMLAttributes,
|
|
4828
|
-
HTMLAttributes2
|
|
4829
|
-
),
|
|
5321
|
+
mergeAttributes6({ "data-type": this.name }, HTMLAttributes2),
|
|
4830
5322
|
this.options.renderLabel({
|
|
4831
5323
|
options: this.options,
|
|
4832
5324
|
node
|
|
@@ -5222,51 +5714,215 @@ var ForExtension = Node9.create({
|
|
|
5222
5714
|
}
|
|
5223
5715
|
});
|
|
5224
5716
|
|
|
5225
|
-
// src/editor/components/text-menu/
|
|
5226
|
-
import {
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
}
|
|
5233
|
-
const
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5717
|
+
// src/editor/components/text-menu/turn-into-block.tsx
|
|
5718
|
+
import { ChevronDownIcon as ChevronDownIcon3, PilcrowIcon } from "lucide-react";
|
|
5719
|
+
import { useMemo as useMemo7 } from "react";
|
|
5720
|
+
import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5721
|
+
var isOption = (option) => option.type === "option";
|
|
5722
|
+
var isCategory = (option) => option.type === "category";
|
|
5723
|
+
function TurnIntoBlock(props) {
|
|
5724
|
+
const { options } = props;
|
|
5725
|
+
const activeItem = useMemo7(
|
|
5726
|
+
() => options.find((option) => option.type === "option" && option.isActive()),
|
|
5727
|
+
[options]
|
|
5728
|
+
);
|
|
5729
|
+
const { icon: ActiveIcon = PilcrowIcon } = activeItem || {};
|
|
5730
|
+
return /* @__PURE__ */ jsxs24(Popover, { children: [
|
|
5731
|
+
/* @__PURE__ */ jsxs24(Tooltip, { children: [
|
|
5732
|
+
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs24(
|
|
5733
|
+
PopoverTrigger,
|
|
5734
|
+
{
|
|
5735
|
+
className: cn(
|
|
5736
|
+
"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"
|
|
5737
|
+
),
|
|
5738
|
+
children: [
|
|
5739
|
+
/* @__PURE__ */ jsx43(ActiveIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
5740
|
+
/* @__PURE__ */ jsx43(ChevronDownIcon3, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" })
|
|
5741
|
+
]
|
|
5742
|
+
}
|
|
5743
|
+
) }),
|
|
5744
|
+
/* @__PURE__ */ jsx43(TooltipContent, { sideOffset: 8, children: "Turn into" })
|
|
5745
|
+
] }),
|
|
5746
|
+
/* @__PURE__ */ jsx43(
|
|
5747
|
+
PopoverContent,
|
|
5748
|
+
{
|
|
5749
|
+
align: "start",
|
|
5750
|
+
side: "bottom",
|
|
5751
|
+
sideOffset: 8,
|
|
5752
|
+
className: "mly-flex mly-w-[160px] mly-flex-col mly-rounded-md mly-p-1",
|
|
5753
|
+
children: options.map((option, index) => {
|
|
5754
|
+
if (isOption(option)) {
|
|
5755
|
+
return /* @__PURE__ */ jsxs24(
|
|
5756
|
+
BaseButton,
|
|
5757
|
+
{
|
|
5758
|
+
onClick: option.onClick,
|
|
5759
|
+
variant: "ghost",
|
|
5760
|
+
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",
|
|
5761
|
+
children: [
|
|
5762
|
+
/* @__PURE__ */ jsx43(option.icon, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
5763
|
+
option.label
|
|
5764
|
+
]
|
|
5765
|
+
},
|
|
5766
|
+
option.id
|
|
5767
|
+
);
|
|
5768
|
+
} else if (isCategory(option)) {
|
|
5769
|
+
return /* @__PURE__ */ jsx43(
|
|
5770
|
+
"label",
|
|
5771
|
+
{
|
|
5772
|
+
className: cn(
|
|
5773
|
+
"mly-px-2 mly-text-xs mly-font-medium mly-text-midnight-gray/60",
|
|
5774
|
+
index === 0 ? "mly-mb-2 mly-mt-1" : "mly-my-2"
|
|
5775
|
+
),
|
|
5776
|
+
children: option.label
|
|
5777
|
+
},
|
|
5778
|
+
option.id
|
|
5779
|
+
);
|
|
5780
|
+
}
|
|
5781
|
+
})
|
|
5782
|
+
}
|
|
5783
|
+
)
|
|
5784
|
+
] });
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
// src/editor/components/text-menu/use-turn-into-block-options.tsx
|
|
5788
|
+
import { useEditorState as useEditorState7 } from "@tiptap/react";
|
|
5789
|
+
import {
|
|
5790
|
+
FootprintsIcon as FootprintsIcon2,
|
|
5791
|
+
Heading1Icon,
|
|
5792
|
+
Heading2Icon,
|
|
5793
|
+
Heading3Icon,
|
|
5794
|
+
ListIcon,
|
|
5795
|
+
ListOrderedIcon,
|
|
5796
|
+
PilcrowIcon as PilcrowIcon2
|
|
5797
|
+
} from "lucide-react";
|
|
5798
|
+
function useTurnIntoBlockOptions(editor) {
|
|
5799
|
+
return useEditorState7({
|
|
5800
|
+
editor,
|
|
5801
|
+
selector: ({ editor: editor2 }) => [
|
|
5802
|
+
{
|
|
5803
|
+
type: "category",
|
|
5804
|
+
label: "Hierarchy",
|
|
5805
|
+
id: "hierarchy"
|
|
5806
|
+
},
|
|
5807
|
+
{
|
|
5808
|
+
icon: PilcrowIcon2,
|
|
5809
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setParagraph().run(),
|
|
5810
|
+
id: "paragraph",
|
|
5811
|
+
disabled: () => !editor2.can().setParagraph(),
|
|
5812
|
+
isActive: () => editor2.isActive("paragraph") && !editor2.isActive("orderedList") && !editor2.isActive("bulletList") && !editor2.isActive("taskList"),
|
|
5813
|
+
label: "Paragraph",
|
|
5814
|
+
type: "option"
|
|
5815
|
+
},
|
|
5816
|
+
{
|
|
5817
|
+
icon: Heading1Icon,
|
|
5818
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 1 }).run(),
|
|
5819
|
+
id: "heading1",
|
|
5820
|
+
disabled: () => !editor2.can().setHeading({ level: 1 }),
|
|
5821
|
+
isActive: () => editor2.isActive("heading", { level: 1 }),
|
|
5822
|
+
label: "Heading 1",
|
|
5823
|
+
type: "option"
|
|
5824
|
+
},
|
|
5825
|
+
{
|
|
5826
|
+
icon: Heading2Icon,
|
|
5827
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 2 }).run(),
|
|
5828
|
+
id: "heading2",
|
|
5829
|
+
disabled: () => !editor2.can().setHeading({ level: 2 }),
|
|
5830
|
+
isActive: () => editor2.isActive("heading", { level: 2 }),
|
|
5831
|
+
label: "Heading 2",
|
|
5832
|
+
type: "option"
|
|
5833
|
+
},
|
|
5834
|
+
{
|
|
5835
|
+
icon: Heading3Icon,
|
|
5836
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 3 }).run(),
|
|
5837
|
+
id: "heading3",
|
|
5838
|
+
disabled: () => !editor2.can().setHeading({ level: 3 }),
|
|
5839
|
+
isActive: () => editor2.isActive("heading", { level: 3 }),
|
|
5840
|
+
label: "Heading 3",
|
|
5841
|
+
type: "option"
|
|
5842
|
+
},
|
|
5843
|
+
{
|
|
5844
|
+
id: "footer",
|
|
5845
|
+
type: "option",
|
|
5846
|
+
label: "Footer",
|
|
5847
|
+
icon: FootprintsIcon2,
|
|
5848
|
+
onClick: () => {
|
|
5849
|
+
editor2.chain().focus().liftListItem("listItem").setFooter().run();
|
|
5850
|
+
},
|
|
5851
|
+
disabled: () => !editor2.can().setFooter(),
|
|
5852
|
+
isActive: () => editor2.isActive("footer")
|
|
5853
|
+
},
|
|
5854
|
+
{
|
|
5855
|
+
type: "category",
|
|
5856
|
+
label: "Lists",
|
|
5857
|
+
id: "lists"
|
|
5858
|
+
},
|
|
5859
|
+
{
|
|
5860
|
+
icon: ListIcon,
|
|
5861
|
+
onClick: () => editor2.chain().focus().toggleBulletList().run(),
|
|
5862
|
+
id: "bulletList",
|
|
5863
|
+
disabled: () => !editor2.can().toggleBulletList(),
|
|
5864
|
+
isActive: () => editor2.isActive("bulletList"),
|
|
5865
|
+
label: "Bullet list",
|
|
5866
|
+
type: "option"
|
|
5867
|
+
},
|
|
5868
|
+
{
|
|
5869
|
+
icon: ListOrderedIcon,
|
|
5870
|
+
onClick: () => editor2.chain().focus().toggleOrderedList().run(),
|
|
5871
|
+
id: "orderedList",
|
|
5872
|
+
disabled: () => !editor2.can().toggleOrderedList(),
|
|
5873
|
+
isActive: () => editor2.isActive("orderedList"),
|
|
5874
|
+
label: "Numbered list",
|
|
5875
|
+
type: "option"
|
|
5876
|
+
}
|
|
5877
|
+
]
|
|
5878
|
+
});
|
|
5879
|
+
}
|
|
5880
|
+
|
|
5881
|
+
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
5882
|
+
import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5883
|
+
function TextBubbleMenu(props) {
|
|
5884
|
+
var _a, _b, _c, _d;
|
|
5885
|
+
const { editor, appendTo } = props;
|
|
5886
|
+
if (!editor) {
|
|
5887
|
+
return null;
|
|
5888
|
+
}
|
|
5889
|
+
const items = [
|
|
5890
|
+
{
|
|
5891
|
+
name: "bold",
|
|
5892
|
+
isActive: () => editor == null ? void 0 : editor.isActive("bold"),
|
|
5893
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
5894
|
+
icon: BoldIcon2,
|
|
5895
|
+
tooltip: "Bold"
|
|
5896
|
+
},
|
|
5897
|
+
{
|
|
5898
|
+
name: "italic",
|
|
5899
|
+
isActive: () => editor == null ? void 0 : editor.isActive("italic"),
|
|
5900
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleItalic().run(),
|
|
5901
|
+
icon: ItalicIcon2,
|
|
5902
|
+
tooltip: "Italic"
|
|
5903
|
+
},
|
|
5904
|
+
{
|
|
5905
|
+
name: "underline",
|
|
5906
|
+
isActive: () => editor == null ? void 0 : editor.isActive("underline"),
|
|
5907
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleUnderline().run(),
|
|
5908
|
+
icon: UnderlineIcon2,
|
|
5909
|
+
tooltip: "Underline"
|
|
5910
|
+
},
|
|
5911
|
+
{
|
|
5912
|
+
name: "strike",
|
|
5913
|
+
isActive: () => editor == null ? void 0 : editor.isActive("strike"),
|
|
5914
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleStrike().run(),
|
|
5915
|
+
icon: StrikethroughIcon2,
|
|
5916
|
+
tooltip: "Strikethrough"
|
|
5917
|
+
},
|
|
5918
|
+
{
|
|
5919
|
+
name: "code",
|
|
5920
|
+
isActive: () => editor == null ? void 0 : editor.isActive("code"),
|
|
5921
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleCode().run(),
|
|
5922
|
+
icon: CodeIcon,
|
|
5923
|
+
tooltip: "Code"
|
|
5924
|
+
}
|
|
5925
|
+
];
|
|
5270
5926
|
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
5271
5927
|
pluginKey: "textMenu",
|
|
5272
5928
|
shouldShow: ({ editor: editor2, from, view }) => {
|
|
@@ -5312,13 +5968,18 @@ function TextBubbleMenu(props) {
|
|
|
5312
5968
|
}
|
|
5313
5969
|
});
|
|
5314
5970
|
const state = useTextMenuState(editor);
|
|
5315
|
-
|
|
5971
|
+
const turnIntoBlockOptions = useTurnIntoBlockOptions(editor);
|
|
5972
|
+
const colors = editor == null ? void 0 : editor.storage.color.colors;
|
|
5973
|
+
const suggestedColors = (_c = (_b = (_a = Array == null ? void 0 : Array.from(colors)) == null ? void 0 : _a.reverse()) == null ? void 0 : _b.slice(0, 6)) != null ? _c : [];
|
|
5974
|
+
return /* @__PURE__ */ jsx44(
|
|
5316
5975
|
BubbleMenu6,
|
|
5317
5976
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
5318
|
-
className: "mly-flex mly-gap-
|
|
5319
|
-
children: /* @__PURE__ */
|
|
5320
|
-
|
|
5321
|
-
/* @__PURE__ */
|
|
5977
|
+
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",
|
|
5978
|
+
children: /* @__PURE__ */ jsxs25(TooltipProvider, { children: [
|
|
5979
|
+
/* @__PURE__ */ jsx44(TurnIntoBlock, { options: turnIntoBlockOptions }),
|
|
5980
|
+
/* @__PURE__ */ jsx44(Divider, { className: "mly-mx-0" }),
|
|
5981
|
+
items.map((item, index) => /* @__PURE__ */ jsx44(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
5982
|
+
/* @__PURE__ */ jsx44(
|
|
5322
5983
|
AlignmentSwitch,
|
|
5323
5984
|
{
|
|
5324
5985
|
alignment: state.textAlign,
|
|
@@ -5327,8 +5988,8 @@ function TextBubbleMenu(props) {
|
|
|
5327
5988
|
}
|
|
5328
5989
|
}
|
|
5329
5990
|
),
|
|
5330
|
-
!state.isListActive && /* @__PURE__ */
|
|
5331
|
-
/* @__PURE__ */
|
|
5991
|
+
!state.isListActive && /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
5992
|
+
/* @__PURE__ */ jsx44(
|
|
5332
5993
|
BubbleMenuButton,
|
|
5333
5994
|
{
|
|
5334
5995
|
icon: List2,
|
|
@@ -5338,7 +5999,7 @@ function TextBubbleMenu(props) {
|
|
|
5338
5999
|
tooltip: "Bullet List"
|
|
5339
6000
|
}
|
|
5340
6001
|
),
|
|
5341
|
-
/* @__PURE__ */
|
|
6002
|
+
/* @__PURE__ */ jsx44(
|
|
5342
6003
|
BubbleMenuButton,
|
|
5343
6004
|
{
|
|
5344
6005
|
icon: ListOrdered2,
|
|
@@ -5349,10 +6010,10 @@ function TextBubbleMenu(props) {
|
|
|
5349
6010
|
}
|
|
5350
6011
|
)
|
|
5351
6012
|
] }),
|
|
5352
|
-
/* @__PURE__ */
|
|
6013
|
+
/* @__PURE__ */ jsx44(
|
|
5353
6014
|
LinkInputPopover,
|
|
5354
6015
|
{
|
|
5355
|
-
defaultValue: (
|
|
6016
|
+
defaultValue: (_d = state == null ? void 0 : state.linkUrl) != null ? _d : "",
|
|
5356
6017
|
onValueChange: (value, isVariable) => {
|
|
5357
6018
|
const defaultValueWithoutProtocol = value.replace(
|
|
5358
6019
|
/https?:\/\//,
|
|
@@ -5369,25 +6030,27 @@ function TextBubbleMenu(props) {
|
|
|
5369
6030
|
isVariable: state.isUrlVariable
|
|
5370
6031
|
}
|
|
5371
6032
|
),
|
|
5372
|
-
/* @__PURE__ */
|
|
5373
|
-
/* @__PURE__ */
|
|
6033
|
+
/* @__PURE__ */ jsx44(Divider, { className: "mly-mx-0" }),
|
|
6034
|
+
/* @__PURE__ */ jsx44(
|
|
5374
6035
|
ColorPicker,
|
|
5375
6036
|
{
|
|
5376
6037
|
color: state.currentTextColor,
|
|
5377
6038
|
onColorChange: (color) => {
|
|
5378
6039
|
editor == null ? void 0 : editor.chain().setColor(color).run();
|
|
5379
6040
|
},
|
|
6041
|
+
onClose: (color) => colors.add(color),
|
|
5380
6042
|
tooltip: "Text Color",
|
|
5381
|
-
|
|
6043
|
+
suggestedColors,
|
|
6044
|
+
children: /* @__PURE__ */ jsx44(
|
|
5382
6045
|
BaseButton,
|
|
5383
6046
|
{
|
|
5384
6047
|
variant: "ghost",
|
|
5385
6048
|
size: "sm",
|
|
5386
6049
|
type: "button",
|
|
5387
6050
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
5388
|
-
children: /* @__PURE__ */
|
|
5389
|
-
/* @__PURE__ */
|
|
5390
|
-
/* @__PURE__ */
|
|
6051
|
+
children: /* @__PURE__ */ jsxs25("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
6052
|
+
/* @__PURE__ */ jsx44("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
6053
|
+
/* @__PURE__ */ jsx44(
|
|
5391
6054
|
"div",
|
|
5392
6055
|
{
|
|
5393
6056
|
className: "mly-h-[2px] mly-w-3",
|
|
@@ -5404,66 +6067,12 @@ function TextBubbleMenu(props) {
|
|
|
5404
6067
|
);
|
|
5405
6068
|
}
|
|
5406
6069
|
|
|
5407
|
-
// src/editor/extensions/index.ts
|
|
5408
|
-
import StarterKit from "@tiptap/starter-kit";
|
|
5409
|
-
import { Color } from "@tiptap/extension-color";
|
|
5410
|
-
import ListItem from "@tiptap/extension-list-item";
|
|
5411
|
-
import Paragraph from "@tiptap/extension-paragraph";
|
|
5412
|
-
import Placeholder from "@tiptap/extension-placeholder";
|
|
5413
|
-
import TextAlign from "@tiptap/extension-text-align";
|
|
5414
|
-
import TextStyle from "@tiptap/extension-text-style";
|
|
5415
|
-
import Heading from "@tiptap/extension-heading";
|
|
5416
|
-
import Underline from "@tiptap/extension-underline";
|
|
5417
|
-
import Document from "@tiptap/extension-document";
|
|
5418
|
-
import Focus from "@tiptap/extension-focus";
|
|
5419
|
-
import Dropcursor from "@tiptap/extension-dropcursor";
|
|
5420
|
-
|
|
5421
|
-
// src/editor/nodes/footer.ts
|
|
5422
|
-
import { mergeAttributes as mergeAttributes9, Node as Node10 } from "@tiptap/core";
|
|
5423
|
-
var Footer = Node10.create({
|
|
5424
|
-
name: "footer",
|
|
5425
|
-
group: "block",
|
|
5426
|
-
content: "inline*",
|
|
5427
|
-
addAttributes() {
|
|
5428
|
-
return {
|
|
5429
|
-
"maily-component": {
|
|
5430
|
-
default: "footer",
|
|
5431
|
-
renderHTML: (attributes) => {
|
|
5432
|
-
return {
|
|
5433
|
-
"data-maily-component": attributes["maily-component"]
|
|
5434
|
-
};
|
|
5435
|
-
},
|
|
5436
|
-
parseHTML: (element) => element == null ? void 0 : element.getAttribute("data-maily-component")
|
|
5437
|
-
}
|
|
5438
|
-
};
|
|
5439
|
-
},
|
|
5440
|
-
addCommands() {
|
|
5441
|
-
return {
|
|
5442
|
-
setFooter: () => ({ commands }) => {
|
|
5443
|
-
return commands.setNode(this.name);
|
|
5444
|
-
}
|
|
5445
|
-
};
|
|
5446
|
-
},
|
|
5447
|
-
parseHTML() {
|
|
5448
|
-
return [{ tag: 'small[data-maily-component="footer"]' }];
|
|
5449
|
-
},
|
|
5450
|
-
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
5451
|
-
return [
|
|
5452
|
-
"small",
|
|
5453
|
-
mergeAttributes9(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
5454
|
-
class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
|
|
5455
|
-
}),
|
|
5456
|
-
0
|
|
5457
|
-
];
|
|
5458
|
-
}
|
|
5459
|
-
});
|
|
5460
|
-
|
|
5461
6070
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
5462
6071
|
import { ReactRenderer } from "@tiptap/react";
|
|
5463
6072
|
import { forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle2 } from "react";
|
|
5464
|
-
import
|
|
6073
|
+
import tippy2 from "tippy.js";
|
|
5465
6074
|
import { useRef as useRef10 } from "react";
|
|
5466
|
-
import { jsx as
|
|
6075
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
5467
6076
|
var VariableList = forwardRef8((props, ref) => {
|
|
5468
6077
|
const { items = [] } = props;
|
|
5469
6078
|
const popoverRef = useRef10(null);
|
|
@@ -5490,7 +6099,7 @@ var VariableList = forwardRef8((props, ref) => {
|
|
|
5490
6099
|
return false;
|
|
5491
6100
|
}
|
|
5492
6101
|
}));
|
|
5493
|
-
return /* @__PURE__ */
|
|
6102
|
+
return /* @__PURE__ */ jsx45(
|
|
5494
6103
|
VariablePopover,
|
|
5495
6104
|
{
|
|
5496
6105
|
items,
|
|
@@ -5528,7 +6137,7 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
5528
6137
|
if (!props.clientRect) {
|
|
5529
6138
|
return;
|
|
5530
6139
|
}
|
|
5531
|
-
popup =
|
|
6140
|
+
popup = tippy2("body", {
|
|
5532
6141
|
getReferenceClientRect: props.clientRect,
|
|
5533
6142
|
appendTo: () => document.body,
|
|
5534
6143
|
content: component.element,
|
|
@@ -5568,20 +6177,224 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
5568
6177
|
};
|
|
5569
6178
|
}
|
|
5570
6179
|
|
|
5571
|
-
// src/editor/extensions/
|
|
6180
|
+
// src/editor/extensions/maily-kit.tsx
|
|
5572
6181
|
import { Extension } from "@tiptap/core";
|
|
6182
|
+
import StarterKit from "@tiptap/starter-kit";
|
|
6183
|
+
import ListItem from "@tiptap/extension-list-item";
|
|
6184
|
+
import Paragraph from "@tiptap/extension-paragraph";
|
|
6185
|
+
import Placeholder from "@tiptap/extension-placeholder";
|
|
6186
|
+
import TextAlign from "@tiptap/extension-text-align";
|
|
6187
|
+
import TextStyle from "@tiptap/extension-text-style";
|
|
6188
|
+
import Heading from "@tiptap/extension-heading";
|
|
6189
|
+
import Underline from "@tiptap/extension-underline";
|
|
6190
|
+
import Document from "@tiptap/extension-document";
|
|
6191
|
+
import Focus from "@tiptap/extension-focus";
|
|
6192
|
+
import Dropcursor from "@tiptap/extension-dropcursor";
|
|
6193
|
+
|
|
6194
|
+
// src/editor/extensions/color.ts
|
|
6195
|
+
import TiptapColor from "@tiptap/extension-color";
|
|
6196
|
+
var Color = TiptapColor.extend({
|
|
6197
|
+
addStorage() {
|
|
6198
|
+
return {
|
|
6199
|
+
colors: /* @__PURE__ */ new Set()
|
|
6200
|
+
};
|
|
6201
|
+
}
|
|
6202
|
+
});
|
|
6203
|
+
|
|
6204
|
+
// src/editor/nodes/footer.ts
|
|
6205
|
+
import { mergeAttributes as mergeAttributes9, Node as Node10 } from "@tiptap/core";
|
|
6206
|
+
var Footer = Node10.create({
|
|
6207
|
+
name: "footer",
|
|
6208
|
+
group: "block",
|
|
6209
|
+
content: "inline*",
|
|
6210
|
+
addAttributes() {
|
|
6211
|
+
return {
|
|
6212
|
+
"maily-component": {
|
|
6213
|
+
default: "footer",
|
|
6214
|
+
renderHTML: (attributes) => {
|
|
6215
|
+
return {
|
|
6216
|
+
"data-maily-component": attributes["maily-component"]
|
|
6217
|
+
};
|
|
6218
|
+
},
|
|
6219
|
+
parseHTML: (element) => element == null ? void 0 : element.getAttribute("data-maily-component")
|
|
6220
|
+
}
|
|
6221
|
+
};
|
|
6222
|
+
},
|
|
6223
|
+
addCommands() {
|
|
6224
|
+
return {
|
|
6225
|
+
setFooter: () => ({ commands }) => {
|
|
6226
|
+
return commands.setNode(this.name);
|
|
6227
|
+
}
|
|
6228
|
+
};
|
|
6229
|
+
},
|
|
6230
|
+
parseHTML() {
|
|
6231
|
+
return [{ tag: 'small[data-maily-component="footer"]' }];
|
|
6232
|
+
},
|
|
6233
|
+
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
6234
|
+
return [
|
|
6235
|
+
"small",
|
|
6236
|
+
mergeAttributes9(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
6237
|
+
class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
|
|
6238
|
+
}),
|
|
6239
|
+
0
|
|
6240
|
+
];
|
|
6241
|
+
}
|
|
6242
|
+
});
|
|
6243
|
+
|
|
6244
|
+
// src/editor/nodes/link.ts
|
|
6245
|
+
import TiptapLink from "@tiptap/extension-link";
|
|
6246
|
+
var LinkExtension = TiptapLink.extend({
|
|
6247
|
+
addAttributes() {
|
|
6248
|
+
var _a;
|
|
6249
|
+
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
6250
|
+
isUrlVariable: {
|
|
6251
|
+
default: false
|
|
6252
|
+
}
|
|
6253
|
+
});
|
|
6254
|
+
},
|
|
6255
|
+
addCommands() {
|
|
6256
|
+
var _a;
|
|
6257
|
+
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
6258
|
+
setIsUrlVariable: (isUrlVariable) => ({ chain }) => {
|
|
6259
|
+
return chain().setMark("link", { isUrlVariable }).run();
|
|
6260
|
+
}
|
|
6261
|
+
});
|
|
6262
|
+
}
|
|
6263
|
+
});
|
|
6264
|
+
|
|
6265
|
+
// src/editor/extensions/maily-kit.tsx
|
|
6266
|
+
var MailyKit = Extension.create({
|
|
6267
|
+
name: "maily-kit",
|
|
6268
|
+
addOptions() {
|
|
6269
|
+
return {
|
|
6270
|
+
link: {
|
|
6271
|
+
HTMLAttributes: {
|
|
6272
|
+
target: "_blank",
|
|
6273
|
+
rel: "noopener noreferrer nofollow",
|
|
6274
|
+
class: "mly-no-underline"
|
|
6275
|
+
},
|
|
6276
|
+
openOnClick: false
|
|
6277
|
+
}
|
|
6278
|
+
};
|
|
6279
|
+
},
|
|
6280
|
+
addExtensions() {
|
|
6281
|
+
const extensions2 = [
|
|
6282
|
+
Document.extend({
|
|
6283
|
+
content: "(block|columns)+"
|
|
6284
|
+
}),
|
|
6285
|
+
StarterKit.configure({
|
|
6286
|
+
heading: {
|
|
6287
|
+
levels: [1, 2, 3],
|
|
6288
|
+
HTMLAttributes: {
|
|
6289
|
+
class: "mly-relative"
|
|
6290
|
+
}
|
|
6291
|
+
},
|
|
6292
|
+
code: {
|
|
6293
|
+
HTMLAttributes: {
|
|
6294
|
+
class: "mly-px-1 mly-relative mly-py-0.5 mly-bg-[#efefef] mly-text-sm mly-rounded-md mly-tracking-normal mly-font-normal"
|
|
6295
|
+
}
|
|
6296
|
+
},
|
|
6297
|
+
blockquote: {
|
|
6298
|
+
HTMLAttributes: {
|
|
6299
|
+
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
|
|
6300
|
+
}
|
|
6301
|
+
},
|
|
6302
|
+
paragraph: {
|
|
6303
|
+
HTMLAttributes: {
|
|
6304
|
+
class: "mly-relative"
|
|
6305
|
+
}
|
|
6306
|
+
},
|
|
6307
|
+
bulletList: {
|
|
6308
|
+
HTMLAttributes: {
|
|
6309
|
+
class: "mly-relative"
|
|
6310
|
+
}
|
|
6311
|
+
},
|
|
6312
|
+
orderedList: {
|
|
6313
|
+
HTMLAttributes: {
|
|
6314
|
+
class: "mly-relative"
|
|
6315
|
+
}
|
|
6316
|
+
},
|
|
6317
|
+
horizontalRule: false,
|
|
6318
|
+
dropcursor: false,
|
|
6319
|
+
document: false
|
|
6320
|
+
}),
|
|
6321
|
+
Underline,
|
|
6322
|
+
Color.configure({ types: [TextStyle.name, ListItem.name] }),
|
|
6323
|
+
TextStyle.configure(),
|
|
6324
|
+
TextAlign.configure({
|
|
6325
|
+
types: [Paragraph.name, Heading.name, Footer.name]
|
|
6326
|
+
}),
|
|
6327
|
+
HorizontalRule,
|
|
6328
|
+
Placeholder.configure({
|
|
6329
|
+
placeholder: ({ node }) => {
|
|
6330
|
+
if (node.type.name === "heading") {
|
|
6331
|
+
return `Heading ${node.attrs.level}`;
|
|
6332
|
+
} else if ([
|
|
6333
|
+
"columns",
|
|
6334
|
+
"column",
|
|
6335
|
+
"section",
|
|
6336
|
+
"for",
|
|
6337
|
+
"show",
|
|
6338
|
+
"blockquote"
|
|
6339
|
+
].includes(node.type.name)) {
|
|
6340
|
+
return "";
|
|
6341
|
+
}
|
|
6342
|
+
return "Write something or / to see commands";
|
|
6343
|
+
},
|
|
6344
|
+
includeChildren: true
|
|
6345
|
+
}),
|
|
6346
|
+
Footer,
|
|
6347
|
+
Focus,
|
|
6348
|
+
Dropcursor.configure({
|
|
6349
|
+
color: "#555",
|
|
6350
|
+
width: 3,
|
|
6351
|
+
class: "ProseMirror-dropcursor"
|
|
6352
|
+
})
|
|
6353
|
+
];
|
|
6354
|
+
if (this.options.linkCard !== false) {
|
|
6355
|
+
extensions2.push(LinkCardExtension.configure(this.options.linkCard));
|
|
6356
|
+
}
|
|
6357
|
+
if (this.options.for !== false) {
|
|
6358
|
+
extensions2.push(ForExtension);
|
|
6359
|
+
}
|
|
6360
|
+
if (this.options.section !== false) {
|
|
6361
|
+
extensions2.push(SectionExtension);
|
|
6362
|
+
}
|
|
6363
|
+
if (this.options.columns !== false) {
|
|
6364
|
+
extensions2.push(ColumnsExtension);
|
|
6365
|
+
}
|
|
6366
|
+
if (this.options.column !== false) {
|
|
6367
|
+
extensions2.push(ColumnExtension);
|
|
6368
|
+
}
|
|
6369
|
+
if (this.options.button !== false) {
|
|
6370
|
+
extensions2.push(ButtonExtension);
|
|
6371
|
+
}
|
|
6372
|
+
if (this.options.spacer !== false) {
|
|
6373
|
+
extensions2.push(Spacer);
|
|
6374
|
+
}
|
|
6375
|
+
if (this.options.logo !== false) {
|
|
6376
|
+
extensions2.push(LogoExtension);
|
|
6377
|
+
}
|
|
6378
|
+
if (this.options.image !== false) {
|
|
6379
|
+
extensions2.push(ImageExtension);
|
|
6380
|
+
}
|
|
6381
|
+
if (this.options.link !== false) {
|
|
6382
|
+
extensions2.push(LinkExtension.configure(this.options.link));
|
|
6383
|
+
}
|
|
6384
|
+
return extensions2;
|
|
6385
|
+
}
|
|
6386
|
+
});
|
|
6387
|
+
|
|
6388
|
+
// src/editor/extensions/slash-command/slash-command.ts
|
|
6389
|
+
import { Extension as Extension2 } from "@tiptap/core";
|
|
5573
6390
|
import Suggestion2 from "@tiptap/suggestion";
|
|
5574
|
-
var
|
|
6391
|
+
var SlashCommandExtension = Extension2.create({
|
|
5575
6392
|
name: "slash-command",
|
|
5576
6393
|
addOptions() {
|
|
5577
6394
|
return {
|
|
5578
6395
|
suggestion: {
|
|
5579
6396
|
char: "/",
|
|
5580
|
-
command: ({
|
|
5581
|
-
editor,
|
|
5582
|
-
range,
|
|
5583
|
-
props
|
|
5584
|
-
}) => {
|
|
6397
|
+
command: ({ editor, range, props }) => {
|
|
5585
6398
|
props.command({ editor, range });
|
|
5586
6399
|
}
|
|
5587
6400
|
}
|
|
@@ -5618,8 +6431,8 @@ import {
|
|
|
5618
6431
|
useRef as useRef11,
|
|
5619
6432
|
useState as useState12
|
|
5620
6433
|
} from "react";
|
|
5621
|
-
import
|
|
5622
|
-
import { jsx as
|
|
6434
|
+
import tippy3 from "tippy.js";
|
|
6435
|
+
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5623
6436
|
function CommandList(props) {
|
|
5624
6437
|
const { items, command, editor } = props;
|
|
5625
6438
|
const [selectedIndex, setSelectedIndex] = useState12(0);
|
|
@@ -5669,15 +6482,15 @@ function CommandList(props) {
|
|
|
5669
6482
|
updateScrollView(container, item);
|
|
5670
6483
|
}
|
|
5671
6484
|
}, [selectedIndex]);
|
|
5672
|
-
return items.length > 0 ? /* @__PURE__ */
|
|
5673
|
-
/* @__PURE__ */
|
|
6485
|
+
return items.length > 0 ? /* @__PURE__ */ jsxs26("div", { className: "mly-z-50 mly-w-72 mly-rounded-md mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
|
|
6486
|
+
/* @__PURE__ */ jsx46(
|
|
5674
6487
|
"div",
|
|
5675
6488
|
{
|
|
5676
6489
|
id: "slash-command",
|
|
5677
6490
|
ref: commandListContainer,
|
|
5678
6491
|
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto mly-scroll-smooth mly-p-1",
|
|
5679
6492
|
children: items.map((item, index) => {
|
|
5680
|
-
return /* @__PURE__ */
|
|
6493
|
+
return /* @__PURE__ */ jsxs26(
|
|
5681
6494
|
"button",
|
|
5682
6495
|
{
|
|
5683
6496
|
className: cn(
|
|
@@ -5687,10 +6500,10 @@ function CommandList(props) {
|
|
|
5687
6500
|
onClick: () => selectItem(index),
|
|
5688
6501
|
type: "button",
|
|
5689
6502
|
children: [
|
|
5690
|
-
/* @__PURE__ */
|
|
5691
|
-
/* @__PURE__ */
|
|
5692
|
-
/* @__PURE__ */
|
|
5693
|
-
/* @__PURE__ */
|
|
6503
|
+
/* @__PURE__ */ jsx46("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
|
|
6504
|
+
/* @__PURE__ */ jsxs26("div", { children: [
|
|
6505
|
+
/* @__PURE__ */ jsx46("p", { className: "mly-font-medium", children: item.title }),
|
|
6506
|
+
/* @__PURE__ */ jsx46("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
|
|
5694
6507
|
] })
|
|
5695
6508
|
]
|
|
5696
6509
|
},
|
|
@@ -5699,23 +6512,23 @@ function CommandList(props) {
|
|
|
5699
6512
|
})
|
|
5700
6513
|
}
|
|
5701
6514
|
),
|
|
5702
|
-
/* @__PURE__ */
|
|
5703
|
-
/* @__PURE__ */
|
|
5704
|
-
/* @__PURE__ */
|
|
5705
|
-
/* @__PURE__ */
|
|
6515
|
+
/* @__PURE__ */ jsx46("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ jsxs26("div", { className: "mly-flex mly-items-center", children: [
|
|
6516
|
+
/* @__PURE__ */ jsxs26("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6517
|
+
/* @__PURE__ */ jsx46("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
6518
|
+
/* @__PURE__ */ jsx46("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
5706
6519
|
" ",
|
|
5707
6520
|
"to navigate"
|
|
5708
6521
|
] }),
|
|
5709
|
-
/* @__PURE__ */
|
|
5710
|
-
/* @__PURE__ */
|
|
5711
|
-
/* @__PURE__ */
|
|
6522
|
+
/* @__PURE__ */ jsx46("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
6523
|
+
/* @__PURE__ */ jsxs26("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6524
|
+
/* @__PURE__ */ jsx46("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
5712
6525
|
" ",
|
|
5713
6526
|
"to select"
|
|
5714
6527
|
] })
|
|
5715
6528
|
] }) })
|
|
5716
6529
|
] }) : null;
|
|
5717
6530
|
}
|
|
5718
|
-
function getSlashCommandSuggestions(commands =
|
|
6531
|
+
function getSlashCommandSuggestions(commands = DEFAULT_SLASH_COMMANDS) {
|
|
5719
6532
|
return {
|
|
5720
6533
|
items: ({ query, editor }) => {
|
|
5721
6534
|
return commands.filter((item) => {
|
|
@@ -5739,7 +6552,7 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5739
6552
|
props,
|
|
5740
6553
|
editor: props.editor
|
|
5741
6554
|
});
|
|
5742
|
-
popup =
|
|
6555
|
+
popup = tippy3("body", {
|
|
5743
6556
|
getReferenceClientRect: props.clientRect,
|
|
5744
6557
|
appendTo: () => document.body,
|
|
5745
6558
|
content: component.element,
|
|
@@ -5774,129 +6587,31 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5774
6587
|
};
|
|
5775
6588
|
}
|
|
5776
6589
|
|
|
5777
|
-
// src/editor/nodes/link.ts
|
|
5778
|
-
import TiptapLink from "@tiptap/extension-link";
|
|
5779
|
-
var LinkExtension = TiptapLink.extend({
|
|
5780
|
-
addAttributes() {
|
|
5781
|
-
var _a;
|
|
5782
|
-
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
5783
|
-
isUrlVariable: {
|
|
5784
|
-
default: false
|
|
5785
|
-
}
|
|
5786
|
-
});
|
|
5787
|
-
},
|
|
5788
|
-
addCommands() {
|
|
5789
|
-
var _a;
|
|
5790
|
-
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
5791
|
-
setIsUrlVariable: (isUrlVariable) => ({ chain }) => {
|
|
5792
|
-
return chain().setMark("link", { isUrlVariable }).run();
|
|
5793
|
-
}
|
|
5794
|
-
});
|
|
5795
|
-
}
|
|
5796
|
-
});
|
|
5797
|
-
|
|
5798
6590
|
// src/editor/extensions/index.ts
|
|
5799
6591
|
function extensions(props) {
|
|
5800
|
-
const {
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
levels: [1, 2, 3],
|
|
5810
|
-
HTMLAttributes: {
|
|
5811
|
-
class: "mly-relative"
|
|
5812
|
-
}
|
|
5813
|
-
},
|
|
5814
|
-
code: {
|
|
5815
|
-
HTMLAttributes: {
|
|
5816
|
-
class: "mly-px-1 mly-relative mly-py-0.5 mly-bg-[#efefef] mly-text-sm mly-rounded-md mly-tracking-normal mly-font-normal"
|
|
5817
|
-
}
|
|
5818
|
-
},
|
|
5819
|
-
blockquote: {
|
|
5820
|
-
HTMLAttributes: {
|
|
5821
|
-
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
|
|
5822
|
-
}
|
|
5823
|
-
},
|
|
5824
|
-
paragraph: {
|
|
5825
|
-
HTMLAttributes: {
|
|
5826
|
-
class: "mly-relative"
|
|
5827
|
-
}
|
|
5828
|
-
},
|
|
5829
|
-
bulletList: {
|
|
5830
|
-
HTMLAttributes: {
|
|
5831
|
-
class: "mly-relative"
|
|
5832
|
-
}
|
|
5833
|
-
},
|
|
5834
|
-
orderedList: {
|
|
5835
|
-
HTMLAttributes: {
|
|
5836
|
-
class: "mly-relative"
|
|
5837
|
-
}
|
|
5838
|
-
},
|
|
5839
|
-
horizontalRule: false,
|
|
5840
|
-
dropcursor: false,
|
|
5841
|
-
document: false
|
|
5842
|
-
}),
|
|
5843
|
-
Underline,
|
|
5844
|
-
LogoExtension,
|
|
5845
|
-
Color.configure({ types: [TextStyle.name, ListItem.name] }),
|
|
5846
|
-
TextStyle.configure(),
|
|
5847
|
-
TextAlign.configure({ types: [Paragraph.name, Heading.name, Footer.name] }),
|
|
5848
|
-
HorizontalRule,
|
|
5849
|
-
Placeholder.configure({
|
|
5850
|
-
placeholder: ({ node }) => {
|
|
5851
|
-
if (node.type.name === "heading") {
|
|
5852
|
-
return `Heading ${node.attrs.level}`;
|
|
5853
|
-
} else if ([
|
|
5854
|
-
"columns",
|
|
5855
|
-
"column",
|
|
5856
|
-
"section",
|
|
5857
|
-
"for",
|
|
5858
|
-
"show",
|
|
5859
|
-
"blockquote"
|
|
5860
|
-
].includes(node.type.name)) {
|
|
5861
|
-
return "";
|
|
5862
|
-
}
|
|
5863
|
-
return "Write something or / to see commands";
|
|
5864
|
-
},
|
|
5865
|
-
includeChildren: true
|
|
5866
|
-
}),
|
|
5867
|
-
Spacer,
|
|
5868
|
-
Footer,
|
|
5869
|
-
SlashCommand.configure({
|
|
6592
|
+
const {
|
|
6593
|
+
variables,
|
|
6594
|
+
blocks,
|
|
6595
|
+
variableTriggerCharacter,
|
|
6596
|
+
extensions: extensions2 = []
|
|
6597
|
+
} = props;
|
|
6598
|
+
const defaultExtensions = [
|
|
6599
|
+
MailyKit,
|
|
6600
|
+
SlashCommandExtension.configure({
|
|
5870
6601
|
suggestion: getSlashCommandSuggestions(blocks)
|
|
5871
6602
|
}),
|
|
5872
|
-
LinkExtension.configure({
|
|
5873
|
-
HTMLAttributes: {
|
|
5874
|
-
target: "_blank",
|
|
5875
|
-
rel: "noopener noreferrer nofollow",
|
|
5876
|
-
class: "mly-no-underline"
|
|
5877
|
-
},
|
|
5878
|
-
openOnClick: false
|
|
5879
|
-
}),
|
|
5880
|
-
ImageExtension,
|
|
5881
|
-
LinkCardExtension,
|
|
5882
|
-
Focus,
|
|
5883
|
-
SectionExtension,
|
|
5884
|
-
ForExtension,
|
|
5885
|
-
Dropcursor.configure({
|
|
5886
|
-
color: "#555",
|
|
5887
|
-
width: 3,
|
|
5888
|
-
class: "ProseMirror-dropcursor"
|
|
5889
|
-
}),
|
|
5890
|
-
ButtonExtension,
|
|
5891
6603
|
VariableExtension.configure({
|
|
5892
6604
|
suggestion: getVariableSuggestions(variables, variableTriggerCharacter)
|
|
5893
6605
|
})
|
|
5894
|
-
]
|
|
6606
|
+
].filter((ext) => {
|
|
6607
|
+
return !extensions2.some((e) => e.name === ext.name);
|
|
6608
|
+
});
|
|
6609
|
+
return [...defaultExtensions, ...extensions2];
|
|
5895
6610
|
}
|
|
5896
6611
|
|
|
5897
6612
|
// src/editor/index.tsx
|
|
5898
|
-
import { jsx as
|
|
5899
|
-
function
|
|
6613
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6614
|
+
function Editor9(props) {
|
|
5900
6615
|
const {
|
|
5901
6616
|
config: {
|
|
5902
6617
|
wrapClassName = "",
|
|
@@ -5912,8 +6627,8 @@ function Editor8(props) {
|
|
|
5912
6627
|
extensions: extensions2,
|
|
5913
6628
|
contentHtml,
|
|
5914
6629
|
contentJson,
|
|
5915
|
-
variables = DEFAULT_VARIABLES,
|
|
5916
6630
|
blocks = DEFAULT_SLASH_COMMANDS,
|
|
6631
|
+
variables = DEFAULT_VARIABLES,
|
|
5917
6632
|
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
5918
6633
|
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
5919
6634
|
} = props;
|
|
@@ -5961,35 +6676,32 @@ function Editor8(props) {
|
|
|
5961
6676
|
onUpdate: ({ editor: editor2 }) => {
|
|
5962
6677
|
onUpdate == null ? void 0 : onUpdate(editor2);
|
|
5963
6678
|
},
|
|
5964
|
-
extensions:
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
...extensions2 || []
|
|
5971
|
-
],
|
|
6679
|
+
extensions: extensions({
|
|
6680
|
+
variables,
|
|
6681
|
+
variableTriggerCharacter,
|
|
6682
|
+
extensions: extensions2,
|
|
6683
|
+
blocks
|
|
6684
|
+
}),
|
|
5972
6685
|
content: formattedContent,
|
|
5973
6686
|
autofocus
|
|
5974
6687
|
});
|
|
5975
6688
|
if (!editor) {
|
|
5976
6689
|
return null;
|
|
5977
6690
|
}
|
|
5978
|
-
return /* @__PURE__ */
|
|
6691
|
+
return /* @__PURE__ */ jsx47(
|
|
5979
6692
|
MailyProvider,
|
|
5980
6693
|
{
|
|
5981
6694
|
variables,
|
|
5982
|
-
blocks,
|
|
5983
6695
|
variableTriggerCharacter,
|
|
5984
6696
|
renderVariable,
|
|
5985
|
-
children: /* @__PURE__ */
|
|
6697
|
+
children: /* @__PURE__ */ jsxs27(
|
|
5986
6698
|
"div",
|
|
5987
6699
|
{
|
|
5988
6700
|
className: cn("mly-editor mly-antialiased", wrapClassName),
|
|
5989
6701
|
ref: menuContainerRef,
|
|
5990
6702
|
children: [
|
|
5991
|
-
hasMenuBar && /* @__PURE__ */
|
|
5992
|
-
/* @__PURE__ */
|
|
6703
|
+
hasMenuBar && /* @__PURE__ */ jsx47(EditorMenuBar, { config: props.config, editor }),
|
|
6704
|
+
/* @__PURE__ */ jsxs27(
|
|
5993
6705
|
"div",
|
|
5994
6706
|
{
|
|
5995
6707
|
className: cn(
|
|
@@ -5997,14 +6709,14 @@ function Editor8(props) {
|
|
|
5997
6709
|
bodyClassName
|
|
5998
6710
|
),
|
|
5999
6711
|
children: [
|
|
6000
|
-
/* @__PURE__ */
|
|
6001
|
-
/* @__PURE__ */
|
|
6002
|
-
/* @__PURE__ */
|
|
6003
|
-
/* @__PURE__ */
|
|
6004
|
-
/* @__PURE__ */
|
|
6005
|
-
/* @__PURE__ */
|
|
6006
|
-
/* @__PURE__ */
|
|
6007
|
-
/* @__PURE__ */
|
|
6712
|
+
/* @__PURE__ */ jsx47(TextBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6713
|
+
/* @__PURE__ */ jsx47(ImageBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6714
|
+
/* @__PURE__ */ jsx47(SpacerBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6715
|
+
/* @__PURE__ */ jsx47(EditorContent, { editor }),
|
|
6716
|
+
/* @__PURE__ */ jsx47(SectionBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6717
|
+
/* @__PURE__ */ jsx47(ColumnsBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6718
|
+
/* @__PURE__ */ jsx47(ContentMenu, { editor }),
|
|
6719
|
+
/* @__PURE__ */ jsx47(ForBubbleMenu, { editor, appendTo: menuContainerRef })
|
|
6008
6720
|
]
|
|
6009
6721
|
}
|
|
6010
6722
|
)
|
|
@@ -6015,6 +6727,6 @@ function Editor8(props) {
|
|
|
6015
6727
|
);
|
|
6016
6728
|
}
|
|
6017
6729
|
export {
|
|
6018
|
-
|
|
6730
|
+
Editor9 as Editor
|
|
6019
6731
|
};
|
|
6020
6732
|
//# sourceMappingURL=index.mjs.map
|