@openeditor/ui 0.0.12 → 0.0.14
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.css +333 -63
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +223 -80
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles.css"],"sourcesContent":[".oe-editor-surface {\n display: grid;\n gap: 12px;\n position: relative;\n}\n\n.oe-canvas {\n min-height: calc(100vh - 96px);\n}\n\n.oe-prosemirror,\n.oe-viewer {\n color: var(--oe-text, #171717);\n}\n\n.oe-editor-surface,\n.oe-prosemirror,\n.oe-viewer,\n.oe-slash-menu,\n.oe-dialog {\n scrollbar-color: color-mix(in srgb, var(--oe-muted, #737373) 72%, transparent) transparent;\n scrollbar-width: thin;\n}\n\n.oe-editor-surface::-webkit-scrollbar,\n.oe-editor-surface *::-webkit-scrollbar,\n.oe-prosemirror::-webkit-scrollbar,\n.oe-viewer::-webkit-scrollbar,\n.oe-slash-menu::-webkit-scrollbar,\n.oe-dialog::-webkit-scrollbar {\n height: 10px;\n width: 10px;\n}\n\n.oe-editor-surface::-webkit-scrollbar-track,\n.oe-editor-surface *::-webkit-scrollbar-track,\n.oe-prosemirror::-webkit-scrollbar-track,\n.oe-viewer::-webkit-scrollbar-track,\n.oe-slash-menu::-webkit-scrollbar-track,\n.oe-dialog::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.oe-editor-surface::-webkit-scrollbar-thumb,\n.oe-editor-surface *::-webkit-scrollbar-thumb,\n.oe-prosemirror::-webkit-scrollbar-thumb,\n.oe-viewer::-webkit-scrollbar-thumb,\n.oe-slash-menu::-webkit-scrollbar-thumb,\n.oe-dialog::-webkit-scrollbar-thumb {\n background-clip: content-box;\n background-color: color-mix(in srgb, var(--oe-muted, #737373) 58%, transparent);\n border: 3px solid transparent;\n border-radius: 999px;\n}\n\n.oe-editor-surface::-webkit-scrollbar-thumb:hover,\n.oe-editor-surface *::-webkit-scrollbar-thumb:hover,\n.oe-prosemirror::-webkit-scrollbar-thumb:hover,\n.oe-viewer::-webkit-scrollbar-thumb:hover,\n.oe-slash-menu::-webkit-scrollbar-thumb:hover,\n.oe-dialog::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, var(--oe-muted, #737373) 78%, transparent);\n}\n\n.ProseMirror.oe-prosemirror,\n.oe-prosemirror,\n.oe-viewer {\n overflow-wrap: anywhere;\n word-wrap: anywhere;\n}\n\n.oe-prosemirror {\n min-height: calc(100vh - 96px);\n outline: none;\n white-space: break-spaces;\n}\n\n.oe-prosemirror > *:first-child,\n.oe-viewer > *:first-child {\n margin-top: 0;\n}\n\n.oe-prosemirror > *:last-child,\n.oe-viewer > *:last-child {\n margin-bottom: 0;\n}\n\n.oe-prosemirror p.is-editor-empty:first-child::before {\n color: var(--oe-placeholder, #a3a3a3);\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n}\n\n.oe-prosemirror img,\n.oe-viewer img {\n border-radius: 8px;\n display: block;\n margin: 16px 0;\n max-width: 100%;\n}\n\n.oe-prosemirror blockquote,\n.oe-viewer blockquote {\n border-left: 3px solid var(--oe-accent, #f5f5f5);\n margin: 18px 0;\n padding-left: 16px;\n}\n\n.oe-prosemirror pre,\n.oe-viewer pre {\n background: var(--oe-code-bg, #f5f5f5);\n border-radius: 8px;\n color: var(--oe-code-text, #171717);\n overflow: auto;\n padding: 14px;\n white-space: pre-wrap;\n}\n\n.oe-prosemirror code,\n.oe-viewer code {\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace;\n}\n\n.oe-prosemirror a,\n.oe-viewer a {\n color: var(--oe-link, var(--oe-accent-strong, #171717));\n cursor: pointer;\n text-decoration-color: color-mix(in srgb, var(--oe-link, var(--oe-accent-strong, #171717)) 65%, transparent);\n text-decoration-line: underline;\n text-decoration-thickness: 1.5px;\n text-underline-offset: 0.18em;\n}\n\n.oe-prosemirror a:hover,\n.oe-viewer a:hover {\n color: var(--oe-link-hover, var(--oe-link, var(--oe-accent-strong, #171717)));\n text-decoration-color: currentColor;\n}\n\n.oe-prosemirror p,\n.oe-prosemirror ul,\n.oe-prosemirror ol,\n.oe-viewer p,\n.oe-viewer ul,\n.oe-viewer ol {\n color: var(--oe-text-soft, #262626);\n font-size: 16px;\n line-height: 1.6;\n}\n\n.oe-prosemirror h1,\n.oe-prosemirror h2,\n.oe-prosemirror h3,\n.oe-prosemirror h4,\n.oe-prosemirror h5,\n.oe-prosemirror h6,\n.oe-viewer h1,\n.oe-viewer h2,\n.oe-viewer h3,\n.oe-viewer h4,\n.oe-viewer h5,\n.oe-viewer h6 {\n color: var(--oe-heading, var(--oe-text, #171717));\n font-weight: 700;\n line-height: 1.2;\n margin: 24px 0 10px;\n}\n\n.oe-prosemirror h1,\n.oe-viewer h1 {\n font-size: 2em;\n}\n\n.oe-prosemirror h2,\n.oe-viewer h2 {\n font-size: 1.5em;\n}\n\n.oe-prosemirror h3,\n.oe-viewer h3 {\n font-size: 1.25em;\n}\n\n.oe-prosemirror h4,\n.oe-viewer h4 {\n font-size: 1.125em;\n}\n\n.oe-prosemirror h5,\n.oe-prosemirror h6,\n.oe-viewer h5,\n.oe-viewer h6 {\n font-size: 1em;\n}\n\n.oe-prosemirror ul:not([data-type=\"taskList\"]),\n.oe-viewer ul:not([data-type=\"taskList\"]) {\n list-style: disc;\n padding-left: 1.5em;\n}\n\n.oe-prosemirror ol,\n.oe-viewer ol {\n list-style: decimal;\n padding-left: 1.5em;\n}\n\n.oe-prosemirror li,\n.oe-viewer li {\n margin: 4px 0;\n}\n\n.oe-prosemirror ul[data-openeditor-toggle-list],\n.oe-viewer ul[data-openeditor-toggle-list] {\n list-style: none;\n margin: 18px 0;\n padding: 0;\n}\n\n.oe-toggle-list-item {\n display: grid;\n gap: 8px;\n grid-template-columns: 24px minmax(0, 1fr);\n}\n\n.oe-toggle-list-trigger {\n align-items: center;\n align-self: start;\n background: transparent;\n border: 0;\n border-radius: 6px;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n display: inline-flex;\n height: 24px;\n justify-content: center;\n margin-top: 1px;\n padding: 0;\n width: 24px;\n}\n\n.oe-toggle-list-trigger:hover,\n.oe-toggle-list-trigger:focus-visible {\n background: var(--oe-surface-muted, #f5f5f5);\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-toggle-list-trigger:disabled {\n cursor: default;\n}\n\n.oe-toggle-list-chevron {\n font-size: 22px;\n line-height: 1;\n transform: rotate(0deg);\n transition: transform 140ms ease;\n}\n\n.oe-toggle-list-item[data-open=\"true\"] > .oe-toggle-list-trigger .oe-toggle-list-chevron {\n transform: rotate(90deg);\n}\n\n.oe-toggle-list-content > :first-child,\n.oe-toggle-list-content > [data-node-view-content-react] > :first-child {\n margin-top: 0;\n}\n\n.oe-toggle-list-content > :last-child,\n.oe-toggle-list-content > [data-node-view-content-react] > :last-child {\n margin-bottom: 0;\n}\n\n.oe-toggle-list-item[data-open=\"false\"] > .oe-toggle-list-content > :not(:first-child),\n.oe-toggle-list-item[data-open=\"false\"] > .oe-toggle-list-content > [data-node-view-content-react] > :not(:first-child) {\n display: none;\n}\n\n.oe-callout {\n --oe-callout-color: var(--oe-accent-strong, #171717);\n background: color-mix(in srgb, var(--oe-callout-color) 8%, var(--oe-surface, #ffffff));\n border: 1px solid color-mix(in srgb, var(--oe-callout-color) 24%, var(--oe-border, #e5e5e5));\n border-left: 4px solid var(--oe-callout-color);\n border-radius: 10px;\n display: grid;\n gap: 10px;\n grid-template-columns: auto minmax(0, 1fr);\n margin: 18px 0;\n padding: 14px;\n}\n\n.oe-callout[data-tone=\"success\"] { --oe-callout-color: #16a34a; }\n.oe-callout[data-tone=\"warning\"] { --oe-callout-color: #d97706; }\n.oe-callout[data-tone=\"danger\"] { --oe-callout-color: #dc2626; }\n\n.oe-callout-tone {\n align-self: start;\n background: var(--oe-surface, #ffffff);\n border: 1px solid var(--oe-border-strong, #d4d4d4);\n border-radius: 6px;\n color: var(--oe-text, #171717);\n font: inherit;\n font-size: 12px;\n padding: 4px 6px;\n text-transform: capitalize;\n}\n\n.oe-callout-content > :first-child { margin-top: 0; }\n.oe-callout-content > :last-child { margin-bottom: 0; }\n.oe-viewer .oe-callout { grid-template-columns: minmax(0, 1fr); }\n\n.oe-page {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 6px;\n color: var(--oe-text, #171717);\n display: flex;\n font: inherit;\n gap: 8px;\n margin: 4px 0;\n min-height: 34px;\n padding: 3px 6px;\n text-align: left;\n width: 100%;\n}\n\n.oe-page:hover,\n.oe-page:focus-within {\n background: var(--oe-surface-muted, #f5f5f5);\n}\n\n.oe-page-icon,\n.oe-page-icon-input {\n flex: 0 0 auto;\n font-size: 18px;\n line-height: 1;\n text-align: center;\n width: 24px;\n}\n\n.oe-page-icon-input {\n background: transparent;\n border: 0;\n color: inherit;\n outline: none;\n padding: 0;\n}\n\n.oe-page-title {\n flex: 1 1 auto;\n font-weight: 500;\n min-width: 0;\n text-decoration: underline;\n text-decoration-color: color-mix(in srgb, currentColor 28%, transparent);\n text-underline-offset: 0.18em;\n}\n\n.oe-page-action {\n background: transparent;\n border: 0;\n border-radius: 5px;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n flex: 0 0 auto;\n font: inherit;\n font-size: 12px;\n padding: 5px 7px;\n}\n\n.oe-page-action:hover { background: var(--oe-accent, #e5e5e5); color: var(--oe-text, #171717); }\n.oe-page-action:disabled { cursor: progress; opacity: 0.6; }\n.oe-page-error { color: #dc2626; font-size: 12px; }\n.oe-page-viewer { cursor: pointer; text-decoration: none; }\n.oe-page-arrow { color: var(--oe-muted, #737373); }\n\n.oe-diagram {\n border: 1px solid var(--oe-border, #e5e5e5);\n border-radius: 12px;\n margin: 18px 0;\n overflow: hidden;\n}\n\n.oe-diagram-preview {\n background: var(--oe-surface, #ffffff);\n min-height: 120px;\n overflow: auto;\n padding: 18px;\n}\n\n.oe-diagram-preview svg {\n display: block;\n height: auto;\n margin: auto;\n max-width: 100%;\n}\n\n.oe-diagram-source,\n.oe-diagram-error {\n background: var(--oe-code-bg, #f5f5f5);\n border: 0;\n border-top: 1px solid var(--oe-border, #e5e5e5);\n box-sizing: border-box;\n color: var(--oe-code-text, #171717);\n display: block;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace;\n font-size: 13px;\n line-height: 1.5;\n margin: 0;\n min-height: 112px;\n padding: 12px 14px;\n resize: vertical;\n width: 100%;\n}\n\n.oe-diagram-error {\n color: #dc2626;\n white-space: pre-wrap;\n}\n\n.oe-prosemirror hr,\n.oe-divider,\n.oe-viewer hr {\n border: 0;\n cursor: pointer;\n height: 1px;\n margin: 18px 0;\n padding: 10px 0;\n position: relative;\n}\n\n.oe-prosemirror hr::after,\n.oe-divider::after,\n.oe-viewer hr::after {\n background: var(--oe-border, #e5e5e5);\n content: \"\";\n display: block;\n height: 1px;\n left: 0;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 10px;\n}\n\n.oe-prosemirror hr.ProseMirror-selectednode,\n.oe-divider.ProseMirror-selectednode {\n outline: none;\n}\n\n.oe-prosemirror hr.ProseMirror-selectednode::after,\n.oe-divider.ProseMirror-selectednode::after {\n background: var(--oe-border-strong, #d4d4d4);\n box-shadow: 0 0 0 6px var(--oe-accent, #f5f5f5);\n}\n\n.oe-columns {\n display: grid;\n gap: 12px;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.oe-column,\n.oe-prosemirror [data-openeditor-column],\n.oe-viewer [data-openeditor-column] {\n border-radius: 8px;\n padding: 4px 6px;\n}\n\n.oe-prosemirror [data-openeditor-column] > :first-child,\n.oe-viewer [data-openeditor-column] > :first-child {\n margin-top: 0;\n}\n\n.oe-prosemirror [data-openeditor-column] > :last-child,\n.oe-viewer [data-openeditor-column] > :last-child {\n margin-bottom: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"],\n.oe-viewer ul[data-type=\"taskList\"] {\n list-style: none;\n padding-left: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] > .react-renderer.node-taskItem {\n display: contents;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li,\n.oe-viewer li[data-checked] {\n align-items: start;\n display: grid;\n gap: 8px;\n grid-template-columns: 20px minmax(0, 1fr);\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li > .oe-task-item-checkbox,\n.oe-viewer li[data-checked] > .oe-task-item-checkbox {\n align-items: center;\n display: inline-flex;\n flex: 0 0 auto;\n line-height: 1.6;\n margin-top: 3px;\n}\n\n.oe-task-checkbox {\n appearance: none;\n background: var(--oe-surface-muted, #f5f5f5);\n border: 0;\n border-radius: 4px;\n box-shadow: none;\n cursor: pointer;\n display: inline-grid;\n height: 20px;\n margin: 0;\n outline: none !important;\n place-items: center;\n width: 20px;\n}\n\n.oe-task-checkbox[data-readonly] {\n cursor: default;\n}\n\n.oe-task-checkbox-indicator {\n border-bottom: 2px solid var(--oe-button-text, #ffffff);\n border-right: 2px solid var(--oe-button-text, #ffffff);\n height: 9px;\n opacity: 0;\n transform: translateY(-1px) rotate(45deg);\n width: 5px;\n}\n\n.oe-task-checkbox[data-checked] {\n background: var(--oe-accent-strong, #171717);\n}\n\n.oe-task-checkbox[data-checked] .oe-task-checkbox-indicator {\n opacity: 1;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li > [data-node-view-content],\n.oe-viewer li[data-checked] > div {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li [data-node-view-content] p,\n.oe-viewer li[data-checked] > div > p {\n margin: 0;\n min-height: 1.6em;\n}\n\n.oe-prosemirror table,\n.oe-viewer table {\n border-collapse: collapse;\n margin: 18px 0;\n table-layout: fixed;\n width: 100%;\n}\n\n.oe-prosemirror th,\n.oe-prosemirror td,\n.oe-viewer th,\n.oe-viewer td {\n border: 1px solid var(--oe-border-strong, #d4d4d4);\n min-width: 96px;\n padding: 10px;\n vertical-align: top;\n}\n\n.oe-prosemirror td,\n.oe-viewer td {\n background: var(--oe-surface, #ffffff);\n}\n\n.oe-prosemirror th,\n.oe-viewer th {\n background: var(--oe-surface-muted, #f5f5f5);\n font-weight: 700;\n}\n\n.oe-button,\n.oe-input {\n border: 1px solid var(--oe-border-strong, #d4d4d4);\n border-radius: 6px;\n color: var(--oe-text, #171717);\n font: inherit;\n min-height: 36px;\n}\n\n.oe-button {\n align-items: center;\n background: var(--oe-button-bg, #171717);\n color: var(--oe-button-text, #ffffff);\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n padding: 0 12px;\n}\n\n.oe-button:hover,\n.oe-button:focus-visible,\n.oe-button[data-pressed] {\n background: var(--oe-accent, #f5f5f5);\n color: var(--oe-accent-text, #171717);\n}\n\n.oe-button-secondary {\n background: transparent;\n color: var(--oe-text, #171717);\n}\n\n.oe-input {\n background: var(--oe-surface, #ffffff);\n color: var(--oe-text, #171717);\n padding: 0 10px;\n width: 100%;\n}\n\n.oe-toggle-group {\n align-items: center;\n display: inline-flex;\n gap: 6px;\n}\n\n.oe-slash-menu {\n background: var(--oe-surface, #ffffff);\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 12px 36px var(--oe-shadow, rgb(0 0 0 / 10%));\n overflow: hidden;\n padding: 6px;\n width: min(260px, calc(100vw - 24px));\n z-index: 1000;\n}\n\n.oe-slash-menu,\n.oe-slash-menu *,\n.oe-slash-menu *::before,\n.oe-slash-menu *::after {\n outline: none !important;\n}\n\n.oe-slash-menu-scroll {\n display: grid;\n gap: 2px;\n max-height: 308px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-right: 2px;\n}\n\n.oe-slash-menu-scroll::-webkit-scrollbar {\n width: 8px;\n}\n\n.oe-slash-menu-scroll::-webkit-scrollbar-thumb {\n border-width: 2px;\n}\n\n.oe-slash-menu-item {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 17px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n display: flex;\n gap: 9px;\n justify-content: flex-start;\n min-height: 34px;\n outline: none;\n padding: 0 11px 0 9px;\n text-align: left;\n -webkit-tap-highlight-color: transparent;\n}\n\n.oe-slash-menu-item:focus,\n.oe-slash-menu-item:hover,\n.oe-slash-menu-item:focus-visible,\n.oe-slash-menu-item[data-highlighted] {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: none !important;\n outline: none !important;\n}\n\n.oe-slash-menu span {\n font-size: 13px;\n font-weight: 640;\n}\n\n.oe-slash-menu-icon {\n color: var(--oe-muted, #737373);\n flex: 0 0 auto;\n}\n\n.oe-slash-menu-item:focus .oe-slash-menu-icon,\n.oe-slash-menu-item:hover .oe-slash-menu-icon,\n.oe-slash-menu-item:focus-visible .oe-slash-menu-icon,\n.oe-slash-menu-item[data-highlighted] .oe-slash-menu-icon {\n color: var(--oe-text, #171717);\n}\n\n.oe-bubble-menu {\n align-items: center;\n background: var(--oe-surface, #ffffff);\n border-radius: 999px;\n box-shadow: 0 10px 28px var(--oe-shadow, rgb(0 0 0 / 14%));\n display: flex;\n gap: 2px;\n padding: 3px;\n z-index: 1000;\n}\n\n.oe-selection-toolbar {\n align-items: center;\n display: flex;\n gap: 2px;\n}\n\n.oe-toolbar-button {\n background: transparent;\n border: 0;\n border-radius: 999px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n font-size: 12px;\n font-weight: 700;\n min-height: 28px;\n min-width: 28px;\n padding: 0 9px;\n}\n\n.oe-toolbar-icon {\n display: block;\n flex: 0 0 auto;\n}\n\n.oe-toolbar-chevron {\n color: var(--oe-muted, #737373);\n display: block;\n flex: 0 0 auto;\n margin-left: -2px;\n}\n\n.oe-block-transform-trigger {\n align-items: center;\n display: inline-flex;\n gap: 5px;\n justify-content: center;\n padding: 0 9px;\n}\n\n.oe-block-transform-trigger-label {\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n white-space: nowrap;\n}\n\n.oe-toolbar-button:hover,\n.oe-toolbar-button:focus-visible,\n.oe-toolbar-button[data-active] {\n background: var(--oe-surface-muted, #f5f5f5);\n color: var(--oe-accent-strong, #171717);\n outline: none;\n}\n\n.oe-toolbar-button:hover .oe-toolbar-chevron,\n.oe-toolbar-button:focus-visible .oe-toolbar-chevron,\n.oe-toolbar-button[data-active] .oe-toolbar-chevron {\n color: var(--oe-accent-strong, #171717);\n}\n\n.oe-block-transform-menu {\n background: var(--oe-surface, #ffffff);\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 12px 36px var(--oe-shadow, rgb(0 0 0 / 10%));\n display: grid;\n gap: 2px;\n min-width: 174px;\n padding: 6px;\n z-index: 1002;\n}\n\n.oe-block-transform-menu,\n.oe-block-transform-menu *,\n.oe-block-transform-menu *::before,\n.oe-block-transform-menu *::after {\n outline: none !important;\n}\n\n.oe-block-transform-item {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 17px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n display: flex;\n gap: 9px;\n min-height: 34px;\n padding: 0 11px 0 9px;\n text-align: left;\n -webkit-tap-highlight-color: transparent;\n}\n\n.oe-block-transform-item span {\n font-size: 13px;\n font-weight: 640;\n}\n\n.oe-block-transform-icon {\n color: var(--oe-muted, #737373);\n flex: 0 0 auto;\n}\n\n.oe-block-transform-item:hover,\n.oe-block-transform-item:focus,\n.oe-block-transform-item:focus-visible,\n.oe-block-transform-item[data-highlighted],\n.oe-block-transform-item[data-active] {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: none !important;\n outline: none !important;\n}\n\n.oe-block-transform-item:hover .oe-block-transform-icon,\n.oe-block-transform-item:focus .oe-block-transform-icon,\n.oe-block-transform-item:focus-visible .oe-block-transform-icon,\n.oe-block-transform-item[data-highlighted] .oe-block-transform-icon,\n.oe-block-transform-item[data-active] .oe-block-transform-icon {\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-backdrop {\n background: rgb(0 0 0 / 24%);\n inset: 0;\n position: fixed;\n z-index: 1000;\n}\n\n.oe-dialog {\n background: var(--oe-surface, #ffffff);\n border: 0;\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 18px 48px var(--oe-shadow, rgb(0 0 0 / 14%));\n left: 50%;\n max-width: min(420px, calc(100vw - 32px));\n padding: 8px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n z-index: 1001;\n}\n\n.oe-dialog-close {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 999px;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n display: flex;\n height: 34px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 8px;\n top: 8px;\n transition-duration: 140ms;\n transition-property: color, transform;\n transition-timing-function: cubic-bezier(0.2, 0, 0, 1);\n width: 34px;\n}\n\n.oe-dialog-close:hover,\n.oe-dialog-close:focus-visible {\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-dialog-close:active {\n transform: scale(0.96);\n}\n\n.oe-link-dialog-form {\n display: grid;\n gap: 8px;\n}\n\n.oe-dialog-title {\n color: var(--oe-text, #171717);\n font-size: 13px;\n font-weight: 640;\n margin: 0;\n padding: 6px 8px 2px;\n}\n\n.oe-dialog .oe-input {\n background: var(--oe-surface-muted, #f5f5f5);\n border: 0;\n border-radius: 17px;\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 8%));\n caret-color: var(--oe-text, #171717);\n color: var(--oe-text, #171717);\n font-size: 13px;\n min-height: 38px;\n outline: none;\n padding: 0 12px;\n}\n\n.oe-dialog .oe-input::placeholder {\n color: var(--oe-muted, #737373);\n}\n\n.oe-dialog .oe-input:hover,\n.oe-dialog .oe-input:focus,\n.oe-dialog .oe-input:focus-visible {\n box-shadow:\n inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 12%)),\n 0 0 0 3px var(--oe-surface-muted, #f5f5f5);\n outline: none;\n}\n\n.oe-dialog-actions {\n align-items: center;\n display: flex;\n gap: 4px;\n justify-content: flex-end;\n padding-top: 2px;\n}\n\n.oe-dialog-button {\n border: 0;\n border-radius: 17px;\n box-shadow: none;\n font-size: 13px;\n font-weight: 640;\n min-height: 34px;\n padding: 0 12px;\n transition-duration: 140ms;\n transition-property: background-color, color, transform;\n transition-timing-function: cubic-bezier(0.2, 0, 0, 1);\n}\n\n.oe-dialog-button:hover,\n.oe-dialog-button:focus-visible {\n background: var(--oe-surface-muted, #f5f5f5);\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-dialog-button:active {\n transform: scale(0.96);\n}\n\n.oe-dialog-button-primary {\n background: var(--oe-text, #171717);\n color: var(--oe-surface, #ffffff);\n}\n\n.oe-dialog-button-remove {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%));\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-button-remove:hover,\n.oe-dialog-button-remove:focus-visible {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 10%));\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-button-primary:hover,\n.oe-dialog-button-primary:focus-visible {\n background: var(--oe-text, #171717);\n color: var(--oe-surface, #ffffff);\n opacity: 0.88;\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,OAAK;AACL,YAAU;AACZ;AAEA,CAAC;AACC,cAAY,KAAK,MAAM,EAAE;AAC3B;AAEA,CAAC;AACD,CAAC;AACC,SAAO,IAAI,SAAS,EAAE;AACxB;AAEA,CAfC;AAgBD,CANC;AAOD,CANC;AAOD,CAAC;AACD,CAAC;AACC,mBAAiB,UAAU,GAAG,IAAI,EAAE,IAAI,UAAU,EAAE,SAAS,GAAG,EAAE,aAAa;AAC/E,mBAAiB;AACnB;AAEA,CAxBC,iBAwBiB;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B;AACtB,cAAY,IAAI,kBAAkB,EAAE;AACpC,cAAY,MAAM,EAAE,EAAE,EAAE,IAAI,IAAI,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;AACzD,SAAO,IAAI,SAAS,EAAE;AACxB;AAEA,CAlBC,wBAkBwB;AACzB,CAnBC,wBAmBwB;AACvB,cAAY,IAAI,SAAS,EAAE;AAC3B,SAAO,IAAI,YAAY,EAAE;AACzB,WAAS;AACX;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/styles.css"],"sourcesContent":[".oe-editor-surface {\n display: grid;\n gap: 12px;\n position: relative;\n}\n\n.oe-canvas {\n min-height: calc(100vh - 96px);\n}\n\n.oe-prosemirror,\n.oe-viewer {\n color: var(--oe-text, #171717);\n}\n\n.oe-editor-surface,\n.oe-prosemirror,\n.oe-viewer,\n.oe-slash-menu,\n.oe-dialog {\n scrollbar-color: color-mix(in srgb, var(--oe-muted, #737373) 72%, transparent) transparent;\n scrollbar-width: thin;\n}\n\n.oe-editor-surface::-webkit-scrollbar,\n.oe-editor-surface *::-webkit-scrollbar,\n.oe-prosemirror::-webkit-scrollbar,\n.oe-viewer::-webkit-scrollbar,\n.oe-slash-menu::-webkit-scrollbar,\n.oe-dialog::-webkit-scrollbar {\n height: 10px;\n width: 10px;\n}\n\n.oe-editor-surface::-webkit-scrollbar-track,\n.oe-editor-surface *::-webkit-scrollbar-track,\n.oe-prosemirror::-webkit-scrollbar-track,\n.oe-viewer::-webkit-scrollbar-track,\n.oe-slash-menu::-webkit-scrollbar-track,\n.oe-dialog::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.oe-editor-surface::-webkit-scrollbar-thumb,\n.oe-editor-surface *::-webkit-scrollbar-thumb,\n.oe-prosemirror::-webkit-scrollbar-thumb,\n.oe-viewer::-webkit-scrollbar-thumb,\n.oe-slash-menu::-webkit-scrollbar-thumb,\n.oe-dialog::-webkit-scrollbar-thumb {\n background-clip: content-box;\n background-color: color-mix(in srgb, var(--oe-muted, #737373) 58%, transparent);\n border: 3px solid transparent;\n border-radius: 999px;\n}\n\n.oe-editor-surface::-webkit-scrollbar-thumb:hover,\n.oe-editor-surface *::-webkit-scrollbar-thumb:hover,\n.oe-prosemirror::-webkit-scrollbar-thumb:hover,\n.oe-viewer::-webkit-scrollbar-thumb:hover,\n.oe-slash-menu::-webkit-scrollbar-thumb:hover,\n.oe-dialog::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, var(--oe-muted, #737373) 78%, transparent);\n}\n\n.ProseMirror.oe-prosemirror,\n.oe-prosemirror,\n.oe-viewer {\n overflow-wrap: anywhere;\n word-wrap: anywhere;\n}\n\n.oe-prosemirror {\n min-height: calc(100vh - 96px);\n outline: none;\n white-space: break-spaces;\n}\n\n.oe-prosemirror > *:first-child,\n.oe-viewer > *:first-child {\n margin-top: 0;\n}\n\n.oe-prosemirror > *:last-child,\n.oe-viewer > *:last-child {\n margin-bottom: 0;\n}\n\n.oe-prosemirror p.is-editor-empty:first-child::before {\n color: var(--oe-placeholder, #a3a3a3);\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n}\n\n.oe-prosemirror img,\n.oe-viewer img {\n border-radius: 8px;\n display: block;\n margin: 16px 0;\n max-width: 100%;\n}\n\n.oe-prosemirror blockquote,\n.oe-viewer blockquote {\n border-left: 3px solid var(--oe-structural-line, var(--oe-border, #e5e5e5));\n margin: 18px 0;\n padding-left: 16px;\n}\n\n.oe-prosemirror pre,\n.oe-viewer pre {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border-radius: 8px;\n color: var(--oe-code-text, #171717);\n overflow: auto;\n padding: 14px;\n white-space: pre-wrap;\n}\n\n.oe-prosemirror code,\n.oe-viewer code {\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace;\n}\n\n.oe-prosemirror a,\n.oe-viewer a {\n color: var(--oe-link, var(--oe-accent-strong, #171717));\n cursor: pointer;\n text-decoration-color: color-mix(in srgb, var(--oe-link, var(--oe-accent-strong, #171717)) 65%, transparent);\n text-decoration-line: underline;\n text-decoration-thickness: 1.5px;\n text-underline-offset: 0.18em;\n}\n\n.oe-prosemirror a:hover,\n.oe-viewer a:hover {\n color: var(--oe-link-hover, var(--oe-link, var(--oe-accent-strong, #171717)));\n text-decoration-color: currentColor;\n}\n\n.oe-prosemirror p,\n.oe-prosemirror ul,\n.oe-prosemirror ol,\n.oe-viewer p,\n.oe-viewer ul,\n.oe-viewer ol {\n color: var(--oe-text-soft, #262626);\n font-size: 16px;\n line-height: 1.6;\n}\n\n.oe-prosemirror h1,\n.oe-prosemirror h2,\n.oe-prosemirror h3,\n.oe-prosemirror h4,\n.oe-prosemirror h5,\n.oe-prosemirror h6,\n.oe-viewer h1,\n.oe-viewer h2,\n.oe-viewer h3,\n.oe-viewer h4,\n.oe-viewer h5,\n.oe-viewer h6 {\n color: var(--oe-heading, var(--oe-text, #171717));\n font-weight: 700;\n line-height: 1.2;\n margin: 24px 0 10px;\n}\n\n.oe-prosemirror h1,\n.oe-viewer h1 {\n font-size: 2em;\n}\n\n.oe-prosemirror h2,\n.oe-viewer h2 {\n font-size: 1.5em;\n}\n\n.oe-prosemirror h3,\n.oe-viewer h3 {\n font-size: 1.25em;\n}\n\n.oe-prosemirror h4,\n.oe-viewer h4 {\n font-size: 1.125em;\n}\n\n.oe-prosemirror h5,\n.oe-prosemirror h6,\n.oe-viewer h5,\n.oe-viewer h6 {\n font-size: 1em;\n}\n\n.oe-prosemirror ul:not([data-type=\"taskList\"]),\n.oe-viewer ul:not([data-type=\"taskList\"]) {\n list-style: disc;\n padding-left: 1.5em;\n}\n\n.oe-prosemirror ol,\n.oe-viewer ol {\n list-style: decimal;\n padding-left: 1.5em;\n}\n\n.oe-prosemirror li,\n.oe-viewer li {\n margin: 4px 0;\n}\n\n.oe-prosemirror ul[data-openeditor-toggle-list],\n.oe-viewer ul[data-openeditor-toggle-list] {\n list-style: none;\n margin: 18px 0;\n padding: 0;\n}\n\n.oe-toggle-list-item {\n display: grid;\n gap: 8px;\n grid-template-columns: 24px minmax(0, 1fr);\n}\n\n.oe-toggle-list-trigger {\n align-items: center;\n align-self: start;\n background: transparent;\n border: 0;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n display: inline-flex;\n height: 24px;\n justify-content: center;\n margin-top: 1px;\n padding: 0;\n width: 24px;\n}\n\n.oe-toggle-list-trigger:hover,\n.oe-toggle-list-trigger:focus-visible {\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-toggle-list-trigger:focus-visible .oe-toggle-list-chevron {\n filter: drop-shadow(0 0 2px var(--oe-text, #171717));\n}\n\n.oe-toggle-list-trigger:disabled {\n cursor: default;\n}\n\n.oe-toggle-list-chevron {\n border-bottom: 4px solid transparent;\n border-left: 6px solid currentColor;\n border-top: 4px solid transparent;\n display: block;\n height: 0;\n transform: rotate(0deg);\n transform-origin: 3px center;\n transition: transform 140ms ease;\n width: 0;\n}\n\n.oe-toggle-list-item[data-open=\"true\"] > .oe-toggle-list-trigger .oe-toggle-list-chevron {\n transform: rotate(90deg);\n}\n\n.oe-toggle-list-content > :first-child,\n.oe-toggle-list-content > [data-node-view-content-react] > :first-child {\n margin-top: 0;\n}\n\n.oe-toggle-list-content > :last-child,\n.oe-toggle-list-content > [data-node-view-content-react] > :last-child {\n margin-bottom: 0;\n}\n\n.oe-toggle-list-item[data-open=\"false\"] > .oe-toggle-list-content > :not(:first-child),\n.oe-toggle-list-item[data-open=\"false\"] > .oe-toggle-list-content > [data-node-view-content-react] > :not(:first-child) {\n display: none;\n}\n\n.oe-callout {\n align-items: start;\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 0;\n border-radius: 8px;\n box-sizing: border-box;\n display: grid;\n gap: 8px;\n grid-template-columns: 28px minmax(0, 1fr);\n margin: 1em 0;\n padding: 10px 14px;\n width: 100%;\n}\n\n.oe-callout-content > :first-child,\n.oe-callout-content > [data-node-view-content-react] > :first-child {\n margin-top: 0;\n}\n\n.oe-callout-content > :last-child,\n.oe-callout-content > [data-node-view-content-react] > :last-child {\n margin-bottom: 0;\n}\n\n.oe-callout-emoji {\n align-items: center;\n align-self: start;\n display: inline-flex;\n font-size: 20px;\n height: 26px;\n justify-content: center;\n line-height: 1;\n width: 28px;\n}\n\n.oe-callout .oe-callout-emoji-trigger {\n height: 26px;\n line-height: 1;\n width: 28px;\n}\n\n.oe-page {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 6px;\n color: var(--oe-text, #171717);\n display: flex;\n font: inherit;\n gap: 8px;\n margin: 4px 0;\n min-height: 34px;\n padding: 3px 6px;\n text-align: left;\n width: 100%;\n}\n\n.oe-page:hover,\n.oe-page:focus-within {\n background: var(--oe-surface-muted, #f5f5f5);\n}\n\n.oe-page[data-page-id]:not([data-page-id=\"\"]) {\n cursor: pointer;\n}\n\n.oe-page[data-page-id]:not([data-page-id=\"\"]):focus-visible {\n box-shadow: 0 0 0 2px var(--oe-surface, #ffffff), 0 0 0 4px var(--oe-structural-line, #d4d4d4);\n outline: none;\n}\n\n.oe-page-icon {\n flex: 0 0 auto;\n font-size: 18px;\n line-height: 1;\n text-align: center;\n width: 24px;\n}\n\n.oe-emoji-trigger {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 6px;\n color: inherit;\n cursor: pointer;\n display: inline-flex;\n font: inherit;\n font-size: 20px;\n height: 30px;\n justify-content: center;\n padding: 0;\n width: 30px;\n}\n\n.oe-emoji-trigger:hover,\n.oe-emoji-trigger:focus-visible,\n.oe-emoji-trigger[data-popup-open] {\n background: color-mix(in srgb, var(--oe-text, #171717) 8%, transparent);\n outline: none;\n}\n\n.oe-emoji-trigger:focus-visible {\n box-shadow: 0 0 0 2px var(--oe-surface, #ffffff), 0 0 0 4px var(--oe-structural-line, #d4d4d4);\n}\n\n.oe-emoji-trigger:disabled {\n cursor: default;\n}\n\n.oe-page-icon-trigger {\n font-size: 18px;\n height: 28px;\n width: 28px;\n}\n\n.oe-emoji-popover {\n background: var(--oe-surface, #ffffff);\n border-radius: 12px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 8%)),\n 0 16px 48px var(--oe-shadow, rgb(0 0 0 / 16%));\n color: var(--oe-text, #171717);\n overflow: hidden;\n transform-origin: var(--transform-origin);\n z-index: 1100;\n}\n\n.oe-emoji-picker {\n display: flex;\n height: min(360px, calc(100vh - 32px));\n isolation: isolate;\n width: min(320px, calc(100vw - 24px));\n flex-direction: column;\n}\n\n.oe-emoji-search {\n appearance: none;\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 0;\n border-radius: 8px;\n color: var(--oe-text, #171717);\n font: inherit;\n font-size: 14px;\n margin: 8px;\n min-height: 38px;\n outline: none;\n padding: 0 11px;\n}\n\n.oe-emoji-search:focus {\n box-shadow: inset 0 0 0 1px var(--oe-structural-line, var(--oe-border, #e5e5e5));\n}\n\n.oe-emoji-viewport {\n min-height: 0;\n outline: none;\n overflow: auto;\n position: relative;\n flex: 1;\n}\n\n.oe-emoji-state {\n align-items: center;\n color: var(--oe-muted, #737373);\n display: flex;\n font-size: 13px;\n inset: 0;\n justify-content: center;\n position: absolute;\n}\n\n.oe-emoji-list {\n padding-bottom: 6px;\n user-select: none;\n}\n\n.oe-emoji-category {\n background: var(--oe-surface, #ffffff);\n color: var(--oe-muted, #737373);\n font-size: 11px;\n font-weight: 650;\n padding: 8px 10px 4px;\n}\n\n.oe-emoji-row {\n display: flex;\n padding: 0 6px;\n scroll-margin-block: 4px;\n}\n\n.oe-emoji-option {\n align-items: center;\n aspect-ratio: 1;\n background: transparent;\n border: 0;\n border-radius: 7px;\n cursor: pointer;\n display: flex;\n flex: 1;\n font-size: 20px;\n justify-content: center;\n min-width: 0;\n padding: 0;\n}\n\n.oe-emoji-option[data-active] {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n}\n\n.oe-emoji-footer {\n align-items: center;\n border-top: 1px solid var(--oe-structural-line, var(--oe-border, #e5e5e5));\n color: var(--oe-muted, #737373);\n display: flex;\n font-size: 12px;\n gap: 7px;\n min-height: 42px;\n padding: 5px 8px;\n}\n\n.oe-emoji-footer > span:first-child {\n font-size: 18px;\n}\n\n.oe-emoji-footer [frimousse-skin-tone-selector] {\n background: transparent;\n border: 0;\n border-radius: 6px;\n cursor: pointer;\n font-size: 18px;\n margin-left: auto;\n min-height: 30px;\n min-width: 30px;\n}\n\n.oe-page-title {\n flex: 1 1 auto;\n font-weight: 500;\n min-width: 0;\n text-decoration: underline;\n text-decoration-color: color-mix(in srgb, currentColor 28%, transparent);\n text-underline-offset: 0.18em;\n}\n\n.oe-page-action {\n background: transparent;\n border: 0;\n border-radius: 5px;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n flex: 0 0 auto;\n font: inherit;\n font-size: 12px;\n padding: 5px 7px;\n}\n\n.oe-page-action:hover { background: var(--oe-accent, #e5e5e5); color: var(--oe-text, #171717); }\n.oe-page-action:disabled { cursor: progress; opacity: 0.6; }\n.oe-page-error { color: #dc2626; font-size: 12px; }\n.oe-page-viewer { cursor: pointer; text-decoration: none; }\n.oe-page-arrow { color: var(--oe-muted, #737373); }\n\n.oe-diagram {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 0;\n border-radius: 12px;\n margin: 18px 0;\n overflow: hidden;\n}\n\n.oe-diagram-preview {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n min-height: 120px;\n overflow: auto;\n padding: 18px;\n}\n\n.oe-diagram-preview svg {\n display: block;\n height: auto;\n margin: auto;\n max-width: 100%;\n}\n\n.oe-diagram-source,\n.oe-diagram-error {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 0;\n border-top: 1px solid var(--oe-structural-line, var(--oe-border, #e5e5e5));\n box-sizing: border-box;\n color: var(--oe-code-text, #171717);\n display: block;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace;\n font-size: 13px;\n line-height: 1.5;\n margin: 0;\n min-height: 112px;\n padding: 12px 14px;\n resize: vertical;\n width: 100%;\n}\n\n.oe-diagram-error {\n color: #dc2626;\n white-space: pre-wrap;\n}\n\n.oe-prosemirror hr,\n.oe-divider,\n.oe-viewer hr {\n border: 0;\n cursor: pointer;\n height: 1px;\n margin: 18px 0;\n padding: 10px 0;\n position: relative;\n}\n\n.oe-prosemirror hr::after,\n.oe-divider::after,\n.oe-viewer hr::after {\n background: var(--oe-structural-line, var(--oe-border, #e5e5e5));\n content: \"\";\n display: block;\n height: 1px;\n left: 0;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 10px;\n}\n\n.oe-prosemirror hr.ProseMirror-selectednode,\n.oe-divider.ProseMirror-selectednode {\n outline: none;\n}\n\n.oe-prosemirror hr.ProseMirror-selectednode::after,\n.oe-divider.ProseMirror-selectednode::after {\n background: var(--oe-structural-line, var(--oe-border, #e5e5e5));\n box-shadow: 0 0 0 6px var(--oe-accent, #f5f5f5);\n}\n\n.oe-columns {\n display: grid;\n gap: 12px;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.oe-column,\n.oe-prosemirror [data-openeditor-column],\n.oe-viewer [data-openeditor-column] {\n border-radius: 8px;\n padding: 4px 6px;\n}\n\n.oe-prosemirror [data-openeditor-column] > :first-child,\n.oe-viewer [data-openeditor-column] > :first-child {\n margin-top: 0;\n}\n\n.oe-prosemirror [data-openeditor-column] > :last-child,\n.oe-viewer [data-openeditor-column] > :last-child {\n margin-bottom: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"],\n.oe-viewer ul[data-type=\"taskList\"] {\n list-style: none;\n padding-left: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] > .react-renderer.node-taskItem {\n display: contents;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li,\n.oe-viewer li[data-checked] {\n align-items: start;\n display: grid;\n gap: 8px;\n grid-template-columns: 20px minmax(0, 1fr);\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li > .oe-task-item-checkbox,\n.oe-viewer li[data-checked] > .oe-task-item-checkbox {\n align-items: center;\n display: inline-flex;\n flex: 0 0 auto;\n line-height: 1.6;\n margin-top: 3px;\n}\n\n.oe-task-checkbox {\n appearance: none;\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 0;\n border-radius: 4px;\n box-shadow: none;\n cursor: pointer;\n display: inline-grid;\n height: 20px;\n margin: 0;\n outline: none !important;\n place-items: center;\n width: 20px;\n}\n\n.oe-task-checkbox[data-readonly] {\n cursor: default;\n}\n\n.oe-task-checkbox-indicator {\n border-bottom: 2px solid var(--oe-button-text, #ffffff);\n border-right: 2px solid var(--oe-button-text, #ffffff);\n height: 9px;\n opacity: 0;\n transform: translateY(-1px) rotate(45deg);\n width: 5px;\n}\n\n.oe-task-checkbox[data-checked] {\n background: var(--oe-accent-strong, #171717);\n}\n\n.oe-task-checkbox[data-checked] .oe-task-checkbox-indicator {\n opacity: 1;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li > [data-node-view-content],\n.oe-viewer li[data-checked] > div {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.oe-prosemirror ul[data-type=\"taskList\"] li [data-node-view-content] p,\n.oe-viewer li[data-checked] > div > p {\n margin: 0;\n min-height: 1.6em;\n}\n\n.oe-prosemirror table[data-openeditor-table],\n.oe-viewer table[data-openeditor-table] {\n border-collapse: collapse;\n margin: 18px 0;\n table-layout: fixed;\n width: 100%;\n}\n\n.oe-prosemirror table[data-openeditor-table] th,\n.oe-prosemirror table[data-openeditor-table] td,\n.oe-viewer table[data-openeditor-table] th,\n.oe-viewer table[data-openeditor-table] td {\n background: var(--oe-block-surface, var(--oe-surface-muted, #f5f5f5));\n border: 1px solid var(--oe-structural-line, var(--oe-border, #e5e5e5));\n min-width: 96px;\n padding: 10px;\n vertical-align: top;\n}\n\n.oe-prosemirror table[data-openeditor-table] th,\n.oe-viewer table[data-openeditor-table] th {\n font-weight: 700;\n}\n\n.oe-button,\n.oe-input {\n border: 1px solid var(--oe-border-strong, #d4d4d4);\n border-radius: 6px;\n color: var(--oe-text, #171717);\n font: inherit;\n min-height: 36px;\n}\n\n.oe-button {\n align-items: center;\n background: var(--oe-button-bg, #171717);\n color: var(--oe-button-text, #ffffff);\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n padding: 0 12px;\n}\n\n.oe-button:hover,\n.oe-button:focus-visible,\n.oe-button[data-pressed] {\n background: var(--oe-accent, #f5f5f5);\n color: var(--oe-accent-text, #171717);\n}\n\n.oe-button-secondary {\n background: transparent;\n color: var(--oe-text, #171717);\n}\n\n.oe-input {\n background: var(--oe-surface, #ffffff);\n color: var(--oe-text, #171717);\n padding: 0 10px;\n width: 100%;\n}\n\n.oe-toggle-group {\n align-items: center;\n display: inline-flex;\n gap: 6px;\n}\n\n.oe-cascade-menu {\n align-items: flex-start;\n display: flex;\n gap: 4px;\n outline: none;\n z-index: 1002;\n}\n\n.oe-cascade-panel {\n flex: 0 0 auto;\n}\n\n.oe-slash-menu {\n background: var(--oe-surface, #ffffff);\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 12px 36px var(--oe-shadow, rgb(0 0 0 / 10%));\n overflow: hidden;\n padding: 6px;\n width: min(260px, calc(100vw - 24px));\n z-index: 1000;\n}\n\n.oe-slash-menu,\n.oe-slash-menu *,\n.oe-slash-menu *::before,\n.oe-slash-menu *::after {\n outline: none !important;\n}\n\n.oe-slash-menu-scroll {\n display: grid;\n gap: 2px;\n max-height: 308px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-right: 2px;\n}\n\n.oe-slash-menu-scroll::-webkit-scrollbar {\n width: 8px;\n}\n\n.oe-slash-menu-scroll::-webkit-scrollbar-thumb {\n border-width: 2px;\n}\n\n.oe-slash-menu-item {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 17px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n display: flex;\n gap: 9px;\n justify-content: flex-start;\n min-height: 34px;\n outline: none;\n padding: 0 11px 0 9px;\n text-align: left;\n -webkit-tap-highlight-color: transparent;\n}\n\n.oe-slash-menu-item:focus,\n.oe-slash-menu-item:hover,\n.oe-slash-menu-item:focus-visible,\n.oe-slash-menu-item[data-highlighted] {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: none !important;\n outline: none !important;\n}\n\n.oe-slash-menu span {\n font-size: 13px;\n font-weight: 640;\n}\n\n.oe-slash-menu-icon {\n color: var(--oe-muted, #737373);\n flex: 0 0 auto;\n}\n\n.oe-submenu-chevron {\n color: var(--oe-muted, #737373);\n flex: 0 0 auto;\n margin-left: auto;\n}\n\n.oe-slash-submenu {\n display: grid;\n gap: 2px;\n width: 190px;\n}\n\n.oe-slash-menu-item:focus .oe-slash-menu-icon,\n.oe-slash-menu-item:hover .oe-slash-menu-icon,\n.oe-slash-menu-item:focus-visible .oe-slash-menu-icon,\n.oe-slash-menu-item[data-highlighted] .oe-slash-menu-icon {\n color: var(--oe-text, #171717);\n}\n\n.oe-bubble-menu {\n align-items: center;\n background: var(--oe-surface, #ffffff);\n border-radius: 999px;\n box-shadow: 0 10px 28px var(--oe-shadow, rgb(0 0 0 / 14%));\n display: flex;\n gap: 2px;\n padding: 3px;\n z-index: 1000;\n}\n\n.oe-selection-toolbar {\n align-items: center;\n display: flex;\n gap: 2px;\n}\n\n.oe-toolbar-button {\n background: transparent;\n border: 0;\n border-radius: 999px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n font-size: 12px;\n font-weight: 700;\n min-height: 28px;\n min-width: 28px;\n padding: 0 9px;\n}\n\n.oe-toolbar-icon {\n display: block;\n flex: 0 0 auto;\n}\n\n.oe-toolbar-chevron {\n color: var(--oe-muted, #737373);\n display: block;\n flex: 0 0 auto;\n margin-left: -2px;\n}\n\n.oe-block-transform-trigger {\n align-items: center;\n display: inline-flex;\n gap: 5px;\n justify-content: center;\n padding: 0 9px;\n}\n\n.oe-block-transform-trigger-label {\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n white-space: nowrap;\n}\n\n.oe-toolbar-button:hover,\n.oe-toolbar-button:focus-visible,\n.oe-toolbar-button[data-active] {\n background: var(--oe-surface-muted, #f5f5f5);\n color: var(--oe-accent-strong, #171717);\n outline: none;\n}\n\n.oe-toolbar-button:hover .oe-toolbar-chevron,\n.oe-toolbar-button:focus-visible .oe-toolbar-chevron,\n.oe-toolbar-button[data-active] .oe-toolbar-chevron {\n color: var(--oe-accent-strong, #171717);\n}\n\n.oe-block-transform-menu {\n background: var(--oe-surface, #ffffff);\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 12px 36px var(--oe-shadow, rgb(0 0 0 / 10%));\n display: grid;\n gap: 2px;\n min-width: 174px;\n padding: 6px;\n z-index: 1002;\n}\n\n.oe-block-transform-submenu {\n min-width: 160px;\n}\n\n.oe-block-transform-menu,\n.oe-block-transform-menu *,\n.oe-block-transform-menu *::before,\n.oe-block-transform-menu *::after {\n outline: none !important;\n}\n\n.oe-block-transform-item {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 17px;\n color: var(--oe-text, #171717);\n cursor: pointer;\n display: flex;\n gap: 9px;\n min-height: 34px;\n padding: 0 11px 0 9px;\n text-align: left;\n -webkit-tap-highlight-color: transparent;\n}\n\n.oe-block-transform-item span {\n font-size: 13px;\n font-weight: 640;\n}\n\n.oe-block-transform-icon {\n color: var(--oe-muted, #737373);\n flex: 0 0 auto;\n}\n\n.oe-block-transform-item:hover,\n.oe-block-transform-item:focus,\n.oe-block-transform-item:focus-visible,\n.oe-block-transform-item[data-highlighted],\n.oe-block-transform-item[data-active] {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: none !important;\n outline: none !important;\n}\n\n.oe-block-transform-item:hover .oe-block-transform-icon,\n.oe-block-transform-item:focus .oe-block-transform-icon,\n.oe-block-transform-item:focus-visible .oe-block-transform-icon,\n.oe-block-transform-item[data-highlighted] .oe-block-transform-icon,\n.oe-block-transform-item[data-active] .oe-block-transform-icon {\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-backdrop {\n background: rgb(0 0 0 / 24%);\n inset: 0;\n position: fixed;\n z-index: 1000;\n}\n\n.oe-dialog {\n background: var(--oe-surface, #ffffff);\n border: 0;\n border-radius: 23px;\n box-shadow:\n 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%)),\n 0 18px 48px var(--oe-shadow, rgb(0 0 0 / 14%));\n left: 50%;\n max-width: min(420px, calc(100vw - 32px));\n padding: 8px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n z-index: 1001;\n}\n\n.oe-dialog-close {\n align-items: center;\n background: transparent;\n border: 0;\n border-radius: 999px;\n color: var(--oe-muted, #737373);\n cursor: pointer;\n display: flex;\n height: 34px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 8px;\n top: 8px;\n transition-duration: 140ms;\n transition-property: color, transform;\n transition-timing-function: cubic-bezier(0.2, 0, 0, 1);\n width: 34px;\n}\n\n.oe-dialog-close:hover,\n.oe-dialog-close:focus-visible {\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-dialog-close:active {\n transform: scale(0.96);\n}\n\n.oe-link-dialog-form {\n display: grid;\n gap: 8px;\n}\n\n.oe-dialog-title {\n color: var(--oe-text, #171717);\n font-size: 13px;\n font-weight: 640;\n margin: 0;\n padding: 6px 8px 2px;\n}\n\n.oe-dialog .oe-input {\n background: var(--oe-surface-muted, #f5f5f5);\n border: 0;\n border-radius: 17px;\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 8%));\n caret-color: var(--oe-text, #171717);\n color: var(--oe-text, #171717);\n font-size: 13px;\n min-height: 38px;\n outline: none;\n padding: 0 12px;\n}\n\n.oe-dialog .oe-input::placeholder {\n color: var(--oe-muted, #737373);\n}\n\n.oe-dialog .oe-input:hover,\n.oe-dialog .oe-input:focus,\n.oe-dialog .oe-input:focus-visible {\n box-shadow:\n inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 12%)),\n 0 0 0 3px var(--oe-surface-muted, #f5f5f5);\n outline: none;\n}\n\n.oe-dialog-actions {\n align-items: center;\n display: flex;\n gap: 4px;\n justify-content: flex-end;\n padding-top: 2px;\n}\n\n.oe-dialog-button {\n border: 0;\n border-radius: 17px;\n box-shadow: none;\n font-size: 13px;\n font-weight: 640;\n min-height: 34px;\n padding: 0 12px;\n transition-duration: 140ms;\n transition-property: background-color, color, transform;\n transition-timing-function: cubic-bezier(0.2, 0, 0, 1);\n}\n\n.oe-dialog-button:hover,\n.oe-dialog-button:focus-visible {\n background: var(--oe-surface-muted, #f5f5f5);\n color: var(--oe-text, #171717);\n outline: none;\n}\n\n.oe-dialog-button:active {\n transform: scale(0.96);\n}\n\n.oe-dialog-button-primary {\n background: var(--oe-text, #171717);\n color: var(--oe-surface, #ffffff);\n}\n\n.oe-dialog-button-remove {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 6%));\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-button-remove:hover,\n.oe-dialog-button-remove:focus-visible {\n background: var(--oe-surface-muted, #f5f5f5);\n box-shadow: inset 0 0 0 1px var(--oe-shadow, rgb(0 0 0 / 10%));\n color: var(--oe-text, #171717);\n}\n\n.oe-dialog-button-primary:hover,\n.oe-dialog-button-primary:focus-visible {\n background: var(--oe-text, #171717);\n color: var(--oe-surface, #ffffff);\n opacity: 0.88;\n}\n\n.oe-attachment {\n align-items: center;\n background: var(--oe-surface, #fff);\n border: 1px solid var(--oe-border, #e5e5e5);\n border-radius: 12px;\n color: var(--oe-text, #171717);\n display: flex;\n gap: 12px;\n margin: 8px 0;\n min-height: 68px;\n padding: 10px 12px;\n text-align: left;\n text-decoration: none;\n transition: border-color 140ms, box-shadow 140ms, background 140ms;\n width: 100%;\n}\n\n.oe-attachment:hover,\n.oe-attachment:focus-within {\n border-color: var(--oe-border-strong, #d4d4d4);\n box-shadow: 0 4px 18px var(--oe-shadow, rgb(0 0 0 / 8%));\n outline: none;\n}\n\n.oe-attachment[data-state=\"error\"],\n.oe-attachment[data-state=\"missing\"] { border-color: #efb0b0; }\n\n.oe-attachment-icon {\n align-items: center;\n background: var(--oe-surface-muted, #f5f5f5);\n border-radius: 9px;\n display: flex;\n flex: 0 0 42px;\n height: 48px;\n justify-content: center;\n}\n\n.oe-attachment-icon span { color: var(--oe-muted, #737373); font-size: 9px; font-weight: 750; letter-spacing: .04em; }\n.oe-attachment-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }\n.oe-attachment-name { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 650; min-width: 0; outline: none; overflow: hidden; padding: 0; text-overflow: ellipsis; white-space: nowrap; }\n.oe-attachment-meta { color: var(--oe-muted, #737373); display: block; font-size: 12px; margin-top: 3px; }\n.oe-attachment-progress { background: var(--oe-surface-muted, #f5f5f5); border-radius: 2px; height: 4px; margin-top: 8px; overflow: hidden; }\n.oe-attachment-progress span { background: var(--oe-accent-strong, #171717); display: block; height: 100%; transition: width 90ms linear; }\n.oe-attachment-error { color: #b42318; font-size: 12px; margin-top: 4px; }\n.oe-attachment-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }\n.oe-attachment-actions button { background: transparent; border: 0; border-radius: 7px; color: var(--oe-muted, #737373); cursor: pointer; font: inherit; font-size: 12px; min-height: 34px; padding: 0 8px; }\n.oe-attachment-actions button:hover, .oe-attachment-actions button:focus-visible { background: var(--oe-surface-muted, #f5f5f5); color: var(--oe-text, #171717); outline: none; }\n.oe-attachment-viewer { cursor: pointer; }\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,OAAK;AACL,YAAU;AACZ;AAEA,CAAC;AACC,cAAY,KAAK,MAAM,EAAE;AAC3B;AAEA,CAAC;AACD,CAAC;AACC,SAAO,IAAI,SAAS,EAAE;AACxB;AAEA,CAfC;AAgBD,CANC;AAOD,CANC;AAOD,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,cAAY;AAAa,UAAQ;AAAG,iBAAe;AAAK,SAAO,IAAI,UAAU,EAAE;AAAU,UAAQ;AAAS,QAAM;AAAS,aAAW;AAAM,cAAY;AAAM,WAAS,EAAE;AAAK;AAC5M,CAFC,sBAEsB,MAAM;AAAQ,CAFpC,sBAE2D,MAAM;AAAiB,cAAY,IAAI,kBAAkB,EAAE;AAAU,SAAO,IAAI,SAAS,EAAE;AAAU,WAAS;AAAM;AAChL,CAAC;AAAuB,UAAQ;AAAS;","names":[]}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { OpenEditorEmojiPicker } from '@openeditor/emoji';
|
|
1
2
|
import { Button } from '@base-ui/react/button';
|
|
2
3
|
import { Dialog } from '@base-ui/react/dialog';
|
|
3
4
|
import { Input } from '@base-ui/react/input';
|
|
@@ -6,13 +7,21 @@ import { Popover } from '@base-ui/react/popover';
|
|
|
6
7
|
import { Toggle } from '@base-ui/react/toggle';
|
|
7
8
|
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
8
9
|
import { Toolbar } from '@base-ui/react/toolbar';
|
|
9
|
-
import {
|
|
10
|
+
import { Pilcrow, List, ListOrdered, ListTodo, Quote, Code, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Bold, Italic, Underline, Strikethrough, Link, ChevronRight, ChevronDown, X, ArrowDown, ArrowUp, Upload, FileText, GitBranch, MessageSquare, Table, Columns2, Image, Minus, Type } from 'lucide-react';
|
|
10
11
|
import { getDefaultSlashMenuItems, useOpenEditorController, OpenEditorContent } from '@openeditor/react';
|
|
11
12
|
export { OpenEditorContent, useOpenEditorController } from '@openeditor/react';
|
|
12
13
|
import { useState, useRef, useMemo, useEffect } from 'react';
|
|
13
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
15
|
|
|
15
16
|
// src/index.tsx
|
|
17
|
+
var headingDefinitions = [
|
|
18
|
+
{ level: 1, Icon: Heading1 },
|
|
19
|
+
{ level: 2, Icon: Heading2 },
|
|
20
|
+
{ level: 3, Icon: Heading3 },
|
|
21
|
+
{ level: 4, Icon: Heading4 },
|
|
22
|
+
{ level: 5, Icon: Heading5 },
|
|
23
|
+
{ level: 6, Icon: Heading6 }
|
|
24
|
+
];
|
|
16
25
|
var blockTransformActions = [
|
|
17
26
|
{
|
|
18
27
|
key: "paragraph",
|
|
@@ -21,13 +30,13 @@ var blockTransformActions = [
|
|
|
21
30
|
isActive: ({ editor }) => editor?.isActive("paragraph") ?? false,
|
|
22
31
|
run: (controller) => controller.setParagraph()
|
|
23
32
|
},
|
|
24
|
-
{
|
|
25
|
-
key:
|
|
26
|
-
label:
|
|
27
|
-
Icon
|
|
28
|
-
isActive: ({ editor }) => editor?.isActive("heading") ?? false,
|
|
29
|
-
run: (controller) => controller.toggleHeading(
|
|
30
|
-
},
|
|
33
|
+
...headingDefinitions.map(({ level, Icon }) => ({
|
|
34
|
+
key: `heading${level}`,
|
|
35
|
+
label: `Heading ${level}`,
|
|
36
|
+
Icon,
|
|
37
|
+
isActive: ({ editor }) => editor?.isActive("heading", { level }) ?? false,
|
|
38
|
+
run: (controller) => controller.toggleHeading(level)
|
|
39
|
+
})),
|
|
31
40
|
{
|
|
32
41
|
key: "bulletList",
|
|
33
42
|
label: "Bullet List",
|
|
@@ -70,12 +79,18 @@ var getActiveBlockTransform = (controller) => [
|
|
|
70
79
|
"orderedList",
|
|
71
80
|
"blockquote",
|
|
72
81
|
"codeBlock",
|
|
73
|
-
"
|
|
82
|
+
"heading1",
|
|
83
|
+
"heading2",
|
|
84
|
+
"heading3",
|
|
85
|
+
"heading4",
|
|
86
|
+
"heading5",
|
|
87
|
+
"heading6",
|
|
74
88
|
"paragraph"
|
|
75
89
|
].map((key) => blockTransformActions.find((action) => action.key === key)).find((action) => action?.isActive(controller)) ?? blockTransformActions[0];
|
|
90
|
+
var isHeadingKey = (key) => /^heading[1-6]$/.test(key);
|
|
76
91
|
var slashMenuIcons = {
|
|
77
92
|
paragraph: Pilcrow,
|
|
78
|
-
heading
|
|
93
|
+
...Object.fromEntries(headingDefinitions.map(({ level, Icon }) => [`heading${level}`, Icon])),
|
|
79
94
|
bulletList: List,
|
|
80
95
|
orderedList: ListOrdered,
|
|
81
96
|
taskList: ListTodo,
|
|
@@ -85,6 +100,11 @@ var slashMenuIcons = {
|
|
|
85
100
|
image: Image,
|
|
86
101
|
columns: Columns2,
|
|
87
102
|
table: Table,
|
|
103
|
+
toggleList: ChevronRight,
|
|
104
|
+
callout: MessageSquare,
|
|
105
|
+
diagram: GitBranch,
|
|
106
|
+
page: FileText,
|
|
107
|
+
attachment: Upload,
|
|
88
108
|
moveBlockUp: ArrowUp,
|
|
89
109
|
moveBlockDown: ArrowDown
|
|
90
110
|
};
|
|
@@ -198,53 +218,119 @@ var SelectionBlockTransformMenu = ({
|
|
|
198
218
|
container
|
|
199
219
|
}) => {
|
|
200
220
|
const activeAction = getActiveBlockTransform(controller);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
221
|
+
const [menuOpen, setMenuOpen] = useState(false);
|
|
222
|
+
const [headingPanelOpen, setHeadingPanelOpen] = useState(false);
|
|
223
|
+
const headingActions = blockTransformActions.filter((action) => isHeadingKey(action.key));
|
|
224
|
+
return /* @__PURE__ */ jsxs(
|
|
225
|
+
Menu.Root,
|
|
226
|
+
{
|
|
227
|
+
modal: false,
|
|
228
|
+
open: menuOpen,
|
|
229
|
+
onOpenChange: (open) => {
|
|
230
|
+
setMenuOpen(open);
|
|
231
|
+
if (!open) setHeadingPanelOpen(false);
|
|
232
|
+
},
|
|
233
|
+
children: [
|
|
234
|
+
/* @__PURE__ */ jsxs(
|
|
235
|
+
Menu.Trigger,
|
|
236
|
+
{
|
|
237
|
+
type: "button",
|
|
238
|
+
"aria-label": `${activeAction.label}. Turn into`,
|
|
239
|
+
className: "oe-toolbar-button oe-block-transform-trigger",
|
|
240
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ jsx(activeAction.Icon, { "aria-hidden": "true", className: "oe-toolbar-icon", size: 15, strokeWidth: 2 }),
|
|
243
|
+
/* @__PURE__ */ jsx("span", { className: "oe-block-transform-trigger-label", children: activeAction.label }),
|
|
244
|
+
/* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "oe-toolbar-chevron", size: 12, strokeWidth: 2 })
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ jsx(Menu.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
249
|
+
Menu.Positioner,
|
|
250
|
+
{
|
|
251
|
+
positionMethod: "fixed",
|
|
252
|
+
side: "bottom",
|
|
253
|
+
align: "start",
|
|
254
|
+
sideOffset: 8,
|
|
255
|
+
collisionPadding: 12,
|
|
256
|
+
collisionAvoidance: { side: "flip", align: "shift", fallbackAxisSide: "none" },
|
|
257
|
+
children: /* @__PURE__ */ jsxs(
|
|
258
|
+
Menu.Popup,
|
|
259
|
+
{
|
|
260
|
+
className: "oe-cascade-menu",
|
|
261
|
+
onMouseLeave: () => setHeadingPanelOpen(false),
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ jsx("div", { className: "oe-block-transform-menu oe-cascade-panel", children: blockTransformActions.map((action) => {
|
|
264
|
+
if (isHeadingKey(action.key)) {
|
|
265
|
+
if (action.key !== "heading1") return null;
|
|
266
|
+
return /* @__PURE__ */ jsxs(
|
|
267
|
+
Menu.Item,
|
|
268
|
+
{
|
|
269
|
+
closeOnClick: false,
|
|
270
|
+
className: "oe-block-transform-item",
|
|
271
|
+
"data-active": isHeadingKey(activeAction.key) ? "" : void 0,
|
|
272
|
+
label: "Heading",
|
|
273
|
+
onClick: () => setHeadingPanelOpen(true),
|
|
274
|
+
onFocus: () => setHeadingPanelOpen(true),
|
|
275
|
+
onMouseEnter: () => setHeadingPanelOpen(true),
|
|
276
|
+
children: [
|
|
277
|
+
/* @__PURE__ */ jsx(Heading1, { "aria-hidden": "true", className: "oe-block-transform-icon", size: 15, strokeWidth: 2 }),
|
|
278
|
+
/* @__PURE__ */ jsx("span", { children: "Heading" }),
|
|
279
|
+
/* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true", className: "oe-submenu-chevron", size: 13, strokeWidth: 2 })
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"heading"
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
const active = action.key === activeAction.key;
|
|
286
|
+
return /* @__PURE__ */ jsxs(
|
|
287
|
+
Menu.Item,
|
|
288
|
+
{
|
|
289
|
+
className: "oe-block-transform-item",
|
|
290
|
+
"data-active": active ? "" : void 0,
|
|
291
|
+
label: action.label,
|
|
292
|
+
onMouseEnter: () => setHeadingPanelOpen(false),
|
|
293
|
+
onClick: () => {
|
|
294
|
+
if (!active) action.run(controller);
|
|
295
|
+
},
|
|
296
|
+
children: [
|
|
297
|
+
/* @__PURE__ */ jsx(action.Icon, { "aria-hidden": "true", className: "oe-block-transform-icon", size: 15, strokeWidth: 2 }),
|
|
298
|
+
/* @__PURE__ */ jsx("span", { children: action.label })
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
action.key
|
|
302
|
+
);
|
|
303
|
+
}) }),
|
|
304
|
+
headingPanelOpen ? /* @__PURE__ */ jsx("div", { className: "oe-block-transform-menu oe-block-transform-submenu oe-cascade-panel", children: headingActions.map((headingAction) => {
|
|
305
|
+
const headingActive = headingAction.key === activeAction.key;
|
|
306
|
+
return /* @__PURE__ */ jsxs(
|
|
307
|
+
"button",
|
|
308
|
+
{
|
|
309
|
+
type: "button",
|
|
310
|
+
className: "oe-block-transform-item",
|
|
311
|
+
"data-active": headingActive ? "" : void 0,
|
|
312
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
313
|
+
onClick: () => {
|
|
314
|
+
if (!headingActive) headingAction.run(controller);
|
|
315
|
+
setMenuOpen(false);
|
|
316
|
+
},
|
|
317
|
+
role: "menuitem",
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ jsx(headingAction.Icon, { "aria-hidden": "true", className: "oe-block-transform-icon", size: 15, strokeWidth: 2 }),
|
|
320
|
+
/* @__PURE__ */ jsx("span", { children: headingAction.label })
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
headingAction.key
|
|
324
|
+
);
|
|
325
|
+
}) }) : null
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
)
|
|
329
|
+
}
|
|
330
|
+
) })
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
);
|
|
248
334
|
};
|
|
249
335
|
var OpenEditorSelectionBubble = ({
|
|
250
336
|
controller,
|
|
@@ -357,6 +443,7 @@ var OpenEditorSlashMenu = ({
|
|
|
357
443
|
}) => {
|
|
358
444
|
const slashMenuItems = items ?? getDefaultSlashMenuItems(controller);
|
|
359
445
|
const slashState = controller.slashState;
|
|
446
|
+
const [headingPanelOpen, setHeadingPanelOpen] = useState(false);
|
|
360
447
|
const anchor = useMemo(
|
|
361
448
|
() => slashState ? toVirtualAnchor(
|
|
362
449
|
slashState,
|
|
@@ -364,11 +451,17 @@ var OpenEditorSlashMenu = ({
|
|
|
364
451
|
) : null,
|
|
365
452
|
[controller.editor?.view.dom, slashState]
|
|
366
453
|
);
|
|
454
|
+
useEffect(() => setHeadingPanelOpen(false), [slashState?.query]);
|
|
367
455
|
if (!slashState) {
|
|
368
456
|
return null;
|
|
369
457
|
}
|
|
370
|
-
|
|
371
|
-
|
|
458
|
+
const matchingItems = slashMenuItems.filter((item) => {
|
|
459
|
+
const haystack = `${item.label} ${item.group} ${item.keywords?.join(" ") ?? ""}`.toLowerCase();
|
|
460
|
+
return haystack.includes(slashState.query.toLowerCase());
|
|
461
|
+
});
|
|
462
|
+
const firstHeadingKey = matchingItems.find((item) => isHeadingKey(item.key))?.key;
|
|
463
|
+
return /* @__PURE__ */ jsx(Popover.Root, { open: true, modal: false, children: /* @__PURE__ */ jsx(Popover.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
464
|
+
Popover.Positioner,
|
|
372
465
|
{
|
|
373
466
|
anchor,
|
|
374
467
|
positionMethod: "fixed",
|
|
@@ -377,27 +470,77 @@ var OpenEditorSlashMenu = ({
|
|
|
377
470
|
sideOffset: 8,
|
|
378
471
|
collisionPadding: 12,
|
|
379
472
|
collisionAvoidance: { side: "flip", align: "shift", fallbackAxisSide: "none" },
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
className: "oe-slash-menu-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
473
|
+
children: /* @__PURE__ */ jsxs(
|
|
474
|
+
Popover.Popup,
|
|
475
|
+
{
|
|
476
|
+
className: "oe-cascade-menu",
|
|
477
|
+
finalFocus: false,
|
|
478
|
+
initialFocus: false,
|
|
479
|
+
onMouseLeave: () => setHeadingPanelOpen(false),
|
|
480
|
+
children: [
|
|
481
|
+
/* @__PURE__ */ jsx("div", { className: `${className} oe-cascade-panel`, children: /* @__PURE__ */ jsx("div", { className: "oe-slash-menu-scroll", children: matchingItems.map((item) => {
|
|
482
|
+
if (isHeadingKey(item.key)) {
|
|
483
|
+
if (item.key !== firstHeadingKey) return null;
|
|
484
|
+
return /* @__PURE__ */ jsxs(
|
|
485
|
+
"button",
|
|
486
|
+
{
|
|
487
|
+
type: "button",
|
|
488
|
+
className: "oe-slash-menu-item",
|
|
489
|
+
onClick: () => setHeadingPanelOpen(true),
|
|
490
|
+
onFocus: () => setHeadingPanelOpen(true),
|
|
491
|
+
onMouseEnter: () => setHeadingPanelOpen(true),
|
|
492
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
493
|
+
children: [
|
|
494
|
+
/* @__PURE__ */ jsx(Heading1, { "aria-hidden": "true", className: "oe-slash-menu-icon", size: 15, strokeWidth: 2 }),
|
|
495
|
+
/* @__PURE__ */ jsx("span", { children: "Heading" }),
|
|
496
|
+
/* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true", className: "oe-submenu-chevron", size: 13, strokeWidth: 2 })
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
"heading"
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
const Icon = getSlashMenuIcon(item);
|
|
503
|
+
return /* @__PURE__ */ jsxs(
|
|
504
|
+
"button",
|
|
505
|
+
{
|
|
506
|
+
type: "button",
|
|
507
|
+
className: "oe-slash-menu-item",
|
|
508
|
+
onMouseEnter: () => setHeadingPanelOpen(false),
|
|
509
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
510
|
+
onClick: () => {
|
|
511
|
+
item.execute({ controller, range: { from: slashState.from, to: slashState.to } });
|
|
512
|
+
},
|
|
513
|
+
children: [
|
|
514
|
+
/* @__PURE__ */ jsx(Icon, { "aria-hidden": "true", className: "oe-slash-menu-icon", size: 15, strokeWidth: 2 }),
|
|
515
|
+
/* @__PURE__ */ jsx("span", { children: item.label })
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
item.key
|
|
519
|
+
);
|
|
520
|
+
}) }) }),
|
|
521
|
+
headingPanelOpen ? /* @__PURE__ */ jsx("div", { className: "oe-slash-menu oe-slash-submenu oe-cascade-panel", children: matchingItems.filter((item) => isHeadingKey(item.key)).map((headingItem) => {
|
|
522
|
+
const HeadingIcon = getSlashMenuIcon(headingItem);
|
|
523
|
+
return /* @__PURE__ */ jsxs(
|
|
524
|
+
"button",
|
|
525
|
+
{
|
|
526
|
+
type: "button",
|
|
527
|
+
className: "oe-slash-menu-item",
|
|
528
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
529
|
+
onClick: () => {
|
|
530
|
+
headingItem.execute({ controller, range: { from: slashState.from, to: slashState.to } });
|
|
531
|
+
},
|
|
532
|
+
role: "menuitem",
|
|
533
|
+
children: [
|
|
534
|
+
/* @__PURE__ */ jsx(HeadingIcon, { "aria-hidden": "true", className: "oe-slash-menu-icon", size: 15, strokeWidth: 2 }),
|
|
535
|
+
/* @__PURE__ */ jsx("span", { children: headingItem.label })
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
headingItem.key
|
|
539
|
+
);
|
|
540
|
+
}) }) : null
|
|
541
|
+
]
|
|
542
|
+
}
|
|
543
|
+
)
|
|
401
544
|
}
|
|
402
545
|
) }) });
|
|
403
546
|
};
|