@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.
Files changed (200) 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/tables.css +17 -0
  73. package/dist/src/assets/css/ui/ui-index.css +1 -0
  74. package/dist/src/components/ui/ComponentLists.js +1 -1
  75. package/dist/src/components/ui/editor/ihub-editor/IHubTextEditor.js +1 -1
  76. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js +2 -0
  77. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockHandle.js.map +1 -0
  78. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js +2 -0
  79. package/dist/src/components/ui/editor/ihub-editor/blocks/BlockKeymap.js.map +1 -0
  80. package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js +2 -0
  81. package/dist/src/components/ui/editor/ihub-editor/blocks/blockLayout.js.map +1 -0
  82. package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js +2 -0
  83. package/dist/src/components/ui/editor/ihub-editor/blocks/blockOps.js.map +1 -0
  84. package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js +2 -0
  85. package/dist/src/components/ui/editor/ihub-editor/blocks/useBlockDrag.js.map +1 -0
  86. package/dist/src/components/ui/editor/ihub-editor/components/BubbleToolbar.js +1 -1
  87. package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js +2 -0
  88. package/dist/src/components/ui/editor/ihub-editor/components/ColorPalette.js.map +1 -0
  89. package/dist/src/components/ui/editor/ihub-editor/components/FloatingAddButton.js +1 -1
  90. package/dist/src/components/ui/editor/ihub-editor/components/SlashCommandMenu.js +1 -1
  91. package/dist/src/components/ui/editor/ihub-editor/components/TableToolbar.js +1 -1
  92. package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js +2 -0
  93. package/dist/src/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.js.map +1 -0
  94. package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js +2 -0
  95. package/dist/src/components/ui/editor/ihub-editor/components/blocks/CalloutView.js.map +1 -0
  96. package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js +2 -0
  97. package/dist/src/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.js.map +1 -0
  98. package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js +2 -0
  99. package/dist/src/components/ui/editor/ihub-editor/components/blocks/useDismiss.js.map +1 -0
  100. package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js +2 -0
  101. package/dist/src/components/ui/editor/ihub-editor/components/commandIcons.js.map +1 -0
  102. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js +2 -0
  103. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaBlockView.js.map +1 -0
  104. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js +2 -0
  105. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.js.map +1 -0
  106. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js +2 -0
  107. package/dist/src/components/ui/editor/ihub-editor/components/media/MediaPreview.js.map +1 -0
  108. package/dist/src/components/ui/editor/ihub-editor/constants.js +1 -1
  109. package/dist/src/components/ui/editor/ihub-editor/constants.js.map +1 -1
  110. package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js +2 -0
  111. package/dist/src/components/ui/editor/ihub-editor/extensions/ButtonBlock.js.map +1 -0
  112. package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js +2 -0
  113. package/dist/src/components/ui/editor/ihub-editor/extensions/Callout.js.map +1 -0
  114. package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js +2 -0
  115. package/dist/src/components/ui/editor/ihub-editor/extensions/MediaBlock.js.map +1 -0
  116. package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js +2 -0
  117. package/dist/src/components/ui/editor/ihub-editor/extensions/PreserveStyles.js.map +1 -0
  118. package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js +2 -0
  119. package/dist/src/components/ui/editor/ihub-editor/extensions/SectionBanner.js.map +1 -0
  120. package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js +2 -0
  121. package/dist/src/components/ui/editor/ihub-editor/extensions/TableExtensions.js.map +1 -0
  122. package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js +2 -0
  123. package/dist/src/components/ui/editor/ihub-editor/extensions/ToggleBlock.js.map +1 -0
  124. package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js +2 -0
  125. package/dist/src/components/ui/editor/ihub-editor/extensions/colorUtils.js.map +1 -0
  126. package/dist/src/components/ui/editor/ihub-editor/hooks/useIHubEditor.js +1 -1
  127. package/dist/src/components/ui/editor/ihub-editor/hooks/useMediaEmbed.js +1 -1
  128. package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js +2 -0
  129. package/dist/src/components/ui/editor/ihub-editor/hooks/useSurfaceClick.js.map +1 -0
  130. package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js +2 -0
  131. package/dist/src/components/ui/editor/ihub-editor/table/TableControls.js.map +1 -0
  132. package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js +2 -0
  133. package/dist/src/components/ui/editor/ihub-editor/table/TableLineMenu.js.map +1 -0
  134. package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js +2 -0
  135. package/dist/src/components/ui/editor/ihub-editor/table/tableOps.js.map +1 -0
  136. package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js +2 -0
  137. package/dist/src/components/ui/editor/ihub-editor/table/useTableHover.js.map +1 -0
  138. package/dist/src/components/ui/editor/ihub-editor/types.js +1 -1
  139. package/dist/src/components/ui/editor/ihub-editor/types.js.map +1 -1
  140. package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js +2 -0
  141. package/dist/src/components/ui/editor/ihub-editor/upload/mediaKinds.js.map +1 -0
  142. package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js +2 -0
  143. package/dist/src/components/ui/editor/ihub-editor/upload/s3Direct.js.map +1 -0
  144. package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js +2 -0
  145. package/dist/src/components/ui/editor/ihub-editor/upload/uploadFile.js.map +1 -0
  146. package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js +2 -0
  147. package/dist/src/components/ui/editor/ihub-editor/upload/uploadRegistry.js.map +1 -0
  148. package/dist/src/components/ui/tables/IHubTableServer.js +1 -1
  149. package/dist/src/components/ui/tables/utils/tableState.js +1 -1
  150. package/dist/src/components/ui/tables/utils/tableState.js.map +1 -1
  151. package/dist/src/types/components/ui/editor/ihub-editor/IHubTextEditor.d.ts +1 -1
  152. package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockHandle.d.ts +16 -0
  153. package/dist/src/types/components/ui/editor/ihub-editor/blocks/BlockKeymap.d.ts +11 -0
  154. package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockLayout.d.ts +37 -0
  155. package/dist/src/types/components/ui/editor/ihub-editor/blocks/blockOps.d.ts +45 -0
  156. package/dist/src/types/components/ui/editor/ihub-editor/blocks/useBlockDrag.d.ts +30 -0
  157. package/dist/src/types/components/ui/editor/ihub-editor/components/ColorPalette.d.ts +14 -0
  158. package/dist/src/types/components/ui/editor/ihub-editor/components/FloatingAddButton.d.ts +3 -2
  159. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/ButtonBlockView.d.ts +2 -0
  160. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/CalloutView.d.ts +2 -0
  161. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/SectionBannerView.d.ts +2 -0
  162. package/dist/src/types/components/ui/editor/ihub-editor/components/blocks/useDismiss.d.ts +3 -0
  163. package/dist/src/types/components/ui/editor/ihub-editor/components/commandIcons.d.ts +3 -0
  164. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaBlockView.d.ts +6 -0
  165. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPlaceholder.d.ts +10 -0
  166. package/dist/src/types/components/ui/editor/ihub-editor/components/media/MediaPreview.d.ts +10 -0
  167. package/dist/src/types/components/ui/editor/ihub-editor/constants.d.ts +5 -1
  168. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ButtonBlock.d.ts +21 -0
  169. package/dist/src/types/components/ui/editor/ihub-editor/extensions/Callout.d.ts +20 -0
  170. package/dist/src/types/components/ui/editor/ihub-editor/extensions/MediaBlock.d.ts +39 -0
  171. package/dist/src/types/components/ui/editor/ihub-editor/extensions/PreserveStyles.d.ts +6 -0
  172. package/dist/src/types/components/ui/editor/ihub-editor/extensions/SectionBanner.d.ts +15 -0
  173. package/dist/src/types/components/ui/editor/ihub-editor/extensions/TableExtensions.d.ts +14 -0
  174. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ToggleBlock.d.ts +13 -0
  175. package/dist/src/types/components/ui/editor/ihub-editor/extensions/colorUtils.d.ts +14 -0
  176. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useIHubEditor.d.ts +8 -2
  177. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useMediaEmbed.d.ts +2 -1
  178. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useSurfaceClick.d.ts +28 -0
  179. package/dist/src/types/components/ui/editor/ihub-editor/index.d.ts +1 -1
  180. package/dist/src/types/components/ui/editor/ihub-editor/table/TableControls.d.ts +9 -0
  181. package/dist/src/types/components/ui/editor/ihub-editor/table/TableLineMenu.d.ts +25 -0
  182. package/dist/src/types/components/ui/editor/ihub-editor/table/tableOps.d.ts +25 -0
  183. package/dist/src/types/components/ui/editor/ihub-editor/table/useTableHover.d.ts +25 -0
  184. package/dist/src/types/components/ui/editor/ihub-editor/types.d.ts +83 -2
  185. package/dist/src/types/components/ui/editor/ihub-editor/upload/mediaKinds.d.ts +32 -0
  186. package/dist/src/types/components/ui/editor/ihub-editor/upload/s3Direct.d.ts +5 -0
  187. package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadFile.d.ts +19 -0
  188. package/dist/src/types/components/ui/editor/ihub-editor/upload/uploadRegistry.d.ts +15 -0
  189. package/dist/src/types/components/ui/tables/IHubTableServer.d.ts +6 -0
  190. package/dist/src/types/components/ui/tables/utils/tableState.d.ts +10 -0
  191. package/dist/src/types/index.d.ts +1 -1
  192. package/dist/tsconfig.build.tsbuildinfo +1 -1
  193. package/package.json +8 -4
  194. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js +0 -2
  195. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js.map +0 -1
  196. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js +0 -2
  197. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js.map +0 -1
  198. package/dist/src/types/components/ui/editor/ihub-editor/components/ImageBlock.d.ts +0 -12
  199. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ImageWithCaption.d.ts +0 -14
  200. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useImageUpload.d.ts +0 -11
@@ -0,0 +1,951 @@
1
+ /* ============================================
2
+ IHubTextEditor — blocks, media, tables, palettes
3
+ Prefix: .ihub-te-*
4
+ ============================================ */
5
+
6
+ :root {
7
+ --ihub-te-accent: var(--DarkCyan, #00838f);
8
+ --ihub-te-surface: var(--White, #fff);
9
+ --ihub-te-muted: #6b7280;
10
+ --ihub-te-soft: rgba(0, 131, 143, 0.08);
11
+ --ihub-te-line: rgba(15, 23, 42, 0.12);
12
+ --ihub-te-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
13
+ }
14
+
15
+ .DarkMode {
16
+ --ihub-te-muted: #9ca3af;
17
+ --ihub-te-line: rgba(255, 255, 255, 0.14);
18
+ --ihub-te-soft: rgba(0, 155, 162, 0.16);
19
+ }
20
+
21
+ /* The area is a height-capped flex column: stop the content from shrinking
22
+ so anything after it (table toolbar) doesn't overlap the text. */
23
+ .ihub-te-editor-area > .ihub-te-content-wrapper {
24
+ flex: 1 0 auto;
25
+ }
26
+
27
+ .ihub-te-editor-area > .ihub-te-table-toolbar {
28
+ position: sticky;
29
+ bottom: 8px;
30
+ z-index: 15;
31
+ flex-shrink: 0;
32
+ }
33
+
34
+ /* ---- Tables: live wrapper, selection, resize ---- */
35
+ .ihub-te-content .tableWrapper {
36
+ overflow-x: auto;
37
+ margin: 1.5rem 0;
38
+ }
39
+
40
+ .ihub-te-content .tableWrapper > table {
41
+ margin: 0;
42
+ }
43
+
44
+ .ihub-te-content .selectedCell::after {
45
+ content: "";
46
+ position: absolute;
47
+ inset: 0;
48
+ background: var(--ihub-te-soft);
49
+ pointer-events: none;
50
+ z-index: 1;
51
+ }
52
+
53
+ .ihub-te-content .column-resize-handle {
54
+ position: absolute;
55
+ top: 0;
56
+ right: -2px;
57
+ bottom: -2px;
58
+ width: 4px;
59
+ background: var(--ihub-te-accent);
60
+ pointer-events: none;
61
+ z-index: 2;
62
+ }
63
+
64
+ .ihub-te-content.resize-cursor {
65
+ cursor: col-resize;
66
+ }
67
+
68
+ /* Email / layout tables keep their own look: no forced grid or fixed layout. */
69
+ .ihub-te-content table[role="presentation"],
70
+ .ihub-te-content table[border="0"] {
71
+ table-layout: auto;
72
+ border-collapse: separate;
73
+ margin: 0;
74
+ }
75
+
76
+ /* Without a width attribute an email table shrinks to fit (e.g. CTA buttons). */
77
+ .ihub-te-content table[role="presentation"]:not([width]),
78
+ .ihub-te-content table[border="0"]:not([width]) {
79
+ width: auto;
80
+ }
81
+
82
+ .ihub-te-content table[role="presentation"] > tbody > tr > td,
83
+ .ihub-te-content table[border="0"] > tbody > tr > td {
84
+ border: 1px dashed transparent;
85
+ padding: 0;
86
+ }
87
+
88
+ .ihub-te-wrapper:not(.ihub-te-wrapper--readonly) .ihub-te-content table[role="presentation"] > tbody > tr > td:hover {
89
+ border-color: var(--ihub-te-line);
90
+ }
91
+
92
+ /* ---- Table handles & add bars ---- */
93
+ .ihub-te-table-controls {
94
+ position: absolute;
95
+ inset: 0 auto auto 0;
96
+ width: 0;
97
+ height: 0;
98
+ z-index: 20;
99
+ }
100
+
101
+ .ihub-te-table-handle,
102
+ .ihub-te-table-add,
103
+ .ihub-te-toggle-btn,
104
+ .ihub-te-emoji-picker button,
105
+ .ihub-te-callout-emoji {
106
+ /* Reset the library's global button padding / min-width. */
107
+ padding: 0;
108
+ min-width: 0;
109
+ box-sizing: border-box;
110
+ line-height: 1;
111
+ }
112
+
113
+ .ihub-te-table-handle {
114
+ position: absolute;
115
+ display: grid;
116
+ place-items: center;
117
+ width: 22px;
118
+ height: 22px;
119
+ border: 1px solid var(--ihub-te-line);
120
+ border-radius: 6px;
121
+ background: var(--ihub-te-surface);
122
+ color: var(--ihub-te-muted);
123
+ cursor: pointer;
124
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
125
+ }
126
+
127
+ .ihub-te-table-handle:hover {
128
+ color: var(--ihub-te-accent);
129
+ border-color: var(--ihub-te-accent);
130
+ }
131
+
132
+ .ihub-te-table-add {
133
+ position: absolute;
134
+ display: grid;
135
+ place-items: center;
136
+ min-width: 16px;
137
+ min-height: 16px;
138
+ border: 1px dashed var(--ihub-te-line);
139
+ border-radius: 6px;
140
+ background: transparent;
141
+ color: var(--ihub-te-muted);
142
+ opacity: 0.55;
143
+ cursor: pointer;
144
+ transition: opacity 0.15s ease, background 0.15s ease;
145
+ }
146
+
147
+ .ihub-te-table-add--col { width: 18px; }
148
+ .ihub-te-table-add--row { height: 18px; }
149
+
150
+ .ihub-te-table-add:hover {
151
+ opacity: 1;
152
+ color: var(--ihub-te-accent);
153
+ border-color: var(--ihub-te-accent);
154
+ background: var(--ihub-te-soft);
155
+ }
156
+
157
+ .ihub-te-table-menu {
158
+ position: absolute;
159
+ min-width: 220px;
160
+ padding: 6px;
161
+ background: var(--ihub-te-surface);
162
+ border: 1px solid var(--ihub-te-line);
163
+ border-radius: 10px;
164
+ box-shadow: var(--ihub-te-shadow);
165
+ font-family: var(--ihub-te-ui-font);
166
+ z-index: 30;
167
+ }
168
+
169
+ .ihub-te-table-menu-item {
170
+ display: flex;
171
+ align-items: center;
172
+ gap: 8px;
173
+ width: 100%;
174
+ padding: 6px 8px;
175
+ border: none;
176
+ border-radius: 6px;
177
+ background: transparent;
178
+ color: var(--Gunmetal, #1f2937);
179
+ font-size: 0.8125rem;
180
+ text-align: left;
181
+ cursor: pointer;
182
+ }
183
+
184
+ .ihub-te-table-menu-item:hover:not(:disabled) { background: var(--ihub-te-soft); }
185
+ .ihub-te-table-menu-item:disabled { opacity: 0.4; cursor: not-allowed; }
186
+ .ihub-te-table-menu-item.is-danger { color: #b91c1c; }
187
+
188
+ .ihub-te-table-menu-divider {
189
+ height: 1px;
190
+ margin: 6px 0;
191
+ background: var(--ihub-te-line);
192
+ }
193
+
194
+ .ihub-te-table-menu-note {
195
+ margin: 4px 8px;
196
+ font-size: 0.72rem;
197
+ color: var(--ihub-te-muted);
198
+ }
199
+
200
+ .ihub-te-table-toolbar-color { position: relative; }
201
+
202
+ .ihub-te-table-toolbar-popover {
203
+ bottom: calc(100% + 6px);
204
+ left: 50%;
205
+ transform: translateX(-50%);
206
+ }
207
+
208
+ .ihub-te-table-toolbar-btn.is-active { background: var(--ihub-te-soft); }
209
+
210
+ /* ---- Colour palette ---- */
211
+ .ihub-te-palette { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
212
+
213
+ .ihub-te-palette-label {
214
+ font-size: 0.7rem;
215
+ font-weight: 700;
216
+ letter-spacing: 0.04em;
217
+ text-transform: uppercase;
218
+ color: var(--ihub-te-muted);
219
+ }
220
+
221
+ .ihub-te-palette-grid {
222
+ display: grid;
223
+ grid-template-columns: repeat(8, 20px);
224
+ gap: 5px;
225
+ }
226
+
227
+ .ihub-te-swatch {
228
+ position: relative;
229
+ width: 20px;
230
+ height: 20px;
231
+ padding: 0;
232
+ border: 1px solid var(--ihub-te-line);
233
+ border-radius: 5px;
234
+ cursor: pointer;
235
+ }
236
+
237
+ .ihub-te-swatch.is-active { outline: 2px solid var(--ihub-te-accent); outline-offset: 1px; }
238
+
239
+ .ihub-te-swatch--clear {
240
+ display: grid;
241
+ place-items: center;
242
+ background: var(--ihub-te-surface);
243
+ color: var(--ihub-te-muted);
244
+ }
245
+
246
+ .ihub-te-swatch--custom {
247
+ overflow: hidden;
248
+ background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
249
+ }
250
+
251
+ .ihub-te-swatch--custom input {
252
+ position: absolute;
253
+ inset: -6px;
254
+ width: 32px;
255
+ height: 32px;
256
+ opacity: 0;
257
+ cursor: pointer;
258
+ }
259
+
260
+ /* Bubble toolbar colour panel (dark surface) */
261
+ .ihub-te-bubble-toolbar { position: relative; flex-wrap: wrap; }
262
+
263
+ .ihub-te-bubble-panel {
264
+ position: absolute;
265
+ top: calc(100% + 6px);
266
+ left: 50%;
267
+ transform: translateX(-50%);
268
+ padding: 8px 10px;
269
+ background: #1e293b;
270
+ border-radius: 8px;
271
+ box-shadow: var(--ihub-te-shadow);
272
+ }
273
+
274
+ .ihub-te-bubble-panel .ihub-te-palette-label { color: #cbd5e1; }
275
+
276
+ /* ---- Shared block chrome ---- */
277
+ .ihub-te-block-shell { position: relative; }
278
+
279
+ .ihub-te-block-controls {
280
+ position: absolute;
281
+ top: 6px;
282
+ right: 6px;
283
+ display: flex;
284
+ align-items: center;
285
+ gap: 4px;
286
+ padding: 3px;
287
+ background: var(--ihub-te-surface);
288
+ border: 1px solid var(--ihub-te-line);
289
+ border-radius: 8px;
290
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
291
+ opacity: 0;
292
+ pointer-events: none;
293
+ transition: opacity 0.15s ease;
294
+ z-index: 5;
295
+ font-family: var(--ihub-te-ui-font);
296
+ text-align: left;
297
+ color: var(--Gunmetal, #1f2937);
298
+ }
299
+
300
+ .ihub-te-block-shell:hover > .ihub-te-block-controls,
301
+ .ihub-te-block-shell.is-open > .ihub-te-block-controls,
302
+ .ihub-te-block-shell.is-selected > .ihub-te-block-controls,
303
+ .ihub-te-block-controls:focus-within {
304
+ opacity: 1;
305
+ pointer-events: auto;
306
+ }
307
+
308
+ .ihub-te-block-controls button,
309
+ .ihub-te-block-grip,
310
+ .ihub-te-popover-row button {
311
+ display: grid;
312
+ place-items: center;
313
+ min-width: 26px;
314
+ height: 26px;
315
+ padding: 0 6px;
316
+ border: none;
317
+ border-radius: 6px;
318
+ background: transparent;
319
+ color: inherit;
320
+ font-size: 0.72rem;
321
+ font-weight: 700;
322
+ cursor: pointer;
323
+ }
324
+
325
+ .ihub-te-block-grip { cursor: grab; color: var(--ihub-te-muted); }
326
+
327
+ .ihub-te-block-controls button:hover,
328
+ .ihub-te-block-controls button.is-active,
329
+ .ihub-te-popover-row button:hover,
330
+ .ihub-te-popover-row button.is-active {
331
+ background: var(--ihub-te-soft);
332
+ color: var(--ihub-te-accent);
333
+ }
334
+
335
+ .ihub-te-block-controls button.is-danger:hover { color: #b91c1c; background: #fef2f2; }
336
+
337
+ .ihub-te-block-popover {
338
+ position: absolute;
339
+ top: calc(100% + 6px);
340
+ right: 0;
341
+ display: flex;
342
+ flex-direction: column;
343
+ gap: 10px;
344
+ min-width: 240px;
345
+ padding: 10px;
346
+ background: var(--ihub-te-surface);
347
+ border: 1px solid var(--ihub-te-line);
348
+ border-radius: 10px;
349
+ box-shadow: var(--ihub-te-shadow);
350
+ z-index: 30;
351
+ color: var(--Gunmetal, #1f2937);
352
+ font-family: var(--ihub-te-ui-font);
353
+ text-align: left;
354
+ }
355
+
356
+ .ihub-te-popover-row { display: flex; align-items: center; gap: 4px; }
357
+ .ihub-te-popover-row .ihub-te-palette-label { min-width: 48px; }
358
+
359
+ .ihub-te-popover-done {
360
+ margin-left: auto;
361
+ background: var(--ihub-te-accent) !important;
362
+ color: #fff !important;
363
+ padding: 0 12px !important;
364
+ }
365
+
366
+ .ihub-te-field { display: flex; flex-direction: column; gap: 4px; }
367
+
368
+ .ihub-te-field input,
369
+ .ihub-te-media-link-input {
370
+ width: 100%;
371
+ padding: 7px 10px;
372
+ border: 1px solid var(--ihub-te-line);
373
+ border-radius: 6px;
374
+ background: var(--ihub-te-surface);
375
+ color: var(--Gunmetal, #1f2937);
376
+ font: 0.875rem var(--ihub-te-ui-font);
377
+ }
378
+
379
+ .ihub-te-field input:focus,
380
+ .ihub-te-media-link-input:focus {
381
+ outline: 2px solid var(--ihub-te-soft);
382
+ border-color: var(--ihub-te-accent);
383
+ }
384
+
385
+ /* ---- Section banner ---- */
386
+ .ihub-te-content .ihub-te-banner {
387
+ margin: 1.5rem 0;
388
+ border-radius: 8px;
389
+ }
390
+
391
+ .ihub-te-content .ihub-te-banner :is(h1, h2, h3, h4, p, li, blockquote, strong, em, a) {
392
+ color: inherit;
393
+ }
394
+
395
+ .ihub-te-content .ihub-te-banner > .ihub-te-banner-content > * + *,
396
+ .ihub-te-content .ihub-te-banner > [data-node-view-content] > * + * {
397
+ margin-top: 0.5rem;
398
+ }
399
+
400
+ .ihub-te-content .ihub-te-banner :is(h1, h2, h3) { margin: 0 0 0.5rem; }
401
+
402
+ /* ---- Callout ---- */
403
+ .ihub-te-content .ihub-te-callout {
404
+ display: flex;
405
+ gap: 12px;
406
+ margin: 1.25rem 0;
407
+ padding: 16px 18px;
408
+ border-left: 4px solid var(--ihub-te-accent);
409
+ border-radius: 6px;
410
+ color: #1f2937;
411
+ }
412
+
413
+ .ihub-te-callout-emoji-wrap { position: relative; }
414
+
415
+ .ihub-te-callout-emoji {
416
+ border: none;
417
+ background: transparent;
418
+ font-size: 1.25rem;
419
+ line-height: 1.6;
420
+ cursor: pointer;
421
+ padding: 0;
422
+ }
423
+
424
+ .ihub-te-callout-body { flex: 1; min-width: 0; }
425
+
426
+ /* Callout backgrounds are light in both themes, so keep dark text. */
427
+ .ihub-te-content .ihub-te-callout-body :is(p, li, h1, h2, h3, h4, blockquote, strong, em, span) { color: #1f2937; }
428
+ .ihub-te-callout-body > * + * { margin-top: 0.5rem; }
429
+
430
+ .ihub-te-emoji-picker {
431
+ left: 0;
432
+ right: auto;
433
+ display: grid;
434
+ grid-template-columns: repeat(6, 32px);
435
+ min-width: 0;
436
+ }
437
+
438
+ .ihub-te-emoji-picker button {
439
+ width: 32px;
440
+ height: 32px;
441
+ border: none;
442
+ border-radius: 6px;
443
+ background: transparent;
444
+ font-size: 1.1rem;
445
+ cursor: pointer;
446
+ }
447
+
448
+ .ihub-te-emoji-picker button:hover { background: var(--ihub-te-soft); }
449
+
450
+ .ihub-te-variant-dot {
451
+ width: 14px !important;
452
+ min-width: 14px !important;
453
+ height: 14px !important;
454
+ padding: 0 !important;
455
+ border-radius: 50% !important;
456
+ }
457
+
458
+ .ihub-te-variant-dot.is-active { outline: 2px solid var(--Gunmetal, #1f2937); outline-offset: 1px; }
459
+
460
+ /* ---- Toggle ---- */
461
+ .ihub-te-content .ihub-te-toggle {
462
+ position: relative;
463
+ margin: 0.75rem 0;
464
+ padding-left: 1.75rem;
465
+ }
466
+
467
+ .ihub-te-toggle-btn {
468
+ position: absolute;
469
+ left: 0;
470
+ top: 0.35em;
471
+ width: 1.25rem;
472
+ height: 1.25rem;
473
+ border: none;
474
+ border-radius: 4px;
475
+ background: transparent;
476
+ cursor: pointer;
477
+ color: var(--ihub-te-muted);
478
+ }
479
+
480
+ .ihub-te-toggle-btn::before {
481
+ content: "";
482
+ display: block;
483
+ width: 0;
484
+ height: 0;
485
+ margin: auto;
486
+ border-top: 5px solid transparent;
487
+ border-bottom: 5px solid transparent;
488
+ border-left: 7px solid currentColor;
489
+ transition: transform 0.15s ease;
490
+ }
491
+
492
+ .ihub-te-toggle.is-open > .ihub-te-toggle-btn::before { transform: rotate(90deg); }
493
+ .ihub-te-toggle-btn:hover { background: var(--ihub-te-soft); }
494
+
495
+ .ihub-te-toggle-summary,
496
+ .ihub-te-toggle-content > summary {
497
+ display: block;
498
+ font-weight: 600;
499
+ list-style: none;
500
+ }
501
+
502
+ .ihub-te-toggle:not(.is-open) > .ihub-te-toggle-content > :not(:first-child) { display: none; }
503
+ .ihub-te-toggle-content > * + * { margin-top: 0.5rem; }
504
+
505
+ /* Exported <details> (content viewers) */
506
+ details.ihub-te-toggle > summary { cursor: pointer; font-weight: 600; }
507
+
508
+ /* ---- Button block ---- */
509
+ .ihub-te-content .ihub-te-button-node { margin: 1.5rem 0; }
510
+ .ihub-te-content .ihub-te-button-node.is-selected .ihub-te-button { outline: 2px solid var(--ihub-te-accent); outline-offset: 3px; }
511
+ .ihub-te-button { font-family: var(--ihub-te-ui-font); font-size: 0.95rem; line-height: 1.2; }
512
+ .ihub-te-button-panel { right: auto; left: 50%; transform: translateX(-50%); }
513
+
514
+ /* Inline marks inherit the surrounding typography unless styled inline. */
515
+ .ihub-te-content span {
516
+ font-size: inherit;
517
+ line-height: inherit;
518
+ }
519
+
520
+ .ihub-te-content :is(a, strong, b, em, i, u, s) {
521
+ font-family: inherit;
522
+ }
523
+
524
+ /* ---- Styled wrapper div from pasted HTML ---- */
525
+ .ihub-te-content div[data-styled] > * + * { margin-top: 0; }
526
+
527
+ /* ---- Media blocks ---- */
528
+ .ihub-te-content .ihub-te-media-node {
529
+ position: relative;
530
+ margin: 1.5rem 0;
531
+ }
532
+
533
+ .ihub-te-media-node.is-selected .ihub-te-media-img,
534
+ .ihub-te-media-node.is-selected .ihub-te-media-video,
535
+ .ihub-te-media-node.is-selected .ihub-te-file-card,
536
+ .ihub-te-media-node.is-selected .ihub-te-pdf,
537
+ .ihub-te-media-node.is-selected .ihub-te-embed-responsive,
538
+ .ihub-te-media-node.is-selected .ihub-te-media-placeholder {
539
+ outline: 2px solid var(--ihub-te-accent);
540
+ outline-offset: 2px;
541
+ }
542
+
543
+ .ihub-te-media-img,
544
+ .ihub-te-media-video {
545
+ display: block;
546
+ max-width: 100%;
547
+ height: auto;
548
+ border-radius: 6px;
549
+ }
550
+
551
+ .ihub-te-image-center .ihub-te-media-img,
552
+ .ihub-te-image-center .ihub-te-media-video { margin: 0 auto; }
553
+ .ihub-te-image-right .ihub-te-media-img,
554
+ .ihub-te-image-right .ihub-te-media-video { margin-left: auto; }
555
+
556
+ .ihub-te-media-img.is-uploading { opacity: 0.5; max-height: 280px; object-fit: cover; }
557
+ .ihub-te-media-audio { width: 100%; }
558
+
559
+ .ihub-te-media-toolbar {
560
+ position: absolute;
561
+ top: 8px;
562
+ right: 8px;
563
+ display: flex;
564
+ align-items: center;
565
+ gap: 2px;
566
+ padding: 3px;
567
+ background: rgba(15, 23, 42, 0.85);
568
+ border-radius: 8px;
569
+ opacity: 0;
570
+ pointer-events: none;
571
+ transition: opacity 0.15s ease;
572
+ z-index: 4;
573
+ font-family: var(--ihub-te-ui-font);
574
+ }
575
+
576
+ .ihub-te-media-node:hover > .ihub-te-media-toolbar,
577
+ .ihub-te-media-node.is-selected > .ihub-te-media-toolbar {
578
+ opacity: 1;
579
+ pointer-events: auto;
580
+ }
581
+
582
+ .ihub-te-media-toolbar button,
583
+ .ihub-te-media-toolbar a {
584
+ display: grid;
585
+ place-items: center;
586
+ min-width: 26px;
587
+ height: 26px;
588
+ padding: 0 6px;
589
+ border: none;
590
+ border-radius: 6px;
591
+ background: transparent;
592
+ color: #e2e8f0;
593
+ font-size: 0.72rem;
594
+ font-weight: 700;
595
+ cursor: pointer;
596
+ text-decoration: none;
597
+ }
598
+
599
+ .ihub-te-media-toolbar button:hover,
600
+ .ihub-te-media-toolbar a:hover,
601
+ .ihub-te-media-toolbar button.is-active { background: rgba(255, 255, 255, 0.18); color: #fff; }
602
+ .ihub-te-media-toolbar button.is-danger:hover { background: #b91c1c; }
603
+
604
+ .ihub-te-media-toolbar-divider {
605
+ width: 1px;
606
+ height: 16px;
607
+ margin: 0 2px;
608
+ background: rgba(255, 255, 255, 0.2);
609
+ }
610
+
611
+ .ihub-te-media-caption {
612
+ display: block;
613
+ width: 100%;
614
+ margin-top: 6px;
615
+ padding: 2px 0;
616
+ border: none;
617
+ background: transparent;
618
+ color: var(--ihub-te-muted);
619
+ font: italic 0.875rem var(--ihub-te-ui-font);
620
+ text-align: center;
621
+ outline: none;
622
+ }
623
+
624
+ .ihub-te-media-caption:read-only { cursor: default; }
625
+
626
+ /* Placeholder (Notion-style empty block) */
627
+ .ihub-te-media-placeholder {
628
+ display: flex;
629
+ flex-direction: column;
630
+ gap: 10px;
631
+ padding: 14px 16px;
632
+ border-radius: 8px;
633
+ border: 1px solid var(--ihub-te-line);
634
+ background: rgba(127, 127, 127, 0.07);
635
+ color: var(--Gunmetal, #1f2937);
636
+ font-family: var(--ihub-te-ui-font);
637
+ }
638
+
639
+ .ihub-te-media-placeholder-head { display: flex; align-items: center; gap: 8px; }
640
+ .ihub-te-media-placeholder-icon { display: grid; place-items: center; color: var(--ihub-te-muted); }
641
+ .ihub-te-media-placeholder-title { font-size: 0.9rem; font-weight: 600; }
642
+
643
+ .ihub-te-media-tabs {
644
+ display: flex;
645
+ gap: 4px;
646
+ border-bottom: 1px solid var(--ihub-te-line);
647
+ }
648
+
649
+ .ihub-te-media-tabs button {
650
+ display: flex;
651
+ align-items: center;
652
+ gap: 5px;
653
+ padding: 6px 10px;
654
+ border: none;
655
+ border-bottom: 2px solid transparent;
656
+ background: transparent;
657
+ color: var(--ihub-te-muted);
658
+ font-size: 0.8125rem;
659
+ cursor: pointer;
660
+ }
661
+
662
+ .ihub-te-media-tabs button.is-active { color: var(--Gunmetal, #1f2937); border-bottom-color: var(--ihub-te-accent); }
663
+
664
+ .ihub-te-media-dropzone {
665
+ display: flex;
666
+ flex-direction: column;
667
+ align-items: center;
668
+ gap: 6px;
669
+ padding: 18px;
670
+ border: 1.5px dashed var(--ihub-te-line);
671
+ border-radius: 8px;
672
+ transition: border-color 0.15s ease, background 0.15s ease;
673
+ }
674
+
675
+ .ihub-te-media-dropzone.is-dragging { border-color: var(--ihub-te-accent); background: var(--ihub-te-soft); }
676
+
677
+ .ihub-te-media-upload-btn {
678
+ padding: 8px 16px;
679
+ border: none;
680
+ border-radius: 6px;
681
+ background: var(--ihub-te-accent);
682
+ color: #fff;
683
+ font: 600 0.8125rem var(--ihub-te-ui-font);
684
+ cursor: pointer;
685
+ white-space: nowrap;
686
+ }
687
+
688
+ .ihub-te-media-upload-btn:disabled { opacity: 0.5; cursor: not-allowed; }
689
+ .ihub-te-media-link-row { display: flex; gap: 8px; }
690
+ .ihub-te-media-hint { margin: 0; font-size: 0.78rem; color: var(--ihub-te-muted); }
691
+ .ihub-te-media-error { margin: 6px 0 0; font: 0.8rem var(--ihub-te-ui-font); color: #b91c1c; }
692
+
693
+ .ihub-te-media-uploading { display: flex; flex-direction: column; gap: 8px; font-family: var(--ihub-te-ui-font); }
694
+
695
+ .ihub-te-media-progress {
696
+ height: 6px;
697
+ border-radius: 999px;
698
+ background: var(--ihub-te-line);
699
+ overflow: hidden;
700
+ }
701
+
702
+ .ihub-te-media-progress > span {
703
+ display: block;
704
+ height: 100%;
705
+ background: var(--ihub-te-accent);
706
+ transition: width 0.2s ease;
707
+ }
708
+
709
+ /* File card, PDF viewer (also used by exported HTML) */
710
+ .ihub-te-file-card {
711
+ display: flex;
712
+ align-items: center;
713
+ gap: 12px;
714
+ padding: 12px 14px;
715
+ border: 1px solid var(--ihub-te-line);
716
+ border-radius: 8px;
717
+ color: inherit;
718
+ text-decoration: none;
719
+ font-family: var(--ihub-te-ui-font);
720
+ transition: background 0.15s ease;
721
+ }
722
+
723
+ .ihub-te-file-card:hover { background: var(--ihub-te-soft); }
724
+
725
+ .ihub-te-file-ext {
726
+ display: grid;
727
+ place-items: center;
728
+ min-width: 40px;
729
+ height: 40px;
730
+ padding: 0 4px;
731
+ border-radius: 6px;
732
+ background: var(--ihub-te-soft);
733
+ color: var(--ihub-te-accent);
734
+ font-size: 0.7rem;
735
+ font-weight: 800;
736
+ }
737
+
738
+ .ihub-te-file-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
739
+ .ihub-te-file-name { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
740
+ .ihub-te-file-size { font-size: 0.75rem; color: var(--ihub-te-muted); }
741
+ .ihub-te-file-download { color: var(--ihub-te-muted); flex-shrink: 0; }
742
+
743
+ .ihub-te-pdf { border: 1px solid var(--ihub-te-line); border-radius: 8px; overflow: hidden; }
744
+
745
+ .ihub-te-pdf-header {
746
+ display: flex;
747
+ align-items: center;
748
+ gap: 10px;
749
+ padding: 8px 12px;
750
+ border-bottom: 1px solid var(--ihub-te-line);
751
+ font-family: var(--ihub-te-ui-font);
752
+ }
753
+
754
+ .ihub-te-pdf-header .ihub-te-file-ext { min-width: 34px; height: 28px; }
755
+ .ihub-te-pdf-header .ihub-te-file-name { flex: 1; }
756
+ .ihub-te-pdf-open { color: var(--ihub-te-muted); display: grid; place-items: center; }
757
+
758
+ .ihub-te-pdf-frame {
759
+ display: block;
760
+ width: 100%;
761
+ height: 560px;
762
+ border: none;
763
+ background: #f3f4f6;
764
+ }
765
+
766
+ figure.ihub-te-media--pdf > .ihub-te-pdf-frame { border: 1px solid var(--ihub-te-line); border-radius: 0 0 8px 8px; }
767
+
768
+ .ihub-te-content img.ihub-te-inline-image { max-width: 100%; height: auto; }
769
+
770
+ @media (max-width: 767px) {
771
+ .ihub-te-pdf-frame { height: 420px; }
772
+ .ihub-te-palette-grid { grid-template-columns: repeat(7, 20px); }
773
+ .ihub-te-media-link-row { flex-direction: column; }
774
+ }
775
+
776
+ /* ---- "+" block menu: two-column dropdown below the button ---- */
777
+ .ihub-te-floating-container .ihub-te-floating-menu {
778
+ top: calc(100% + 6px);
779
+ left: 0;
780
+ transform: none;
781
+ display: grid;
782
+ grid-template-columns: repeat(2, minmax(0, 1fr));
783
+ width: min(340px, calc(100vw - 48px));
784
+ max-width: none;
785
+ max-height: 340px;
786
+ overflow-y: auto;
787
+ white-space: normal;
788
+ }
789
+
790
+ .ihub-te-floating-container .ihub-te-floating-menu-item {
791
+ justify-content: flex-start;
792
+ text-align: left;
793
+ }
794
+
795
+ .ihub-te-floating-container:has(.ihub-te-floating-menu) {
796
+ opacity: 1;
797
+ }
798
+
799
+ /* ---- Block handle: "+" and drag grip on every block ---- */
800
+ .ihub-te-block-handle {
801
+ position: absolute;
802
+ z-index: 18;
803
+ display: flex;
804
+ align-items: center;
805
+ gap: 0;
806
+ height: 24px;
807
+ font-family: var(--ihub-te-ui-font);
808
+ /* Solid pill so the handle reads on coloured blocks (callouts, banners) too. */
809
+ border-radius: 6px;
810
+ background: var(--ihub-te-surface);
811
+ box-shadow: 0 0 0 1px var(--ihub-te-line);
812
+ }
813
+
814
+ .ihub-te-block-handle > button {
815
+ display: grid;
816
+ place-items: center;
817
+ width: 22px;
818
+ min-width: 0;
819
+ height: 24px;
820
+ padding: 0;
821
+ border: none;
822
+ border-radius: 4px;
823
+ background: transparent;
824
+ color: var(--ihub-te-muted);
825
+ cursor: pointer;
826
+ opacity: 0.7;
827
+ }
828
+
829
+ .ihub-te-block-handle > button:hover,
830
+ .ihub-te-block-handle > button[aria-expanded="true"] {
831
+ opacity: 1;
832
+ background: var(--ihub-te-soft);
833
+ color: var(--Gunmetal, #1f2937);
834
+ }
835
+
836
+ .ihub-te-block-handle > .ihub-te-block-grip-btn {
837
+ cursor: grab;
838
+ }
839
+
840
+ .ihub-te-block-handle > .ihub-te-block-grip-btn:active {
841
+ cursor: grabbing;
842
+ }
843
+
844
+ .ihub-te-block-menu {
845
+ position: absolute;
846
+ top: calc(100% + 4px);
847
+ left: 0;
848
+ min-width: 200px;
849
+ padding: 6px;
850
+ background: var(--ihub-te-surface);
851
+ border: 1px solid var(--ihub-te-line);
852
+ border-radius: 10px;
853
+ box-shadow: var(--ihub-te-shadow);
854
+ }
855
+
856
+ .ihub-te-block-menu button {
857
+ display: flex;
858
+ align-items: center;
859
+ gap: 8px;
860
+ width: 100%;
861
+ min-width: 0;
862
+ padding: 6px 8px;
863
+ border: none;
864
+ border-radius: 6px;
865
+ background: transparent;
866
+ color: var(--Gunmetal, #1f2937);
867
+ font-size: 0.8125rem;
868
+ text-align: left;
869
+ cursor: pointer;
870
+ }
871
+
872
+ .ihub-te-block-menu button span { flex: 1; }
873
+ .ihub-te-block-menu button kbd { font: 0.7rem var(--ihub-te-ui-font); color: var(--ihub-te-muted); }
874
+ .ihub-te-block-menu button:hover:not(:disabled) { background: var(--ihub-te-soft); }
875
+ .ihub-te-block-menu button:disabled { opacity: 0.4; cursor: not-allowed; }
876
+ .ihub-te-block-menu button.is-danger { color: #b91c1c; }
877
+
878
+ /* Selected block (after clicking its grip) */
879
+ .ihub-te-content > .ProseMirror-selectednode {
880
+ outline: 2px solid var(--ihub-te-soft);
881
+ outline-offset: 2px;
882
+ border-radius: 4px;
883
+ }
884
+
885
+ /* Give the handle room beside blocks */
886
+ .ihub-te-editor-area > .ihub-te-content-wrapper {
887
+ padding-left: max(2rem, 52px);
888
+ }
889
+
890
+ @media (max-width: 767px) {
891
+ .ihub-te-editor-area > .ihub-te-content-wrapper { padding-left: 48px; }
892
+ }
893
+
894
+ /* ---- Block drag: drop line, ghost and dimmed source (Notion style) ---- */
895
+ .ihub-te-drop-indicator {
896
+ position: absolute;
897
+ z-index: 25;
898
+ height: 3px;
899
+ border-radius: 2px;
900
+ background: #2383e2;
901
+ pointer-events: none;
902
+ box-shadow: 0 0 0 1px rgba(35, 131, 226, 0.15);
903
+ }
904
+
905
+ .ihub-te-drop-indicator::before {
906
+ content: "";
907
+ position: absolute;
908
+ left: -4px;
909
+ top: -3px;
910
+ width: 9px;
911
+ height: 9px;
912
+ border-radius: 50%;
913
+ background: #2383e2;
914
+ }
915
+
916
+ .ihub-te-drag-ghost.ihub-te-content {
917
+ position: fixed;
918
+ z-index: 10000;
919
+ max-height: 140px;
920
+ min-height: 0;
921
+ overflow: hidden;
922
+ opacity: 0.7;
923
+ border: 1px solid var(--ihub-te-line);
924
+ pointer-events: none;
925
+ border-radius: 6px;
926
+ background: var(--ihub-te-surface);
927
+ box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
928
+ font-family: var(--ihub-te-body-font);
929
+ font-size: 1.125rem;
930
+ line-height: var(--ihub-te-line-height);
931
+ color: var(--Gunmetal, #1f2937);
932
+ padding: 4px 8px;
933
+ }
934
+
935
+ .ihub-te-drag-ghost.ihub-te-content > * {
936
+ margin: 0 !important;
937
+ }
938
+
939
+ .ihub-te-content > .ihub-te-block-dragging {
940
+ opacity: 0.35;
941
+ }
942
+
943
+ body.ihub-te-body-dragging,
944
+ body.ihub-te-body-dragging * {
945
+ cursor: grabbing !important;
946
+ user-select: none !important;
947
+ }
948
+
949
+ .ihub-te-block-handle > .ihub-te-block-grip-btn {
950
+ touch-action: none;
951
+ }