@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.1
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/README.md +107 -2
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +72 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@tiptap/core/LICENSE.md +21 -0
- package/node_modules/@tiptap/core/README.md +18 -0
- package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
- package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
- package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
- package/node_modules/@tiptap/core/dist/index.js +8288 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
- package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/package.json +74 -0
- package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
- package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bold/README.md +18 -0
- package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
- package/node_modules/@tiptap/extension-bold/package.json +50 -0
- package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
- package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
- package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
- package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code/README.md +18 -0
- package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
- package/node_modules/@tiptap/extension-code/package.json +50 -0
- package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code-block/README.md +18 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
- package/node_modules/@tiptap/extension-code-block/package.json +52 -0
- package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-document/README.md +18 -0
- package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
- package/node_modules/@tiptap/extension-document/package.json +50 -0
- package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
- package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
- package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
- package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
- package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-heading/README.md +18 -0
- package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
- package/node_modules/@tiptap/extension-heading/package.json +50 -0
- package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-highlight/README.md +18 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
- package/node_modules/@tiptap/extension-highlight/package.json +50 -0
- package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
- package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-image/README.md +18 -0
- package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
- package/node_modules/@tiptap/extension-image/package.json +50 -0
- package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-italic/README.md +18 -0
- package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
- package/node_modules/@tiptap/extension-italic/package.json +50 -0
- package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-link/README.md +18 -0
- package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
- package/node_modules/@tiptap/extension-link/package.json +56 -0
- package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list/README.md +18 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
- package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
- package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
- package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
- package/node_modules/@tiptap/extension-list/package.json +108 -0
- package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-item/README.md +18 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-item/package.json +50 -0
- package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
- package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
- package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
- package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-strike/README.md +18 -0
- package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
- package/node_modules/@tiptap/extension-strike/package.json +50 -0
- package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-subscript/README.md +18 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-subscript/package.json +52 -0
- package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-superscript/README.md +18 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-superscript/package.json +52 -0
- package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-table/README.md +18 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
- package/node_modules/@tiptap/extension-table/package.json +92 -0
- package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text/README.md +18 -0
- package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
- package/node_modules/@tiptap/extension-text/package.json +50 -0
- package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-align/README.md +18 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-text-align/package.json +50 -0
- package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-style/README.md +18 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/package.json +106 -0
- package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-underline/README.md +18 -0
- package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
- package/node_modules/@tiptap/extension-underline/package.json +50 -0
- package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-youtube/README.md +18 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
- package/node_modules/@tiptap/extension-youtube/package.json +50 -0
- package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
- package/node_modules/@tiptap/extensions/README.md +18 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
- package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
- package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.js +699 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
- package/node_modules/@tiptap/extensions/package.json +116 -0
- package/node_modules/@tiptap/pm/LICENSE +21 -0
- package/node_modules/@tiptap/pm/README.md +22 -0
- package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
- package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
- package/node_modules/@tiptap/pm/commands/index.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
- package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/history/index.ts +1 -0
- package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
- package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
- package/node_modules/@tiptap/pm/model/index.ts +1 -0
- package/node_modules/@tiptap/pm/package.json +166 -0
- package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
- package/node_modules/@tiptap/pm/state/index.ts +1 -0
- package/node_modules/@tiptap/pm/tables/index.ts +1 -0
- package/node_modules/@tiptap/pm/transform/index.ts +1 -0
- package/node_modules/@tiptap/pm/view/index.ts +1 -0
- package/node_modules/@tiptap/react/LICENSE.md +21 -0
- package/node_modules/@tiptap/react/README.md +18 -0
- package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
- package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
- package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
- package/node_modules/@tiptap/react/dist/index.js +1337 -0
- package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
- package/node_modules/@tiptap/react/package.json +80 -0
- package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
- package/node_modules/@tiptap/starter-kit/README.md +18 -0
- package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
- package/node_modules/@tiptap/starter-kit/package.json +70 -0
- package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
- package/node_modules/@tiptap/suggestion/README.md +18 -0
- package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
- package/node_modules/@tiptap/suggestion/package.json +54 -0
- package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
- package/node_modules/@types/use-sync-external-store/README.md +15 -0
- package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
- package/node_modules/@types/use-sync-external-store/package.json +30 -0
- package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
- package/node_modules/fast-equals/LICENSE +21 -0
- package/node_modules/fast-equals/README.md +479 -0
- package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
- package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
- package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
- package/node_modules/fast-equals/dist/es/index.mjs +785 -0
- package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
- package/node_modules/fast-equals/dist/umd/index.js +802 -0
- package/node_modules/fast-equals/index.d.ts +211 -0
- package/node_modules/fast-equals/package.json +120 -0
- package/node_modules/linkifyjs/LICENSE +19 -0
- package/node_modules/linkifyjs/README.md +47 -0
- package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
- package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
- package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
- package/node_modules/linkifyjs/dist/linkify.js +1859 -0
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
- package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
- package/node_modules/linkifyjs/package.json +38 -0
- package/node_modules/orderedmap/LICENSE +19 -0
- package/node_modules/orderedmap/README.md +69 -0
- package/node_modules/orderedmap/dist/index.cjs +139 -0
- package/node_modules/orderedmap/dist/index.d.cts +33 -0
- package/node_modules/orderedmap/dist/index.d.ts +33 -0
- package/node_modules/orderedmap/dist/index.js +137 -0
- package/node_modules/orderedmap/package.json +39 -0
- package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
- package/node_modules/prosemirror-changeset/LICENSE +19 -0
- package/node_modules/prosemirror-changeset/README.md +175 -0
- package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
- package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.js +722 -0
- package/node_modules/prosemirror-changeset/package.json +40 -0
- package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
- package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
- package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
- package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
- package/node_modules/prosemirror-commands/.tern-project +8 -0
- package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
- package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-commands/LICENSE +19 -0
- package/node_modules/prosemirror-commands/README.md +28 -0
- package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
- package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
- package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
- package/node_modules/prosemirror-commands/dist/index.js +852 -0
- package/node_modules/prosemirror-commands/package.json +39 -0
- package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
- package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
- package/node_modules/prosemirror-dropcursor/README.md +50 -0
- package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
- package/node_modules/prosemirror-dropcursor/package.json +38 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
- package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
- package/node_modules/prosemirror-gapcursor/README.md +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
- package/node_modules/prosemirror-gapcursor/package.json +43 -0
- package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
- package/node_modules/prosemirror-history/.tern-project +8 -0
- package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
- package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-history/LICENSE +19 -0
- package/node_modules/prosemirror-history/README.md +27 -0
- package/node_modules/prosemirror-history/dist/index.cjs +383 -0
- package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
- package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
- package/node_modules/prosemirror-history/dist/index.js +454 -0
- package/node_modules/prosemirror-history/package.json +40 -0
- package/node_modules/prosemirror-inputrules/.tern-project +8 -0
- package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
- package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-inputrules/LICENSE +19 -0
- package/node_modules/prosemirror-inputrules/README.md +29 -0
- package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
- package/node_modules/prosemirror-inputrules/package.json +36 -0
- package/node_modules/prosemirror-keymap/.tern-project +8 -0
- package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
- package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-keymap/LICENSE +19 -0
- package/node_modules/prosemirror-keymap/README.md +27 -0
- package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
- package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.js +128 -0
- package/node_modules/prosemirror-keymap/package.json +38 -0
- package/node_modules/prosemirror-model/.tern-project +8 -0
- package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-model/LICENSE +19 -0
- package/node_modules/prosemirror-model/README.md +29 -0
- package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
- package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
- package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
- package/node_modules/prosemirror-model/dist/index.js +3463 -0
- package/node_modules/prosemirror-model/package.json +38 -0
- package/node_modules/prosemirror-schema-list/.tern-project +8 -0
- package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
- package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
- package/node_modules/prosemirror-schema-list/LICENSE +19 -0
- package/node_modules/prosemirror-schema-list/README.md +28 -0
- package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
- package/node_modules/prosemirror-schema-list/package.json +40 -0
- package/node_modules/prosemirror-state/.tern-project +8 -0
- package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
- package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-state/LICENSE +19 -0
- package/node_modules/prosemirror-state/README.md +28 -0
- package/node_modules/prosemirror-state/dist/index.cjs +884 -0
- package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
- package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
- package/node_modules/prosemirror-state/dist/index.js +1002 -0
- package/node_modules/prosemirror-state/package.json +39 -0
- package/node_modules/prosemirror-tables/LICENSE +19 -0
- package/node_modules/prosemirror-tables/README.md +254 -0
- package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
- package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
- package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
- package/node_modules/prosemirror-tables/dist/index.js +2626 -0
- package/node_modules/prosemirror-tables/package.json +80 -0
- package/node_modules/prosemirror-tables/style/tables.css +48 -0
- package/node_modules/prosemirror-transform/.tern-project +8 -0
- package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
- package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-transform/LICENSE +19 -0
- package/node_modules/prosemirror-transform/README.md +29 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
- package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
- package/node_modules/prosemirror-transform/dist/index.js +2272 -0
- package/node_modules/prosemirror-transform/package.json +37 -0
- package/node_modules/prosemirror-view/.tern-project +8 -0
- package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
- package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-view/LICENSE +19 -0
- package/node_modules/prosemirror-view/README.md +28 -0
- package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
- package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
- package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
- package/node_modules/prosemirror-view/dist/index.js +6053 -0
- package/node_modules/prosemirror-view/package.json +43 -0
- package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
- package/node_modules/rope-sequence/LICENSE +19 -0
- package/node_modules/rope-sequence/README.md +63 -0
- package/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/node_modules/rope-sequence/dist/index.d.cts +11 -0
- package/node_modules/rope-sequence/dist/index.d.ts +11 -0
- package/node_modules/rope-sequence/dist/index.js +207 -0
- package/node_modules/rope-sequence/index.js +190 -0
- package/node_modules/rope-sequence/package.json +34 -0
- package/node_modules/rope-sequence/test.js +78 -0
- package/node_modules/use-sync-external-store/LICENSE +21 -0
- package/node_modules/use-sync-external-store/README.md +5 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
- package/node_modules/use-sync-external-store/index.js +7 -0
- package/node_modules/use-sync-external-store/package.json +43 -0
- package/node_modules/use-sync-external-store/shim/index.js +7 -0
- package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
- package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
- package/node_modules/use-sync-external-store/with-selector.js +7 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +79 -4
- package/src/Editor.tsx +425 -0
- package/src/ask.tsx +154 -0
- package/src/basic.tsx +149 -0
- package/src/blockMeta.ts +42 -0
- package/src/blockops.ts +179 -0
- package/src/blocks.tsx +189 -0
- package/src/boundary.tsx +17 -0
- package/src/content.ts +22 -0
- package/src/dynamic.tsx +105 -0
- package/src/editor.css +345 -0
- package/src/extensions.ts +78 -0
- package/src/handle.tsx +188 -0
- package/src/handles.tsx +149 -0
- package/src/index.ts +29 -0
- package/src/insert.ts +9 -0
- package/src/inserter.tsx +163 -0
- package/src/inspector.tsx +237 -0
- package/src/labels.ts +135 -0
- package/src/layout.tsx +174 -0
- package/src/layoutUi.tsx +226 -0
- package/src/media.ts +31 -0
- package/src/nodes.tsx +107 -0
- package/src/outline.tsx +124 -0
- package/src/panels.ts +59 -0
- package/src/paste.ts +100 -0
- package/src/patterns.ts +129 -0
- package/src/rank.ts +22 -0
- package/src/registry.ts +20 -0
- package/src/styleattr.ts +55 -0
- package/src/stylepanel.tsx +275 -0
- package/src/synced.tsx +128 -0
- package/src/toolbar.tsx +238 -0
- package/src/types.ts +55 -0
- package/src/unknown.tsx +74 -0
- package/src/util.ts +3 -0
package/src/dynamic.tsx
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { DYNAMIC_NODES, defineBlock, type BlockAttrSpec, type BlockDefinition } from "@ecomcx/ecomweb-content";
|
|
2
|
+
import {
|
|
3
|
+
AlignLeft, Calendar, Copyright, FileText, Globe, Heading1, Image, Languages, LayoutTemplate, List, ListX, Menu, MessageSquare, MoreHorizontal,
|
|
4
|
+
PanelTop, Repeat, Search, Tags, Text, Type, User, type LucideIcon,
|
|
5
|
+
} from "lucide-react";
|
|
6
|
+
import type { BlockEditProps } from "./blocks";
|
|
7
|
+
import { registerBlock } from "./blocks";
|
|
8
|
+
|
|
9
|
+
/** Khối động (lấy dữ liệu lúc hiển thị) — dùng trong Trình dựng và trang dựng bằng khối. */
|
|
10
|
+
export const DYNAMIC_BLOCKS = new Set<string>(DYNAMIC_NODES);
|
|
11
|
+
|
|
12
|
+
type Dict = Record<string, string>;
|
|
13
|
+
const vi: Dict = {
|
|
14
|
+
siteTitle: "Tên website", siteLogo: "Logo", siteTagline: "Khẩu hiệu", navigation: "Menu", search: "Tìm kiếm", languageSwitcher: "Chọn ngôn ngữ",
|
|
15
|
+
copyright: "Bản quyền", postTitle: "Tiêu đề bài/trang", postContent: "Nội dung bài/trang", postExcerpt: "Sapo", featuredImage: "Ảnh đại diện",
|
|
16
|
+
postDate: "Ngày đăng", postAuthor: "Tác giả", postTerms: "Chuyên mục / thẻ", comments: "Bình luận", query: "Danh sách bài",
|
|
17
|
+
postTemplate: "Khuôn mỗi bài", pagination: "Phân trang", queryEmpty: "Khi không có bài", templatePart: "Phần dùng chung",
|
|
18
|
+
level: "Cấp tiêu đề (0 = chữ thường)", link: "Có liên kết", textAlign: "Căn chữ", width: "Rộng (px)", location: "Vị trí menu",
|
|
19
|
+
orientation: "Hướng", horizontal: "Ngang", vertical: "Dọc", mobile: "Nút menu trên điện thoại", placeholder: "Chữ gợi ý", buttonText: "Chữ trên nút",
|
|
20
|
+
text: "Tên chủ sở hữu (trống = tên website)", moreText: "Chữ “đọc tiếp”", size: "Cỡ ảnh", aspect: "Tỉ lệ khung", avatar: "Hiện ảnh đại diện",
|
|
21
|
+
taxonomy: "Phân loại (category, post_tag…)", separator: "Dấu ngăn cách", inherit: "Dùng danh sách của trang đang xem", postType: "Loại bài",
|
|
22
|
+
perPage: "Số bài", category: "Chuyên mục (slug)", tag: "Thẻ (slug)", orderBy: "Sắp xếp theo", date: "Ngày", title: "Tiêu đề", menu_order: "Thứ tự",
|
|
23
|
+
order: "Thứ tự", desc: "Mới trước", asc: "Cũ trước", layout: "Bố cục", list: "Danh sách", grid: "Lưới", columns: "Số cột",
|
|
24
|
+
slug: "Phần (slug, vd header)", tagName: "Thẻ HTML", left: "Trái", center: "Giữa", right: "Phải", justify: "Đều",
|
|
25
|
+
inheritSummary: "danh sách của trang", partSummary: "phần “{v}”", menuSummary: "vị trí “{v}”",
|
|
26
|
+
};
|
|
27
|
+
const en: Dict = {
|
|
28
|
+
siteTitle: "Site title", siteLogo: "Logo", siteTagline: "Tagline", navigation: "Navigation", search: "Search", languageSwitcher: "Language switcher",
|
|
29
|
+
copyright: "Copyright", postTitle: "Post/page title", postContent: "Post/page content", postExcerpt: "Excerpt", featuredImage: "Featured image",
|
|
30
|
+
postDate: "Date", postAuthor: "Author", postTerms: "Categories / tags", comments: "Comments", query: "Post list",
|
|
31
|
+
postTemplate: "Post template", pagination: "Pagination", queryEmpty: "No results", templatePart: "Template part",
|
|
32
|
+
level: "Heading level (0 = text)", link: "Link", textAlign: "Text align", width: "Width (px)", location: "Menu location",
|
|
33
|
+
orientation: "Orientation", horizontal: "Horizontal", vertical: "Vertical", mobile: "Menu button on mobile", placeholder: "Placeholder", buttonText: "Button text",
|
|
34
|
+
text: "Owner (empty = site title)", moreText: "“Read more” text", size: "Image size", aspect: "Aspect ratio", avatar: "Show avatar",
|
|
35
|
+
taxonomy: "Taxonomy (category, post_tag…)", separator: "Separator", inherit: "Use the list of the current page", postType: "Post type",
|
|
36
|
+
perPage: "Posts", category: "Category (slug)", tag: "Tag (slug)", orderBy: "Order by", date: "Date", title: "Title", menu_order: "Menu order",
|
|
37
|
+
order: "Order", desc: "Newest first", asc: "Oldest first", layout: "Layout", list: "List", grid: "Grid", columns: "Columns",
|
|
38
|
+
slug: "Part (slug, e.g. header)", tagName: "HTML tag", left: "Left", center: "Center", right: "Right", justify: "Justify",
|
|
39
|
+
inheritSummary: "list of the page", partSummary: "part “{v}”", menuSummary: "location “{v}”",
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const s = (label: string, extra: Partial<BlockAttrSpec> = {}): BlockAttrSpec => ({ type: "string", label, ...extra });
|
|
43
|
+
const i = (label: string, extra: Partial<BlockAttrSpec> = {}): BlockAttrSpec => ({ type: "integer", label, ...extra });
|
|
44
|
+
const b = (label: string, extra: Partial<BlockAttrSpec> = {}): BlockAttrSpec => ({ type: "boolean", label, ...extra });
|
|
45
|
+
const align = s("textAlign", { enum: ["left", "center", "right", "justify"], enumLabels: ["left", "center", "right", "justify"], default: "left" });
|
|
46
|
+
|
|
47
|
+
const SPECS: Array<[string, LucideIcon, "none" | "blocks", Record<string, BlockAttrSpec>]> = [
|
|
48
|
+
["siteTitle", Type, "none", { level: i("level", { min: 0, max: 6, default: 0 }), link: b("link", { default: true }), textAlign: align }],
|
|
49
|
+
["siteLogo", Image, "none", { width: i("width", { min: 16, max: 600, default: 120 }), link: b("link", { default: true }) }],
|
|
50
|
+
["siteTagline", Text, "none", { textAlign: align }],
|
|
51
|
+
["navigation", Menu, "none", { location: s("location", { default: "primary" }), orientation: s("orientation", { enum: ["horizontal", "vertical"], enumLabels: ["horizontal", "vertical"], default: "horizontal" }), mobile: b("mobile", { default: true }) }],
|
|
52
|
+
["search", Search, "none", { placeholder: s("placeholder"), buttonText: s("buttonText") }],
|
|
53
|
+
["languageSwitcher", Languages, "none", {}],
|
|
54
|
+
["copyright", Copyright, "none", { text: s("text"), textAlign: align }],
|
|
55
|
+
["postTitle", Heading1, "none", { level: i("level", { min: 1, max: 6, default: 1 }), link: b("link", { default: false }), textAlign: align }],
|
|
56
|
+
["postContent", FileText, "none", {}],
|
|
57
|
+
["postExcerpt", AlignLeft, "none", { moreText: s("moreText") }],
|
|
58
|
+
["featuredImage", Image, "none", { size: s("size", { enum: ["medium", "medium_large", "large", "full"], default: "large" }), aspect: s("aspect", { enum: ["auto", "16/9", "4/3", "1/1", "3/4"], default: "auto" }), link: b("link", { default: false }) }],
|
|
59
|
+
["postDate", Calendar, "none", { textAlign: align }],
|
|
60
|
+
["postAuthor", User, "none", { avatar: b("avatar", { default: false }) }],
|
|
61
|
+
["postTerms", Tags, "none", { taxonomy: s("taxonomy", { default: "category" }), separator: s("separator", { default: ", " }) }],
|
|
62
|
+
["comments", MessageSquare, "none", {}],
|
|
63
|
+
["query", List, "blocks", {
|
|
64
|
+
inherit: b("inherit", { default: true }), postType: s("postType", { default: "post" }), perPage: i("perPage", { min: 1, max: 50, default: 10 }),
|
|
65
|
+
category: s("category"), tag: s("tag"),
|
|
66
|
+
orderBy: s("orderBy", { enum: ["date", "title", "menu_order"], enumLabels: ["date", "title", "menu_order"], default: "date" }),
|
|
67
|
+
order: s("order", { enum: ["desc", "asc"], enumLabels: ["desc", "asc"], default: "desc" }),
|
|
68
|
+
}],
|
|
69
|
+
["postTemplate", Repeat, "blocks", { layout: s("layout", { enum: ["list", "grid"], enumLabels: ["list", "grid"], default: "list" }), columns: i("columns", { min: 1, max: 6, default: 3 }) }],
|
|
70
|
+
["pagination", MoreHorizontal, "none", {}],
|
|
71
|
+
["queryEmpty", ListX, "blocks", {}],
|
|
72
|
+
["templatePart", PanelTop, "none", { slug: s("slug"), tagName: s("tagName", { enum: ["div", "header", "footer", "aside", "section"], default: "div" }) }],
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
/** Dòng tóm tắt cạnh tên khối (thuộc tính quan trọng nhất) — để nhìn là biết khối đang lấy gì. */
|
|
76
|
+
function summary(name: string, t: (k: string) => string) {
|
|
77
|
+
return function Summary({ attrs, children }: BlockEditProps) {
|
|
78
|
+
const fill = (k: string, v: unknown) => t(k).replace("{v}", String(v ?? ""));
|
|
79
|
+
const text = name === "navigation" ? fill("menuSummary", attrs.location ?? "primary")
|
|
80
|
+
: name === "templatePart" ? (attrs.slug ? fill("partSummary", attrs.slug) : "")
|
|
81
|
+
: name === "query" ? (attrs.inherit !== false ? t("inheritSummary") : `${attrs.postType ?? "post"} · ${attrs.perPage ?? 10}`)
|
|
82
|
+
: "";
|
|
83
|
+
return <>{text && <div className="cms-ed-dynamic-summary" contentEditable={false}>{text}</div>}{children}</>;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
let registered: string | null = null;
|
|
88
|
+
|
|
89
|
+
/** Đăng ký khối động cho mọi trình soạn (gọi một lần; đổi ngôn ngữ → gọi lại). Mục chèn chỉ hiện khi Editor có `dynamicBlocks`. */
|
|
90
|
+
export function registerDynamicBlocks(locale: "vi" | "en" = "vi") {
|
|
91
|
+
if (registered === locale) return;
|
|
92
|
+
registered = locale;
|
|
93
|
+
const dict = locale === "en" ? en : vi;
|
|
94
|
+
const t = (k: string) => dict[k] ?? k;
|
|
95
|
+
for (const [name, icon, content, attributes] of SPECS) {
|
|
96
|
+
const def: BlockDefinition = defineBlock({ name, title: name, keywords: `${vi[name]} ${en[name]}`, content, attributes });
|
|
97
|
+
const initialContent = name === "query"
|
|
98
|
+
? () => [{ type: "postTemplate", attrs: { layout: "list", columns: 3 }, content: [{ type: "postTitle", attrs: { level: 2, link: true } }, { type: "postExcerpt" }] }, { type: "pagination" }]
|
|
99
|
+
: undefined;
|
|
100
|
+
registerBlock(def, { icon, translate: t, edit: summary(name, t), initialContent });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const DYNAMIC_ICON: LucideIcon = LayoutTemplate;
|
|
105
|
+
export const dynamicIcon = (name: string): LucideIcon | undefined => SPECS.find(([n]) => n === name)?.[1] ?? (DYNAMIC_BLOCKS.has(name) ? Globe : undefined);
|
package/src/editor.css
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
@import "@ecomcx/ecomweb-content/style.css";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* @ecomcx/ecomweb-editor — CSS độc lập (không cần Tailwind). Đổi màu bằng biến trên .cms-editor (hoặc thẻ cha):
|
|
5
|
+
* --cms-ed-bg, --cms-ed-panel, --cms-ed-fg, --cms-ed-muted, --cms-ed-faint, --cms-ed-line, --cms-ed-hover,
|
|
6
|
+
* --cms-ed-accent, --cms-ed-accent-soft, --cms-ed-accent-fg, --cms-ed-danger, --cms-ed-code-bg, --cms-ed-font
|
|
7
|
+
*/
|
|
8
|
+
:where(.cms-editor, .cms-ed-slash, .cms-ed-bubble, .cms-ed-ask, .cms-ed-handle, .cms-ed-bar, .cms-ed-blockbar, .cms-ed-handles, .cms-ed-inspector, .cms-ed-inserter, .cms-ed-outline) {
|
|
9
|
+
/* :where → độ ưu tiên 0: ứng dụng nhúng ghi đè được dù CSS này nạp sau */
|
|
10
|
+
--cms-ed-panel: #fff; --cms-ed-fg: #18181b; --cms-ed-muted: #71717a; --cms-ed-faint: #a1a1aa; --cms-ed-line: #e4e4e7;
|
|
11
|
+
--cms-ed-hover: #f4f4f5; --cms-ed-accent: #4f46e5; --cms-ed-accent-soft: #eef2ff; --cms-ed-accent-fg: #fff; --cms-ed-danger: #dc2626;
|
|
12
|
+
--cms-ed-code-bg: #18181b; --cms-ed-font: inherit;
|
|
13
|
+
}
|
|
14
|
+
.cms-editor { color: var(--cms-ed-fg); font-family: var(--cms-ed-font); }
|
|
15
|
+
|
|
16
|
+
/* Thanh công cụ */
|
|
17
|
+
.cms-ed-toolbar { border-bottom: 1px solid var(--cms-ed-line); background: var(--cms-ed-panel); padding: 6px 0; }
|
|
18
|
+
.cms-ed-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
|
|
19
|
+
.cms-ed-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 6px;
|
|
20
|
+
background: transparent; color: var(--cms-ed-muted); cursor: pointer; transition: background .12s, color .12s; }
|
|
21
|
+
.cms-ed-btn:hover { background: var(--cms-ed-hover); color: var(--cms-ed-fg); }
|
|
22
|
+
.cms-ed-btn.is-active { background: var(--cms-ed-accent-soft); color: var(--cms-ed-accent); }
|
|
23
|
+
.cms-ed-btn:disabled { opacity: .3; cursor: default; }
|
|
24
|
+
.cms-ed-sep { display: inline-block; width: 1px; height: 16px; margin: 0 2px; background: var(--cms-ed-line); }
|
|
25
|
+
.cms-ed-hint { margin-left: auto; font-size: 11px; color: var(--cms-ed-faint); }
|
|
26
|
+
@media (max-width: 768px) { .cms-ed-hint { display: none; } }
|
|
27
|
+
.cms-ed-table-tools { display: inline-flex; gap: 2px; margin-left: 4px; padding: 0 4px; border-radius: 6px; background: var(--cms-ed-hover); font-size: 12px; }
|
|
28
|
+
.cms-ed-table-tools button, .cms-ed-text-btn { border: 0; background: transparent; color: var(--cms-ed-muted); padding: 3px 7px; border-radius: 5px; font: inherit; font-size: 12px; cursor: pointer; }
|
|
29
|
+
.cms-ed-table-tools button:hover, .cms-ed-text-btn:hover { background: var(--cms-ed-hover); color: var(--cms-ed-fg); }
|
|
30
|
+
.cms-ed-table-tools .is-danger { color: var(--cms-ed-danger); }
|
|
31
|
+
.cms-ed-select { height: 28px; border: 1px solid var(--cms-ed-line); border-radius: 6px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); font: inherit; font-size: 12px; padding: 0 4px; }
|
|
32
|
+
|
|
33
|
+
/* Menu nổi + slash menu */
|
|
34
|
+
.cms-ed-bubble { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--cms-ed-line); border-radius: 10px;
|
|
35
|
+
background: var(--cms-ed-panel); color: var(--cms-ed-fg); box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
|
|
36
|
+
.cms-ed-slash { position: fixed; z-index: 1000; width: 260px; max-height: 300px; overflow-y: auto; padding: 4px; border: 1px solid var(--cms-ed-line);
|
|
37
|
+
border-radius: 10px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); box-shadow: 0 16px 40px rgb(0 0 0 / .18); }
|
|
38
|
+
.cms-ed-slash-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
|
|
39
|
+
.cms-ed-slash-item.is-active { background: var(--cms-ed-hover); }
|
|
40
|
+
.cms-ed-slash-icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--cms-ed-line); border-radius: 7px; color: var(--cms-ed-muted); flex-shrink: 0; }
|
|
41
|
+
.cms-ed-slash-title { display: block; font-size: 13px; }
|
|
42
|
+
.cms-ed-slash-hint { display: block; font-size: 11px; color: var(--cms-ed-faint); }
|
|
43
|
+
.cms-ed-slash-empty { padding: 12px 8px; text-align: center; font-size: 12px; color: var(--cms-ed-muted); }
|
|
44
|
+
|
|
45
|
+
/* Nội dung — giao diện nền dùng chung với website (@ecomcx/ecomweb-content/style.css, class ecx-content); ở đây chỉ phần riêng của trình soạn */
|
|
46
|
+
.cms-ed-content { min-height: 50vh; padding: 16px 0 96px; outline: none; font-size: 15px; line-height: 1.75;
|
|
47
|
+
--ecx-border: var(--cms-ed-line); --ecx-muted: var(--cms-ed-muted); --ecx-accent: var(--cms-ed-accent); --ecx-surface: var(--cms-ed-hover); --ecx-code-bg: var(--cms-ed-code-bg); }
|
|
48
|
+
.cms-ed-content > * + * { margin-top: .85em; }
|
|
49
|
+
.cms-ed-content h2 { margin-top: 2rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
|
|
50
|
+
.cms-ed-content h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 600; }
|
|
51
|
+
.cms-ed-content h4 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }
|
|
52
|
+
.cms-ed-content .selectedCell { background: var(--cms-ed-accent-soft); }
|
|
53
|
+
.cms-ed-content p.is-empty::before, .cms-ed-content h2.is-empty::before, .cms-ed-content h3.is-empty::before, .cms-ed-content h4.is-empty::before {
|
|
54
|
+
content: attr(data-placeholder); float: left; height: 0; pointer-events: none; color: var(--cms-ed-faint); }
|
|
55
|
+
.cms-ed-content div[data-youtube-video] iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
|
|
56
|
+
|
|
57
|
+
/* Ảnh: kéo góc để đổi kích thước */
|
|
58
|
+
.cms-ed-content img { max-width: 100%; height: auto; border-radius: 8px; }
|
|
59
|
+
.cms-ed-content [data-resize-container] { position: relative; display: inline-block; max-width: 100%; }
|
|
60
|
+
.cms-ed-content [data-resize-wrapper] { display: block; max-width: 100%; }
|
|
61
|
+
.cms-ed-content [data-resize-handle] { position: absolute; z-index: 2; width: 12px; height: 12px; border: 2px solid var(--cms-ed-accent); border-radius: 3px;
|
|
62
|
+
background: var(--cms-ed-panel); opacity: 0; transition: opacity .12s; }
|
|
63
|
+
.cms-ed-content [data-resize-container]:hover [data-resize-handle], .cms-ed-content .ProseMirror-selectednode [data-resize-handle],
|
|
64
|
+
.cms-ed-content [data-resize-state="true"] [data-resize-handle] { opacity: 1; }
|
|
65
|
+
.cms-ed-content [data-resize-handle="top-left"] { top: -6px; left: -6px; cursor: nwse-resize; }
|
|
66
|
+
.cms-ed-content [data-resize-handle="top-right"] { top: -6px; right: -6px; cursor: nesw-resize; }
|
|
67
|
+
.cms-ed-content [data-resize-handle="bottom-left"] { bottom: -6px; left: -6px; cursor: nesw-resize; }
|
|
68
|
+
.cms-ed-content [data-resize-handle="bottom-right"] { bottom: -6px; right: -6px; cursor: nwse-resize; }
|
|
69
|
+
.cms-ed-content .ProseMirror-selectednode img, .cms-ed-content img.ProseMirror-selectednode { outline: 2px solid var(--cms-ed-accent); outline-offset: 2px; }
|
|
70
|
+
.cms-ed-content [data-node="image"] { margin: .5em 0; }
|
|
71
|
+
|
|
72
|
+
/* Thanh công cụ nổi phía trên khối */
|
|
73
|
+
/* Kéo chỉnh trên khung: độ rộng cột, khoảng đệm */
|
|
74
|
+
.cms-ed-colhandle { position: fixed; z-index: 44; width: 10px; cursor: col-resize; touch-action: none; }
|
|
75
|
+
.cms-ed-colhandle::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--cms-ed-accent, #2563eb); opacity: .35; transition: opacity .12s; }
|
|
76
|
+
.cms-ed-colhandle:hover::after, .cms-ed-colhandle:active::after { opacity: 1; }
|
|
77
|
+
.cms-ed-padhandle { position: fixed; z-index: 44; touch-action: none; background: repeating-linear-gradient(45deg, var(--cms-ed-accent-soft, #dbeafe) 0 4px, transparent 4px 8px); opacity: .55; transition: opacity .12s; }
|
|
78
|
+
.cms-ed-padhandle:hover, .cms-ed-padhandle:active { opacity: 1; }
|
|
79
|
+
.cms-ed-padhandle.is-top, .cms-ed-padhandle.is-bottom { cursor: ns-resize; }
|
|
80
|
+
.cms-ed-padhandle.is-left, .cms-ed-padhandle.is-right { cursor: ew-resize; }
|
|
81
|
+
.cms-ed-handletip { position: fixed; z-index: 46; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; font: 500 11px/1.4 var(--cms-ed-font, system-ui); color: var(--cms-ed-accent-fg, #fff); background: var(--cms-ed-accent, #2563eb); pointer-events: none; white-space: nowrap; }
|
|
82
|
+
.cms-ed-blockbar { position: fixed; z-index: 45; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--cms-ed-fg, #18181b);
|
|
83
|
+
border-radius: 8px; background: var(--cms-ed-panel, #fff); color: var(--cms-ed-fg, #18181b); box-shadow: 0 4px 16px rgb(0 0 0 / .12); font-size: 13px; }
|
|
84
|
+
.cms-ed-blockbar-group { display: inline-flex; align-items: center; gap: 2px; }
|
|
85
|
+
.cms-ed-blockbar-type { display: inline-flex; width: 28px; justify-content: center; color: var(--cms-ed-muted); }
|
|
86
|
+
.cms-ed-blockbar .cms-ed-btn.is-wide { width: auto; padding: 0 4px; gap: 1px; }
|
|
87
|
+
.cms-ed-blockbar .cms-ed-btn.is-grip { cursor: grab; }
|
|
88
|
+
.cms-ed-blockbar-mover { display: inline-flex; flex-direction: column; }
|
|
89
|
+
.cms-ed-blockbar-mover button { display: grid; place-items: center; width: 22px; height: 14px; border: 0; padding: 0; border-radius: 4px; background: transparent; color: var(--cms-ed-muted); cursor: pointer; }
|
|
90
|
+
.cms-ed-blockbar-mover button:hover:not(:disabled) { background: var(--cms-ed-hover); color: var(--cms-ed-fg); }
|
|
91
|
+
.cms-ed-blockbar-mover button:disabled { opacity: .3; cursor: default; }
|
|
92
|
+
.cms-ed-blockbar-menu { position: relative; display: inline-flex; }
|
|
93
|
+
.cms-ed-blockbar-menu > .cms-ed-menu { position: absolute; top: calc(100% + 6px); left: 0; }
|
|
94
|
+
.cms-ed-blockbar .cms-ed-table-tools { margin: 0; }
|
|
95
|
+
.cms-ed-menu-item.is-active { color: var(--cms-ed-accent); }
|
|
96
|
+
|
|
97
|
+
/* Khối động: dòng tóm tắt cạnh tên khối */
|
|
98
|
+
.cms-ed-dynamic-summary { margin: -2px 0 4px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
99
|
+
|
|
100
|
+
/* Khối media (gallery, video, âm thanh, tệp) */
|
|
101
|
+
.cms-ed-block { margin: 1rem 0; padding: 8px; border: 1px solid var(--cms-ed-line); border-radius: 10px; background: var(--cms-ed-hover); }
|
|
102
|
+
.cms-ed-block.is-selected { border-color: var(--cms-ed-accent); box-shadow: 0 0 0 3px var(--cms-ed-accent-soft); }
|
|
103
|
+
.cms-ed-block-label { margin-bottom: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--cms-ed-faint); }
|
|
104
|
+
.cms-ed-gallery { display: grid; gap: 6px; }
|
|
105
|
+
.cms-ed-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
|
|
106
|
+
.cms-ed-gallery-cols { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
107
|
+
.cms-ed-gallery-cols button { border: 0; padding: 2px 8px; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
|
|
108
|
+
.cms-ed-gallery-cols button:hover { background: var(--cms-ed-panel); }
|
|
109
|
+
.cms-ed-gallery-cols button.is-active { background: var(--cms-ed-accent); color: var(--cms-ed-accent-fg); }
|
|
110
|
+
.cms-ed-video { width: 100%; max-height: 320px; border-radius: 6px; }
|
|
111
|
+
.cms-ed-audio { width: 100%; }
|
|
112
|
+
.cms-ed-file { display: flex; align-items: center; gap: 8px; font-size: 14px; }
|
|
113
|
+
.cms-ed-media-name { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--cms-ed-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
114
|
+
|
|
115
|
+
/* Khối của plugin (defineBlock): form cài đặt hiện khi chọn khối */
|
|
116
|
+
.cms-ed-plugin-block .cms-ed-block-label { display: flex; align-items: center; gap: 4px; cursor: grab; }
|
|
117
|
+
.cms-ed-block-content { min-height: 1.5em; }
|
|
118
|
+
.cms-ed-block-settings { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--cms-ed-line); }
|
|
119
|
+
.cms-ed-field { display: grid; gap: 4px; font-size: 12px; color: var(--cms-ed-faint); }
|
|
120
|
+
.cms-ed-field.is-check { display: flex; align-items: center; gap: 6px; }
|
|
121
|
+
.cms-ed-field input, .cms-ed-field select, .cms-ed-field textarea { font: inherit; font-size: 13px; color: var(--cms-ed-fg, inherit); background: var(--cms-ed-panel, #fff); border: 1px solid var(--cms-ed-line); border-radius: 6px; padding: 4px 6px; }
|
|
122
|
+
.cms-ed-field small { font-size: 11px; }
|
|
123
|
+
.cms-ed-unknown { border-style: dashed; color: var(--cms-ed-faint); font-size: 13px; }
|
|
124
|
+
.cms-ed-unknown-inline { display: inline-block; padding: 0 4px; border: 1px dashed var(--cms-ed-line); border-radius: 4px; font-size: 12px; color: var(--cms-ed-faint); }
|
|
125
|
+
.cms-ed-unknown-mark { text-decoration: underline dotted; }
|
|
126
|
+
|
|
127
|
+
/* Tay kéo + menu khối */
|
|
128
|
+
.cms-ed-handle { position: fixed; z-index: 30; display: flex; gap: 1px; }
|
|
129
|
+
.cms-ed-handle-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: 5px;
|
|
130
|
+
background: transparent; color: var(--cms-ed-faint); cursor: pointer; }
|
|
131
|
+
.cms-ed-handle-btn:hover, .cms-ed-handle-btn.is-active { background: var(--cms-ed-hover); color: var(--cms-ed-fg); }
|
|
132
|
+
.cms-ed-handle-btn.is-grip { cursor: grab; }
|
|
133
|
+
.cms-ed-handle-btn.is-grip:active { cursor: grabbing; }
|
|
134
|
+
.cms-ed-menu { position: absolute; top: 28px; left: 24px; min-width: 220px; padding: 4px; border: 1px solid var(--cms-ed-line); border-radius: 10px;
|
|
135
|
+
background: var(--cms-ed-panel); color: var(--cms-ed-fg); box-shadow: 0 16px 40px rgb(0 0 0 / .18); }
|
|
136
|
+
.cms-ed-menu-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent;
|
|
137
|
+
color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
|
|
138
|
+
.cms-ed-menu-item span { flex: 1; }
|
|
139
|
+
.cms-ed-menu-item kbd { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cms-ed-muted); }
|
|
140
|
+
.cms-ed-menu-item:hover, .cms-ed-menu-item:focus-visible { background: var(--cms-ed-hover); outline: none; }
|
|
141
|
+
.cms-ed-menu-item:disabled { opacity: .4; cursor: default; }
|
|
142
|
+
.cms-ed-menu-item.is-danger { color: var(--cms-ed-danger); }
|
|
143
|
+
@media (max-width: 768px) { .cms-ed-handle { display: none; } }
|
|
144
|
+
|
|
145
|
+
/* Hộp nhập cạnh chỗ soạn (thay window.prompt) */
|
|
146
|
+
.cms-ed-ask { position: fixed; z-index: 1001; display: grid; gap: 10px; width: min(360px, calc(100vw - 16px)); padding: 12px; border: 1px solid var(--cms-ed-line);
|
|
147
|
+
border-radius: 10px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); font-family: var(--cms-ed-font); box-shadow: 0 16px 40px rgb(0 0 0 / .18); }
|
|
148
|
+
.cms-ed-ask-title { font-size: 13px; font-weight: 600; }
|
|
149
|
+
.cms-ed-ask-field { display: grid; gap: 4px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
150
|
+
.cms-ed-ask-field input, .cms-ed-ask-field textarea, .cms-ed-ask-field select { font: inherit; font-size: 13px; color: var(--cms-ed-fg); background: var(--cms-ed-panel);
|
|
151
|
+
border: 1px solid var(--cms-ed-line); border-radius: 6px; padding: 6px 8px; }
|
|
152
|
+
.cms-ed-ask-field :focus-visible, .cms-ed-ask-check input:focus-visible, .cms-ed-ask-btn:focus-visible, .cms-ed-handle-btn:focus-visible { outline: 2px solid var(--cms-ed-accent); outline-offset: 1px; }
|
|
153
|
+
.cms-ed-ask-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
|
|
154
|
+
.cms-ed-ask-actions { display: flex; align-items: center; gap: 6px; }
|
|
155
|
+
.cms-ed-ask-spacer { flex: 1; }
|
|
156
|
+
.cms-ed-ask-btn { border: 1px solid var(--cms-ed-line); border-radius: 6px; padding: 5px 10px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); font: inherit; font-size: 13px; cursor: pointer; }
|
|
157
|
+
.cms-ed-ask-btn:hover { background: var(--cms-ed-hover); }
|
|
158
|
+
.cms-ed-ask-btn.is-primary { border-color: var(--cms-ed-accent); background: var(--cms-ed-accent); color: var(--cms-ed-accent-fg); }
|
|
159
|
+
.cms-ed-ask-btn.is-danger { border-color: transparent; color: var(--cms-ed-danger); }
|
|
160
|
+
|
|
161
|
+
/* Khối bố cục (cột, nhóm, hộp lưu ý, nút, nhúng) */
|
|
162
|
+
.cms-ed-columns { display: flex; gap: 16px; margin: 1rem 0; }
|
|
163
|
+
.cms-ed-columns.is-center { align-items: center; }
|
|
164
|
+
.cms-ed-columns.is-bottom { align-items: flex-end; }
|
|
165
|
+
.cms-ed-column { min-width: 0; padding: 6px 10px; border: 1px dashed var(--cms-ed-line); border-radius: 8px; }
|
|
166
|
+
.cms-ed-column > * + * { margin-top: .85em; }
|
|
167
|
+
.cms-ed-group { margin: 1rem 0; border: 1px dashed var(--cms-ed-line); border-radius: 12px; }
|
|
168
|
+
.cms-ed-group > * + *, .cms-ed-callout > * + * { margin-top: .85em; }
|
|
169
|
+
.cms-ed-callout { margin: 1rem 0; padding: 10px 14px; border-left: 4px solid var(--cms-ed-tone, #2563eb); border-radius: 8px;
|
|
170
|
+
background: color-mix(in srgb, var(--cms-ed-tone, #2563eb) 8%, transparent); }
|
|
171
|
+
.cms-ed-callout[data-tone="success"] { --cms-ed-tone: #16a34a; }
|
|
172
|
+
.cms-ed-callout[data-tone="warning"] { --cms-ed-tone: #d97706; }
|
|
173
|
+
.cms-ed-callout[data-tone="danger"] { --cms-ed-tone: #dc2626; }
|
|
174
|
+
.cms-ed-callout[data-title]::before { content: attr(data-title); display: block; font-weight: 600; margin-bottom: 2px; }
|
|
175
|
+
.cms-ed-button-wrap { margin: 1rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 8px; }
|
|
176
|
+
.cms-ed-button-wrap.is-center { align-items: center; }
|
|
177
|
+
.cms-ed-button-wrap.is-right { align-items: flex-end; }
|
|
178
|
+
.cms-ed-button-wrap.is-selected .cms-ed-button { outline: 2px solid var(--cms-ed-accent); outline-offset: 2px; }
|
|
179
|
+
.cms-ed-button { display: inline-block; padding: .55em 1.1em; border-radius: 8px; font-weight: 600; line-height: 1.2; cursor: default;
|
|
180
|
+
background: var(--cms-ed-accent); color: var(--cms-ed-accent-fg); }
|
|
181
|
+
.cms-ed-button.is-secondary { background: var(--cms-ed-hover); color: var(--cms-ed-fg); }
|
|
182
|
+
.cms-ed-button.is-outline { background: transparent; color: var(--cms-ed-accent); border: 1px solid var(--cms-ed-accent); }
|
|
183
|
+
.cms-ed-button-href { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--cms-ed-faint); }
|
|
184
|
+
.cms-ed-embed-frame { position: relative; width: 100%; }
|
|
185
|
+
.cms-ed-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
|
|
186
|
+
.cms-ed-embed-cover { position: absolute; inset: 0; }
|
|
187
|
+
.cms-ed-embed-unknown { display: flex; align-items: center; gap: 6px; font-size: 13px; overflow: hidden; }
|
|
188
|
+
.cms-ed-embed-unknown span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
189
|
+
.cms-ed-embed-unknown small { color: var(--cms-ed-muted); flex-shrink: 0; }
|
|
190
|
+
.cms-ed-embed-caption { margin-top: 4px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
191
|
+
|
|
192
|
+
/* Thanh cài đặt khối */
|
|
193
|
+
.cms-ed-bar { position: fixed; z-index: 31; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 16px); padding: 4px 6px;
|
|
194
|
+
border: 1px solid var(--cms-ed-line); border-radius: 10px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); font-size: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
|
|
195
|
+
.cms-ed-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 7px; background: var(--cms-ed-hover); }
|
|
196
|
+
.cms-ed-seg-btn { display: inline-flex; align-items: center; border: 0; border-radius: 5px; padding: 3px 7px; background: transparent; color: var(--cms-ed-fg); font: inherit; font-size: 12px; cursor: pointer; }
|
|
197
|
+
.cms-ed-seg-btn.is-active { background: var(--cms-ed-panel); color: var(--cms-ed-fg); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
|
|
198
|
+
.cms-ed-seg-btn:focus-visible, .cms-ed-bar .cms-ed-text-btn:focus-visible, .cms-ed-bar input:focus-visible { outline: 2px solid var(--cms-ed-accent); outline-offset: 1px; }
|
|
199
|
+
.cms-ed-bar .cms-ed-text-btn { display: inline-flex; align-items: center; gap: 4px; }
|
|
200
|
+
.cms-ed-bar .cms-ed-text-btn:disabled { opacity: .4; cursor: default; }
|
|
201
|
+
.cms-ed-check { display: inline-flex; align-items: center; gap: 4px; color: var(--cms-ed-muted); }
|
|
202
|
+
.cms-ed-color, .cms-ed-color-label { display: inline-flex; align-items: center; gap: 4px; color: var(--cms-ed-muted); }
|
|
203
|
+
.cms-ed-color input[type="color"] { width: 22px; height: 22px; padding: 0; border: 1px solid var(--cms-ed-line); border-radius: 5px; background: none; cursor: pointer; }
|
|
204
|
+
.cms-ed-bar-note { color: var(--cms-ed-muted); }
|
|
205
|
+
|
|
206
|
+
/* Đếm từ */
|
|
207
|
+
.cms-ed-stats { display: flex; gap: 12px; justify-content: flex-end; padding: 6px 0; border-top: 1px solid var(--cms-ed-line); font-size: 12px; color: var(--cms-ed-muted); }
|
|
208
|
+
|
|
209
|
+
/* Tab "Khối" (BlockInspector) */
|
|
210
|
+
.cms-ed-inspector { display: grid; gap: 14px; padding: 14px 16px; color: var(--cms-ed-fg); font-size: 13px; }
|
|
211
|
+
.cms-ed-inspector-empty { margin: 0; color: var(--cms-ed-muted); font-size: 13px; }
|
|
212
|
+
.cms-ed-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
213
|
+
.cms-ed-crumb { display: inline-flex; align-items: center; gap: 2px; }
|
|
214
|
+
.cms-ed-crumb button { border: 0; background: none; padding: 0 2px; color: var(--cms-ed-accent); font: inherit; cursor: pointer; }
|
|
215
|
+
.cms-ed-crumb button:hover { text-decoration: underline; }
|
|
216
|
+
.cms-ed-inspector-head { display: flex; gap: 10px; align-items: flex-start; }
|
|
217
|
+
.cms-ed-inspector-icon { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid var(--cms-ed-line); border-radius: 8px; color: var(--cms-ed-muted); }
|
|
218
|
+
.cms-ed-inspector-title { font-weight: 600; }
|
|
219
|
+
.cms-ed-inspector-desc { margin-top: 2px; color: var(--cms-ed-muted); font-size: 12px; }
|
|
220
|
+
.cms-ed-inspector-body { display: grid; gap: 12px; }
|
|
221
|
+
.cms-ed-inspector-layout { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
|
|
222
|
+
.cms-ed-inspector-layout .cms-ed-text-btn { white-space: nowrap; }
|
|
223
|
+
.cms-ed-inspector-row { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
224
|
+
.cms-ed-ifield { display: grid; gap: 4px; font-size: 12px; color: var(--cms-ed-muted); }
|
|
225
|
+
.cms-ed-ifield input, .cms-ed-ifield textarea, .cms-ed-ifield select { font: inherit; font-size: 13px; color: var(--cms-ed-fg); background: var(--cms-ed-panel); border: 1px solid var(--cms-ed-line); border-radius: 6px; padding: 6px 8px; }
|
|
226
|
+
.cms-ed-ifield :focus-visible, .cms-ed-inspector-actions button:focus-visible, .cms-ed-crumb button:focus-visible { outline: 2px solid var(--cms-ed-accent); outline-offset: 1px; }
|
|
227
|
+
.cms-ed-ifield .cms-ed-seg { justify-self: start; }
|
|
228
|
+
.cms-ed-inspector-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-top: 12px; border-top: 1px solid var(--cms-ed-line); }
|
|
229
|
+
.cms-ed-inspector-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--cms-ed-line); border-radius: 6px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); font: inherit; font-size: 12px; cursor: pointer; }
|
|
230
|
+
.cms-ed-inspector-actions button:hover { background: var(--cms-ed-hover); }
|
|
231
|
+
.cms-ed-inspector-actions button:disabled { opacity: .4; cursor: default; }
|
|
232
|
+
.cms-ed-inspector-actions button.is-danger { color: var(--cms-ed-danger); }
|
|
233
|
+
.cms-ed-block-settings.is-stacked { grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; }
|
|
234
|
+
|
|
235
|
+
/* Trình chèn (cột trái) */
|
|
236
|
+
.cms-ed-inserter { display: grid; gap: 12px; padding: 12px; color: var(--cms-ed-fg); }
|
|
237
|
+
.cms-ed-inserter-search { display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--cms-ed-line); border-radius: 8px; color: var(--cms-ed-muted); }
|
|
238
|
+
.cms-ed-inserter-search:focus-within { border-color: var(--cms-ed-accent); }
|
|
239
|
+
.cms-ed-inserter-search input { flex: 1; min-width: 0; height: 32px; border: 0; background: transparent; color: var(--cms-ed-fg); font: inherit; font-size: 13px; outline: none; }
|
|
240
|
+
.cms-ed-inserter-hint { margin: 0; font-size: 11px; color: var(--cms-ed-muted); }
|
|
241
|
+
.cms-ed-inserter-group h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--cms-ed-muted); }
|
|
242
|
+
.cms-ed-inserter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
|
|
243
|
+
.cms-ed-inserter-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 8px; background: transparent;
|
|
244
|
+
color: var(--cms-ed-fg); font: inherit; font-size: 12px; line-height: 1.25; text-align: center; cursor: grab; }
|
|
245
|
+
.cms-ed-inserter-item:hover, .cms-ed-inserter-item:focus-visible { background: var(--cms-ed-hover); color: var(--cms-ed-accent); outline: none; }
|
|
246
|
+
.cms-ed-inserter-item:focus-visible { box-shadow: inset 0 0 0 2px var(--cms-ed-accent); }
|
|
247
|
+
|
|
248
|
+
/* Cây khối (cột trái) */
|
|
249
|
+
.cms-ed-outline { display: grid; gap: 1px; padding: 12px 8px; color: var(--cms-ed-fg); font-size: 13px; }
|
|
250
|
+
.cms-ed-outline .cms-ed-inserter-hint { padding: 0 6px 6px; }
|
|
251
|
+
.cms-ed-outline-row { position: relative; display: flex; align-items: center; gap: 6px; min-height: 30px; padding-right: 6px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
|
|
252
|
+
.cms-ed-outline-row:hover { background: var(--cms-ed-hover); }
|
|
253
|
+
.cms-ed-outline-row:focus-visible { outline: 2px solid var(--cms-ed-accent); outline-offset: -2px; }
|
|
254
|
+
.cms-ed-outline-row.is-current { background: var(--cms-ed-accent-soft); color: var(--cms-ed-accent); }
|
|
255
|
+
.cms-ed-outline-row.is-drop-before::before, .cms-ed-outline-row.is-drop-after::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--cms-ed-accent); }
|
|
256
|
+
.cms-ed-outline-row.is-drop-before::before { top: -1px; }
|
|
257
|
+
.cms-ed-outline-row.is-drop-after::after { bottom: -1px; }
|
|
258
|
+
.cms-ed-outline-toggle { display: inline-flex; width: 14px; justify-content: center; color: var(--cms-ed-muted); }
|
|
259
|
+
.cms-ed-outline-title { flex-shrink: 0; }
|
|
260
|
+
.cms-ed-outline-row.is-current .cms-ed-outline-preview { color: inherit; }
|
|
261
|
+
.cms-ed-outline-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--cms-ed-muted); font-size: 12px; }
|
|
262
|
+
.cms-ed-inspector-panel { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--cms-ed-line); }
|
|
263
|
+
.cms-ed-inspector-panel h4 { margin: 0; font-size: 12px; font-weight: 600; }
|
|
264
|
+
|
|
265
|
+
/* Tab Cài đặt / Kiểu dáng của khối */
|
|
266
|
+
.cms-ed-inspector-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--cms-ed-hover); }
|
|
267
|
+
.cms-ed-inspector-tabs button { flex: 1; border: 0; border-radius: 6px; padding: 5px 8px; background: transparent; color: var(--cms-ed-fg); font: inherit; font-size: 12px; cursor: pointer; }
|
|
268
|
+
.cms-ed-inspector-tabs button.is-active { background: var(--cms-ed-panel); color: var(--cms-ed-fg); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
|
|
269
|
+
.cms-ed-inspector-tabs button:focus-visible { outline: 2px solid var(--cms-ed-accent); outline-offset: 1px; }
|
|
270
|
+
.cms-ed-style { display: grid; gap: 4px; }
|
|
271
|
+
.cms-ed-style-panel { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--cms-ed-line); }
|
|
272
|
+
.cms-ed-style-panel-head { position: relative; display: flex; align-items: center; }
|
|
273
|
+
.cms-ed-style-panel-head h4 { flex: 1; margin: 0; font-size: 13px; font-weight: 600; color: var(--cms-ed-fg); }
|
|
274
|
+
.cms-ed-style-menu { top: 30px; left: auto; right: 0; min-width: 200px; }
|
|
275
|
+
.cms-ed-style-menu .cms-ed-menu-item { justify-content: space-between; }
|
|
276
|
+
.cms-ed-style-input.is-invalid { border-color: var(--cms-ed-danger) !important; }
|
|
277
|
+
.cms-ed-inherit { font-size: 11px; color: var(--cms-ed-muted); }
|
|
278
|
+
.cms-ed-device-tag { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--cms-ed-accent-soft); color: var(--cms-ed-accent); font-style: normal; font-size: 10px; }
|
|
279
|
+
.cms-ed-color { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
280
|
+
.cms-ed-swatch { width: 22px; height: 22px; padding: 0; border: 1px solid var(--cms-ed-line); border-radius: 50%; cursor: pointer; }
|
|
281
|
+
.cms-ed-swatch.is-active { outline: 2px solid var(--cms-ed-accent); outline-offset: 1px; }
|
|
282
|
+
.cms-ed-color input[type="color"] { width: 26px; height: 24px; padding: 0 !important; border: 1px solid var(--cms-ed-line); border-radius: 6px; background: transparent; cursor: pointer; }
|
|
283
|
+
.cms-ed-box { display: grid; gap: 6px; }
|
|
284
|
+
.cms-ed-box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
285
|
+
.cms-ed-box-head > span:first-child { flex-basis: 100%; }
|
|
286
|
+
.cms-ed-seg.is-compact .cms-ed-seg-btn { padding: 2px 5px; font-size: 11px; }
|
|
287
|
+
.cms-ed-box-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
288
|
+
.cms-ed-box-sides label { display: grid; gap: 2px; font-size: 11px; }
|
|
289
|
+
.cms-ed-box-sides input { min-width: 0; }
|
|
290
|
+
|
|
291
|
+
/* Bộ khối cơ bản: xem trước trong trình soạn */
|
|
292
|
+
.cms-ed-spacer { border: 1px dashed var(--cms-ed-line); border-radius: 6px; background: repeating-linear-gradient(45deg, transparent 0 6px, var(--cms-ed-hover) 6px 12px); }
|
|
293
|
+
.cms-ed-cover { position: relative; display: flex; align-items: center; padding: 24px; border-radius: 8px; overflow: hidden; color: #fff; background: #3f3f46 center / cover; }
|
|
294
|
+
.cms-ed-cover-overlay { position: absolute; inset: 0; pointer-events: none; }
|
|
295
|
+
.cms-ed-cover-inner { position: relative; width: 100%; }
|
|
296
|
+
.cms-ed-media-text { display: grid; gap: 16px; align-items: center; }
|
|
297
|
+
.cms-ed-media-text-media { display: grid; place-items: center; min-height: 120px; border-radius: 8px; background: var(--cms-ed-hover); color: var(--cms-ed-muted); overflow: hidden; }
|
|
298
|
+
.cms-ed-media-text-media img { display: block; width: 100%; height: auto; }
|
|
299
|
+
.cms-ed-pullquote { margin: 0; padding: 16px 0; border-block: 3px solid currentColor; text-align: center; font-size: 1.3em; }
|
|
300
|
+
.cms-ed-pullquote figcaption { margin-top: 8px; font-size: 12px; text-transform: uppercase; color: var(--cms-ed-muted); }
|
|
301
|
+
.cms-ed-details { padding: 8px 12px; border: 1px solid var(--cms-ed-line); border-radius: 8px; }
|
|
302
|
+
.cms-ed-details-summary { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-weight: 600; }
|
|
303
|
+
.cms-ed-html-src { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--cms-ed-code-bg); color: #f4f4f5; font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; max-height: 240px; overflow: auto; }
|
|
304
|
+
.cms-ed-hint-text { display: block; margin-top: 4px; font-size: 11px; color: var(--cms-ed-muted); }
|
|
305
|
+
.cms-ed-toc { padding: 10px 12px; border: 1px solid var(--cms-ed-line); border-radius: 8px; }
|
|
306
|
+
.cms-ed-toc small { color: var(--cms-ed-muted); }
|
|
307
|
+
.cms-ed-social { display: grid; gap: 6px; }
|
|
308
|
+
.cms-ed-social-row { display: flex; gap: 6px; }
|
|
309
|
+
.cms-ed-social-row select, .cms-ed-social-row input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--cms-ed-line); border-radius: 6px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); }
|
|
310
|
+
.cms-ed-social-row input { flex: 1; min-width: 0; }
|
|
311
|
+
.cms-ed-social-row button { border: 0; background: transparent; color: var(--cms-ed-muted); cursor: pointer; }
|
|
312
|
+
.cms-ed-pre { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 10px 12px; border-radius: 6px; background: var(--cms-ed-hover); }
|
|
313
|
+
.cms-ed-media-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
314
|
+
.cms-ed-media-field img { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; }
|
|
315
|
+
.cms-ed-social > .cms-ed-text-btn { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
|
|
316
|
+
|
|
317
|
+
/* Nâng cao (neo, class) + biến thể */
|
|
318
|
+
.cms-ed-advanced > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--cms-ed-fg); }
|
|
319
|
+
.cms-ed-advanced[open] > summary { margin-bottom: 8px; }
|
|
320
|
+
.cms-ed-advanced small { font-size: 11px; color: var(--cms-ed-muted); }
|
|
321
|
+
.cms-ed-advanced input.is-invalid { border-color: var(--cms-ed-danger); }
|
|
322
|
+
.cms-ed-variants .cms-ed-seg { flex-wrap: wrap; }
|
|
323
|
+
|
|
324
|
+
/* Tab Mẫu của trình chèn */
|
|
325
|
+
.cms-ed-inserter > .cms-ed-inspector-tabs { margin-bottom: 8px; }
|
|
326
|
+
.cms-ed-pattern-list { display: grid; gap: 10px; }
|
|
327
|
+
.cms-ed-pattern { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--cms-ed-line); border-radius: 8px; background: var(--cms-ed-panel); color: var(--cms-ed-fg); cursor: pointer; text-align: left; font: inherit; }
|
|
328
|
+
.cms-ed-pattern:hover, .cms-ed-pattern:focus-visible { border-color: var(--cms-ed-accent); outline: none; box-shadow: 0 0 0 2px var(--cms-ed-accent-soft); }
|
|
329
|
+
.cms-ed-pattern-preview { position: relative; height: 120px; overflow: hidden; border-radius: 6px; background: #fff; color: #18181b; pointer-events: none; }
|
|
330
|
+
.cms-ed-pattern-canvas { position: absolute; top: 0; left: 0; width: 333%; padding: 24px; transform: scale(.3); transform-origin: top left; font-size: 16px; line-height: 1.6; }
|
|
331
|
+
.cms-ed-pattern-title { font-size: 12px; font-weight: 600; }
|
|
332
|
+
|
|
333
|
+
/* Bảng: chân bảng, cố định độ rộng cột */
|
|
334
|
+
.cms-ed-content :is(table[data-footer], [data-footer] table) tr:last-child > td { font-weight: 600; background: var(--cms-ed-hover); }
|
|
335
|
+
.cms-ed-content :is(table[data-fixed], [data-fixed] table) { table-layout: fixed; }
|
|
336
|
+
|
|
337
|
+
/* Mẫu đồng bộ: khung tím nhạt, thanh tên + "Sửa mẫu gốc" / "Tách ra", nội dung chỉ xem */
|
|
338
|
+
.cms-ed-pattern-synced { margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 600; background: color-mix(in srgb, #7c3aed 14%, transparent); color: #7c3aed; }
|
|
339
|
+
.cms-ed-synced { position: relative; margin: 8px 0; border: 1px dashed color-mix(in srgb, #7c3aed 55%, transparent); border-radius: 6px; }
|
|
340
|
+
.cms-ed-synced.is-selected { outline: 2px solid #7c3aed; outline-offset: 2px; }
|
|
341
|
+
.cms-ed-synced-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; color: #7c3aed; border-bottom: 1px dashed color-mix(in srgb, #7c3aed 35%, transparent); user-select: none; }
|
|
342
|
+
.cms-ed-synced-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
|
|
343
|
+
.cms-ed-synced-bar button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
|
|
344
|
+
.cms-ed-synced-bar button:hover, .cms-ed-synced-bar button:focus-visible { background: color-mix(in srgb, #7c3aed 12%, transparent); }
|
|
345
|
+
.cms-ed-synced-preview { padding: 8px 12px; pointer-events: none; }
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { getSchema, type AnyExtension } from "@tiptap/core";
|
|
2
|
+
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
3
|
+
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit";
|
|
5
|
+
import TextAlign from "@tiptap/extension-text-align";
|
|
6
|
+
import Youtube from "@tiptap/extension-youtube";
|
|
7
|
+
import { Table, TableKit } from "@tiptap/extension-table";
|
|
8
|
+
import { TaskItem, TaskList } from "@tiptap/extension-list";
|
|
9
|
+
import Subscript from "@tiptap/extension-subscript";
|
|
10
|
+
import Superscript from "@tiptap/extension-superscript";
|
|
11
|
+
import Highlight from "@tiptap/extension-highlight";
|
|
12
|
+
import { Color, TextStyle } from "@tiptap/extension-text-style";
|
|
13
|
+
import { AudioNode, CmsImage, EditorContext, FileNode, Gallery, VideoNode } from "./nodes";
|
|
14
|
+
import { SyncedPattern } from "./synced";
|
|
15
|
+
import { UnknownBlock, UnknownInline, UnknownMark } from "./unknown";
|
|
16
|
+
import { layoutExtensions } from "./layout";
|
|
17
|
+
import { BlockStyleAttr } from "./styleattr";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Mọi khối + định dạng lõi mà trình soạn hiểu — khớp với định dạng nội dung của CMS (@ecomcx/ecomweb-content CORE_NODES/CORE_MARKS):
|
|
21
|
+
* mọi thứ website vẽ được thì trình soạn mở và lưu lại được. Dùng chung cho Editor và test hợp đồng.
|
|
22
|
+
*/
|
|
23
|
+
export function coreExtensions(): AnyExtension[] {
|
|
24
|
+
return [
|
|
25
|
+
// Link: không tự gắn rel="nofollow"/tab mới cho mọi liên kết (mặc định của TipTap) — website/plugin SEO quyết định theo tên miền
|
|
26
|
+
StarterKit.configure({ heading: { levels: [2, 3, 4] }, link: { openOnClick: false, autolink: true, HTMLAttributes: { target: null, rel: null } } }),
|
|
27
|
+
CmsImage, Gallery, VideoNode, AudioNode, FileNode, EditorContext, SyncedPattern,
|
|
28
|
+
TextAlign.configure({ types: ["heading", "paragraph"] }),
|
|
29
|
+
Youtube.configure({ nocookie: true }),
|
|
30
|
+
TableKit.configure({ table: false }),
|
|
31
|
+
// Bảng: chân bảng (hàng cuối → <tfoot> trên website) + cố định độ rộng cột
|
|
32
|
+
Table.extend({
|
|
33
|
+
addAttributes() {
|
|
34
|
+
const flag = (name: string) => ({ default: false, parseHTML: (el: HTMLElement) => el.hasAttribute(`data-${name}`), renderHTML: (a: Record<string, unknown>) => (a[name] ? { [`data-${name}`]: "" } : {}) });
|
|
35
|
+
return { ...this.parent?.(), footer: flag("footer"), fixed: flag("fixed") };
|
|
36
|
+
},
|
|
37
|
+
// Bảng dùng node view riêng (không nhận thuộc tính HTML) → gắn data-footer / data-fixed lên khung bảng bằng decoration
|
|
38
|
+
addProseMirrorPlugins() {
|
|
39
|
+
return [...(this.parent?.() ?? []), new Plugin({
|
|
40
|
+
key: new PluginKey("cmsTableFlags"),
|
|
41
|
+
props: {
|
|
42
|
+
decorations: (state) => {
|
|
43
|
+
const decos: Decoration[] = [];
|
|
44
|
+
state.doc.descendants((node, pos) => {
|
|
45
|
+
if (node.type.name !== "table") return;
|
|
46
|
+
const attrs: Record<string, string> = {};
|
|
47
|
+
if (node.attrs.footer) attrs["data-footer"] = "";
|
|
48
|
+
if (node.attrs.fixed) attrs["data-fixed"] = "";
|
|
49
|
+
if (Object.keys(attrs).length) decos.push(Decoration.node(pos, pos + node.nodeSize, attrs));
|
|
50
|
+
return false;
|
|
51
|
+
});
|
|
52
|
+
return DecorationSet.create(state.doc, decos);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
})];
|
|
56
|
+
},
|
|
57
|
+
}).configure({ resizable: false }),
|
|
58
|
+
TaskList, TaskItem.configure({ nested: true }),
|
|
59
|
+
Subscript, Superscript, Highlight.configure({ multicolor: true }), TextStyle, Color,
|
|
60
|
+
...layoutExtensions(),
|
|
61
|
+
UnknownBlock, UnknownInline, UnknownMark,
|
|
62
|
+
BlockStyleAttr,
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const known = new Map<string, { nodes: Set<string>; marks: Set<string> }>();
|
|
67
|
+
|
|
68
|
+
/** Tên khối / định dạng mà trình soạn (lõi + gói mở rộng đang đăng ký) hiểu được. */
|
|
69
|
+
export function knownTypes(extra: AnyExtension[] = []): { nodes: Set<string>; marks: Set<string> } {
|
|
70
|
+
const key = extra.map((e) => e.name).sort().join(",");
|
|
71
|
+
let hit = known.get(key);
|
|
72
|
+
if (!hit) {
|
|
73
|
+
const schema = getSchema([...coreExtensions(), ...extra]);
|
|
74
|
+
hit = { nodes: new Set(Object.keys(schema.nodes)), marks: new Set(Object.keys(schema.marks)) };
|
|
75
|
+
known.set(key, hit);
|
|
76
|
+
}
|
|
77
|
+
return hit;
|
|
78
|
+
}
|