@instincthub/react-ui 0.1.63 → 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.
Files changed (194) hide show
  1. package/README.md +43 -3
  2. package/dist/_virtual/_rollupPluginBabelHelpers.js +2 -2
  3. package/dist/node_modules/.pnpm/@tiptap_core@2.27.1_@tiptap_pm@2.27.1/node_modules/@tiptap/core/dist/index.js +1 -1
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. package/dist/src/assets/css/ui/ihub-text-editor-blocks.css +951 -0
  72. package/dist/src/assets/css/ui/ui-index.css +1 -0
  73. package/dist/src/components/ui/ComponentLists.js +1 -1
  74. package/dist/src/components/ui/editor/ihub-editor/IHubTextEditor.js +1 -1
  75. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js +2 -0
  76. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js.map +1 -0
  77. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js +2 -0
  78. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js.map +1 -0
  79. package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js +2 -0
  80. package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js.map +1 -0
  81. package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js +2 -0
  82. package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js.map +1 -0
  83. package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js +2 -0
  84. package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js.map +1 -0
  85. package/dist/src/components/ui/editor/ihub-editor/components/BubbleToolbar.js +1 -1
  86. package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js +2 -0
  87. package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js.map +1 -0
  88. package/dist/src/components/ui/editor/ihub-editor/components/FloatingAddButton.js +1 -1
  89. package/dist/src/components/ui/editor/ihub-editor/components/SlashCommandMenu.js +1 -1
  90. package/dist/src/components/ui/editor/ihub-editor/components/TableToolbar.js +1 -1
  91. package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js +2 -0
  92. package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js.map +1 -0
  93. package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js +2 -0
  94. package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js.map +1 -0
  95. package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js +2 -0
  96. package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js.map +1 -0
  97. package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js +2 -0
  98. package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js.map +1 -0
  99. package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js +2 -0
  100. package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js.map +1 -0
  101. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js +2 -0
  102. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js.map +1 -0
  103. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js +2 -0
  104. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js.map +1 -0
  105. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js +2 -0
  106. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js.map +1 -0
  107. package/dist/src/components/ui/editor/ihub-editor/constants.js +1 -1
  108. package/dist/src/components/ui/editor/ihub-editor/constants.js.map +1 -1
  109. package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js +2 -0
  110. package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js.map +1 -0
  111. package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js +2 -0
  112. package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js.map +1 -0
  113. package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js +2 -0
  114. package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js.map +1 -0
  115. package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js +2 -0
  116. package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js.map +1 -0
  117. package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js +2 -0
  118. package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js.map +1 -0
  119. package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js +2 -0
  120. package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js.map +1 -0
  121. package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js +2 -0
  122. package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js.map +1 -0
  123. package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js +2 -0
  124. package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js.map +1 -0
  125. package/dist/src/components/ui/editor/ihub-editor/hooks/useIHubEditor.js +1 -1
  126. package/dist/src/components/ui/editor/ihub-editor/hooks/useMediaEmbed.js +1 -1
  127. package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js +2 -0
  128. package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js.map +1 -0
  129. package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js +2 -0
  130. package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js.map +1 -0
  131. package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js +2 -0
  132. package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js.map +1 -0
  133. package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js +2 -0
  134. package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js.map +1 -0
  135. package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js +2 -0
  136. package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js.map +1 -0
  137. package/dist/src/components/ui/editor/ihub-editor/types.js +1 -1
  138. package/dist/src/components/ui/editor/ihub-editor/types.js.map +1 -1
  139. package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js +2 -0
  140. package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js.map +1 -0
  141. package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js +2 -0
  142. package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js.map +1 -0
  143. package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js +2 -0
  144. package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js.map +1 -0
  145. package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js +2 -0
  146. package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js.map +1 -0
  147. package/dist/src/types/components/ui/editor/ihub-editor/IHubTextEditor.d.ts +1 -1
  148. package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockHandle.d.ts +16 -0
  149. package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockKeymap.d.ts +11 -0
  150. package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockLayout.d.ts +37 -0
  151. package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockOps.d.ts +45 -0
  152. package/dist/src/types/components/ui/editor/ihub-editor/blocks/useBlockDrag.d.ts +30 -0
  153. package/dist/src/types/components/ui/editor/ihub-editor/components/ColorPalette.d.ts +14 -0
  154. package/dist/src/types/components/ui/editor/ihub-editor/components/FloatingAddButton.d.ts +3 -2
  155. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.d.ts +2 -0
  156. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/CalloutView.d.ts +2 -0
  157. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.d.ts +2 -0
  158. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/useDismiss.d.ts +3 -0
  159. package/dist/src/types/components/ui/editor/ihub-editor/components/commandIcons.d.ts +3 -0
  160. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaBlockView.d.ts +6 -0
  161. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.d.ts +10 -0
  162. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPreview.d.ts +10 -0
  163. package/dist/src/types/components/ui/editor/ihub-editor/constants.d.ts +5 -1
  164. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ButtonBlock.d.ts +21 -0
  165. package/dist/src/types/components/ui/editor/ihub-editor/extensions/Callout.d.ts +20 -0
  166. package/dist/src/types/components/ui/editor/ihub-editor/extensions/MediaBlock.d.ts +39 -0
  167. package/dist/src/types/components/ui/editor/ihub-editor/extensions/PreserveStyles.d.ts +6 -0
  168. package/dist/src/types/components/ui/editor/ihub-editor/extensions/SectionBanner.d.ts +15 -0
  169. package/dist/src/types/components/ui/editor/ihub-editor/extensions/TableExtensions.d.ts +14 -0
  170. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ToggleBlock.d.ts +13 -0
  171. package/dist/src/types/components/ui/editor/ihub-editor/extensions/colorUtils.d.ts +14 -0
  172. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useIHubEditor.d.ts +8 -2
  173. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useMediaEmbed.d.ts +2 -1
  174. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useSurfaceClick.d.ts +28 -0
  175. package/dist/src/types/components/ui/editor/ihub-editor/index.d.ts +1 -1
  176. package/dist/src/types/components/ui/editor/ihub-editor/table/TableControls.d.ts +9 -0
  177. package/dist/src/types/components/ui/editor/ihub-editor/table/TableLineMenu.d.ts +25 -0
  178. package/dist/src/types/components/ui/editor/ihub-editor/table/tableOps.d.ts +25 -0
  179. package/dist/src/types/components/ui/editor/ihub-editor/table/useTableHover.d.ts +25 -0
  180. package/dist/src/types/components/ui/editor/ihub-editor/types.d.ts +83 -2
  181. package/dist/src/types/components/ui/editor/ihub-editor/upload/mediaKinds.d.ts +32 -0
  182. package/dist/src/types/components/ui/editor/ihub-editor/upload/s3Direct.d.ts +5 -0
  183. package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadFile.d.ts +19 -0
  184. package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadRegistry.d.ts +15 -0
  185. package/dist/src/types/index.d.ts +1 -1
  186. package/dist/tsconfig.build.tsbuildinfo +1 -1
  187. package/package.json +8 -4
  188. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js +0 -2
  189. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js.map +0 -1
  190. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js +0 -2
  191. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js.map +0 -1
  192. package/dist/src/types/components/ui/editor/ihub-editor/components/ImageBlock.d.ts +0 -12
  193. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ImageWithCaption.d.ts +0 -14
  194. 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"),a=require("react"),o=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"),i=require("./hooks/useIHubEditor.js"),n=require("./hooks/useSlashCommands.js"),s=require("./hooks/useImageUpload.js"),d=require("./hooks/useMediaEmbed.js"),l=require("./components/BubbleToolbar.js"),u=require("./components/SlashCommandMenu.js"),c=require("./components/FloatingAddButton.js"),m=require("./components/TableToolbar.js"),p=require("./components/EditorFooter.js");exports.default=function(h){var b=h.name,f=void 0===b?"editor-content":b,j=h.label,v=h.content,x=void 0===v?"":v,g=h.placeholder,_=void 0===g?"Tell your story...":g,q=h.onChange,C=h.onBlur,E=h.required,y=void 0!==E&&E,S=h.charLimit,I=void 0===S?5e4:S,k=h.features,B=h.onImageUpload,U=h.className,T=void 0===U?"":U,F=h.minHeight,H=void 0===F?"400px":F,M=h.maxHeight,N=void 0===M?"80vh":M,A=h.lastUpdated,w=h.readOnly,L=void 0!==w&&w,O=h.extensions,R=void 0===O?[]:O,P=a.useMemo(function(){return e.objectSpread2(e.objectSpread2({},r.DEFAULT_FEATURES),k)},[k]),z=a.useState(x),D=e.slicedToArray(z,2),Y=D[0],G=D[1],J=n.default(),K=i.default({content:x,placeholder:_,charLimit:I,features:k,readOnly:L,onChange:function(e){G(e),null==q||q(e)},onBlur:C,additionalExtensions:R,onSlashCommandStart:J.onStart,onSlashCommandExit:J.onExit}),Q=s.default({editor:K,onImageUpload:B,enabled:P.imageUpload}).openFilePicker;d.default({editor:K,enabled:P.mediaEmbeds});var V=["ihub-te-wrapper",P.focusMode?"ihub-te-wrapper--focus":"",L?"ihub-te-wrapper--readonly":"",T].filter(Boolean).join(" "),W=a.useCallback(function(e){if(K&&!L){var t=e.target;if(!t.closest(".ihub-te-bubble-menu, .ihub-te-bubble-toolbar, .ihub-te-link-popover"))if(t.closest(".ihub-te-content")){var a=t.closest(".ihub-te-content");if(a){var o=a.lastElementChild;if(o){var r=o.getBoundingClientRect();if(e.clientY>r.bottom){var i=K.state.doc.lastChild;i&&"paragraph"!==i.type.name?K.chain().focus("end").command(function(e){var t=e.tr;if(e.dispatch){var a=K.state.schema.nodes.paragraph.create();t.insert(t.doc.content.size,a)}return!0}).focus("end").run():K.commands.focus("end")}}}}else K.commands.focus("end")}},[K,L]);return K?t.jsxs("div",{className:V,children:[j&&t.jsxs("label",{htmlFor:f,className:"ihub-te-label",children:[j,y&&t.jsx("span",{className:"ihub-te-required",children:"*"})]}),t.jsxs("div",{className:"ihub-te-editor-area",style:{minHeight:H,maxHeight:N},onClick:W,children:[P.bubbleMenu&&!L&&t.jsx(l.default,{editor:K}),P.floatingAddButton&&!L&&t.jsx(c.default,{editor:K,onImageInsert:Q}),P.slashCommands&&J.isOpen&&t.jsx(u.default,{items:J.items,selectedIndex:J.selectedIndex,onSelect:J.selectItem,clientRect:J.clientRect}),t.jsx(o.EditorContent,{editor:K,className:"ihub-te-content-wrapper"}),P.tables&&!L&&t.jsx(m.default,{editor:K})]}),t.jsx("input",{type:"hidden",value:Y,name:f}),P.characterCount&&t.jsx(p.default,{editor:K,charLimit:I,lastUpdated:A})]}):null};
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