@maily-to/core 0.0.16 → 0.0.17
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/index.js +704 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +585 -448
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
package/dist/index.js
CHANGED
|
@@ -87,13 +87,13 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/styles/index.css
|
|
90
|
-
styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n --variable-icon-size: 12px;\n --variable-icon-gap: 4px;\n}\n.mly-editor .mly-prose p:where([class~=text-sm]) {\n font-size: 16px;\n}\n.mly-editor .mly-prose h1,\n.mly-editor .mly-prose h2,\n.mly-editor .mly-prose h3 {\n margin-top: 0;\n margin-bottom: 12px;\n}\n.mly-editor .mly-prose h1 {\n font-size: 36px;\n}\n.mly-editor .mly-prose h2 {\n font-size: 30px;\n}\n.mly-editor .mly-prose h3 {\n font-size: 24px;\n}\n.mly-editor .mly-prose p {\n font-size: 15px;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose h1 + p,\n.mly-editor .mly-prose h2 + p,\n.mly-editor .mly-prose h3 + p,\n.mly-editor .mly-prose hr + p,\n.mly-editor .mly-prose table + p {\n margin-top: 0;\n}\n.mly-editor .mly-prose ol,\n.mly-editor .mly-prose ul {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose li:not(:last-child) {\n margin-bottom: 8px;\n}\n.mly-editor .mly-prose li > p {\n margin: 0;\n}\n.mly-editor .mly-prose img,\n.mly-editor .mly-prose .node-logo {\n margin-top: 0;\n margin-bottom: 32px;\n}\n.mly-editor .mly-prose hr {\n margin-block: 32px;\n}\n.mly-editor .mly-prose .footer {\n display: block;\n font-size: 13px;\n margin-bottom: 20px;\n color: rgb(100, 116, 139);\n}\n.mly-editor .mly-prose .spacer + * {\n margin-top: 0;\n}\n.mly-editor .mly-prose p + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose blockquote + .spacer {\n margin-top: -16px;\n}\n.mly-editor .mly-prose h1 + .spacer,\n.mly-editor .mly-prose h2 + .spacer,\n.mly-editor .mly-prose h3 + .spacer {\n margin-top: -12px;\n}\n.mly-editor .mly-prose ol + .spacer,\n.mly-editor .mly-prose ul + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose img + .spacer,\n.mly-editor .mly-prose .node-logo + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose .node-button + .spacer,\n.mly-editor .mly-prose .node-linkCard + .spacer,\n.mly-editor .mly-prose footer + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose .node-button,\n.mly-editor .mly-prose .node-linkCard {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose .node-image {\n line-height: 0;\n margin-top: 0;\n margin-bottom: 32px;\n outline: none;\n}\n.mly-editor .mly-prose .node-image + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose code::before,\n.mly-editor .mly-prose code::after {\n content: none;\n}\n.mly-no-scrollbar::-webkit-scrollbar {\n display: none;\n}\n.mly-no-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.mly-editor .react-colorful__alpha {\n border-radius: 0;\n}\n.mly-editor .react-colorful__saturation,\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n border-radius: 8px;\n}\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n height: 16px;\n}\n.mly-editor .react-colorful__pointer {\n width: 16px;\n height: 16px;\n}\n.ProseMirror-selectednode {\n outline: 3px solid #555;\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.
|
|
90
|
+
styleInject(':root {\n --placeholder-color: #adb5bd;\n --bg-color: #ffffff;\n --variable-icon-size: 12px;\n --variable-icon-gap: 4px;\n}\n.mly-editor .mly-prose p:where([class~=text-sm]) {\n font-size: 16px;\n}\n.mly-editor .mly-prose h1,\n.mly-editor .mly-prose h2,\n.mly-editor .mly-prose h3 {\n margin-top: 0;\n margin-bottom: 12px;\n}\n.mly-editor .mly-prose h1 {\n font-size: 36px;\n}\n.mly-editor .mly-prose h2 {\n font-size: 30px;\n}\n.mly-editor .mly-prose h3 {\n font-size: 24px;\n}\n.mly-editor .mly-prose p {\n font-size: 15px;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose h1 + p,\n.mly-editor .mly-prose h2 + p,\n.mly-editor .mly-prose h3 + p,\n.mly-editor .mly-prose hr + p,\n.mly-editor .mly-prose table + p {\n margin-top: 0;\n}\n.mly-editor .mly-prose ol,\n.mly-editor .mly-prose ul {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose li:not(:last-child) {\n margin-bottom: 8px;\n}\n.mly-editor .mly-prose li > p {\n margin: 0;\n}\n.mly-editor .mly-prose img,\n.mly-editor .mly-prose .node-logo {\n margin-top: 0;\n margin-bottom: 32px;\n}\n.mly-editor .mly-prose hr {\n margin-block: 32px;\n}\n.mly-editor .mly-prose .footer {\n display: block;\n font-size: 13px;\n margin-bottom: 20px;\n color: rgb(100, 116, 139);\n}\n.mly-editor .mly-prose .spacer + * {\n margin-top: 0;\n}\n.mly-editor .mly-prose p + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose blockquote + .spacer {\n margin-top: -16px;\n}\n.mly-editor .mly-prose h1 + .spacer,\n.mly-editor .mly-prose h2 + .spacer,\n.mly-editor .mly-prose h3 + .spacer {\n margin-top: -12px;\n}\n.mly-editor .mly-prose ol + .spacer,\n.mly-editor .mly-prose ul + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose img + .spacer,\n.mly-editor .mly-prose .node-logo + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose .node-button + .spacer,\n.mly-editor .mly-prose .node-linkCard + .spacer,\n.mly-editor .mly-prose footer + .spacer {\n margin-top: -20px;\n}\n.mly-editor .mly-prose .node-button,\n.mly-editor .mly-prose .node-linkCard {\n margin-top: 0;\n margin-bottom: 20px;\n}\n.mly-editor .mly-prose .node-image {\n line-height: 0;\n margin-top: 0;\n margin-bottom: 32px;\n outline: none;\n}\n.mly-editor .mly-prose .node-image + .spacer {\n margin-top: -32px;\n}\n.mly-editor .mly-prose code::before,\n.mly-editor .mly-prose code::after {\n content: none;\n}\n.mly-no-scrollbar::-webkit-scrollbar {\n display: none;\n}\n.mly-no-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.mly-editor .react-colorful__alpha {\n border-radius: 0;\n}\n.mly-editor .react-colorful__saturation,\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n border-radius: 8px;\n}\n.mly-editor .react-colorful__hue,\n.mly-editor .react-colorful__alpha {\n height: 16px;\n}\n.mly-editor .react-colorful__pointer {\n width: 16px;\n height: 16px;\n}\n.ProseMirror-selectednode {\n outline: 3px solid #555;\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0;\n &:focus {\n outline: none;\n }\n p {\n margin-top: 0;\n }\n h1 {\n --variable-icon-size: 28px;\n }\n h2 {\n --variable-icon-size: 24px;\n }\n h3 {\n --variable-icon-size: 20px;\n }\n h1,\n h2,\n h3 {\n --variable-icon-gap: 8px;\n }\n .is-editor-empty:first-child:not([data-type=columns], [data-type=section], ul, li, ol)::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--placeholder-color);\n pointer-events: none;\n height: 0;\n }\n .is-empty:not([data-type=columns], [data-type=section], ol, ul, li)::before {\n content: attr(data-placeholder);\n float: left;\n color: var(--placeholder-color);\n pointer-events: none;\n height: 0;\n }\n [data-type=columns] .is-empty::before,\n [data-type=section] .is-empty::before {\n --l-threshold: 0.66;\n --diff: calc(var(--l-threshold) - l);\n color: oklch(from var(--bg-color) clamp(0.05, max(min(var(--diff) * infinity, 1), 0), 0.95) c h) !important;\n opacity: 0.6;\n }\n [data-type=columns] {\n display: flex;\n margin: 0;\n padding: 0;\n &.has-focus [data-type=column],\n &:hover [data-type=column] {\n outline: 1.5px solid #e9ecef;\n outline-style: dashed;\n }\n [data-type=column].has-focus {\n outline-style: solid;\n }\n }\n [data-type=column] {\n display: table-cell;\n flex-basis: 0;\n flex-grow: 1;\n overflow: auto;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n [data-type=section] {\n margin: 0;\n padding: 0;\n [data-type=section-cell] {\n padding: 0;\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n [data-type=for] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n .node-for.has-focus [data-repeat-indicator] {\n opacity: 1;\n }\n [data-type=show] {\n [data-node-view-content] > div {\n & > *:first-child {\n margin-top: 0;\n }\n & > *:last-child {\n margin-bottom: 0;\n }\n }\n }\n *:has(+ .ProseMirror-gapcursor) {\n margin-bottom: 0 !important;\n }\n .ProseMirror-gapcursor {\n &::after {\n border: 1.5px solid gray;\n width: 24px;\n }\n & + * {\n margin-top: 0 !important;\n }\n }\n}\n.hide-number-controls {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &[type=number] {\n -moz-appearance: textfield;\n }\n}\n.hide-scrollbars {\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n}\n');
|
|
91
91
|
|
|
92
92
|
// src/styles/preflight.css
|
|
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.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-z-0 {\n z-index: 0;\n}\n.mly-z-10 {\n z-index: 10;\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-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-aspect-square {\n aspect-ratio: 1 / 1;\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-6 {\n height: 1.5rem;\n}\n.mly-h-7 {\n height: 1.75rem;\n}\n.mly-h-9 {\n height: 2.25rem;\n}\n.mly-h-\\[28px\\] {\n height: 28px;\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-\\[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-52 {\n width: 13rem;\n}\n.mly-w-6 {\n width: 1.5rem;\n}\n.mly-w-7 {\n width: 1.75rem;\n}\n.mly-w-72 {\n width: 18rem;\n}\n.mly-w-96 {\n width: 24rem;\n}\n.mly-w-\\[1\\.5px\\] {\n width: 1.5px;\n}\n.mly-w-\\[28px\\] {\n width: 28px;\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-\\[240px\\] {\n min-width: 240px;\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-shrink-0 {\n flex-shrink: 0;\n}\n.mly-grow {\n flex-grow: 1;\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-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-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-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-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-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-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-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-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-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-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.\\[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-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.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-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-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.aria-selected\\:mly-bg-soft-gray[aria-selected=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\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.\\[\\&_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-right-1\\.5 {\n right: 0.375rem;\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-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-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-\\[28px\\] {\n height: 28px;\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-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-\\[28px\\] {\n width: 28px;\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-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-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.aria-selected\\:mly-bg-soft-gray[aria-selected=true] {\n --tw-bg-opacity: 1;\n background-color: rgb(244 245 246 / var(--tw-bg-opacity));\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');
|
|
97
97
|
|
|
98
98
|
// src/editor/index.tsx
|
|
99
99
|
var import_react44 = require("@tiptap/react");
|
|
@@ -194,7 +194,7 @@ var import_core2 = require("@tiptap/core");
|
|
|
194
194
|
var import_uuid = require("uuid");
|
|
195
195
|
var DEFAULT_COLUMN_WIDTH = "auto";
|
|
196
196
|
var DEFAULT_COLUMN_VERTICAL_ALIGN = "top";
|
|
197
|
-
var
|
|
197
|
+
var ColumnExtension = import_core2.Node.create({
|
|
198
198
|
name: "column",
|
|
199
199
|
content: "block+",
|
|
200
200
|
isolating: true,
|
|
@@ -517,7 +517,7 @@ var BaseButton = React2.forwardRef(
|
|
|
517
517
|
"asChild"
|
|
518
518
|
]);
|
|
519
519
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
520
|
-
const baseClass = "mly-inline-flex mly-items-center mly-justify-center mly-rounded-md mly-text-sm mly-font-medium mly-ring-offset-white mly-transition-colors focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 disabled:mly-opacity-50";
|
|
520
|
+
const baseClass = "mly-inline-flex mly-items-center mly-justify-center mly-rounded-md mly-text-sm mly-font-medium mly-ring-offset-white mly-transition-colors focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 focus-visible:mly-relative focus-visible:mly-z-10 disabled:mly-opacity-50 ";
|
|
521
521
|
const variantClasses = {
|
|
522
522
|
default: "mly-bg-gray-900 mly-text-gray-50 hover:mly-bg-soft-gray",
|
|
523
523
|
destructive: "mly-bg-red-500 mly-text-gray-50 hover:mly-bg-red-500/90",
|
|
@@ -677,8 +677,8 @@ function ShowPopover(props) {
|
|
|
677
677
|
PopoverTrigger,
|
|
678
678
|
{
|
|
679
679
|
className: cn(
|
|
680
|
-
"mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm
|
|
681
|
-
showIfKey && "mly-bg-rose-100 mly-text-rose-800
|
|
680
|
+
"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",
|
|
681
|
+
showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
|
|
682
682
|
),
|
|
683
683
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.Eye, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" })
|
|
684
684
|
}
|
|
@@ -770,7 +770,7 @@ function ColumnsWidthConfig(props) {
|
|
|
770
770
|
onColumnWidthChange
|
|
771
771
|
} = props;
|
|
772
772
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Popover, { children: [
|
|
773
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PopoverTrigger, { className: "mly-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-text-sm
|
|
773
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PopoverTrigger, { className: "mly-flex mly-size-7 mly-items-center mly-justify-center mly-gap-1 mly-rounded-md mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.SlidersVertical, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5]" }) }),
|
|
774
774
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
775
775
|
PopoverContent,
|
|
776
776
|
{
|
|
@@ -864,6 +864,7 @@ function SwitchButton(props) {
|
|
|
864
864
|
|
|
865
865
|
// src/editor/components/ui/select.tsx
|
|
866
866
|
var import_react3 = require("react");
|
|
867
|
+
var import_lucide_react4 = require("lucide-react");
|
|
867
868
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
868
869
|
function Select(props) {
|
|
869
870
|
const {
|
|
@@ -879,13 +880,13 @@ function Select(props) {
|
|
|
879
880
|
const selectId = `mly${(0, import_react3.useId)()}`;
|
|
880
881
|
const content = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative", children: [
|
|
881
882
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: selectId, className: "sr-only", children: label }),
|
|
882
|
-
Icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
883
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
883
884
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
884
885
|
"select",
|
|
885
886
|
{
|
|
886
887
|
id: selectId,
|
|
887
888
|
className: cn(
|
|
888
|
-
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-px-1.5 mly-py-0.5 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors hover:mly-bg-soft-gray focus:mly-
|
|
889
|
+
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-px-1.5 mly-py-0.5 mly-pr-7 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors 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 active:mly-bg-soft-gray",
|
|
889
890
|
!!Icon && "mly-pl-7",
|
|
890
891
|
className
|
|
891
892
|
),
|
|
@@ -893,7 +894,16 @@ function Select(props) {
|
|
|
893
894
|
onChange: (event) => onValueChange(event.target.value),
|
|
894
895
|
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: option.value, children: option.label }, option.value))
|
|
895
896
|
}
|
|
896
|
-
)
|
|
897
|
+
),
|
|
898
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-7 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
899
|
+
import_lucide_react4.ChevronDownIcon,
|
|
900
|
+
{
|
|
901
|
+
size: 16,
|
|
902
|
+
strokeWidth: 2,
|
|
903
|
+
"aria-hidden": "true",
|
|
904
|
+
role: "img"
|
|
905
|
+
}
|
|
906
|
+
) })
|
|
897
907
|
] });
|
|
898
908
|
if (!tooltip) {
|
|
899
909
|
return content;
|
|
@@ -905,7 +915,7 @@ function Select(props) {
|
|
|
905
915
|
}
|
|
906
916
|
|
|
907
917
|
// src/editor/components/column-menu/columns-bubble-menu-content.tsx
|
|
908
|
-
var
|
|
918
|
+
var import_lucide_react5 = require("lucide-react");
|
|
909
919
|
|
|
910
920
|
// src/editor/utils/delete-node.ts
|
|
911
921
|
var import_core4 = require("@tiptap/core");
|
|
@@ -969,15 +979,15 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
969
979
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
970
980
|
Select,
|
|
971
981
|
{
|
|
972
|
-
icon:
|
|
982
|
+
icon: import_lucide_react5.Space,
|
|
973
983
|
label: "Columns Gap",
|
|
974
984
|
value: state.currentColumnsGap,
|
|
975
985
|
options: [
|
|
976
986
|
{ value: "0", label: "None" },
|
|
977
987
|
{ value: "4", label: "Small" },
|
|
978
988
|
{ value: "8", label: "Medium" },
|
|
979
|
-
{ value: "
|
|
980
|
-
{ value: "
|
|
989
|
+
{ value: "16", label: "Large" },
|
|
990
|
+
{ value: "24", label: "Extra Large" }
|
|
981
991
|
],
|
|
982
992
|
onValueChange: (value) => {
|
|
983
993
|
editor.commands.updateColumns({
|
|
@@ -991,7 +1001,7 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
991
1001
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
992
1002
|
BubbleMenuButton,
|
|
993
1003
|
{
|
|
994
|
-
icon:
|
|
1004
|
+
icon: import_lucide_react5.Trash,
|
|
995
1005
|
tooltip: "Delete Columns",
|
|
996
1006
|
command: () => {
|
|
997
1007
|
deleteNode(editor, "columns");
|
|
@@ -1056,7 +1066,7 @@ function ColumnsBubbleMenu(props) {
|
|
|
1056
1066
|
|
|
1057
1067
|
// src/editor/components/content-menu.tsx
|
|
1058
1068
|
var import_react7 = require("react");
|
|
1059
|
-
var
|
|
1069
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1060
1070
|
|
|
1061
1071
|
// src/editor/components/drag-handle.tsx
|
|
1062
1072
|
var import_react6 = require("react");
|
|
@@ -1187,7 +1197,7 @@ function ContentMenu(props) {
|
|
|
1187
1197
|
className: "!mly-size-7 mly-cursor-grab mly-text-gray-500 hover:mly-text-black",
|
|
1188
1198
|
onClick: handleAddNewNode,
|
|
1189
1199
|
type: "button",
|
|
1190
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1200
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.Plus, { className: "mly-size-4 mly-shrink-0" })
|
|
1191
1201
|
}
|
|
1192
1202
|
) }),
|
|
1193
1203
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(TooltipContent, { sideOffset: 8, children: "Add new node" })
|
|
@@ -1206,7 +1216,7 @@ function ContentMenu(props) {
|
|
|
1206
1216
|
setMenuOpen(true);
|
|
1207
1217
|
},
|
|
1208
1218
|
type: "button",
|
|
1209
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1219
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.GripVertical, { className: "mly-size-4 mly-shrink-0" })
|
|
1210
1220
|
}
|
|
1211
1221
|
) }),
|
|
1212
1222
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(TooltipContent, { sideOffset: 8, children: "Node actions" })
|
|
@@ -1228,7 +1238,7 @@ function ContentMenu(props) {
|
|
|
1228
1238
|
onClick: duplicateNode,
|
|
1229
1239
|
className: "mly-h-auto mly-justify-start mly-gap-2 !mly-rounded mly-px-2 mly-py-1 mly-text-sm mly-font-normal",
|
|
1230
1240
|
children: [
|
|
1231
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1241
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.Copy, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
1232
1242
|
"Duplicate"
|
|
1233
1243
|
]
|
|
1234
1244
|
}
|
|
@@ -1240,7 +1250,7 @@ function ContentMenu(props) {
|
|
|
1240
1250
|
onClick: deleteCurrentNode,
|
|
1241
1251
|
className: "mly-h-auto mly-justify-start mly-gap-2 !mly-rounded mly-bg-red-100 mly-px-2 mly-py-1 mly-text-sm mly-font-normal mly-text-red-600 hover:mly-bg-red-200 focus:mly-bg-red-200",
|
|
1242
1252
|
children: [
|
|
1243
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.Trash2, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
1244
1254
|
"Delete"
|
|
1245
1255
|
]
|
|
1246
1256
|
}
|
|
@@ -1256,7 +1266,7 @@ function ContentMenu(props) {
|
|
|
1256
1266
|
|
|
1257
1267
|
// src/editor/components/editor-menu-bar.tsx
|
|
1258
1268
|
var import_react8 = require("react");
|
|
1259
|
-
var
|
|
1269
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1260
1270
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1261
1271
|
var EditorMenuBar = (props) => {
|
|
1262
1272
|
const { editor, config } = props;
|
|
@@ -1267,42 +1277,42 @@ var EditorMenuBar = (props) => {
|
|
|
1267
1277
|
command: () => editor.chain().focus().toggleBold().run(),
|
|
1268
1278
|
isActive: () => editor.isActive("bold"),
|
|
1269
1279
|
group: "mark",
|
|
1270
|
-
icon:
|
|
1280
|
+
icon: import_lucide_react7.BoldIcon
|
|
1271
1281
|
},
|
|
1272
1282
|
{
|
|
1273
1283
|
name: "italic",
|
|
1274
1284
|
command: () => editor.chain().focus().toggleItalic().run(),
|
|
1275
1285
|
isActive: () => editor.isActive("italic"),
|
|
1276
1286
|
group: "mark",
|
|
1277
|
-
icon:
|
|
1287
|
+
icon: import_lucide_react7.ItalicIcon
|
|
1278
1288
|
},
|
|
1279
1289
|
{
|
|
1280
1290
|
name: "underline",
|
|
1281
1291
|
command: () => editor.chain().focus().toggleUnderline().run(),
|
|
1282
1292
|
isActive: () => editor.isActive("underline"),
|
|
1283
1293
|
group: "mark",
|
|
1284
|
-
icon:
|
|
1294
|
+
icon: import_lucide_react7.UnderlineIcon
|
|
1285
1295
|
},
|
|
1286
1296
|
{
|
|
1287
1297
|
name: "strike",
|
|
1288
1298
|
command: () => editor.chain().focus().toggleStrike().run(),
|
|
1289
1299
|
isActive: () => editor.isActive("strike"),
|
|
1290
1300
|
group: "mark",
|
|
1291
|
-
icon:
|
|
1301
|
+
icon: import_lucide_react7.StrikethroughIcon
|
|
1292
1302
|
},
|
|
1293
1303
|
{
|
|
1294
1304
|
name: "delete-line",
|
|
1295
1305
|
command: () => editor.chain().focus().selectParentNode().deleteSelection().run(),
|
|
1296
1306
|
isActive: () => false,
|
|
1297
1307
|
group: "mark",
|
|
1298
|
-
icon:
|
|
1308
|
+
icon: import_lucide_react7.EraserIcon
|
|
1299
1309
|
},
|
|
1300
1310
|
{
|
|
1301
1311
|
name: "divider",
|
|
1302
1312
|
command: () => editor.chain().focus().setHorizontalRule().run(),
|
|
1303
1313
|
isActive: () => editor.isActive("horizontalRule"),
|
|
1304
1314
|
group: "custom",
|
|
1305
|
-
icon:
|
|
1315
|
+
icon: import_lucide_react7.SeparatorHorizontal
|
|
1306
1316
|
},
|
|
1307
1317
|
{
|
|
1308
1318
|
name: "link",
|
|
@@ -1318,28 +1328,28 @@ var EditorMenuBar = (props) => {
|
|
|
1318
1328
|
},
|
|
1319
1329
|
isActive: () => editor.isActive("link"),
|
|
1320
1330
|
group: "custom",
|
|
1321
|
-
icon:
|
|
1331
|
+
icon: import_lucide_react7.LinkIcon
|
|
1322
1332
|
},
|
|
1323
1333
|
{
|
|
1324
1334
|
name: "left",
|
|
1325
1335
|
command: () => editor.chain().focus().setTextAlign("left").run(),
|
|
1326
1336
|
isActive: () => editor.isActive({ textAlign: "left" }),
|
|
1327
1337
|
group: "alignment",
|
|
1328
|
-
icon:
|
|
1338
|
+
icon: import_lucide_react7.AlignLeft
|
|
1329
1339
|
},
|
|
1330
1340
|
{
|
|
1331
1341
|
name: "center",
|
|
1332
1342
|
command: () => editor.chain().focus().setTextAlign("center").run(),
|
|
1333
1343
|
isActive: () => editor.isActive({ textAlign: "center" }),
|
|
1334
1344
|
group: "alignment",
|
|
1335
|
-
icon:
|
|
1345
|
+
icon: import_lucide_react7.AlignCenter
|
|
1336
1346
|
},
|
|
1337
1347
|
{
|
|
1338
1348
|
name: "right",
|
|
1339
1349
|
command: () => editor.chain().focus().setTextAlign("right").run(),
|
|
1340
1350
|
isActive: () => editor.isActive({ textAlign: "right" }),
|
|
1341
1351
|
group: "alignment",
|
|
1342
|
-
icon:
|
|
1352
|
+
icon: import_lucide_react7.AlignRight
|
|
1343
1353
|
}
|
|
1344
1354
|
],
|
|
1345
1355
|
[editor]
|
|
@@ -1376,13 +1386,13 @@ var EditorMenuBar = (props) => {
|
|
|
1376
1386
|
var import_react9 = require("react");
|
|
1377
1387
|
|
|
1378
1388
|
// src/blocks/button.tsx
|
|
1379
|
-
var
|
|
1389
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1380
1390
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1381
1391
|
var button = {
|
|
1382
1392
|
title: "Button",
|
|
1383
1393
|
description: "Add a call to action button to email.",
|
|
1384
1394
|
searchTerms: ["link", "button", "cta"],
|
|
1385
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1395
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.MousePointer, { className: "mly-h-4 mly-w-4" }),
|
|
1386
1396
|
command: ({ editor, range }) => {
|
|
1387
1397
|
editor.chain().focus().deleteRange(range).setButton().run();
|
|
1388
1398
|
}
|
|
@@ -1391,20 +1401,20 @@ var linkCard = {
|
|
|
1391
1401
|
title: "Link Card",
|
|
1392
1402
|
description: "Add a link card to email.",
|
|
1393
1403
|
searchTerms: ["link", "button", "image"],
|
|
1394
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1404
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
|
|
1395
1405
|
command: ({ editor, range }) => {
|
|
1396
1406
|
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
1397
1407
|
}
|
|
1398
1408
|
};
|
|
1399
1409
|
|
|
1400
1410
|
// src/blocks/image.tsx
|
|
1401
|
-
var
|
|
1411
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1402
1412
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1403
1413
|
var image = {
|
|
1404
1414
|
title: "Image",
|
|
1405
1415
|
description: "Full width image",
|
|
1406
1416
|
searchTerms: ["image"],
|
|
1407
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1417
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react9.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1408
1418
|
command: ({ editor, range }) => {
|
|
1409
1419
|
editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
|
|
1410
1420
|
}
|
|
@@ -1413,20 +1423,20 @@ var logo = {
|
|
|
1413
1423
|
title: "Logo",
|
|
1414
1424
|
description: "Add your brand logo",
|
|
1415
1425
|
searchTerms: ["image", "logo"],
|
|
1416
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1426
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react9.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1417
1427
|
command: ({ editor, range }) => {
|
|
1418
1428
|
editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
|
|
1419
1429
|
}
|
|
1420
1430
|
};
|
|
1421
1431
|
|
|
1422
1432
|
// src/blocks/layout.tsx
|
|
1423
|
-
var
|
|
1433
|
+
var import_lucide_react10 = require("lucide-react");
|
|
1424
1434
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1425
1435
|
var columns = {
|
|
1426
1436
|
title: "Columns",
|
|
1427
1437
|
description: "Add columns to email.",
|
|
1428
1438
|
searchTerms: ["layout", "columns"],
|
|
1429
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1439
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.ColumnsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1430
1440
|
shouldBeHidden: (editor) => {
|
|
1431
1441
|
return editor.isActive("columns");
|
|
1432
1442
|
},
|
|
@@ -1438,7 +1448,7 @@ var section = {
|
|
|
1438
1448
|
title: "Section",
|
|
1439
1449
|
description: "Add a section to email.",
|
|
1440
1450
|
searchTerms: ["layout", "section"],
|
|
1441
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1451
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.RectangleHorizontal, { className: "mly-h-4 mly-w-4" }),
|
|
1442
1452
|
command: ({ editor, range }) => {
|
|
1443
1453
|
editor.chain().focus().deleteRange(range).setSection().run();
|
|
1444
1454
|
}
|
|
@@ -1447,7 +1457,7 @@ var forLoop = {
|
|
|
1447
1457
|
title: "For",
|
|
1448
1458
|
description: "Loop over an array of items.",
|
|
1449
1459
|
searchTerms: ["for", "loop"],
|
|
1450
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1460
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.Repeat2, { className: "mly-h-4 mly-w-4" }),
|
|
1451
1461
|
shouldBeHidden: (editor) => {
|
|
1452
1462
|
return editor.isActive("for");
|
|
1453
1463
|
},
|
|
@@ -1459,7 +1469,7 @@ var spacer = {
|
|
|
1459
1469
|
title: "Spacer",
|
|
1460
1470
|
description: "Add space between blocks.",
|
|
1461
1471
|
searchTerms: ["space", "gap", "divider"],
|
|
1462
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1472
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.MoveVertical, { className: "mly-h-4 mly-w-4" }),
|
|
1463
1473
|
command: ({ editor, range }) => {
|
|
1464
1474
|
editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
|
|
1465
1475
|
}
|
|
@@ -1468,20 +1478,20 @@ var divider = {
|
|
|
1468
1478
|
title: "Divider",
|
|
1469
1479
|
description: "Add a horizontal divider.",
|
|
1470
1480
|
searchTerms: ["divider", "line"],
|
|
1471
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1481
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.Minus, { className: "mly-h-4 mly-w-4" }),
|
|
1472
1482
|
command: ({ editor, range }) => {
|
|
1473
1483
|
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
1474
1484
|
}
|
|
1475
1485
|
};
|
|
1476
1486
|
|
|
1477
1487
|
// src/blocks/list.tsx
|
|
1478
|
-
var
|
|
1488
|
+
var import_lucide_react11 = require("lucide-react");
|
|
1479
1489
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1480
1490
|
var bulletList = {
|
|
1481
1491
|
title: "Bullet List",
|
|
1482
1492
|
description: "Create a simple bullet list.",
|
|
1483
1493
|
searchTerms: ["unordered", "point"],
|
|
1484
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1494
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react11.List, { className: "mly-h-4 mly-w-4" }),
|
|
1485
1495
|
command: ({ editor, range }) => {
|
|
1486
1496
|
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
1487
1497
|
}
|
|
@@ -1490,20 +1500,20 @@ var orderedList = {
|
|
|
1490
1500
|
title: "Numbered List",
|
|
1491
1501
|
description: "Create a list with numbering.",
|
|
1492
1502
|
searchTerms: ["ordered"],
|
|
1493
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1503
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react11.ListOrdered, { className: "mly-h-4 mly-w-4" }),
|
|
1494
1504
|
command: ({ editor, range }) => {
|
|
1495
1505
|
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
1496
1506
|
}
|
|
1497
1507
|
};
|
|
1498
1508
|
|
|
1499
1509
|
// src/blocks/typography.tsx
|
|
1500
|
-
var
|
|
1510
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1501
1511
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1502
1512
|
var text = {
|
|
1503
1513
|
title: "Text",
|
|
1504
1514
|
description: "Just start typing with plain text.",
|
|
1505
1515
|
searchTerms: ["p", "paragraph"],
|
|
1506
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1516
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Text, { className: "mly-h-4 mly-w-4" }),
|
|
1507
1517
|
command: ({ editor, range }) => {
|
|
1508
1518
|
editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
|
|
1509
1519
|
}
|
|
@@ -1512,7 +1522,7 @@ var heading1 = {
|
|
|
1512
1522
|
title: "Heading 1",
|
|
1513
1523
|
description: "Big heading.",
|
|
1514
1524
|
searchTerms: ["title", "big", "large"],
|
|
1515
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1525
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading1, { className: "mly-h-4 mly-w-4" }),
|
|
1516
1526
|
command: ({ editor, range }) => {
|
|
1517
1527
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
1518
1528
|
}
|
|
@@ -1521,7 +1531,7 @@ var heading2 = {
|
|
|
1521
1531
|
title: "Heading 2",
|
|
1522
1532
|
description: "Medium heading.",
|
|
1523
1533
|
searchTerms: ["subtitle", "medium"],
|
|
1524
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1534
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading2, { className: "mly-h-4 mly-w-4" }),
|
|
1525
1535
|
command: ({ editor, range }) => {
|
|
1526
1536
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
1527
1537
|
}
|
|
@@ -1530,7 +1540,7 @@ var heading3 = {
|
|
|
1530
1540
|
title: "Heading 3",
|
|
1531
1541
|
description: "Small heading.",
|
|
1532
1542
|
searchTerms: ["subtitle", "small"],
|
|
1533
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1543
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading3, { className: "mly-h-4 mly-w-4" }),
|
|
1534
1544
|
command: ({ editor, range }) => {
|
|
1535
1545
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
1536
1546
|
}
|
|
@@ -1539,7 +1549,7 @@ var hardBreak = {
|
|
|
1539
1549
|
title: "Hard Break",
|
|
1540
1550
|
description: "Add a break between lines.",
|
|
1541
1551
|
searchTerms: ["break", "line"],
|
|
1542
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1552
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.DivideIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1543
1553
|
command: ({ editor, range }) => {
|
|
1544
1554
|
editor.chain().focus().deleteRange(range).setHardBreak().run();
|
|
1545
1555
|
}
|
|
@@ -1548,7 +1558,7 @@ var blockquote = {
|
|
|
1548
1558
|
title: "Blockquote",
|
|
1549
1559
|
description: "Add blockquote.",
|
|
1550
1560
|
searchTerms: ["quote", "blockquote"],
|
|
1551
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1561
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.TextQuote, { className: "mly-h-4 mly-w-4" }),
|
|
1552
1562
|
command: ({ editor, range }) => {
|
|
1553
1563
|
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
1554
1564
|
}
|
|
@@ -1557,7 +1567,7 @@ var footer = {
|
|
|
1557
1567
|
title: "Footer",
|
|
1558
1568
|
description: "Add a footer text to email.",
|
|
1559
1569
|
searchTerms: ["footer", "text"],
|
|
1560
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1570
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.FootprintsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1561
1571
|
command: ({ editor, range }) => {
|
|
1562
1572
|
editor.chain().focus().deleteRange(range).setFooter().run();
|
|
1563
1573
|
}
|
|
@@ -1566,7 +1576,7 @@ var clearLine = {
|
|
|
1566
1576
|
title: "Clear Line",
|
|
1567
1577
|
description: "Clear the current line.",
|
|
1568
1578
|
searchTerms: ["clear", "line"],
|
|
1569
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1579
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.EraserIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1570
1580
|
command: ({ editor, range }) => {
|
|
1571
1581
|
editor.chain().focus().selectParentNode().deleteSelection().run();
|
|
1572
1582
|
}
|
|
@@ -1620,12 +1630,12 @@ function useMailyContext() {
|
|
|
1620
1630
|
|
|
1621
1631
|
// src/editor/components/for-menu/for-bubble-menu.tsx
|
|
1622
1632
|
var import_react12 = require("@tiptap/react");
|
|
1623
|
-
var
|
|
1633
|
+
var import_lucide_react14 = require("lucide-react");
|
|
1624
1634
|
var import_react13 = require("react");
|
|
1625
1635
|
var import_tippy2 = require("tippy.js");
|
|
1626
1636
|
|
|
1627
1637
|
// src/editor/components/ui/input-autocomplete.tsx
|
|
1628
|
-
var
|
|
1638
|
+
var import_lucide_react13 = require("lucide-react");
|
|
1629
1639
|
var import_react10 = require("react");
|
|
1630
1640
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1631
1641
|
function InputAutocomplete(props) {
|
|
@@ -1688,13 +1698,13 @@ function InputAutocomplete(props) {
|
|
|
1688
1698
|
}
|
|
1689
1699
|
})
|
|
1690
1700
|
),
|
|
1691
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1701
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react13.CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
1692
1702
|
] }),
|
|
1693
1703
|
filteredAutoCompleteOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mly-absolute mly-left-0 mly-top-8 mly-z-10 mly-w-full mly-rounded-lg mly-bg-white mly-p-0.5 mly-shadow-md", children: filteredAutoCompleteOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1694
1704
|
"button",
|
|
1695
1705
|
{
|
|
1696
1706
|
type: "button",
|
|
1697
|
-
className: "mly-w-full mly-truncate mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-midnight-gray
|
|
1707
|
+
className: "mly-w-full mly-truncate mly-rounded-md mly-px-2 mly-py-1 mly-text-left mly-text-sm mly-text-midnight-gray aria-selected:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none",
|
|
1698
1708
|
onClick: () => {
|
|
1699
1709
|
var _a2;
|
|
1700
1710
|
onValueChange(option);
|
|
@@ -1744,7 +1754,13 @@ function ForBubbleMenu(props) {
|
|
|
1744
1754
|
}, [editor]);
|
|
1745
1755
|
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
1746
1756
|
shouldShow: ({ editor: editor2 }) => {
|
|
1747
|
-
|
|
1757
|
+
var _a;
|
|
1758
|
+
const activeForNode = getClosestNodeByName(editor2, "for");
|
|
1759
|
+
const sectionNodeChildren = activeForNode ? (_a = (0, import_react12.findChildren)(activeForNode == null ? void 0 : activeForNode.node, (node) => {
|
|
1760
|
+
return node.type.name === "section";
|
|
1761
|
+
})) == null ? void 0 : _a[0] : null;
|
|
1762
|
+
const hasActiveSectionNodeChildren = sectionNodeChildren && editor2.isActive("section");
|
|
1763
|
+
if (isTextSelected(editor2) || hasActiveSectionNodeChildren) {
|
|
1748
1764
|
return false;
|
|
1749
1765
|
}
|
|
1750
1766
|
return editor2.isActive("for");
|
|
@@ -1779,7 +1795,7 @@ function ForBubbleMenu(props) {
|
|
|
1779
1795
|
"button",
|
|
1780
1796
|
{
|
|
1781
1797
|
className: cn(
|
|
1782
|
-
"mly-
|
|
1798
|
+
"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",
|
|
1783
1799
|
!isValidEachKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1784
1800
|
),
|
|
1785
1801
|
onClick: () => {
|
|
@@ -1790,8 +1806,8 @@ function ForBubbleMenu(props) {
|
|
|
1790
1806
|
}, 0);
|
|
1791
1807
|
},
|
|
1792
1808
|
children: [
|
|
1793
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1794
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: state == null ? void 0 : state.each })
|
|
1809
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react14.Braces, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "mly-min-w-0 mly-truncate", children: state == null ? void 0 : state.each })
|
|
1795
1811
|
]
|
|
1796
1812
|
}
|
|
1797
1813
|
),
|
|
@@ -1846,30 +1862,30 @@ function ForBubbleMenu(props) {
|
|
|
1846
1862
|
|
|
1847
1863
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
1848
1864
|
var import_react23 = require("@tiptap/react");
|
|
1849
|
-
var
|
|
1865
|
+
var import_lucide_react18 = require("lucide-react");
|
|
1850
1866
|
|
|
1851
1867
|
// src/editor/components/alignment-switch.tsx
|
|
1852
|
-
var
|
|
1868
|
+
var import_lucide_react15 = require("lucide-react");
|
|
1853
1869
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1854
1870
|
function AlignmentSwitch(props) {
|
|
1855
1871
|
const { alignment = "left", onAlignmentChange } = props;
|
|
1856
1872
|
const activeAlignment = {
|
|
1857
1873
|
left: {
|
|
1858
|
-
icon:
|
|
1874
|
+
icon: import_lucide_react15.AlignLeft,
|
|
1859
1875
|
tooltip: "Align Left",
|
|
1860
1876
|
onClick: () => {
|
|
1861
1877
|
onAlignmentChange("center");
|
|
1862
1878
|
}
|
|
1863
1879
|
},
|
|
1864
1880
|
center: {
|
|
1865
|
-
icon:
|
|
1881
|
+
icon: import_lucide_react15.AlignCenter,
|
|
1866
1882
|
tooltip: "Align Center",
|
|
1867
1883
|
onClick: () => {
|
|
1868
1884
|
onAlignmentChange("right");
|
|
1869
1885
|
}
|
|
1870
1886
|
},
|
|
1871
1887
|
right: {
|
|
1872
|
-
icon:
|
|
1888
|
+
icon: import_lucide_react15.AlignRight,
|
|
1873
1889
|
tooltip: "Align Right",
|
|
1874
1890
|
onClick: () => {
|
|
1875
1891
|
onAlignmentChange("left");
|
|
@@ -1887,7 +1903,7 @@ function AlignmentSwitch(props) {
|
|
|
1887
1903
|
}
|
|
1888
1904
|
|
|
1889
1905
|
// src/editor/components/ui/link-input-popover.tsx
|
|
1890
|
-
var
|
|
1906
|
+
var import_lucide_react16 = require("lucide-react");
|
|
1891
1907
|
var import_react14 = require("react");
|
|
1892
1908
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1893
1909
|
function LinkInputPopover(props) {
|
|
@@ -1895,10 +1911,12 @@ function LinkInputPopover(props) {
|
|
|
1895
1911
|
defaultValue = "",
|
|
1896
1912
|
onValueChange,
|
|
1897
1913
|
tooltip,
|
|
1898
|
-
icon: Icon =
|
|
1914
|
+
icon: Icon = import_lucide_react16.Link
|
|
1899
1915
|
} = props;
|
|
1900
1916
|
const [isOpen, setIsOpen] = (0, import_react14.useState)(false);
|
|
1917
|
+
const [protocol, setProtocol] = (0, import_react14.useState)("https://");
|
|
1901
1918
|
const linkInputRef = (0, import_react14.useRef)(null);
|
|
1919
|
+
const defaultUrlWithoutProtocol = defaultValue.replace(/https?:\/\//, "");
|
|
1902
1920
|
const popoverButton = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1903
1921
|
BaseButton,
|
|
1904
1922
|
{
|
|
@@ -1906,10 +1924,14 @@ function LinkInputPopover(props) {
|
|
|
1906
1924
|
size: "sm",
|
|
1907
1925
|
type: "button",
|
|
1908
1926
|
className: "mly-size-7",
|
|
1909
|
-
"data-state": !!
|
|
1927
|
+
"data-state": !!defaultUrlWithoutProtocol,
|
|
1910
1928
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { className: "mly-h-3 mly-w-3 mly-shrink-0 mly-stroke-[2.5] mly-text-midnight-gray" })
|
|
1911
1929
|
}
|
|
1912
1930
|
) });
|
|
1931
|
+
const normalizeProtocol = (value, p = protocol) => {
|
|
1932
|
+
value = value.replace(/https?:\/\//, "");
|
|
1933
|
+
return p + value;
|
|
1934
|
+
};
|
|
1913
1935
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Popover, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
1914
1936
|
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Tooltip, { children: [
|
|
1915
1937
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
@@ -1920,7 +1942,7 @@ function LinkInputPopover(props) {
|
|
|
1920
1942
|
{
|
|
1921
1943
|
align: "end",
|
|
1922
1944
|
side: "top",
|
|
1923
|
-
className: "mly-w-max mly-rounded-
|
|
1945
|
+
className: "mly-w-max mly-rounded-none mly-border-none mly-bg-transparent !mly-p-0 mly-shadow-none",
|
|
1924
1946
|
sideOffset: 8,
|
|
1925
1947
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
1926
1948
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -1932,23 +1954,68 @@ function LinkInputPopover(props) {
|
|
|
1932
1954
|
if (!input) {
|
|
1933
1955
|
return;
|
|
1934
1956
|
}
|
|
1935
|
-
|
|
1957
|
+
let value = normalizeProtocol(input.value);
|
|
1958
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
1936
1959
|
setIsOpen(false);
|
|
1937
1960
|
},
|
|
1938
1961
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "relative", children: [
|
|
1939
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
1940
|
-
"
|
|
1962
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mly-relative", children: [
|
|
1964
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1965
|
+
"select",
|
|
1966
|
+
{
|
|
1967
|
+
className: "hover:text-accent-foreground mly-peer mly-inline-flex mly-h-full mly-appearance-none mly-items-center mly-rounded-none mly-rounded-s-lg mly-border mly-border-gray-300 mly-bg-gray-50 mly-pe-8 mly-ps-3 mly-text-sm mly-text-gray-700 mly-transition-shadow hover:mly-bg-gray-100 focus:mly-z-10 focus-visible:mly-outline-none disabled:mly-pointer-events-none disabled:mly-cursor-not-allowed disabled:mly-opacity-50",
|
|
1968
|
+
"aria-label": "Protocol",
|
|
1969
|
+
value: protocol,
|
|
1970
|
+
onChange: (e) => {
|
|
1971
|
+
var _a;
|
|
1972
|
+
const protocol2 = e.target.value;
|
|
1973
|
+
setProtocol(protocol2);
|
|
1974
|
+
const newValue = normalizeProtocol(
|
|
1975
|
+
((_a = linkInputRef.current) == null ? void 0 : _a.value) || "",
|
|
1976
|
+
protocol2
|
|
1977
|
+
);
|
|
1978
|
+
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
1979
|
+
},
|
|
1980
|
+
children: [
|
|
1981
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "https://", children: "https://" }),
|
|
1982
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("option", { value: "http://", children: "http://" })
|
|
1983
|
+
]
|
|
1984
|
+
}
|
|
1985
|
+
),
|
|
1986
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-0 mly-z-10 mly-flex mly-h-full mly-w-9 mly-items-center mly-justify-center mly-text-gray-600 peer-disabled:mly-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1987
|
+
import_lucide_react16.ChevronDownIcon,
|
|
1988
|
+
{
|
|
1989
|
+
size: 16,
|
|
1990
|
+
strokeWidth: 2,
|
|
1991
|
+
"aria-hidden": "true",
|
|
1992
|
+
role: "img"
|
|
1993
|
+
}
|
|
1994
|
+
) })
|
|
1995
|
+
] }),
|
|
1996
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1997
|
+
"input",
|
|
1998
|
+
{
|
|
1999
|
+
value: defaultUrlWithoutProtocol,
|
|
2000
|
+
onChange: (e) => {
|
|
2001
|
+
let value = normalizeProtocol(e.target.value);
|
|
2002
|
+
onValueChange == null ? void 0 : onValueChange(value);
|
|
2003
|
+
},
|
|
2004
|
+
ref: linkInputRef,
|
|
2005
|
+
type: "text",
|
|
2006
|
+
className: "-mly-ms-px mly-block mly-h-8 mly-w-52 mly-rounded-lg mly-rounded-s-none mly-border mly-border-gray-300 mly-px-2 mly-py-1.5 mly-pr-6 mly-text-sm mly-shadow-sm mly-outline-none placeholder:mly-text-gray-400",
|
|
2007
|
+
placeholder: "maily.to/"
|
|
2008
|
+
}
|
|
2009
|
+
)
|
|
2010
|
+
] }),
|
|
2011
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-1.5 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2012
|
+
import_lucide_react16.CornerDownLeft,
|
|
1941
2013
|
{
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
},
|
|
1946
|
-
ref: linkInputRef,
|
|
1947
|
-
type: "url",
|
|
1948
|
-
className: "mly-h-7 mly-w-52 mly-rounded-md mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
2014
|
+
className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray",
|
|
2015
|
+
"aria-hidden": "true",
|
|
2016
|
+
role: "img"
|
|
1949
2017
|
}
|
|
1950
|
-
)
|
|
1951
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react15.CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
2018
|
+
) })
|
|
1952
2019
|
] })
|
|
1953
2020
|
}
|
|
1954
2021
|
)
|
|
@@ -2300,7 +2367,7 @@ var useEvent = (handler) => {
|
|
|
2300
2367
|
|
|
2301
2368
|
// src/editor/nodes/image/image-view.tsx
|
|
2302
2369
|
var import_react16 = require("@tiptap/react");
|
|
2303
|
-
var
|
|
2370
|
+
var import_lucide_react17 = require("lucide-react");
|
|
2304
2371
|
var import_react17 = require("react");
|
|
2305
2372
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2306
2373
|
var MIN_WIDTH = 20;
|
|
@@ -2308,6 +2375,7 @@ var MAX_WIDTH = 600;
|
|
|
2308
2375
|
function ImageView(props) {
|
|
2309
2376
|
const { node, updateAttributes: updateAttributes2, selected } = props;
|
|
2310
2377
|
const [status, setStatus] = (0, import_react17.useState)("idle");
|
|
2378
|
+
const wrapperRef = (0, import_react17.useRef)(null);
|
|
2311
2379
|
const imgRef = (0, import_react17.useRef)(null);
|
|
2312
2380
|
const [resizingStyle, setResizingStyle] = (0, import_react17.useState)();
|
|
2313
2381
|
const handleMouseDown = useEvent(
|
|
@@ -2382,6 +2450,21 @@ function ImageView(props) {
|
|
|
2382
2450
|
img.src = src;
|
|
2383
2451
|
img.onload = () => {
|
|
2384
2452
|
setStatus("loaded");
|
|
2453
|
+
const { naturalWidth, naturalHeight } = img;
|
|
2454
|
+
const wrapper = wrapperRef == null ? void 0 : wrapperRef.current;
|
|
2455
|
+
if (!wrapper || width !== "auto" || !naturalWidth) {
|
|
2456
|
+
return;
|
|
2457
|
+
}
|
|
2458
|
+
const wrapperWidth = wrapper.offsetWidth;
|
|
2459
|
+
const aspectRatio = naturalWidth / naturalHeight;
|
|
2460
|
+
const calculatedHeight = Math.min(
|
|
2461
|
+
wrapperWidth / aspectRatio,
|
|
2462
|
+
naturalHeight
|
|
2463
|
+
);
|
|
2464
|
+
updateAttributes2({
|
|
2465
|
+
width: Math.min(wrapperWidth, naturalWidth),
|
|
2466
|
+
height: Math.min(calculatedHeight, naturalHeight)
|
|
2467
|
+
});
|
|
2385
2468
|
};
|
|
2386
2469
|
img.onerror = () => {
|
|
2387
2470
|
setStatus("error");
|
|
@@ -2412,6 +2495,7 @@ function ImageView(props) {
|
|
|
2412
2495
|
left: { marginRight: "auto" },
|
|
2413
2496
|
right: { marginLeft: "auto" }
|
|
2414
2497
|
}[alignment] || {}),
|
|
2498
|
+
ref: wrapperRef,
|
|
2415
2499
|
children: [
|
|
2416
2500
|
!hasImageSrc && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImageStatusLabel, { status: "idle" }),
|
|
2417
2501
|
hasImageSrc && status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImageStatusLabel, { status: "loading" }),
|
|
@@ -2467,15 +2551,15 @@ function ImageStatusLabel(props) {
|
|
|
2467
2551
|
),
|
|
2468
2552
|
children: [
|
|
2469
2553
|
status === "idle" && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
2470
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2554
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react17.ImageOffIcon, { className: "mly-size-4 mly-stroke-[2.5]" }),
|
|
2471
2555
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "No image selected" })
|
|
2472
2556
|
] }),
|
|
2473
2557
|
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
2474
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2558
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react17.Loader2, { className: "mly-size-4 mly-animate-spin mly-stroke-[2.5]" }),
|
|
2475
2559
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "Loading image..." })
|
|
2476
2560
|
] }),
|
|
2477
2561
|
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
2478
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2562
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react17.Ban, { className: "mly-size-4 mly-stroke-[2.5]" }),
|
|
2479
2563
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "Error loading image" })
|
|
2480
2564
|
] })
|
|
2481
2565
|
]
|
|
@@ -2734,7 +2818,7 @@ function ImageBubbleMenu(props) {
|
|
|
2734
2818
|
}
|
|
2735
2819
|
},
|
|
2736
2820
|
tooltip: "Source URL",
|
|
2737
|
-
icon:
|
|
2821
|
+
icon: import_lucide_react18.ImageDown
|
|
2738
2822
|
}
|
|
2739
2823
|
),
|
|
2740
2824
|
state.isImageActive && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
@@ -2792,122 +2876,15 @@ function ImageBubbleMenu(props) {
|
|
|
2792
2876
|
|
|
2793
2877
|
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2794
2878
|
var import_react25 = require("@tiptap/react");
|
|
2879
|
+
var import_lucide_react19 = require("lucide-react");
|
|
2795
2880
|
var import_react26 = require("react");
|
|
2796
2881
|
var import_tippy4 = require("tippy.js");
|
|
2797
2882
|
|
|
2798
|
-
// src/editor/components/section-menu/use-section-state.tsx
|
|
2799
|
-
var import_react24 = require("@tiptap/react");
|
|
2800
|
-
var import_fast_deep_equal4 = __toESM(require("fast-deep-equal"));
|
|
2801
|
-
var useSectionState = (editor) => {
|
|
2802
|
-
const states = (0, import_react24.useEditorState)({
|
|
2803
|
-
editor,
|
|
2804
|
-
selector: (ctx) => {
|
|
2805
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2806
|
-
return {
|
|
2807
|
-
currentAlignment: ((_a = ctx.editor.getAttributes("section")) == null ? void 0 : _a.align) || "left",
|
|
2808
|
-
currentBorderRadius: Number((_b = ctx.editor.getAttributes("section")) == null ? void 0 : _b.borderRadius) || 0,
|
|
2809
|
-
currentBackgroundColor: ((_c = ctx.editor.getAttributes("section")) == null ? void 0 : _c.backgroundColor) || DEFAULT_SECTION_BACKGROUND_COLOR,
|
|
2810
|
-
currentBorderColor: ((_d = ctx.editor.getAttributes("section")) == null ? void 0 : _d.borderColor) || DEFAULT_SECTION_BORDER_COLOR,
|
|
2811
|
-
currentBorderWidth: Number((_e = ctx.editor.getAttributes("section")) == null ? void 0 : _e.borderWidth) || 0,
|
|
2812
|
-
currentMarginTop: Number((_f = ctx.editor.getAttributes("section")) == null ? void 0 : _f.marginTop) || 0,
|
|
2813
|
-
currentMarginRight: Number((_g = ctx.editor.getAttributes("section")) == null ? void 0 : _g.marginRight) || 0,
|
|
2814
|
-
currentMarginBottom: Number((_h = ctx.editor.getAttributes("section")) == null ? void 0 : _h.marginBottom) || 0,
|
|
2815
|
-
currentMarginLeft: Number((_i = ctx.editor.getAttributes("section")) == null ? void 0 : _i.marginLeft) || 0,
|
|
2816
|
-
currentPaddingTop: Number((_j = ctx.editor.getAttributes("section")) == null ? void 0 : _j.paddingTop) || 0,
|
|
2817
|
-
currentPaddingRight: Number((_k = ctx.editor.getAttributes("section")) == null ? void 0 : _k.paddingRight) || 0,
|
|
2818
|
-
currentPaddingBottom: Number((_l = ctx.editor.getAttributes("section")) == null ? void 0 : _l.paddingBottom) || 0,
|
|
2819
|
-
currentPaddingLeft: Number((_m = ctx.editor.getAttributes("section")) == null ? void 0 : _m.paddingLeft) || 0,
|
|
2820
|
-
isColumnsActive: ctx.editor.isActive("columns"),
|
|
2821
|
-
currentShowIfKey: ((_n = ctx.editor.getAttributes("section")) == null ? void 0 : _n.showIfKey) || ""
|
|
2822
|
-
};
|
|
2823
|
-
},
|
|
2824
|
-
equalityFn: import_fast_deep_equal4.default
|
|
2825
|
-
});
|
|
2826
|
-
return states;
|
|
2827
|
-
};
|
|
2828
|
-
|
|
2829
|
-
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2830
|
-
var import_lucide_react18 = require("lucide-react");
|
|
2831
|
-
|
|
2832
|
-
// src/editor/components/ui/color-picker.tsx
|
|
2833
|
-
var import_react_colorful = require("react-colorful");
|
|
2834
|
-
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2835
|
-
function ColorPicker(props) {
|
|
2836
|
-
const {
|
|
2837
|
-
color,
|
|
2838
|
-
onColorChange,
|
|
2839
|
-
borderColor,
|
|
2840
|
-
backgroundColor,
|
|
2841
|
-
tooltip,
|
|
2842
|
-
className,
|
|
2843
|
-
children
|
|
2844
|
-
} = props;
|
|
2845
|
-
const handleColorChange = (color2) => {
|
|
2846
|
-
queueMicrotask(() => {
|
|
2847
|
-
onColorChange(color2);
|
|
2848
|
-
});
|
|
2849
|
-
};
|
|
2850
|
-
const popoverButton = /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverTrigger, { asChild: true, children: children || /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2851
|
-
BaseButton,
|
|
2852
|
-
{
|
|
2853
|
-
variant: "ghost",
|
|
2854
|
-
className: "!mly-size-7 mly-shrink-0",
|
|
2855
|
-
size: "sm",
|
|
2856
|
-
type: "button",
|
|
2857
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2858
|
-
"div",
|
|
2859
|
-
{
|
|
2860
|
-
className: cn(
|
|
2861
|
-
"mly-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
|
|
2862
|
-
className
|
|
2863
|
-
),
|
|
2864
|
-
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
2865
|
-
backgroundColor: backgroundColor || "transparent"
|
|
2866
|
-
})
|
|
2867
|
-
}
|
|
2868
|
-
)
|
|
2869
|
-
}
|
|
2870
|
-
) });
|
|
2871
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Popover, { children: [
|
|
2872
|
-
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Tooltip, { children: [
|
|
2873
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
2874
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
2875
|
-
] }) : popoverButton,
|
|
2876
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2877
|
-
PopoverContent,
|
|
2878
|
-
{
|
|
2879
|
-
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
2880
|
-
sideOffset: 8,
|
|
2881
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
2882
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2883
|
-
import_react_colorful.HexColorPicker,
|
|
2884
|
-
{
|
|
2885
|
-
color,
|
|
2886
|
-
onChange: handleColorChange,
|
|
2887
|
-
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
2888
|
-
}
|
|
2889
|
-
),
|
|
2890
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2891
|
-
import_react_colorful.HexColorInput,
|
|
2892
|
-
{
|
|
2893
|
-
alpha: true,
|
|
2894
|
-
color,
|
|
2895
|
-
onChange: handleColorChange,
|
|
2896
|
-
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",
|
|
2897
|
-
prefixed: true
|
|
2898
|
-
}
|
|
2899
|
-
)
|
|
2900
|
-
] })
|
|
2901
|
-
}
|
|
2902
|
-
)
|
|
2903
|
-
] });
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
2883
|
// src/editor/components/icons/border-color.tsx
|
|
2907
|
-
var
|
|
2884
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2908
2885
|
function BorderColor(props) {
|
|
2909
2886
|
const _a = props, { topBarClassName } = _a, rest = __objRest(_a, ["topBarClassName"]);
|
|
2910
|
-
return /* @__PURE__ */ (0,
|
|
2887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2911
2888
|
"svg",
|
|
2912
2889
|
__spreadProps(__spreadValues({
|
|
2913
2890
|
width: 11,
|
|
@@ -2917,8 +2894,8 @@ function BorderColor(props) {
|
|
|
2917
2894
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2918
2895
|
}, rest), {
|
|
2919
2896
|
children: [
|
|
2920
|
-
/* @__PURE__ */ (0,
|
|
2921
|
-
/* @__PURE__ */ (0,
|
|
2897
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M0 11H10.6667", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
2898
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2922
2899
|
"path",
|
|
2923
2900
|
{
|
|
2924
2901
|
d: "M0.666504 9V6.33333C0.666504 3.38781 3.05432 1 5.99984 1H10.6665",
|
|
@@ -2932,9 +2909,9 @@ function BorderColor(props) {
|
|
|
2932
2909
|
}
|
|
2933
2910
|
|
|
2934
2911
|
// src/editor/components/icons/margin-icon.tsx
|
|
2935
|
-
var
|
|
2912
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2936
2913
|
function MarginIcon(props) {
|
|
2937
|
-
return /* @__PURE__ */ (0,
|
|
2914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2938
2915
|
"svg",
|
|
2939
2916
|
__spreadProps(__spreadValues({
|
|
2940
2917
|
width: 12,
|
|
@@ -2943,7 +2920,7 @@ function MarginIcon(props) {
|
|
|
2943
2920
|
fill: "none",
|
|
2944
2921
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2945
2922
|
}, props), {
|
|
2946
|
-
children: /* @__PURE__ */ (0,
|
|
2923
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2947
2924
|
"path",
|
|
2948
2925
|
{
|
|
2949
2926
|
d: "M10.5 10.499V1.49902M1.5 10.499V1.49902M4.5 5.99902C4.5 5.53308 4.5 5.30011 4.57612 5.11634C4.67761 4.87131 4.87229 4.67664 5.11732 4.57514C5.30109 4.49902 5.53406 4.49902 6 4.49902C6.46594 4.49902 6.69891 4.49902 6.88268 4.57514C7.12771 4.67664 7.32239 4.87131 7.42388 5.11634C7.5 5.30011 7.5 5.53308 7.5 5.99902C7.5 6.46496 7.5 6.69794 7.42388 6.88171C7.32239 7.12673 7.12771 7.32141 6.88268 7.4229C6.69891 7.49902 6.46594 7.49902 6 7.49902C5.53406 7.49902 5.30109 7.49902 5.11732 7.4229C4.87229 7.32141 4.67761 7.12673 4.57612 6.88171C4.5 6.69794 4.5 6.46496 4.5 5.99902Z",
|
|
@@ -2957,9 +2934,9 @@ function MarginIcon(props) {
|
|
|
2957
2934
|
}
|
|
2958
2935
|
|
|
2959
2936
|
// src/editor/components/icons/padding-icon.tsx
|
|
2960
|
-
var
|
|
2937
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2961
2938
|
function PaddingIcon(props) {
|
|
2962
|
-
return /* @__PURE__ */ (0,
|
|
2939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2963
2940
|
"svg",
|
|
2964
2941
|
__spreadProps(__spreadValues({
|
|
2965
2942
|
width: 10,
|
|
@@ -2968,7 +2945,7 @@ function PaddingIcon(props) {
|
|
|
2968
2945
|
fill: "none",
|
|
2969
2946
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2970
2947
|
}, props), {
|
|
2971
|
-
children: /* @__PURE__ */ (0,
|
|
2948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2972
2949
|
"path",
|
|
2973
2950
|
{
|
|
2974
2951
|
d: "M9.50244 0.501526L9.10244 0.501526C8.54239 0.501526 8.26236 0.501526 8.04845 0.610519C7.86029 0.706392 7.70731 0.859373 7.61144 1.04754C7.50244 1.26145 7.50244 1.54147 7.50244 2.10153V7.90153C7.50244 8.46158 7.50244 8.74161 7.61144 8.95552C7.70731 9.14368 7.86029 9.29666 8.04845 9.39253C8.26236 9.50153 8.54239 9.50153 9.10244 9.50153H9.50244M0.502441 0.501527L0.902441 0.501527C1.46249 0.501527 1.74252 0.501527 1.95643 0.61052C2.14459 0.706393 2.29757 0.859374 2.39345 1.04754C2.50244 1.26145 2.50244 1.54147 2.50244 2.10153L2.50244 7.90153C2.50244 8.46158 2.50244 8.74161 2.39345 8.95552C2.29757 9.14368 2.14459 9.29666 1.95643 9.39253C1.74252 9.50153 1.46249 9.50153 0.902442 9.50153H0.502442M4.99994 7.99903V1.99903",
|
|
@@ -2981,39 +2958,150 @@ function PaddingIcon(props) {
|
|
|
2981
2958
|
);
|
|
2982
2959
|
}
|
|
2983
2960
|
|
|
2984
|
-
// src/editor/components/
|
|
2985
|
-
var
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
2961
|
+
// src/editor/components/ui/color-picker.tsx
|
|
2962
|
+
var import_react_colorful = require("react-colorful");
|
|
2963
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2964
|
+
function ColorPicker(props) {
|
|
2965
|
+
const {
|
|
2966
|
+
color,
|
|
2967
|
+
onColorChange,
|
|
2968
|
+
borderColor,
|
|
2969
|
+
backgroundColor,
|
|
2970
|
+
tooltip,
|
|
2971
|
+
className,
|
|
2972
|
+
children
|
|
2973
|
+
} = props;
|
|
2974
|
+
const handleColorChange = (color2) => {
|
|
2975
|
+
queueMicrotask(() => {
|
|
2976
|
+
onColorChange(color2);
|
|
2977
|
+
});
|
|
2978
|
+
};
|
|
2979
|
+
const popoverButton = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverTrigger, { asChild: true, children: children || /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2980
|
+
BaseButton,
|
|
2981
|
+
{
|
|
2982
|
+
variant: "ghost",
|
|
2983
|
+
className: "!mly-size-7 mly-shrink-0",
|
|
2984
|
+
size: "sm",
|
|
2985
|
+
type: "button",
|
|
2986
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2987
|
+
"div",
|
|
2988
|
+
{
|
|
2989
|
+
className: cn(
|
|
2990
|
+
"mly-h-4 mly-w-4 mly-shrink-0 mly-rounded mly-border-2 mly-border-gray-700",
|
|
2991
|
+
className
|
|
2992
|
+
),
|
|
2993
|
+
style: __spreadProps(__spreadValues({}, borderColor ? { borderColor } : {}), {
|
|
2994
|
+
backgroundColor: backgroundColor || "transparent"
|
|
2995
|
+
})
|
|
2996
|
+
}
|
|
2997
|
+
)
|
|
2998
|
+
}
|
|
2999
|
+
) });
|
|
3000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Popover, { children: [
|
|
3001
|
+
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Tooltip, { children: [
|
|
3002
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TooltipTrigger, { asChild: true, children: popoverButton }),
|
|
3003
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
3004
|
+
] }) : popoverButton,
|
|
3005
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3006
|
+
PopoverContent,
|
|
3007
|
+
{
|
|
3008
|
+
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
3009
|
+
sideOffset: 8,
|
|
3010
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
3011
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3012
|
+
import_react_colorful.HexColorPicker,
|
|
3013
|
+
{
|
|
3014
|
+
color,
|
|
3015
|
+
onChange: handleColorChange,
|
|
3016
|
+
className: "mly-flex !mly-w-full mly-flex-col mly-gap-4"
|
|
3017
|
+
}
|
|
3018
|
+
),
|
|
3019
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3020
|
+
import_react_colorful.HexColorInput,
|
|
3021
|
+
{
|
|
3022
|
+
alpha: true,
|
|
3023
|
+
color,
|
|
3024
|
+
onChange: handleColorChange,
|
|
3025
|
+
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",
|
|
3026
|
+
prefixed: true
|
|
3027
|
+
}
|
|
3028
|
+
)
|
|
3029
|
+
] })
|
|
3000
3030
|
}
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3031
|
+
)
|
|
3032
|
+
] });
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
// src/editor/components/section-menu/use-section-state.tsx
|
|
3036
|
+
var import_react24 = require("@tiptap/react");
|
|
3037
|
+
var import_fast_deep_equal4 = __toESM(require("fast-deep-equal"));
|
|
3038
|
+
var useSectionState = (editor) => {
|
|
3039
|
+
const states = (0, import_react24.useEditorState)({
|
|
3040
|
+
editor,
|
|
3041
|
+
selector: (ctx) => {
|
|
3042
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
3043
|
+
return {
|
|
3044
|
+
currentAlignment: ((_a = ctx.editor.getAttributes("section")) == null ? void 0 : _a.align) || "left",
|
|
3045
|
+
currentBorderRadius: Number((_b = ctx.editor.getAttributes("section")) == null ? void 0 : _b.borderRadius) || 0,
|
|
3046
|
+
currentBackgroundColor: ((_c = ctx.editor.getAttributes("section")) == null ? void 0 : _c.backgroundColor) || DEFAULT_SECTION_BACKGROUND_COLOR,
|
|
3047
|
+
currentBorderColor: ((_d = ctx.editor.getAttributes("section")) == null ? void 0 : _d.borderColor) || DEFAULT_SECTION_BORDER_COLOR,
|
|
3048
|
+
currentBorderWidth: Number((_e = ctx.editor.getAttributes("section")) == null ? void 0 : _e.borderWidth) || 0,
|
|
3049
|
+
currentMarginTop: Number((_f = ctx.editor.getAttributes("section")) == null ? void 0 : _f.marginTop) || 0,
|
|
3050
|
+
currentMarginRight: Number((_g = ctx.editor.getAttributes("section")) == null ? void 0 : _g.marginRight) || 0,
|
|
3051
|
+
currentMarginBottom: Number((_h = ctx.editor.getAttributes("section")) == null ? void 0 : _h.marginBottom) || 0,
|
|
3052
|
+
currentMarginLeft: Number((_i = ctx.editor.getAttributes("section")) == null ? void 0 : _i.marginLeft) || 0,
|
|
3053
|
+
currentPaddingTop: Number((_j = ctx.editor.getAttributes("section")) == null ? void 0 : _j.paddingTop) || 0,
|
|
3054
|
+
currentPaddingRight: Number((_k = ctx.editor.getAttributes("section")) == null ? void 0 : _k.paddingRight) || 0,
|
|
3055
|
+
currentPaddingBottom: Number((_l = ctx.editor.getAttributes("section")) == null ? void 0 : _l.paddingBottom) || 0,
|
|
3056
|
+
currentPaddingLeft: Number((_m = ctx.editor.getAttributes("section")) == null ? void 0 : _m.paddingLeft) || 0,
|
|
3057
|
+
isColumnsActive: ctx.editor.isActive("columns"),
|
|
3058
|
+
currentShowIfKey: ((_n = ctx.editor.getAttributes("section")) == null ? void 0 : _n.showIfKey) || ""
|
|
3059
|
+
};
|
|
3060
|
+
},
|
|
3061
|
+
equalityFn: import_fast_deep_equal4.default
|
|
3062
|
+
});
|
|
3063
|
+
return states;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
3067
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3068
|
+
function SectionBubbleMenu(props) {
|
|
3069
|
+
const { appendTo, editor } = props;
|
|
3070
|
+
if (!editor) {
|
|
3071
|
+
return null;
|
|
3072
|
+
}
|
|
3073
|
+
const getReferenceClientRect = (0, import_react26.useCallback)(() => {
|
|
3074
|
+
const renderContainer = getRenderContainer(editor, "section");
|
|
3075
|
+
const rect = (renderContainer == null ? void 0 : renderContainer.getBoundingClientRect()) || new DOMRect(-1e3, -1e3, 0, 0);
|
|
3076
|
+
return rect;
|
|
3077
|
+
}, [editor]);
|
|
3078
|
+
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
3079
|
+
shouldShow: ({ editor: editor2 }) => {
|
|
3080
|
+
var _a;
|
|
3081
|
+
const activeSectionNode = getClosestNodeByName(editor2, "section");
|
|
3082
|
+
const forNodeChildren = activeSectionNode ? (_a = (0, import_react25.findChildren)(activeSectionNode == null ? void 0 : activeSectionNode.node, (node) => {
|
|
3083
|
+
return node.type.name === "for";
|
|
3084
|
+
})) == null ? void 0 : _a[0] : null;
|
|
3085
|
+
const hasActiveForNodeChildren = forNodeChildren && editor2.isActive("for");
|
|
3086
|
+
if (isTextSelected(editor2) || hasActiveForNodeChildren) {
|
|
3087
|
+
return false;
|
|
3088
|
+
}
|
|
3089
|
+
return editor2.isActive("section");
|
|
3090
|
+
},
|
|
3091
|
+
tippyOptions: {
|
|
3092
|
+
offset: [0, 8],
|
|
3093
|
+
popperOptions: {
|
|
3094
|
+
modifiers: [{ name: "flip", enabled: false }]
|
|
3095
|
+
},
|
|
3096
|
+
getReferenceClientRect,
|
|
3097
|
+
appendTo: () => appendTo == null ? void 0 : appendTo.current,
|
|
3098
|
+
plugins: [import_tippy4.sticky],
|
|
3099
|
+
sticky: "popper",
|
|
3100
|
+
maxWidth: "auto"
|
|
3101
|
+
},
|
|
3102
|
+
pluginKey: "sectionBubbleMenu"
|
|
3103
|
+
});
|
|
3104
|
+
const state = useSectionState(editor);
|
|
3017
3105
|
const borderRadiusOptions = [
|
|
3018
3106
|
{ value: "0", label: "Sharp" },
|
|
3019
3107
|
{ value: "6", label: "Smooth" },
|
|
@@ -3186,7 +3274,7 @@ function SectionBubbleMenu(props) {
|
|
|
3186
3274
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3187
3275
|
BubbleMenuButton,
|
|
3188
3276
|
{
|
|
3189
|
-
icon:
|
|
3277
|
+
icon: import_lucide_react19.Trash,
|
|
3190
3278
|
tooltip: "Delete Section",
|
|
3191
3279
|
command: () => {
|
|
3192
3280
|
deleteNode(editor, "section");
|
|
@@ -3208,9 +3296,9 @@ function SectionBubbleMenu(props) {
|
|
|
3208
3296
|
state.isColumnsActive && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
3209
3297
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Divider, {}),
|
|
3210
3298
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Popover, { children: [
|
|
3211
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(PopoverTrigger, { className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(PopoverTrigger, { className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-px-1.5 mly-text-sm data-[state=open]:mly-bg-soft-gray hover:mly-bg-soft-gray", children: [
|
|
3212
3300
|
"Column",
|
|
3213
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3301
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react19.ChevronUp, { className: "mly-h-3 mly-w-3" })
|
|
3214
3302
|
] }),
|
|
3215
3303
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3216
3304
|
PopoverContent,
|
|
@@ -3394,8 +3482,8 @@ function SpacerBubbleMenu(props) {
|
|
|
3394
3482
|
}
|
|
3395
3483
|
|
|
3396
3484
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
3397
|
-
var
|
|
3398
|
-
var
|
|
3485
|
+
var import_react39 = require("@tiptap/react");
|
|
3486
|
+
var import_lucide_react23 = require("lucide-react");
|
|
3399
3487
|
|
|
3400
3488
|
// src/editor/components/text-menu/use-text-menu-state.tsx
|
|
3401
3489
|
var import_react29 = require("@tiptap/react");
|
|
@@ -3742,7 +3830,7 @@ var import_react33 = require("@tiptap/react");
|
|
|
3742
3830
|
|
|
3743
3831
|
// src/editor/nodes/button/button-view.tsx
|
|
3744
3832
|
var import_react32 = require("@tiptap/react");
|
|
3745
|
-
var
|
|
3833
|
+
var import_lucide_react20 = require("lucide-react");
|
|
3746
3834
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3747
3835
|
function ButtonView(props) {
|
|
3748
3836
|
const { node, editor, getPos, updateAttributes: updateAttributes2 } = props;
|
|
@@ -3818,7 +3906,7 @@ function ButtonView(props) {
|
|
|
3818
3906
|
className: "mly-h-7 mly-w-40 mly-rounded-md mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none"
|
|
3819
3907
|
}
|
|
3820
3908
|
),
|
|
3821
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3909
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react20.Pencil, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
3822
3910
|
] }),
|
|
3823
3911
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Divider, {}),
|
|
3824
3912
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
@@ -4135,7 +4223,7 @@ var import_suggestion = __toESM(require("@tiptap/suggestion"));
|
|
|
4135
4223
|
|
|
4136
4224
|
// src/editor/nodes/variable/variable-view.tsx
|
|
4137
4225
|
var import_react34 = require("@tiptap/react");
|
|
4138
|
-
var
|
|
4226
|
+
var import_lucide_react21 = require("lucide-react");
|
|
4139
4227
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4140
4228
|
function VariableView(props) {
|
|
4141
4229
|
var _a, _b;
|
|
@@ -4159,9 +4247,9 @@ function VariableView(props) {
|
|
|
4159
4247
|
tabIndex: -1,
|
|
4160
4248
|
className: "mly-inline-flex mly-items-center mly-gap-[var(--variable-icon-gap)] mly-rounded-full mly-border mly-px-1.5 mly-py-0.5 mly-leading-none",
|
|
4161
4249
|
children: [
|
|
4162
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react21.Braces, { className: "mly-size-[var(--variable-icon-size)] mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
4163
4251
|
id,
|
|
4164
|
-
isRequired && !fallback && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4252
|
+
isRequired && !fallback && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react21.AlertTriangle, { className: "mly-size-[var(--variable-icon-size)] mly-shrink-0 mly-stroke-[2.5]" })
|
|
4165
4253
|
]
|
|
4166
4254
|
}
|
|
4167
4255
|
) }),
|
|
@@ -4207,7 +4295,7 @@ function VariableView(props) {
|
|
|
4207
4295
|
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"
|
|
4208
4296
|
}
|
|
4209
4297
|
),
|
|
4210
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4298
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react21.Pencil, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
4211
4299
|
] }),
|
|
4212
4300
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Divider, {}),
|
|
4213
4301
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -4456,241 +4544,124 @@ var ImageExtension = import_extension_image2.default.extend({
|
|
|
4456
4544
|
}
|
|
4457
4545
|
});
|
|
4458
4546
|
|
|
4459
|
-
// src/editor/
|
|
4460
|
-
var
|
|
4461
|
-
|
|
4462
|
-
HorizontalRule.name,
|
|
4463
|
-
import_extension_image3.default.name,
|
|
4464
|
-
Spacer.name,
|
|
4465
|
-
ImageExtension.name,
|
|
4466
|
-
VariableExtension.name,
|
|
4467
|
-
LinkCardExtension.name,
|
|
4468
|
-
LogoExtension.name,
|
|
4469
|
-
ButtonExtension.name
|
|
4470
|
-
];
|
|
4471
|
-
return customNodes.some((type) => editor.isActive(type));
|
|
4472
|
-
};
|
|
4547
|
+
// src/editor/nodes/for/for.ts
|
|
4548
|
+
var import_core11 = require("@tiptap/core");
|
|
4549
|
+
var import_react38 = require("@tiptap/react");
|
|
4473
4550
|
|
|
4474
|
-
// src/editor/
|
|
4551
|
+
// src/editor/nodes/for/for-view.tsx
|
|
4552
|
+
var import_react37 = require("@tiptap/react");
|
|
4553
|
+
var import_lucide_react22 = require("lucide-react");
|
|
4475
4554
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4476
|
-
function
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
return null;
|
|
4481
|
-
}
|
|
4482
|
-
const items = [
|
|
4483
|
-
{
|
|
4484
|
-
name: "bold",
|
|
4485
|
-
isActive: () => editor == null ? void 0 : editor.isActive("bold"),
|
|
4486
|
-
command: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
4487
|
-
icon: import_lucide_react21.BoldIcon,
|
|
4488
|
-
tooltip: "Bold"
|
|
4489
|
-
},
|
|
4490
|
-
{
|
|
4491
|
-
name: "italic",
|
|
4492
|
-
isActive: () => editor == null ? void 0 : editor.isActive("italic"),
|
|
4493
|
-
command: () => editor == null ? void 0 : editor.chain().focus().toggleItalic().run(),
|
|
4494
|
-
icon: import_lucide_react21.ItalicIcon,
|
|
4495
|
-
tooltip: "Italic"
|
|
4496
|
-
},
|
|
4497
|
-
{
|
|
4498
|
-
name: "underline",
|
|
4499
|
-
isActive: () => editor == null ? void 0 : editor.isActive("underline"),
|
|
4500
|
-
command: () => editor == null ? void 0 : editor.chain().focus().toggleUnderline().run(),
|
|
4501
|
-
icon: import_lucide_react21.UnderlineIcon,
|
|
4502
|
-
tooltip: "Underline"
|
|
4503
|
-
},
|
|
4504
|
-
{
|
|
4505
|
-
name: "strike",
|
|
4506
|
-
isActive: () => editor == null ? void 0 : editor.isActive("strike"),
|
|
4507
|
-
command: () => editor == null ? void 0 : editor.chain().focus().toggleStrike().run(),
|
|
4508
|
-
icon: import_lucide_react21.StrikethroughIcon,
|
|
4509
|
-
tooltip: "Strikethrough"
|
|
4510
|
-
},
|
|
4555
|
+
function ForView(props) {
|
|
4556
|
+
const { editor, getPos } = props;
|
|
4557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4558
|
+
import_react37.NodeViewWrapper,
|
|
4511
4559
|
{
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
pluginKey: "textMenu",
|
|
4521
|
-
shouldShow: ({ editor: editor2, state: state2, from, to, view }) => {
|
|
4522
|
-
if (!view || editor2.view.dragging) {
|
|
4523
|
-
return false;
|
|
4524
|
-
}
|
|
4525
|
-
const domAtPos = view.domAtPos(from || 0).node;
|
|
4526
|
-
const nodeDOM = view.nodeDOM(from || 0);
|
|
4527
|
-
const node = nodeDOM || domAtPos;
|
|
4528
|
-
if (isCustomNodeSelected(editor2, node)) {
|
|
4529
|
-
return false;
|
|
4530
|
-
}
|
|
4531
|
-
return isTextSelected(editor2);
|
|
4532
|
-
},
|
|
4533
|
-
tippyOptions: {
|
|
4534
|
-
popperOptions: {
|
|
4535
|
-
placement: "top-start",
|
|
4536
|
-
modifiers: [
|
|
4537
|
-
{
|
|
4538
|
-
name: "preventOverflow",
|
|
4539
|
-
options: {
|
|
4540
|
-
boundary: "viewport",
|
|
4541
|
-
padding: 8
|
|
4542
|
-
}
|
|
4543
|
-
},
|
|
4544
|
-
{
|
|
4545
|
-
name: "flip",
|
|
4546
|
-
options: {
|
|
4547
|
-
fallbackPlacements: ["bottom-start", "top-end", "bottom-end"]
|
|
4548
|
-
}
|
|
4549
|
-
}
|
|
4550
|
-
]
|
|
4551
|
-
},
|
|
4552
|
-
maxWidth: "100%"
|
|
4553
|
-
}
|
|
4554
|
-
});
|
|
4555
|
-
const state = useTextMenuState(editor);
|
|
4556
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4557
|
-
import_react37.BubbleMenu,
|
|
4558
|
-
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4559
|
-
className: "mly-flex mly-gap-1 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
4560
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(TooltipProvider, { children: [
|
|
4561
|
-
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
4562
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4563
|
-
AlignmentSwitch,
|
|
4564
|
-
{
|
|
4565
|
-
alignment: state.textAlign,
|
|
4566
|
-
onAlignmentChange: (alignment) => {
|
|
4567
|
-
editor == null ? void 0 : editor.chain().focus().setTextAlign(alignment).run();
|
|
4568
|
-
}
|
|
4569
|
-
}
|
|
4570
|
-
),
|
|
4571
|
-
!state.isListActive && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
4572
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4573
|
-
BubbleMenuButton,
|
|
4574
|
-
{
|
|
4575
|
-
icon: import_lucide_react21.List,
|
|
4576
|
-
command: () => {
|
|
4577
|
-
editor.chain().focus().toggleBulletList().run();
|
|
4578
|
-
},
|
|
4579
|
-
tooltip: "Bullet List"
|
|
4580
|
-
}
|
|
4581
|
-
),
|
|
4582
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4583
|
-
BubbleMenuButton,
|
|
4584
|
-
{
|
|
4585
|
-
icon: import_lucide_react21.ListOrdered,
|
|
4586
|
-
command: () => {
|
|
4587
|
-
editor.chain().focus().toggleOrderedList().run();
|
|
4588
|
-
},
|
|
4589
|
-
tooltip: "Ordered List"
|
|
4590
|
-
}
|
|
4591
|
-
)
|
|
4592
|
-
] }),
|
|
4593
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4594
|
-
LinkInputPopover,
|
|
4595
|
-
{
|
|
4596
|
-
defaultValue: (_a = state == null ? void 0 : state.linkUrl) != null ? _a : "",
|
|
4597
|
-
onValueChange: (value) => {
|
|
4598
|
-
if (!value) {
|
|
4599
|
-
editor == null ? void 0 : editor.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
4600
|
-
return;
|
|
4601
|
-
}
|
|
4602
|
-
editor == null ? void 0 : editor.chain().extendMarkRange("link").setLink({ href: value }).run();
|
|
4603
|
-
},
|
|
4604
|
-
tooltip: "External URL"
|
|
4605
|
-
}
|
|
4606
|
-
),
|
|
4607
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Divider, {}),
|
|
4608
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4609
|
-
ColorPicker,
|
|
4560
|
+
draggable: "true",
|
|
4561
|
+
"data-drag-handle": "",
|
|
4562
|
+
"data-type": "for",
|
|
4563
|
+
className: "mly-relative",
|
|
4564
|
+
children: [
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react37.NodeViewContent, { className: "is-editable" }),
|
|
4566
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4567
|
+
"div",
|
|
4610
4568
|
{
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4569
|
+
role: "button",
|
|
4570
|
+
"data-repeat-indicator": "",
|
|
4571
|
+
className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-translate-x-full mly-cursor-pointer mly-flex-col mly-items-center mly-gap-1 mly-opacity-60",
|
|
4572
|
+
contentEditable: false,
|
|
4573
|
+
onClick: () => {
|
|
4574
|
+
editor.commands.setNodeSelection(getPos());
|
|
4614
4575
|
},
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
variant: "ghost",
|
|
4620
|
-
size: "sm",
|
|
4621
|
-
type: "button",
|
|
4622
|
-
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
4623
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
4624
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
4625
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4626
|
-
"div",
|
|
4627
|
-
{
|
|
4628
|
-
className: "mly-h-[2px] mly-w-3",
|
|
4629
|
-
style: { backgroundColor: state.currentTextColor }
|
|
4630
|
-
}
|
|
4631
|
-
)
|
|
4632
|
-
] })
|
|
4633
|
-
}
|
|
4634
|
-
)
|
|
4576
|
+
children: [
|
|
4577
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react22.Repeat2, { className: "mly-size-3 mly-stroke-[2.5] mly-text-midnight-gray" }),
|
|
4578
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "mly-w-[1.5px] mly-grow mly-rounded-full mly-bg-rose-300" })
|
|
4579
|
+
]
|
|
4635
4580
|
}
|
|
4636
4581
|
)
|
|
4637
|
-
]
|
|
4638
|
-
}
|
|
4582
|
+
]
|
|
4583
|
+
}
|
|
4639
4584
|
);
|
|
4640
4585
|
}
|
|
4641
4586
|
|
|
4642
|
-
// src/editor/
|
|
4643
|
-
var
|
|
4644
|
-
|
|
4645
|
-
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
4646
|
-
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"));
|
|
4647
|
-
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"));
|
|
4648
|
-
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"));
|
|
4649
|
-
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"));
|
|
4650
|
-
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"));
|
|
4651
|
-
var import_extension_heading = __toESM(require("@tiptap/extension-heading"));
|
|
4652
|
-
var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
|
|
4653
|
-
var import_extension_document = __toESM(require("@tiptap/extension-document"));
|
|
4654
|
-
var import_extension_focus = __toESM(require("@tiptap/extension-focus"));
|
|
4655
|
-
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"));
|
|
4656
|
-
|
|
4657
|
-
// src/editor/nodes/footer.ts
|
|
4658
|
-
var import_core11 = require("@tiptap/core");
|
|
4659
|
-
var Footer = import_core11.Node.create({
|
|
4660
|
-
name: "footer",
|
|
4587
|
+
// src/editor/nodes/for/for.ts
|
|
4588
|
+
var ForExtension = import_core11.Node.create({
|
|
4589
|
+
name: "for",
|
|
4661
4590
|
group: "block",
|
|
4662
|
-
content: "
|
|
4591
|
+
content: "(block|columns)+",
|
|
4592
|
+
draggable: true,
|
|
4593
|
+
isolating: true,
|
|
4663
4594
|
addAttributes() {
|
|
4664
4595
|
return {
|
|
4665
|
-
|
|
4666
|
-
default: "
|
|
4596
|
+
each: {
|
|
4597
|
+
default: "items",
|
|
4598
|
+
parseHTML: (element) => {
|
|
4599
|
+
return element.getAttribute("each") || "";
|
|
4600
|
+
},
|
|
4667
4601
|
renderHTML: (attributes) => {
|
|
4602
|
+
if (!attributes.each) {
|
|
4603
|
+
return {};
|
|
4604
|
+
}
|
|
4668
4605
|
return {
|
|
4669
|
-
|
|
4606
|
+
each: attributes.each
|
|
4670
4607
|
};
|
|
4608
|
+
}
|
|
4609
|
+
},
|
|
4610
|
+
isUpdatingKey: {
|
|
4611
|
+
default: false
|
|
4612
|
+
},
|
|
4613
|
+
showIfKey: {
|
|
4614
|
+
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4615
|
+
parseHTML: (element) => {
|
|
4616
|
+
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4671
4617
|
},
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4618
|
+
renderHTML(attributes) {
|
|
4619
|
+
if (!attributes.showIfKey) {
|
|
4620
|
+
return {};
|
|
4621
|
+
}
|
|
4622
|
+
return {
|
|
4623
|
+
"data-show-if-key": attributes.showIfKey
|
|
4624
|
+
};
|
|
4625
|
+
}
|
|
4680
4626
|
}
|
|
4681
4627
|
};
|
|
4682
4628
|
},
|
|
4683
4629
|
parseHTML() {
|
|
4684
|
-
return [
|
|
4630
|
+
return [
|
|
4631
|
+
{
|
|
4632
|
+
tag: `div[data-type="${this.name}"]`
|
|
4633
|
+
}
|
|
4634
|
+
];
|
|
4685
4635
|
},
|
|
4686
4636
|
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4687
4637
|
return [
|
|
4688
|
-
"
|
|
4689
|
-
(0, import_core11.mergeAttributes)(
|
|
4690
|
-
|
|
4638
|
+
"div",
|
|
4639
|
+
(0, import_core11.mergeAttributes)(HTMLAttributes2, {
|
|
4640
|
+
"data-type": this.name
|
|
4691
4641
|
}),
|
|
4692
4642
|
0
|
|
4693
4643
|
];
|
|
4644
|
+
},
|
|
4645
|
+
addCommands() {
|
|
4646
|
+
return {
|
|
4647
|
+
setFor: () => ({ commands }) => {
|
|
4648
|
+
return commands.insertContent({
|
|
4649
|
+
type: this.name,
|
|
4650
|
+
attrs: {},
|
|
4651
|
+
content: [
|
|
4652
|
+
{
|
|
4653
|
+
type: "paragraph"
|
|
4654
|
+
}
|
|
4655
|
+
]
|
|
4656
|
+
});
|
|
4657
|
+
},
|
|
4658
|
+
updateFor: (attrs) => updateAttributes(this.name, attrs)
|
|
4659
|
+
};
|
|
4660
|
+
},
|
|
4661
|
+
addNodeView() {
|
|
4662
|
+
return (0, import_react38.ReactNodeViewRenderer)(ForView, {
|
|
4663
|
+
contentDOMElementTag: "div"
|
|
4664
|
+
});
|
|
4694
4665
|
}
|
|
4695
4666
|
});
|
|
4696
4667
|
|
|
@@ -4699,7 +4670,7 @@ var import_core12 = require("@tiptap/core");
|
|
|
4699
4670
|
var import_core13 = require("@tiptap/core");
|
|
4700
4671
|
var import_uuid3 = require("uuid");
|
|
4701
4672
|
var DEFAULT_COLUMNS_GAP = 8;
|
|
4702
|
-
var
|
|
4673
|
+
var ColumnsExtension = import_core13.Node.create({
|
|
4703
4674
|
name: "columns",
|
|
4704
4675
|
group: "columns",
|
|
4705
4676
|
content: "column+",
|
|
@@ -4800,131 +4771,259 @@ var Columns = import_core13.Node.create({
|
|
|
4800
4771
|
}
|
|
4801
4772
|
});
|
|
4802
4773
|
|
|
4803
|
-
// src/editor/
|
|
4804
|
-
var
|
|
4805
|
-
|
|
4774
|
+
// src/editor/utils/is-custom-node-selected.ts
|
|
4775
|
+
var isCustomNodeSelected = (editor, node) => {
|
|
4776
|
+
const customNodes = [
|
|
4777
|
+
HorizontalRule.name,
|
|
4778
|
+
import_extension_image3.default.name,
|
|
4779
|
+
Spacer.name,
|
|
4780
|
+
ImageExtension.name,
|
|
4781
|
+
VariableExtension.name,
|
|
4782
|
+
LinkCardExtension.name,
|
|
4783
|
+
LogoExtension.name,
|
|
4784
|
+
ButtonExtension.name,
|
|
4785
|
+
ForExtension.name,
|
|
4786
|
+
ColumnsExtension.name,
|
|
4787
|
+
ColumnExtension.name,
|
|
4788
|
+
SectionExtension.name
|
|
4789
|
+
];
|
|
4790
|
+
return customNodes.some((type) => editor.isActive(type));
|
|
4791
|
+
};
|
|
4806
4792
|
|
|
4807
|
-
// src/editor/
|
|
4808
|
-
var import_react38 = require("@tiptap/react");
|
|
4809
|
-
var import_lucide_react22 = require("lucide-react");
|
|
4793
|
+
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
4810
4794
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4811
|
-
function
|
|
4812
|
-
|
|
4813
|
-
|
|
4795
|
+
function TextBubbleMenu(props) {
|
|
4796
|
+
var _a;
|
|
4797
|
+
const { editor, appendTo } = props;
|
|
4798
|
+
if (!editor) {
|
|
4799
|
+
return null;
|
|
4800
|
+
}
|
|
4801
|
+
const items = [
|
|
4814
4802
|
{
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4803
|
+
name: "bold",
|
|
4804
|
+
isActive: () => editor == null ? void 0 : editor.isActive("bold"),
|
|
4805
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleBold().run(),
|
|
4806
|
+
icon: import_lucide_react23.BoldIcon,
|
|
4807
|
+
tooltip: "Bold"
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
name: "italic",
|
|
4811
|
+
isActive: () => editor == null ? void 0 : editor.isActive("italic"),
|
|
4812
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleItalic().run(),
|
|
4813
|
+
icon: import_lucide_react23.ItalicIcon,
|
|
4814
|
+
tooltip: "Italic"
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
name: "underline",
|
|
4818
|
+
isActive: () => editor == null ? void 0 : editor.isActive("underline"),
|
|
4819
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleUnderline().run(),
|
|
4820
|
+
icon: import_lucide_react23.UnderlineIcon,
|
|
4821
|
+
tooltip: "Underline"
|
|
4822
|
+
},
|
|
4823
|
+
{
|
|
4824
|
+
name: "strike",
|
|
4825
|
+
isActive: () => editor == null ? void 0 : editor.isActive("strike"),
|
|
4826
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleStrike().run(),
|
|
4827
|
+
icon: import_lucide_react23.StrikethroughIcon,
|
|
4828
|
+
tooltip: "Strikethrough"
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
name: "code",
|
|
4832
|
+
isActive: () => editor == null ? void 0 : editor.isActive("code"),
|
|
4833
|
+
command: () => editor == null ? void 0 : editor.chain().focus().toggleCode().run(),
|
|
4834
|
+
icon: import_lucide_react23.CodeIcon,
|
|
4835
|
+
tooltip: "Code"
|
|
4836
|
+
}
|
|
4837
|
+
];
|
|
4838
|
+
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
4839
|
+
pluginKey: "textMenu",
|
|
4840
|
+
shouldShow: ({ editor: editor2, state: state2, from, to, view }) => {
|
|
4841
|
+
if (!view || editor2.view.dragging) {
|
|
4842
|
+
return false;
|
|
4843
|
+
}
|
|
4844
|
+
const domAtPos = view.domAtPos(from || 0).node;
|
|
4845
|
+
const nodeDOM = view.nodeDOM(from || 0);
|
|
4846
|
+
const node = nodeDOM || domAtPos;
|
|
4847
|
+
if (isCustomNodeSelected(editor2, node)) {
|
|
4848
|
+
return false;
|
|
4849
|
+
}
|
|
4850
|
+
return isTextSelected(editor2);
|
|
4851
|
+
},
|
|
4852
|
+
tippyOptions: {
|
|
4853
|
+
popperOptions: {
|
|
4854
|
+
placement: "top-start",
|
|
4855
|
+
modifiers: [
|
|
4823
4856
|
{
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4857
|
+
name: "preventOverflow",
|
|
4858
|
+
options: {
|
|
4859
|
+
boundary: "viewport",
|
|
4860
|
+
padding: 8
|
|
4861
|
+
}
|
|
4862
|
+
},
|
|
4863
|
+
{
|
|
4864
|
+
name: "flip",
|
|
4865
|
+
options: {
|
|
4866
|
+
fallbackPlacements: ["bottom-start", "top-end", "bottom-end"]
|
|
4867
|
+
}
|
|
4831
4868
|
}
|
|
4832
|
-
|
|
4833
|
-
|
|
4869
|
+
]
|
|
4870
|
+
},
|
|
4871
|
+
maxWidth: "100%"
|
|
4834
4872
|
}
|
|
4873
|
+
});
|
|
4874
|
+
const state = useTextMenuState(editor);
|
|
4875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4876
|
+
import_react39.BubbleMenu,
|
|
4877
|
+
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4878
|
+
className: "mly-flex mly-gap-1 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
4879
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(TooltipProvider, { children: [
|
|
4880
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
4881
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4882
|
+
AlignmentSwitch,
|
|
4883
|
+
{
|
|
4884
|
+
alignment: state.textAlign,
|
|
4885
|
+
onAlignmentChange: (alignment) => {
|
|
4886
|
+
editor == null ? void 0 : editor.chain().focus().setTextAlign(alignment).run();
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
),
|
|
4890
|
+
!state.isListActive && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4892
|
+
BubbleMenuButton,
|
|
4893
|
+
{
|
|
4894
|
+
icon: import_lucide_react23.List,
|
|
4895
|
+
command: () => {
|
|
4896
|
+
editor.chain().focus().toggleBulletList().run();
|
|
4897
|
+
},
|
|
4898
|
+
tooltip: "Bullet List"
|
|
4899
|
+
}
|
|
4900
|
+
),
|
|
4901
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4902
|
+
BubbleMenuButton,
|
|
4903
|
+
{
|
|
4904
|
+
icon: import_lucide_react23.ListOrdered,
|
|
4905
|
+
command: () => {
|
|
4906
|
+
editor.chain().focus().toggleOrderedList().run();
|
|
4907
|
+
},
|
|
4908
|
+
tooltip: "Ordered List"
|
|
4909
|
+
}
|
|
4910
|
+
)
|
|
4911
|
+
] }),
|
|
4912
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4913
|
+
LinkInputPopover,
|
|
4914
|
+
{
|
|
4915
|
+
defaultValue: (_a = state == null ? void 0 : state.linkUrl) != null ? _a : "",
|
|
4916
|
+
onValueChange: (value) => {
|
|
4917
|
+
if (!value) {
|
|
4918
|
+
editor == null ? void 0 : editor.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
4919
|
+
return;
|
|
4920
|
+
}
|
|
4921
|
+
editor == null ? void 0 : editor.chain().extendMarkRange("link").setLink({ href: value }).run();
|
|
4922
|
+
},
|
|
4923
|
+
tooltip: "External URL"
|
|
4924
|
+
}
|
|
4925
|
+
),
|
|
4926
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Divider, {}),
|
|
4927
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4928
|
+
ColorPicker,
|
|
4929
|
+
{
|
|
4930
|
+
color: state.currentTextColor,
|
|
4931
|
+
onColorChange: (color) => {
|
|
4932
|
+
editor == null ? void 0 : editor.chain().setColor(color).run();
|
|
4933
|
+
},
|
|
4934
|
+
tooltip: "Text Color",
|
|
4935
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4936
|
+
BaseButton,
|
|
4937
|
+
{
|
|
4938
|
+
variant: "ghost",
|
|
4939
|
+
size: "sm",
|
|
4940
|
+
type: "button",
|
|
4941
|
+
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
4942
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
4943
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
4944
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4945
|
+
"div",
|
|
4946
|
+
{
|
|
4947
|
+
className: "mly-h-[2px] mly-w-3",
|
|
4948
|
+
style: { backgroundColor: state.currentTextColor }
|
|
4949
|
+
}
|
|
4950
|
+
)
|
|
4951
|
+
] })
|
|
4952
|
+
}
|
|
4953
|
+
)
|
|
4954
|
+
}
|
|
4955
|
+
)
|
|
4956
|
+
] })
|
|
4957
|
+
})
|
|
4835
4958
|
);
|
|
4836
4959
|
}
|
|
4837
4960
|
|
|
4838
|
-
// src/editor/
|
|
4839
|
-
var
|
|
4840
|
-
|
|
4961
|
+
// src/editor/extensions/index.ts
|
|
4962
|
+
var import_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
4963
|
+
var import_extension_color = require("@tiptap/extension-color");
|
|
4964
|
+
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
4965
|
+
var import_extension_list_item = __toESM(require("@tiptap/extension-list-item"));
|
|
4966
|
+
var import_extension_paragraph = __toESM(require("@tiptap/extension-paragraph"));
|
|
4967
|
+
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"));
|
|
4968
|
+
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"));
|
|
4969
|
+
var import_extension_text_style = __toESM(require("@tiptap/extension-text-style"));
|
|
4970
|
+
var import_extension_heading = __toESM(require("@tiptap/extension-heading"));
|
|
4971
|
+
var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
|
|
4972
|
+
var import_extension_document = __toESM(require("@tiptap/extension-document"));
|
|
4973
|
+
var import_extension_focus = __toESM(require("@tiptap/extension-focus"));
|
|
4974
|
+
var import_extension_dropcursor = __toESM(require("@tiptap/extension-dropcursor"));
|
|
4975
|
+
|
|
4976
|
+
// src/editor/nodes/footer.ts
|
|
4977
|
+
var import_core14 = require("@tiptap/core");
|
|
4978
|
+
var Footer = import_core14.Node.create({
|
|
4979
|
+
name: "footer",
|
|
4841
4980
|
group: "block",
|
|
4842
|
-
content: "
|
|
4843
|
-
draggable: true,
|
|
4844
|
-
isolating: true,
|
|
4981
|
+
content: "inline*",
|
|
4845
4982
|
addAttributes() {
|
|
4846
4983
|
return {
|
|
4847
|
-
|
|
4848
|
-
default: "
|
|
4849
|
-
parseHTML: (element) => {
|
|
4850
|
-
return element.getAttribute("each") || "";
|
|
4851
|
-
},
|
|
4984
|
+
"maily-component": {
|
|
4985
|
+
default: "footer",
|
|
4852
4986
|
renderHTML: (attributes) => {
|
|
4853
|
-
if (!attributes.each) {
|
|
4854
|
-
return {};
|
|
4855
|
-
}
|
|
4856
4987
|
return {
|
|
4857
|
-
|
|
4988
|
+
"data-maily-component": attributes["maily-component"]
|
|
4858
4989
|
};
|
|
4859
|
-
}
|
|
4860
|
-
},
|
|
4861
|
-
isUpdatingKey: {
|
|
4862
|
-
default: false
|
|
4863
|
-
},
|
|
4864
|
-
showIfKey: {
|
|
4865
|
-
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4866
|
-
parseHTML: (element) => {
|
|
4867
|
-
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4868
4990
|
},
|
|
4869
|
-
|
|
4870
|
-
if (!attributes.showIfKey) {
|
|
4871
|
-
return {};
|
|
4872
|
-
}
|
|
4873
|
-
return {
|
|
4874
|
-
"data-show-if-key": attributes.showIfKey
|
|
4875
|
-
};
|
|
4876
|
-
}
|
|
4991
|
+
parseHTML: (element) => element == null ? void 0 : element.getAttribute("data-maily-component")
|
|
4877
4992
|
}
|
|
4878
4993
|
};
|
|
4879
4994
|
},
|
|
4880
|
-
|
|
4881
|
-
return
|
|
4882
|
-
{
|
|
4883
|
-
|
|
4995
|
+
addCommands() {
|
|
4996
|
+
return {
|
|
4997
|
+
setFooter: () => ({ commands }) => {
|
|
4998
|
+
return commands.setNode(this.name);
|
|
4884
4999
|
}
|
|
4885
|
-
|
|
5000
|
+
};
|
|
5001
|
+
},
|
|
5002
|
+
parseHTML() {
|
|
5003
|
+
return [{ tag: 'small[data-maily-component="footer"]' }];
|
|
4886
5004
|
},
|
|
4887
5005
|
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4888
5006
|
return [
|
|
4889
|
-
"
|
|
4890
|
-
(0, import_core14.mergeAttributes)(HTMLAttributes2, {
|
|
4891
|
-
"
|
|
5007
|
+
"small",
|
|
5008
|
+
(0, import_core14.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
5009
|
+
class: "footer mly-block mly-text-[13px] mly-text-slate-500"
|
|
4892
5010
|
}),
|
|
4893
5011
|
0
|
|
4894
5012
|
];
|
|
4895
|
-
},
|
|
4896
|
-
addCommands() {
|
|
4897
|
-
return {
|
|
4898
|
-
setFor: () => ({ commands }) => {
|
|
4899
|
-
return commands.insertContent({
|
|
4900
|
-
type: this.name,
|
|
4901
|
-
attrs: {},
|
|
4902
|
-
content: [
|
|
4903
|
-
{
|
|
4904
|
-
type: "paragraph"
|
|
4905
|
-
}
|
|
4906
|
-
]
|
|
4907
|
-
});
|
|
4908
|
-
},
|
|
4909
|
-
updateFor: (attrs) => updateAttributes(this.name, attrs)
|
|
4910
|
-
};
|
|
4911
|
-
},
|
|
4912
|
-
addNodeView() {
|
|
4913
|
-
return (0, import_react39.ReactNodeViewRenderer)(ForView, {
|
|
4914
|
-
contentDOMElementTag: "div"
|
|
4915
|
-
});
|
|
4916
5013
|
}
|
|
4917
5014
|
});
|
|
4918
5015
|
|
|
4919
5016
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
4920
5017
|
var import_react40 = require("@tiptap/react");
|
|
4921
|
-
var
|
|
5018
|
+
var import_lucide_react24 = require("lucide-react");
|
|
4922
5019
|
var import_react41 = require("react");
|
|
4923
5020
|
var import_tippy5 = __toESM(require("tippy.js"));
|
|
4924
5021
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4925
5022
|
var VariableList = (0, import_react41.forwardRef)((props, ref) => {
|
|
4926
|
-
|
|
5023
|
+
const { items = [] } = props;
|
|
4927
5024
|
const [selectedIndex, setSelectedIndex] = (0, import_react41.useState)(0);
|
|
5025
|
+
const scrollContainerRef = (0, import_react41.useRef)(null);
|
|
5026
|
+
const itemRefs = (0, import_react41.useRef)([]);
|
|
4928
5027
|
const selectItem = (index) => {
|
|
4929
5028
|
const item = props.items[index];
|
|
4930
5029
|
if (!item) {
|
|
@@ -4932,19 +5031,41 @@ var VariableList = (0, import_react41.forwardRef)((props, ref) => {
|
|
|
4932
5031
|
}
|
|
4933
5032
|
props.command({ id: item });
|
|
4934
5033
|
};
|
|
5034
|
+
const scrollSelectedIntoView = (index) => {
|
|
5035
|
+
const container = scrollContainerRef.current;
|
|
5036
|
+
const selectedItem = itemRefs.current[index];
|
|
5037
|
+
if (!container || !selectedItem) {
|
|
5038
|
+
return;
|
|
5039
|
+
}
|
|
5040
|
+
const containerRect = container.getBoundingClientRect();
|
|
5041
|
+
const itemRect = selectedItem.getBoundingClientRect();
|
|
5042
|
+
const padding = 4;
|
|
5043
|
+
if (itemRect.bottom > containerRect.bottom) {
|
|
5044
|
+
container.scrollTop += itemRect.bottom - containerRect.bottom + padding;
|
|
5045
|
+
} else if (itemRect.top < containerRect.top) {
|
|
5046
|
+
container.scrollTop += itemRect.top - containerRect.top - padding;
|
|
5047
|
+
}
|
|
5048
|
+
};
|
|
4935
5049
|
(0, import_react41.useEffect)(() => {
|
|
4936
5050
|
setSelectedIndex(0);
|
|
5051
|
+
if (scrollContainerRef.current) {
|
|
5052
|
+
scrollContainerRef.current.scrollTop = 0;
|
|
5053
|
+
}
|
|
5054
|
+
itemRefs.current = props.items.map(() => null);
|
|
4937
5055
|
}, [props.items]);
|
|
5056
|
+
(0, import_react41.useEffect)(() => {
|
|
5057
|
+
scrollSelectedIntoView(selectedIndex);
|
|
5058
|
+
}, [selectedIndex]);
|
|
4938
5059
|
(0, import_react41.useImperativeHandle)(ref, () => ({
|
|
4939
5060
|
onKeyDown: ({ event }) => {
|
|
4940
5061
|
if (event.key === "ArrowUp") {
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
);
|
|
5062
|
+
event.preventDefault();
|
|
5063
|
+
setSelectedIndex((selectedIndex + items.length - 1) % items.length);
|
|
4944
5064
|
return true;
|
|
4945
5065
|
}
|
|
4946
5066
|
if (event.key === "ArrowDown") {
|
|
4947
|
-
|
|
5067
|
+
event.preventDefault();
|
|
5068
|
+
setSelectedIndex((selectedIndex + 1) % items.length);
|
|
4948
5069
|
return true;
|
|
4949
5070
|
}
|
|
4950
5071
|
if (event.key === "Enter") {
|
|
@@ -4954,36 +5075,45 @@ var VariableList = (0, import_react41.forwardRef)((props, ref) => {
|
|
|
4954
5075
|
return false;
|
|
4955
5076
|
}
|
|
4956
5077
|
}));
|
|
4957
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mly-z-50 mly-
|
|
5078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mly-z-50 mly-w-64 mly-rounded-lg mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
|
|
4958
5079
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mly-flex mly-items-center mly-justify-between mly-gap-2 mly-border-b mly-border-gray-200 mly-bg-soft-gray/40 mly-px-1 mly-py-1.5 mly-text-gray-500", children: [
|
|
4959
5080
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "mly-text-xs mly-uppercase", children: "Variables" }),
|
|
4960
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5081
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react24.Braces, { className: "mly-size-3 mly-stroke-[2.5]" }) })
|
|
4961
5082
|
] }),
|
|
4962
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4963
|
-
"
|
|
5083
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5084
|
+
"div",
|
|
4964
5085
|
{
|
|
4965
|
-
|
|
4966
|
-
className:
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
5086
|
+
ref: scrollContainerRef,
|
|
5087
|
+
className: "mly-max-h-52 mly-overflow-y-auto mly-scrollbar-thin mly-scrollbar-track-transparent mly-scrollbar-thumb-gray-200",
|
|
5088
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.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_runtime42.jsxs)(
|
|
5089
|
+
"button",
|
|
5090
|
+
{
|
|
5091
|
+
ref: (el) => itemRefs.current[index] = el,
|
|
5092
|
+
onClick: () => selectItem(index),
|
|
5093
|
+
className: cn(
|
|
5094
|
+
"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",
|
|
5095
|
+
index === selectedIndex ? "mly-bg-soft-gray" : "mly-bg-white"
|
|
5096
|
+
),
|
|
5097
|
+
children: [
|
|
5098
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react24.Braces, { className: "mly-size-3 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
5099
|
+
item
|
|
5100
|
+
]
|
|
5101
|
+
},
|
|
5102
|
+
index
|
|
5103
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mly-flex mly-h-7 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-[13px] mly-text-gray-900 hover:mly-bg-soft-gray", children: "No result" }) })
|
|
5104
|
+
}
|
|
5105
|
+
),
|
|
4977
5106
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mly-flex mly-items-center mly-justify-between mly-gap-2 mly-border-t mly-border-gray-200 mly-px-1 mly-py-1.5 mly-text-gray-500", children: [
|
|
4978
5107
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mly-flex mly-items-center mly-gap-1", children: [
|
|
4979
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4980
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5108
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react24.ArrowDown, { className: "mly-size-3 mly-stroke-[2.5]" }) }),
|
|
5109
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react24.ArrowUp, { className: "mly-size-3 mly-stroke-[2.5]" }) }),
|
|
4981
5110
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "mly-text-xs mly-text-gray-500", children: "Navigate" })
|
|
4982
5111
|
] }),
|
|
4983
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5112
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(VariableIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react24.CornerDownLeft, { className: "mly-size-3 mly-stroke-[2.5]" }) })
|
|
4984
5113
|
] })
|
|
4985
5114
|
] });
|
|
4986
5115
|
});
|
|
5116
|
+
VariableList.displayName = "VariableList";
|
|
4987
5117
|
function VariableIcon(props) {
|
|
4988
5118
|
const { className, children } = props;
|
|
4989
5119
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -5014,7 +5144,7 @@ function getVariableSuggestions(variables = [], char = DEFAULT_TRIGGER_SUGGESTIO
|
|
|
5014
5144
|
if (query.length > 0 && !filteredVariableKeys.includes(query)) {
|
|
5015
5145
|
combinedKeys.push(query);
|
|
5016
5146
|
}
|
|
5017
|
-
return combinedKeys
|
|
5147
|
+
return combinedKeys;
|
|
5018
5148
|
},
|
|
5019
5149
|
render: () => {
|
|
5020
5150
|
let component;
|
|
@@ -5275,8 +5405,8 @@ function extensions(props) {
|
|
|
5275
5405
|
import_extension_document.default.extend({
|
|
5276
5406
|
content: "(block|columns)+"
|
|
5277
5407
|
}),
|
|
5278
|
-
|
|
5279
|
-
|
|
5408
|
+
ColumnsExtension,
|
|
5409
|
+
ColumnExtension,
|
|
5280
5410
|
import_starter_kit.default.configure({
|
|
5281
5411
|
heading: {
|
|
5282
5412
|
levels: [1, 2, 3]
|