@maily-to/core 0.0.17 → 0.0.18
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.d.mts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +1080 -964
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1076 -955
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +51 -21
package/dist/index.js
CHANGED
|
@@ -87,21 +87,21 @@ 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
|
|
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::after {\n content: "";\n position: absolute;\n inset: -2px;\n pointer-events: none;\n border-radius: 6px;\n background: rgba(35, 131, 226, 0.14);\n}\n.mly-prose {\n strong {\n color: currentColor;\n }\n}\n.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0;\n &:focus {\n outline: none;\n }\n p {\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* {\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');
|
|
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-5 {\n width: 1.25rem !important;\n height: 1.25rem !important;\n}\n.\\!mly-size-7 {\n width: 1.75rem !important;\n height: 1.75rem !important;\n}\n.mly-size-3 {\n width: 0.75rem;\n height: 0.75rem;\n}\n.mly-size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.mly-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.mly-size-5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.mly-size-7 {\n width: 1.75rem;\n height: 1.75rem;\n}\n.mly-size-\\[15px\\] {\n width: 15px;\n height: 15px;\n}\n.mly-size-\\[var\\(--variable-icon-size\\)\\] {\n width: var(--variable-icon-size);\n height: var(--variable-icon-size);\n}\n.\\!mly-h-7 {\n height: 1.75rem !important;\n}\n.mly-h-10 {\n height: 2.5rem;\n}\n.mly-h-11 {\n height: 2.75rem;\n}\n.mly-h-3 {\n height: 0.75rem;\n}\n.mly-h-4 {\n height: 1rem;\n}\n.mly-h-5 {\n height: 1.25rem;\n}\n.mly-h-6 {\n height: 1.5rem;\n}\n.mly-h-7 {\n height: 1.75rem;\n}\n.mly-h-8 {\n height: 2rem;\n}\n.mly-h-9 {\n height: 2.25rem;\n}\n.mly-h-\\[2px\\] {\n height: 2px;\n}\n.mly-h-auto {\n height: auto;\n}\n.mly-h-full {\n height: 100%;\n}\n.mly-h-px {\n height: 1px;\n}\n.mly-max-h-52 {\n max-height: 13rem;\n}\n.mly-max-h-\\[330px\\] {\n max-height: 330px;\n}\n.mly-min-h-24 {\n min-height: 6rem;\n}\n.mly-min-h-7 {\n min-height: 1.75rem;\n}\n.\\!mly-w-full {\n width: 100% !important;\n}\n.mly-w-10 {\n width: 2.5rem;\n}\n.mly-w-3 {\n width: 0.75rem;\n}\n.mly-w-32 {\n width: 8rem;\n}\n.mly-w-36 {\n width: 9rem;\n}\n.mly-w-4 {\n width: 1rem;\n}\n.mly-w-40 {\n width: 10rem;\n}\n.mly-w-5 {\n width: 1.25rem;\n}\n.mly-w-52 {\n width: 13rem;\n}\n.mly-w-6 {\n width: 1.5rem;\n}\n.mly-w-64 {\n width: 16rem;\n}\n.mly-w-7 {\n width: 1.75rem;\n}\n.mly-w-72 {\n width: 18rem;\n}\n.mly-w-9 {\n width: 2.25rem;\n}\n.mly-w-96 {\n width: 24rem;\n}\n.mly-w-\\[1\\.5px\\] {\n width: 1.5px;\n}\n.mly-w-\\[300px\\] {\n width: 300px;\n}\n.mly-w-full {\n width: 100%;\n}\n.mly-w-max {\n width: -moz-max-content;\n width: max-content;\n}\n.mly-w-px {\n width: 1px;\n}\n.mly-min-w-0 {\n min-width: 0px;\n}\n.mly-min-w-28 {\n min-width: 7rem;\n}\n.mly-min-w-\\[260px\\] {\n min-width: 260px;\n}\n.mly-min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.mly-max-w-12 {\n max-width: 3rem;\n}\n.mly-max-w-20 {\n max-width: 5rem;\n}\n.mly-max-w-28 {\n max-width: 7rem;\n}\n.mly-max-w-max {\n max-width: -moz-max-content;\n max-width: max-content;\n}\n.mly-max-w-xs {\n max-width: 20rem;\n}\n.mly-shrink-0 {\n flex-shrink: 0;\n}\n.mly-grow {\n flex-grow: 1;\n}\n.mly-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
|
-
var
|
|
100
|
-
var
|
|
99
|
+
var import_react49 = require("@tiptap/react");
|
|
100
|
+
var import_react50 = require("react");
|
|
101
101
|
|
|
102
102
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
103
|
-
var
|
|
104
|
-
var
|
|
103
|
+
var import_react10 = require("@tiptap/react");
|
|
104
|
+
var import_react11 = require("react");
|
|
105
105
|
|
|
106
106
|
// src/editor/utils/get-render-container.ts
|
|
107
107
|
function getRenderContainer(editor, nodeType) {
|
|
@@ -629,7 +629,7 @@ function VerticalAlignmentSwitch(props) {
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
// src/editor/components/show-popover.tsx
|
|
632
|
-
var
|
|
632
|
+
var import_lucide_react8 = require("lucide-react");
|
|
633
633
|
|
|
634
634
|
// src/editor/components/popover.tsx
|
|
635
635
|
var React3 = __toESM(require("react"));
|
|
@@ -656,232 +656,614 @@ var PopoverContent = React3.forwardRef((_a, ref) => {
|
|
|
656
656
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
657
657
|
|
|
658
658
|
// src/editor/components/show-popover.tsx
|
|
659
|
+
var import_react6 = require("react");
|
|
660
|
+
|
|
661
|
+
// src/editor/utils/use-outside-click.ts
|
|
659
662
|
var import_react2 = require("react");
|
|
663
|
+
var import_react3 = require("react");
|
|
664
|
+
function useOutsideClick(ref, callback) {
|
|
665
|
+
const handleClick = (0, import_react2.useCallback)(
|
|
666
|
+
(e) => {
|
|
667
|
+
if (ref.current && !ref.current.contains(e.target)) {
|
|
668
|
+
callback();
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
[ref, callback]
|
|
672
|
+
);
|
|
673
|
+
(0, import_react3.useEffect)(() => {
|
|
674
|
+
document.addEventListener("mousedown", handleClick);
|
|
675
|
+
document.addEventListener("touchstart", handleClick);
|
|
676
|
+
return () => {
|
|
677
|
+
document.removeEventListener("mousedown", handleClick);
|
|
678
|
+
document.removeEventListener("touchstart", handleClick);
|
|
679
|
+
};
|
|
680
|
+
}, [handleClick]);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
// src/editor/components/ui/input-autocomplete.tsx
|
|
684
|
+
var import_lucide_react2 = require("lucide-react");
|
|
685
|
+
var import_react4 = require("react");
|
|
660
686
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
687
|
+
var InputAutocomplete = (0, import_react4.forwardRef)((props, ref) => {
|
|
688
|
+
const _a = props, {
|
|
689
|
+
value = "",
|
|
690
|
+
onValueChange,
|
|
691
|
+
className,
|
|
692
|
+
onOutsideClick,
|
|
693
|
+
onSelectOption,
|
|
694
|
+
autoCompleteOptions = []
|
|
695
|
+
} = _a, inputProps = __objRest(_a, [
|
|
696
|
+
"value",
|
|
697
|
+
"onValueChange",
|
|
698
|
+
"className",
|
|
699
|
+
"onOutsideClick",
|
|
700
|
+
"onSelectOption",
|
|
701
|
+
"autoCompleteOptions"
|
|
702
|
+
]);
|
|
703
|
+
const containerRef = (0, import_react4.useRef)(null);
|
|
704
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react4.useState)(0);
|
|
705
|
+
useOutsideClick(containerRef, () => {
|
|
706
|
+
onOutsideClick == null ? void 0 : onOutsideClick();
|
|
707
|
+
});
|
|
708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: cn("mly-relative", className), ref: containerRef, children: [
|
|
709
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("label", { className: "mly-relative", children: [
|
|
710
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
711
|
+
"input",
|
|
712
|
+
__spreadProps(__spreadValues({}, inputProps), {
|
|
713
|
+
ref,
|
|
714
|
+
value,
|
|
715
|
+
onChange: (e) => {
|
|
716
|
+
setSelectedIndex(0);
|
|
717
|
+
onValueChange(e.target.value);
|
|
718
|
+
},
|
|
719
|
+
type: "text",
|
|
720
|
+
placeholder: "e.g. items",
|
|
721
|
+
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",
|
|
722
|
+
onKeyDown: (e) => {
|
|
723
|
+
if (e.key === "ArrowDown") {
|
|
694
724
|
e.preventDefault();
|
|
695
|
-
|
|
696
|
-
|
|
725
|
+
setSelectedIndex(
|
|
726
|
+
(prev) => Math.min(prev + 1, autoCompleteOptions.length - 1)
|
|
727
|
+
);
|
|
728
|
+
} else if (e.key === "ArrowUp") {
|
|
697
729
|
e.preventDefault();
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
"mly-flex mly-h-7 mly-min-w-28 mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
706
|
-
!isValidWhenKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
707
|
-
),
|
|
708
|
-
onClick: () => {
|
|
709
|
-
setIsUpdatingKey(true);
|
|
710
|
-
setTimeout(() => {
|
|
711
|
-
var _a;
|
|
712
|
-
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
713
|
-
}, 0);
|
|
714
|
-
},
|
|
715
|
-
children: [
|
|
716
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.Braces, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
717
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: showIfKey })
|
|
718
|
-
]
|
|
719
|
-
}
|
|
720
|
-
),
|
|
721
|
-
isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
722
|
-
"form",
|
|
723
|
-
{
|
|
724
|
-
onSubmit: (e) => {
|
|
725
|
-
e.preventDefault();
|
|
726
|
-
setIsUpdatingKey(false);
|
|
727
|
-
},
|
|
728
|
-
onKeyDown: (e) => {
|
|
729
|
-
if (e.key === "Escape") {
|
|
730
|
-
setIsUpdatingKey(false);
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("label", { className: "mly-relative", children: [
|
|
734
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
735
|
-
"input",
|
|
736
|
-
{
|
|
737
|
-
value: showIfKey || "",
|
|
738
|
-
onChange: (e) => {
|
|
739
|
-
onShowIfKeyValueChange == null ? void 0 : onShowIfKeyValueChange(e.target.value);
|
|
740
|
-
},
|
|
741
|
-
onBlur: () => {
|
|
742
|
-
setIsUpdatingKey(false);
|
|
743
|
-
},
|
|
744
|
-
ref: inputRef,
|
|
745
|
-
type: "text",
|
|
746
|
-
placeholder: "e.g. key",
|
|
747
|
-
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"
|
|
748
|
-
}
|
|
749
|
-
),
|
|
750
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
751
|
-
] })
|
|
752
|
-
}
|
|
753
|
-
)
|
|
754
|
-
]
|
|
730
|
+
setSelectedIndex((prev) => Math.max(prev - 1, 0));
|
|
731
|
+
} else if (e.key === "Enter") {
|
|
732
|
+
e.preventDefault();
|
|
733
|
+
const _value = autoCompleteOptions[selectedIndex];
|
|
734
|
+
onValueChange(_value);
|
|
735
|
+
onSelectOption == null ? void 0 : onSelectOption(_value);
|
|
736
|
+
}
|
|
755
737
|
}
|
|
756
|
-
)
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
// src/editor/components/column-menu/columns-width-config.tsx
|
|
763
|
-
var import_lucide_react3 = require("lucide-react");
|
|
764
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
765
|
-
function ColumnsWidthConfig(props) {
|
|
766
|
-
const {
|
|
767
|
-
columnsCount = 2,
|
|
768
|
-
onColumnsCountChange,
|
|
769
|
-
columnWidths,
|
|
770
|
-
onColumnWidthChange
|
|
771
|
-
} = props;
|
|
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 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
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
775
|
-
PopoverContent,
|
|
738
|
+
})
|
|
739
|
+
),
|
|
740
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "mly-absolute mly-inset-y-0 mly-right-1 mly-flex mly-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.CornerDownLeft, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-midnight-gray" }) })
|
|
741
|
+
] }),
|
|
742
|
+
autoCompleteOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.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: autoCompleteOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
743
|
+
"button",
|
|
776
744
|
{
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
e.preventDefault();
|
|
783
|
-
},
|
|
784
|
-
onCloseAutoFocus: (e) => {
|
|
785
|
-
e.preventDefault();
|
|
745
|
+
type: "button",
|
|
746
|
+
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",
|
|
747
|
+
onClick: () => {
|
|
748
|
+
onValueChange(option);
|
|
749
|
+
onSelectOption == null ? void 0 : onSelectOption(option);
|
|
786
750
|
},
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
isActive: columnsCount === 2,
|
|
794
|
-
children: [
|
|
795
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Columns2, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" }),
|
|
796
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "2 Columns" })
|
|
797
|
-
]
|
|
798
|
-
}
|
|
799
|
-
),
|
|
800
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
801
|
-
SwitchButton,
|
|
802
|
-
{
|
|
803
|
-
onClick: () => onColumnsCountChange(3),
|
|
804
|
-
isActive: columnsCount === 3,
|
|
805
|
-
children: [
|
|
806
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Columns3, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" }),
|
|
807
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "3 Columns" })
|
|
808
|
-
]
|
|
809
|
-
}
|
|
810
|
-
)
|
|
811
|
-
] }),
|
|
812
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("hr", { className: "mly-my-0.5 mly-border-gray-200" }),
|
|
813
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
814
|
-
"div",
|
|
815
|
-
{
|
|
816
|
-
className: "mly-grid mly-gap-1 mly-p-1",
|
|
817
|
-
style: { gridTemplateColumns: `repeat(${columnsCount}, 1fr)` },
|
|
818
|
-
children: Array.from({ length: columnsCount }).map((_, index) => {
|
|
819
|
-
const value = columnWidths[index] === "auto" ? "" : columnWidths[index];
|
|
820
|
-
const label = columnsCount === 2 ? index === 0 ? "Left" : "Right" : index === 0 ? "Left" : index === 1 ? "Middle" : "Right";
|
|
821
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "mly-flex mly-flex-col mly-gap-1", children: [
|
|
822
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "mly-text-xs mly-text-gray-400", children: label }),
|
|
823
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "mly-relative", children: [
|
|
824
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
825
|
-
"input",
|
|
826
|
-
{
|
|
827
|
-
placeholder: "auto",
|
|
828
|
-
min: 1,
|
|
829
|
-
max: 90,
|
|
830
|
-
type: "number",
|
|
831
|
-
className: "hide-number-controls mly-w-full mly-appearance-none mly-rounded-md mly-bg-soft-gray mly-px-1.5 mly-py-1 mly-pr-6 mly-text-sm mly-tabular-nums mly-outline-none focus:mly-bg-soft-gray focus:mly-outline-none focus:mly-ring-1 focus:mly-ring-midnight-gray/50",
|
|
832
|
-
value,
|
|
833
|
-
onChange: (e) => {
|
|
834
|
-
const value2 = e.target.value;
|
|
835
|
-
onColumnWidthChange == null ? void 0 : onColumnWidthChange(index, value2);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
),
|
|
839
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-aspect-square mly-items-center mly-justify-center mly-text-xs mly-tabular-nums mly-text-gray-500", children: "%" })
|
|
840
|
-
] })
|
|
841
|
-
] }, index);
|
|
842
|
-
})
|
|
843
|
-
}
|
|
844
|
-
)
|
|
845
|
-
]
|
|
846
|
-
}
|
|
847
|
-
)
|
|
751
|
+
onMouseEnter: () => setSelectedIndex(index),
|
|
752
|
+
"aria-selected": selectedIndex === index,
|
|
753
|
+
children: option
|
|
754
|
+
},
|
|
755
|
+
option
|
|
756
|
+
)) })
|
|
848
757
|
] });
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
const { onClick, isActive = false, children } = props;
|
|
852
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
853
|
-
"button",
|
|
854
|
-
{
|
|
855
|
-
className: cn(
|
|
856
|
-
"mly-flex mly-h-7 mly-items-center mly-gap-1 mly-rounded-md mly-px-2 mly-text-sm mly-text-gray-500 hover:mly-bg-soft-gray hover:mly-text-midnight-gray",
|
|
857
|
-
isActive && "mly-bg-soft-gray mly-text-midnight-gray"
|
|
858
|
-
),
|
|
859
|
-
onClick,
|
|
860
|
-
children
|
|
861
|
-
}
|
|
862
|
-
);
|
|
863
|
-
}
|
|
758
|
+
});
|
|
759
|
+
InputAutocomplete.displayName = "InputAutocomplete";
|
|
864
760
|
|
|
865
|
-
// src/editor/
|
|
866
|
-
var
|
|
761
|
+
// src/editor/provider.tsx
|
|
762
|
+
var import_react5 = require("react");
|
|
763
|
+
|
|
764
|
+
// src/blocks/button.tsx
|
|
765
|
+
var import_lucide_react3 = require("lucide-react");
|
|
766
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
767
|
+
var button = {
|
|
768
|
+
title: "Button",
|
|
769
|
+
description: "Add a call to action button to email.",
|
|
770
|
+
searchTerms: ["link", "button", "cta"],
|
|
771
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.MousePointer, { className: "mly-h-4 mly-w-4" }),
|
|
772
|
+
command: ({ editor, range }) => {
|
|
773
|
+
editor.chain().focus().deleteRange(range).setButton().run();
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
var linkCard = {
|
|
777
|
+
title: "Link Card",
|
|
778
|
+
description: "Add a link card to email.",
|
|
779
|
+
searchTerms: ["link", "button", "image"],
|
|
780
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
|
|
781
|
+
command: ({ editor, range }) => {
|
|
782
|
+
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
// src/blocks/image.tsx
|
|
867
787
|
var import_lucide_react4 = require("lucide-react");
|
|
868
788
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
789
|
+
var image = {
|
|
790
|
+
title: "Image",
|
|
791
|
+
description: "Full width image",
|
|
792
|
+
searchTerms: ["image"],
|
|
793
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
794
|
+
command: ({ editor, range }) => {
|
|
795
|
+
editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
var logo = {
|
|
799
|
+
title: "Logo",
|
|
800
|
+
description: "Add your brand logo",
|
|
801
|
+
searchTerms: ["image", "logo"],
|
|
802
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
803
|
+
command: ({ editor, range }) => {
|
|
804
|
+
editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
// src/blocks/layout.tsx
|
|
809
|
+
var import_lucide_react5 = require("lucide-react");
|
|
810
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
811
|
+
var columns = {
|
|
812
|
+
title: "Columns",
|
|
813
|
+
description: "Add columns to email.",
|
|
814
|
+
searchTerms: ["layout", "columns"],
|
|
815
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.ColumnsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
816
|
+
shouldBeHidden: (editor) => {
|
|
817
|
+
return editor.isActive("columns");
|
|
818
|
+
},
|
|
819
|
+
command: ({ editor, range }) => {
|
|
820
|
+
editor.chain().focus().deleteRange(range).setColumns().focus(editor.state.selection.head - 2).run();
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
var section = {
|
|
824
|
+
title: "Section",
|
|
825
|
+
description: "Add a section to email.",
|
|
826
|
+
searchTerms: ["layout", "section"],
|
|
827
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.RectangleHorizontal, { className: "mly-h-4 mly-w-4" }),
|
|
828
|
+
command: ({ editor, range }) => {
|
|
829
|
+
editor.chain().focus().deleteRange(range).setSection().run();
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
var forLoop = {
|
|
833
|
+
title: "For",
|
|
834
|
+
description: "Loop over an array of items.",
|
|
835
|
+
searchTerms: ["for", "loop"],
|
|
836
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.Repeat2, { className: "mly-h-4 mly-w-4" }),
|
|
837
|
+
shouldBeHidden: (editor) => {
|
|
838
|
+
return editor.isActive("for");
|
|
839
|
+
},
|
|
840
|
+
command: ({ editor, range }) => {
|
|
841
|
+
editor.chain().focus().deleteRange(range).setFor().run();
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
var spacer = {
|
|
845
|
+
title: "Spacer",
|
|
846
|
+
description: "Add space between blocks.",
|
|
847
|
+
searchTerms: ["space", "gap", "divider"],
|
|
848
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.MoveVertical, { className: "mly-h-4 mly-w-4" }),
|
|
849
|
+
command: ({ editor, range }) => {
|
|
850
|
+
editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
var divider = {
|
|
854
|
+
title: "Divider",
|
|
855
|
+
description: "Add a horizontal divider.",
|
|
856
|
+
searchTerms: ["divider", "line"],
|
|
857
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.Minus, { className: "mly-h-4 mly-w-4" }),
|
|
858
|
+
command: ({ editor, range }) => {
|
|
859
|
+
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
// src/blocks/list.tsx
|
|
864
|
+
var import_lucide_react6 = require("lucide-react");
|
|
865
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
866
|
+
var bulletList = {
|
|
867
|
+
title: "Bullet List",
|
|
868
|
+
description: "Create a simple bullet list.",
|
|
869
|
+
searchTerms: ["unordered", "point"],
|
|
870
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react6.List, { className: "mly-h-4 mly-w-4" }),
|
|
871
|
+
command: ({ editor, range }) => {
|
|
872
|
+
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
var orderedList = {
|
|
876
|
+
title: "Numbered List",
|
|
877
|
+
description: "Create a list with numbering.",
|
|
878
|
+
searchTerms: ["ordered"],
|
|
879
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react6.ListOrdered, { className: "mly-h-4 mly-w-4" }),
|
|
880
|
+
command: ({ editor, range }) => {
|
|
881
|
+
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
// src/blocks/typography.tsx
|
|
886
|
+
var import_lucide_react7 = require("lucide-react");
|
|
887
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
888
|
+
var text = {
|
|
889
|
+
title: "Text",
|
|
890
|
+
description: "Just start typing with plain text.",
|
|
891
|
+
searchTerms: ["p", "paragraph"],
|
|
892
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.Text, { className: "mly-h-4 mly-w-4" }),
|
|
893
|
+
command: ({ editor, range }) => {
|
|
894
|
+
editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
var heading1 = {
|
|
898
|
+
title: "Heading 1",
|
|
899
|
+
description: "Big heading.",
|
|
900
|
+
searchTerms: ["title", "big", "large"],
|
|
901
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.Heading1, { className: "mly-h-4 mly-w-4" }),
|
|
902
|
+
command: ({ editor, range }) => {
|
|
903
|
+
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
var heading2 = {
|
|
907
|
+
title: "Heading 2",
|
|
908
|
+
description: "Medium heading.",
|
|
909
|
+
searchTerms: ["subtitle", "medium"],
|
|
910
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.Heading2, { className: "mly-h-4 mly-w-4" }),
|
|
911
|
+
command: ({ editor, range }) => {
|
|
912
|
+
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
var heading3 = {
|
|
916
|
+
title: "Heading 3",
|
|
917
|
+
description: "Small heading.",
|
|
918
|
+
searchTerms: ["subtitle", "small"],
|
|
919
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.Heading3, { className: "mly-h-4 mly-w-4" }),
|
|
920
|
+
command: ({ editor, range }) => {
|
|
921
|
+
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
var hardBreak = {
|
|
925
|
+
title: "Hard Break",
|
|
926
|
+
description: "Add a break between lines.",
|
|
927
|
+
searchTerms: ["break", "line"],
|
|
928
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.DivideIcon, { className: "mly-h-4 mly-w-4" }),
|
|
929
|
+
command: ({ editor, range }) => {
|
|
930
|
+
editor.chain().focus().deleteRange(range).setHardBreak().run();
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
var blockquote = {
|
|
934
|
+
title: "Blockquote",
|
|
935
|
+
description: "Add blockquote.",
|
|
936
|
+
searchTerms: ["quote", "blockquote"],
|
|
937
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.TextQuote, { className: "mly-h-4 mly-w-4" }),
|
|
938
|
+
command: ({ editor, range }) => {
|
|
939
|
+
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
var footer = {
|
|
943
|
+
title: "Footer",
|
|
944
|
+
description: "Add a footer text to email.",
|
|
945
|
+
searchTerms: ["footer", "text"],
|
|
946
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.FootprintsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
947
|
+
command: ({ editor, range }) => {
|
|
948
|
+
editor.chain().focus().deleteRange(range).setFooter().run();
|
|
949
|
+
}
|
|
950
|
+
};
|
|
951
|
+
var clearLine = {
|
|
952
|
+
title: "Clear Line",
|
|
953
|
+
description: "Clear the current line.",
|
|
954
|
+
searchTerms: ["clear", "line"],
|
|
955
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react7.EraserIcon, { className: "mly-h-4 mly-w-4" }),
|
|
956
|
+
command: ({ editor, range }) => {
|
|
957
|
+
editor.chain().focus().selectParentNode().deleteSelection().run();
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
// src/editor/extensions/slash-command/default-slash-commands.ts
|
|
962
|
+
var DEFAULT_SLASH_COMMANDS = [
|
|
963
|
+
text,
|
|
964
|
+
heading1,
|
|
965
|
+
heading2,
|
|
966
|
+
heading3,
|
|
967
|
+
bulletList,
|
|
968
|
+
orderedList,
|
|
969
|
+
image,
|
|
970
|
+
logo,
|
|
971
|
+
columns,
|
|
972
|
+
section,
|
|
973
|
+
forLoop,
|
|
974
|
+
divider,
|
|
975
|
+
spacer,
|
|
976
|
+
button,
|
|
977
|
+
linkCard,
|
|
978
|
+
hardBreak,
|
|
979
|
+
blockquote,
|
|
980
|
+
footer,
|
|
981
|
+
clearLine
|
|
982
|
+
];
|
|
983
|
+
|
|
984
|
+
// src/editor/provider.tsx
|
|
985
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
986
|
+
var DEFAULT_VARIABLE_TRIGGER_CHAR = "@";
|
|
987
|
+
var DEFAULT_VARIABLES = [];
|
|
988
|
+
var MailyContext = (0, import_react5.createContext)({
|
|
989
|
+
variableTriggerCharacter: DEFAULT_VARIABLE_TRIGGER_CHAR,
|
|
990
|
+
variables: DEFAULT_VARIABLES,
|
|
991
|
+
blocks: DEFAULT_SLASH_COMMANDS
|
|
992
|
+
});
|
|
993
|
+
function MailyProvider(props) {
|
|
994
|
+
const _a = props, { children } = _a, defaultValues = __objRest(_a, ["children"]);
|
|
995
|
+
if (defaultValues.variableTriggerCharacter === "") {
|
|
996
|
+
throw new Error("variableTriggerCharacter cannot be an empty string");
|
|
997
|
+
}
|
|
998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(MailyContext.Provider, { value: defaultValues, children });
|
|
999
|
+
}
|
|
1000
|
+
function useMailyContext() {
|
|
1001
|
+
const values = (0, import_react5.useContext)(MailyContext);
|
|
1002
|
+
if (!values) {
|
|
1003
|
+
throw new Error("Missing MailyContext.Provider in the component tree");
|
|
1004
|
+
}
|
|
1005
|
+
return values;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// src/editor/components/show-popover.tsx
|
|
1009
|
+
var import_react7 = require("react");
|
|
1010
|
+
var import_react8 = require("react");
|
|
1011
|
+
|
|
1012
|
+
// src/editor/utils/variable.ts
|
|
1013
|
+
function processVariables(variables, options) {
|
|
1014
|
+
const { query } = options;
|
|
1015
|
+
const queryLower = query.toLowerCase();
|
|
1016
|
+
let filteredVariables = [];
|
|
1017
|
+
if (Array.isArray(variables)) {
|
|
1018
|
+
filteredVariables = variables.filter(
|
|
1019
|
+
(variable) => variable.name.toLowerCase().startsWith(queryLower)
|
|
1020
|
+
);
|
|
1021
|
+
if (query.length > 0 && !filteredVariables.some((variable) => variable.name === query)) {
|
|
1022
|
+
filteredVariables.push({ name: query, required: true });
|
|
1023
|
+
}
|
|
1024
|
+
return filteredVariables;
|
|
1025
|
+
} else if (typeof variables === "function") {
|
|
1026
|
+
return variables(options);
|
|
1027
|
+
} else {
|
|
1028
|
+
throw new Error(`Invalid variables type. Expected 'Array' or 'Function', but received '${typeof variables}'.
|
|
1029
|
+
|
|
1030
|
+
You can check out the documentation for more information: https://github.com/arikchakma/maily.to/blob/main/packages/core/readme.md`);
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// src/editor/components/show-popover.tsx
|
|
1035
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1036
|
+
function _ShowPopover(props) {
|
|
1037
|
+
const { showIfKey = "", onShowIfKeyValueChange, editor } = props;
|
|
1038
|
+
const { variables = [] } = useMailyContext();
|
|
1039
|
+
const [isUpdatingKey, setIsUpdatingKey] = (0, import_react6.useState)(false);
|
|
1040
|
+
const inputRef = (0, import_react6.useRef)(null);
|
|
1041
|
+
const autoCompleteOptions = (0, import_react7.useMemo)(() => {
|
|
1042
|
+
return processVariables(variables, {
|
|
1043
|
+
query: showIfKey || "",
|
|
1044
|
+
from: "variable",
|
|
1045
|
+
editor
|
|
1046
|
+
}).map((variable) => variable.name).slice(0, 5);
|
|
1047
|
+
}, [variables, showIfKey, editor]);
|
|
1048
|
+
const isValidWhenKey = showIfKey || autoCompleteOptions.includes(showIfKey);
|
|
1049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1050
|
+
Popover,
|
|
1051
|
+
{
|
|
1052
|
+
onOpenChange: (open) => {
|
|
1053
|
+
if (open) {
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
setIsUpdatingKey(false);
|
|
1057
|
+
},
|
|
1058
|
+
children: [
|
|
1059
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1060
|
+
PopoverTrigger,
|
|
1061
|
+
{
|
|
1062
|
+
className: cn(
|
|
1063
|
+
"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",
|
|
1064
|
+
showIfKey && "mly-bg-rose-100 mly-text-rose-800 data-[state=open]:mly-bg-rose-100 hover:mly-bg-rose-100"
|
|
1065
|
+
),
|
|
1066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react8.Eye, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" })
|
|
1067
|
+
}
|
|
1068
|
+
),
|
|
1069
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1070
|
+
PopoverContent,
|
|
1071
|
+
{
|
|
1072
|
+
className: "mly-flex mly-w-max mly-rounded-lg !mly-p-0.5",
|
|
1073
|
+
side: "top",
|
|
1074
|
+
sideOffset: 8,
|
|
1075
|
+
align: "end",
|
|
1076
|
+
onOpenAutoFocus: (e) => {
|
|
1077
|
+
e.preventDefault();
|
|
1078
|
+
},
|
|
1079
|
+
onCloseAutoFocus: (e) => {
|
|
1080
|
+
e.preventDefault();
|
|
1081
|
+
},
|
|
1082
|
+
children: [
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly-flex mly-items-center mly-px-1.5 mly-text-sm mly-leading-none", children: "Show if" }),
|
|
1084
|
+
!isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1085
|
+
"button",
|
|
1086
|
+
{
|
|
1087
|
+
className: cn(
|
|
1088
|
+
"mly-flex mly-h-7 mly-min-w-28 mly-items-center mly-gap-1.5 mly-rounded-md mly-border mly-px-2 mly-font-mono mly-text-sm hover:mly-bg-soft-gray",
|
|
1089
|
+
!isValidWhenKey && "mly-border-rose-400 mly-bg-rose-50 mly-text-rose-600 hover:mly-bg-rose-100"
|
|
1090
|
+
),
|
|
1091
|
+
onClick: () => {
|
|
1092
|
+
setIsUpdatingKey(true);
|
|
1093
|
+
setTimeout(() => {
|
|
1094
|
+
var _a;
|
|
1095
|
+
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
1096
|
+
}, 0);
|
|
1097
|
+
},
|
|
1098
|
+
children: [
|
|
1099
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react8.Braces, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: showIfKey })
|
|
1101
|
+
]
|
|
1102
|
+
}
|
|
1103
|
+
),
|
|
1104
|
+
isUpdatingKey && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1105
|
+
"form",
|
|
1106
|
+
{
|
|
1107
|
+
onSubmit: (e) => {
|
|
1108
|
+
e.preventDefault();
|
|
1109
|
+
setIsUpdatingKey(false);
|
|
1110
|
+
},
|
|
1111
|
+
onKeyDown: (e) => {
|
|
1112
|
+
if (e.key === "Escape") {
|
|
1113
|
+
setIsUpdatingKey(false);
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1117
|
+
InputAutocomplete,
|
|
1118
|
+
{
|
|
1119
|
+
value: showIfKey || "",
|
|
1120
|
+
onValueChange: (value) => {
|
|
1121
|
+
onShowIfKeyValueChange == null ? void 0 : onShowIfKeyValueChange(value);
|
|
1122
|
+
},
|
|
1123
|
+
onOutsideClick: () => {
|
|
1124
|
+
setIsUpdatingKey(false);
|
|
1125
|
+
},
|
|
1126
|
+
onSelectOption: () => {
|
|
1127
|
+
setIsUpdatingKey(false);
|
|
1128
|
+
},
|
|
1129
|
+
autoCompleteOptions,
|
|
1130
|
+
ref: inputRef
|
|
1131
|
+
}
|
|
1132
|
+
)
|
|
1133
|
+
}
|
|
1134
|
+
)
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1137
|
+
)
|
|
1138
|
+
]
|
|
1139
|
+
}
|
|
1140
|
+
);
|
|
1141
|
+
}
|
|
1142
|
+
var ShowPopover = (0, import_react8.memo)(_ShowPopover);
|
|
1143
|
+
|
|
1144
|
+
// src/editor/components/column-menu/columns-width-config.tsx
|
|
1145
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1146
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1147
|
+
function ColumnsWidthConfig(props) {
|
|
1148
|
+
const {
|
|
1149
|
+
columnsCount = 2,
|
|
1150
|
+
onColumnsCountChange,
|
|
1151
|
+
columnWidths,
|
|
1152
|
+
onColumnWidthChange
|
|
1153
|
+
} = props;
|
|
1154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Popover, { children: [
|
|
1155
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.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_runtime15.jsx)(import_lucide_react9.SlidersVertical, { className: "mly-h-3 mly-w-3 mly-stroke-[2.5]" }) }),
|
|
1156
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1157
|
+
PopoverContent,
|
|
1158
|
+
{
|
|
1159
|
+
className: "mly-w-[300px] mly-rounded-lg !mly-p-0.5",
|
|
1160
|
+
side: "top",
|
|
1161
|
+
sideOffset: 8,
|
|
1162
|
+
align: "center",
|
|
1163
|
+
onOpenAutoFocus: (e) => {
|
|
1164
|
+
e.preventDefault();
|
|
1165
|
+
},
|
|
1166
|
+
onCloseAutoFocus: (e) => {
|
|
1167
|
+
e.preventDefault();
|
|
1168
|
+
},
|
|
1169
|
+
children: [
|
|
1170
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "mly-grid mly-grid-cols-2 mly-gap-1", children: [
|
|
1171
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1172
|
+
SwitchButton,
|
|
1173
|
+
{
|
|
1174
|
+
onClick: () => onColumnsCountChange(2),
|
|
1175
|
+
isActive: columnsCount === 2,
|
|
1176
|
+
children: [
|
|
1177
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react9.Columns2, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" }),
|
|
1178
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "2 Columns" })
|
|
1179
|
+
]
|
|
1180
|
+
}
|
|
1181
|
+
),
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1183
|
+
SwitchButton,
|
|
1184
|
+
{
|
|
1185
|
+
onClick: () => onColumnsCountChange(3),
|
|
1186
|
+
isActive: columnsCount === 3,
|
|
1187
|
+
children: [
|
|
1188
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react9.Columns3, { className: "mly-h-4 mly-w-4 mly-stroke-[2.5]" }),
|
|
1189
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "3 Columns" })
|
|
1190
|
+
]
|
|
1191
|
+
}
|
|
1192
|
+
)
|
|
1193
|
+
] }),
|
|
1194
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("hr", { className: "mly-my-0.5 mly-border-gray-200" }),
|
|
1195
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1196
|
+
"div",
|
|
1197
|
+
{
|
|
1198
|
+
className: "mly-grid mly-gap-1 mly-p-1",
|
|
1199
|
+
style: { gridTemplateColumns: `repeat(${columnsCount}, 1fr)` },
|
|
1200
|
+
children: Array.from({ length: columnsCount }).map((_, index) => {
|
|
1201
|
+
const value = columnWidths[index] === "auto" ? "" : columnWidths[index];
|
|
1202
|
+
const label = columnsCount === 2 ? index === 0 ? "Left" : "Right" : index === 0 ? "Left" : index === 1 ? "Middle" : "Right";
|
|
1203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "mly-flex mly-flex-col mly-gap-1", children: [
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mly-text-xs mly-text-gray-400", children: label }),
|
|
1205
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: "mly-relative", children: [
|
|
1206
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1207
|
+
"input",
|
|
1208
|
+
{
|
|
1209
|
+
placeholder: "auto",
|
|
1210
|
+
min: 1,
|
|
1211
|
+
max: 90,
|
|
1212
|
+
type: "number",
|
|
1213
|
+
className: "hide-number-controls mly-w-full mly-appearance-none mly-rounded-md mly-bg-soft-gray mly-px-1.5 mly-py-1 mly-pr-6 mly-text-sm mly-tabular-nums mly-outline-none focus:mly-bg-soft-gray focus:mly-outline-none focus:mly-ring-1 focus:mly-ring-midnight-gray/50",
|
|
1214
|
+
value,
|
|
1215
|
+
onChange: (e) => {
|
|
1216
|
+
const value2 = e.target.value;
|
|
1217
|
+
onColumnWidthChange == null ? void 0 : onColumnWidthChange(index, value2);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
),
|
|
1221
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "mly-absolute mly-inset-y-0 mly-right-0 mly-flex mly-aspect-square mly-items-center mly-justify-center mly-text-xs mly-tabular-nums mly-text-gray-500", children: "%" })
|
|
1222
|
+
] })
|
|
1223
|
+
] }, index);
|
|
1224
|
+
})
|
|
1225
|
+
}
|
|
1226
|
+
)
|
|
1227
|
+
]
|
|
1228
|
+
}
|
|
1229
|
+
)
|
|
1230
|
+
] });
|
|
1231
|
+
}
|
|
1232
|
+
function SwitchButton(props) {
|
|
1233
|
+
const { onClick, isActive = false, children } = props;
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1235
|
+
"button",
|
|
1236
|
+
{
|
|
1237
|
+
className: cn(
|
|
1238
|
+
"mly-flex mly-h-7 mly-items-center mly-gap-1 mly-rounded-md mly-px-2 mly-text-sm mly-text-gray-500 hover:mly-bg-soft-gray hover:mly-text-midnight-gray",
|
|
1239
|
+
isActive && "mly-bg-soft-gray mly-text-midnight-gray"
|
|
1240
|
+
),
|
|
1241
|
+
onClick,
|
|
1242
|
+
children
|
|
1243
|
+
}
|
|
1244
|
+
);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
// src/editor/components/ui/select.tsx
|
|
1248
|
+
var import_react9 = require("react");
|
|
1249
|
+
var import_lucide_react10 = require("lucide-react");
|
|
1250
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1251
|
+
function Select(props) {
|
|
1252
|
+
const {
|
|
1253
|
+
label,
|
|
1254
|
+
options,
|
|
1255
|
+
value,
|
|
1256
|
+
onValueChange,
|
|
1257
|
+
tooltip,
|
|
1258
|
+
className,
|
|
1259
|
+
icon: Icon,
|
|
1260
|
+
iconClassName
|
|
1261
|
+
} = props;
|
|
1262
|
+
const selectId = `mly${(0, import_react9.useId)()}`;
|
|
1263
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "relative", children: [
|
|
1264
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("label", { htmlFor: selectId, className: "sr-only", children: label }),
|
|
1265
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime16.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_runtime16.jsx)(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
1266
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
885
1267
|
"select",
|
|
886
1268
|
{
|
|
887
1269
|
id: selectId,
|
|
@@ -892,11 +1274,11 @@ function Select(props) {
|
|
|
892
1274
|
),
|
|
893
1275
|
value,
|
|
894
1276
|
onChange: (event) => onValueChange(event.target.value),
|
|
895
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
1277
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: option.value, children: option.label }, option.value))
|
|
896
1278
|
}
|
|
897
1279
|
),
|
|
898
|
-
/* @__PURE__ */ (0,
|
|
899
|
-
|
|
1280
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.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_runtime16.jsx)(
|
|
1281
|
+
import_lucide_react10.ChevronDownIcon,
|
|
900
1282
|
{
|
|
901
1283
|
size: 16,
|
|
902
1284
|
strokeWidth: 2,
|
|
@@ -908,14 +1290,14 @@ function Select(props) {
|
|
|
908
1290
|
if (!tooltip) {
|
|
909
1291
|
return content;
|
|
910
1292
|
}
|
|
911
|
-
return /* @__PURE__ */ (0,
|
|
912
|
-
/* @__PURE__ */ (0,
|
|
913
|
-
/* @__PURE__ */ (0,
|
|
1293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Tooltip, { children: [
|
|
1294
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipTrigger, { asChild: true, children: content }),
|
|
1295
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipContent, { sideOffset: 8, children: tooltip })
|
|
914
1296
|
] });
|
|
915
1297
|
}
|
|
916
1298
|
|
|
917
1299
|
// src/editor/components/column-menu/columns-bubble-menu-content.tsx
|
|
918
|
-
var
|
|
1300
|
+
var import_lucide_react11 = require("lucide-react");
|
|
919
1301
|
|
|
920
1302
|
// src/editor/utils/delete-node.ts
|
|
921
1303
|
var import_core4 = require("@tiptap/core");
|
|
@@ -935,7 +1317,7 @@ function deleteNode(editor, nodeType) {
|
|
|
935
1317
|
}
|
|
936
1318
|
|
|
937
1319
|
// src/editor/components/column-menu/columns-bubble-menu-content.tsx
|
|
938
|
-
var
|
|
1320
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
939
1321
|
function ColumnsBubbleMenuContent(props) {
|
|
940
1322
|
const { editor } = props;
|
|
941
1323
|
if (!editor) {
|
|
@@ -943,9 +1325,9 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
943
1325
|
}
|
|
944
1326
|
const state = useColumnsState(editor);
|
|
945
1327
|
const currentColumnCount = state.columnsCount;
|
|
946
|
-
return /* @__PURE__ */ (0,
|
|
947
|
-
state.isColumnActive && /* @__PURE__ */ (0,
|
|
948
|
-
/* @__PURE__ */ (0,
|
|
1328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "mly-flex mly-items-stretch", children: [
|
|
1329
|
+
state.isColumnActive && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
1330
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
949
1331
|
ColumnsWidthConfig,
|
|
950
1332
|
{
|
|
951
1333
|
columnsCount: currentColumnCount,
|
|
@@ -962,9 +1344,9 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
962
1344
|
}
|
|
963
1345
|
}
|
|
964
1346
|
),
|
|
965
|
-
/* @__PURE__ */ (0,
|
|
1347
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {})
|
|
966
1348
|
] }),
|
|
967
|
-
/* @__PURE__ */ (0,
|
|
1349
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
968
1350
|
VerticalAlignmentSwitch,
|
|
969
1351
|
{
|
|
970
1352
|
alignment: state.currentVerticalAlignment,
|
|
@@ -975,11 +1357,11 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
975
1357
|
}
|
|
976
1358
|
}
|
|
977
1359
|
),
|
|
978
|
-
/* @__PURE__ */ (0,
|
|
979
|
-
/* @__PURE__ */ (0,
|
|
1360
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {}),
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
980
1362
|
Select,
|
|
981
1363
|
{
|
|
982
|
-
icon:
|
|
1364
|
+
icon: import_lucide_react11.Space,
|
|
983
1365
|
label: "Columns Gap",
|
|
984
1366
|
value: state.currentColumnsGap,
|
|
985
1367
|
options: [
|
|
@@ -997,19 +1379,19 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
997
1379
|
tooltip: "Columns Gap"
|
|
998
1380
|
}
|
|
999
1381
|
),
|
|
1000
|
-
/* @__PURE__ */ (0,
|
|
1001
|
-
/* @__PURE__ */ (0,
|
|
1382
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {}),
|
|
1383
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1002
1384
|
BubbleMenuButton,
|
|
1003
1385
|
{
|
|
1004
|
-
icon:
|
|
1386
|
+
icon: import_lucide_react11.Trash,
|
|
1005
1387
|
tooltip: "Delete Columns",
|
|
1006
1388
|
command: () => {
|
|
1007
1389
|
deleteNode(editor, "columns");
|
|
1008
1390
|
}
|
|
1009
1391
|
}
|
|
1010
1392
|
),
|
|
1011
|
-
/* @__PURE__ */ (0,
|
|
1012
|
-
/* @__PURE__ */ (0,
|
|
1393
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {}),
|
|
1394
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1013
1395
|
ShowPopover,
|
|
1014
1396
|
{
|
|
1015
1397
|
showIfKey: state.currentShowIfKey,
|
|
@@ -1017,20 +1399,21 @@ function ColumnsBubbleMenuContent(props) {
|
|
|
1017
1399
|
editor.commands.updateColumns({
|
|
1018
1400
|
showIfKey: value
|
|
1019
1401
|
});
|
|
1020
|
-
}
|
|
1402
|
+
},
|
|
1403
|
+
editor
|
|
1021
1404
|
}
|
|
1022
1405
|
)
|
|
1023
1406
|
] }) });
|
|
1024
1407
|
}
|
|
1025
1408
|
|
|
1026
1409
|
// src/editor/components/column-menu/columns-bubble-menu.tsx
|
|
1027
|
-
var
|
|
1410
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1028
1411
|
function ColumnsBubbleMenu(props) {
|
|
1029
1412
|
const { appendTo, editor } = props;
|
|
1030
1413
|
if (!editor) {
|
|
1031
1414
|
return null;
|
|
1032
1415
|
}
|
|
1033
|
-
const getReferenceClientRect = (0,
|
|
1416
|
+
const getReferenceClientRect = (0, import_react11.useCallback)(() => {
|
|
1034
1417
|
const renderContainer = getRenderContainer(editor, "columns");
|
|
1035
1418
|
const rect = (renderContainer == null ? void 0 : renderContainer.getBoundingClientRect()) || new DOMRect(-1e3, -1e3, 0, 0);
|
|
1036
1419
|
return rect;
|
|
@@ -1055,23 +1438,23 @@ function ColumnsBubbleMenu(props) {
|
|
|
1055
1438
|
},
|
|
1056
1439
|
pluginKey: "columnsBubbleMenu"
|
|
1057
1440
|
});
|
|
1058
|
-
return /* @__PURE__ */ (0,
|
|
1059
|
-
|
|
1441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1442
|
+
import_react10.BubbleMenu,
|
|
1060
1443
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
1061
1444
|
className: "mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
1062
|
-
children: /* @__PURE__ */ (0,
|
|
1445
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ColumnsBubbleMenuContent, { editor })
|
|
1063
1446
|
})
|
|
1064
1447
|
);
|
|
1065
1448
|
}
|
|
1066
1449
|
|
|
1067
1450
|
// src/editor/components/content-menu.tsx
|
|
1068
|
-
var
|
|
1069
|
-
var
|
|
1451
|
+
var import_react13 = require("react");
|
|
1452
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1070
1453
|
|
|
1071
1454
|
// src/editor/components/drag-handle.tsx
|
|
1072
|
-
var
|
|
1455
|
+
var import_react12 = require("react");
|
|
1073
1456
|
var import_echo_drag_handle_plugin = require("echo-drag-handle-plugin");
|
|
1074
|
-
var
|
|
1457
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1075
1458
|
function DragHandle(props) {
|
|
1076
1459
|
const {
|
|
1077
1460
|
className = "drag-handle",
|
|
@@ -1081,9 +1464,9 @@ function DragHandle(props) {
|
|
|
1081
1464
|
onNodeChange,
|
|
1082
1465
|
tippyOptions = {}
|
|
1083
1466
|
} = props;
|
|
1084
|
-
const [element, setElement] = (0,
|
|
1085
|
-
const pluginRef = (0,
|
|
1086
|
-
(0,
|
|
1467
|
+
const [element, setElement] = (0, import_react12.useState)(null);
|
|
1468
|
+
const pluginRef = (0, import_react12.useRef)(null);
|
|
1469
|
+
(0, import_react12.useEffect)(() => {
|
|
1087
1470
|
if (!element) {
|
|
1088
1471
|
return () => {
|
|
1089
1472
|
pluginRef.current = null;
|
|
@@ -1109,17 +1492,17 @@ function DragHandle(props) {
|
|
|
1109
1492
|
pluginRef.current = null;
|
|
1110
1493
|
};
|
|
1111
1494
|
}, [element, editor, onNodeChange, pluginKey]);
|
|
1112
|
-
return /* @__PURE__ */ (0,
|
|
1495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className, ref: setElement, children });
|
|
1113
1496
|
}
|
|
1114
1497
|
|
|
1115
1498
|
// src/editor/components/content-menu.tsx
|
|
1116
|
-
var
|
|
1499
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1117
1500
|
function ContentMenu(props) {
|
|
1118
1501
|
const { editor } = props;
|
|
1119
|
-
const [menuOpen, setMenuOpen] = (0,
|
|
1120
|
-
const [currentNode, setCurrentNode] = (0,
|
|
1121
|
-
const [currentNodePos, setCurrentNodePos] = (0,
|
|
1122
|
-
const handleNodeChange = (0,
|
|
1502
|
+
const [menuOpen, setMenuOpen] = (0, import_react13.useState)(false);
|
|
1503
|
+
const [currentNode, setCurrentNode] = (0, import_react13.useState)(null);
|
|
1504
|
+
const [currentNodePos, setCurrentNodePos] = (0, import_react13.useState)(-1);
|
|
1505
|
+
const handleNodeChange = (0, import_react13.useCallback)(
|
|
1123
1506
|
(data) => {
|
|
1124
1507
|
if (data.node) {
|
|
1125
1508
|
setCurrentNode(data.node);
|
|
@@ -1167,7 +1550,7 @@ function ContentMenu(props) {
|
|
|
1167
1550
|
}).focus(focusPos).run();
|
|
1168
1551
|
}
|
|
1169
1552
|
}
|
|
1170
|
-
(0,
|
|
1553
|
+
(0, import_react13.useEffect)(() => {
|
|
1171
1554
|
if (menuOpen) {
|
|
1172
1555
|
editor.commands.setMeta("lockDragHandle", true);
|
|
1173
1556
|
} else {
|
|
@@ -1177,53 +1560,54 @@ function ContentMenu(props) {
|
|
|
1177
1560
|
editor.commands.setMeta("lockDragHandle", false);
|
|
1178
1561
|
};
|
|
1179
1562
|
}, [editor, menuOpen]);
|
|
1180
|
-
return /* @__PURE__ */ (0,
|
|
1563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1181
1564
|
DragHandle,
|
|
1182
1565
|
{
|
|
1183
1566
|
pluginKey: "ContentMenu",
|
|
1184
1567
|
editor,
|
|
1185
1568
|
tippyOptions: {
|
|
1186
|
-
offset: [
|
|
1569
|
+
offset: [2, 0],
|
|
1187
1570
|
zIndex: 99
|
|
1188
1571
|
},
|
|
1189
1572
|
onNodeChange: handleNodeChange,
|
|
1190
|
-
children: /* @__PURE__ */ (0,
|
|
1191
|
-
/* @__PURE__ */ (0,
|
|
1192
|
-
/* @__PURE__ */ (0,
|
|
1573
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "mly-flex mly-items-center mly-pr-1.5", children: [
|
|
1574
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Tooltip, { children: [
|
|
1575
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1193
1576
|
BaseButton,
|
|
1194
1577
|
{
|
|
1195
1578
|
variant: "ghost",
|
|
1196
1579
|
size: "icon",
|
|
1197
|
-
className: "!mly-size-
|
|
1580
|
+
className: "!mly-size-5 mly-cursor-grab mly-text-gray-500 hover:mly-text-black",
|
|
1198
1581
|
onClick: handleAddNewNode,
|
|
1199
1582
|
type: "button",
|
|
1200
|
-
children: /* @__PURE__ */ (0,
|
|
1583
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react12.Plus, { className: "mly-size-3.5 mly-shrink-0" })
|
|
1201
1584
|
}
|
|
1202
1585
|
) }),
|
|
1203
|
-
/* @__PURE__ */ (0,
|
|
1586
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipContent, { sideOffset: 8, children: "Add new node" })
|
|
1204
1587
|
] }),
|
|
1205
|
-
/* @__PURE__ */ (0,
|
|
1206
|
-
/* @__PURE__ */ (0,
|
|
1207
|
-
/* @__PURE__ */ (0,
|
|
1208
|
-
/* @__PURE__ */ (0,
|
|
1588
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Popover, { open: menuOpen, onOpenChange: setMenuOpen, children: [
|
|
1589
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "mly-relative mly-flex mly-flex-col", children: [
|
|
1590
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Tooltip, { children: [
|
|
1591
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1209
1592
|
BaseButton,
|
|
1210
1593
|
{
|
|
1211
1594
|
variant: "ghost",
|
|
1212
1595
|
size: "icon",
|
|
1213
|
-
className: "mly-relative mly-z-[1] !mly-size-
|
|
1596
|
+
className: "mly-relative mly-z-[1] !mly-size-5 mly-cursor-grab mly-text-gray-500 hover:mly-text-black",
|
|
1214
1597
|
onClick: (e) => {
|
|
1215
1598
|
e.preventDefault();
|
|
1216
1599
|
setMenuOpen(true);
|
|
1600
|
+
editor.commands.setNodeSelection(currentNodePos);
|
|
1217
1601
|
},
|
|
1218
1602
|
type: "button",
|
|
1219
|
-
children: /* @__PURE__ */ (0,
|
|
1603
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react12.GripVertical, { className: "mly-size-3.5 mly-shrink-0" })
|
|
1220
1604
|
}
|
|
1221
1605
|
) }),
|
|
1222
|
-
/* @__PURE__ */ (0,
|
|
1606
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TooltipContent, { sideOffset: 8, children: "Node actions" })
|
|
1223
1607
|
] }),
|
|
1224
|
-
/* @__PURE__ */ (0,
|
|
1608
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(PopoverTrigger, { className: "mly-absolute mly-left-0 mly-top-0 mly-z-0 mly-h-5 mly-w-5" })
|
|
1225
1609
|
] }),
|
|
1226
|
-
/* @__PURE__ */ (0,
|
|
1610
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1227
1611
|
PopoverContent,
|
|
1228
1612
|
{
|
|
1229
1613
|
align: "start",
|
|
@@ -1231,26 +1615,26 @@ function ContentMenu(props) {
|
|
|
1231
1615
|
sideOffset: 8,
|
|
1232
1616
|
className: "mly-flex mly-w-max mly-flex-col mly-rounded-md mly-p-1",
|
|
1233
1617
|
children: [
|
|
1234
|
-
/* @__PURE__ */ (0,
|
|
1618
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1235
1619
|
BaseButton,
|
|
1236
1620
|
{
|
|
1237
1621
|
variant: "ghost",
|
|
1238
1622
|
onClick: duplicateNode,
|
|
1239
1623
|
className: "mly-h-auto mly-justify-start mly-gap-2 !mly-rounded mly-px-2 mly-py-1 mly-text-sm mly-font-normal",
|
|
1240
1624
|
children: [
|
|
1241
|
-
/* @__PURE__ */ (0,
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react12.Copy, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
1242
1626
|
"Duplicate"
|
|
1243
1627
|
]
|
|
1244
1628
|
}
|
|
1245
1629
|
),
|
|
1246
|
-
/* @__PURE__ */ (0,
|
|
1247
|
-
/* @__PURE__ */ (0,
|
|
1630
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Divider, { type: "horizontal" }),
|
|
1631
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1248
1632
|
BaseButton,
|
|
1249
1633
|
{
|
|
1250
1634
|
onClick: deleteCurrentNode,
|
|
1251
1635
|
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",
|
|
1252
1636
|
children: [
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1637
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react12.Trash2, { className: "mly-size-[15px] mly-shrink-0" }),
|
|
1254
1638
|
"Delete"
|
|
1255
1639
|
]
|
|
1256
1640
|
}
|
|
@@ -1265,54 +1649,54 @@ function ContentMenu(props) {
|
|
|
1265
1649
|
}
|
|
1266
1650
|
|
|
1267
1651
|
// src/editor/components/editor-menu-bar.tsx
|
|
1268
|
-
var
|
|
1269
|
-
var
|
|
1270
|
-
var
|
|
1652
|
+
var import_react14 = require("react");
|
|
1653
|
+
var import_lucide_react13 = require("lucide-react");
|
|
1654
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1271
1655
|
var EditorMenuBar = (props) => {
|
|
1272
1656
|
const { editor, config } = props;
|
|
1273
|
-
const items = (0,
|
|
1657
|
+
const items = (0, import_react14.useMemo)(
|
|
1274
1658
|
() => [
|
|
1275
1659
|
{
|
|
1276
1660
|
name: "bold",
|
|
1277
1661
|
command: () => editor.chain().focus().toggleBold().run(),
|
|
1278
1662
|
isActive: () => editor.isActive("bold"),
|
|
1279
1663
|
group: "mark",
|
|
1280
|
-
icon:
|
|
1664
|
+
icon: import_lucide_react13.BoldIcon
|
|
1281
1665
|
},
|
|
1282
1666
|
{
|
|
1283
1667
|
name: "italic",
|
|
1284
1668
|
command: () => editor.chain().focus().toggleItalic().run(),
|
|
1285
1669
|
isActive: () => editor.isActive("italic"),
|
|
1286
1670
|
group: "mark",
|
|
1287
|
-
icon:
|
|
1671
|
+
icon: import_lucide_react13.ItalicIcon
|
|
1288
1672
|
},
|
|
1289
1673
|
{
|
|
1290
1674
|
name: "underline",
|
|
1291
1675
|
command: () => editor.chain().focus().toggleUnderline().run(),
|
|
1292
1676
|
isActive: () => editor.isActive("underline"),
|
|
1293
1677
|
group: "mark",
|
|
1294
|
-
icon:
|
|
1678
|
+
icon: import_lucide_react13.UnderlineIcon
|
|
1295
1679
|
},
|
|
1296
1680
|
{
|
|
1297
1681
|
name: "strike",
|
|
1298
1682
|
command: () => editor.chain().focus().toggleStrike().run(),
|
|
1299
1683
|
isActive: () => editor.isActive("strike"),
|
|
1300
1684
|
group: "mark",
|
|
1301
|
-
icon:
|
|
1685
|
+
icon: import_lucide_react13.StrikethroughIcon
|
|
1302
1686
|
},
|
|
1303
1687
|
{
|
|
1304
1688
|
name: "delete-line",
|
|
1305
1689
|
command: () => editor.chain().focus().selectParentNode().deleteSelection().run(),
|
|
1306
1690
|
isActive: () => false,
|
|
1307
1691
|
group: "mark",
|
|
1308
|
-
icon:
|
|
1692
|
+
icon: import_lucide_react13.EraserIcon
|
|
1309
1693
|
},
|
|
1310
1694
|
{
|
|
1311
1695
|
name: "divider",
|
|
1312
1696
|
command: () => editor.chain().focus().setHorizontalRule().run(),
|
|
1313
1697
|
isActive: () => editor.isActive("horizontalRule"),
|
|
1314
1698
|
group: "custom",
|
|
1315
|
-
icon:
|
|
1699
|
+
icon: import_lucide_react13.SeparatorHorizontal
|
|
1316
1700
|
},
|
|
1317
1701
|
{
|
|
1318
1702
|
name: "link",
|
|
@@ -1328,403 +1712,71 @@ var EditorMenuBar = (props) => {
|
|
|
1328
1712
|
},
|
|
1329
1713
|
isActive: () => editor.isActive("link"),
|
|
1330
1714
|
group: "custom",
|
|
1331
|
-
icon:
|
|
1715
|
+
icon: import_lucide_react13.LinkIcon
|
|
1332
1716
|
},
|
|
1333
1717
|
{
|
|
1334
1718
|
name: "left",
|
|
1335
1719
|
command: () => editor.chain().focus().setTextAlign("left").run(),
|
|
1336
1720
|
isActive: () => editor.isActive({ textAlign: "left" }),
|
|
1337
1721
|
group: "alignment",
|
|
1338
|
-
icon:
|
|
1722
|
+
icon: import_lucide_react13.AlignLeft
|
|
1339
1723
|
},
|
|
1340
1724
|
{
|
|
1341
1725
|
name: "center",
|
|
1342
1726
|
command: () => editor.chain().focus().setTextAlign("center").run(),
|
|
1343
1727
|
isActive: () => editor.isActive({ textAlign: "center" }),
|
|
1344
1728
|
group: "alignment",
|
|
1345
|
-
icon:
|
|
1729
|
+
icon: import_lucide_react13.AlignCenter
|
|
1346
1730
|
},
|
|
1347
1731
|
{
|
|
1348
1732
|
name: "right",
|
|
1349
1733
|
command: () => editor.chain().focus().setTextAlign("right").run(),
|
|
1350
1734
|
isActive: () => editor.isActive({ textAlign: "right" }),
|
|
1351
1735
|
group: "alignment",
|
|
1352
|
-
icon:
|
|
1736
|
+
icon: import_lucide_react13.AlignRight
|
|
1353
1737
|
}
|
|
1354
1738
|
],
|
|
1355
1739
|
[editor]
|
|
1356
1740
|
);
|
|
1357
|
-
const groups = (0,
|
|
1741
|
+
const groups = (0, import_react14.useMemo)(
|
|
1358
1742
|
() => items.reduce((acc, item) => {
|
|
1359
1743
|
if (!acc.includes(item.group)) {
|
|
1360
|
-
acc.push(item.group);
|
|
1361
|
-
}
|
|
1362
|
-
return acc;
|
|
1363
|
-
}, []),
|
|
1364
|
-
[items]
|
|
1365
|
-
);
|
|
1366
|
-
if (!editor) {
|
|
1367
|
-
return null;
|
|
1368
|
-
}
|
|
1369
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1370
|
-
"div",
|
|
1371
|
-
{
|
|
1372
|
-
className: `mly-flex mly-items-center mly-gap-3 ${config == null ? void 0 : config.toolbarClassName}`,
|
|
1373
|
-
children: groups.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1374
|
-
"div",
|
|
1375
|
-
{
|
|
1376
|
-
className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-border mly-bg-white mly-p-1",
|
|
1377
|
-
children: items.filter((item) => item.group === group).map((item, index2) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BubbleMenuButton, __spreadValues({}, item), index2))
|
|
1378
|
-
},
|
|
1379
|
-
index
|
|
1380
|
-
))
|
|
1381
|
-
}
|
|
1382
|
-
);
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
// src/editor/provider.tsx
|
|
1386
|
-
var import_react9 = require("react");
|
|
1387
|
-
|
|
1388
|
-
// src/blocks/button.tsx
|
|
1389
|
-
var import_lucide_react8 = require("lucide-react");
|
|
1390
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1391
|
-
var button = {
|
|
1392
|
-
title: "Button",
|
|
1393
|
-
description: "Add a call to action button to email.",
|
|
1394
|
-
searchTerms: ["link", "button", "cta"],
|
|
1395
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.MousePointer, { className: "mly-h-4 mly-w-4" }),
|
|
1396
|
-
command: ({ editor, range }) => {
|
|
1397
|
-
editor.chain().focus().deleteRange(range).setButton().run();
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
var linkCard = {
|
|
1401
|
-
title: "Link Card",
|
|
1402
|
-
description: "Add a link card to email.",
|
|
1403
|
-
searchTerms: ["link", "button", "image"],
|
|
1404
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.ArrowUpRightSquare, { className: "mly-h-4 mly-w-4" }),
|
|
1405
|
-
command: ({ editor, range }) => {
|
|
1406
|
-
editor.chain().focus().deleteRange(range).setLinkCard().run();
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
// src/blocks/image.tsx
|
|
1411
|
-
var import_lucide_react9 = require("lucide-react");
|
|
1412
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1413
|
-
var image = {
|
|
1414
|
-
title: "Image",
|
|
1415
|
-
description: "Full width image",
|
|
1416
|
-
searchTerms: ["image"],
|
|
1417
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react9.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1418
|
-
command: ({ editor, range }) => {
|
|
1419
|
-
editor.chain().focus().deleteRange(range).setImage({ src: "" }).run();
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
|
-
var logo = {
|
|
1423
|
-
title: "Logo",
|
|
1424
|
-
description: "Add your brand logo",
|
|
1425
|
-
searchTerms: ["image", "logo"],
|
|
1426
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react9.ImageIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1427
|
-
command: ({ editor, range }) => {
|
|
1428
|
-
editor.chain().focus().deleteRange(range).setLogoImage({ src: "" }).run();
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
// src/blocks/layout.tsx
|
|
1433
|
-
var import_lucide_react10 = require("lucide-react");
|
|
1434
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1435
|
-
var columns = {
|
|
1436
|
-
title: "Columns",
|
|
1437
|
-
description: "Add columns to email.",
|
|
1438
|
-
searchTerms: ["layout", "columns"],
|
|
1439
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.ColumnsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1440
|
-
shouldBeHidden: (editor) => {
|
|
1441
|
-
return editor.isActive("columns");
|
|
1442
|
-
},
|
|
1443
|
-
command: ({ editor, range }) => {
|
|
1444
|
-
editor.chain().focus().deleteRange(range).setColumns().focus(editor.state.selection.head - 2).run();
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
|
-
var section = {
|
|
1448
|
-
title: "Section",
|
|
1449
|
-
description: "Add a section to email.",
|
|
1450
|
-
searchTerms: ["layout", "section"],
|
|
1451
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.RectangleHorizontal, { className: "mly-h-4 mly-w-4" }),
|
|
1452
|
-
command: ({ editor, range }) => {
|
|
1453
|
-
editor.chain().focus().deleteRange(range).setSection().run();
|
|
1454
|
-
}
|
|
1455
|
-
};
|
|
1456
|
-
var forLoop = {
|
|
1457
|
-
title: "For",
|
|
1458
|
-
description: "Loop over an array of items.",
|
|
1459
|
-
searchTerms: ["for", "loop"],
|
|
1460
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.Repeat2, { className: "mly-h-4 mly-w-4" }),
|
|
1461
|
-
shouldBeHidden: (editor) => {
|
|
1462
|
-
return editor.isActive("for");
|
|
1463
|
-
},
|
|
1464
|
-
command: ({ editor, range }) => {
|
|
1465
|
-
editor.chain().focus().deleteRange(range).setFor().run();
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
|
-
var spacer = {
|
|
1469
|
-
title: "Spacer",
|
|
1470
|
-
description: "Add space between blocks.",
|
|
1471
|
-
searchTerms: ["space", "gap", "divider"],
|
|
1472
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.MoveVertical, { className: "mly-h-4 mly-w-4" }),
|
|
1473
|
-
command: ({ editor, range }) => {
|
|
1474
|
-
editor.chain().focus().deleteRange(range).setSpacer({ height: "sm" }).run();
|
|
1475
|
-
}
|
|
1476
|
-
};
|
|
1477
|
-
var divider = {
|
|
1478
|
-
title: "Divider",
|
|
1479
|
-
description: "Add a horizontal divider.",
|
|
1480
|
-
searchTerms: ["divider", "line"],
|
|
1481
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react10.Minus, { className: "mly-h-4 mly-w-4" }),
|
|
1482
|
-
command: ({ editor, range }) => {
|
|
1483
|
-
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
|
|
1487
|
-
// src/blocks/list.tsx
|
|
1488
|
-
var import_lucide_react11 = require("lucide-react");
|
|
1489
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1490
|
-
var bulletList = {
|
|
1491
|
-
title: "Bullet List",
|
|
1492
|
-
description: "Create a simple bullet list.",
|
|
1493
|
-
searchTerms: ["unordered", "point"],
|
|
1494
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react11.List, { className: "mly-h-4 mly-w-4" }),
|
|
1495
|
-
command: ({ editor, range }) => {
|
|
1496
|
-
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
|
-
var orderedList = {
|
|
1500
|
-
title: "Numbered List",
|
|
1501
|
-
description: "Create a list with numbering.",
|
|
1502
|
-
searchTerms: ["ordered"],
|
|
1503
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react11.ListOrdered, { className: "mly-h-4 mly-w-4" }),
|
|
1504
|
-
command: ({ editor, range }) => {
|
|
1505
|
-
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
1506
|
-
}
|
|
1507
|
-
};
|
|
1508
|
-
|
|
1509
|
-
// src/blocks/typography.tsx
|
|
1510
|
-
var import_lucide_react12 = require("lucide-react");
|
|
1511
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1512
|
-
var text = {
|
|
1513
|
-
title: "Text",
|
|
1514
|
-
description: "Just start typing with plain text.",
|
|
1515
|
-
searchTerms: ["p", "paragraph"],
|
|
1516
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Text, { className: "mly-h-4 mly-w-4" }),
|
|
1517
|
-
command: ({ editor, range }) => {
|
|
1518
|
-
editor.chain().focus().deleteRange(range).toggleNode("paragraph", "paragraph").run();
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
var heading1 = {
|
|
1522
|
-
title: "Heading 1",
|
|
1523
|
-
description: "Big heading.",
|
|
1524
|
-
searchTerms: ["title", "big", "large"],
|
|
1525
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading1, { className: "mly-h-4 mly-w-4" }),
|
|
1526
|
-
command: ({ editor, range }) => {
|
|
1527
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
var heading2 = {
|
|
1531
|
-
title: "Heading 2",
|
|
1532
|
-
description: "Medium heading.",
|
|
1533
|
-
searchTerms: ["subtitle", "medium"],
|
|
1534
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading2, { className: "mly-h-4 mly-w-4" }),
|
|
1535
|
-
command: ({ editor, range }) => {
|
|
1536
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
1537
|
-
}
|
|
1538
|
-
};
|
|
1539
|
-
var heading3 = {
|
|
1540
|
-
title: "Heading 3",
|
|
1541
|
-
description: "Small heading.",
|
|
1542
|
-
searchTerms: ["subtitle", "small"],
|
|
1543
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Heading3, { className: "mly-h-4 mly-w-4" }),
|
|
1544
|
-
command: ({ editor, range }) => {
|
|
1545
|
-
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
1546
|
-
}
|
|
1547
|
-
};
|
|
1548
|
-
var hardBreak = {
|
|
1549
|
-
title: "Hard Break",
|
|
1550
|
-
description: "Add a break between lines.",
|
|
1551
|
-
searchTerms: ["break", "line"],
|
|
1552
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.DivideIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1553
|
-
command: ({ editor, range }) => {
|
|
1554
|
-
editor.chain().focus().deleteRange(range).setHardBreak().run();
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
var blockquote = {
|
|
1558
|
-
title: "Blockquote",
|
|
1559
|
-
description: "Add blockquote.",
|
|
1560
|
-
searchTerms: ["quote", "blockquote"],
|
|
1561
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.TextQuote, { className: "mly-h-4 mly-w-4" }),
|
|
1562
|
-
command: ({ editor, range }) => {
|
|
1563
|
-
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
1564
|
-
}
|
|
1565
|
-
};
|
|
1566
|
-
var footer = {
|
|
1567
|
-
title: "Footer",
|
|
1568
|
-
description: "Add a footer text to email.",
|
|
1569
|
-
searchTerms: ["footer", "text"],
|
|
1570
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.FootprintsIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1571
|
-
command: ({ editor, range }) => {
|
|
1572
|
-
editor.chain().focus().deleteRange(range).setFooter().run();
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
var clearLine = {
|
|
1576
|
-
title: "Clear Line",
|
|
1577
|
-
description: "Clear the current line.",
|
|
1578
|
-
searchTerms: ["clear", "line"],
|
|
1579
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.EraserIcon, { className: "mly-h-4 mly-w-4" }),
|
|
1580
|
-
command: ({ editor, range }) => {
|
|
1581
|
-
editor.chain().focus().selectParentNode().deleteSelection().run();
|
|
1744
|
+
acc.push(item.group);
|
|
1745
|
+
}
|
|
1746
|
+
return acc;
|
|
1747
|
+
}, []),
|
|
1748
|
+
[items]
|
|
1749
|
+
);
|
|
1750
|
+
if (!editor) {
|
|
1751
|
+
return null;
|
|
1582
1752
|
}
|
|
1753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1754
|
+
"div",
|
|
1755
|
+
{
|
|
1756
|
+
className: `mly-flex mly-items-center mly-gap-3 ${config == null ? void 0 : config.toolbarClassName}`,
|
|
1757
|
+
children: groups.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1758
|
+
"div",
|
|
1759
|
+
{
|
|
1760
|
+
className: "mly-flex mly-items-center mly-gap-1 mly-rounded-md mly-border mly-bg-white mly-p-1",
|
|
1761
|
+
children: items.filter((item) => item.group === group).map((item, index2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BubbleMenuButton, __spreadValues({}, item), index2))
|
|
1762
|
+
},
|
|
1763
|
+
index
|
|
1764
|
+
))
|
|
1765
|
+
}
|
|
1766
|
+
);
|
|
1583
1767
|
};
|
|
1584
1768
|
|
|
1585
|
-
// src/editor/extensions/slash-command/default-slash-commands.ts
|
|
1586
|
-
var DEFAULT_SLASH_COMMANDS = [
|
|
1587
|
-
text,
|
|
1588
|
-
heading1,
|
|
1589
|
-
heading2,
|
|
1590
|
-
heading3,
|
|
1591
|
-
bulletList,
|
|
1592
|
-
orderedList,
|
|
1593
|
-
image,
|
|
1594
|
-
logo,
|
|
1595
|
-
columns,
|
|
1596
|
-
section,
|
|
1597
|
-
forLoop,
|
|
1598
|
-
divider,
|
|
1599
|
-
spacer,
|
|
1600
|
-
button,
|
|
1601
|
-
linkCard,
|
|
1602
|
-
hardBreak,
|
|
1603
|
-
blockquote,
|
|
1604
|
-
footer,
|
|
1605
|
-
clearLine
|
|
1606
|
-
];
|
|
1607
|
-
|
|
1608
|
-
// src/editor/provider.tsx
|
|
1609
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1610
|
-
var DEFAULT_TRIGGER_SUGGESTION_CHAR = "@";
|
|
1611
|
-
var MailyContext = (0, import_react9.createContext)({
|
|
1612
|
-
triggerSuggestionCharacter: DEFAULT_TRIGGER_SUGGESTION_CHAR,
|
|
1613
|
-
variables: [],
|
|
1614
|
-
blocks: DEFAULT_SLASH_COMMANDS
|
|
1615
|
-
});
|
|
1616
|
-
function MailyProvider(props) {
|
|
1617
|
-
const _a = props, { children } = _a, defaultValues = __objRest(_a, ["children"]);
|
|
1618
|
-
if (defaultValues.triggerSuggestionCharacter === "") {
|
|
1619
|
-
throw new Error("triggerSuggestionCharacter cannot be an empty string");
|
|
1620
|
-
}
|
|
1621
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MailyContext.Provider, { value: defaultValues, children });
|
|
1622
|
-
}
|
|
1623
|
-
function useMailyContext() {
|
|
1624
|
-
const values = (0, import_react9.useContext)(MailyContext);
|
|
1625
|
-
if (!values) {
|
|
1626
|
-
throw new Error("Missing MailyContext.Provider in the component tree");
|
|
1627
|
-
}
|
|
1628
|
-
return values;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
1769
|
// src/editor/components/for-menu/for-bubble-menu.tsx
|
|
1632
|
-
var
|
|
1770
|
+
var import_react16 = require("@tiptap/react");
|
|
1633
1771
|
var import_lucide_react14 = require("lucide-react");
|
|
1634
|
-
var
|
|
1772
|
+
var import_react17 = require("react");
|
|
1635
1773
|
var import_tippy2 = require("tippy.js");
|
|
1636
1774
|
|
|
1637
|
-
// src/editor/components/ui/input-autocomplete.tsx
|
|
1638
|
-
var import_lucide_react13 = require("lucide-react");
|
|
1639
|
-
var import_react10 = require("react");
|
|
1640
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1641
|
-
function InputAutocomplete(props) {
|
|
1642
|
-
const _a = props, {
|
|
1643
|
-
value = "",
|
|
1644
|
-
onValueChange,
|
|
1645
|
-
className,
|
|
1646
|
-
onBlur: onInputBlur,
|
|
1647
|
-
onSelectOption,
|
|
1648
|
-
autoCompleteOptions = []
|
|
1649
|
-
} = _a, inputProps = __objRest(_a, [
|
|
1650
|
-
"value",
|
|
1651
|
-
"onValueChange",
|
|
1652
|
-
"className",
|
|
1653
|
-
"onBlur",
|
|
1654
|
-
"onSelectOption",
|
|
1655
|
-
"autoCompleteOptions"
|
|
1656
|
-
]);
|
|
1657
|
-
const [selectedIndex, setSelectedIndex] = (0, import_react10.useState)(0);
|
|
1658
|
-
const inputRef = (0, import_react10.useRef)(null);
|
|
1659
|
-
const filteredAutoCompleteOptions = (0, import_react10.useMemo)(() => {
|
|
1660
|
-
const filteredOptions = autoCompleteOptions.filter((option) => option.toLowerCase().startsWith(value.toLowerCase())).slice(0, 4);
|
|
1661
|
-
if (value.length > 0 && !filteredOptions.includes(value)) {
|
|
1662
|
-
filteredOptions.push(value);
|
|
1663
|
-
}
|
|
1664
|
-
return filteredOptions;
|
|
1665
|
-
}, [autoCompleteOptions, value]);
|
|
1666
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cn("mly-relative", className), children: [
|
|
1667
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "mly-relative", children: [
|
|
1668
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1669
|
-
"input",
|
|
1670
|
-
__spreadProps(__spreadValues({}, inputProps), {
|
|
1671
|
-
value,
|
|
1672
|
-
onChange: (e) => {
|
|
1673
|
-
setSelectedIndex(0);
|
|
1674
|
-
onValueChange(e.target.value);
|
|
1675
|
-
},
|
|
1676
|
-
onBlur: onInputBlur,
|
|
1677
|
-
ref: inputRef,
|
|
1678
|
-
type: "text",
|
|
1679
|
-
placeholder: "e.g. items",
|
|
1680
|
-
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",
|
|
1681
|
-
onKeyDown: (e) => {
|
|
1682
|
-
var _a2;
|
|
1683
|
-
if (e.key === "ArrowDown") {
|
|
1684
|
-
e.preventDefault();
|
|
1685
|
-
setSelectedIndex(
|
|
1686
|
-
(prev) => Math.min(prev + 1, filteredAutoCompleteOptions.length - 1)
|
|
1687
|
-
);
|
|
1688
|
-
} else if (e.key === "ArrowUp") {
|
|
1689
|
-
e.preventDefault();
|
|
1690
|
-
setSelectedIndex((prev) => Math.max(prev - 1, 0));
|
|
1691
|
-
} else if (e.key === "Enter") {
|
|
1692
|
-
e.preventDefault();
|
|
1693
|
-
const _value = filteredAutoCompleteOptions[selectedIndex];
|
|
1694
|
-
onValueChange(_value);
|
|
1695
|
-
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1696
|
-
onSelectOption == null ? void 0 : onSelectOption(_value);
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
})
|
|
1700
|
-
),
|
|
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" }) })
|
|
1702
|
-
] }),
|
|
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)(
|
|
1704
|
-
"button",
|
|
1705
|
-
{
|
|
1706
|
-
type: "button",
|
|
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",
|
|
1708
|
-
onClick: () => {
|
|
1709
|
-
var _a2;
|
|
1710
|
-
onValueChange(option);
|
|
1711
|
-
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1712
|
-
onSelectOption == null ? void 0 : onSelectOption(option);
|
|
1713
|
-
},
|
|
1714
|
-
onMouseEnter: () => setSelectedIndex(index),
|
|
1715
|
-
"aria-selected": selectedIndex === index,
|
|
1716
|
-
children: option
|
|
1717
|
-
},
|
|
1718
|
-
option
|
|
1719
|
-
)) })
|
|
1720
|
-
] });
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
1775
|
// src/editor/components/for-menu/use-for-state.ts
|
|
1724
|
-
var
|
|
1776
|
+
var import_react15 = require("@tiptap/react");
|
|
1725
1777
|
var import_fast_deep_equal2 = __toESM(require("fast-deep-equal"));
|
|
1726
1778
|
var useForState = (editor) => {
|
|
1727
|
-
const states = (0,
|
|
1779
|
+
const states = (0, import_react15.useEditorState)({
|
|
1728
1780
|
editor,
|
|
1729
1781
|
selector: (ctx) => {
|
|
1730
1782
|
var _a, _b;
|
|
@@ -1747,7 +1799,7 @@ function ForBubbleMenu(props) {
|
|
|
1747
1799
|
return null;
|
|
1748
1800
|
}
|
|
1749
1801
|
const state = useForState(editor);
|
|
1750
|
-
const getReferenceClientRect = (0,
|
|
1802
|
+
const getReferenceClientRect = (0, import_react17.useCallback)(() => {
|
|
1751
1803
|
const renderContainer = getRenderContainer(editor, "for");
|
|
1752
1804
|
const rect = (renderContainer == null ? void 0 : renderContainer.getBoundingClientRect()) || new DOMRect(-1e3, -1e3, 0, 0);
|
|
1753
1805
|
return rect;
|
|
@@ -1756,7 +1808,7 @@ function ForBubbleMenu(props) {
|
|
|
1756
1808
|
shouldShow: ({ editor: editor2 }) => {
|
|
1757
1809
|
var _a;
|
|
1758
1810
|
const activeForNode = getClosestNodeByName(editor2, "for");
|
|
1759
|
-
const sectionNodeChildren = activeForNode ? (_a = (0,
|
|
1811
|
+
const sectionNodeChildren = activeForNode ? (_a = (0, import_react16.findChildren)(activeForNode == null ? void 0 : activeForNode.node, (node) => {
|
|
1760
1812
|
return node.type.name === "section";
|
|
1761
1813
|
})) == null ? void 0 : _a[0] : null;
|
|
1762
1814
|
const hasActiveSectionNodeChildren = sectionNodeChildren && editor2.isActive("section");
|
|
@@ -1779,14 +1831,19 @@ function ForBubbleMenu(props) {
|
|
|
1779
1831
|
pluginKey: "forBubbleMenu"
|
|
1780
1832
|
});
|
|
1781
1833
|
const { variables = [] } = useMailyContext();
|
|
1782
|
-
const inputRef = (0,
|
|
1783
|
-
const [isUpdatingKey, setIsUpdatingKey] = (0,
|
|
1784
|
-
const
|
|
1785
|
-
const autoCompleteOptions = (0,
|
|
1786
|
-
return variables
|
|
1787
|
-
|
|
1834
|
+
const inputRef = (0, import_react17.useRef)(null);
|
|
1835
|
+
const [isUpdatingKey, setIsUpdatingKey] = (0, import_react17.useState)(false);
|
|
1836
|
+
const eachKey = (state == null ? void 0 : state.each) || "";
|
|
1837
|
+
const autoCompleteOptions = (0, import_react17.useMemo)(() => {
|
|
1838
|
+
return processVariables(variables, {
|
|
1839
|
+
query: eachKey || "",
|
|
1840
|
+
editor,
|
|
1841
|
+
from: "for"
|
|
1842
|
+
}).map((variable) => variable.name).slice(0, 5);
|
|
1843
|
+
}, [variables, eachKey, editor]);
|
|
1844
|
+
const isValidEachKey = eachKey || autoCompleteOptions.includes(eachKey);
|
|
1788
1845
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1789
|
-
|
|
1846
|
+
import_react16.BubbleMenu,
|
|
1790
1847
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
1791
1848
|
className: "mly-flex mly-items-stretch mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
1792
1849
|
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TooltipProvider, { children: [
|
|
@@ -1807,7 +1864,7 @@ function ForBubbleMenu(props) {
|
|
|
1807
1864
|
},
|
|
1808
1865
|
children: [
|
|
1809
1866
|
/* @__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 })
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "mly-min-w-0 mly-truncate mly-text-left", children: state == null ? void 0 : state.each })
|
|
1811
1868
|
]
|
|
1812
1869
|
}
|
|
1813
1870
|
),
|
|
@@ -1832,13 +1889,14 @@ function ForBubbleMenu(props) {
|
|
|
1832
1889
|
each: value
|
|
1833
1890
|
});
|
|
1834
1891
|
},
|
|
1835
|
-
|
|
1892
|
+
onOutsideClick: () => {
|
|
1836
1893
|
setIsUpdatingKey(false);
|
|
1837
1894
|
},
|
|
1838
1895
|
onSelectOption: () => {
|
|
1839
1896
|
setIsUpdatingKey(false);
|
|
1840
1897
|
},
|
|
1841
|
-
autoCompleteOptions
|
|
1898
|
+
autoCompleteOptions,
|
|
1899
|
+
ref: inputRef
|
|
1842
1900
|
}
|
|
1843
1901
|
)
|
|
1844
1902
|
}
|
|
@@ -1852,7 +1910,8 @@ function ForBubbleMenu(props) {
|
|
|
1852
1910
|
editor.commands.updateFor({
|
|
1853
1911
|
showIfKey: value
|
|
1854
1912
|
});
|
|
1855
|
-
}
|
|
1913
|
+
},
|
|
1914
|
+
editor
|
|
1856
1915
|
}
|
|
1857
1916
|
)
|
|
1858
1917
|
] })
|
|
@@ -1861,7 +1920,7 @@ function ForBubbleMenu(props) {
|
|
|
1861
1920
|
}
|
|
1862
1921
|
|
|
1863
1922
|
// src/editor/components/image-menu/image-bubble-menu.tsx
|
|
1864
|
-
var
|
|
1923
|
+
var import_react27 = require("@tiptap/react");
|
|
1865
1924
|
var import_lucide_react18 = require("lucide-react");
|
|
1866
1925
|
|
|
1867
1926
|
// src/editor/components/alignment-switch.tsx
|
|
@@ -1904,7 +1963,7 @@ function AlignmentSwitch(props) {
|
|
|
1904
1963
|
|
|
1905
1964
|
// src/editor/components/ui/link-input-popover.tsx
|
|
1906
1965
|
var import_lucide_react16 = require("lucide-react");
|
|
1907
|
-
var
|
|
1966
|
+
var import_react18 = require("react");
|
|
1908
1967
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1909
1968
|
function LinkInputPopover(props) {
|
|
1910
1969
|
const {
|
|
@@ -1913,9 +1972,9 @@ function LinkInputPopover(props) {
|
|
|
1913
1972
|
tooltip,
|
|
1914
1973
|
icon: Icon = import_lucide_react16.Link
|
|
1915
1974
|
} = props;
|
|
1916
|
-
const [isOpen, setIsOpen] = (0,
|
|
1917
|
-
const [protocol, setProtocol] = (0,
|
|
1918
|
-
const linkInputRef = (0,
|
|
1975
|
+
const [isOpen, setIsOpen] = (0, import_react18.useState)(false);
|
|
1976
|
+
const [protocol, setProtocol] = (0, import_react18.useState)("https://");
|
|
1977
|
+
const linkInputRef = (0, import_react18.useRef)(null);
|
|
1919
1978
|
const defaultUrlWithoutProtocol = defaultValue.replace(/https?:\/\//, "");
|
|
1920
1979
|
const popoverButton = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1921
1980
|
BaseButton,
|
|
@@ -2045,7 +2104,7 @@ function ImageSize(props) {
|
|
|
2045
2104
|
|
|
2046
2105
|
// src/editor/nodes/logo/logo.ts
|
|
2047
2106
|
var import_extension_image = __toESM(require("@tiptap/extension-image"));
|
|
2048
|
-
var
|
|
2107
|
+
var import_react25 = require("@tiptap/react");
|
|
2049
2108
|
|
|
2050
2109
|
// src/editor/nodes/section/section.ts
|
|
2051
2110
|
var import_core5 = require("@tiptap/core");
|
|
@@ -2310,7 +2369,7 @@ var SectionExtension = import_core5.Node.create({
|
|
|
2310
2369
|
border: 0,
|
|
2311
2370
|
cellpadding: 0,
|
|
2312
2371
|
cellspacing: 0,
|
|
2313
|
-
class: "mly-w-full mly-border-separate",
|
|
2372
|
+
class: "mly-w-full mly-border-separate mly-relative",
|
|
2314
2373
|
style: `margin-top: ${marginTop}px; margin-right: ${marginRight}px; margin-bottom: ${marginBottom}px; margin-left: ${marginLeft}px;`
|
|
2315
2374
|
},
|
|
2316
2375
|
[
|
|
@@ -2346,18 +2405,18 @@ var SectionExtension = import_core5.Node.create({
|
|
|
2346
2405
|
});
|
|
2347
2406
|
|
|
2348
2407
|
// src/editor/nodes/logo/logo-view.tsx
|
|
2349
|
-
var
|
|
2350
|
-
var
|
|
2351
|
-
var
|
|
2408
|
+
var import_react22 = require("@tiptap/react");
|
|
2409
|
+
var import_react23 = require("react");
|
|
2410
|
+
var import_react24 = require("react");
|
|
2352
2411
|
|
|
2353
2412
|
// src/editor/utils/use-event.ts
|
|
2354
|
-
var
|
|
2413
|
+
var import_react19 = require("react");
|
|
2355
2414
|
var useEvent = (handler) => {
|
|
2356
|
-
const handlerRef = (0,
|
|
2357
|
-
(0,
|
|
2415
|
+
const handlerRef = (0, import_react19.useRef)(null);
|
|
2416
|
+
(0, import_react19.useLayoutEffect)(() => {
|
|
2358
2417
|
handlerRef.current = handler;
|
|
2359
2418
|
}, [handler]);
|
|
2360
|
-
return (0,
|
|
2419
|
+
return (0, import_react19.useCallback)((...args) => {
|
|
2361
2420
|
if (handlerRef.current === null) {
|
|
2362
2421
|
throw new Error("Handler is not assigned");
|
|
2363
2422
|
}
|
|
@@ -2366,18 +2425,18 @@ var useEvent = (handler) => {
|
|
|
2366
2425
|
};
|
|
2367
2426
|
|
|
2368
2427
|
// src/editor/nodes/image/image-view.tsx
|
|
2369
|
-
var
|
|
2428
|
+
var import_react20 = require("@tiptap/react");
|
|
2370
2429
|
var import_lucide_react17 = require("lucide-react");
|
|
2371
|
-
var
|
|
2430
|
+
var import_react21 = require("react");
|
|
2372
2431
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2373
2432
|
var MIN_WIDTH = 20;
|
|
2374
2433
|
var MAX_WIDTH = 600;
|
|
2375
2434
|
function ImageView(props) {
|
|
2376
2435
|
const { node, updateAttributes: updateAttributes2, selected } = props;
|
|
2377
|
-
const [status, setStatus] = (0,
|
|
2378
|
-
const wrapperRef = (0,
|
|
2379
|
-
const imgRef = (0,
|
|
2380
|
-
const [resizingStyle, setResizingStyle] = (0,
|
|
2436
|
+
const [status, setStatus] = (0, import_react21.useState)("idle");
|
|
2437
|
+
const wrapperRef = (0, import_react21.useRef)(null);
|
|
2438
|
+
const imgRef = (0, import_react21.useRef)(null);
|
|
2439
|
+
const [resizingStyle, setResizingStyle] = (0, import_react21.useState)();
|
|
2381
2440
|
const handleMouseDown = useEvent(
|
|
2382
2441
|
(event) => {
|
|
2383
2442
|
const imageParent = document.querySelector(
|
|
@@ -2441,7 +2500,7 @@ function ImageView(props) {
|
|
|
2441
2500
|
let { alignment = "center", width, height, src } = node.attrs || {};
|
|
2442
2501
|
const _a = node.attrs || {}, { externalLink, showIfKey } = _a, attrs = __objRest(_a, ["externalLink", "showIfKey"]);
|
|
2443
2502
|
const hasImageSrc = !!attrs.src;
|
|
2444
|
-
(0,
|
|
2503
|
+
(0, import_react21.useEffect)(() => {
|
|
2445
2504
|
if (!src) {
|
|
2446
2505
|
return;
|
|
2447
2506
|
}
|
|
@@ -2476,7 +2535,7 @@ function ImageView(props) {
|
|
|
2476
2535
|
};
|
|
2477
2536
|
}, [src]);
|
|
2478
2537
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2479
|
-
|
|
2538
|
+
import_react20.NodeViewWrapper,
|
|
2480
2539
|
{
|
|
2481
2540
|
as: "div",
|
|
2482
2541
|
draggable: true,
|
|
@@ -2571,14 +2630,14 @@ function ImageStatusLabel(props) {
|
|
|
2571
2630
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2572
2631
|
function LogoView(props) {
|
|
2573
2632
|
const { node } = props;
|
|
2574
|
-
const [status, setStatus] = (0,
|
|
2633
|
+
const [status, setStatus] = (0, import_react24.useState)("idle");
|
|
2575
2634
|
let {
|
|
2576
2635
|
alignment = "center",
|
|
2577
2636
|
src: logoSrc,
|
|
2578
2637
|
size = "sm"
|
|
2579
2638
|
} = node.attrs || {};
|
|
2580
2639
|
const hasImageSrc = !!logoSrc;
|
|
2581
|
-
(0,
|
|
2640
|
+
(0, import_react23.useEffect)(() => {
|
|
2582
2641
|
if (!logoSrc) {
|
|
2583
2642
|
return;
|
|
2584
2643
|
}
|
|
@@ -2599,7 +2658,7 @@ function LogoView(props) {
|
|
|
2599
2658
|
}, [logoSrc]);
|
|
2600
2659
|
const logoSize = logoSizes[size];
|
|
2601
2660
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2602
|
-
|
|
2661
|
+
import_react22.NodeViewWrapper,
|
|
2603
2662
|
{
|
|
2604
2663
|
as: "div",
|
|
2605
2664
|
draggable: true,
|
|
@@ -2716,15 +2775,17 @@ var LogoExtension = import_extension_image.default.extend({
|
|
|
2716
2775
|
];
|
|
2717
2776
|
},
|
|
2718
2777
|
addNodeView() {
|
|
2719
|
-
return (0,
|
|
2778
|
+
return (0, import_react25.ReactNodeViewRenderer)(LogoView, {
|
|
2779
|
+
className: "mly-relative"
|
|
2780
|
+
});
|
|
2720
2781
|
}
|
|
2721
2782
|
});
|
|
2722
2783
|
|
|
2723
2784
|
// src/editor/components/image-menu/use-image-state.tsx
|
|
2724
|
-
var
|
|
2785
|
+
var import_react26 = require("@tiptap/react");
|
|
2725
2786
|
var import_fast_deep_equal3 = __toESM(require("fast-deep-equal"));
|
|
2726
2787
|
var useImageState = (editor) => {
|
|
2727
|
-
const states = (0,
|
|
2788
|
+
const states = (0, import_react26.useEditorState)({
|
|
2728
2789
|
editor,
|
|
2729
2790
|
selector: (ctx) => {
|
|
2730
2791
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -2769,7 +2830,7 @@ function ImageBubbleMenu(props) {
|
|
|
2769
2830
|
}
|
|
2770
2831
|
});
|
|
2771
2832
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2772
|
-
|
|
2833
|
+
import_react27.BubbleMenu,
|
|
2773
2834
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
2774
2835
|
className: "mly-flex mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
2775
2836
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(TooltipProvider, { children: [
|
|
@@ -2866,7 +2927,8 @@ function ImageBubbleMenu(props) {
|
|
|
2866
2927
|
editor == null ? void 0 : editor.chain().updateAttributes(state.isLogoActive ? "logo" : "image", {
|
|
2867
2928
|
showIfKey: value
|
|
2868
2929
|
}).run();
|
|
2869
|
-
}
|
|
2930
|
+
},
|
|
2931
|
+
editor
|
|
2870
2932
|
}
|
|
2871
2933
|
)
|
|
2872
2934
|
] })
|
|
@@ -2875,9 +2937,9 @@ function ImageBubbleMenu(props) {
|
|
|
2875
2937
|
}
|
|
2876
2938
|
|
|
2877
2939
|
// src/editor/components/section-menu/section-bubble-menu.tsx
|
|
2878
|
-
var
|
|
2940
|
+
var import_react29 = require("@tiptap/react");
|
|
2879
2941
|
var import_lucide_react19 = require("lucide-react");
|
|
2880
|
-
var
|
|
2942
|
+
var import_react30 = require("react");
|
|
2881
2943
|
var import_tippy4 = require("tippy.js");
|
|
2882
2944
|
|
|
2883
2945
|
// src/editor/components/icons/border-color.tsx
|
|
@@ -3033,10 +3095,10 @@ function ColorPicker(props) {
|
|
|
3033
3095
|
}
|
|
3034
3096
|
|
|
3035
3097
|
// src/editor/components/section-menu/use-section-state.tsx
|
|
3036
|
-
var
|
|
3098
|
+
var import_react28 = require("@tiptap/react");
|
|
3037
3099
|
var import_fast_deep_equal4 = __toESM(require("fast-deep-equal"));
|
|
3038
3100
|
var useSectionState = (editor) => {
|
|
3039
|
-
const states = (0,
|
|
3101
|
+
const states = (0, import_react28.useEditorState)({
|
|
3040
3102
|
editor,
|
|
3041
3103
|
selector: (ctx) => {
|
|
3042
3104
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
@@ -3070,7 +3132,7 @@ function SectionBubbleMenu(props) {
|
|
|
3070
3132
|
if (!editor) {
|
|
3071
3133
|
return null;
|
|
3072
3134
|
}
|
|
3073
|
-
const getReferenceClientRect = (0,
|
|
3135
|
+
const getReferenceClientRect = (0, import_react30.useCallback)(() => {
|
|
3074
3136
|
const renderContainer = getRenderContainer(editor, "section");
|
|
3075
3137
|
const rect = (renderContainer == null ? void 0 : renderContainer.getBoundingClientRect()) || new DOMRect(-1e3, -1e3, 0, 0);
|
|
3076
3138
|
return rect;
|
|
@@ -3079,7 +3141,7 @@ function SectionBubbleMenu(props) {
|
|
|
3079
3141
|
shouldShow: ({ editor: editor2 }) => {
|
|
3080
3142
|
var _a;
|
|
3081
3143
|
const activeSectionNode = getClosestNodeByName(editor2, "section");
|
|
3082
|
-
const forNodeChildren = activeSectionNode ? (_a = (0,
|
|
3144
|
+
const forNodeChildren = activeSectionNode ? (_a = (0, import_react29.findChildren)(activeSectionNode == null ? void 0 : activeSectionNode.node, (node) => {
|
|
3083
3145
|
return node.type.name === "for";
|
|
3084
3146
|
})) == null ? void 0 : _a[0] : null;
|
|
3085
3147
|
const hasActiveForNodeChildren = forNodeChildren && editor2.isActive("for");
|
|
@@ -3108,7 +3170,7 @@ function SectionBubbleMenu(props) {
|
|
|
3108
3170
|
{ value: "9999", label: "Round" }
|
|
3109
3171
|
];
|
|
3110
3172
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3111
|
-
|
|
3173
|
+
import_react29.BubbleMenu,
|
|
3112
3174
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
3113
3175
|
className: "mly-flex mly-items-stretch mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
3114
3176
|
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TooltipProvider, { children: [
|
|
@@ -3290,7 +3352,8 @@ function SectionBubbleMenu(props) {
|
|
|
3290
3352
|
editor.commands.updateSection({
|
|
3291
3353
|
showIfKey: value
|
|
3292
3354
|
});
|
|
3293
|
-
}
|
|
3355
|
+
},
|
|
3356
|
+
editor
|
|
3294
3357
|
}
|
|
3295
3358
|
),
|
|
3296
3359
|
state.isColumnsActive && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
@@ -3324,7 +3387,7 @@ function SectionBubbleMenu(props) {
|
|
|
3324
3387
|
}
|
|
3325
3388
|
|
|
3326
3389
|
// src/editor/components/spacer-menu/spacer-bubble-menu.tsx
|
|
3327
|
-
var
|
|
3390
|
+
var import_react32 = require("@tiptap/react");
|
|
3328
3391
|
|
|
3329
3392
|
// src/editor/nodes/spacer.ts
|
|
3330
3393
|
var import_core6 = require("@tiptap/core");
|
|
@@ -3402,7 +3465,7 @@ var Spacer = import_core6.Node.create({
|
|
|
3402
3465
|
this.options.HTMLAttributes,
|
|
3403
3466
|
HTMLAttributes2,
|
|
3404
3467
|
{
|
|
3405
|
-
class: "spacer relative z-50",
|
|
3468
|
+
class: "spacer mly-relative mly-z-50",
|
|
3406
3469
|
contenteditable: false
|
|
3407
3470
|
}
|
|
3408
3471
|
)
|
|
@@ -3414,10 +3477,10 @@ var Spacer = import_core6.Node.create({
|
|
|
3414
3477
|
});
|
|
3415
3478
|
|
|
3416
3479
|
// src/editor/components/spacer-menu/use-spacer-state.ts
|
|
3417
|
-
var
|
|
3480
|
+
var import_react31 = require("@tiptap/react");
|
|
3418
3481
|
var import_fast_deep_equal5 = __toESM(require("fast-deep-equal"));
|
|
3419
3482
|
var useSpacerState = (editor) => {
|
|
3420
|
-
const states = (0,
|
|
3483
|
+
const states = (0, import_react31.useEditorState)({
|
|
3421
3484
|
editor,
|
|
3422
3485
|
selector: (ctx) => {
|
|
3423
3486
|
var _a;
|
|
@@ -3453,7 +3516,7 @@ function SpacerBubbleMenu(props) {
|
|
|
3453
3516
|
});
|
|
3454
3517
|
const state = useSpacerState(editor);
|
|
3455
3518
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3456
|
-
|
|
3519
|
+
import_react32.BubbleMenu,
|
|
3457
3520
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
3458
3521
|
className: "mly-flex mly-gap-0.5 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
3459
3522
|
children: [
|
|
@@ -3473,7 +3536,8 @@ function SpacerBubbleMenu(props) {
|
|
|
3473
3536
|
showIfKey: state.currentShowIfKey,
|
|
3474
3537
|
onShowIfKeyValueChange: (value) => {
|
|
3475
3538
|
editor.commands.setSpacerShowIfKey(value);
|
|
3476
|
-
}
|
|
3539
|
+
},
|
|
3540
|
+
editor
|
|
3477
3541
|
}
|
|
3478
3542
|
)
|
|
3479
3543
|
]
|
|
@@ -3482,15 +3546,15 @@ function SpacerBubbleMenu(props) {
|
|
|
3482
3546
|
}
|
|
3483
3547
|
|
|
3484
3548
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
3485
|
-
var
|
|
3549
|
+
var import_react44 = require("@tiptap/react");
|
|
3486
3550
|
var import_lucide_react23 = require("lucide-react");
|
|
3487
3551
|
|
|
3488
3552
|
// src/editor/components/text-menu/use-text-menu-state.tsx
|
|
3489
|
-
var
|
|
3553
|
+
var import_react33 = require("@tiptap/react");
|
|
3490
3554
|
var import_fast_deep_equal6 = __toESM(require("fast-deep-equal"));
|
|
3491
3555
|
var DEFAULT_TEXT_COLOR = "#374151";
|
|
3492
3556
|
var useTextMenuState = (editor) => {
|
|
3493
|
-
const states = (0,
|
|
3557
|
+
const states = (0, import_react33.useEditorState)({
|
|
3494
3558
|
editor,
|
|
3495
3559
|
selector: (ctx) => {
|
|
3496
3560
|
var _a, _b, _c, _d, _e;
|
|
@@ -3526,6 +3590,13 @@ var HorizontalRule = import_extension_horizontal_rule.HorizontalRule.extend({
|
|
|
3526
3590
|
}
|
|
3527
3591
|
})
|
|
3528
3592
|
];
|
|
3593
|
+
},
|
|
3594
|
+
addOptions() {
|
|
3595
|
+
return {
|
|
3596
|
+
HTMLAttributes: {
|
|
3597
|
+
class: "mly-relative"
|
|
3598
|
+
}
|
|
3599
|
+
};
|
|
3529
3600
|
}
|
|
3530
3601
|
});
|
|
3531
3602
|
|
|
@@ -3534,10 +3605,10 @@ var import_extension_image3 = __toESM(require("@tiptap/extension-image"));
|
|
|
3534
3605
|
|
|
3535
3606
|
// src/editor/extensions/link-card.ts
|
|
3536
3607
|
var import_core8 = require("@tiptap/core");
|
|
3537
|
-
var
|
|
3608
|
+
var import_react35 = require("@tiptap/react");
|
|
3538
3609
|
|
|
3539
3610
|
// src/editor/nodes/link-card.tsx
|
|
3540
|
-
var
|
|
3611
|
+
var import_react34 = require("@tiptap/react");
|
|
3541
3612
|
|
|
3542
3613
|
// src/editor/components/input.tsx
|
|
3543
3614
|
var React5 = __toESM(require("react"));
|
|
@@ -3588,7 +3659,7 @@ function LinkCardComponent(props) {
|
|
|
3588
3659
|
const { title, description, link, linkTitle, image: image2, badgeText, subTitle } = props.node.attrs;
|
|
3589
3660
|
const { getPos, editor } = props;
|
|
3590
3661
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3591
|
-
|
|
3662
|
+
import_react34.NodeViewWrapper,
|
|
3592
3663
|
{
|
|
3593
3664
|
className: `react-component ${props.selected && "ProseMirror-selectednode"}`,
|
|
3594
3665
|
draggable: "true",
|
|
@@ -3820,16 +3891,18 @@ var LinkCardExtension = import_core8.Node.create({
|
|
|
3820
3891
|
};
|
|
3821
3892
|
},
|
|
3822
3893
|
addNodeView() {
|
|
3823
|
-
return (0,
|
|
3894
|
+
return (0, import_react35.ReactNodeViewRenderer)(LinkCardComponent, {
|
|
3895
|
+
className: "mly-relative"
|
|
3896
|
+
});
|
|
3824
3897
|
}
|
|
3825
3898
|
});
|
|
3826
3899
|
|
|
3827
3900
|
// src/editor/nodes/button/button.tsx
|
|
3828
3901
|
var import_core9 = require("@tiptap/core");
|
|
3829
|
-
var
|
|
3902
|
+
var import_react37 = require("@tiptap/react");
|
|
3830
3903
|
|
|
3831
3904
|
// src/editor/nodes/button/button-view.tsx
|
|
3832
|
-
var
|
|
3905
|
+
var import_react36 = require("@tiptap/react");
|
|
3833
3906
|
var import_lucide_react20 = require("lucide-react");
|
|
3834
3907
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3835
3908
|
function ButtonView(props) {
|
|
@@ -3845,7 +3918,7 @@ function ButtonView(props) {
|
|
|
3845
3918
|
showIfKey = ""
|
|
3846
3919
|
} = node.attrs;
|
|
3847
3920
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3848
|
-
|
|
3921
|
+
import_react36.NodeViewWrapper,
|
|
3849
3922
|
{
|
|
3850
3923
|
draggable: "true",
|
|
3851
3924
|
"data-drag-handle": "",
|
|
@@ -4008,7 +4081,8 @@ function ButtonView(props) {
|
|
|
4008
4081
|
updateAttributes2({
|
|
4009
4082
|
showIfKey: value
|
|
4010
4083
|
});
|
|
4011
|
-
}
|
|
4084
|
+
},
|
|
4085
|
+
editor
|
|
4012
4086
|
}
|
|
4013
4087
|
)
|
|
4014
4088
|
] }) })
|
|
@@ -4209,8 +4283,9 @@ var ButtonExtension = import_core9.Node.create({
|
|
|
4209
4283
|
};
|
|
4210
4284
|
},
|
|
4211
4285
|
addNodeView() {
|
|
4212
|
-
return (0,
|
|
4213
|
-
contentDOMElementTag: "div"
|
|
4286
|
+
return (0, import_react37.ReactNodeViewRenderer)(ButtonView, {
|
|
4287
|
+
contentDOMElementTag: "div",
|
|
4288
|
+
className: "mly-relative"
|
|
4214
4289
|
});
|
|
4215
4290
|
}
|
|
4216
4291
|
});
|
|
@@ -4218,21 +4293,31 @@ var ButtonExtension = import_core9.Node.create({
|
|
|
4218
4293
|
// src/editor/nodes/variable/variable.ts
|
|
4219
4294
|
var import_core10 = require("@tiptap/core");
|
|
4220
4295
|
var import_state2 = require("@tiptap/pm/state");
|
|
4221
|
-
var
|
|
4296
|
+
var import_react40 = require("@tiptap/react");
|
|
4222
4297
|
var import_suggestion = __toESM(require("@tiptap/suggestion"));
|
|
4223
4298
|
|
|
4224
4299
|
// src/editor/nodes/variable/variable-view.tsx
|
|
4225
|
-
var
|
|
4300
|
+
var import_react38 = require("@tiptap/react");
|
|
4226
4301
|
var import_lucide_react21 = require("lucide-react");
|
|
4302
|
+
var import_react39 = require("react");
|
|
4227
4303
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4228
4304
|
function VariableView(props) {
|
|
4229
|
-
var _a
|
|
4305
|
+
var _a;
|
|
4230
4306
|
const { node, selected, updateAttributes: updateAttributes2, editor } = props;
|
|
4231
4307
|
const { id, fallback, showIfKey = "" } = node.attrs;
|
|
4232
4308
|
const { variables = [] } = useMailyContext();
|
|
4233
|
-
const
|
|
4309
|
+
const eachKey = ((_a = editor == null ? void 0 : editor.getAttributes("for")) == null ? void 0 : _a.each) || "";
|
|
4310
|
+
const isRequired = (0, import_react39.useMemo)(() => {
|
|
4311
|
+
var _a2;
|
|
4312
|
+
const variable = processVariables(variables, {
|
|
4313
|
+
query: "",
|
|
4314
|
+
from: "variable",
|
|
4315
|
+
editor
|
|
4316
|
+
}).find((variable2) => variable2.name === id);
|
|
4317
|
+
return (_a2 = variable == null ? void 0 : variable.required) != null ? _a2 : true;
|
|
4318
|
+
}, [variables, id, editor, eachKey]);
|
|
4234
4319
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4235
|
-
|
|
4320
|
+
import_react38.NodeViewWrapper,
|
|
4236
4321
|
{
|
|
4237
4322
|
className: cn(
|
|
4238
4323
|
"react-component",
|
|
@@ -4306,7 +4391,8 @@ function VariableView(props) {
|
|
|
4306
4391
|
updateAttributes2({
|
|
4307
4392
|
showIfKey: value
|
|
4308
4393
|
});
|
|
4309
|
-
}
|
|
4394
|
+
},
|
|
4395
|
+
editor
|
|
4310
4396
|
}
|
|
4311
4397
|
)
|
|
4312
4398
|
] }) })
|
|
@@ -4476,93 +4562,219 @@ var VariableExtension = import_core10.Node.create({
|
|
|
4476
4562
|
];
|
|
4477
4563
|
},
|
|
4478
4564
|
addNodeView() {
|
|
4479
|
-
return (0,
|
|
4565
|
+
return (0, import_react40.ReactNodeViewRenderer)(VariableView, {
|
|
4566
|
+
className: "mly-relative"
|
|
4567
|
+
});
|
|
4480
4568
|
}
|
|
4481
4569
|
});
|
|
4482
4570
|
|
|
4483
4571
|
// src/editor/nodes/image/image.ts
|
|
4484
4572
|
var import_extension_image2 = __toESM(require("@tiptap/extension-image"));
|
|
4485
|
-
var
|
|
4573
|
+
var import_react41 = require("@tiptap/react");
|
|
4486
4574
|
var ImageExtension = import_extension_image2.default.extend({
|
|
4487
4575
|
addAttributes() {
|
|
4488
|
-
var _a;
|
|
4489
|
-
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
4490
|
-
width: {
|
|
4491
|
-
default: "auto",
|
|
4492
|
-
parseHTML: (element) => {
|
|
4493
|
-
const width = element.style.width;
|
|
4494
|
-
return width ? { width } : null;
|
|
4495
|
-
},
|
|
4496
|
-
renderHTML: ({ width }) => ({ style: `width: ${width}` })
|
|
4497
|
-
},
|
|
4498
|
-
height: {
|
|
4499
|
-
default: "auto",
|
|
4576
|
+
var _a;
|
|
4577
|
+
return __spreadProps(__spreadValues({}, (_a = this.parent) == null ? void 0 : _a.call(this)), {
|
|
4578
|
+
width: {
|
|
4579
|
+
default: "auto",
|
|
4580
|
+
parseHTML: (element) => {
|
|
4581
|
+
const width = element.style.width;
|
|
4582
|
+
return width ? { width } : null;
|
|
4583
|
+
},
|
|
4584
|
+
renderHTML: ({ width }) => ({ style: `width: ${width}` })
|
|
4585
|
+
},
|
|
4586
|
+
height: {
|
|
4587
|
+
default: "auto",
|
|
4588
|
+
parseHTML: (element) => {
|
|
4589
|
+
const height = element.style.height;
|
|
4590
|
+
return height ? { height } : null;
|
|
4591
|
+
},
|
|
4592
|
+
renderHTML: ({ height }) => ({ style: `height: ${height}` })
|
|
4593
|
+
},
|
|
4594
|
+
alignment: {
|
|
4595
|
+
default: "center",
|
|
4596
|
+
renderHTML: ({ alignment }) => ({ "data-alignment": alignment }),
|
|
4597
|
+
parseHTML: (element) => element.getAttribute("data-alignment") || "center"
|
|
4598
|
+
},
|
|
4599
|
+
externalLink: {
|
|
4600
|
+
default: null,
|
|
4601
|
+
renderHTML: ({ externalLink }) => {
|
|
4602
|
+
if (!externalLink) {
|
|
4603
|
+
return {};
|
|
4604
|
+
}
|
|
4605
|
+
return {
|
|
4606
|
+
"data-external-link": externalLink
|
|
4607
|
+
};
|
|
4608
|
+
},
|
|
4609
|
+
parseHTML: (element) => {
|
|
4610
|
+
const externalLink = element.getAttribute("data-external-link");
|
|
4611
|
+
return externalLink ? { externalLink } : null;
|
|
4612
|
+
}
|
|
4613
|
+
},
|
|
4614
|
+
showIfKey: {
|
|
4615
|
+
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4616
|
+
parseHTML: (element) => {
|
|
4617
|
+
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4618
|
+
},
|
|
4619
|
+
renderHTML(attributes) {
|
|
4620
|
+
if (!attributes.showIfKey) {
|
|
4621
|
+
return {};
|
|
4622
|
+
}
|
|
4623
|
+
return {
|
|
4624
|
+
"data-show-if-key": attributes.showIfKey
|
|
4625
|
+
};
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
});
|
|
4629
|
+
},
|
|
4630
|
+
addNodeView() {
|
|
4631
|
+
return (0, import_react41.ReactNodeViewRenderer)(ImageView, {
|
|
4632
|
+
className: "mly-relative"
|
|
4633
|
+
});
|
|
4634
|
+
}
|
|
4635
|
+
});
|
|
4636
|
+
|
|
4637
|
+
// src/editor/utils/is-custom-node-selected.ts
|
|
4638
|
+
var isCustomNodeSelected = (editor, node) => {
|
|
4639
|
+
const customNodes = [
|
|
4640
|
+
HorizontalRule.name,
|
|
4641
|
+
import_extension_image3.default.name,
|
|
4642
|
+
Spacer.name,
|
|
4643
|
+
ImageExtension.name,
|
|
4644
|
+
VariableExtension.name,
|
|
4645
|
+
LinkCardExtension.name,
|
|
4646
|
+
LogoExtension.name,
|
|
4647
|
+
ButtonExtension.name
|
|
4648
|
+
];
|
|
4649
|
+
return customNodes.some((type) => editor.isActive(type));
|
|
4650
|
+
};
|
|
4651
|
+
|
|
4652
|
+
// src/editor/nodes/columns/columns.ts
|
|
4653
|
+
var import_core11 = require("@tiptap/core");
|
|
4654
|
+
var import_core12 = require("@tiptap/core");
|
|
4655
|
+
var import_uuid3 = require("uuid");
|
|
4656
|
+
var DEFAULT_COLUMNS_GAP = 8;
|
|
4657
|
+
var ColumnsExtension = import_core12.Node.create({
|
|
4658
|
+
name: "columns",
|
|
4659
|
+
group: "columns",
|
|
4660
|
+
content: "column+",
|
|
4661
|
+
defining: true,
|
|
4662
|
+
isolating: true,
|
|
4663
|
+
addAttributes() {
|
|
4664
|
+
return {
|
|
4665
|
+
showIfKey: {
|
|
4666
|
+
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4500
4667
|
parseHTML: (element) => {
|
|
4501
|
-
|
|
4502
|
-
return height ? { height } : null;
|
|
4668
|
+
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4503
4669
|
},
|
|
4504
|
-
renderHTML
|
|
4505
|
-
|
|
4506
|
-
alignment: {
|
|
4507
|
-
default: "center",
|
|
4508
|
-
renderHTML: ({ alignment }) => ({ "data-alignment": alignment }),
|
|
4509
|
-
parseHTML: (element) => element.getAttribute("data-alignment") || "center"
|
|
4510
|
-
},
|
|
4511
|
-
externalLink: {
|
|
4512
|
-
default: null,
|
|
4513
|
-
renderHTML: ({ externalLink }) => {
|
|
4514
|
-
if (!externalLink) {
|
|
4670
|
+
renderHTML(attributes) {
|
|
4671
|
+
if (!attributes.showIfKey) {
|
|
4515
4672
|
return {};
|
|
4516
4673
|
}
|
|
4517
4674
|
return {
|
|
4518
|
-
"data-
|
|
4675
|
+
"data-show-if-key": attributes.showIfKey
|
|
4519
4676
|
};
|
|
4520
|
-
},
|
|
4521
|
-
parseHTML: (element) => {
|
|
4522
|
-
const externalLink = element.getAttribute("data-external-link");
|
|
4523
|
-
return externalLink ? { externalLink } : null;
|
|
4524
4677
|
}
|
|
4525
4678
|
},
|
|
4526
|
-
|
|
4527
|
-
default:
|
|
4679
|
+
gap: {
|
|
4680
|
+
default: DEFAULT_COLUMNS_GAP,
|
|
4528
4681
|
parseHTML: (element) => {
|
|
4529
|
-
return element.
|
|
4682
|
+
return Number(element.style.gap) || DEFAULT_COLUMNS_GAP;
|
|
4530
4683
|
},
|
|
4531
4684
|
renderHTML(attributes) {
|
|
4532
|
-
if (!attributes.
|
|
4685
|
+
if (!attributes.gap) {
|
|
4533
4686
|
return {};
|
|
4534
4687
|
}
|
|
4535
4688
|
return {
|
|
4536
|
-
|
|
4689
|
+
style: `gap: ${attributes.gap}px`
|
|
4537
4690
|
};
|
|
4538
4691
|
}
|
|
4539
4692
|
}
|
|
4540
|
-
}
|
|
4693
|
+
};
|
|
4541
4694
|
},
|
|
4542
|
-
|
|
4543
|
-
return
|
|
4695
|
+
addCommands() {
|
|
4696
|
+
return {
|
|
4697
|
+
setColumns: () => ({ commands }) => {
|
|
4698
|
+
return commands.insertContent({
|
|
4699
|
+
type: this.name,
|
|
4700
|
+
attrs: {},
|
|
4701
|
+
content: [
|
|
4702
|
+
{
|
|
4703
|
+
type: "column",
|
|
4704
|
+
attrs: {
|
|
4705
|
+
columnId: (0, import_uuid3.v4)()
|
|
4706
|
+
},
|
|
4707
|
+
content: [
|
|
4708
|
+
{
|
|
4709
|
+
type: "paragraph"
|
|
4710
|
+
}
|
|
4711
|
+
]
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
type: "column",
|
|
4715
|
+
attrs: {
|
|
4716
|
+
columnId: (0, import_uuid3.v4)()
|
|
4717
|
+
},
|
|
4718
|
+
content: [
|
|
4719
|
+
{
|
|
4720
|
+
type: "paragraph"
|
|
4721
|
+
}
|
|
4722
|
+
]
|
|
4723
|
+
}
|
|
4724
|
+
]
|
|
4725
|
+
});
|
|
4726
|
+
},
|
|
4727
|
+
updateColumns: (attrs) => updateAttributes(this.name, attrs)
|
|
4728
|
+
};
|
|
4729
|
+
},
|
|
4730
|
+
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4731
|
+
return [
|
|
4732
|
+
"div",
|
|
4733
|
+
(0, import_core11.mergeAttributes)(HTMLAttributes2, {
|
|
4734
|
+
"data-type": "columns",
|
|
4735
|
+
class: "mly-relative"
|
|
4736
|
+
}),
|
|
4737
|
+
0
|
|
4738
|
+
];
|
|
4739
|
+
},
|
|
4740
|
+
parseHTML() {
|
|
4741
|
+
return [
|
|
4742
|
+
{
|
|
4743
|
+
tag: 'div[data-type="columns"]'
|
|
4744
|
+
}
|
|
4745
|
+
];
|
|
4746
|
+
},
|
|
4747
|
+
addKeyboardShortcuts() {
|
|
4748
|
+
return {
|
|
4749
|
+
Tab: () => {
|
|
4750
|
+
return goToColumn(this.editor, "next");
|
|
4751
|
+
},
|
|
4752
|
+
"Shift-Tab": () => {
|
|
4753
|
+
return goToColumn(this.editor, "previous");
|
|
4754
|
+
}
|
|
4755
|
+
};
|
|
4544
4756
|
}
|
|
4545
4757
|
});
|
|
4546
4758
|
|
|
4547
4759
|
// src/editor/nodes/for/for.ts
|
|
4548
|
-
var
|
|
4549
|
-
var
|
|
4760
|
+
var import_core13 = require("@tiptap/core");
|
|
4761
|
+
var import_react43 = require("@tiptap/react");
|
|
4550
4762
|
|
|
4551
4763
|
// src/editor/nodes/for/for-view.tsx
|
|
4552
|
-
var
|
|
4764
|
+
var import_react42 = require("@tiptap/react");
|
|
4553
4765
|
var import_lucide_react22 = require("lucide-react");
|
|
4554
4766
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4555
4767
|
function ForView(props) {
|
|
4556
4768
|
const { editor, getPos } = props;
|
|
4557
4769
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4558
|
-
|
|
4770
|
+
import_react42.NodeViewWrapper,
|
|
4559
4771
|
{
|
|
4560
4772
|
draggable: "true",
|
|
4561
4773
|
"data-drag-handle": "",
|
|
4562
4774
|
"data-type": "for",
|
|
4563
4775
|
className: "mly-relative",
|
|
4564
4776
|
children: [
|
|
4565
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4777
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react42.NodeViewContent, { className: "is-editable" }),
|
|
4566
4778
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4567
4779
|
"div",
|
|
4568
4780
|
{
|
|
@@ -4585,7 +4797,7 @@ function ForView(props) {
|
|
|
4585
4797
|
}
|
|
4586
4798
|
|
|
4587
4799
|
// src/editor/nodes/for/for.ts
|
|
4588
|
-
var ForExtension =
|
|
4800
|
+
var ForExtension = import_core13.Node.create({
|
|
4589
4801
|
name: "for",
|
|
4590
4802
|
group: "block",
|
|
4591
4803
|
content: "(block|columns)+",
|
|
@@ -4636,7 +4848,7 @@ var ForExtension = import_core11.Node.create({
|
|
|
4636
4848
|
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4637
4849
|
return [
|
|
4638
4850
|
"div",
|
|
4639
|
-
(0,
|
|
4851
|
+
(0, import_core13.mergeAttributes)(HTMLAttributes2, {
|
|
4640
4852
|
"data-type": this.name
|
|
4641
4853
|
}),
|
|
4642
4854
|
0
|
|
@@ -4659,137 +4871,13 @@ var ForExtension = import_core11.Node.create({
|
|
|
4659
4871
|
};
|
|
4660
4872
|
},
|
|
4661
4873
|
addNodeView() {
|
|
4662
|
-
return (0,
|
|
4663
|
-
contentDOMElementTag: "div"
|
|
4874
|
+
return (0, import_react43.ReactNodeViewRenderer)(ForView, {
|
|
4875
|
+
contentDOMElementTag: "div",
|
|
4876
|
+
className: "mly-relative"
|
|
4664
4877
|
});
|
|
4665
4878
|
}
|
|
4666
4879
|
});
|
|
4667
4880
|
|
|
4668
|
-
// src/editor/nodes/columns/columns.ts
|
|
4669
|
-
var import_core12 = require("@tiptap/core");
|
|
4670
|
-
var import_core13 = require("@tiptap/core");
|
|
4671
|
-
var import_uuid3 = require("uuid");
|
|
4672
|
-
var DEFAULT_COLUMNS_GAP = 8;
|
|
4673
|
-
var ColumnsExtension = import_core13.Node.create({
|
|
4674
|
-
name: "columns",
|
|
4675
|
-
group: "columns",
|
|
4676
|
-
content: "column+",
|
|
4677
|
-
defining: true,
|
|
4678
|
-
isolating: true,
|
|
4679
|
-
addAttributes() {
|
|
4680
|
-
return {
|
|
4681
|
-
showIfKey: {
|
|
4682
|
-
default: DEFAULT_SECTION_SHOW_IF_KEY,
|
|
4683
|
-
parseHTML: (element) => {
|
|
4684
|
-
return element.getAttribute("data-show-if-key") || DEFAULT_SECTION_SHOW_IF_KEY;
|
|
4685
|
-
},
|
|
4686
|
-
renderHTML(attributes) {
|
|
4687
|
-
if (!attributes.showIfKey) {
|
|
4688
|
-
return {};
|
|
4689
|
-
}
|
|
4690
|
-
return {
|
|
4691
|
-
"data-show-if-key": attributes.showIfKey
|
|
4692
|
-
};
|
|
4693
|
-
}
|
|
4694
|
-
},
|
|
4695
|
-
gap: {
|
|
4696
|
-
default: DEFAULT_COLUMNS_GAP,
|
|
4697
|
-
parseHTML: (element) => {
|
|
4698
|
-
return Number(element.style.gap) || DEFAULT_COLUMNS_GAP;
|
|
4699
|
-
},
|
|
4700
|
-
renderHTML(attributes) {
|
|
4701
|
-
if (!attributes.gap) {
|
|
4702
|
-
return {};
|
|
4703
|
-
}
|
|
4704
|
-
return {
|
|
4705
|
-
style: `gap: ${attributes.gap}px`
|
|
4706
|
-
};
|
|
4707
|
-
}
|
|
4708
|
-
}
|
|
4709
|
-
};
|
|
4710
|
-
},
|
|
4711
|
-
addCommands() {
|
|
4712
|
-
return {
|
|
4713
|
-
setColumns: () => ({ commands }) => {
|
|
4714
|
-
return commands.insertContent({
|
|
4715
|
-
type: this.name,
|
|
4716
|
-
attrs: {},
|
|
4717
|
-
content: [
|
|
4718
|
-
{
|
|
4719
|
-
type: "column",
|
|
4720
|
-
attrs: {
|
|
4721
|
-
columnId: (0, import_uuid3.v4)()
|
|
4722
|
-
},
|
|
4723
|
-
content: [
|
|
4724
|
-
{
|
|
4725
|
-
type: "paragraph"
|
|
4726
|
-
}
|
|
4727
|
-
]
|
|
4728
|
-
},
|
|
4729
|
-
{
|
|
4730
|
-
type: "column",
|
|
4731
|
-
attrs: {
|
|
4732
|
-
columnId: (0, import_uuid3.v4)()
|
|
4733
|
-
},
|
|
4734
|
-
content: [
|
|
4735
|
-
{
|
|
4736
|
-
type: "paragraph"
|
|
4737
|
-
}
|
|
4738
|
-
]
|
|
4739
|
-
}
|
|
4740
|
-
]
|
|
4741
|
-
});
|
|
4742
|
-
},
|
|
4743
|
-
updateColumns: (attrs) => updateAttributes(this.name, attrs)
|
|
4744
|
-
};
|
|
4745
|
-
},
|
|
4746
|
-
renderHTML({ HTMLAttributes: HTMLAttributes2 }) {
|
|
4747
|
-
return [
|
|
4748
|
-
"div",
|
|
4749
|
-
(0, import_core12.mergeAttributes)(HTMLAttributes2, {
|
|
4750
|
-
"data-type": "columns"
|
|
4751
|
-
}),
|
|
4752
|
-
0
|
|
4753
|
-
];
|
|
4754
|
-
},
|
|
4755
|
-
parseHTML() {
|
|
4756
|
-
return [
|
|
4757
|
-
{
|
|
4758
|
-
tag: 'div[data-type="columns"]'
|
|
4759
|
-
}
|
|
4760
|
-
];
|
|
4761
|
-
},
|
|
4762
|
-
addKeyboardShortcuts() {
|
|
4763
|
-
return {
|
|
4764
|
-
Tab: () => {
|
|
4765
|
-
return goToColumn(this.editor, "next");
|
|
4766
|
-
},
|
|
4767
|
-
"Shift-Tab": () => {
|
|
4768
|
-
return goToColumn(this.editor, "previous");
|
|
4769
|
-
}
|
|
4770
|
-
};
|
|
4771
|
-
}
|
|
4772
|
-
});
|
|
4773
|
-
|
|
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
|
-
};
|
|
4792
|
-
|
|
4793
4881
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
4794
4882
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4795
4883
|
function TextBubbleMenu(props) {
|
|
@@ -4837,7 +4925,8 @@ function TextBubbleMenu(props) {
|
|
|
4837
4925
|
];
|
|
4838
4926
|
const bubbleMenuProps = __spreadProps(__spreadValues(__spreadValues({}, props), appendTo ? { appendTo: appendTo.current } : {}), {
|
|
4839
4927
|
pluginKey: "textMenu",
|
|
4840
|
-
shouldShow: ({ editor: editor2,
|
|
4928
|
+
shouldShow: ({ editor: editor2, from, view }) => {
|
|
4929
|
+
var _a2;
|
|
4841
4930
|
if (!view || editor2.view.dragging) {
|
|
4842
4931
|
return false;
|
|
4843
4932
|
}
|
|
@@ -4847,7 +4936,14 @@ function TextBubbleMenu(props) {
|
|
|
4847
4936
|
if (isCustomNodeSelected(editor2, node)) {
|
|
4848
4937
|
return false;
|
|
4849
4938
|
}
|
|
4850
|
-
|
|
4939
|
+
const nestedNodes = [
|
|
4940
|
+
ForExtension.name,
|
|
4941
|
+
SectionExtension.name,
|
|
4942
|
+
ColumnsExtension.name,
|
|
4943
|
+
ColumnExtension.name
|
|
4944
|
+
];
|
|
4945
|
+
const isNestedNodeSelected = nestedNodes.some((name) => editor2.isActive(name)) && ((_a2 = node == null ? void 0 : node.classList) == null ? void 0 : _a2.contains("ProseMirror-selectednode"));
|
|
4946
|
+
return isTextSelected(editor2) && !isNestedNodeSelected;
|
|
4851
4947
|
},
|
|
4852
4948
|
tippyOptions: {
|
|
4853
4949
|
popperOptions: {
|
|
@@ -4873,7 +4969,7 @@ function TextBubbleMenu(props) {
|
|
|
4873
4969
|
});
|
|
4874
4970
|
const state = useTextMenuState(editor);
|
|
4875
4971
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4876
|
-
|
|
4972
|
+
import_react44.BubbleMenu,
|
|
4877
4973
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4878
4974
|
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
4975
|
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(TooltipProvider, { children: [
|
|
@@ -4914,11 +5010,15 @@ function TextBubbleMenu(props) {
|
|
|
4914
5010
|
{
|
|
4915
5011
|
defaultValue: (_a = state == null ? void 0 : state.linkUrl) != null ? _a : "",
|
|
4916
5012
|
onValueChange: (value) => {
|
|
4917
|
-
|
|
4918
|
-
|
|
5013
|
+
const defaultValueWithoutProtocol = value.replace(
|
|
5014
|
+
/https?:\/\//,
|
|
5015
|
+
""
|
|
5016
|
+
);
|
|
5017
|
+
if (!defaultValueWithoutProtocol) {
|
|
5018
|
+
editor == null ? void 0 : editor.chain().focus().extendMarkRange("link").unsetLink().unsetUnderline().run();
|
|
4919
5019
|
return;
|
|
4920
5020
|
}
|
|
4921
|
-
editor == null ? void 0 : editor.chain().extendMarkRange("link").setLink({ href: value }).run();
|
|
5021
|
+
editor == null ? void 0 : editor.chain().extendMarkRange("link").setLink({ href: value }).setUnderline().run();
|
|
4922
5022
|
},
|
|
4923
5023
|
tooltip: "External URL"
|
|
4924
5024
|
}
|
|
@@ -5006,7 +5106,7 @@ var Footer = import_core14.Node.create({
|
|
|
5006
5106
|
return [
|
|
5007
5107
|
"small",
|
|
5008
5108
|
(0, import_core14.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes2, {
|
|
5009
|
-
class: "footer mly-block mly-text-[13px] mly-text-slate-500"
|
|
5109
|
+
class: "footer mly-block mly-text-[13px] mly-text-slate-500 mly-relative"
|
|
5010
5110
|
}),
|
|
5011
5111
|
0
|
|
5012
5112
|
];
|
|
@@ -5014,16 +5114,16 @@ var Footer = import_core14.Node.create({
|
|
|
5014
5114
|
});
|
|
5015
5115
|
|
|
5016
5116
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
5017
|
-
var
|
|
5117
|
+
var import_react45 = require("@tiptap/react");
|
|
5018
5118
|
var import_lucide_react24 = require("lucide-react");
|
|
5019
|
-
var
|
|
5119
|
+
var import_react46 = require("react");
|
|
5020
5120
|
var import_tippy5 = __toESM(require("tippy.js"));
|
|
5021
5121
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5022
|
-
var VariableList = (0,
|
|
5122
|
+
var VariableList = (0, import_react46.forwardRef)((props, ref) => {
|
|
5023
5123
|
const { items = [] } = props;
|
|
5024
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
5025
|
-
const scrollContainerRef = (0,
|
|
5026
|
-
const itemRefs = (0,
|
|
5124
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react46.useState)(0);
|
|
5125
|
+
const scrollContainerRef = (0, import_react46.useRef)(null);
|
|
5126
|
+
const itemRefs = (0, import_react46.useRef)([]);
|
|
5027
5127
|
const selectItem = (index) => {
|
|
5028
5128
|
const item = props.items[index];
|
|
5029
5129
|
if (!item) {
|
|
@@ -5046,17 +5146,17 @@ var VariableList = (0, import_react41.forwardRef)((props, ref) => {
|
|
|
5046
5146
|
container.scrollTop += itemRect.top - containerRect.top - padding;
|
|
5047
5147
|
}
|
|
5048
5148
|
};
|
|
5049
|
-
(0,
|
|
5149
|
+
(0, import_react46.useEffect)(() => {
|
|
5050
5150
|
setSelectedIndex(0);
|
|
5051
5151
|
if (scrollContainerRef.current) {
|
|
5052
5152
|
scrollContainerRef.current.scrollTop = 0;
|
|
5053
5153
|
}
|
|
5054
5154
|
itemRefs.current = props.items.map(() => null);
|
|
5055
5155
|
}, [props.items]);
|
|
5056
|
-
(0,
|
|
5156
|
+
(0, import_react46.useEffect)(() => {
|
|
5057
5157
|
scrollSelectedIntoView(selectedIndex);
|
|
5058
5158
|
}, [selectedIndex]);
|
|
5059
|
-
(0,
|
|
5159
|
+
(0, import_react46.useImperativeHandle)(ref, () => ({
|
|
5060
5160
|
onKeyDown: ({ event }) => {
|
|
5061
5161
|
if (event.key === "ArrowUp") {
|
|
5062
5162
|
event.preventDefault();
|
|
@@ -5128,30 +5228,22 @@ function VariableIcon(props) {
|
|
|
5128
5228
|
);
|
|
5129
5229
|
}
|
|
5130
5230
|
VariableList.displayName = "VariableList";
|
|
5131
|
-
function getVariableSuggestions(variables =
|
|
5132
|
-
const defaultVariables = variables.filter((v) => !v.iterable).map((variable) => variable.name);
|
|
5231
|
+
function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VARIABLE_TRIGGER_CHAR) {
|
|
5133
5232
|
return {
|
|
5134
5233
|
char,
|
|
5135
5234
|
items: ({ query, editor }) => {
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
(name) => name.toLowerCase().startsWith(queryLower)
|
|
5142
|
-
);
|
|
5143
|
-
const combinedKeys = [...associatedVariableKeys, ...filteredVariableKeys];
|
|
5144
|
-
if (query.length > 0 && !filteredVariableKeys.includes(query)) {
|
|
5145
|
-
combinedKeys.push(query);
|
|
5146
|
-
}
|
|
5147
|
-
return combinedKeys;
|
|
5235
|
+
return processVariables(variables, {
|
|
5236
|
+
query,
|
|
5237
|
+
editor,
|
|
5238
|
+
from: "variable"
|
|
5239
|
+
}).map((variable) => variable.name);
|
|
5148
5240
|
},
|
|
5149
5241
|
render: () => {
|
|
5150
5242
|
let component;
|
|
5151
5243
|
let popup = null;
|
|
5152
5244
|
return {
|
|
5153
5245
|
onStart: (props) => {
|
|
5154
|
-
component = new
|
|
5246
|
+
component = new import_react45.ReactRenderer(VariableList, {
|
|
5155
5247
|
props,
|
|
5156
5248
|
editor: props.editor
|
|
5157
5249
|
});
|
|
@@ -5240,14 +5332,14 @@ var updateScrollView = (container, item) => {
|
|
|
5240
5332
|
};
|
|
5241
5333
|
|
|
5242
5334
|
// src/editor/extensions/slash-command/slash-command-view.tsx
|
|
5243
|
-
var
|
|
5244
|
-
var
|
|
5335
|
+
var import_react47 = require("@tiptap/react");
|
|
5336
|
+
var import_react48 = require("react");
|
|
5245
5337
|
var import_tippy6 = __toESM(require("tippy.js"));
|
|
5246
5338
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5247
5339
|
function CommandList(props) {
|
|
5248
5340
|
const { items, command, editor } = props;
|
|
5249
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
5250
|
-
const selectItem = (0,
|
|
5341
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react48.useState)(0);
|
|
5342
|
+
const selectItem = (0, import_react48.useCallback)(
|
|
5251
5343
|
(index) => {
|
|
5252
5344
|
const item = items[index];
|
|
5253
5345
|
if (item) {
|
|
@@ -5257,7 +5349,7 @@ function CommandList(props) {
|
|
|
5257
5349
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5258
5350
|
[command, editor, items]
|
|
5259
5351
|
);
|
|
5260
|
-
(0,
|
|
5352
|
+
(0, import_react48.useEffect)(() => {
|
|
5261
5353
|
const navigationKeys = ["ArrowUp", "ArrowDown", "Enter"];
|
|
5262
5354
|
const onKeyDown = (e) => {
|
|
5263
5355
|
if (navigationKeys.includes(e.key)) {
|
|
@@ -5282,11 +5374,11 @@ function CommandList(props) {
|
|
|
5282
5374
|
document.removeEventListener("keydown", onKeyDown);
|
|
5283
5375
|
};
|
|
5284
5376
|
}, [items, selectedIndex, setSelectedIndex, selectItem]);
|
|
5285
|
-
(0,
|
|
5377
|
+
(0, import_react48.useEffect)(() => {
|
|
5286
5378
|
setSelectedIndex(0);
|
|
5287
5379
|
}, [items]);
|
|
5288
|
-
const commandListContainer = (0,
|
|
5289
|
-
(0,
|
|
5380
|
+
const commandListContainer = (0, import_react48.useRef)(null);
|
|
5381
|
+
(0, import_react48.useLayoutEffect)(() => {
|
|
5290
5382
|
const container = commandListContainer == null ? void 0 : commandListContainer.current;
|
|
5291
5383
|
const item = container == null ? void 0 : container.children[selectedIndex];
|
|
5292
5384
|
if (item && container) {
|
|
@@ -5359,7 +5451,7 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5359
5451
|
let popup = null;
|
|
5360
5452
|
return {
|
|
5361
5453
|
onStart: (props) => {
|
|
5362
|
-
component = new
|
|
5454
|
+
component = new import_react47.ReactRenderer(CommandList, {
|
|
5363
5455
|
props,
|
|
5364
5456
|
editor: props.editor
|
|
5365
5457
|
});
|
|
@@ -5400,7 +5492,7 @@ function getSlashCommandSuggestions(commands = []) {
|
|
|
5400
5492
|
|
|
5401
5493
|
// src/editor/extensions/index.ts
|
|
5402
5494
|
function extensions(props) {
|
|
5403
|
-
const { variables, blocks,
|
|
5495
|
+
const { variables, blocks, variableTriggerCharacter } = props;
|
|
5404
5496
|
return [
|
|
5405
5497
|
import_extension_document.default.extend({
|
|
5406
5498
|
content: "(block|columns)+"
|
|
@@ -5409,16 +5501,34 @@ function extensions(props) {
|
|
|
5409
5501
|
ColumnExtension,
|
|
5410
5502
|
import_starter_kit.default.configure({
|
|
5411
5503
|
heading: {
|
|
5412
|
-
levels: [1, 2, 3]
|
|
5504
|
+
levels: [1, 2, 3],
|
|
5505
|
+
HTMLAttributes: {
|
|
5506
|
+
class: "mly-relative"
|
|
5507
|
+
}
|
|
5413
5508
|
},
|
|
5414
5509
|
code: {
|
|
5415
5510
|
HTMLAttributes: {
|
|
5416
|
-
class: "mly-px-1 mly-py-0.5 mly-bg-[#efefef] mly-text-sm mly-rounded-md mly-tracking-normal mly-font-normal"
|
|
5511
|
+
class: "mly-px-1 mly-relative mly-py-0.5 mly-bg-[#efefef] mly-text-sm mly-rounded-md mly-tracking-normal mly-font-normal"
|
|
5417
5512
|
}
|
|
5418
5513
|
},
|
|
5419
5514
|
blockquote: {
|
|
5420
5515
|
HTMLAttributes: {
|
|
5421
|
-
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4"
|
|
5516
|
+
class: "mly-not-prose mly-border-l-4 mly-border-gray-300 mly-pl-4 mly-mt-4 mly-mb-4 mly-relative"
|
|
5517
|
+
}
|
|
5518
|
+
},
|
|
5519
|
+
paragraph: {
|
|
5520
|
+
HTMLAttributes: {
|
|
5521
|
+
class: "mly-relative"
|
|
5522
|
+
}
|
|
5523
|
+
},
|
|
5524
|
+
bulletList: {
|
|
5525
|
+
HTMLAttributes: {
|
|
5526
|
+
class: "mly-relative"
|
|
5527
|
+
}
|
|
5528
|
+
},
|
|
5529
|
+
orderedList: {
|
|
5530
|
+
HTMLAttributes: {
|
|
5531
|
+
class: "mly-relative"
|
|
5422
5532
|
}
|
|
5423
5533
|
},
|
|
5424
5534
|
horizontalRule: false,
|
|
@@ -5435,9 +5545,14 @@ function extensions(props) {
|
|
|
5435
5545
|
placeholder: ({ node }) => {
|
|
5436
5546
|
if (node.type.name === "heading") {
|
|
5437
5547
|
return `Heading ${node.attrs.level}`;
|
|
5438
|
-
} else if ([
|
|
5439
|
-
|
|
5440
|
-
|
|
5548
|
+
} else if ([
|
|
5549
|
+
"columns",
|
|
5550
|
+
"column",
|
|
5551
|
+
"section",
|
|
5552
|
+
"for",
|
|
5553
|
+
"show",
|
|
5554
|
+
"blockquote"
|
|
5555
|
+
].includes(node.type.name)) {
|
|
5441
5556
|
return "";
|
|
5442
5557
|
}
|
|
5443
5558
|
return "Write something or / to see commands";
|
|
@@ -5452,7 +5567,8 @@ function extensions(props) {
|
|
|
5452
5567
|
import_extension_link.default.configure({
|
|
5453
5568
|
HTMLAttributes: {
|
|
5454
5569
|
target: "_blank",
|
|
5455
|
-
rel: "noopener noreferrer nofollow"
|
|
5570
|
+
rel: "noopener noreferrer nofollow",
|
|
5571
|
+
class: "mly-no-underline"
|
|
5456
5572
|
},
|
|
5457
5573
|
openOnClick: false
|
|
5458
5574
|
}),
|
|
@@ -5468,7 +5584,7 @@ function extensions(props) {
|
|
|
5468
5584
|
}),
|
|
5469
5585
|
ButtonExtension,
|
|
5470
5586
|
VariableExtension.configure({
|
|
5471
|
-
suggestion: getVariableSuggestions(variables,
|
|
5587
|
+
suggestion: getVariableSuggestions(variables, variableTriggerCharacter)
|
|
5472
5588
|
})
|
|
5473
5589
|
];
|
|
5474
5590
|
}
|
|
@@ -5491,9 +5607,9 @@ function Editor8(props) {
|
|
|
5491
5607
|
extensions: extensions2,
|
|
5492
5608
|
contentHtml,
|
|
5493
5609
|
contentJson,
|
|
5494
|
-
variables,
|
|
5610
|
+
variables = DEFAULT_VARIABLES,
|
|
5495
5611
|
blocks = DEFAULT_SLASH_COMMANDS,
|
|
5496
|
-
|
|
5612
|
+
variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR
|
|
5497
5613
|
} = props;
|
|
5498
5614
|
let formattedContent = null;
|
|
5499
5615
|
if (contentJson) {
|
|
@@ -5514,8 +5630,8 @@ function Editor8(props) {
|
|
|
5514
5630
|
]
|
|
5515
5631
|
};
|
|
5516
5632
|
}
|
|
5517
|
-
const menuContainerRef = (0,
|
|
5518
|
-
const editor = (0,
|
|
5633
|
+
const menuContainerRef = (0, import_react50.useRef)(null);
|
|
5634
|
+
const editor = (0, import_react49.useEditor)({
|
|
5519
5635
|
editorProps: {
|
|
5520
5636
|
attributes: {
|
|
5521
5637
|
class: cn(`mly-prose mly-w-full`, contentClassName),
|
|
@@ -5543,7 +5659,7 @@ function Editor8(props) {
|
|
|
5543
5659
|
...extensions({
|
|
5544
5660
|
variables,
|
|
5545
5661
|
blocks,
|
|
5546
|
-
|
|
5662
|
+
variableTriggerCharacter
|
|
5547
5663
|
}),
|
|
5548
5664
|
...extensions2 || []
|
|
5549
5665
|
],
|
|
@@ -5558,7 +5674,7 @@ function Editor8(props) {
|
|
|
5558
5674
|
{
|
|
5559
5675
|
variables,
|
|
5560
5676
|
blocks,
|
|
5561
|
-
|
|
5677
|
+
variableTriggerCharacter,
|
|
5562
5678
|
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
5563
5679
|
"div",
|
|
5564
5680
|
{
|
|
@@ -5577,7 +5693,7 @@ function Editor8(props) {
|
|
|
5577
5693
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TextBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
5578
5694
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ImageBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
5579
5695
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SpacerBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
5580
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5696
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react49.EditorContent, { editor }),
|
|
5581
5697
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SectionBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
5582
5698
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ColumnsBubbleMenu, { editor, appendTo: menuContainerRef }),
|
|
5583
5699
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ContentMenu, { editor }),
|