@sparrowengg/twigs-editor-react 0.0.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 +38 -0
- package/dist/cjs/_virtual/_commonjsHelpers.js +8 -0
- package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/cjs/_virtual/assertString.js +6 -0
- package/dist/cjs/_virtual/assertString.js.map +1 -0
- package/dist/cjs/_virtual/isFQDN.js +6 -0
- package/dist/cjs/_virtual/isFQDN.js.map +1 -0
- package/dist/cjs/_virtual/isIP.js +6 -0
- package/dist/cjs/_virtual/isIP.js.map +1 -0
- package/dist/cjs/_virtual/isURL.js +12 -0
- package/dist/cjs/_virtual/isURL.js.map +1 -0
- package/dist/cjs/_virtual/isURL2.js +6 -0
- package/dist/cjs/_virtual/isURL2.js.map +1 -0
- package/dist/cjs/_virtual/merge.js +6 -0
- package/dist/cjs/_virtual/merge.js.map +1 -0
- package/dist/cjs/components/base-dropdown/index.js +175 -0
- package/dist/cjs/components/base-dropdown/index.js.map +1 -0
- package/dist/cjs/components/dialog-link-editor/index.js +291 -0
- package/dist/cjs/components/dialog-link-editor/index.js.map +1 -0
- package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +199 -0
- package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
- package/dist/cjs/components/dialog-link-editor/link-tooltip.js +122 -0
- package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -0
- package/dist/cjs/components/floating-toolbar/floating-toolbar.js +302 -0
- package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -0
- package/dist/cjs/components/rich-editor/index.js +142 -0
- package/dist/cjs/components/rich-editor/index.js.map +1 -0
- package/dist/cjs/components/toolbar/toolbar.js +76 -0
- package/dist/cjs/components/toolbar/toolbar.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/bold.js +52 -0
- package/dist/cjs/components/toolbar/tools/bold.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/code-block.js +79 -0
- package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/code.js +54 -0
- package/dist/cjs/components/toolbar/tools/code.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/commons.js +16 -0
- package/dist/cjs/components/toolbar/tools/commons.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/format.js +136 -0
- package/dist/cjs/components/toolbar/tools/format.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/italic.js +57 -0
- package/dist/cjs/components/toolbar/tools/italic.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/link.js +71 -0
- package/dist/cjs/components/toolbar/tools/link.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/ordered-list.js +62 -0
- package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/text-align.js +82 -0
- package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/underline.js +57 -0
- package/dist/cjs/components/toolbar/tools/underline.js.map +1 -0
- package/dist/cjs/components/toolbar/tools/unordered-list.js +62 -0
- package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -0
- package/dist/cjs/components/toolbar-context/context.js +148 -0
- package/dist/cjs/components/toolbar-context/context.js.map +1 -0
- package/dist/cjs/components/toolbar-context/store.js +75 -0
- package/dist/cjs/components/toolbar-context/store.js.map +1 -0
- package/dist/cjs/components/toolbar-context/utils.js +6 -0
- package/dist/cjs/components/toolbar-context/utils.js.map +1 -0
- package/dist/cjs/editor.js +154 -0
- package/dist/cjs/editor.js.map +1 -0
- package/dist/cjs/index.js +86 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/nodes/emoji.js +86 -0
- package/dist/cjs/nodes/emoji.js.map +1 -0
- package/dist/cjs/nodes/hashtag.js +109 -0
- package/dist/cjs/nodes/hashtag.js.map +1 -0
- package/dist/cjs/nodes/image.js +215 -0
- package/dist/cjs/nodes/image.js.map +1 -0
- package/dist/cjs/nodes/kudos.js +110 -0
- package/dist/cjs/nodes/kudos.js.map +1 -0
- package/dist/cjs/nodes/mention.js +109 -0
- package/dist/cjs/nodes/mention.js.map +1 -0
- package/dist/cjs/nodes/variables.js +109 -0
- package/dist/cjs/nodes/variables.js.map +1 -0
- package/dist/cjs/plugins/data-management-plugin/index.js +40 -0
- package/dist/cjs/plugins/data-management-plugin/index.js.map +1 -0
- package/dist/cjs/plugins/emoji/emoji-list.js +16609 -0
- package/dist/cjs/plugins/emoji/emoji-list.js.map +1 -0
- package/dist/cjs/plugins/emoji/index.js +126 -0
- package/dist/cjs/plugins/emoji/index.js.map +1 -0
- package/dist/cjs/plugins/hashtag/index.js +100 -0
- package/dist/cjs/plugins/hashtag/index.js.map +1 -0
- package/dist/cjs/plugins/images/index.js +164 -0
- package/dist/cjs/plugins/images/index.js.map +1 -0
- package/dist/cjs/plugins/images/utils.js +10 -0
- package/dist/cjs/plugins/images/utils.js.map +1 -0
- package/dist/cjs/plugins/link/auto-link.js +21 -0
- package/dist/cjs/plugins/link/auto-link.js.map +1 -0
- package/dist/cjs/plugins/link/convert-selection-on-paste.js +34 -0
- package/dist/cjs/plugins/link/convert-selection-on-paste.js.map +1 -0
- package/dist/cjs/plugins/link/link.js +68 -0
- package/dist/cjs/plugins/link/link.js.map +1 -0
- package/dist/cjs/plugins/mentions/index.js +108 -0
- package/dist/cjs/plugins/mentions/index.js.map +1 -0
- package/dist/cjs/plugins/tab-focus/index.js +54 -0
- package/dist/cjs/plugins/tab-focus/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +8 -0
- package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/cjs/react-components/dist/es/_virtual/index.js +6 -0
- package/dist/cjs/react-components/dist/es/_virtual/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/_virtual/index2.js +6 -0
- package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +1 -0
- package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +6 -0
- package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
- package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +6 -0
- package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
- package/dist/cjs/react-components/dist/es/box/box.js +47 -0
- package/dist/cjs/react-components/dist/es/box/box.js.map +1 -0
- package/dist/cjs/react-components/dist/es/button/button.js +774 -0
- package/dist/cjs/react-components/dist/es/button/button.js.map +1 -0
- package/dist/cjs/react-components/dist/es/button/icon-button.js +77 -0
- package/dist/cjs/react-components/dist/es/button/icon-button.js.map +1 -0
- package/dist/cjs/react-components/dist/es/button/side-element.js +199 -0
- package/dist/cjs/react-components/dist/es/button/side-element.js.map +1 -0
- package/dist/cjs/react-components/dist/es/button/utils.js +105 -0
- package/dist/cjs/react-components/dist/es/button/utils.js.map +1 -0
- package/dist/cjs/react-components/dist/es/dialog/dialog.js +197 -0
- package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +1 -0
- package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +195 -0
- package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +1 -0
- package/dist/cjs/react-components/dist/es/flex/flex.js +98 -0
- package/dist/cjs/react-components/dist/es/flex/flex.js.map +1 -0
- package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +76 -0
- package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
- package/dist/cjs/react-components/dist/es/form-label/form-label.js +176 -0
- package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +1 -0
- package/dist/cjs/react-components/dist/es/input/form-input.js +159 -0
- package/dist/cjs/react-components/dist/es/input/form-input.js.map +1 -0
- package/dist/cjs/react-components/dist/es/input/input.js +377 -0
- package/dist/cjs/react-components/dist/es/input/input.js.map +1 -0
- package/dist/cjs/react-components/dist/es/link/link.js +58 -0
- package/dist/cjs/react-components/dist/es/link/link.js.map +1 -0
- package/dist/cjs/react-components/dist/es/loader/circle.js +204 -0
- package/dist/cjs/react-components/dist/es/loader/circle.js.map +1 -0
- package/dist/cjs/react-components/dist/es/loader/line.js +130 -0
- package/dist/cjs/react-components/dist/es/loader/line.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +14 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
- package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +788 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +612 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +299 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +146 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +148 -0
- package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +14 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +41 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +102 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +354 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +33 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +303 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +48 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +37 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +47 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +847 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +309 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +142 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +65 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +246 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +104 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +509 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +68 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +58 -0
- package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +9 -0
- package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +134 -0
- package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +19 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +17 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +27 -0
- package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +11 -0
- package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +102 -0
- package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +118 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +77 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +628 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +35 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +24 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +14 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +193 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +29 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +22 -0
- package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +419 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +637 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +10 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +10 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +25 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +8 -0
- package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +55 -0
- package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +25 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
- package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +9 -0
- package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +97 -0
- package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
- package/dist/cjs/react-components/dist/es/stitches.config.js +392 -0
- package/dist/cjs/react-components/dist/es/stitches.config.js.map +1 -0
- package/dist/cjs/react-components/dist/es/text/text.js +117 -0
- package/dist/cjs/react-components/dist/es/text/text.js.map +1 -0
- package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +156 -0
- package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +1 -0
- package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +10 -0
- package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +9 -0
- package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js +75 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js +58 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js +163 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js +16 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js +17 -0
- package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js +93 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js +75 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js +182 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js +32 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js +33 -0
- package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/bold.js +86 -0
- package/dist/cjs/react-icons/dist/es/icons/bold.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/close.js +86 -0
- package/dist/cjs/react-icons/dist/es/icons/close.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/code-block.js +78 -0
- package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/code.js +96 -0
- package/dist/cjs/react-icons/dist/es/icons/code.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/delete.js +116 -0
- package/dist/cjs/react-icons/dist/es/icons/delete.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/italics.js +96 -0
- package/dist/cjs/react-icons/dist/es/icons/italics.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/link.js +86 -0
- package/dist/cjs/react-icons/dist/es/icons/link.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +86 -0
- package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/pencil.js +86 -0
- package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +74 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +74 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +74 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +74 -0
- package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/text-format.js +78 -0
- package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/underline.js +77 -0
- package/dist/cjs/react-icons/dist/es/icons/underline.js.map +1 -0
- package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +126 -0
- package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +1 -0
- package/dist/cjs/utils/commands.js +8 -0
- package/dist/cjs/utils/commands.js.map +1 -0
- package/dist/cjs/utils/get-dom-range-rect.js +19 -0
- package/dist/cjs/utils/get-dom-range-rect.js.map +1 -0
- package/dist/cjs/utils/get-selected-node.js +21 -0
- package/dist/cjs/utils/get-selected-node.js.map +1 -0
- package/dist/cjs/utils/prefix-class-name.js +10 -0
- package/dist/cjs/utils/prefix-class-name.js.map +1 -0
- package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js +30 -0
- package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
- package/dist/cjs/utils/set-floating-elem-position.js +33 -0
- package/dist/cjs/utils/set-floating-elem-position.js.map +1 -0
- package/dist/cjs/utils/use-node-focus.js +35 -0
- package/dist/cjs/utils/use-node-focus.js.map +1 -0
- package/dist/es/_virtual/_commonjsHelpers.js +6 -0
- package/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/es/_virtual/assertString.js +4 -0
- package/dist/es/_virtual/assertString.js.map +1 -0
- package/dist/es/_virtual/isFQDN.js +4 -0
- package/dist/es/_virtual/isFQDN.js.map +1 -0
- package/dist/es/_virtual/isIP.js +4 -0
- package/dist/es/_virtual/isIP.js.map +1 -0
- package/dist/es/_virtual/isURL.js +8 -0
- package/dist/es/_virtual/isURL.js.map +1 -0
- package/dist/es/_virtual/isURL2.js +4 -0
- package/dist/es/_virtual/isURL2.js.map +1 -0
- package/dist/es/_virtual/merge.js +4 -0
- package/dist/es/_virtual/merge.js.map +1 -0
- package/dist/es/components/base-dropdown/index.js +173 -0
- package/dist/es/components/base-dropdown/index.js.map +1 -0
- package/dist/es/components/dialog-link-editor/index.js +289 -0
- package/dist/es/components/dialog-link-editor/index.js.map +1 -0
- package/dist/es/components/dialog-link-editor/link-editor-dialog.js +197 -0
- package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
- package/dist/es/components/dialog-link-editor/link-tooltip.js +120 -0
- package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -0
- package/dist/es/components/floating-toolbar/floating-toolbar.js +300 -0
- package/dist/es/components/floating-toolbar/floating-toolbar.js.map +1 -0
- package/dist/es/components/rich-editor/index.js +140 -0
- package/dist/es/components/rich-editor/index.js.map +1 -0
- package/dist/es/components/toolbar/toolbar.js +74 -0
- package/dist/es/components/toolbar/toolbar.js.map +1 -0
- package/dist/es/components/toolbar/tools/bold.js +50 -0
- package/dist/es/components/toolbar/tools/bold.js.map +1 -0
- package/dist/es/components/toolbar/tools/code-block.js +77 -0
- package/dist/es/components/toolbar/tools/code-block.js.map +1 -0
- package/dist/es/components/toolbar/tools/code.js +52 -0
- package/dist/es/components/toolbar/tools/code.js.map +1 -0
- package/dist/es/components/toolbar/tools/commons.js +14 -0
- package/dist/es/components/toolbar/tools/commons.js.map +1 -0
- package/dist/es/components/toolbar/tools/format.js +134 -0
- package/dist/es/components/toolbar/tools/format.js.map +1 -0
- package/dist/es/components/toolbar/tools/italic.js +55 -0
- package/dist/es/components/toolbar/tools/italic.js.map +1 -0
- package/dist/es/components/toolbar/tools/link.js +69 -0
- package/dist/es/components/toolbar/tools/link.js.map +1 -0
- package/dist/es/components/toolbar/tools/ordered-list.js +60 -0
- package/dist/es/components/toolbar/tools/ordered-list.js.map +1 -0
- package/dist/es/components/toolbar/tools/text-align.js +80 -0
- package/dist/es/components/toolbar/tools/text-align.js.map +1 -0
- package/dist/es/components/toolbar/tools/underline.js +55 -0
- package/dist/es/components/toolbar/tools/underline.js.map +1 -0
- package/dist/es/components/toolbar/tools/unordered-list.js +60 -0
- package/dist/es/components/toolbar/tools/unordered-list.js.map +1 -0
- package/dist/es/components/toolbar-context/context.js +145 -0
- package/dist/es/components/toolbar-context/context.js.map +1 -0
- package/dist/es/components/toolbar-context/store.js +72 -0
- package/dist/es/components/toolbar-context/store.js.map +1 -0
- package/dist/es/components/toolbar-context/utils.js +4 -0
- package/dist/es/components/toolbar-context/utils.js.map +1 -0
- package/dist/es/editor.js +152 -0
- package/dist/es/editor.js.map +1 -0
- package/dist/es/index.js +34 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/nodes/emoji.js +82 -0
- package/dist/es/nodes/emoji.js.map +1 -0
- package/dist/es/nodes/hashtag.js +105 -0
- package/dist/es/nodes/hashtag.js.map +1 -0
- package/dist/es/nodes/image.js +211 -0
- package/dist/es/nodes/image.js.map +1 -0
- package/dist/es/nodes/kudos.js +106 -0
- package/dist/es/nodes/kudos.js.map +1 -0
- package/dist/es/nodes/mention.js +105 -0
- package/dist/es/nodes/mention.js.map +1 -0
- package/dist/es/nodes/variables.js +105 -0
- package/dist/es/nodes/variables.js.map +1 -0
- package/dist/es/plugins/data-management-plugin/index.js +38 -0
- package/dist/es/plugins/data-management-plugin/index.js.map +1 -0
- package/dist/es/plugins/emoji/emoji-list.js +16605 -0
- package/dist/es/plugins/emoji/emoji-list.js.map +1 -0
- package/dist/es/plugins/emoji/index.js +124 -0
- package/dist/es/plugins/emoji/index.js.map +1 -0
- package/dist/es/plugins/hashtag/index.js +98 -0
- package/dist/es/plugins/hashtag/index.js.map +1 -0
- package/dist/es/plugins/images/index.js +162 -0
- package/dist/es/plugins/images/index.js.map +1 -0
- package/dist/es/plugins/images/utils.js +7 -0
- package/dist/es/plugins/images/utils.js.map +1 -0
- package/dist/es/plugins/link/auto-link.js +19 -0
- package/dist/es/plugins/link/auto-link.js.map +1 -0
- package/dist/es/plugins/link/convert-selection-on-paste.js +32 -0
- package/dist/es/plugins/link/convert-selection-on-paste.js.map +1 -0
- package/dist/es/plugins/link/link.js +66 -0
- package/dist/es/plugins/link/link.js.map +1 -0
- package/dist/es/plugins/mentions/index.js +106 -0
- package/dist/es/plugins/mentions/index.js.map +1 -0
- package/dist/es/plugins/tab-focus/index.js +52 -0
- package/dist/es/plugins/tab-focus/index.js.map +1 -0
- package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +6 -0
- package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/es/react-components/dist/es/_virtual/index.js +4 -0
- package/dist/es/react-components/dist/es/_virtual/index.js.map +1 -0
- package/dist/es/react-components/dist/es/_virtual/index2.js +4 -0
- package/dist/es/react-components/dist/es/_virtual/index2.js.map +1 -0
- package/dist/es/react-components/dist/es/_virtual/react-is.development.js +4 -0
- package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
- package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +4 -0
- package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
- package/dist/es/react-components/dist/es/box/box.js +45 -0
- package/dist/es/react-components/dist/es/box/box.js.map +1 -0
- package/dist/es/react-components/dist/es/button/button.js +772 -0
- package/dist/es/react-components/dist/es/button/button.js.map +1 -0
- package/dist/es/react-components/dist/es/button/icon-button.js +75 -0
- package/dist/es/react-components/dist/es/button/icon-button.js.map +1 -0
- package/dist/es/react-components/dist/es/button/side-element.js +197 -0
- package/dist/es/react-components/dist/es/button/side-element.js.map +1 -0
- package/dist/es/react-components/dist/es/button/utils.js +100 -0
- package/dist/es/react-components/dist/es/button/utils.js.map +1 -0
- package/dist/es/react-components/dist/es/dialog/dialog.js +193 -0
- package/dist/es/react-components/dist/es/dialog/dialog.js.map +1 -0
- package/dist/es/react-components/dist/es/dropdown/dropdown.js +190 -0
- package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +1 -0
- package/dist/es/react-components/dist/es/flex/flex.js +96 -0
- package/dist/es/react-components/dist/es/flex/flex.js.map +1 -0
- package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +74 -0
- package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
- package/dist/es/react-components/dist/es/form-label/form-label.js +174 -0
- package/dist/es/react-components/dist/es/form-label/form-label.js.map +1 -0
- package/dist/es/react-components/dist/es/input/form-input.js +157 -0
- package/dist/es/react-components/dist/es/input/form-input.js.map +1 -0
- package/dist/es/react-components/dist/es/input/input.js +374 -0
- package/dist/es/react-components/dist/es/input/input.js.map +1 -0
- package/dist/es/react-components/dist/es/link/link.js +56 -0
- package/dist/es/react-components/dist/es/link/link.js.map +1 -0
- package/dist/es/react-components/dist/es/loader/circle.js +202 -0
- package/dist/es/react-components/dist/es/loader/circle.js.map +1 -0
- package/dist/es/react-components/dist/es/loader/line.js +128 -0
- package/dist/es/react-components/dist/es/loader/line.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
- package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +777 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +600 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +269 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +123 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +129 -0
- package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +318 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +254 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +25 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +796 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +280 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +36 -0
- package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +6 -0
- package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +132 -0
- package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +15 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +13 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +23 -0
- package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +100 -0
- package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +116 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +31 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +12 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +191 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +27 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +20 -0
- package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
- package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
- package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +415 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +628 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +6 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +22 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +6 -0
- package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +52 -0
- package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +23 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
- package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +4 -0
- package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +95 -0
- package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
- package/dist/es/react-components/dist/es/stitches.config.js +379 -0
- package/dist/es/react-components/dist/es/stitches.config.js.map +1 -0
- package/dist/es/react-components/dist/es/text/text.js +115 -0
- package/dist/es/react-components/dist/es/text/text.js.map +1 -0
- package/dist/es/react-components/dist/es/tooltip/tooltip.js +153 -0
- package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +1 -0
- package/dist/es/react-components/dist/es/utils/prefix-class-name.js +8 -0
- package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
- package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +4 -0
- package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js +71 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js +54 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js +159 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js +12 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js +13 -0
- package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js +91 -0
- package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/lib/isIP.js +73 -0
- package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/lib/isURL.js +180 -0
- package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js +30 -0
- package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
- package/dist/es/react-editor/node_modules/validator/lib/util/merge.js +31 -0
- package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/bold.js +84 -0
- package/dist/es/react-icons/dist/es/icons/bold.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/close.js +84 -0
- package/dist/es/react-icons/dist/es/icons/close.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/code-block.js +76 -0
- package/dist/es/react-icons/dist/es/icons/code-block.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/code.js +94 -0
- package/dist/es/react-icons/dist/es/icons/code.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/delete.js +114 -0
- package/dist/es/react-icons/dist/es/icons/delete.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/italics.js +94 -0
- package/dist/es/react-icons/dist/es/icons/italics.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/link.js +84 -0
- package/dist/es/react-icons/dist/es/icons/link.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/ordered-list.js +84 -0
- package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/pencil.js +84 -0
- package/dist/es/react-icons/dist/es/icons/pencil.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/text-align-center.js +72 -0
- package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/text-align-justify.js +72 -0
- package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/text-align-left.js +72 -0
- package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/text-align-right.js +72 -0
- package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/text-format.js +76 -0
- package/dist/es/react-icons/dist/es/icons/text-format.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/underline.js +75 -0
- package/dist/es/react-icons/dist/es/icons/underline.js.map +1 -0
- package/dist/es/react-icons/dist/es/icons/unordered-list.js +124 -0
- package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +1 -0
- package/dist/es/utils/commands.js +6 -0
- package/dist/es/utils/commands.js.map +1 -0
- package/dist/es/utils/get-dom-range-rect.js +17 -0
- package/dist/es/utils/get-dom-range-rect.js.map +1 -0
- package/dist/es/utils/get-selected-node.js +19 -0
- package/dist/es/utils/get-selected-node.js.map +1 -0
- package/dist/es/utils/prefix-class-name.js +8 -0
- package/dist/es/utils/prefix-class-name.js.map +1 -0
- package/dist/es/utils/set-floating-elem-position-for-link-editor.js +28 -0
- package/dist/es/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
- package/dist/es/utils/set-floating-elem-position.js +31 -0
- package/dist/es/utils/set-floating-elem-position.js.map +1 -0
- package/dist/es/utils/use-node-focus.js +33 -0
- package/dist/es/utils/use-node-focus.js.map +1 -0
- package/dist/index.d.ts +445 -0
- package/package.json +151 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
2
|
+
import { createContext, useContext, useSyncExternalStore, useRef, useCallback } from 'react';
|
3
|
+
|
4
|
+
var __defProp = Object.defineProperty;
|
5
|
+
var __defProps = Object.defineProperties;
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
11
|
+
var __spreadValues = (a, b) => {
|
12
|
+
for (var prop in b || (b = {}))
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
15
|
+
if (__getOwnPropSymbols)
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
17
|
+
if (__propIsEnum.call(b, prop))
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
19
|
+
}
|
20
|
+
return a;
|
21
|
+
};
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
23
|
+
const StoreContext = createContext(
|
24
|
+
null
|
25
|
+
);
|
26
|
+
const useStoreData = () => {
|
27
|
+
const store = useRef({
|
28
|
+
data: {
|
29
|
+
format: "paragraph",
|
30
|
+
isBold: false,
|
31
|
+
isCode: false,
|
32
|
+
isItalic: false,
|
33
|
+
isLink: false,
|
34
|
+
isOrderedList: false,
|
35
|
+
isStrikethrough: false,
|
36
|
+
isSubscript: false,
|
37
|
+
isSuperscript: false,
|
38
|
+
isUnderline: false,
|
39
|
+
isUnOrderedList: false,
|
40
|
+
textAlign: "left"
|
41
|
+
}
|
42
|
+
});
|
43
|
+
const get = useCallback(() => store.current, []);
|
44
|
+
const subscribers = useRef(/* @__PURE__ */ new Set());
|
45
|
+
const set = useCallback((value) => {
|
46
|
+
store.current = __spreadProps(__spreadValues({}, store.current), {
|
47
|
+
data: __spreadValues(__spreadValues({}, store.current.data), value)
|
48
|
+
});
|
49
|
+
return subscribers.current.forEach((callback) => callback());
|
50
|
+
}, []);
|
51
|
+
const subscribe = useCallback((callback) => {
|
52
|
+
subscribers.current.add(callback);
|
53
|
+
return () => subscribers.current.delete(callback);
|
54
|
+
}, []);
|
55
|
+
return { get, set, subscribe };
|
56
|
+
};
|
57
|
+
const useToolbarStore = (selector) => {
|
58
|
+
const store = useContext(StoreContext);
|
59
|
+
if (!store) {
|
60
|
+
throw new Error(
|
61
|
+
"useToolbarStore must be used within a ToolbarStoreProvider"
|
62
|
+
);
|
63
|
+
}
|
64
|
+
const state = useSyncExternalStore(store.subscribe, () => selector(store.get()));
|
65
|
+
return [state, store.set];
|
66
|
+
};
|
67
|
+
const ToolbarStoreProvider = ({ children }) => {
|
68
|
+
return /* @__PURE__ */ jsx(StoreContext.Provider, { value: useStoreData(), children });
|
69
|
+
};
|
70
|
+
|
71
|
+
export { ToolbarStoreProvider, useToolbarStore };
|
72
|
+
//# sourceMappingURL=store.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"store.js","sources":["../../../../src/components/toolbar-context/store.tsx"],"sourcesContent":["import {\n ReactNode,\n createContext,\n useCallback,\n useContext,\n useRef,\n useSyncExternalStore\n} from 'react';\nimport { ToolbarProperties } from './utils';\n\ninterface ToolbarStore {\n data: ToolbarProperties;\n}\n\nconst StoreContext = createContext<ReturnType<typeof useStoreData> | null>(\n null\n);\n\nconst useStoreData = () => {\n const store = useRef<ToolbarStore>({\n data: {\n format: 'paragraph',\n isBold: false,\n isCode: false,\n isItalic: false,\n isLink: false,\n isOrderedList: false,\n isStrikethrough: false,\n isSubscript: false,\n isSuperscript: false,\n isUnderline: false,\n isUnOrderedList: false,\n textAlign: 'left'\n }\n });\n\n const get = useCallback(() => store.current, []);\n const subscribers = useRef<Set<() => any>>(new Set());\n\n const set = useCallback((value) => {\n store.current = {\n ...store.current,\n data: { ...store.current.data, ...value }\n };\n return subscribers.current.forEach((callback) => callback());\n }, []);\n\n const subscribe = useCallback((callback) => {\n subscribers.current.add(callback);\n return () => subscribers.current.delete(callback);\n }, []);\n\n return { get, set, subscribe };\n};\n\nexport const useToolbarStore = <T, >(selector: (state: ToolbarStore) => T) => {\n const store = useContext(StoreContext);\n if (!store) {\n throw new Error(\n 'useToolbarStore must be used within a ToolbarStoreProvider'\n );\n }\n\n const state = useSyncExternalStore(store.subscribe, () => selector(store.get()));\n return [state, store.set] as const;\n};\n\nexport const ToolbarStoreProvider = ({ children }: { children: ReactNode }) => {\n return (\n <StoreContext.Provider value={useStoreData()}>\n {children}\n </StoreContext.Provider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,YAAe,GAAA,aAAA;AAAA,EACnB;AACF,CAAA;AAEA,MAAM,eAAe,MAAM;AACzB,EAAA,MAAM,QAAQ,MAAqB,CAAA;AAAA,IACjC,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA,WAAA;AAAA,MACR,MAAQ,EAAA,KAAA;AAAA,MACR,MAAQ,EAAA,KAAA;AAAA,MACR,QAAU,EAAA,KAAA;AAAA,MACV,MAAQ,EAAA,KAAA;AAAA,MACR,aAAe,EAAA,KAAA;AAAA,MACf,eAAiB,EAAA,KAAA;AAAA,MACjB,WAAa,EAAA,KAAA;AAAA,MACb,aAAe,EAAA,KAAA;AAAA,MACf,WAAa,EAAA,KAAA;AAAA,MACb,eAAiB,EAAA,KAAA;AAAA,MACjB,SAAW,EAAA;AAAA;AACb,GACD,CAAA;AAED,EAAA,MAAM,MAAM,WAAY,CAAA,MAAM,KAAM,CAAA,OAAA,EAAS,EAAE,CAAA;AAC/C,EAAA,MAAM,WAAc,GAAA,MAAA,iBAA2B,IAAA,GAAA,EAAK,CAAA;AAEpD,EAAM,MAAA,GAAA,GAAM,WAAY,CAAA,CAAC,KAAU,KAAA;AACjC,IAAM,KAAA,CAAA,OAAA,GAAU,aACX,CAAA,cAAA,CAAA,EAAA,EAAA,KAAA,CAAM,OADK,CAAA,EAAA;AAAA,MAEd,IAAM,EAAA,cAAA,CAAA,cAAA,CAAA,EAAA,EAAK,KAAM,CAAA,OAAA,CAAQ,IAAS,CAAA,EAAA,KAAA;AAAA,KACpC,CAAA;AACA,IAAA,OAAO,YAAY,OAAQ,CAAA,OAAA,CAAQ,CAAC,QAAA,KAAa,UAAU,CAAA;AAAA,GAC7D,EAAG,EAAE,CAAA;AAEL,EAAM,MAAA,SAAA,GAAY,WAAY,CAAA,CAAC,QAAa,KAAA;AAC1C,IAAY,WAAA,CAAA,OAAA,CAAQ,IAAI,QAAQ,CAAA;AAChC,IAAA,OAAO,MAAM,WAAA,CAAY,OAAQ,CAAA,MAAA,CAAO,QAAQ,CAAA;AAAA,GAClD,EAAG,EAAE,CAAA;AAEL,EAAO,OAAA,EAAE,GAAK,EAAA,GAAA,EAAK,SAAU,EAAA;AAC/B,CAAA;AAEa,MAAA,eAAA,GAAkB,CAAM,QAAyC,KAAA;AAC5E,EAAM,MAAA,KAAA,GAAQ,WAAW,YAAY,CAAA;AACrC,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA;AAGF,EAAM,MAAA,KAAA,GAAQ,qBAAqB,KAAM,CAAA,SAAA,EAAW,MAAM,QAAS,CAAA,KAAA,CAAM,GAAI,EAAC,CAAC,CAAA;AAC/E,EAAO,OAAA,CAAC,KAAO,EAAA,KAAA,CAAM,GAAG,CAAA;AAC1B;AAEO,MAAM,oBAAuB,GAAA,CAAC,EAAE,QAAA,EAAwC,KAAA;AAC7E,EAAA,2BACG,YAAa,CAAA,QAAA,EAAb,EAAsB,KAAO,EAAA,YAAA,IAC3B,QACH,EAAA,CAAA;AAEJ;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../src/components/toolbar-context/utils.ts"],"sourcesContent":["export type TextFormats =\n | 'paragraph'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'code';\n\nexport const textAlignments = ['left', 'center', 'right', 'justify'] as const;\nexport type TextAlignments = (typeof textAlignments)[number];\n\nexport type ToolbarProperties = {\n isBold: boolean;\n isItalic: boolean;\n isUnderline: boolean;\n isOrderedList: boolean;\n isUnOrderedList: boolean;\n isLink: boolean;\n isStrikethrough: boolean;\n isSubscript: boolean;\n isSuperscript: boolean;\n isCode: boolean;\n format: TextFormats;\n textAlign: TextAlignments;\n};\n"],"names":[],"mappings":"AAUO,MAAM,cAAiB,GAAA,CAAC,MAAQ,EAAA,QAAA,EAAU,SAAS,SAAS;;;;"}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
2
|
+
import { LinkNode, AutoLinkNode } from '@lexical/link';
|
3
|
+
import { ListNode, ListItemNode } from '@lexical/list';
|
4
|
+
import { ClearEditorPlugin } from '@lexical/react/LexicalClearEditorPlugin';
|
5
|
+
import { LexicalComposer } from '@lexical/react/LexicalComposer';
|
6
|
+
import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
|
7
|
+
import { ListPlugin } from '@lexical/react/LexicalListPlugin';
|
8
|
+
import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
|
9
|
+
import { HeadingNode } from '@lexical/rich-text';
|
10
|
+
import { CodeNode } from '@lexical/code';
|
11
|
+
import { useMemo, Fragment as Fragment$1 } from 'react';
|
12
|
+
import { DataManagementPlugin } from './plugins/data-management-plugin/index.js';
|
13
|
+
import '@lexical/react/LexicalComposerContext';
|
14
|
+
import 'lexical';
|
15
|
+
import './components/base-dropdown/index.js';
|
16
|
+
import '@lexical/utils';
|
17
|
+
import 'react-dom';
|
18
|
+
import '@lexical/selection';
|
19
|
+
import './components/toolbar-context/store.js';
|
20
|
+
import './utils/commands.js';
|
21
|
+
import '@lexical/react/LexicalContentEditable';
|
22
|
+
import '@lexical/react/LexicalErrorBoundary';
|
23
|
+
import '@lexical/react/LexicalRichTextPlugin';
|
24
|
+
import { ToolbarContextPlugin } from './components/toolbar-context/context.js';
|
25
|
+
import './plugins/images/index.js';
|
26
|
+
import { AutoLinkPlugin } from './plugins/link/auto-link.js';
|
27
|
+
import { LinkPlugin } from './plugins/link/link.js';
|
28
|
+
import { TabFocusPlugin } from './plugins/tab-focus/index.js';
|
29
|
+
|
30
|
+
var __defProp = Object.defineProperty;
|
31
|
+
var __defProps = Object.defineProperties;
|
32
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
33
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
34
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
35
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
36
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
37
|
+
var __spreadValues = (a, b) => {
|
38
|
+
for (var prop in b || (b = {}))
|
39
|
+
if (__hasOwnProp.call(b, prop))
|
40
|
+
__defNormalProp(a, prop, b[prop]);
|
41
|
+
if (__getOwnPropSymbols)
|
42
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
43
|
+
if (__propIsEnum.call(b, prop))
|
44
|
+
__defNormalProp(a, prop, b[prop]);
|
45
|
+
}
|
46
|
+
return a;
|
47
|
+
};
|
48
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
49
|
+
const initialConfig = {
|
50
|
+
namespace: "TwigsEditor",
|
51
|
+
theme: {
|
52
|
+
text: {
|
53
|
+
bold: "text-bold",
|
54
|
+
italic: "text-italic",
|
55
|
+
underline: "text-underline",
|
56
|
+
code: "text-code",
|
57
|
+
base: "text-base",
|
58
|
+
highlight: "text-highlight",
|
59
|
+
strikethrough: "text-strikethrough",
|
60
|
+
subscript: "text-subscript",
|
61
|
+
superscript: "text-superscript",
|
62
|
+
underlineStrikethrough: "text-underline-strikethrough"
|
63
|
+
},
|
64
|
+
code: "block-code",
|
65
|
+
quote: "block-quote",
|
66
|
+
heading: {
|
67
|
+
h1: "block-h1",
|
68
|
+
h2: "block-h2",
|
69
|
+
h3: "block-h3",
|
70
|
+
h4: "block-h4",
|
71
|
+
h5: "block-h5",
|
72
|
+
h6: "block-h6"
|
73
|
+
},
|
74
|
+
list: {
|
75
|
+
ol: "block-ol",
|
76
|
+
ul: "block-ul",
|
77
|
+
listitem: "block-listitem"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
onError: (err) => {
|
81
|
+
console.error(err);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
let featureId = 0;
|
85
|
+
const featuresToNodeMapping = {
|
86
|
+
heading: {
|
87
|
+
node: HeadingNode,
|
88
|
+
component: null
|
89
|
+
},
|
90
|
+
list: {
|
91
|
+
node: [ListNode, ListItemNode],
|
92
|
+
component: ListPlugin
|
93
|
+
},
|
94
|
+
link: {
|
95
|
+
node: [LinkNode, AutoLinkNode],
|
96
|
+
component: [AutoLinkPlugin, LinkPlugin]
|
97
|
+
},
|
98
|
+
code: {
|
99
|
+
node: [CodeNode],
|
100
|
+
component: null
|
101
|
+
}
|
102
|
+
};
|
103
|
+
const Editor = ({
|
104
|
+
nodes,
|
105
|
+
onChange,
|
106
|
+
editable,
|
107
|
+
features,
|
108
|
+
children,
|
109
|
+
initialEditorState,
|
110
|
+
dataManagementRef
|
111
|
+
}) => {
|
112
|
+
const supportedFeatures = useMemo(() => {
|
113
|
+
if (features) {
|
114
|
+
const selectedNodes = features.map((item) => featuresToNodeMapping[item].node).flat();
|
115
|
+
const selectedPlugins = features.map((item) => featuresToNodeMapping[item].component).flat().map((item) => ({ component: item, id: featureId++ }));
|
116
|
+
return { nodes: selectedNodes, components: selectedPlugins };
|
117
|
+
}
|
118
|
+
const defaultFeatures = {
|
119
|
+
nodes: Object.values(featuresToNodeMapping).map((item) => item.node).flat(),
|
120
|
+
components: Object.values(featuresToNodeMapping).map((item) => item.component).flat().map((item) => ({ component: item, id: featureId++ }))
|
121
|
+
};
|
122
|
+
return defaultFeatures;
|
123
|
+
}, [features]);
|
124
|
+
return /* @__PURE__ */ jsx(
|
125
|
+
LexicalComposer,
|
126
|
+
{
|
127
|
+
initialConfig: __spreadProps(__spreadValues({}, initialConfig), {
|
128
|
+
editorState: initialEditorState,
|
129
|
+
editable,
|
130
|
+
nodes: [...supportedFeatures.nodes, ...nodes != null ? nodes : []]
|
131
|
+
}),
|
132
|
+
children: /* @__PURE__ */ jsxs(ToolbarContextPlugin, { children: [
|
133
|
+
/* @__PURE__ */ jsx(HistoryPlugin, {}),
|
134
|
+
/* @__PURE__ */ jsx(ClearEditorPlugin, {}),
|
135
|
+
/* @__PURE__ */ jsx(DataManagementPlugin, { ref: dataManagementRef }),
|
136
|
+
/* @__PURE__ */ jsx(TabFocusPlugin, {}),
|
137
|
+
/* @__PURE__ */ jsx(Fragment, { children: onChange && /* @__PURE__ */ jsx(OnChangePlugin, { onChange }) }),
|
138
|
+
/* @__PURE__ */ jsx(Fragment, { children: supportedFeatures.components.map((comp) => {
|
139
|
+
const ToolComponent = comp.component;
|
140
|
+
if (ToolComponent) {
|
141
|
+
return /* @__PURE__ */ jsx(ToolComponent, {}, comp.id);
|
142
|
+
}
|
143
|
+
return /* @__PURE__ */ jsx(Fragment$1, {}, comp.id);
|
144
|
+
}) }),
|
145
|
+
/* @__PURE__ */ jsx(Fragment, { children })
|
146
|
+
] })
|
147
|
+
}
|
148
|
+
);
|
149
|
+
};
|
150
|
+
|
151
|
+
export { Editor };
|
152
|
+
//# sourceMappingURL=editor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"editor.js","sources":["../../src/editor.tsx"],"sourcesContent":["import { AutoLinkNode, LinkNode } from '@lexical/link';\nimport { ListItemNode, ListNode } from '@lexical/list';\nimport { ClearEditorPlugin } from '@lexical/react/LexicalClearEditorPlugin';\nimport {\n InitialConfigType,\n InitialEditorStateType,\n LexicalComposer\n} from '@lexical/react/LexicalComposer';\nimport { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';\nimport { ListPlugin } from '@lexical/react/LexicalListPlugin';\nimport { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';\nimport { HeadingNode } from '@lexical/rich-text';\n\nimport { CodeNode } from '@lexical/code';\nimport { EditorState, LexicalEditor } from 'lexical';\nimport {\n Fragment, ReactNode, RefObject, useMemo\n} from 'react';\nimport {\n AutoLinkPlugin,\n DataManagementPlugin,\n DataManagementPluginHandle,\n LinkPlugin,\n TabFocusPlugin\n} from './plugins';\n\nimport { ToolbarContextPlugin } from './components';\n\nconst initialConfig: InitialConfigType = {\n namespace: 'TwigsEditor',\n theme: {\n text: {\n bold: 'text-bold',\n italic: 'text-italic',\n underline: 'text-underline',\n code: 'text-code',\n base: 'text-base',\n highlight: 'text-highlight',\n strikethrough: 'text-strikethrough',\n subscript: 'text-subscript',\n superscript: 'text-superscript',\n underlineStrikethrough: 'text-underline-strikethrough'\n },\n code: 'block-code',\n quote: 'block-quote',\n heading: {\n h1: 'block-h1',\n h2: 'block-h2',\n h3: 'block-h3',\n h4: 'block-h4',\n h5: 'block-h5',\n h6: 'block-h6'\n },\n list: {\n ol: 'block-ol',\n ul: 'block-ul',\n listitem: 'block-listitem'\n }\n },\n onError: (err) => {\n // eslint-disable-next-line no-console\n console.error(err);\n }\n};\n\nlet featureId = 0;\n\nconst featuresToNodeMapping = {\n heading: {\n node: HeadingNode,\n component: null\n },\n list: {\n node: [ListNode, ListItemNode],\n component: ListPlugin\n },\n link: {\n node: [LinkNode, AutoLinkNode],\n component: [AutoLinkPlugin, LinkPlugin]\n },\n code: {\n node: [CodeNode],\n component: null\n }\n};\n\nexport const Editor = ({\n nodes,\n onChange,\n editable,\n features,\n children,\n initialEditorState,\n dataManagementRef\n}: {\n initialEditorState?: InitialEditorStateType;\n onChange?: (\n newEditorState: EditorState,\n editor: LexicalEditor,\n tags: Set<string>\n ) => void;\n editable?: boolean;\n children?: ReactNode;\n nodes?: InitialConfigType['nodes'];\n features?: (keyof typeof featuresToNodeMapping)[];\n dataManagementRef?: RefObject<DataManagementPluginHandle>;\n}) => {\n const supportedFeatures = useMemo(() => {\n if (features) {\n const selectedNodes = features\n .map((item) => featuresToNodeMapping[item].node)\n .flat();\n\n const selectedPlugins = features\n .map((item) => featuresToNodeMapping[item].component)\n .flat()\n .map((item) => ({ component: item, id: featureId++ }));\n\n return { nodes: selectedNodes, components: selectedPlugins };\n }\n\n const defaultFeatures = {\n nodes: Object.values(featuresToNodeMapping)\n .map((item) => item.node)\n .flat(),\n components: Object.values(featuresToNodeMapping)\n .map((item) => item.component)\n .flat()\n .map((item) => ({ component: item, id: featureId++ }))\n };\n\n return defaultFeatures;\n }, [features]);\n\n return (\n <LexicalComposer\n initialConfig={{\n ...initialConfig,\n editorState: initialEditorState,\n editable,\n nodes: [...supportedFeatures.nodes, ...(nodes ?? [])]\n }}\n >\n <ToolbarContextPlugin>\n <HistoryPlugin />\n <ClearEditorPlugin />\n <DataManagementPlugin ref={dataManagementRef} />\n <TabFocusPlugin />\n <>{onChange && <OnChangePlugin onChange={onChange} />}</>\n <>\n {supportedFeatures.components.map((comp) => {\n const ToolComponent = comp.component;\n if (ToolComponent) {\n return <ToolComponent key={comp.id} />;\n }\n\n return <Fragment key={comp.id} />;\n })}\n </>\n <>{children}</>\n </ToolbarContextPlugin>\n </LexicalComposer>\n );\n};\n"],"names":["Fragment"],"mappings":"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"}
|
package/dist/es/index.js
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
export { Editor } from './editor.js';
|
2
|
+
export { $createHashTagNode, $isHashTagNode, HashTagNode } from './nodes/hashtag.js';
|
3
|
+
export { $createImageNode, $isImageNode, ImageNode } from './nodes/image.js';
|
4
|
+
export { $createKudosNode, $isKudosNode, KudosNode } from './nodes/kudos.js';
|
5
|
+
export { $createMentionNode, $isMentionNode, MentionNode } from './nodes/mention.js';
|
6
|
+
export { $createVariableNode, $isVariableNode, VariableNode } from './nodes/variables.js';
|
7
|
+
export { $createEmojiNode, $isEmojiNode, EmojiNode } from './nodes/emoji.js';
|
8
|
+
export { DataManagementPlugin } from './plugins/data-management-plugin/index.js';
|
9
|
+
export { HashTagPlugin } from './plugins/hashtag/index.js';
|
10
|
+
export { ImagesPlugin } from './plugins/images/index.js';
|
11
|
+
export { AutoLinkPlugin } from './plugins/link/auto-link.js';
|
12
|
+
export { LinkPlugin } from './plugins/link/link.js';
|
13
|
+
export { ConvertSelectionToLinkOnPastePlugin } from './plugins/link/convert-selection-on-paste.js';
|
14
|
+
export { MentionsPlugin } from './plugins/mentions/index.js';
|
15
|
+
export { TabFocusPlugin } from './plugins/tab-focus/index.js';
|
16
|
+
export { EmojiPlugin } from './plugins/emoji/index.js';
|
17
|
+
export { EditorLookupDropdownBase } from './components/base-dropdown/index.js';
|
18
|
+
export { EditorFloatingToolbar } from './components/floating-toolbar/floating-toolbar.js';
|
19
|
+
export { DialogLinkEditor } from './components/dialog-link-editor/index.js';
|
20
|
+
export { RichEditor } from './components/rich-editor/index.js';
|
21
|
+
export { EditorToolbar } from './components/toolbar/toolbar.js';
|
22
|
+
export { BoldTool } from './components/toolbar/tools/bold.js';
|
23
|
+
export { CodeTool } from './components/toolbar/tools/code.js';
|
24
|
+
export { CodeBlockTool } from './components/toolbar/tools/code-block.js';
|
25
|
+
export { ItalicTool } from './components/toolbar/tools/italic.js';
|
26
|
+
export { LinkTool } from './components/toolbar/tools/link.js';
|
27
|
+
export { OrderedListTool } from './components/toolbar/tools/ordered-list.js';
|
28
|
+
export { UnderlineTool } from './components/toolbar/tools/underline.js';
|
29
|
+
export { UnorderedListTool } from './components/toolbar/tools/unordered-list.js';
|
30
|
+
export { FormatTool } from './components/toolbar/tools/format.js';
|
31
|
+
export { TextAlignTool } from './components/toolbar/tools/text-align.js';
|
32
|
+
export { ToolbarContextConsumer, ToolbarContextPlugin } from './components/toolbar-context/context.js';
|
33
|
+
export { ToolbarStoreProvider, useToolbarStore } from './components/toolbar-context/store.js';
|
34
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { TextNode, $applyNodeReplacement } from 'lexical';
|
2
|
+
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __defProps = Object.defineProperties;
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
10
|
+
var __spreadValues = (a, b) => {
|
11
|
+
for (var prop in b || (b = {}))
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
14
|
+
if (__getOwnPropSymbols)
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
16
|
+
if (__propIsEnum.call(b, prop))
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
18
|
+
}
|
19
|
+
return a;
|
20
|
+
};
|
21
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
22
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
23
|
+
class EmojiNode extends TextNode {
|
24
|
+
constructor(className, text, key) {
|
25
|
+
super(text, key);
|
26
|
+
__publicField(this, "__className");
|
27
|
+
this.__className = className;
|
28
|
+
}
|
29
|
+
static getType() {
|
30
|
+
return "emoji";
|
31
|
+
}
|
32
|
+
static clone(node) {
|
33
|
+
return new EmojiNode(node.__className, node.__text, node.__key);
|
34
|
+
}
|
35
|
+
createDOM(config) {
|
36
|
+
const dom = document.createElement("span");
|
37
|
+
const inner = super.createDOM(config);
|
38
|
+
dom.className = this.__className;
|
39
|
+
inner.className = "emoji-inner";
|
40
|
+
dom.appendChild(inner);
|
41
|
+
return dom;
|
42
|
+
}
|
43
|
+
updateDOM(prevNode, dom, config) {
|
44
|
+
const inner = dom.firstChild;
|
45
|
+
if (inner === null) {
|
46
|
+
return true;
|
47
|
+
}
|
48
|
+
super.updateDOM(prevNode, inner, config);
|
49
|
+
return false;
|
50
|
+
}
|
51
|
+
static importJSON(serializedNode) {
|
52
|
+
const node = $createEmojiNode(
|
53
|
+
serializedNode.className,
|
54
|
+
serializedNode.text
|
55
|
+
);
|
56
|
+
node.setFormat(serializedNode.format);
|
57
|
+
node.setDetail(serializedNode.detail);
|
58
|
+
node.setMode(serializedNode.mode);
|
59
|
+
node.setStyle(serializedNode.style);
|
60
|
+
return node;
|
61
|
+
}
|
62
|
+
exportJSON() {
|
63
|
+
return __spreadProps(__spreadValues({}, super.exportJSON()), {
|
64
|
+
className: this.getClassName(),
|
65
|
+
type: "emoji"
|
66
|
+
});
|
67
|
+
}
|
68
|
+
getClassName() {
|
69
|
+
const self = this.getLatest();
|
70
|
+
return self.__className;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
function $isEmojiNode(node) {
|
74
|
+
return node instanceof EmojiNode;
|
75
|
+
}
|
76
|
+
function $createEmojiNode(className, emojiText) {
|
77
|
+
const node = new EmojiNode(className, emojiText).setMode("token");
|
78
|
+
return $applyNodeReplacement(node);
|
79
|
+
}
|
80
|
+
|
81
|
+
export { $createEmojiNode, $isEmojiNode, EmojiNode };
|
82
|
+
//# sourceMappingURL=emoji.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"emoji.js","sources":["../../../src/nodes/emoji.ts"],"sourcesContent":["import type {\n EditorConfig,\n LexicalNode,\n NodeKey,\n SerializedTextNode,\n Spread\n} from 'lexical';\n\nimport { $applyNodeReplacement, TextNode } from 'lexical';\n\nexport type SerializedEmojiNode = Spread<\n {\n className: string;\n },\n SerializedTextNode\n>;\n\nexport class EmojiNode extends TextNode {\n __className: string;\n\n static getType(): string {\n return 'emoji';\n }\n\n static clone(node: EmojiNode): EmojiNode {\n return new EmojiNode(node.__className, node.__text, node.__key);\n }\n\n constructor(className: string, text: string, key?: NodeKey) {\n super(text, key);\n this.__className = className;\n }\n\n createDOM(config: EditorConfig): HTMLElement {\n const dom = document.createElement('span');\n const inner = super.createDOM(config);\n dom.className = this.__className;\n inner.className = 'emoji-inner';\n dom.appendChild(inner);\n return dom;\n }\n\n updateDOM(\n prevNode: TextNode,\n dom: HTMLElement,\n config: EditorConfig\n ): boolean {\n const inner = dom.firstChild;\n if (inner === null) {\n return true;\n }\n // @ts-expect-error\n super.updateDOM(prevNode, inner as HTMLElement, config);\n return false;\n }\n\n static importJSON(serializedNode: SerializedEmojiNode): EmojiNode {\n const node = $createEmojiNode(\n serializedNode.className,\n serializedNode.text\n );\n node.setFormat(serializedNode.format);\n node.setDetail(serializedNode.detail);\n node.setMode(serializedNode.mode);\n node.setStyle(serializedNode.style);\n return node;\n }\n\n exportJSON(): SerializedEmojiNode {\n return {\n ...super.exportJSON(),\n className: this.getClassName(),\n type: 'emoji'\n };\n }\n\n getClassName(): string {\n const self = this.getLatest();\n return self.__className;\n }\n}\n\nexport function $isEmojiNode(\n node: LexicalNode | null | undefined\n): node is EmojiNode {\n return node instanceof EmojiNode;\n}\n\nexport function $createEmojiNode(\n className: string,\n emojiText: string\n): EmojiNode {\n const node = new EmojiNode(className, emojiText).setMode('token');\n return $applyNodeReplacement(node);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBO,MAAM,kBAAkB,QAAS,CAAA;AAAA,EAWtC,WAAA,CAAY,SAAmB,EAAA,IAAA,EAAc,GAAe,EAAA;AAC1D,IAAA,KAAA,CAAM,MAAM,GAAG,CAAA;AAXjB,IAAA,aAAA,CAAA,IAAA,EAAA,aAAA,CAAA;AAYE,IAAA,IAAA,CAAK,WAAc,GAAA,SAAA;AAAA;AACrB,EAXA,OAAO,OAAkB,GAAA;AACvB,IAAO,OAAA,OAAA;AAAA;AACT,EAEA,OAAO,MAAM,IAA4B,EAAA;AACvC,IAAA,OAAO,IAAI,SAAU,CAAA,IAAA,CAAK,aAAa,IAAK,CAAA,MAAA,EAAQ,KAAK,KAAK,CAAA;AAAA;AAChE,EAOA,UAAU,MAAmC,EAAA;AAC3C,IAAM,MAAA,GAAA,GAAM,QAAS,CAAA,aAAA,CAAc,MAAM,CAAA;AACzC,IAAM,MAAA,KAAA,GAAQ,KAAM,CAAA,SAAA,CAAU,MAAM,CAAA;AACpC,IAAA,GAAA,CAAI,YAAY,IAAK,CAAA,WAAA;AACrB,IAAA,KAAA,CAAM,SAAY,GAAA,aAAA;AAClB,IAAA,GAAA,CAAI,YAAY,KAAK,CAAA;AACrB,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,SAAA,CACE,QACA,EAAA,GAAA,EACA,MACS,EAAA;AACT,IAAA,MAAM,QAAQ,GAAI,CAAA,UAAA;AAClB,IAAA,IAAI,UAAU,IAAM,EAAA;AAClB,MAAO,OAAA,IAAA;AAAA;AAGT,IAAM,KAAA,CAAA,SAAA,CAAU,QAAU,EAAA,KAAA,EAAsB,MAAM,CAAA;AACtD,IAAO,OAAA,KAAA;AAAA;AACT,EAEA,OAAO,WAAW,cAAgD,EAAA;AAChE,IAAA,MAAM,IAAO,GAAA,gBAAA;AAAA,MACX,cAAe,CAAA,SAAA;AAAA,MACf,cAAe,CAAA;AAAA,KACjB;AACA,IAAK,IAAA,CAAA,SAAA,CAAU,eAAe,MAAM,CAAA;AACpC,IAAK,IAAA,CAAA,SAAA,CAAU,eAAe,MAAM,CAAA;AACpC,IAAK,IAAA,CAAA,OAAA,CAAQ,eAAe,IAAI,CAAA;AAChC,IAAK,IAAA,CAAA,QAAA,CAAS,eAAe,KAAK,CAAA;AAClC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAkC,GAAA;AAChC,IAAO,OAAA,aAAA,CAAA,cAAA,CAAA,EAAA,EACF,KAAM,CAAA,UAAA,EADJ,CAAA,EAAA;AAAA,MAEL,SAAA,EAAW,KAAK,YAAa,EAAA;AAAA,MAC7B,IAAM,EAAA;AAAA,KACR,CAAA;AAAA;AACF,EAEA,YAAuB,GAAA;AACrB,IAAM,MAAA,IAAA,GAAO,KAAK,SAAU,EAAA;AAC5B,IAAA,OAAO,IAAK,CAAA,WAAA;AAAA;AAEhB;AAEO,SAAS,aACd,IACmB,EAAA;AACnB,EAAA,OAAO,IAAgB,YAAA,SAAA;AACzB;AAEgB,SAAA,gBAAA,CACd,WACA,SACW,EAAA;AACX,EAAA,MAAM,OAAO,IAAI,SAAA,CAAU,WAAW,SAAS,CAAA,CAAE,QAAQ,OAAO,CAAA;AAChE,EAAA,OAAO,sBAAsB,IAAI,CAAA;AACnC;;;;"}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import { TextNode, $applyNodeReplacement } from 'lexical';
|
2
|
+
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __defProps = Object.defineProperties;
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
10
|
+
var __spreadValues = (a, b) => {
|
11
|
+
for (var prop in b || (b = {}))
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
14
|
+
if (__getOwnPropSymbols)
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
16
|
+
if (__propIsEnum.call(b, prop))
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
18
|
+
}
|
19
|
+
return a;
|
20
|
+
};
|
21
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
22
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
23
|
+
function convertHashTagElement(domNode) {
|
24
|
+
const { textContent } = domNode;
|
25
|
+
if (textContent !== null) {
|
26
|
+
const node = $createHashTagNode(textContent);
|
27
|
+
return {
|
28
|
+
node
|
29
|
+
};
|
30
|
+
}
|
31
|
+
return null;
|
32
|
+
}
|
33
|
+
class HashTagNode extends TextNode {
|
34
|
+
constructor(hashTagName, text, key) {
|
35
|
+
super(text != null ? text : hashTagName, key);
|
36
|
+
__publicField(this, "__hashTag");
|
37
|
+
this.__hashTag = hashTagName;
|
38
|
+
}
|
39
|
+
static getType() {
|
40
|
+
return "hashtag";
|
41
|
+
}
|
42
|
+
static clone(node) {
|
43
|
+
return new HashTagNode(node.__hashTag, node.__text, node.__key);
|
44
|
+
}
|
45
|
+
static importJSON(serializedNode) {
|
46
|
+
const node = $createHashTagNode(serializedNode.hashTagName);
|
47
|
+
node.setTextContent(serializedNode.text);
|
48
|
+
node.setFormat(serializedNode.format);
|
49
|
+
node.setDetail(serializedNode.detail);
|
50
|
+
node.setMode(serializedNode.mode);
|
51
|
+
node.setStyle(serializedNode.style);
|
52
|
+
return node;
|
53
|
+
}
|
54
|
+
exportJSON() {
|
55
|
+
return __spreadProps(__spreadValues({}, super.exportJSON()), {
|
56
|
+
hashTagName: this.__hashTag,
|
57
|
+
type: "hashtag",
|
58
|
+
version: 1
|
59
|
+
});
|
60
|
+
}
|
61
|
+
createDOM(config) {
|
62
|
+
const dom = super.createDOM(config);
|
63
|
+
dom.className = "twigs-hashtag";
|
64
|
+
return dom;
|
65
|
+
}
|
66
|
+
exportDOM() {
|
67
|
+
const element = document.createElement("span");
|
68
|
+
element.setAttribute("data-twigs-hashtag", "true");
|
69
|
+
element.textContent = this.__text;
|
70
|
+
return { element };
|
71
|
+
}
|
72
|
+
static importDOM() {
|
73
|
+
return {
|
74
|
+
span: (domNode) => {
|
75
|
+
if (!domNode.hasAttribute("data-twigs-hashtag")) {
|
76
|
+
return null;
|
77
|
+
}
|
78
|
+
return {
|
79
|
+
conversion: convertHashTagElement,
|
80
|
+
priority: 1
|
81
|
+
};
|
82
|
+
}
|
83
|
+
};
|
84
|
+
}
|
85
|
+
isTextEntity() {
|
86
|
+
return true;
|
87
|
+
}
|
88
|
+
canInsertTextBefore() {
|
89
|
+
return false;
|
90
|
+
}
|
91
|
+
canInsertTextAfter() {
|
92
|
+
return false;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
function $createHashTagNode(hashTagName) {
|
96
|
+
const hashTagNode = new HashTagNode(hashTagName);
|
97
|
+
hashTagNode.setMode("segmented").toggleDirectionless();
|
98
|
+
return $applyNodeReplacement(hashTagNode);
|
99
|
+
}
|
100
|
+
function $isHashTagNode(node) {
|
101
|
+
return node instanceof HashTagNode;
|
102
|
+
}
|
103
|
+
|
104
|
+
export { $createHashTagNode, $isHashTagNode, HashTagNode };
|
105
|
+
//# sourceMappingURL=hashtag.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hashtag.js","sources":["../../../src/nodes/hashtag.tsx"],"sourcesContent":["import {\n $applyNodeReplacement,\n TextNode,\n type DOMConversionMap,\n type DOMConversionOutput,\n type DOMExportOutput,\n type EditorConfig,\n type LexicalNode,\n type NodeKey,\n type SerializedTextNode,\n type Spread\n} from 'lexical';\n\nexport type SerializedHashTagNode = Spread<\n {\n hashTagName: string;\n },\n SerializedTextNode\n>;\n\nfunction convertHashTagElement(\n domNode: HTMLElement\n): DOMConversionOutput | null {\n const { textContent } = domNode;\n\n if (textContent !== null) {\n const node = $createHashTagNode(textContent);\n return {\n node\n };\n }\n\n return null;\n}\n\nexport class HashTagNode extends TextNode {\n __hashTag: string;\n\n static getType(): string {\n return 'hashtag';\n }\n\n static clone(node: HashTagNode): HashTagNode {\n return new HashTagNode(node.__hashTag, node.__text, node.__key);\n }\n\n static importJSON(serializedNode: SerializedHashTagNode): HashTagNode {\n const node = $createHashTagNode(serializedNode.hashTagName);\n node.setTextContent(serializedNode.text);\n node.setFormat(serializedNode.format);\n node.setDetail(serializedNode.detail);\n node.setMode(serializedNode.mode);\n node.setStyle(serializedNode.style);\n return node;\n }\n\n constructor(hashTagName: string, text?: string, key?: NodeKey) {\n super(text ?? hashTagName, key);\n this.__hashTag = hashTagName;\n }\n\n exportJSON(): SerializedHashTagNode {\n return {\n ...super.exportJSON(),\n hashTagName: this.__hashTag,\n type: 'hashtag',\n version: 1\n };\n }\n\n createDOM(config: EditorConfig): HTMLElement {\n const dom = super.createDOM(config);\n dom.className = 'twigs-hashtag';\n return dom;\n }\n\n exportDOM(): DOMExportOutput {\n const element = document.createElement('span');\n element.setAttribute('data-twigs-hashtag', 'true');\n element.textContent = this.__text;\n return { element };\n }\n\n static importDOM(): DOMConversionMap | null {\n return {\n span: (domNode: HTMLElement) => {\n if (!domNode.hasAttribute('data-twigs-hashtag')) {\n return null;\n }\n return {\n conversion: convertHashTagElement,\n priority: 1\n };\n }\n };\n }\n\n isTextEntity(): true {\n return true;\n }\n\n canInsertTextBefore(): boolean {\n return false;\n }\n\n canInsertTextAfter(): boolean {\n return false;\n }\n}\n\nexport function $createHashTagNode(hashTagName: string): HashTagNode {\n const hashTagNode = new HashTagNode(hashTagName);\n hashTagNode.setMode('segmented').toggleDirectionless();\n return $applyNodeReplacement(hashTagNode);\n}\n\nexport function $isHashTagNode(\n node: LexicalNode | null | undefined\n): node is HashTagNode {\n return node instanceof HashTagNode;\n}\n"],"names":[],"mappings":"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"}
|