@instincthub/react-ui 0.1.62 → 0.2.0
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 +43 -3
- package/dist/_virtual/_rollupPluginBabelHelpers.js +2 -2
- package/dist/node_modules/.pnpm/@tiptap_core@2.27.1_@tiptap_pm@2.27.1/node_modules/@tiptap/core/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@tiptap_core@2.27.1_@tiptap_pm@2.27.1/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@tiptap_react@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1_react-dom_3687a02a33de69fe477ccd0d970063c0/node_modules/@tiptap/react/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@tiptap_react@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1_react-dom_3687a02a33de69fe477ccd0d970063c0/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-center.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-center.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-left.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-left.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-right.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/align-right.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-down.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-down.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-left.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-left.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-right.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-right.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-up.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-up.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/ban.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/ban.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/baseline.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/baseline.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/download.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/file-text.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/file-text.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/film.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/film.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/grip-horizontal.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/grip-horizontal.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-1.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-1.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/highlighter.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/highlighter.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lightbulb.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/lightbulb.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/link-2.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/link-2.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/monitor-play.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/monitor-play.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/mouse-pointer-click.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/mouse-pointer-click.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/music.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/music.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/paint-bucket.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/paint-bucket.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/palette.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/palette.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/panel-left.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/panel-left.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/panel-top.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/panel-top.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/paperclip.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/paperclip.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/remove-formatting.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/remove-formatting.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings-2.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings-2.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/type.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/type.js.map +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/upload.js +1 -1
- package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/upload.js.map +1 -1
- package/dist/src/assets/css/ui/ihub-text-editor-blocks.css +951 -0
- package/dist/src/assets/css/ui/tables.css +17 -0
- package/dist/src/assets/css/ui/ui-index.css +1 -0
- package/dist/src/components/ui/ComponentLists.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/IHubTextEditor.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/BubbleToolbar.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/FloatingAddButton.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/components/SlashCommandMenu.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/components/TableToolbar.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/constants.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/constants.js.map +1 -1
- package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/hooks/useIHubEditor.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/hooks/useMediaEmbed.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/types.js +1 -1
- package/dist/src/components/ui/editor/ihub-editor/types.js.map +1 -1
- package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js.map +1 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js +2 -0
- package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js.map +1 -0
- package/dist/src/components/ui/tables/IHubTableServer.js +1 -1
- package/dist/src/components/ui/tables/utils/tableState.js +1 -1
- package/dist/src/components/ui/tables/utils/tableState.js.map +1 -1
- package/dist/src/types/components/ui/editor/ihub-editor/IHubTextEditor.d.ts +1 -1
- package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockHandle.d.ts +16 -0
- package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockKeymap.d.ts +11 -0
- package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockLayout.d.ts +37 -0
- package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockOps.d.ts +45 -0
- package/dist/src/types/components/ui/editor/ihub-editor/blocks/useBlockDrag.d.ts +30 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/ColorPalette.d.ts +14 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/FloatingAddButton.d.ts +3 -2
- package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.d.ts +2 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/CalloutView.d.ts +2 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.d.ts +2 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/useDismiss.d.ts +3 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/commandIcons.d.ts +3 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaBlockView.d.ts +6 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.d.ts +10 -0
- package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPreview.d.ts +10 -0
- package/dist/src/types/components/ui/editor/ihub-editor/constants.d.ts +5 -1
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/ButtonBlock.d.ts +21 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/Callout.d.ts +20 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/MediaBlock.d.ts +39 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/PreserveStyles.d.ts +6 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/SectionBanner.d.ts +15 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/TableExtensions.d.ts +14 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/ToggleBlock.d.ts +13 -0
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/colorUtils.d.ts +14 -0
- package/dist/src/types/components/ui/editor/ihub-editor/hooks/useIHubEditor.d.ts +8 -2
- package/dist/src/types/components/ui/editor/ihub-editor/hooks/useMediaEmbed.d.ts +2 -1
- package/dist/src/types/components/ui/editor/ihub-editor/hooks/useSurfaceClick.d.ts +28 -0
- package/dist/src/types/components/ui/editor/ihub-editor/index.d.ts +1 -1
- package/dist/src/types/components/ui/editor/ihub-editor/table/TableControls.d.ts +9 -0
- package/dist/src/types/components/ui/editor/ihub-editor/table/TableLineMenu.d.ts +25 -0
- package/dist/src/types/components/ui/editor/ihub-editor/table/tableOps.d.ts +25 -0
- package/dist/src/types/components/ui/editor/ihub-editor/table/useTableHover.d.ts +25 -0
- package/dist/src/types/components/ui/editor/ihub-editor/types.d.ts +83 -2
- package/dist/src/types/components/ui/editor/ihub-editor/upload/mediaKinds.d.ts +32 -0
- package/dist/src/types/components/ui/editor/ihub-editor/upload/s3Direct.d.ts +5 -0
- package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadFile.d.ts +19 -0
- package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadRegistry.d.ts +15 -0
- package/dist/src/types/components/ui/tables/IHubTableServer.d.ts +6 -0
- package/dist/src/types/components/ui/tables/utils/tableState.d.ts +10 -0
- package/dist/src/types/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js +0 -2
- package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js.map +0 -1
- package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js +0 -2
- package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js.map +0 -1
- package/dist/src/types/components/ui/editor/ihub-editor/components/ImageBlock.d.ts +0 -12
- package/dist/src/types/components/ui/editor/ihub-editor/extensions/ImageWithCaption.d.ts +0 -14
- package/dist/src/types/components/ui/editor/ihub-editor/hooks/useImageUpload.d.ts +0 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),o=require("react"),a=require("../../../../../node_modules/.pnpm/@tiptap_react@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1_react-dom_3687a02a33de69fe477ccd0d970063c0/node_modules/@tiptap/react/dist/index.js"),r=require("./types.js"),n=require("./hooks/useIHubEditor.js"),l=require("./hooks/useSlashCommands.js"),i=require("./hooks/useMediaEmbed.js"),s=require("./hooks/useSurfaceClick.js"),d=require("./components/BubbleToolbar.js"),u=require("./components/SlashCommandMenu.js"),c=require("./components/FloatingAddButton.js"),p=require("./components/TableToolbar.js"),m=require("./table/TableControls.js"),h=require("./blocks/BlockHandle.js"),j=require("./components/EditorFooter.js"),f=require("./constants.js"),b=require("./upload/uploadFile.js");exports.default=function(x){var q=x.name,v=void 0===q?"editor-content":q,_=x.label,g=x.content,C=void 0===g?"":g,S=x.placeholder,E=void 0===S?"Tell your story...":S,U=x.onChange,y=x.onBlur,F=x.required,k=void 0!==F&&F,M=x.charLimit,B=void 0===M?5e4:M,H=x.features,R=x.onImageUpload,T=x.onFileUpload,w=x.upload,I=x.className,N=void 0===I?"":I,A=x.minHeight,L=void 0===A?"400px":A,O=x.maxHeight,D=void 0===O?"80vh":O,P=x.lastUpdated,z=x.readOnly,G=void 0!==z&&z,J=x.extensions,K=void 0===J?[]:J,Q=o.useMemo(function(){return e.objectSpread2(e.objectSpread2({},r.DEFAULT_FEATURES),H)},[H]),V=o.useState(C),W=e.slicedToArray(V,2),X=W[0],Y=W[1],Z=o.useRef(null),$=l.default(),ee=o.useRef(null),te={onFileUpload:T,onImageUpload:R,upload:w};ee.current=b.canUpload(te,"file")||b.canUpload(te,"image")?b.createUploader(te):null;var oe=o.useMemo(function(){return f.commandsForFeatures(Q)},[Q]),ae=n.default({content:C,placeholder:E,charLimit:B,features:H,readOnly:G,onChange:function(e){Y(e),null==U||U(e)},onBlur:y,additionalExtensions:K,onSlashCommandStart:$.onStart,onSlashCommandExit:$.onExit,uploaderRef:ee});i.default({editor:ae,enabled:Q.mediaEmbeds&&!G});var re=s.default(ae,G),ne=["ihub-te-wrapper",Q.focusMode?"ihub-te-wrapper--focus":"",G?"ihub-te-wrapper--readonly":"",N].filter(Boolean).join(" ");return ae?t.jsxs("div",{className:ne,children:[_&&t.jsxs("label",{htmlFor:v,className:"ihub-te-label",children:[_,k&&t.jsx("span",{className:"ihub-te-required",children:"*"})]}),t.jsxs("div",{ref:Z,className:"ihub-te-editor-area",style:{minHeight:L,maxHeight:D},onMouseDown:re.onMouseDown,onClick:re.onClick,children:[Q.bubbleMenu&&!G&&t.jsx(d.default,{editor:ae}),Q.floatingAddButton&&!G&&t.jsx(c.default,{editor:ae,commands:oe}),Q.slashCommands&&$.isOpen&&t.jsx(u.default,{items:$.items,selectedIndex:$.selectedIndex,onSelect:$.selectItem,clientRect:$.clientRect}),t.jsx(a.EditorContent,{editor:ae,className:"ihub-te-content-wrapper"}),Q.dragHandle&&!G&&t.jsx(h.default,{editor:ae,containerRef:Z}),Q.tables&&!G&&t.jsx(m.default,{editor:ae,containerRef:Z}),Q.tables&&!G&&t.jsx(p.default,{editor:ae})]}),t.jsx("input",{type:"hidden",value:X,name:v}),Q.characterCount&&t.jsx(j.default,{editor:ae,charLimit:B,lastUpdated:P})]}):null};
|
|
2
2
|
//# sourceMappingURL=IHubTextEditor.js.map
|