@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.js
CHANGED
|
@@ -60,7 +60,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
60
60
|
// src/index.ts
|
|
61
61
|
var src_exports = {};
|
|
62
62
|
__export(src_exports, {
|
|
63
|
-
Editor: () =>
|
|
63
|
+
Editor: () => Editor9
|
|
64
64
|
});
|
|
65
65
|
module.exports = __toCommonJS(src_exports);
|
|
66
66
|
|
|
@@ -93,11 +93,11 @@ styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n
|
|
|
93
93
|
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');
|
|
94
94
|
|
|
95
95
|
// src/styles/tailwind.css
|
|
96
|
-
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');
|
|
96
|
+
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');
|
|
97
97
|
|
|
98
98
|
// src/editor/index.tsx
|
|
99
|
-
var
|
|
100
|
-
var
|
|
99
|
+
var import_react56 = require("@tiptap/react");
|
|
100
|
+
var import_react57 = require("react");
|
|
101
101
|
|
|
102
102
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
103
103
|
var import_react12 = require("@tiptap/react");
|
|
@@ -551,10 +551,10 @@ function BubbleMenuButton(item) {
|
|
|
551
551
|
const { tooltip } = item;
|
|
552
552
|
const content = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
553
553
|
BaseButton,
|
|
554
|
-
{
|
|
554
|
+
__spreadProps(__spreadValues({
|
|
555
555
|
variant: "ghost",
|
|
556
|
-
size: "sm"
|
|
557
|
-
|
|
556
|
+
size: "sm"
|
|
557
|
+
}, item.command ? { onClick: item.command } : {}), {
|
|
558
558
|
"data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
|
|
559
559
|
className: cn(
|
|
560
560
|
"!mly-size-7 mly-px-2.5 disabled:mly-cursor-not-allowed",
|
|
@@ -580,7 +580,7 @@ function BubbleMenuButton(item) {
|
|
|
580
580
|
children: item.name
|
|
581
581
|
}
|
|
582
582
|
)
|
|
583
|
-
}
|
|
583
|
+
})
|
|
584
584
|
);
|
|
585
585
|
if (tooltip) {
|
|
586
586
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Tooltip, { children: [
|
|
@@ -717,13 +717,13 @@ var VariablePopover = (0, import_react2.forwardRef)((props, ref) => {
|
|
|
717
717
|
{
|
|
718
718
|
ref: scrollContainerRef,
|
|
719
719
|
className: "mly-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
|
|
720
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("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__ */ (0, import_jsx_runtime7.jsxs)(
|
|
720
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("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__ */ (0, import_jsx_runtime7.jsxs)(
|
|
721
721
|
"button",
|
|
722
722
|
{
|
|
723
723
|
ref: (el) => itemRefs.current[index] = el,
|
|
724
724
|
onClick: () => onSelectItem(item),
|
|
725
725
|
className: cn(
|
|
726
|
-
"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",
|
|
726
|
+
"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",
|
|
727
727
|
index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
|
|
728
728
|
),
|
|
729
729
|
children: [
|
|
@@ -759,6 +759,13 @@ function VariableIcon(props) {
|
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
// src/editor/utils/constants.ts
|
|
763
|
+
var AUTOCOMPLETE_PASSWORD_MANAGERS_OFF = Object.freeze({
|
|
764
|
+
autoComplete: "off",
|
|
765
|
+
"data-1p-ignore": true,
|
|
766
|
+
"data-form-type": "other"
|
|
767
|
+
});
|
|
768
|
+
|
|
762
769
|
// src/editor/utils/use-outside-click.ts
|
|
763
770
|
var import_react3 = require("react");
|
|
764
771
|
var import_react4 = require("react");
|
|
@@ -813,10 +820,10 @@ var InputAutocomplete = (0, import_react5.forwardRef)((props, ref) => {
|
|
|
813
820
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "mly-relative", children: [
|
|
814
821
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
815
822
|
"input",
|
|
816
|
-
__spreadProps(__spreadValues({
|
|
823
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
817
824
|
placeholder: "e.g. items",
|
|
818
825
|
type: "text"
|
|
819
|
-
}, inputProps), {
|
|
826
|
+
}), inputProps), {
|
|
820
827
|
ref,
|
|
821
828
|
value,
|
|
822
829
|
onChange: (e) => {
|
|
@@ -841,7 +848,8 @@ var InputAutocomplete = (0, import_react5.forwardRef)((props, ref) => {
|
|
|
841
848
|
e.preventDefault();
|
|
842
849
|
select();
|
|
843
850
|
}
|
|
844
|
-
}
|
|
851
|
+
},
|
|
852
|
+
spellCheck: false
|
|
845
853
|
})
|
|
846
854
|
),
|
|
847
855
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
@@ -886,6 +894,11 @@ var linkCard = {
|
|
|
886
894
|
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
|
|
887
895
|
command: ({ editor, range }) => {
|
|
888
896
|
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
897
|
+
},
|
|
898
|
+
shouldBeHidden: (editor) => {
|
|
899
|
+
return editor.extensionManager.extensions.findIndex(
|
|
900
|
+
(ext) => ext.name === "linkCard"
|
|
901
|
+
) === -1;
|
|
889
902
|
}
|
|
890
903
|
};
|
|
891
904
|
|
|
@@ -1102,9 +1115,10 @@ function VariableView(props) {
|
|
|
1102
1115
|
draggable: "false",
|
|
1103
1116
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Popover, { children: [
|
|
1104
1117
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverTrigger, { children: renderVariable({
|
|
1105
|
-
variable: { name: id, required },
|
|
1118
|
+
variable: { name: id, required, valid: true },
|
|
1106
1119
|
fallback,
|
|
1107
|
-
editor
|
|
1120
|
+
editor,
|
|
1121
|
+
from: "content-variable"
|
|
1108
1122
|
}) }),
|
|
1109
1123
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1110
1124
|
PopoverContent,
|
|
@@ -1120,7 +1134,7 @@ function VariableView(props) {
|
|
|
1120
1134
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly-inline-block mly-px-2 mly-text-xs mly-text-midnight-gray", children: "Variable" }),
|
|
1121
1135
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1122
1136
|
"input",
|
|
1123
|
-
{
|
|
1137
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1124
1138
|
value: id != null ? id : "",
|
|
1125
1139
|
onChange: (e) => {
|
|
1126
1140
|
updateAttributes2({
|
|
@@ -1129,7 +1143,7 @@ function VariableView(props) {
|
|
|
1129
1143
|
},
|
|
1130
1144
|
placeholder: "ie. name...",
|
|
1131
1145
|
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"
|
|
1132
|
-
}
|
|
1146
|
+
})
|
|
1133
1147
|
)
|
|
1134
1148
|
] }),
|
|
1135
1149
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Divider, { className: "mly-mx-1.5" }),
|
|
@@ -1137,7 +1151,7 @@ function VariableView(props) {
|
|
|
1137
1151
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly-inline-block mly-px-2 mly-pl-1 mly-text-xs mly-text-midnight-gray", children: "Default" }),
|
|
1138
1152
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1139
1153
|
"input",
|
|
1140
|
-
{
|
|
1154
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1141
1155
|
value: fallback != null ? fallback : "",
|
|
1142
1156
|
onChange: (e) => {
|
|
1143
1157
|
updateAttributes2({
|
|
@@ -1146,7 +1160,7 @@ function VariableView(props) {
|
|
|
1146
1160
|
},
|
|
1147
1161
|
placeholder: "ie. John Doe...",
|
|
1148
1162
|
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"
|
|
1149
|
-
}
|
|
1163
|
+
})
|
|
1150
1164
|
),
|
|
1151
1165
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react9.Pencil, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
1152
1166
|
] })
|
|
@@ -1158,8 +1172,29 @@ function VariableView(props) {
|
|
|
1158
1172
|
);
|
|
1159
1173
|
}
|
|
1160
1174
|
var DefaultRenderVariable = (props) => {
|
|
1161
|
-
const { variable, fallback } = props;
|
|
1162
|
-
const { name, required } = variable;
|
|
1175
|
+
const { variable, fallback, from } = props;
|
|
1176
|
+
const { name, required, valid } = variable;
|
|
1177
|
+
if (from === "button-variable") {
|
|
1178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("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: [
|
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react9.Braces, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
1180
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
1181
|
+
] });
|
|
1182
|
+
}
|
|
1183
|
+
if (from === "bubble-variable") {
|
|
1184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1185
|
+
"div",
|
|
1186
|
+
{
|
|
1187
|
+
className: cn(
|
|
1188
|
+
"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",
|
|
1189
|
+
!valid && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1190
|
+
),
|
|
1191
|
+
children: [
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react9.Braces, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: name })
|
|
1194
|
+
]
|
|
1195
|
+
}
|
|
1196
|
+
);
|
|
1197
|
+
}
|
|
1163
1198
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1164
1199
|
"span",
|
|
1165
1200
|
{
|
|
@@ -1230,7 +1265,7 @@ You can check out the documentation for more information: https://github.com/ari
|
|
|
1230
1265
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1231
1266
|
function _ShowPopover(props) {
|
|
1232
1267
|
const { showIfKey = "", onShowIfKeyValueChange, editor } = props;
|
|
1233
|
-
const { variables = [] } = useMailyContext();
|
|
1268
|
+
const { variables = [], renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
1234
1269
|
const [isUpdatingKey, setIsUpdatingKey] = (0, import_react8.useState)(false);
|
|
1235
1270
|
const inputRef = (0, import_react8.useRef)(null);
|
|
1236
1271
|
const autoCompleteOptions = (0, import_react9.useMemo)(() => {
|
|
@@ -1251,16 +1286,19 @@ function _ShowPopover(props) {
|
|
|
1251
1286
|
setIsUpdatingKey(false);
|
|
1252
1287
|
},
|
|
1253
1288
|
children: [
|
|
1254
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1289
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Tooltip, { children: [
|
|
1290
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1291
|
+
PopoverTrigger,
|
|
1292
|
+
{
|
|
1293
|
+
className: cn(
|
|
1294
|
+
"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",
|
|
1295
|
+
showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
|
|
1296
|
+
),
|
|
1297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react10.Eye, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" })
|
|
1298
|
+
}
|
|
1299
|
+
) }),
|
|
1300
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
|
|
1301
|
+
] }),
|
|
1264
1302
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1265
1303
|
PopoverContent,
|
|
1266
1304
|
{
|
|
@@ -1276,13 +1314,9 @@ function _ShowPopover(props) {
|
|
|
1276
1314
|
},
|
|
1277
1315
|
children: [
|
|
1278
1316
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "mly-flex mly-items-center mly-px-1.5 mly-text-sm mly-leading-none", children: "Show if" }),
|
|
1279
|
-
!isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime16.
|
|
1317
|
+
!isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1280
1318
|
"button",
|
|
1281
1319
|
{
|
|
1282
|
-
className: cn(
|
|
1283
|
-
"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",
|
|
1284
|
-
!isValidWhenKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1285
|
-
),
|
|
1286
1320
|
onClick: () => {
|
|
1287
1321
|
setIsUpdatingKey(true);
|
|
1288
1322
|
setTimeout(() => {
|
|
@@ -1290,10 +1324,15 @@ function _ShowPopover(props) {
|
|
|
1290
1324
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
1291
1325
|
}, 0);
|
|
1292
1326
|
},
|
|
1293
|
-
children:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1327
|
+
children: renderVariable({
|
|
1328
|
+
variable: {
|
|
1329
|
+
name: showIfKey,
|
|
1330
|
+
valid: !!isValidWhenKey
|
|
1331
|
+
},
|
|
1332
|
+
fallback: "",
|
|
1333
|
+
from: "bubble-variable",
|
|
1334
|
+
editor
|
|
1335
|
+
})
|
|
1297
1336
|
}
|
|
1298
1337
|
),
|
|
1299
1338
|
isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
@@ -1401,7 +1440,7 @@ function ColumnsWidthConfig(props) {
|
|
|
1401
1440
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { className: "mly-relative", children: [
|
|
1402
1441
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1403
1442
|
"input",
|
|
1404
|
-
{
|
|
1443
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
1405
1444
|
placeholder: "auto",
|
|
1406
1445
|
min: 1,
|
|
1407
1446
|
max: 90,
|
|
@@ -1412,7 +1451,7 @@ function ColumnsWidthConfig(props) {
|
|
|
1412
1451
|
const value2 = e.target.value;
|
|
1413
1452
|
onColumnWidthChange == null ? void 0 : onColumnWidthChange(index, value2);
|
|
1414
1453
|
}
|
|
1415
|
-
}
|
|
1454
|
+
})
|
|
1416
1455
|
),
|
|
1417
1456
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("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: "%" })
|
|
1418
1457
|
] })
|
|
@@ -1647,16 +1686,391 @@ function ColumnsBubbleMenu(props) {
|
|
|
1647
1686
|
var import_react15 = require("react");
|
|
1648
1687
|
var import_lucide_react14 = require("lucide-react");
|
|
1649
1688
|
|
|
1650
|
-
// src/editor/
|
|
1689
|
+
// src/editor/plugins/drag-handle/drag-handle.tsx
|
|
1651
1690
|
var import_react14 = require("react");
|
|
1652
|
-
|
|
1691
|
+
|
|
1692
|
+
// src/editor/plugins/drag-handle/drag-handle-plugin.ts
|
|
1693
|
+
var import_state2 = require("@tiptap/pm/state");
|
|
1694
|
+
var import_tippy2 = __toESM(require("tippy.js"));
|
|
1695
|
+
var import_y_prosemirror = require("y-prosemirror");
|
|
1696
|
+
var import_model2 = require("@tiptap/pm/model");
|
|
1697
|
+
function getSelectionRanges(state, range, depth) {
|
|
1698
|
+
const ranges = [];
|
|
1699
|
+
const root = state.node(0);
|
|
1700
|
+
depth = typeof depth === "number" && depth >= 0 ? depth : state.sameParent(range) ? Math.max(0, state.sharedDepth(range.pos) - 1) : state.sharedDepth(range.pos);
|
|
1701
|
+
const nodeRange = new import_model2.NodeRange(state, range, depth);
|
|
1702
|
+
const startIndex = nodeRange.depth === 0 ? 0 : root.resolve(nodeRange.start).posAtIndex(0);
|
|
1703
|
+
nodeRange.parent.forEach((size, offset) => {
|
|
1704
|
+
const from = startIndex + offset;
|
|
1705
|
+
const to = from + size.nodeSize;
|
|
1706
|
+
if (from < nodeRange.start || from >= nodeRange.end) return;
|
|
1707
|
+
const selectionRange = new import_state2.SelectionRange(
|
|
1708
|
+
root.resolve(from),
|
|
1709
|
+
root.resolve(to)
|
|
1710
|
+
);
|
|
1711
|
+
ranges.push(selectionRange);
|
|
1712
|
+
});
|
|
1713
|
+
return ranges;
|
|
1714
|
+
}
|
|
1715
|
+
var NodeRangeBookmark = class _NodeRangeBookmark {
|
|
1716
|
+
constructor(anchor, head) {
|
|
1717
|
+
this.anchor = anchor;
|
|
1718
|
+
this.head = head;
|
|
1719
|
+
}
|
|
1720
|
+
map(mapping) {
|
|
1721
|
+
return new _NodeRangeBookmark(
|
|
1722
|
+
mapping.map(this.anchor),
|
|
1723
|
+
mapping.map(this.head)
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
resolve(doc) {
|
|
1727
|
+
const e = doc.resolve(this.anchor);
|
|
1728
|
+
const o = doc.resolve(this.head);
|
|
1729
|
+
return new NodeRangeSelection(e, o);
|
|
1730
|
+
}
|
|
1731
|
+
};
|
|
1732
|
+
var NodeRangeSelection = class _NodeRangeSelection extends import_state2.Selection {
|
|
1733
|
+
constructor(t, e, o, s = 1) {
|
|
1734
|
+
const { doc: r } = t;
|
|
1735
|
+
const n = t === e;
|
|
1736
|
+
const i = t.pos === r.content.size && e.pos === r.content.size;
|
|
1737
|
+
const a = n && !i ? r.resolve(e.pos + (s > 0 ? 1 : -1)) : e;
|
|
1738
|
+
const c = n && i ? r.resolve(t.pos - (s > 0 ? 1 : -1)) : t;
|
|
1739
|
+
const d = getSelectionRanges(c.min(a), c.max(a), o);
|
|
1740
|
+
super(
|
|
1741
|
+
a.pos >= t.pos ? d[0].$from : d[d.length - 1].$to,
|
|
1742
|
+
a.pos >= t.pos ? d[d.length - 1].$to : d[0].$from,
|
|
1743
|
+
d
|
|
1744
|
+
);
|
|
1745
|
+
this.depth = o;
|
|
1746
|
+
}
|
|
1747
|
+
get $to() {
|
|
1748
|
+
return this.ranges[this.ranges.length - 1].$to;
|
|
1749
|
+
}
|
|
1750
|
+
eq(other) {
|
|
1751
|
+
return other instanceof _NodeRangeSelection && other.$from.pos === this.$from.pos && other.$to.pos === this.$to.pos;
|
|
1752
|
+
}
|
|
1753
|
+
// @ts-ignore
|
|
1754
|
+
map(doc, mapping) {
|
|
1755
|
+
const o = doc.resolve(mapping.map(this.anchor));
|
|
1756
|
+
const s = doc.resolve(mapping.map(this.head));
|
|
1757
|
+
return new _NodeRangeSelection(o, s);
|
|
1758
|
+
}
|
|
1759
|
+
toJSON() {
|
|
1760
|
+
return { type: "nodeRange", anchor: this.anchor, head: this.head };
|
|
1761
|
+
}
|
|
1762
|
+
get isForwards() {
|
|
1763
|
+
return this.head >= this.anchor;
|
|
1764
|
+
}
|
|
1765
|
+
get isBackwards() {
|
|
1766
|
+
return !this.isForwards;
|
|
1767
|
+
}
|
|
1768
|
+
extendBackwards() {
|
|
1769
|
+
const { doc: t } = this.$from;
|
|
1770
|
+
if (this.isForwards && this.ranges.length > 1) {
|
|
1771
|
+
const t2 = this.ranges.slice(0, -1);
|
|
1772
|
+
const e2 = t2[0].$from;
|
|
1773
|
+
const o2 = t2[t2.length - 1].$to;
|
|
1774
|
+
return new _NodeRangeSelection(e2, o2, this.depth);
|
|
1775
|
+
}
|
|
1776
|
+
const e = this.ranges[0];
|
|
1777
|
+
const o = t.resolve(Math.max(0, e.$from.pos - 1));
|
|
1778
|
+
return new _NodeRangeSelection(this.$anchor, o, this.depth);
|
|
1779
|
+
}
|
|
1780
|
+
extendForwards() {
|
|
1781
|
+
const { doc: t } = this.$from;
|
|
1782
|
+
if (this.isBackwards && this.ranges.length > 1) {
|
|
1783
|
+
const t2 = this.ranges.slice(1);
|
|
1784
|
+
const e2 = t2[0].$from;
|
|
1785
|
+
const o2 = t2[t2.length - 1].$to;
|
|
1786
|
+
return new _NodeRangeSelection(o2, e2, this.depth);
|
|
1787
|
+
}
|
|
1788
|
+
const e = this.ranges[this.ranges.length - 1];
|
|
1789
|
+
const o = t.resolve(Math.min(t.content.size, e.$to.pos + 1));
|
|
1790
|
+
return new _NodeRangeSelection(this.$anchor, o, this.depth);
|
|
1791
|
+
}
|
|
1792
|
+
static fromJSON(doc, json) {
|
|
1793
|
+
return new _NodeRangeSelection(
|
|
1794
|
+
doc.resolve(json.anchor),
|
|
1795
|
+
doc.resolve(json.head)
|
|
1796
|
+
);
|
|
1797
|
+
}
|
|
1798
|
+
static create(doc, anchor, head, depth, bias = 1) {
|
|
1799
|
+
return new this(doc.resolve(anchor), doc.resolve(head), depth, bias);
|
|
1800
|
+
}
|
|
1801
|
+
// @ts-ignore
|
|
1802
|
+
getBookmark() {
|
|
1803
|
+
return new NodeRangeBookmark(this.anchor, this.head);
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
function cloneElement(node) {
|
|
1807
|
+
const clonedNode = node.cloneNode(true);
|
|
1808
|
+
const originalElements = [
|
|
1809
|
+
node,
|
|
1810
|
+
...Array.from(node.getElementsByTagName("*"))
|
|
1811
|
+
];
|
|
1812
|
+
const clonedElements = [
|
|
1813
|
+
clonedNode,
|
|
1814
|
+
...Array.from(clonedNode.getElementsByTagName("*"))
|
|
1815
|
+
];
|
|
1816
|
+
originalElements.forEach((element, index) => {
|
|
1817
|
+
const clonedElement = clonedElements[index];
|
|
1818
|
+
if (clonedElement instanceof HTMLElement && element instanceof HTMLElement) {
|
|
1819
|
+
clonedElement.style.cssText = function(element2) {
|
|
1820
|
+
let styles = "";
|
|
1821
|
+
const computedStyles = getComputedStyle(element2);
|
|
1822
|
+
for (let i = 0; i < computedStyles.length; i += 1) {
|
|
1823
|
+
styles += `${computedStyles[i]}:${computedStyles.getPropertyValue(computedStyles[i])};`;
|
|
1824
|
+
}
|
|
1825
|
+
return styles;
|
|
1826
|
+
}(element);
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1829
|
+
return clonedNode;
|
|
1830
|
+
}
|
|
1831
|
+
function getComputedStyles(node, property) {
|
|
1832
|
+
return window.getComputedStyle(node)[property];
|
|
1833
|
+
}
|
|
1834
|
+
function minMax(value = 0, min = 0, max = 0) {
|
|
1835
|
+
return Math.min(Math.max(value, min), max);
|
|
1836
|
+
}
|
|
1837
|
+
function removeNode(node) {
|
|
1838
|
+
if (node.parentNode !== null && node.parentNode !== void 0) {
|
|
1839
|
+
node.parentNode.removeChild(node);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
var findElementNextToCoords = (options) => {
|
|
1843
|
+
const { x, y, direction, editor } = options;
|
|
1844
|
+
let resultElement = null;
|
|
1845
|
+
let resultNode = null;
|
|
1846
|
+
let d = null;
|
|
1847
|
+
let l = x;
|
|
1848
|
+
for (; null === resultNode && l < window.innerWidth && l > 0; ) {
|
|
1849
|
+
const elements = document.elementsFromPoint(l, y);
|
|
1850
|
+
const index = elements.findIndex(
|
|
1851
|
+
(el) => el.classList.contains("ProseMirror")
|
|
1852
|
+
);
|
|
1853
|
+
const filteredElements = elements.slice(0, index);
|
|
1854
|
+
if (filteredElements.length > 0) {
|
|
1855
|
+
const element = filteredElements[0];
|
|
1856
|
+
resultElement = element;
|
|
1857
|
+
d = editor.view.posAtDOM(element, 0);
|
|
1858
|
+
if (d >= 0) {
|
|
1859
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d - 1, 0));
|
|
1860
|
+
if (resultNode === null || resultNode.isText) {
|
|
1861
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d - 1, 0));
|
|
1862
|
+
}
|
|
1863
|
+
if (!resultNode) {
|
|
1864
|
+
resultNode = editor.state.doc.nodeAt(Math.max(d, 0));
|
|
1865
|
+
}
|
|
1866
|
+
break;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
if (direction === "left") {
|
|
1870
|
+
l -= 1;
|
|
1871
|
+
} else {
|
|
1872
|
+
l += 1;
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
return { resultElement, resultNode, pos: d !== null ? d : null };
|
|
1876
|
+
};
|
|
1877
|
+
function getSelectionRangesNearCursor(e, t) {
|
|
1878
|
+
const { doc: n } = t.view.state, o = findElementNextToCoords({
|
|
1879
|
+
editor: t,
|
|
1880
|
+
x: e.clientX,
|
|
1881
|
+
y: e.clientY,
|
|
1882
|
+
direction: "right"
|
|
1883
|
+
});
|
|
1884
|
+
if (!o.resultNode || null === o.pos) return [];
|
|
1885
|
+
const r = e.clientX, i = function(e2, t2, n2) {
|
|
1886
|
+
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();
|
|
1887
|
+
return { left: minMax(t2, d2.left + o2 + i2, d2.right - r2 - s2), top: n2 };
|
|
1888
|
+
}(t.view, r, e.clientY), s = t.view.posAtCoords(i);
|
|
1889
|
+
if (!s) return [];
|
|
1890
|
+
const { pos: d } = s;
|
|
1891
|
+
if (!n.resolve(d).parent) return [];
|
|
1892
|
+
const a = n.resolve(o.pos), p = n.resolve(o.pos + 1);
|
|
1893
|
+
return getSelectionRanges(a, p, 0);
|
|
1894
|
+
}
|
|
1895
|
+
var getPreviousNodeStartPosition = (e, t) => {
|
|
1896
|
+
const n = e.resolve(t), { depth: o } = n;
|
|
1897
|
+
if (0 === o) return t;
|
|
1898
|
+
return n.pos - n.parentOffset - 1;
|
|
1899
|
+
};
|
|
1900
|
+
var getAncestorNodeAtDepth = (e, t) => {
|
|
1901
|
+
const n = e.nodeAt(t), o = e.resolve(t);
|
|
1902
|
+
let { depth: r } = o, i = n;
|
|
1903
|
+
for (; r > 0; ) {
|
|
1904
|
+
const e2 = o.node(r);
|
|
1905
|
+
r -= 1, 0 === r && (i = e2);
|
|
1906
|
+
}
|
|
1907
|
+
return i;
|
|
1908
|
+
};
|
|
1909
|
+
var getOuterNode = (doc, pos) => {
|
|
1910
|
+
const n = import_y_prosemirror.ySyncPluginKey.getState(doc);
|
|
1911
|
+
return n ? (0, import_y_prosemirror.absolutePositionToRelativePosition)(pos, n.type, n.binding.mapping) : null;
|
|
1912
|
+
};
|
|
1913
|
+
var getOuterNodePos = (e, t) => {
|
|
1914
|
+
let n = t;
|
|
1915
|
+
for (; n && n.parentNode && n.parentNode !== e.dom; ) n = n.parentNode;
|
|
1916
|
+
return n;
|
|
1917
|
+
};
|
|
1918
|
+
var dragHandlePluginDefaultKey = new import_state2.PluginKey("dragHandle");
|
|
1919
|
+
function DragHandlePlugin(options) {
|
|
1920
|
+
const {
|
|
1921
|
+
pluginKey: e = dragHandlePluginDefaultKey,
|
|
1922
|
+
element,
|
|
1923
|
+
editor,
|
|
1924
|
+
tippyOptions,
|
|
1925
|
+
onNodeChange
|
|
1926
|
+
} = options;
|
|
1927
|
+
const container = document.createElement("div");
|
|
1928
|
+
let tippyInstance = null;
|
|
1929
|
+
let x = false;
|
|
1930
|
+
let currentNode = null;
|
|
1931
|
+
let lastNodePos = -1;
|
|
1932
|
+
element.addEventListener("dragstart", (e2) => {
|
|
1933
|
+
const { view } = editor;
|
|
1934
|
+
if (!e2.dataTransfer) return;
|
|
1935
|
+
const { empty, $from, $to } = view.state.selection;
|
|
1936
|
+
const s = getSelectionRangesNearCursor(e2, editor);
|
|
1937
|
+
const d = getSelectionRanges($from, $to, 0);
|
|
1938
|
+
const c = d.some(
|
|
1939
|
+
(e3) => s.find((t) => t.$from === e3.$from && t.$to === e3.$to)
|
|
1940
|
+
);
|
|
1941
|
+
const u = empty || !c ? s : d;
|
|
1942
|
+
if (!u.length) return;
|
|
1943
|
+
const { tr: g } = view.state;
|
|
1944
|
+
const h = document.createElement("div");
|
|
1945
|
+
const y = u[0].$from.pos;
|
|
1946
|
+
const v = u[u.length - 1].$to.pos;
|
|
1947
|
+
const C = NodeRangeSelection.create(view.state.doc, y, v);
|
|
1948
|
+
const E = C.content();
|
|
1949
|
+
u.forEach((e3) => {
|
|
1950
|
+
const t = cloneElement(view == null ? void 0 : view.nodeDOM(e3.$from.pos));
|
|
1951
|
+
h.append(t);
|
|
1952
|
+
});
|
|
1953
|
+
h.style.position = "absolute";
|
|
1954
|
+
h.style.top = "-10000px";
|
|
1955
|
+
document.body.append(h);
|
|
1956
|
+
e2.dataTransfer.clearData();
|
|
1957
|
+
e2.dataTransfer.setDragImage(h, 0, 0);
|
|
1958
|
+
view.dragging = { slice: E, move: true };
|
|
1959
|
+
g.setSelection(C);
|
|
1960
|
+
view.dispatch(g);
|
|
1961
|
+
document.addEventListener("drop", () => removeNode(h), { once: true });
|
|
1962
|
+
setTimeout(() => {
|
|
1963
|
+
element && (element.style.pointerEvents = "none");
|
|
1964
|
+
}, 0);
|
|
1965
|
+
});
|
|
1966
|
+
element.addEventListener("dragend", () => {
|
|
1967
|
+
element && (element.style.pointerEvents = "auto");
|
|
1968
|
+
});
|
|
1969
|
+
return new import_state2.Plugin({
|
|
1970
|
+
key: typeof e === "string" ? new import_state2.PluginKey(e) : e,
|
|
1971
|
+
state: {
|
|
1972
|
+
init: () => ({ locked: false }),
|
|
1973
|
+
apply(e2, t, n, o) {
|
|
1974
|
+
const l = e2.getMeta("lockDragHandle");
|
|
1975
|
+
const a = e2.getMeta("hideDragHandle");
|
|
1976
|
+
if (void 0 !== l && (x = l), a && tippyInstance) {
|
|
1977
|
+
return tippyInstance == null ? void 0 : tippyInstance.hide(), x = false, currentNode = null, lastNodePos = -1, null == onNodeChange || onNodeChange({ editor, node: null, pos: -1 }), t;
|
|
1978
|
+
}
|
|
1979
|
+
if (e2.docChanged && -1 !== lastNodePos && element && tippyInstance) {
|
|
1980
|
+
const t2 = e2.mapping.map(lastNodePos);
|
|
1981
|
+
t2 !== lastNodePos && (lastNodePos = t2, getOuterNode(o, lastNodePos));
|
|
1982
|
+
}
|
|
1983
|
+
return t;
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
view: (e2) => {
|
|
1987
|
+
var t;
|
|
1988
|
+
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 = (0, import_tippy2.default)(e2.dom, __spreadProps(__spreadValues({
|
|
1989
|
+
getReferenceClientRect: null,
|
|
1990
|
+
interactive: true,
|
|
1991
|
+
trigger: "manual",
|
|
1992
|
+
placement: "left-start",
|
|
1993
|
+
hideOnClick: false,
|
|
1994
|
+
duration: 100,
|
|
1995
|
+
zIndex: 10,
|
|
1996
|
+
popperOptions: {
|
|
1997
|
+
modifiers: [
|
|
1998
|
+
{ name: "flip", enabled: false },
|
|
1999
|
+
{
|
|
2000
|
+
name: "preventOverflow",
|
|
2001
|
+
options: { rootBoundary: "document", mainAxis: false }
|
|
2002
|
+
}
|
|
2003
|
+
]
|
|
2004
|
+
}
|
|
2005
|
+
}, tippyOptions), {
|
|
2006
|
+
appendTo: container,
|
|
2007
|
+
content: element
|
|
2008
|
+
})), {
|
|
2009
|
+
update(t2, n) {
|
|
2010
|
+
if (!element || !tippyInstance) return;
|
|
2011
|
+
if (element.draggable = !x, e2.state.doc.eq(n.doc) || -1 === lastNodePos)
|
|
2012
|
+
return;
|
|
2013
|
+
let o = e2.nodeDOM(lastNodePos);
|
|
2014
|
+
if (o = getOuterNodePos(e2, o), o === e2.dom) return;
|
|
2015
|
+
if (1 !== (null == o ? void 0 : o.nodeType)) return;
|
|
2016
|
+
const r = e2.posAtDOM(o, 0), s = getAncestorNodeAtDepth(editor.state.doc, r);
|
|
2017
|
+
if (s !== currentNode) {
|
|
2018
|
+
const t3 = getPreviousNodeStartPosition(editor.state.doc, r);
|
|
2019
|
+
currentNode = s, lastNodePos = t3, getOuterNode(e2.state, lastNodePos), null == onNodeChange || onNodeChange({
|
|
2020
|
+
editor,
|
|
2021
|
+
node: currentNode,
|
|
2022
|
+
pos: lastNodePos
|
|
2023
|
+
}), tippyInstance.setProps({
|
|
2024
|
+
getReferenceClientRect: () => o == null ? void 0 : o.getBoundingClientRect()
|
|
2025
|
+
}), tippyInstance.show();
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
destroy() {
|
|
2029
|
+
null == tippyInstance || tippyInstance.destroy(), element && removeNode(container);
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
},
|
|
2033
|
+
props: {
|
|
2034
|
+
handleDOMEvents: {
|
|
2035
|
+
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),
|
|
2036
|
+
mousemove(e2, t) {
|
|
2037
|
+
if (!element || !tippyInstance || x) return false;
|
|
2038
|
+
const n = findElementNextToCoords({
|
|
2039
|
+
x: t.clientX,
|
|
2040
|
+
y: t.clientY,
|
|
2041
|
+
direction: "right",
|
|
2042
|
+
editor
|
|
2043
|
+
});
|
|
2044
|
+
if (!n.resultElement) return false;
|
|
2045
|
+
let o = n.resultElement;
|
|
2046
|
+
if (o = getOuterNodePos(e2, o), o === e2.dom) return false;
|
|
2047
|
+
if (1 !== (null == o ? void 0 : o.nodeType)) return false;
|
|
2048
|
+
const r = e2.posAtDOM(o, 0), s = getAncestorNodeAtDepth(editor.state.doc, r);
|
|
2049
|
+
if (s !== currentNode) {
|
|
2050
|
+
const t2 = getPreviousNodeStartPosition(editor.state.doc, r);
|
|
2051
|
+
currentNode = s, lastNodePos = t2, getOuterNode(e2.state, lastNodePos), null == onNodeChange || onNodeChange({
|
|
2052
|
+
editor,
|
|
2053
|
+
node: currentNode,
|
|
2054
|
+
pos: lastNodePos
|
|
2055
|
+
}), tippyInstance.setProps({
|
|
2056
|
+
getReferenceClientRect: () => o.getBoundingClientRect()
|
|
2057
|
+
}), tippyInstance.show();
|
|
2058
|
+
}
|
|
2059
|
+
return false;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
// src/editor/plugins/drag-handle/drag-handle.tsx
|
|
1653
2067
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1654
2068
|
function DragHandle(props) {
|
|
1655
2069
|
const {
|
|
1656
2070
|
className = "drag-handle",
|
|
1657
2071
|
children,
|
|
1658
2072
|
editor,
|
|
1659
|
-
pluginKey =
|
|
2073
|
+
pluginKey = dragHandlePluginDefaultKey,
|
|
1660
2074
|
onNodeChange,
|
|
1661
2075
|
tippyOptions = {}
|
|
1662
2076
|
} = props;
|
|
@@ -1674,7 +2088,7 @@ function DragHandle(props) {
|
|
|
1674
2088
|
};
|
|
1675
2089
|
}
|
|
1676
2090
|
if (!pluginRef.current) {
|
|
1677
|
-
pluginRef.current =
|
|
2091
|
+
pluginRef.current = DragHandlePlugin({
|
|
1678
2092
|
editor,
|
|
1679
2093
|
element,
|
|
1680
2094
|
pluginKey,
|
|
@@ -1966,7 +2380,7 @@ var EditorMenuBar = (props) => {
|
|
|
1966
2380
|
var import_react18 = require("@tiptap/react");
|
|
1967
2381
|
var import_lucide_react16 = require("lucide-react");
|
|
1968
2382
|
var import_react19 = require("react");
|
|
1969
|
-
var
|
|
2383
|
+
var import_tippy3 = require("tippy.js");
|
|
1970
2384
|
|
|
1971
2385
|
// src/editor/components/for-menu/use-for-state.ts
|
|
1972
2386
|
var import_react17 = require("@tiptap/react");
|
|
@@ -2020,13 +2434,13 @@ function ForBubbleMenu(props) {
|
|
|
2020
2434
|
},
|
|
2021
2435
|
getReferenceClientRect,
|
|
2022
2436
|
appendTo: () => appendTo == null ? void 0 : appendTo.current,
|
|
2023
|
-
plugins: [
|
|
2437
|
+
plugins: [import_tippy3.sticky],
|
|
2024
2438
|
sticky: "popper",
|
|
2025
2439
|
maxWidth: "auto"
|
|
2026
2440
|
},
|
|
2027
2441
|
pluginKey: "forBubbleMenu"
|
|
2028
2442
|
});
|
|
2029
|
-
const { variables = [] } = useMailyContext();
|
|
2443
|
+
const { variables = [], renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
2030
2444
|
const inputRef = (0, import_react19.useRef)(null);
|
|
2031
2445
|
const [isUpdatingKey, setIsUpdatingKey] = (0, import_react19.useState)(false);
|
|
2032
2446
|
const eachKey = (state == null ? void 0 : state.each) || "";
|
|
@@ -2037,20 +2451,35 @@ function ForBubbleMenu(props) {
|
|
|
2037
2451
|
from: "for-variable"
|
|
2038
2452
|
}).map((variable) => variable.name);
|
|
2039
2453
|
}, [variables, eachKey, editor]);
|
|
2040
|
-
const isValidEachKey = eachKey
|
|
2454
|
+
const isValidEachKey = eachKey;
|
|
2041
2455
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2042
2456
|
import_react18.BubbleMenu,
|
|
2043
2457
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
2044
2458
|
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",
|
|
2045
2459
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TooltipProvider, { children: [
|
|
2046
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
2047
|
-
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mly-flex mly-items-center mly-gap-1.5 mly-px-1.5 mly-text-sm mly-leading-none", children: [
|
|
2461
|
+
"For",
|
|
2462
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tooltip, { children: [
|
|
2463
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2464
|
+
import_lucide_react16.InfoIcon,
|
|
2465
|
+
{
|
|
2466
|
+
className: cn("mly-size-3 mly-stroke-[2.5] mly-text-gray-500")
|
|
2467
|
+
}
|
|
2468
|
+
) }),
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2470
|
+
TooltipContent,
|
|
2471
|
+
{
|
|
2472
|
+
sideOffset: 14,
|
|
2473
|
+
className: "mly-max-w-[260px]",
|
|
2474
|
+
align: "start",
|
|
2475
|
+
children: "Ensure the selected variable is iterable, such as an array of objects."
|
|
2476
|
+
}
|
|
2477
|
+
)
|
|
2478
|
+
] })
|
|
2479
|
+
] }),
|
|
2480
|
+
!isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2048
2481
|
"button",
|
|
2049
2482
|
{
|
|
2050
|
-
className: cn(
|
|
2051
|
-
"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",
|
|
2052
|
-
!isValidEachKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
2053
|
-
),
|
|
2054
2483
|
onClick: () => {
|
|
2055
2484
|
setIsUpdatingKey(true);
|
|
2056
2485
|
setTimeout(() => {
|
|
@@ -2058,10 +2487,15 @@ function ForBubbleMenu(props) {
|
|
|
2058
2487
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
2059
2488
|
}, 0);
|
|
2060
2489
|
},
|
|
2061
|
-
children:
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2490
|
+
children: renderVariable({
|
|
2491
|
+
variable: {
|
|
2492
|
+
name: state == null ? void 0 : state.each,
|
|
2493
|
+
valid: isValidEachKey
|
|
2494
|
+
},
|
|
2495
|
+
fallback: "",
|
|
2496
|
+
from: "bubble-variable",
|
|
2497
|
+
editor
|
|
2498
|
+
})
|
|
2065
2499
|
}
|
|
2066
2500
|
),
|
|
2067
2501
|
isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -2079,6 +2513,7 @@ function ForBubbleMenu(props) {
|
|
|
2079
2513
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2080
2514
|
InputAutocomplete,
|
|
2081
2515
|
{
|
|
2516
|
+
placeholder: "ie. payload.items",
|
|
2082
2517
|
value: (state == null ? void 0 : state.each) || "",
|
|
2083
2518
|
onValueChange: (value) => {
|
|
2084
2519
|
editor.commands.updateFor({
|
|
@@ -2187,7 +2622,8 @@ function LinkInputPopover(props) {
|
|
|
2187
2622
|
const linkInputRef = (0, import_react20.useRef)(null);
|
|
2188
2623
|
const {
|
|
2189
2624
|
variables = [],
|
|
2190
|
-
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR
|
|
2625
|
+
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
2626
|
+
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
2191
2627
|
} = useMailyContext();
|
|
2192
2628
|
const autoCompleteOptions = (0, import_react21.useMemo)(() => {
|
|
2193
2629
|
const withoutTrigger = defaultUrlWithoutProtocol.replace(
|
|
@@ -2242,10 +2678,9 @@ function LinkInputPopover(props) {
|
|
|
2242
2678
|
setIsOpen(false);
|
|
2243
2679
|
},
|
|
2244
2680
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
2245
|
-
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mly-flex mly-h-8 mly-items-center mly-rounded-lg mly-border mly-border-gray-300 mly-bg-white mly-px-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime26.
|
|
2681
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mly-flex mly-h-8 mly-items-center mly-rounded-lg mly-border mly-border-gray-300 mly-bg-white mly-px-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2246
2682
|
"button",
|
|
2247
2683
|
{
|
|
2248
|
-
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",
|
|
2249
2684
|
onClick: () => {
|
|
2250
2685
|
setIsEditing(true);
|
|
2251
2686
|
setTimeout(() => {
|
|
@@ -2253,10 +2688,15 @@ function LinkInputPopover(props) {
|
|
|
2253
2688
|
(_a2 = linkInputRef.current) == null ? void 0 : _a2.focus();
|
|
2254
2689
|
}, 0);
|
|
2255
2690
|
},
|
|
2256
|
-
children:
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2691
|
+
children: renderVariable({
|
|
2692
|
+
variable: {
|
|
2693
|
+
name: defaultUrlWithoutProtocol,
|
|
2694
|
+
valid: true
|
|
2695
|
+
},
|
|
2696
|
+
fallback: "",
|
|
2697
|
+
from: "bubble-variable",
|
|
2698
|
+
editor
|
|
2699
|
+
})
|
|
2260
2700
|
}
|
|
2261
2701
|
) }),
|
|
2262
2702
|
isEditing && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
@@ -2336,12 +2776,12 @@ function ImageSize(props) {
|
|
|
2336
2776
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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" }),
|
|
2337
2777
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2338
2778
|
"input",
|
|
2339
|
-
{
|
|
2779
|
+
__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
2340
2780
|
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",
|
|
2341
2781
|
type: "number",
|
|
2342
2782
|
value,
|
|
2343
2783
|
onChange: (e) => onValueChange(e.target.value)
|
|
2344
|
-
}
|
|
2784
|
+
})
|
|
2345
2785
|
),
|
|
2346
2786
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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" })
|
|
2347
2787
|
] });
|
|
@@ -3088,7 +3528,7 @@ var useImageState = (editor) => {
|
|
|
3088
3528
|
};
|
|
3089
3529
|
|
|
3090
3530
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
3091
|
-
var
|
|
3531
|
+
var import_tippy4 = require("tippy.js");
|
|
3092
3532
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3093
3533
|
function ImageBubbleMenu(props) {
|
|
3094
3534
|
var _a, _b, _c, _d;
|
|
@@ -3105,7 +3545,7 @@ function ImageBubbleMenu(props) {
|
|
|
3105
3545
|
popperOptions: {
|
|
3106
3546
|
modifiers: [{ name: "flip", enabled: false }]
|
|
3107
3547
|
},
|
|
3108
|
-
plugins: [
|
|
3548
|
+
plugins: [import_tippy4.sticky],
|
|
3109
3549
|
sticky: "popper",
|
|
3110
3550
|
maxWidth: "100%"
|
|
3111
3551
|
}
|
|
@@ -3234,7 +3674,7 @@ function ImageBubbleMenu(props) {
|
|
|
3234
3674
|
var import_react32 = require("@tiptap/react");
|
|
3235
3675
|
var import_lucide_react21 = require("lucide-react");
|
|
3236
3676
|
var import_react33 = require("react");
|
|
3237
|
-
var
|
|
3677
|
+
var import_tippy5 = require("tippy.js");
|
|
3238
3678
|
|
|
3239
3679
|
// src/editor/components/icons/border-color.tsx
|
|
3240
3680
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
@@ -3325,7 +3765,9 @@ function ColorPicker(props) {
|
|
|
3325
3765
|
backgroundColor,
|
|
3326
3766
|
tooltip,
|
|
3327
3767
|
className,
|
|
3328
|
-
children
|
|
3768
|
+
children,
|
|
3769
|
+
onClose,
|
|
3770
|
+
suggestedColors = []
|
|
3329
3771
|
} = props;
|
|
3330
3772
|
const handleColorChange = (color2) => {
|
|
3331
3773
|
queueMicrotask(() => {
|
|
@@ -3353,39 +3795,73 @@ function ColorPicker(props) {
|
|
|
3353
3795
|
)
|
|
3354
3796
|
}
|
|
3355
3797
|
) });
|
|
3356
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3799
|
+
Popover,
|
|
3800
|
+
{
|
|
3801
|
+
onOpenChange: (open) => {
|
|
3802
|
+
if (!open) {
|
|
3803
|
+
onClose == null ? void 0 : onClose(color);
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
children: [
|
|
3807
|
+
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Tooltip, { children: [
|
|
3808
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
3809
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
3810
|
+
] }) : popoverButton,
|
|
3811
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3812
|
+
PopoverContent,
|
|
3813
|
+
{
|
|
3814
|
+
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
3815
|
+
sideOffset: 8,
|
|
3816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
3817
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3818
|
+
import_react_colorful.HexColorPicker,
|
|
3819
|
+
{
|
|
3820
|
+
color,
|
|
3821
|
+
onChange: handleColorChange,
|
|
3822
|
+
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
3823
|
+
}
|
|
3824
|
+
),
|
|
3825
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3826
|
+
import_react_colorful.HexColorInput,
|
|
3827
|
+
{
|
|
3828
|
+
alpha: true,
|
|
3829
|
+
color,
|
|
3830
|
+
onChange: handleColorChange,
|
|
3831
|
+
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",
|
|
3832
|
+
prefixed: true
|
|
3833
|
+
}
|
|
3834
|
+
),
|
|
3835
|
+
suggestedColors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
3836
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "-mly-mx-4 mly-my-4 mly-h-px mly-bg-gray-200" }),
|
|
3837
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { className: "mly-text-xs mly-text-gray-500", children: "Recently used" }),
|
|
3838
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mly-mt-2 mly-flex mly-flex-wrap mly-gap-0.5", children: suggestedColors.map((suggestedColor) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3839
|
+
BaseButton,
|
|
3840
|
+
{
|
|
3841
|
+
variant: "ghost",
|
|
3842
|
+
size: "sm",
|
|
3843
|
+
className: "!mly-size-7 mly-shrink-0",
|
|
3844
|
+
type: "button",
|
|
3845
|
+
onClick: () => handleColorChange(suggestedColor),
|
|
3846
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3847
|
+
"div",
|
|
3848
|
+
{
|
|
3849
|
+
className: "mly-h-4 mly-w-4 mly-shrink-0 mly-rounded",
|
|
3850
|
+
style: {
|
|
3851
|
+
backgroundColor: suggestedColor
|
|
3852
|
+
}
|
|
3853
|
+
}
|
|
3854
|
+
)
|
|
3855
|
+
},
|
|
3856
|
+
suggestedColor
|
|
3857
|
+
)) })
|
|
3858
|
+
] })
|
|
3859
|
+
] })
|
|
3860
|
+
}
|
|
3861
|
+
)
|
|
3862
|
+
]
|
|
3863
|
+
}
|
|
3864
|
+
);
|
|
3389
3865
|
}
|
|
3390
3866
|
|
|
3391
3867
|
// src/editor/components/section-menu/use-section-state.tsx
|
|
@@ -3451,7 +3927,7 @@ function SectionBubbleMenu(props) {
|
|
|
3451
3927
|
},
|
|
3452
3928
|
getReferenceClientRect,
|
|
3453
3929
|
appendTo: () => appendTo == null ? void 0 : appendTo.current,
|
|
3454
|
-
plugins: [
|
|
3930
|
+
plugins: [import_tippy5.sticky],
|
|
3455
3931
|
sticky: "popper",
|
|
3456
3932
|
maxWidth: "auto"
|
|
3457
3933
|
},
|
|
@@ -3809,11 +4285,11 @@ function SpacerBubbleMenu(props) {
|
|
|
3809
4285
|
}
|
|
3810
4286
|
});
|
|
3811
4287
|
const state = useSpacerState(editor);
|
|
3812
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.
|
|
4288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3813
4289
|
import_react35.BubbleMenu,
|
|
3814
4290
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
3815
4291
|
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",
|
|
3816
|
-
children: [
|
|
4292
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(TooltipProvider, { children: [
|
|
3817
4293
|
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3818
4294
|
BubbleMenuButton,
|
|
3819
4295
|
__spreadValues({
|
|
@@ -3834,14 +4310,14 @@ function SpacerBubbleMenu(props) {
|
|
|
3834
4310
|
editor
|
|
3835
4311
|
}
|
|
3836
4312
|
)
|
|
3837
|
-
]
|
|
4313
|
+
] })
|
|
3838
4314
|
})
|
|
3839
4315
|
);
|
|
3840
4316
|
}
|
|
3841
4317
|
|
|
3842
4318
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
3843
|
-
var
|
|
3844
|
-
var
|
|
4319
|
+
var import_react50 = require("@tiptap/react");
|
|
4320
|
+
var import_lucide_react25 = require("lucide-react");
|
|
3845
4321
|
|
|
3846
4322
|
// src/editor/components/text-menu/use-text-menu-state.tsx
|
|
3847
4323
|
var import_react36 = require("@tiptap/react");
|
|
@@ -3913,7 +4389,7 @@ var Input = React5.forwardRef(
|
|
|
3913
4389
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
3914
4390
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3915
4391
|
"input",
|
|
3916
|
-
__spreadValues({
|
|
4392
|
+
__spreadValues(__spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
|
|
3917
4393
|
type,
|
|
3918
4394
|
className: cn(
|
|
3919
4395
|
"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",
|
|
@@ -3921,7 +4397,7 @@ var Input = React5.forwardRef(
|
|
|
3921
4397
|
className
|
|
3922
4398
|
),
|
|
3923
4399
|
ref
|
|
3924
|
-
}, props)
|
|
4400
|
+
}), props)
|
|
3925
4401
|
);
|
|
3926
4402
|
}
|
|
3927
4403
|
);
|
|
@@ -4200,7 +4676,6 @@ var import_react43 = require("@tiptap/react");
|
|
|
4200
4676
|
var import_react42 = require("@tiptap/react");
|
|
4201
4677
|
|
|
4202
4678
|
// src/editor/nodes/button/button-label-input.tsx
|
|
4203
|
-
var import_lucide_react22 = require("lucide-react");
|
|
4204
4679
|
var import_react39 = require("react");
|
|
4205
4680
|
var import_react40 = require("react");
|
|
4206
4681
|
var import_react41 = require("react");
|
|
@@ -4211,7 +4686,8 @@ function ButtonLabelInput(props) {
|
|
|
4211
4686
|
const [isEditing, setIsEditing] = (0, import_react40.useState)(!isVariable);
|
|
4212
4687
|
const {
|
|
4213
4688
|
variables = [],
|
|
4214
|
-
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR
|
|
4689
|
+
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
4690
|
+
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
4215
4691
|
} = useMailyContext();
|
|
4216
4692
|
const autoCompleteOptions = (0, import_react39.useMemo)(() => {
|
|
4217
4693
|
const withoutTrigger = value.replace(
|
|
@@ -4225,10 +4701,9 @@ function ButtonLabelInput(props) {
|
|
|
4225
4701
|
}).map((variable) => variable.name);
|
|
4226
4702
|
}, [variables, value, editor]);
|
|
4227
4703
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
4228
|
-
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime40.
|
|
4704
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4229
4705
|
"button",
|
|
4230
4706
|
{
|
|
4231
|
-
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",
|
|
4232
4707
|
onClick: () => {
|
|
4233
4708
|
setIsEditing(true);
|
|
4234
4709
|
setTimeout(() => {
|
|
@@ -4236,10 +4711,15 @@ function ButtonLabelInput(props) {
|
|
|
4236
4711
|
(_a = linkInputRef.current) == null ? void 0 : _a.focus();
|
|
4237
4712
|
}, 0);
|
|
4238
4713
|
},
|
|
4239
|
-
children:
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4714
|
+
children: renderVariable({
|
|
4715
|
+
variable: {
|
|
4716
|
+
name: value,
|
|
4717
|
+
valid: true
|
|
4718
|
+
},
|
|
4719
|
+
fallback: "",
|
|
4720
|
+
from: "bubble-variable",
|
|
4721
|
+
editor
|
|
4722
|
+
})
|
|
4243
4723
|
}
|
|
4244
4724
|
),
|
|
4245
4725
|
isEditing && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
@@ -4283,6 +4763,7 @@ function ButtonView(props) {
|
|
|
4283
4763
|
showIfKey = "",
|
|
4284
4764
|
isUrlVariable
|
|
4285
4765
|
} = node.attrs;
|
|
4766
|
+
const { renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION } = useMailyContext();
|
|
4286
4767
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4287
4768
|
import_react42.NodeViewWrapper,
|
|
4288
4769
|
{
|
|
@@ -4312,14 +4793,22 @@ function ButtonView(props) {
|
|
|
4312
4793
|
color: textColor,
|
|
4313
4794
|
borderWidth: 2,
|
|
4314
4795
|
borderStyle: "solid",
|
|
4315
|
-
borderColor: buttonColor
|
|
4796
|
+
borderColor: buttonColor,
|
|
4797
|
+
// decrease the border color opacity to 80%
|
|
4798
|
+
// so that it's not too prominent
|
|
4799
|
+
"--button-var-border-color": `${textColor}80`
|
|
4316
4800
|
},
|
|
4317
4801
|
onClick: (e) => {
|
|
4318
4802
|
e.preventDefault();
|
|
4319
4803
|
const pos = getPos();
|
|
4320
4804
|
editor.commands.setNodeSelection(pos);
|
|
4321
4805
|
},
|
|
4322
|
-
children:
|
|
4806
|
+
children: isTextVariable ? renderVariable({
|
|
4807
|
+
variable: { name: text2, valid: true },
|
|
4808
|
+
fallback: text2,
|
|
4809
|
+
from: "button-variable",
|
|
4810
|
+
editor
|
|
4811
|
+
}) : text2
|
|
4323
4812
|
}
|
|
4324
4813
|
) }) }),
|
|
4325
4814
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
@@ -4691,10 +5180,10 @@ var ButtonExtension = import_core9.Node.create({
|
|
|
4691
5180
|
|
|
4692
5181
|
// src/editor/nodes/variable/variable.ts
|
|
4693
5182
|
var import_core10 = require("@tiptap/core");
|
|
4694
|
-
var
|
|
5183
|
+
var import_state3 = require("@tiptap/pm/state");
|
|
4695
5184
|
var import_react44 = require("@tiptap/react");
|
|
4696
5185
|
var import_suggestion = __toESM(require("@tiptap/suggestion"));
|
|
4697
|
-
var VariablePluginKey = new
|
|
5186
|
+
var VariablePluginKey = new import_state3.PluginKey("variable");
|
|
4698
5187
|
var VariableExtension = import_core10.Node.create({
|
|
4699
5188
|
name: "variable",
|
|
4700
5189
|
group: "inline",
|
|
@@ -4703,7 +5192,8 @@ var VariableExtension = import_core10.Node.create({
|
|
|
4703
5192
|
atom: true,
|
|
4704
5193
|
addOptions() {
|
|
4705
5194
|
return {
|
|
4706
|
-
|
|
5195
|
+
variables: [],
|
|
5196
|
+
triggerChar: "@",
|
|
4707
5197
|
renderLabel({ options, node }) {
|
|
4708
5198
|
var _a;
|
|
4709
5199
|
return `${(_a = node.attrs.label) != null ? _a : node.attrs.id}`;
|
|
@@ -4799,11 +5289,7 @@ var VariableExtension = import_core10.Node.create({
|
|
|
4799
5289
|
renderHTML({ node, HTMLAttributes: HTMLAttributes2 }) {
|
|
4800
5290
|
return [
|
|
4801
5291
|
"div",
|
|
4802
|
-
(0, import_core10.mergeAttributes)(
|
|
4803
|
-
{ "data-type": this.name },
|
|
4804
|
-
this.options.HTMLAttributes,
|
|
4805
|
-
HTMLAttributes2
|
|
4806
|
-
),
|
|
5292
|
+
(0, import_core10.mergeAttributes)({ "data-type": this.name }, HTMLAttributes2),
|
|
4807
5293
|
this.options.renderLabel({
|
|
4808
5294
|
options: this.options,
|
|
4809
5295
|
node
|
|
@@ -5083,7 +5569,7 @@ var import_react47 = require("@tiptap/react");
|
|
|
5083
5569
|
|
|
5084
5570
|
// src/editor/nodes/for/for-view.tsx
|
|
5085
5571
|
var import_react46 = require("@tiptap/react");
|
|
5086
|
-
var
|
|
5572
|
+
var import_lucide_react22 = require("lucide-react");
|
|
5087
5573
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5088
5574
|
function ForView(props) {
|
|
5089
5575
|
const { editor, getPos } = props;
|
|
@@ -5107,7 +5593,7 @@ function ForView(props) {
|
|
|
5107
5593
|
editor.commands.setNodeSelection(getPos());
|
|
5108
5594
|
},
|
|
5109
5595
|
children: [
|
|
5110
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5596
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.Repeat2, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
|
|
5111
5597
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
|
|
5112
5598
|
]
|
|
5113
5599
|
}
|
|
@@ -5199,48 +5685,204 @@ var ForExtension = import_core13.Node.create({
|
|
|
5199
5685
|
}
|
|
5200
5686
|
});
|
|
5201
5687
|
|
|
5202
|
-
// src/editor/components/text-menu/
|
|
5688
|
+
// src/editor/components/text-menu/turn-into-block.tsx
|
|
5689
|
+
var import_lucide_react23 = require("lucide-react");
|
|
5690
|
+
var import_react48 = require("react");
|
|
5203
5691
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5692
|
+
var isOption = (option) => option.type === "option";
|
|
5693
|
+
var isCategory = (option) => option.type === "category";
|
|
5694
|
+
function TurnIntoBlock(props) {
|
|
5695
|
+
const { options } = props;
|
|
5696
|
+
const activeItem = (0, import_react48.useMemo)(
|
|
5697
|
+
() => options.find((option) => option.type === "option" && option.isActive()),
|
|
5698
|
+
[options]
|
|
5699
|
+
);
|
|
5700
|
+
const { icon: ActiveIcon = import_lucide_react23.PilcrowIcon } = activeItem || {};
|
|
5701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Popover, { children: [
|
|
5702
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Tooltip, { children: [
|
|
5703
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5704
|
+
PopoverTrigger,
|
|
5705
|
+
{
|
|
5706
|
+
className: cn(
|
|
5707
|
+
"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"
|
|
5708
|
+
),
|
|
5709
|
+
children: [
|
|
5710
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ActiveIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" }),
|
|
5711
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react23.ChevronDownIcon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5]" })
|
|
5712
|
+
]
|
|
5713
|
+
}
|
|
5714
|
+
) }),
|
|
5715
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipContent, { sideOffset: 8, children: "Turn into" })
|
|
5716
|
+
] }),
|
|
5717
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5718
|
+
PopoverContent,
|
|
5719
|
+
{
|
|
5720
|
+
align: "start",
|
|
5721
|
+
side: "bottom",
|
|
5722
|
+
sideOffset: 8,
|
|
5723
|
+
className: "mly-flex mly-w-[160px] mly-flex-col mly-rounded-md mly-p-1",
|
|
5724
|
+
children: options.map((option, index) => {
|
|
5725
|
+
if (isOption(option)) {
|
|
5726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5727
|
+
BaseButton,
|
|
5728
|
+
{
|
|
5729
|
+
onClick: option.onClick,
|
|
5730
|
+
variant: "ghost",
|
|
5731
|
+
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",
|
|
5732
|
+
children: [
|
|
5733
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(option.icon, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
5734
|
+
option.label
|
|
5735
|
+
]
|
|
5736
|
+
},
|
|
5737
|
+
option.id
|
|
5738
|
+
);
|
|
5739
|
+
} else if (isCategory(option)) {
|
|
5740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5741
|
+
"label",
|
|
5742
|
+
{
|
|
5743
|
+
className: cn(
|
|
5744
|
+
"mly-px-2 mly-text-xs mly-font-medium mly-text-midnight-gray/60",
|
|
5745
|
+
index === 0 ? "mly-mb-2 mly-mt-1" : "mly-my-2"
|
|
5746
|
+
),
|
|
5747
|
+
children: option.label
|
|
5748
|
+
},
|
|
5749
|
+
option.id
|
|
5750
|
+
);
|
|
5751
|
+
}
|
|
5752
|
+
})
|
|
5753
|
+
}
|
|
5754
|
+
)
|
|
5755
|
+
] });
|
|
5756
|
+
}
|
|
5757
|
+
|
|
5758
|
+
// src/editor/components/text-menu/use-turn-into-block-options.tsx
|
|
5759
|
+
var import_react49 = require("@tiptap/react");
|
|
5760
|
+
var import_lucide_react24 = require("lucide-react");
|
|
5761
|
+
function useTurnIntoBlockOptions(editor) {
|
|
5762
|
+
return (0, import_react49.useEditorState)({
|
|
5763
|
+
editor,
|
|
5764
|
+
selector: ({ editor: editor2 }) => [
|
|
5765
|
+
{
|
|
5766
|
+
type: "category",
|
|
5767
|
+
label: "Hierarchy",
|
|
5768
|
+
id: "hierarchy"
|
|
5769
|
+
},
|
|
5770
|
+
{
|
|
5771
|
+
icon: import_lucide_react24.PilcrowIcon,
|
|
5772
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setParagraph().run(),
|
|
5773
|
+
id: "paragraph",
|
|
5774
|
+
disabled: () => !editor2.can().setParagraph(),
|
|
5775
|
+
isActive: () => editor2.isActive("paragraph") && !editor2.isActive("orderedList") && !editor2.isActive("bulletList") && !editor2.isActive("taskList"),
|
|
5776
|
+
label: "Paragraph",
|
|
5777
|
+
type: "option"
|
|
5778
|
+
},
|
|
5779
|
+
{
|
|
5780
|
+
icon: import_lucide_react24.Heading1Icon,
|
|
5781
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 1 }).run(),
|
|
5782
|
+
id: "heading1",
|
|
5783
|
+
disabled: () => !editor2.can().setHeading({ level: 1 }),
|
|
5784
|
+
isActive: () => editor2.isActive("heading", { level: 1 }),
|
|
5785
|
+
label: "Heading 1",
|
|
5786
|
+
type: "option"
|
|
5787
|
+
},
|
|
5788
|
+
{
|
|
5789
|
+
icon: import_lucide_react24.Heading2Icon,
|
|
5790
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 2 }).run(),
|
|
5791
|
+
id: "heading2",
|
|
5792
|
+
disabled: () => !editor2.can().setHeading({ level: 2 }),
|
|
5793
|
+
isActive: () => editor2.isActive("heading", { level: 2 }),
|
|
5794
|
+
label: "Heading 2",
|
|
5795
|
+
type: "option"
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
icon: import_lucide_react24.Heading3Icon,
|
|
5799
|
+
onClick: () => editor2.chain().focus().liftListItem("listItem").setHeading({ level: 3 }).run(),
|
|
5800
|
+
id: "heading3",
|
|
5801
|
+
disabled: () => !editor2.can().setHeading({ level: 3 }),
|
|
5802
|
+
isActive: () => editor2.isActive("heading", { level: 3 }),
|
|
5803
|
+
label: "Heading 3",
|
|
5804
|
+
type: "option"
|
|
5805
|
+
},
|
|
5806
|
+
{
|
|
5807
|
+
id: "footer",
|
|
5808
|
+
type: "option",
|
|
5809
|
+
label: "Footer",
|
|
5810
|
+
icon: import_lucide_react24.FootprintsIcon,
|
|
5811
|
+
onClick: () => {
|
|
5812
|
+
editor2.chain().focus().liftListItem("listItem").setFooter().run();
|
|
5813
|
+
},
|
|
5814
|
+
disabled: () => !editor2.can().setFooter(),
|
|
5815
|
+
isActive: () => editor2.isActive("footer")
|
|
5816
|
+
},
|
|
5817
|
+
{
|
|
5818
|
+
type: "category",
|
|
5819
|
+
label: "Lists",
|
|
5820
|
+
id: "lists"
|
|
5821
|
+
},
|
|
5822
|
+
{
|
|
5823
|
+
icon: import_lucide_react24.ListIcon,
|
|
5824
|
+
onClick: () => editor2.chain().focus().toggleBulletList().run(),
|
|
5825
|
+
id: "bulletList",
|
|
5826
|
+
disabled: () => !editor2.can().toggleBulletList(),
|
|
5827
|
+
isActive: () => editor2.isActive("bulletList"),
|
|
5828
|
+
label: "Bullet list",
|
|
5829
|
+
type: "option"
|
|
5830
|
+
},
|
|
5831
|
+
{
|
|
5832
|
+
icon: import_lucide_react24.ListOrderedIcon,
|
|
5833
|
+
onClick: () => editor2.chain().focus().toggleOrderedList().run(),
|
|
5834
|
+
id: "orderedList",
|
|
5835
|
+
disabled: () => !editor2.can().toggleOrderedList(),
|
|
5836
|
+
isActive: () => editor2.isActive("orderedList"),
|
|
5837
|
+
label: "Numbered list",
|
|
5838
|
+
type: "option"
|
|
5839
|
+
}
|
|
5840
|
+
]
|
|
5841
|
+
});
|
|
5842
|
+
}
|
|
5843
|
+
|
|
5844
|
+
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
5845
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5846
|
+
function TextBubbleMenu(props) {
|
|
5847
|
+
var _a, _b, _c, _d;
|
|
5848
|
+
const { editor, appendTo } = props;
|
|
5849
|
+
if (!editor) {
|
|
5850
|
+
return null;
|
|
5851
|
+
}
|
|
5852
|
+
const items = [
|
|
5853
|
+
{
|
|
5854
|
+
name: "bold",
|
|
5855
|
+
isActive: () => editor == null ? void 0 : editor.isActive("bold"),
|
|
5856
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
5857
|
+
icon: import_lucide_react25.BoldIcon,
|
|
5858
|
+
tooltip: "Bold"
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
name: "italic",
|
|
5862
|
+
isActive: () => editor == null ? void 0 : editor.isActive("italic"),
|
|
5863
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleItalic().run(),
|
|
5864
|
+
icon: import_lucide_react25.ItalicIcon,
|
|
5865
|
+
tooltip: "Italic"
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
name: "underline",
|
|
5869
|
+
isActive: () => editor == null ? void 0 : editor.isActive("underline"),
|
|
5870
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleUnderline().run(),
|
|
5871
|
+
icon: import_lucide_react25.UnderlineIcon,
|
|
5872
|
+
tooltip: "Underline"
|
|
5873
|
+
},
|
|
5874
|
+
{
|
|
5875
|
+
name: "strike",
|
|
5876
|
+
isActive: () => editor == null ? void 0 : editor.isActive("strike"),
|
|
5877
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleStrike().run(),
|
|
5878
|
+
icon: import_lucide_react25.StrikethroughIcon,
|
|
5879
|
+
tooltip: "Strikethrough"
|
|
5238
5880
|
},
|
|
5239
5881
|
{
|
|
5240
5882
|
name: "code",
|
|
5241
5883
|
isActive: () => editor == null ? void 0 : editor.isActive("code"),
|
|
5242
5884
|
command: () => editor == null ? void 0 : editor.chain().focus().toggleCode().run(),
|
|
5243
|
-
icon:
|
|
5885
|
+
icon: import_lucide_react25.CodeIcon,
|
|
5244
5886
|
tooltip: "Code"
|
|
5245
5887
|
}
|
|
5246
5888
|
];
|
|
@@ -5289,13 +5931,18 @@ function TextBubbleMenu(props) {
|
|
|
5289
5931
|
}
|
|
5290
5932
|
});
|
|
5291
5933
|
const state = useTextMenuState(editor);
|
|
5292
|
-
|
|
5293
|
-
|
|
5934
|
+
const turnIntoBlockOptions = useTurnIntoBlockOptions(editor);
|
|
5935
|
+
const colors = editor == null ? void 0 : editor.storage.color.colors;
|
|
5936
|
+
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 : [];
|
|
5937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5938
|
+
import_react50.BubbleMenu,
|
|
5294
5939
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
5295
|
-
className: "mly-flex mly-gap-
|
|
5296
|
-
children: /* @__PURE__ */ (0,
|
|
5297
|
-
|
|
5298
|
-
/* @__PURE__ */ (0,
|
|
5940
|
+
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",
|
|
5941
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(TooltipProvider, { children: [
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TurnIntoBlock, { options: turnIntoBlockOptions }),
|
|
5943
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Divider, { className: "mly-mx-0" }),
|
|
5944
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
5945
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5299
5946
|
AlignmentSwitch,
|
|
5300
5947
|
{
|
|
5301
5948
|
alignment: state.textAlign,
|
|
@@ -5304,21 +5951,21 @@ function TextBubbleMenu(props) {
|
|
|
5304
5951
|
}
|
|
5305
5952
|
}
|
|
5306
5953
|
),
|
|
5307
|
-
!state.isListActive && /* @__PURE__ */ (0,
|
|
5308
|
-
/* @__PURE__ */ (0,
|
|
5954
|
+
!state.isListActive && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
5955
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5309
5956
|
BubbleMenuButton,
|
|
5310
5957
|
{
|
|
5311
|
-
icon:
|
|
5958
|
+
icon: import_lucide_react25.List,
|
|
5312
5959
|
command: () => {
|
|
5313
5960
|
editor.chain().focus().toggleBulletList().run();
|
|
5314
5961
|
},
|
|
5315
5962
|
tooltip: "Bullet List"
|
|
5316
5963
|
}
|
|
5317
5964
|
),
|
|
5318
|
-
/* @__PURE__ */ (0,
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5319
5966
|
BubbleMenuButton,
|
|
5320
5967
|
{
|
|
5321
|
-
icon:
|
|
5968
|
+
icon: import_lucide_react25.ListOrdered,
|
|
5322
5969
|
command: () => {
|
|
5323
5970
|
editor.chain().focus().toggleOrderedList().run();
|
|
5324
5971
|
},
|
|
@@ -5326,10 +5973,10 @@ function TextBubbleMenu(props) {
|
|
|
5326
5973
|
}
|
|
5327
5974
|
)
|
|
5328
5975
|
] }),
|
|
5329
|
-
/* @__PURE__ */ (0,
|
|
5976
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5330
5977
|
LinkInputPopover,
|
|
5331
5978
|
{
|
|
5332
|
-
defaultValue: (
|
|
5979
|
+
defaultValue: (_d = state == null ? void 0 : state.linkUrl) != null ? _d : "",
|
|
5333
5980
|
onValueChange: (value, isVariable) => {
|
|
5334
5981
|
const defaultValueWithoutProtocol = value.replace(
|
|
5335
5982
|
/https?:\/\//,
|
|
@@ -5346,25 +5993,27 @@ function TextBubbleMenu(props) {
|
|
|
5346
5993
|
isVariable: state.isUrlVariable
|
|
5347
5994
|
}
|
|
5348
5995
|
),
|
|
5349
|
-
/* @__PURE__ */ (0,
|
|
5350
|
-
/* @__PURE__ */ (0,
|
|
5996
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Divider, { className: "mly-mx-0" }),
|
|
5997
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5351
5998
|
ColorPicker,
|
|
5352
5999
|
{
|
|
5353
6000
|
color: state.currentTextColor,
|
|
5354
6001
|
onColorChange: (color) => {
|
|
5355
6002
|
editor == null ? void 0 : editor.chain().setColor(color).run();
|
|
5356
6003
|
},
|
|
6004
|
+
onClose: (color) => colors.add(color),
|
|
5357
6005
|
tooltip: "Text Color",
|
|
5358
|
-
|
|
6006
|
+
suggestedColors,
|
|
6007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5359
6008
|
BaseButton,
|
|
5360
6009
|
{
|
|
5361
6010
|
variant: "ghost",
|
|
5362
6011
|
size: "sm",
|
|
5363
6012
|
type: "button",
|
|
5364
6013
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
5365
|
-
children: /* @__PURE__ */ (0,
|
|
5366
|
-
/* @__PURE__ */ (0,
|
|
5367
|
-
/* @__PURE__ */ (0,
|
|
6014
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
6015
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
6016
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5368
6017
|
"div",
|
|
5369
6018
|
{
|
|
5370
6019
|
className: "mly-h-[2px] mly-w-3",
|
|
@@ -5381,70 +6030,16 @@ function TextBubbleMenu(props) {
|
|
|
5381
6030
|
);
|
|
5382
6031
|
}
|
|
5383
6032
|
|
|
5384
|
-
// src/editor/extensions/index.ts
|
|
5385
|
-
var import_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
5386
|
-
var import_extension_color = require("@tiptap/extension-color");
|
|
5387
|
-
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"));
|
|
5388
|
-
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"));
|
|
5389
|
-
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"));
|
|
5390
|
-
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"));
|
|
5391
|
-
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"));
|
|
5392
|
-
var import_extension_heading = __toESM(require("@tiptap/extension-heading"));
|
|
5393
|
-
var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
|
|
5394
|
-
var import_extension_document = __toESM(require("@tiptap/extension-document"));
|
|
5395
|
-
var import_extension_focus = __toESM(require("@tiptap/extension-focus"));
|
|
5396
|
-
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"));
|
|
5397
|
-
|
|
5398
|
-
// src/editor/nodes/footer.ts
|
|
5399
|
-
var import_core14 = require("@tiptap/core");
|
|
5400
|
-
var Footer = import_core14.Node.create({
|
|
5401
|
-
name: "footer",
|
|
5402
|
-
group: "block",
|
|
5403
|
-
content: "inline*",
|
|
5404
|
-
addAttributes() {
|
|
5405
|
-
return {
|
|
5406
|
-
"maily-component": {
|
|
5407
|
-
default: "footer",
|
|
5408
|
-
renderHTML: (attributes) => {
|
|
5409
|
-
return {
|
|
5410
|
-
"data-maily-component": attributes["maily-component"]
|
|
5411
|
-
};
|
|
5412
|
-
},
|
|
5413
|
-
parseHTML: (element) => element == null ? void 0 : element.getAttribute("data-maily-component")
|
|
5414
|
-
}
|
|
5415
|
-
};
|
|
5416
|
-
},
|
|
5417
|
-
addCommands() {
|
|
5418
|
-
return {
|
|
5419
|
-
setFooter: () => ({ commands }) => {
|
|
5420
|
-
return commands.setNode(this.name);
|
|
5421
|
-
}
|
|
5422
|
-
};
|
|
5423
|
-
},
|
|
5424
|
-
parseHTML() {
|
|
5425
|
-
return [{ tag: 'small[data-maily-component="footer"]' }];
|
|
5426
|
-
},
|
|
5427
|
-
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
5428
|
-
return [
|
|
5429
|
-
"small",
|
|
5430
|
-
(0, import_core14.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
5431
|
-
class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
|
|
5432
|
-
}),
|
|
5433
|
-
0
|
|
5434
|
-
];
|
|
5435
|
-
}
|
|
5436
|
-
});
|
|
5437
|
-
|
|
5438
6033
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
5439
|
-
var
|
|
5440
|
-
var
|
|
5441
|
-
var
|
|
5442
|
-
var
|
|
5443
|
-
var
|
|
5444
|
-
var VariableList = (0,
|
|
6034
|
+
var import_react51 = require("@tiptap/react");
|
|
6035
|
+
var import_react52 = require("react");
|
|
6036
|
+
var import_tippy6 = __toESM(require("tippy.js"));
|
|
6037
|
+
var import_react53 = require("react");
|
|
6038
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6039
|
+
var VariableList = (0, import_react52.forwardRef)((props, ref) => {
|
|
5445
6040
|
const { items = [] } = props;
|
|
5446
|
-
const popoverRef = (0,
|
|
5447
|
-
(0,
|
|
6041
|
+
const popoverRef = (0, import_react53.useRef)(null);
|
|
6042
|
+
(0, import_react52.useImperativeHandle)(ref, () => ({
|
|
5448
6043
|
onKeyDown: ({ event }) => {
|
|
5449
6044
|
if (!popoverRef.current) {
|
|
5450
6045
|
return false;
|
|
@@ -5467,7 +6062,7 @@ var VariableList = (0, import_react50.forwardRef)((props, ref) => {
|
|
|
5467
6062
|
return false;
|
|
5468
6063
|
}
|
|
5469
6064
|
}));
|
|
5470
|
-
return /* @__PURE__ */ (0,
|
|
6065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5471
6066
|
VariablePopover,
|
|
5472
6067
|
{
|
|
5473
6068
|
items,
|
|
@@ -5498,14 +6093,14 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
5498
6093
|
let popup = null;
|
|
5499
6094
|
return {
|
|
5500
6095
|
onStart: (props) => {
|
|
5501
|
-
component = new
|
|
6096
|
+
component = new import_react51.ReactRenderer(VariableList, {
|
|
5502
6097
|
props,
|
|
5503
6098
|
editor: props.editor
|
|
5504
6099
|
});
|
|
5505
6100
|
if (!props.clientRect) {
|
|
5506
6101
|
return;
|
|
5507
6102
|
}
|
|
5508
|
-
popup = (0,
|
|
6103
|
+
popup = (0, import_tippy6.default)("body", {
|
|
5509
6104
|
getReferenceClientRect: props.clientRect,
|
|
5510
6105
|
appendTo: () => document.body,
|
|
5511
6106
|
content: component.element,
|
|
@@ -5545,20 +6140,224 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
5545
6140
|
};
|
|
5546
6141
|
}
|
|
5547
6142
|
|
|
5548
|
-
// src/editor/extensions/
|
|
6143
|
+
// src/editor/extensions/maily-kit.tsx
|
|
5549
6144
|
var import_core15 = require("@tiptap/core");
|
|
6145
|
+
var import_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
6146
|
+
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"));
|
|
6147
|
+
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"));
|
|
6148
|
+
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"));
|
|
6149
|
+
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"));
|
|
6150
|
+
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"));
|
|
6151
|
+
var import_extension_heading = __toESM(require("@tiptap/extension-heading"));
|
|
6152
|
+
var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
|
|
6153
|
+
var import_extension_document = __toESM(require("@tiptap/extension-document"));
|
|
6154
|
+
var import_extension_focus = __toESM(require("@tiptap/extension-focus"));
|
|
6155
|
+
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"));
|
|
6156
|
+
|
|
6157
|
+
// src/editor/extensions/color.ts
|
|
6158
|
+
var import_extension_color = __toESM(require("@tiptap/extension-color"));
|
|
6159
|
+
var Color = import_extension_color.default.extend({
|
|
6160
|
+
addStorage() {
|
|
6161
|
+
return {
|
|
6162
|
+
colors: /* @__PURE__ */ new Set()
|
|
6163
|
+
};
|
|
6164
|
+
}
|
|
6165
|
+
});
|
|
6166
|
+
|
|
6167
|
+
// src/editor/nodes/footer.ts
|
|
6168
|
+
var import_core14 = require("@tiptap/core");
|
|
6169
|
+
var Footer = import_core14.Node.create({
|
|
6170
|
+
name: "footer",
|
|
6171
|
+
group: "block",
|
|
6172
|
+
content: "inline*",
|
|
6173
|
+
addAttributes() {
|
|
6174
|
+
return {
|
|
6175
|
+
"maily-component": {
|
|
6176
|
+
default: "footer",
|
|
6177
|
+
renderHTML: (attributes) => {
|
|
6178
|
+
return {
|
|
6179
|
+
"data-maily-component": attributes["maily-component"]
|
|
6180
|
+
};
|
|
6181
|
+
},
|
|
6182
|
+
parseHTML: (element) => element == null ? void 0 : element.getAttribute("data-maily-component")
|
|
6183
|
+
}
|
|
6184
|
+
};
|
|
6185
|
+
},
|
|
6186
|
+
addCommands() {
|
|
6187
|
+
return {
|
|
6188
|
+
setFooter: () => ({ commands }) => {
|
|
6189
|
+
return commands.setNode(this.name);
|
|
6190
|
+
}
|
|
6191
|
+
};
|
|
6192
|
+
},
|
|
6193
|
+
parseHTML() {
|
|
6194
|
+
return [{ tag: 'small[data-maily-component="footer"]' }];
|
|
6195
|
+
},
|
|
6196
|
+
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
6197
|
+
return [
|
|
6198
|
+
"small",
|
|
6199
|
+
(0, import_core14.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
6200
|
+
class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
|
|
6201
|
+
}),
|
|
6202
|
+
0
|
|
6203
|
+
];
|
|
6204
|
+
}
|
|
6205
|
+
});
|
|
6206
|
+
|
|
6207
|
+
// src/editor/nodes/link.ts
|
|
6208
|
+
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
6209
|
+
var LinkExtension = import_extension_link.default.extend({
|
|
6210
|
+
addAttributes() {
|
|
6211
|
+
var _a;
|
|
6212
|
+
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
6213
|
+
isUrlVariable: {
|
|
6214
|
+
default: false
|
|
6215
|
+
}
|
|
6216
|
+
});
|
|
6217
|
+
},
|
|
6218
|
+
addCommands() {
|
|
6219
|
+
var _a;
|
|
6220
|
+
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
6221
|
+
setIsUrlVariable: (isUrlVariable) => ({ chain }) => {
|
|
6222
|
+
return chain().setMark("link", { isUrlVariable }).run();
|
|
6223
|
+
}
|
|
6224
|
+
});
|
|
6225
|
+
}
|
|
6226
|
+
});
|
|
6227
|
+
|
|
6228
|
+
// src/editor/extensions/maily-kit.tsx
|
|
6229
|
+
var MailyKit = import_core15.Extension.create({
|
|
6230
|
+
name: "maily-kit",
|
|
6231
|
+
addOptions() {
|
|
6232
|
+
return {
|
|
6233
|
+
link: {
|
|
6234
|
+
HTMLAttributes: {
|
|
6235
|
+
target: "_blank",
|
|
6236
|
+
rel: "noopener noreferrer nofollow",
|
|
6237
|
+
class: "mly-no-underline"
|
|
6238
|
+
},
|
|
6239
|
+
openOnClick: false
|
|
6240
|
+
}
|
|
6241
|
+
};
|
|
6242
|
+
},
|
|
6243
|
+
addExtensions() {
|
|
6244
|
+
const extensions2 = [
|
|
6245
|
+
import_extension_document.default.extend({
|
|
6246
|
+
content: "(block|columns)+"
|
|
6247
|
+
}),
|
|
6248
|
+
import_starter_kit.default.configure({
|
|
6249
|
+
heading: {
|
|
6250
|
+
levels: [1, 2, 3],
|
|
6251
|
+
HTMLAttributes: {
|
|
6252
|
+
class: "mly-relative"
|
|
6253
|
+
}
|
|
6254
|
+
},
|
|
6255
|
+
code: {
|
|
6256
|
+
HTMLAttributes: {
|
|
6257
|
+
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"
|
|
6258
|
+
}
|
|
6259
|
+
},
|
|
6260
|
+
blockquote: {
|
|
6261
|
+
HTMLAttributes: {
|
|
6262
|
+
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
|
|
6263
|
+
}
|
|
6264
|
+
},
|
|
6265
|
+
paragraph: {
|
|
6266
|
+
HTMLAttributes: {
|
|
6267
|
+
class: "mly-relative"
|
|
6268
|
+
}
|
|
6269
|
+
},
|
|
6270
|
+
bulletList: {
|
|
6271
|
+
HTMLAttributes: {
|
|
6272
|
+
class: "mly-relative"
|
|
6273
|
+
}
|
|
6274
|
+
},
|
|
6275
|
+
orderedList: {
|
|
6276
|
+
HTMLAttributes: {
|
|
6277
|
+
class: "mly-relative"
|
|
6278
|
+
}
|
|
6279
|
+
},
|
|
6280
|
+
horizontalRule: false,
|
|
6281
|
+
dropcursor: false,
|
|
6282
|
+
document: false
|
|
6283
|
+
}),
|
|
6284
|
+
import_extension_underline.default,
|
|
6285
|
+
Color.configure({ types: [import_extension_text_style.default.name, import_extension_list_item.default.name] }),
|
|
6286
|
+
import_extension_text_style.default.configure(),
|
|
6287
|
+
import_extension_text_align.default.configure({
|
|
6288
|
+
types: [import_extension_paragraph.default.name, import_extension_heading.default.name, Footer.name]
|
|
6289
|
+
}),
|
|
6290
|
+
HorizontalRule,
|
|
6291
|
+
import_extension_placeholder.default.configure({
|
|
6292
|
+
placeholder: ({ node }) => {
|
|
6293
|
+
if (node.type.name === "heading") {
|
|
6294
|
+
return `Heading ${node.attrs.level}`;
|
|
6295
|
+
} else if ([
|
|
6296
|
+
"columns",
|
|
6297
|
+
"column",
|
|
6298
|
+
"section",
|
|
6299
|
+
"for",
|
|
6300
|
+
"show",
|
|
6301
|
+
"blockquote"
|
|
6302
|
+
].includes(node.type.name)) {
|
|
6303
|
+
return "";
|
|
6304
|
+
}
|
|
6305
|
+
return "Write something or / to see commands";
|
|
6306
|
+
},
|
|
6307
|
+
includeChildren: true
|
|
6308
|
+
}),
|
|
6309
|
+
Footer,
|
|
6310
|
+
import_extension_focus.default,
|
|
6311
|
+
import_extension_dropcursor.default.configure({
|
|
6312
|
+
color: "#555",
|
|
6313
|
+
width: 3,
|
|
6314
|
+
class: "ProseMirror-dropcursor"
|
|
6315
|
+
})
|
|
6316
|
+
];
|
|
6317
|
+
if (this.options.linkCard !== false) {
|
|
6318
|
+
extensions2.push(LinkCardExtension.configure(this.options.linkCard));
|
|
6319
|
+
}
|
|
6320
|
+
if (this.options.for !== false) {
|
|
6321
|
+
extensions2.push(ForExtension);
|
|
6322
|
+
}
|
|
6323
|
+
if (this.options.section !== false) {
|
|
6324
|
+
extensions2.push(SectionExtension);
|
|
6325
|
+
}
|
|
6326
|
+
if (this.options.columns !== false) {
|
|
6327
|
+
extensions2.push(ColumnsExtension);
|
|
6328
|
+
}
|
|
6329
|
+
if (this.options.column !== false) {
|
|
6330
|
+
extensions2.push(ColumnExtension);
|
|
6331
|
+
}
|
|
6332
|
+
if (this.options.button !== false) {
|
|
6333
|
+
extensions2.push(ButtonExtension);
|
|
6334
|
+
}
|
|
6335
|
+
if (this.options.spacer !== false) {
|
|
6336
|
+
extensions2.push(Spacer);
|
|
6337
|
+
}
|
|
6338
|
+
if (this.options.logo !== false) {
|
|
6339
|
+
extensions2.push(LogoExtension);
|
|
6340
|
+
}
|
|
6341
|
+
if (this.options.image !== false) {
|
|
6342
|
+
extensions2.push(ImageExtension);
|
|
6343
|
+
}
|
|
6344
|
+
if (this.options.link !== false) {
|
|
6345
|
+
extensions2.push(LinkExtension.configure(this.options.link));
|
|
6346
|
+
}
|
|
6347
|
+
return extensions2;
|
|
6348
|
+
}
|
|
6349
|
+
});
|
|
6350
|
+
|
|
6351
|
+
// src/editor/extensions/slash-command/slash-command.ts
|
|
6352
|
+
var import_core16 = require("@tiptap/core");
|
|
5550
6353
|
var import_suggestion2 = __toESM(require("@tiptap/suggestion"));
|
|
5551
|
-
var
|
|
6354
|
+
var SlashCommandExtension = import_core16.Extension.create({
|
|
5552
6355
|
name: "slash-command",
|
|
5553
6356
|
addOptions() {
|
|
5554
6357
|
return {
|
|
5555
6358
|
suggestion: {
|
|
5556
6359
|
char: "/",
|
|
5557
|
-
command: ({
|
|
5558
|
-
editor,
|
|
5559
|
-
range,
|
|
5560
|
-
props
|
|
5561
|
-
}) => {
|
|
6360
|
+
command: ({ editor, range, props }) => {
|
|
5562
6361
|
props.command({ editor, range });
|
|
5563
6362
|
}
|
|
5564
6363
|
}
|
|
@@ -5587,14 +6386,14 @@ var updateScrollView = (container, item) => {
|
|
|
5587
6386
|
};
|
|
5588
6387
|
|
|
5589
6388
|
// src/editor/extensions/slash-command/slash-command-view.tsx
|
|
5590
|
-
var
|
|
5591
|
-
var
|
|
5592
|
-
var
|
|
5593
|
-
var
|
|
6389
|
+
var import_react54 = require("@tiptap/react");
|
|
6390
|
+
var import_react55 = require("react");
|
|
6391
|
+
var import_tippy7 = __toESM(require("tippy.js"));
|
|
6392
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5594
6393
|
function CommandList(props) {
|
|
5595
6394
|
const { items, command, editor } = props;
|
|
5596
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
5597
|
-
const selectItem = (0,
|
|
6395
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react55.useState)(0);
|
|
6396
|
+
const selectItem = (0, import_react55.useCallback)(
|
|
5598
6397
|
(index) => {
|
|
5599
6398
|
const item = items[index];
|
|
5600
6399
|
if (item) {
|
|
@@ -5604,7 +6403,7 @@ function CommandList(props) {
|
|
|
5604
6403
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5605
6404
|
[command, editor, items]
|
|
5606
6405
|
);
|
|
5607
|
-
(0,
|
|
6406
|
+
(0, import_react55.useEffect)(() => {
|
|
5608
6407
|
const navigationKeys = ["ArrowUp", "ArrowDown", "Enter"];
|
|
5609
6408
|
const onKeyDown = (e) => {
|
|
5610
6409
|
if (navigationKeys.includes(e.key)) {
|
|
@@ -5629,26 +6428,26 @@ function CommandList(props) {
|
|
|
5629
6428
|
document.removeEventListener("keydown", onKeyDown);
|
|
5630
6429
|
};
|
|
5631
6430
|
}, [items, selectedIndex, setSelectedIndex, selectItem]);
|
|
5632
|
-
(0,
|
|
6431
|
+
(0, import_react55.useEffect)(() => {
|
|
5633
6432
|
setSelectedIndex(0);
|
|
5634
6433
|
}, [items]);
|
|
5635
|
-
const commandListContainer = (0,
|
|
5636
|
-
(0,
|
|
6434
|
+
const commandListContainer = (0, import_react55.useRef)(null);
|
|
6435
|
+
(0, import_react55.useLayoutEffect)(() => {
|
|
5637
6436
|
const container = commandListContainer == null ? void 0 : commandListContainer.current;
|
|
5638
6437
|
const item = container == null ? void 0 : container.children[selectedIndex];
|
|
5639
6438
|
if (item && container) {
|
|
5640
6439
|
updateScrollView(container, item);
|
|
5641
6440
|
}
|
|
5642
6441
|
}, [selectedIndex]);
|
|
5643
|
-
return items.length > 0 ? /* @__PURE__ */ (0,
|
|
5644
|
-
/* @__PURE__ */ (0,
|
|
6442
|
+
return items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("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: [
|
|
6443
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5645
6444
|
"div",
|
|
5646
6445
|
{
|
|
5647
6446
|
id: "slash-command",
|
|
5648
6447
|
ref: commandListContainer,
|
|
5649
6448
|
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto mly-scroll-smooth mly-p-1",
|
|
5650
6449
|
children: items.map((item, index) => {
|
|
5651
|
-
return /* @__PURE__ */ (0,
|
|
6450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5652
6451
|
"button",
|
|
5653
6452
|
{
|
|
5654
6453
|
className: cn(
|
|
@@ -5658,10 +6457,10 @@ function CommandList(props) {
|
|
|
5658
6457
|
onClick: () => selectItem(index),
|
|
5659
6458
|
type: "button",
|
|
5660
6459
|
children: [
|
|
5661
|
-
/* @__PURE__ */ (0,
|
|
5662
|
-
/* @__PURE__ */ (0,
|
|
5663
|
-
/* @__PURE__ */ (0,
|
|
5664
|
-
/* @__PURE__ */ (0,
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
|
|
6461
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { children: [
|
|
6462
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "mly-font-medium", children: item.title }),
|
|
6463
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
|
|
5665
6464
|
] })
|
|
5666
6465
|
]
|
|
5667
6466
|
},
|
|
@@ -5670,23 +6469,23 @@ function CommandList(props) {
|
|
|
5670
6469
|
})
|
|
5671
6470
|
}
|
|
5672
6471
|
),
|
|
5673
|
-
/* @__PURE__ */ (0,
|
|
5674
|
-
/* @__PURE__ */ (0,
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5676
|
-
/* @__PURE__ */ (0,
|
|
6472
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "mly-flex mly-items-center", children: [
|
|
6473
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6474
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
6475
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
5677
6476
|
" ",
|
|
5678
6477
|
"to navigate"
|
|
5679
6478
|
] }),
|
|
5680
|
-
/* @__PURE__ */ (0,
|
|
5681
|
-
/* @__PURE__ */ (0,
|
|
5682
|
-
/* @__PURE__ */ (0,
|
|
6479
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
6480
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6481
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
5683
6482
|
" ",
|
|
5684
6483
|
"to select"
|
|
5685
6484
|
] })
|
|
5686
6485
|
] }) })
|
|
5687
6486
|
] }) : null;
|
|
5688
6487
|
}
|
|
5689
|
-
function getSlashCommandSuggestions(commands =
|
|
6488
|
+
function getSlashCommandSuggestions(commands = DEFAULT_SLASH_COMMANDS) {
|
|
5690
6489
|
return {
|
|
5691
6490
|
items: ({ query, editor }) => {
|
|
5692
6491
|
return commands.filter((item) => {
|
|
@@ -5706,11 +6505,11 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5706
6505
|
let popup = null;
|
|
5707
6506
|
return {
|
|
5708
6507
|
onStart: (props) => {
|
|
5709
|
-
component = new
|
|
6508
|
+
component = new import_react54.ReactRenderer(CommandList, {
|
|
5710
6509
|
props,
|
|
5711
6510
|
editor: props.editor
|
|
5712
6511
|
});
|
|
5713
|
-
popup = (0,
|
|
6512
|
+
popup = (0, import_tippy7.default)("body", {
|
|
5714
6513
|
getReferenceClientRect: props.clientRect,
|
|
5715
6514
|
appendTo: () => document.body,
|
|
5716
6515
|
content: component.element,
|
|
@@ -5745,129 +6544,31 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5745
6544
|
};
|
|
5746
6545
|
}
|
|
5747
6546
|
|
|
5748
|
-
// src/editor/nodes/link.ts
|
|
5749
|
-
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
5750
|
-
var LinkExtension = import_extension_link.default.extend({
|
|
5751
|
-
addAttributes() {
|
|
5752
|
-
var _a;
|
|
5753
|
-
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
5754
|
-
isUrlVariable: {
|
|
5755
|
-
default: false
|
|
5756
|
-
}
|
|
5757
|
-
});
|
|
5758
|
-
},
|
|
5759
|
-
addCommands() {
|
|
5760
|
-
var _a;
|
|
5761
|
-
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
5762
|
-
setIsUrlVariable: (isUrlVariable) => ({ chain }) => {
|
|
5763
|
-
return chain().setMark("link", { isUrlVariable }).run();
|
|
5764
|
-
}
|
|
5765
|
-
});
|
|
5766
|
-
}
|
|
5767
|
-
});
|
|
5768
|
-
|
|
5769
6547
|
// src/editor/extensions/index.ts
|
|
5770
6548
|
function extensions(props) {
|
|
5771
|
-
const {
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
levels: [1, 2, 3],
|
|
5781
|
-
HTMLAttributes: {
|
|
5782
|
-
class: "mly-relative"
|
|
5783
|
-
}
|
|
5784
|
-
},
|
|
5785
|
-
code: {
|
|
5786
|
-
HTMLAttributes: {
|
|
5787
|
-
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"
|
|
5788
|
-
}
|
|
5789
|
-
},
|
|
5790
|
-
blockquote: {
|
|
5791
|
-
HTMLAttributes: {
|
|
5792
|
-
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
|
|
5793
|
-
}
|
|
5794
|
-
},
|
|
5795
|
-
paragraph: {
|
|
5796
|
-
HTMLAttributes: {
|
|
5797
|
-
class: "mly-relative"
|
|
5798
|
-
}
|
|
5799
|
-
},
|
|
5800
|
-
bulletList: {
|
|
5801
|
-
HTMLAttributes: {
|
|
5802
|
-
class: "mly-relative"
|
|
5803
|
-
}
|
|
5804
|
-
},
|
|
5805
|
-
orderedList: {
|
|
5806
|
-
HTMLAttributes: {
|
|
5807
|
-
class: "mly-relative"
|
|
5808
|
-
}
|
|
5809
|
-
},
|
|
5810
|
-
horizontalRule: false,
|
|
5811
|
-
dropcursor: false,
|
|
5812
|
-
document: false
|
|
5813
|
-
}),
|
|
5814
|
-
import_extension_underline.default,
|
|
5815
|
-
LogoExtension,
|
|
5816
|
-
import_extension_color.Color.configure({ types: [import_extension_text_style.default.name, import_extension_list_item.default.name] }),
|
|
5817
|
-
import_extension_text_style.default.configure(),
|
|
5818
|
-
import_extension_text_align.default.configure({ types: [import_extension_paragraph.default.name, import_extension_heading.default.name, Footer.name] }),
|
|
5819
|
-
HorizontalRule,
|
|
5820
|
-
import_extension_placeholder.default.configure({
|
|
5821
|
-
placeholder: ({ node }) => {
|
|
5822
|
-
if (node.type.name === "heading") {
|
|
5823
|
-
return `Heading ${node.attrs.level}`;
|
|
5824
|
-
} else if ([
|
|
5825
|
-
"columns",
|
|
5826
|
-
"column",
|
|
5827
|
-
"section",
|
|
5828
|
-
"for",
|
|
5829
|
-
"show",
|
|
5830
|
-
"blockquote"
|
|
5831
|
-
].includes(node.type.name)) {
|
|
5832
|
-
return "";
|
|
5833
|
-
}
|
|
5834
|
-
return "Write something or / to see commands";
|
|
5835
|
-
},
|
|
5836
|
-
includeChildren: true
|
|
5837
|
-
}),
|
|
5838
|
-
Spacer,
|
|
5839
|
-
Footer,
|
|
5840
|
-
SlashCommand.configure({
|
|
6549
|
+
const {
|
|
6550
|
+
variables,
|
|
6551
|
+
blocks,
|
|
6552
|
+
variableTriggerCharacter,
|
|
6553
|
+
extensions: extensions2 = []
|
|
6554
|
+
} = props;
|
|
6555
|
+
const defaultExtensions = [
|
|
6556
|
+
MailyKit,
|
|
6557
|
+
SlashCommandExtension.configure({
|
|
5841
6558
|
suggestion: getSlashCommandSuggestions(blocks)
|
|
5842
6559
|
}),
|
|
5843
|
-
LinkExtension.configure({
|
|
5844
|
-
HTMLAttributes: {
|
|
5845
|
-
target: "_blank",
|
|
5846
|
-
rel: "noopener noreferrer nofollow",
|
|
5847
|
-
class: "mly-no-underline"
|
|
5848
|
-
},
|
|
5849
|
-
openOnClick: false
|
|
5850
|
-
}),
|
|
5851
|
-
ImageExtension,
|
|
5852
|
-
LinkCardExtension,
|
|
5853
|
-
import_extension_focus.default,
|
|
5854
|
-
SectionExtension,
|
|
5855
|
-
ForExtension,
|
|
5856
|
-
import_extension_dropcursor.default.configure({
|
|
5857
|
-
color: "#555",
|
|
5858
|
-
width: 3,
|
|
5859
|
-
class: "ProseMirror-dropcursor"
|
|
5860
|
-
}),
|
|
5861
|
-
ButtonExtension,
|
|
5862
6560
|
VariableExtension.configure({
|
|
5863
6561
|
suggestion: getVariableSuggestions(variables, variableTriggerCharacter)
|
|
5864
6562
|
})
|
|
5865
|
-
]
|
|
6563
|
+
].filter((ext) => {
|
|
6564
|
+
return !extensions2.some((e) => e.name === ext.name);
|
|
6565
|
+
});
|
|
6566
|
+
return [...defaultExtensions, ...extensions2];
|
|
5866
6567
|
}
|
|
5867
6568
|
|
|
5868
6569
|
// src/editor/index.tsx
|
|
5869
|
-
var
|
|
5870
|
-
function
|
|
6570
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6571
|
+
function Editor9(props) {
|
|
5871
6572
|
const {
|
|
5872
6573
|
config: {
|
|
5873
6574
|
wrapClassName = "",
|
|
@@ -5883,8 +6584,8 @@ function Editor8(props) {
|
|
|
5883
6584
|
extensions: extensions2,
|
|
5884
6585
|
contentHtml,
|
|
5885
6586
|
contentJson,
|
|
5886
|
-
variables = DEFAULT_VARIABLES,
|
|
5887
6587
|
blocks = DEFAULT_SLASH_COMMANDS,
|
|
6588
|
+
variables = DEFAULT_VARIABLES,
|
|
5888
6589
|
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
5889
6590
|
renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
|
|
5890
6591
|
} = props;
|
|
@@ -5907,8 +6608,8 @@ function Editor8(props) {
|
|
|
5907
6608
|
]
|
|
5908
6609
|
};
|
|
5909
6610
|
}
|
|
5910
|
-
const menuContainerRef = (0,
|
|
5911
|
-
const editor = (0,
|
|
6611
|
+
const menuContainerRef = (0, import_react57.useRef)(null);
|
|
6612
|
+
const editor = (0, import_react56.useEditor)({
|
|
5912
6613
|
editorProps: {
|
|
5913
6614
|
attributes: {
|
|
5914
6615
|
class: cn(`mly-prose mly-w-full`, contentClassName),
|
|
@@ -5932,35 +6633,32 @@ function Editor8(props) {
|
|
|
5932
6633
|
onUpdate: ({ editor: editor2 }) => {
|
|
5933
6634
|
onUpdate == null ? void 0 : onUpdate(editor2);
|
|
5934
6635
|
},
|
|
5935
|
-
extensions:
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
...extensions2 || []
|
|
5942
|
-
],
|
|
6636
|
+
extensions: extensions({
|
|
6637
|
+
variables,
|
|
6638
|
+
variableTriggerCharacter,
|
|
6639
|
+
extensions: extensions2,
|
|
6640
|
+
blocks
|
|
6641
|
+
}),
|
|
5943
6642
|
content: formattedContent,
|
|
5944
6643
|
autofocus
|
|
5945
6644
|
});
|
|
5946
6645
|
if (!editor) {
|
|
5947
6646
|
return null;
|
|
5948
6647
|
}
|
|
5949
|
-
return /* @__PURE__ */ (0,
|
|
6648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5950
6649
|
MailyProvider,
|
|
5951
6650
|
{
|
|
5952
6651
|
variables,
|
|
5953
|
-
blocks,
|
|
5954
6652
|
variableTriggerCharacter,
|
|
5955
6653
|
renderVariable,
|
|
5956
|
-
children: /* @__PURE__ */ (0,
|
|
6654
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5957
6655
|
"div",
|
|
5958
6656
|
{
|
|
5959
6657
|
className: cn("mly-editor mly-antialiased", wrapClassName),
|
|
5960
6658
|
ref: menuContainerRef,
|
|
5961
6659
|
children: [
|
|
5962
|
-
hasMenuBar && /* @__PURE__ */ (0,
|
|
5963
|
-
/* @__PURE__ */ (0,
|
|
6660
|
+
hasMenuBar && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(EditorMenuBar, { config: props.config, editor }),
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5964
6662
|
"div",
|
|
5965
6663
|
{
|
|
5966
6664
|
className: cn(
|
|
@@ -5968,14 +6666,14 @@ function Editor8(props) {
|
|
|
5968
6666
|
bodyClassName
|
|
5969
6667
|
),
|
|
5970
6668
|
children: [
|
|
5971
|
-
/* @__PURE__ */ (0,
|
|
5972
|
-
/* @__PURE__ */ (0,
|
|
5973
|
-
/* @__PURE__ */ (0,
|
|
5974
|
-
/* @__PURE__ */ (0,
|
|
5975
|
-
/* @__PURE__ */ (0,
|
|
5976
|
-
/* @__PURE__ */ (0,
|
|
5977
|
-
/* @__PURE__ */ (0,
|
|
5978
|
-
/* @__PURE__ */ (0,
|
|
6669
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6670
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ImageBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SpacerBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6672
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react56.EditorContent, { editor }),
|
|
6673
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SectionBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6674
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ColumnsBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
6675
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ContentMenu, { editor }),
|
|
6676
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ForBubbleMenu, { editor, appendTo: menuContainerRef })
|
|
5979
6677
|
]
|
|
5980
6678
|
}
|
|
5981
6679
|
)
|