@fastsprout/reacd-shadcn 0.0.0-stage → 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 (643) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -2
  3. package/THIRD_PARTY_NOTICES.md +21 -0
  4. package/dist/accordion/accordion.adapter.d.ts +2 -0
  5. package/dist/accordion/accordion.adapter.js +10 -0
  6. package/dist/action-menu/menu-content.d.ts +5 -0
  7. package/dist/action-menu/menu-content.js +15 -0
  8. package/dist/action-menu/menu-items.d.ts +5 -0
  9. package/dist/action-menu/menu-items.js +46 -0
  10. package/dist/action-menu/menu-surface.d.ts +7 -0
  11. package/dist/action-menu/menu-surface.js +15 -0
  12. package/dist/action-menu/use-menu-frame.d.ts +8 -0
  13. package/dist/action-menu/use-menu-frame.js +24 -0
  14. package/dist/alert/alert.adapter.d.ts +2 -0
  15. package/dist/alert/alert.adapter.js +13 -0
  16. package/dist/app/app.adapter.d.ts +2 -0
  17. package/dist/app/app.adapter.js +7 -0
  18. package/dist/auth-form/auth-form.adapter.d.ts +2 -0
  19. package/dist/auth-form/auth-form.adapter.js +21 -0
  20. package/dist/avatar/avatar.adapter.d.ts +2 -0
  21. package/dist/avatar/avatar.adapter.js +8 -0
  22. package/dist/avatar-group/avatar-group.adapter.d.ts +2 -0
  23. package/dist/avatar-group/avatar-group.adapter.js +9 -0
  24. package/dist/avatar-group/overflow.adapter.d.ts +5 -0
  25. package/dist/avatar-group/overflow.adapter.js +5 -0
  26. package/dist/badge/badge.adapter.d.ts +2 -0
  27. package/dist/badge/badge.adapter.js +9 -0
  28. package/dist/banner/banner.adapter.d.ts +2 -0
  29. package/dist/banner/banner.adapter.js +12 -0
  30. package/dist/blog-post/blog-post.adapter.d.ts +3 -0
  31. package/dist/blog-post/blog-post.adapter.js +5 -0
  32. package/dist/blog-posts/blog-posts.adapter.d.ts +3 -0
  33. package/dist/blog-posts/blog-posts.adapter.js +7 -0
  34. package/dist/breadcrumb/breadcrumb.adapter.d.ts +2 -0
  35. package/dist/breadcrumb/breadcrumb.adapter.js +13 -0
  36. package/dist/button/button.adapter.d.ts +2 -0
  37. package/dist/button/button.adapter.js +8 -0
  38. package/dist/calendar/calendar-date.d.ts +7 -0
  39. package/dist/calendar/calendar-date.js +24 -0
  40. package/dist/calendar/calendar-day-button.d.ts +2 -0
  41. package/dist/calendar/calendar-day-button.js +9 -0
  42. package/dist/calendar/calendar-form-bridge.d.ts +6 -0
  43. package/dist/calendar/calendar-form-bridge.js +11 -0
  44. package/dist/calendar/calendar-localization.d.ts +15 -0
  45. package/dist/calendar/calendar-localization.js +28 -0
  46. package/dist/calendar/calendar.adapter.d.ts +2 -0
  47. package/dist/calendar/calendar.adapter.js +47 -0
  48. package/dist/card/card.adapter.d.ts +2 -0
  49. package/dist/card/card.adapter.js +13 -0
  50. package/dist/carousel/carousel-panel.d.ts +7 -0
  51. package/dist/carousel/carousel-panel.js +8 -0
  52. package/dist/carousel/carousel.adapter.d.ts +2 -0
  53. package/dist/carousel/carousel.adapter.js +43 -0
  54. package/dist/carousel/focus-boundary.d.ts +16 -0
  55. package/dist/carousel/focus-boundary.js +19 -0
  56. package/dist/changelog-version/changelog-version.adapter.d.ts +3 -0
  57. package/dist/changelog-version/changelog-version.adapter.js +5 -0
  58. package/dist/changelog-versions/changelog-versions.adapter.d.ts +3 -0
  59. package/dist/changelog-versions/changelog-versions.adapter.js +8 -0
  60. package/dist/chart/cartesian.d.ts +5 -0
  61. package/dist/chart/cartesian.js +15 -0
  62. package/dist/chart/chart-graphic.d.ts +2 -0
  63. package/dist/chart/chart-graphic.js +14 -0
  64. package/dist/chart/chart-table.d.ts +2 -0
  65. package/dist/chart/chart-table.js +6 -0
  66. package/dist/chart/chart.adapter.d.ts +2 -0
  67. package/dist/chart/chart.adapter.js +17 -0
  68. package/dist/chart/legend.d.ts +3 -0
  69. package/dist/chart/legend.js +14 -0
  70. package/dist/chart/patterns.d.ts +9 -0
  71. package/dist/chart/patterns.js +8 -0
  72. package/dist/chat-attachment/chat-attachment.adapter.d.ts +2 -0
  73. package/dist/chat-attachment/chat-attachment.adapter.js +12 -0
  74. package/dist/chat-disclosure/chat-disclosure.d.ts +9 -0
  75. package/dist/chat-disclosure/chat-disclosure.js +10 -0
  76. package/dist/chat-message/chat-message.adapter.d.ts +2 -0
  77. package/dist/chat-message/chat-message.adapter.js +12 -0
  78. package/dist/chat-messages/chat-messages.adapter.d.ts +2 -0
  79. package/dist/chat-messages/chat-messages.adapter.js +13 -0
  80. package/dist/chat-messages/use-follow-latest.d.ts +6 -0
  81. package/dist/chat-messages/use-follow-latest.js +33 -0
  82. package/dist/chat-palette/chat-palette.adapter.d.ts +2 -0
  83. package/dist/chat-palette/chat-palette.adapter.js +4 -0
  84. package/dist/chat-prompt/chat-prompt.adapter.d.ts +2 -0
  85. package/dist/chat-prompt/chat-prompt.adapter.js +30 -0
  86. package/dist/chat-prompt/use-prompt-controls.d.ts +22 -0
  87. package/dist/chat-prompt/use-prompt-controls.js +69 -0
  88. package/dist/chat-prompt/use-prompt-escape.d.ts +5 -0
  89. package/dist/chat-prompt/use-prompt-escape.js +39 -0
  90. package/dist/chat-prompt-submit/chat-prompt-submit.adapter.d.ts +2 -0
  91. package/dist/chat-prompt-submit/chat-prompt-submit.adapter.js +14 -0
  92. package/dist/chat-prompt-submit/prompt-action.d.ts +12 -0
  93. package/dist/chat-prompt-submit/prompt-action.js +45 -0
  94. package/dist/chat-reasoning/chat-reasoning.adapter.d.ts +2 -0
  95. package/dist/chat-reasoning/chat-reasoning.adapter.js +15 -0
  96. package/dist/chat-reasoning/use-reasoning-disclosure.d.ts +10 -0
  97. package/dist/chat-reasoning/use-reasoning-disclosure.js +23 -0
  98. package/dist/chat-shimmer/chat-shimmer.adapter.d.ts +2 -0
  99. package/dist/chat-shimmer/chat-shimmer.adapter.js +5 -0
  100. package/dist/chat-tool/chat-tool.adapter.d.ts +2 -0
  101. package/dist/chat-tool/chat-tool.adapter.js +7 -0
  102. package/dist/checkbox/checkbox.adapter.d.ts +2 -0
  103. package/dist/checkbox/checkbox.adapter.js +27 -0
  104. package/dist/checkbox-group/checkbox-group.adapter.d.ts +2 -0
  105. package/dist/checkbox-group/checkbox-group.adapter.js +18 -0
  106. package/dist/chip/chip.adapter.d.ts +2 -0
  107. package/dist/chip/chip.adapter.js +12 -0
  108. package/dist/code-editor/code-editor.adapter.d.ts +2 -0
  109. package/dist/code-editor/code-editor.adapter.js +9 -0
  110. package/dist/collapsible/collapsible.adapter.d.ts +2 -0
  111. package/dist/collapsible/collapsible.adapter.js +11 -0
  112. package/dist/color-mode-avatar/color-mode-avatar.adapter.d.ts +2 -0
  113. package/dist/color-mode-avatar/color-mode-avatar.adapter.js +6 -0
  114. package/dist/color-mode-button/color-mode-button.adapter.d.ts +2 -0
  115. package/dist/color-mode-button/color-mode-button.adapter.js +11 -0
  116. package/dist/color-mode-image/color-mode-image.adapter.d.ts +2 -0
  117. package/dist/color-mode-image/color-mode-image.adapter.js +6 -0
  118. package/dist/color-mode-image/mode-image.d.ts +4 -0
  119. package/dist/color-mode-image/mode-image.js +8 -0
  120. package/dist/color-mode-select/color-mode-select.adapter.d.ts +2 -0
  121. package/dist/color-mode-select/color-mode-select.adapter.js +16 -0
  122. package/dist/color-mode-switch/color-mode-switch.adapter.d.ts +2 -0
  123. package/dist/color-mode-switch/color-mode-switch.adapter.js +5 -0
  124. package/dist/color-picker/color-hex.d.ts +11 -0
  125. package/dist/color-picker/color-hex.js +57 -0
  126. package/dist/color-picker/color-picker.adapter.d.ts +2 -0
  127. package/dist/color-picker/color-picker.adapter.js +20 -0
  128. package/dist/color-picker/use-color-model.d.ts +6 -0
  129. package/dist/color-picker/use-color-model.js +18 -0
  130. package/dist/command-palette/command-palette.adapter.d.ts +2 -0
  131. package/dist/command-palette/command-palette.adapter.js +44 -0
  132. package/dist/container/container.adapter.d.ts +2 -0
  133. package/dist/container/container.adapter.js +4 -0
  134. package/dist/content-navigation/content-navigation.adapter.d.ts +2 -0
  135. package/dist/content-navigation/content-navigation.adapter.js +10 -0
  136. package/dist/content-search/content-search.adapter.d.ts +2 -0
  137. package/dist/content-search/content-search.adapter.js +27 -0
  138. package/dist/content-search-button/content-search-button.adapter.d.ts +2 -0
  139. package/dist/content-search-button/content-search-button.adapter.js +6 -0
  140. package/dist/content-surround/content-surround.adapter.d.ts +2 -0
  141. package/dist/content-surround/content-surround.adapter.js +14 -0
  142. package/dist/content-toc/content-toc.adapter.d.ts +2 -0
  143. package/dist/content-toc/content-toc.adapter.js +10 -0
  144. package/dist/context-menu/context-menu.adapter.d.ts +2 -0
  145. package/dist/context-menu/context-menu.adapter.js +13 -0
  146. package/dist/context-menu/keyboard-trigger.d.ts +2 -0
  147. package/dist/context-menu/keyboard-trigger.js +13 -0
  148. package/dist/dashboard-group/dashboard-group.adapter.d.ts +3 -0
  149. package/dist/dashboard-group/dashboard-group.adapter.js +54 -0
  150. package/dist/dashboard-navbar/dashboard-navbar.adapter.d.ts +2 -0
  151. package/dist/dashboard-navbar/dashboard-navbar.adapter.js +12 -0
  152. package/dist/dashboard-panel/dashboard-panel.adapter.d.ts +2 -0
  153. package/dist/dashboard-panel/dashboard-panel.adapter.js +18 -0
  154. package/dist/dashboard-resize-handle/dashboard-resize-handle.adapter.d.ts +2 -0
  155. package/dist/dashboard-resize-handle/dashboard-resize-handle.adapter.js +46 -0
  156. package/dist/dashboard-search/dashboard-search.adapter.d.ts +2 -0
  157. package/dist/dashboard-search/dashboard-search.adapter.js +24 -0
  158. package/dist/dashboard-search-button/dashboard-search-button.adapter.d.ts +2 -0
  159. package/dist/dashboard-search-button/dashboard-search-button.adapter.js +6 -0
  160. package/dist/dashboard-sidebar/dashboard-sidebar.adapter.d.ts +2 -0
  161. package/dist/dashboard-sidebar/dashboard-sidebar.adapter.js +19 -0
  162. package/dist/dashboard-sidebar-collapse/dashboard-sidebar-collapse.adapter.d.ts +2 -0
  163. package/dist/dashboard-sidebar-collapse/dashboard-sidebar-collapse.adapter.js +22 -0
  164. package/dist/dashboard-sidebar-toggle/dashboard-sidebar-toggle.adapter.d.ts +2 -0
  165. package/dist/dashboard-sidebar-toggle/dashboard-sidebar-toggle.adapter.js +22 -0
  166. package/dist/dashboard-toolbar/dashboard-toolbar.adapter.d.ts +2 -0
  167. package/dist/dashboard-toolbar/dashboard-toolbar.adapter.js +4 -0
  168. package/dist/data-table/data-table.adapter.d.ts +2 -0
  169. package/dist/data-table/data-table.adapter.js +28 -0
  170. package/dist/data-table/filters.adapter.d.ts +8 -0
  171. package/dist/data-table/filters.adapter.js +40 -0
  172. package/dist/data-table/pagination.adapter.d.ts +2 -0
  173. package/dist/data-table/pagination.adapter.js +21 -0
  174. package/dist/divider/divider.adapter.d.ts +1 -0
  175. package/dist/divider/divider.adapter.js +5 -0
  176. package/dist/drawer/drawer.adapter.d.ts +2 -0
  177. package/dist/drawer/drawer.adapter.js +14 -0
  178. package/dist/dropdown-menu/dropdown-menu.adapter.d.ts +2 -0
  179. package/dist/dropdown-menu/dropdown-menu.adapter.js +14 -0
  180. package/dist/editor/drag-session.d.ts +7 -0
  181. package/dist/editor/drag-session.js +41 -0
  182. package/dist/editor/editor.adapter.d.ts +2 -0
  183. package/dist/editor/editor.adapter.js +21 -0
  184. package/dist/editor/publish-edit.d.ts +3 -0
  185. package/dist/editor/publish-edit.js +12 -0
  186. package/dist/editor/use-editor-port.d.ts +5 -0
  187. package/dist/editor/use-editor-port.js +40 -0
  188. package/dist/editor/use-editor-session.d.ts +14 -0
  189. package/dist/editor/use-editor-session.js +198 -0
  190. package/dist/editor-conversion/attribute.d.ts +3 -0
  191. package/dist/editor-conversion/attribute.js +3 -0
  192. package/dist/editor-conversion/budget.d.ts +2 -0
  193. package/dist/editor-conversion/budget.js +61 -0
  194. package/dist/editor-conversion/from-sdk-block.d.ts +5 -0
  195. package/dist/editor-conversion/from-sdk-block.js +73 -0
  196. package/dist/editor-conversion/from-sdk-inline.d.ts +3 -0
  197. package/dist/editor-conversion/from-sdk-inline.js +57 -0
  198. package/dist/editor-conversion/from-sdk.d.ts +4 -0
  199. package/dist/editor-conversion/from-sdk.js +35 -0
  200. package/dist/editor-conversion/id-allocator.d.ts +2 -0
  201. package/dist/editor-conversion/id-allocator.js +29 -0
  202. package/dist/editor-conversion/projection-weight.d.ts +8 -0
  203. package/dist/editor-conversion/projection-weight.js +124 -0
  204. package/dist/editor-conversion/text-chunks.d.ts +6 -0
  205. package/dist/editor-conversion/text-chunks.js +18 -0
  206. package/dist/editor-conversion/to-sdk.d.ts +3 -0
  207. package/dist/editor-conversion/to-sdk.js +58 -0
  208. package/dist/editor-drag-handle/editor-drag-handle.adapter.d.ts +2 -0
  209. package/dist/editor-drag-handle/editor-drag-handle.adapter.js +54 -0
  210. package/dist/editor-drag-handle/use-drag-session.d.ts +9 -0
  211. package/dist/editor-drag-handle/use-drag-session.js +22 -0
  212. package/dist/editor-emoji-menu/editor-emoji-menu.adapter.d.ts +2 -0
  213. package/dist/editor-emoji-menu/editor-emoji-menu.adapter.js +9 -0
  214. package/dist/editor-mention-menu/editor-mention-menu.adapter.d.ts +2 -0
  215. package/dist/editor-mention-menu/editor-mention-menu.adapter.js +17 -0
  216. package/dist/editor-menu/lookup-controller.d.ts +24 -0
  217. package/dist/editor-menu/lookup-controller.js +83 -0
  218. package/dist/editor-menu/menu-panel.d.ts +10 -0
  219. package/dist/editor-menu/menu-panel.js +17 -0
  220. package/dist/editor-menu/menu-plugin.d.ts +3 -0
  221. package/dist/editor-menu/menu-plugin.js +190 -0
  222. package/dist/editor-menu/menu-port.d.ts +3 -0
  223. package/dist/editor-menu/menu-port.js +27 -0
  224. package/dist/editor-menu/menu-store.d.ts +20 -0
  225. package/dist/editor-menu/menu-store.js +92 -0
  226. package/dist/editor-menu/use-editor-menu.d.ts +9 -0
  227. package/dist/editor-menu/use-editor-menu.js +21 -0
  228. package/dist/editor-sdk/apply-paste.d.ts +3 -0
  229. package/dist/editor-sdk/apply-paste.js +12 -0
  230. package/dist/editor-sdk/atom-data.d.ts +7 -0
  231. package/dist/editor-sdk/atom-data.js +41 -0
  232. package/dist/editor-sdk/atoms.d.ts +3 -0
  233. package/dist/editor-sdk/atoms.js +25 -0
  234. package/dist/editor-sdk/block-types.d.ts +1 -0
  235. package/dist/editor-sdk/block-types.js +10 -0
  236. package/dist/editor-sdk/command-chain.d.ts +3 -0
  237. package/dist/editor-sdk/command-chain.js +25 -0
  238. package/dist/editor-sdk/commands.d.ts +5 -0
  239. package/dist/editor-sdk/commands.js +38 -0
  240. package/dist/editor-sdk/controlled-selection.d.ts +2 -0
  241. package/dist/editor-sdk/controlled-selection.js +8 -0
  242. package/dist/editor-sdk/extensions.d.ts +2 -0
  243. package/dist/editor-sdk/extensions.js +21 -0
  244. package/dist/editor-sdk/identity-plugin.d.ts +18 -0
  245. package/dist/editor-sdk/identity-plugin.js +107 -0
  246. package/dist/editor-sdk/identity.d.ts +3 -0
  247. package/dist/editor-sdk/identity.js +28 -0
  248. package/dist/editor-sdk/plain-paste.d.ts +3 -0
  249. package/dist/editor-sdk/plain-paste.js +66 -0
  250. package/dist/editor-sdk/resources.d.ts +5 -0
  251. package/dist/editor-sdk/resources.js +14 -0
  252. package/dist/editor-sdk/select-block.d.ts +2 -0
  253. package/dist/editor-sdk/select-block.js +31 -0
  254. package/dist/editor-sdk/selection-mapping.d.ts +9 -0
  255. package/dist/editor-sdk/selection-mapping.js +92 -0
  256. package/dist/editor-sdk/structural-selection.d.ts +4 -0
  257. package/dist/editor-sdk/structural-selection.js +21 -0
  258. package/dist/editor-suggestion-menu/editor-suggestion-menu.adapter.d.ts +2 -0
  259. package/dist/editor-suggestion-menu/editor-suggestion-menu.adapter.js +13 -0
  260. package/dist/editor-toolbar/editor-toolbar.adapter.d.ts +2 -0
  261. package/dist/editor-toolbar/editor-toolbar.adapter.js +38 -0
  262. package/dist/element/variants.d.ts +5 -0
  263. package/dist/element/variants.js +5 -0
  264. package/dist/empty/empty.adapter.d.ts +2 -0
  265. package/dist/empty/empty.adapter.js +10 -0
  266. package/dist/error/error.adapter.d.ts +2 -0
  267. package/dist/error/error.adapter.js +9 -0
  268. package/dist/field-group/field-group.adapter.d.ts +2 -0
  269. package/dist/field-group/field-group.adapter.js +5 -0
  270. package/dist/file-upload/file-upload.adapter.d.ts +2 -0
  271. package/dist/file-upload/file-upload.adapter.js +60 -0
  272. package/dist/file-upload/intake-validation.d.ts +8 -0
  273. package/dist/file-upload/intake-validation.js +48 -0
  274. package/dist/file-upload/intake.d.ts +36 -0
  275. package/dist/file-upload/intake.js +112 -0
  276. package/dist/file-upload/read-file.d.ts +5 -0
  277. package/dist/file-upload/read-file.js +32 -0
  278. package/dist/footer/footer.adapter.d.ts +2 -0
  279. package/dist/footer/footer.adapter.js +4 -0
  280. package/dist/footer-columns/footer-columns.adapter.d.ts +2 -0
  281. package/dist/footer-columns/footer-columns.adapter.js +8 -0
  282. package/dist/form-field/focus-control.d.ts +1 -0
  283. package/dist/form-field/focus-control.js +21 -0
  284. package/dist/form-field/form-field.adapter.d.ts +2 -0
  285. package/dist/form-field/form-field.adapter.js +22 -0
  286. package/dist/form-menu-shared/request.d.ts +4 -0
  287. package/dist/form-menu-shared/request.js +14 -0
  288. package/dist/grid/grid.adapter.d.ts +2 -0
  289. package/dist/grid/grid.adapter.js +5 -0
  290. package/dist/h-stack/h-stack.adapter.d.ts +2 -0
  291. package/dist/h-stack/h-stack.adapter.js +5 -0
  292. package/dist/header/header-menu.d.ts +7 -0
  293. package/dist/header/header-menu.js +25 -0
  294. package/dist/header/header.adapter.d.ts +2 -0
  295. package/dist/header/header.adapter.js +5 -0
  296. package/dist/icon/icon-map.d.ts +16 -0
  297. package/dist/icon/icon-map.js +17 -0
  298. package/dist/icon/icon.adapter.d.ts +2 -0
  299. package/dist/icon/icon.adapter.js +7 -0
  300. package/dist/index.d.ts +1 -0
  301. package/dist/index.js +1 -0
  302. package/dist/input/input.adapter.d.ts +2 -0
  303. package/dist/input/input.adapter.js +34 -0
  304. package/dist/input/validation-message.d.ts +1 -0
  305. package/dist/input/validation-message.js +13 -0
  306. package/dist/input-date/date-control.d.ts +16 -0
  307. package/dist/input-date/date-control.js +35 -0
  308. package/dist/input-date/input-date.adapter.d.ts +2 -0
  309. package/dist/input-date/input-date.adapter.js +36 -0
  310. package/dist/input-menu/input-menu-form.d.ts +7 -0
  311. package/dist/input-menu/input-menu-form.js +8 -0
  312. package/dist/input-menu/input-menu-popup.d.ts +8 -0
  313. package/dist/input-menu/input-menu-popup.js +13 -0
  314. package/dist/input-menu/input-menu.adapter.d.ts +2 -0
  315. package/dist/input-menu/input-menu.adapter.js +74 -0
  316. package/dist/input-menu/use-input-menu.d.ts +26 -0
  317. package/dist/input-menu/use-input-menu.js +92 -0
  318. package/dist/input-number/input-number.adapter.d.ts +2 -0
  319. package/dist/input-number/input-number.adapter.js +13 -0
  320. package/dist/input-rating/input-rating.adapter.d.ts +2 -0
  321. package/dist/input-rating/input-rating.adapter.js +33 -0
  322. package/dist/input-rating/rating-stars.d.ts +4 -0
  323. package/dist/input-rating/rating-stars.js +9 -0
  324. package/dist/input-tags/input-tags.adapter.d.ts +2 -0
  325. package/dist/input-tags/input-tags.adapter.js +47 -0
  326. package/dist/input-tags/use-tag-draft.d.ts +9 -0
  327. package/dist/input-tags/use-tag-draft.js +43 -0
  328. package/dist/input-time/anchored-time.d.ts +1 -0
  329. package/dist/input-time/anchored-time.js +5 -0
  330. package/dist/input-time/draft-validation.d.ts +1 -0
  331. package/dist/input-time/draft-validation.js +1 -0
  332. package/dist/input-time/focus-draft.d.ts +1 -0
  333. package/dist/input-time/focus-draft.js +1 -0
  334. package/dist/input-time/input-time.adapter.d.ts +2 -0
  335. package/dist/input-time/input-time.adapter.js +32 -0
  336. package/dist/input-time/time-control.d.ts +15 -0
  337. package/dist/input-time/time-control.js +37 -0
  338. package/dist/input-time/use-time-change.d.ts +10 -0
  339. package/dist/input-time/use-time-change.js +4 -0
  340. package/dist/kbd/kbd-key.adapter.d.ts +5 -0
  341. package/dist/kbd/kbd-key.adapter.js +5 -0
  342. package/dist/kbd/kbd.adapter.d.ts +2 -0
  343. package/dist/kbd/kbd.adapter.js +8 -0
  344. package/dist/listbox/clear-focus.d.ts +1 -0
  345. package/dist/listbox/clear-focus.js +8 -0
  346. package/dist/listbox/form-bridge.d.ts +14 -0
  347. package/dist/listbox/form-bridge.js +34 -0
  348. package/dist/listbox/listbox.adapter.d.ts +2 -0
  349. package/dist/listbox/listbox.adapter.js +79 -0
  350. package/dist/listbox/native-semantics.d.ts +9 -0
  351. package/dist/listbox/native-semantics.js +33 -0
  352. package/dist/listbox/selection.d.ts +4 -0
  353. package/dist/listbox/selection.js +31 -0
  354. package/dist/listbox/use-listbox-request.d.ts +10 -0
  355. package/dist/listbox/use-listbox-request.js +73 -0
  356. package/dist/locale-select/locale-select.adapter.d.ts +2 -0
  357. package/dist/locale-select/locale-select.adapter.js +15 -0
  358. package/dist/main/main.adapter.d.ts +2 -0
  359. package/dist/main/main.adapter.js +7 -0
  360. package/dist/marquee/marquee.adapter.d.ts +2 -0
  361. package/dist/marquee/marquee.adapter.js +23 -0
  362. package/dist/modal/modal.adapter.d.ts +2 -0
  363. package/dist/modal/modal.adapter.js +30 -0
  364. package/dist/navigation/navigation.adapter.d.ts +2 -0
  365. package/dist/navigation/navigation.adapter.js +5 -0
  366. package/dist/navigation-menu/menu-target.d.ts +4 -0
  367. package/dist/navigation-menu/menu-target.js +13 -0
  368. package/dist/navigation-menu/navigation-menu.adapter.d.ts +2 -0
  369. package/dist/navigation-menu/navigation-menu.adapter.js +16 -0
  370. package/dist/page-anchors/page-anchors.adapter.d.ts +3 -0
  371. package/dist/page-anchors/page-anchors.adapter.js +5 -0
  372. package/dist/page-aside/page-aside.adapter.d.ts +2 -0
  373. package/dist/page-aside/page-aside.adapter.js +6 -0
  374. package/dist/page-body/page-body.adapter.d.ts +2 -0
  375. package/dist/page-body/page-body.adapter.js +4 -0
  376. package/dist/page-card/page-card.adapter.d.ts +3 -0
  377. package/dist/page-card/page-card.adapter.js +5 -0
  378. package/dist/page-columns/page-columns.adapter.d.ts +2 -0
  379. package/dist/page-columns/page-columns.adapter.js +5 -0
  380. package/dist/page-cta/page-cta.adapter.d.ts +3 -0
  381. package/dist/page-cta/page-cta.adapter.js +5 -0
  382. package/dist/page-feature/page-feature.adapter.d.ts +3 -0
  383. package/dist/page-feature/page-feature.adapter.js +6 -0
  384. package/dist/page-grid/page-grid.adapter.d.ts +2 -0
  385. package/dist/page-grid/page-grid.adapter.js +4 -0
  386. package/dist/page-header/page-header.adapter.d.ts +3 -0
  387. package/dist/page-header/page-header.adapter.js +5 -0
  388. package/dist/page-hero/page-hero.adapter.d.ts +3 -0
  389. package/dist/page-hero/page-hero.adapter.js +5 -0
  390. package/dist/page-links/page-links.adapter.d.ts +3 -0
  391. package/dist/page-links/page-links.adapter.js +5 -0
  392. package/dist/page-list/page-list.adapter.d.ts +2 -0
  393. package/dist/page-list/page-list.adapter.js +6 -0
  394. package/dist/page-logos/page-logos.adapter.d.ts +2 -0
  395. package/dist/page-logos/page-logos.adapter.js +11 -0
  396. package/dist/page-section/page-section.adapter.d.ts +3 -0
  397. package/dist/page-section/page-section.adapter.js +5 -0
  398. package/dist/pagination/pagination-control.d.ts +13 -0
  399. package/dist/pagination/pagination-control.js +31 -0
  400. package/dist/pagination/pagination.adapter.d.ts +2 -0
  401. package/dist/pagination/pagination.adapter.js +23 -0
  402. package/dist/panel/use-panel-frame.d.ts +15 -0
  403. package/dist/panel/use-panel-frame.js +36 -0
  404. package/dist/pin-input/pin-input.adapter.d.ts +2 -0
  405. package/dist/pin-input/pin-input.adapter.js +18 -0
  406. package/dist/pin-input/pin-slots.d.ts +6 -0
  407. package/dist/pin-input/pin-slots.js +9 -0
  408. package/dist/popover/popover.adapter.d.ts +2 -0
  409. package/dist/popover/popover.adapter.js +55 -0
  410. package/dist/pricing-plan/pricing-plan.adapter.d.ts +3 -0
  411. package/dist/pricing-plan/pricing-plan.adapter.js +15 -0
  412. package/dist/pricing-plans/pricing-plans.adapter.d.ts +3 -0
  413. package/dist/pricing-plans/pricing-plans.adapter.js +8 -0
  414. package/dist/pricing-table/pricing-table.adapter.d.ts +3 -0
  415. package/dist/pricing-table/pricing-table.adapter.js +9 -0
  416. package/dist/progress/progress.adapter.d.ts +2 -0
  417. package/dist/progress/progress.adapter.js +10 -0
  418. package/dist/progress-group/progress-group.adapter.d.ts +2 -0
  419. package/dist/progress-group/progress-group.adapter.js +9 -0
  420. package/dist/radio-group/radio-group.adapter.d.ts +2 -0
  421. package/dist/radio-group/radio-group.adapter.js +14 -0
  422. package/dist/registry/action-menus.d.ts +4 -0
  423. package/dist/registry/action-menus.js +9 -0
  424. package/dist/registry/auth-form.d.ts +3 -0
  425. package/dist/registry/auth-form.js +6 -0
  426. package/dist/registry/calendar.d.ts +3 -0
  427. package/dist/registry/calendar.js +6 -0
  428. package/dist/registry/carousel.d.ts +3 -0
  429. package/dist/registry/carousel.js +6 -0
  430. package/dist/registry/chart.d.ts +3 -0
  431. package/dist/registry/chart.js +4 -0
  432. package/dist/registry/chat-composer.d.ts +5 -0
  433. package/dist/registry/chat-composer.js +12 -0
  434. package/dist/registry/chat-feedback.d.ts +5 -0
  435. package/dist/registry/chat-feedback.js +12 -0
  436. package/dist/registry/chat.d.ts +5 -0
  437. package/dist/registry/chat.js +12 -0
  438. package/dist/registry/color-mode.d.ts +7 -0
  439. package/dist/registry/color-mode.js +18 -0
  440. package/dist/registry/color-picker.d.ts +3 -0
  441. package/dist/registry/color-picker.js +6 -0
  442. package/dist/registry/command-palette.d.ts +3 -0
  443. package/dist/registry/command-palette.js +6 -0
  444. package/dist/registry/content-outline.d.ts +4 -0
  445. package/dist/registry/content-outline.js +9 -0
  446. package/dist/registry/content-search.d.ts +4 -0
  447. package/dist/registry/content-search.js +9 -0
  448. package/dist/registry/content.d.ts +26 -0
  449. package/dist/registry/content.js +75 -0
  450. package/dist/registry/dashboard.d.ts +12 -0
  451. package/dist/registry/dashboard.js +33 -0
  452. package/dist/registry/edge-panels.d.ts +4 -0
  453. package/dist/registry/edge-panels.js +9 -0
  454. package/dist/registry/editor-drag-handle.d.ts +3 -0
  455. package/dist/registry/editor-drag-handle.js +6 -0
  456. package/dist/registry/editor-menus.d.ts +5 -0
  457. package/dist/registry/editor-menus.js +12 -0
  458. package/dist/registry/editor.d.ts +4 -0
  459. package/dist/registry/editor.js +9 -0
  460. package/dist/registry/editorial.d.ts +6 -0
  461. package/dist/registry/editorial.js +15 -0
  462. package/dist/registry/element.d.ts +3 -0
  463. package/dist/registry/element.js +4 -0
  464. package/dist/registry/feedback.d.ts +8 -0
  465. package/dist/registry/feedback.js +21 -0
  466. package/dist/registry/fields.d.ts +24 -0
  467. package/dist/registry/fields.js +69 -0
  468. package/dist/registry/file-upload.d.ts +3 -0
  469. package/dist/registry/file-upload.js +6 -0
  470. package/dist/registry/listbox.d.ts +3 -0
  471. package/dist/registry/listbox.js +6 -0
  472. package/dist/registry/marquee.d.ts +3 -0
  473. package/dist/registry/marquee.js +6 -0
  474. package/dist/registry/navigation-composition.d.ts +5 -0
  475. package/dist/registry/navigation-composition.js +12 -0
  476. package/dist/registry/page-composition.d.ts +7 -0
  477. package/dist/registry/page-composition.js +18 -0
  478. package/dist/registry/page-logos.d.ts +3 -0
  479. package/dist/registry/page-logos.js +6 -0
  480. package/dist/registry/page-navigation.d.ts +5 -0
  481. package/dist/registry/page-navigation.js +12 -0
  482. package/dist/registry/page-presentation.d.ts +7 -0
  483. package/dist/registry/page-presentation.js +18 -0
  484. package/dist/registry/pricing.d.ts +5 -0
  485. package/dist/registry/pricing.js +12 -0
  486. package/dist/registry/shells.d.ts +10 -0
  487. package/dist/registry/shells.js +27 -0
  488. package/dist/registry/sidebar-splitter.d.ts +4 -0
  489. package/dist/registry/sidebar-splitter.js +9 -0
  490. package/dist/registry/structure.d.ts +10 -0
  491. package/dist/registry/structure.js +27 -0
  492. package/dist/registry/toast.d.ts +3 -0
  493. package/dist/registry/toast.js +4 -0
  494. package/dist/scroll-area/scroll-area.adapter.d.ts +2 -0
  495. package/dist/scroll-area/scroll-area.adapter.js +6 -0
  496. package/dist/select/display-text.d.ts +2 -0
  497. package/dist/select/display-text.js +18 -0
  498. package/dist/select/select-base-content.adapter.d.ts +6 -0
  499. package/dist/select/select-base-content.adapter.js +16 -0
  500. package/dist/select/select-content.adapter.d.ts +4 -0
  501. package/dist/select/select-content.adapter.js +11 -0
  502. package/dist/select/select-option.d.ts +5 -0
  503. package/dist/select/select-option.js +6 -0
  504. package/dist/select/select.adapter.d.ts +2 -0
  505. package/dist/select/select.adapter.js +47 -0
  506. package/dist/select/use-select-change.d.ts +2 -0
  507. package/dist/select/use-select-change.js +29 -0
  508. package/dist/select-menu/select-menu-form.d.ts +7 -0
  509. package/dist/select-menu/select-menu-form.js +14 -0
  510. package/dist/select-menu/select-menu-popup.d.ts +8 -0
  511. package/dist/select-menu/select-menu-popup.js +39 -0
  512. package/dist/select-menu/select-menu-root.d.ts +8 -0
  513. package/dist/select-menu/select-menu-root.js +34 -0
  514. package/dist/select-menu/select-menu.adapter.d.ts +2 -0
  515. package/dist/select-menu/select-menu.adapter.js +63 -0
  516. package/dist/select-menu/use-select-menu.d.ts +22 -0
  517. package/dist/select-menu/use-select-menu.js +111 -0
  518. package/dist/separator/separator.adapter.d.ts +2 -0
  519. package/dist/separator/separator.adapter.js +6 -0
  520. package/dist/shadcn.adapter.d.ts +2 -0
  521. package/dist/shadcn.adapter.js +102 -0
  522. package/dist/sidebar/sidebar.adapter.d.ts +2 -0
  523. package/dist/sidebar/sidebar.adapter.js +63 -0
  524. package/dist/skeleton/skeleton.adapter.d.ts +2 -0
  525. package/dist/skeleton/skeleton.adapter.js +8 -0
  526. package/dist/slideover/slideover.adapter.d.ts +2 -0
  527. package/dist/slideover/slideover.adapter.js +14 -0
  528. package/dist/slider/request-change.d.ts +2 -0
  529. package/dist/slider/request-change.js +34 -0
  530. package/dist/slider/slider-thumb.d.ts +7 -0
  531. package/dist/slider/slider-thumb.js +18 -0
  532. package/dist/slider/slider.adapter.d.ts +2 -0
  533. package/dist/slider/slider.adapter.js +36 -0
  534. package/dist/splitter/splitter.adapter.d.ts +3 -0
  535. package/dist/splitter/splitter.adapter.js +50 -0
  536. package/dist/stepper/stepper.adapter.d.ts +2 -0
  537. package/dist/stepper/stepper.adapter.js +30 -0
  538. package/dist/styles-contract.d.ts +1 -0
  539. package/dist/styles-contract.js +1 -0
  540. package/dist/styles.css +2 -0
  541. package/dist/styles.d.ts +1 -0
  542. package/dist/styles.js +1 -0
  543. package/dist/submit-button/submit-button.adapter.d.ts +2 -0
  544. package/dist/submit-button/submit-button.adapter.js +11 -0
  545. package/dist/surface/surface.adapter.d.ts +2 -0
  546. package/dist/surface/surface.adapter.js +8 -0
  547. package/dist/switch/switch.adapter.d.ts +2 -0
  548. package/dist/switch/switch.adapter.js +26 -0
  549. package/dist/table/interactive-table.d.ts +2 -0
  550. package/dist/table/interactive-table.js +24 -0
  551. package/dist/table/table.adapter.d.ts +2 -0
  552. package/dist/table/table.adapter.js +14 -0
  553. package/dist/tabs/tabs.adapter.d.ts +2 -0
  554. package/dist/tabs/tabs.adapter.js +17 -0
  555. package/dist/temporal/draft-validity.d.ts +13 -0
  556. package/dist/temporal/draft-validity.js +18 -0
  557. package/dist/temporal/focus-incomplete-segment.d.ts +1 -0
  558. package/dist/temporal/focus-incomplete-segment.js +7 -0
  559. package/dist/temporal/range-reset-focus.d.ts +1 -0
  560. package/dist/temporal/range-reset-focus.js +16 -0
  561. package/dist/temporal/temporal-recovery.d.ts +6 -0
  562. package/dist/temporal/temporal-recovery.js +4 -0
  563. package/dist/temporal/use-range-reset.d.ts +6 -0
  564. package/dist/temporal/use-range-reset.js +55 -0
  565. package/dist/temporal/use-temporal-change.d.ts +10 -0
  566. package/dist/temporal/use-temporal-change.js +21 -0
  567. package/dist/text/text.adapter.d.ts +1 -0
  568. package/dist/text/text.adapter.js +1 -0
  569. package/dist/text-area/text-area.adapter.d.ts +2 -0
  570. package/dist/text-area/text-area.adapter.js +9 -0
  571. package/dist/textarea/textarea.adapter.d.ts +2 -0
  572. package/dist/textarea/textarea.adapter.js +40 -0
  573. package/dist/textarea/use-auto-rows.d.ts +2 -0
  574. package/dist/textarea/use-auto-rows.js +33 -0
  575. package/dist/theme/theme.adapter.d.ts +2 -0
  576. package/dist/theme/theme.adapter.js +23 -0
  577. package/dist/timeline/timeline.adapter.d.ts +2 -0
  578. package/dist/timeline/timeline.adapter.js +13 -0
  579. package/dist/toast/toast-data.d.ts +17 -0
  580. package/dist/toast/toast-data.js +1 -0
  581. package/dist/toast/toast-focus.d.ts +12 -0
  582. package/dist/toast/toast-focus.js +38 -0
  583. package/dist/toast/toast-provider.d.ts +4 -0
  584. package/dist/toast/toast-provider.js +11 -0
  585. package/dist/toast/toast-queue-context.d.ts +24 -0
  586. package/dist/toast/toast-queue-context.js +8 -0
  587. package/dist/toast/toast-queue.d.ts +12 -0
  588. package/dist/toast/toast-queue.js +29 -0
  589. package/dist/toast/toast-registration.d.ts +9 -0
  590. package/dist/toast/toast-registration.js +149 -0
  591. package/dist/toast/toast-viewport.d.ts +1 -0
  592. package/dist/toast/toast-viewport.js +36 -0
  593. package/dist/toast/toast.adapter.d.ts +2 -0
  594. package/dist/toast/toast.adapter.js +14 -0
  595. package/dist/toggle/toggle.adapter.d.ts +2 -0
  596. package/dist/toggle/toggle.adapter.js +8 -0
  597. package/dist/tooltip/tooltip.adapter.d.ts +2 -0
  598. package/dist/tooltip/tooltip.adapter.js +29 -0
  599. package/dist/tooltip/use-tooltip-anchor.d.ts +5 -0
  600. package/dist/tooltip/use-tooltip-anchor.js +36 -0
  601. package/dist/tree/focus-element.d.ts +1 -0
  602. package/dist/tree/focus-element.js +4 -0
  603. package/dist/tree/tree.adapter.d.ts +2 -0
  604. package/dist/tree/tree.adapter.js +27 -0
  605. package/dist/tree/use-tree.d.ts +13 -0
  606. package/dist/tree/use-tree.js +73 -0
  607. package/dist/user/user.adapter.d.ts +2 -0
  608. package/dist/user/user.adapter.js +24 -0
  609. package/dist/v-stack/v-stack.adapter.d.ts +2 -0
  610. package/dist/v-stack/v-stack.adapter.js +5 -0
  611. package/dist/vendor/lib/utils.d.ts +2 -0
  612. package/dist/vendor/lib/utils.js +5 -0
  613. package/dist/vendor/ui/accordion.d.ts +7 -0
  614. package/dist/vendor/ui/accordion.js +14 -0
  615. package/dist/vendor/ui/alert.d.ts +8 -0
  616. package/dist/vendor/ui/alert.js +22 -0
  617. package/dist/vendor/ui/badge.d.ts +9 -0
  618. package/dist/vendor/ui/badge.js +21 -0
  619. package/dist/vendor/ui/button.d.ts +11 -0
  620. package/dist/vendor/ui/button.js +33 -0
  621. package/dist/vendor/ui/card.d.ts +8 -0
  622. package/dist/vendor/ui/card.js +16 -0
  623. package/dist/vendor/ui/checkbox.d.ts +4 -0
  624. package/dist/vendor/ui/checkbox.js +9 -0
  625. package/dist/vendor/ui/input.d.ts +3 -0
  626. package/dist/vendor/ui/input.js +8 -0
  627. package/dist/vendor/ui/label.d.ts +5 -0
  628. package/dist/vendor/ui/label.js +10 -0
  629. package/dist/vendor/ui/progress.d.ts +4 -0
  630. package/dist/vendor/ui/progress.js +8 -0
  631. package/dist/vendor/ui/select.d.ts +13 -0
  632. package/dist/vendor/ui/select.js +27 -0
  633. package/dist/vendor/ui/separator.d.ts +4 -0
  634. package/dist/vendor/ui/separator.js +8 -0
  635. package/dist/vendor/ui/slider.d.ts +4 -0
  636. package/dist/vendor/ui/slider.js +8 -0
  637. package/dist/vendor/ui/switch.d.ts +4 -0
  638. package/dist/vendor/ui/switch.js +8 -0
  639. package/dist/vendor/ui/tabs.d.ts +7 -0
  640. package/dist/vendor/ui/tabs.js +13 -0
  641. package/dist/vendor/ui/textarea.d.ts +3 -0
  642. package/dist/vendor/ui/textarea.js +8 -0
  643. package/package.json +71 -3
@@ -0,0 +1,38 @@
1
+ import { EDITOR_HEADING_LEVELS } from '@fastsprout/reacd/adapter-runtime/core/editor-policy.js';
2
+ import { linkSchema } from '@fastsprout/reacd/adapter-runtime/schema/link/link.schema.js';
3
+ import { editorCommandChain } from './command-chain.js';
4
+ const activeTargets = {
5
+ bold: { name: 'bold' },
6
+ italic: { name: 'italic' },
7
+ strike: { name: 'strike' },
8
+ underline: { name: 'underline' },
9
+ code: { name: 'code' },
10
+ heading1: { name: 'heading', attributes: { level: EDITOR_HEADING_LEVELS[0] } },
11
+ heading2: { name: 'heading', attributes: { level: EDITOR_HEADING_LEVELS[1] } },
12
+ heading3: { name: 'heading', attributes: { level: EDITOR_HEADING_LEVELS[2] } },
13
+ paragraph: { name: 'paragraph' },
14
+ bulletList: { name: 'bulletList' },
15
+ orderedList: { name: 'orderedList' },
16
+ quote: { name: 'blockquote' },
17
+ codeBlock: { name: 'codeBlock' },
18
+ };
19
+ export function canRunSdkCommand(editor, command) {
20
+ if (editor.isDestroyed ||
21
+ (command.command === 'link' &&
22
+ !linkSchema.shape.href.safeParse(command.href).success))
23
+ return false;
24
+ return editorCommandChain(editor.can().chain(), command).run();
25
+ }
26
+ export function runSdkCommand(editor, command) {
27
+ if (!canRunSdkCommand(editor, command))
28
+ return false;
29
+ return editorCommandChain(editor.chain().focus(), command).run();
30
+ }
31
+ export function sdkCommandActive(editor, command) {
32
+ if (editor.isDestroyed)
33
+ return false;
34
+ if (command.command === 'link')
35
+ return editor.isActive('link', { href: command.href });
36
+ const target = activeTargets[command.command];
37
+ return target !== undefined && editor.isActive(target.name, target.attributes);
38
+ }
@@ -0,0 +1,2 @@
1
+ import type { EditorSelection } from '@fastsprout/reacd/adapter-runtime/core/editor-document.js';
2
+ export declare function sameEditorSelection(left: EditorSelection | undefined, right: EditorSelection | undefined): boolean;
@@ -0,0 +1,8 @@
1
+ export function sameEditorSelection(left, right) {
2
+ if (left === undefined || right === undefined)
3
+ return left === right;
4
+ return (left.anchor.blockId === right.anchor.blockId &&
5
+ left.anchor.offset === right.anchor.offset &&
6
+ left.focus.blockId === right.focus.blockId &&
7
+ left.focus.offset === right.focus.offset);
8
+ }
@@ -0,0 +1,2 @@
1
+ import type { EditorIdentityOptions } from './identity-plugin.js';
2
+ export declare function createEditorExtensions(options?: EditorIdentityOptions): (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Node<any, any>)[];
@@ -0,0 +1,21 @@
1
+ import StarterKit from '@tiptap/starter-kit';
2
+ import { EDITOR_BEHAVIOR, EDITOR_HEADING_LEVELS, } from '@fastsprout/reacd/adapter-runtime/core/editor-policy.js';
3
+ import { createEditorAtom } from './atoms.js';
4
+ import { createEditorIdentity } from './identity.js';
5
+ export function createEditorExtensions(options = {}) {
6
+ return [
7
+ StarterKit.configure({
8
+ trailingNode: EDITOR_BEHAVIOR.trailingParagraph,
9
+ heading: { levels: [...EDITOR_HEADING_LEVELS] },
10
+ link: {
11
+ autolink: EDITOR_BEHAVIOR.autoLink,
12
+ linkOnPaste: EDITOR_BEHAVIOR.linkOnPaste,
13
+ openOnClick: EDITOR_BEHAVIOR.openLinks,
14
+ HTMLAttributes: { target: null, class: null, rel: 'noopener noreferrer' },
15
+ },
16
+ }),
17
+ createEditorIdentity(options),
18
+ createEditorAtom('mention'),
19
+ createEditorAtom('emoji'),
20
+ ];
21
+ }
@@ -0,0 +1,18 @@
1
+ import { Plugin } from '@tiptap/pm/state';
2
+ interface MarkupChange {
3
+ readonly position: number;
4
+ readonly attributes: Readonly<Record<string, unknown>>;
5
+ }
6
+ interface RepairPlan {
7
+ readonly changes: readonly MarkupChange[];
8
+ readonly counter: bigint;
9
+ }
10
+ interface IdentityState {
11
+ readonly counter: bigint;
12
+ readonly pending: RepairPlan | null;
13
+ }
14
+ export interface EditorIdentityOptions {
15
+ readonly onRejected?: (() => void) | undefined;
16
+ }
17
+ export declare function createEditorIdentityPlugin({ onRejected, }?: EditorIdentityOptions): Plugin<IdentityState>;
18
+ export {};
@@ -0,0 +1,107 @@
1
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
+ import { Transform } from '@tiptap/pm/transform';
3
+ import { z } from 'zod';
4
+ import { EDITOR_POLICY } from '@fastsprout/reacd/adapter-runtime/core/editor-policy.js';
5
+ import { boundedSdkDocument } from '../editor-conversion/budget.js';
6
+ import { EDITOR_SDK_BLOCK_TYPES } from './block-types.js';
7
+ const BLOCKS = new Set(EDITOR_SDK_BLOCK_TYPES);
8
+ const attributesSchema = z.record(z.string(), z.unknown());
9
+ function prepareRepair(document, initial) {
10
+ if (!boundedSdkDocument(document))
11
+ return null;
12
+ const entries = [];
13
+ let malformed = false;
14
+ const reserved = new Set();
15
+ document.descendants((node, position) => {
16
+ if (malformed)
17
+ return false;
18
+ if (!BLOCKS.has(node.type.name))
19
+ return true;
20
+ const raw = node.attrs;
21
+ const parsed = attributesSchema.safeParse(raw);
22
+ if (!parsed.success) {
23
+ malformed = true;
24
+ return false;
25
+ }
26
+ const candidate = parsed.data['reacdId'];
27
+ const id = typeof candidate === 'string' ? candidate : undefined;
28
+ if (id !== undefined)
29
+ reserved.add(id);
30
+ entries.push({ position, attributes: parsed.data, id });
31
+ return true;
32
+ });
33
+ if (malformed)
34
+ return null;
35
+ let counter = initial;
36
+ const seen = new Set();
37
+ const changes = [];
38
+ for (const entry of entries) {
39
+ if (entry.id !== undefined && !seen.has(entry.id)) {
40
+ seen.add(entry.id);
41
+ continue;
42
+ }
43
+ let id;
44
+ do {
45
+ counter += 1n;
46
+ id = `${EDITOR_POLICY.blockIdPrefix}-${counter}`;
47
+ } while (reserved.has(id));
48
+ reserved.add(id);
49
+ seen.add(id);
50
+ changes.push({
51
+ position: entry.position,
52
+ attributes: Object.freeze({ ...entry.attributes, reacdId: id }),
53
+ });
54
+ }
55
+ if (changes.length > 0) {
56
+ const preview = new Transform(document);
57
+ for (const change of changes)
58
+ preview.setNodeMarkup(change.position, undefined, change.attributes);
59
+ if (!boundedSdkDocument(preview.doc))
60
+ return null;
61
+ }
62
+ return Object.freeze({ counter, changes: Object.freeze(changes) });
63
+ }
64
+ function advanceCounter(transaction, current, key) {
65
+ const value = transaction.getMeta(key);
66
+ return typeof value === 'bigint' && value >= current ? value : current;
67
+ }
68
+ export function createEditorIdentityPlugin({ onRejected, } = {}) {
69
+ const key = new PluginKey('reacdIdentity');
70
+ return new Plugin({
71
+ key,
72
+ state: {
73
+ init: () => Object.freeze({ counter: 0n, pending: null }),
74
+ apply(transaction, previous) {
75
+ const counter = advanceCounter(transaction, previous.counter, key);
76
+ return Object.freeze({
77
+ counter,
78
+ pending: transaction.docChanged
79
+ ? prepareRepair(transaction.doc, counter)
80
+ : previous.pending,
81
+ });
82
+ },
83
+ },
84
+ filterTransaction(transaction, state) {
85
+ if (!transaction.docChanged)
86
+ return true;
87
+ const current = key.getState(state);
88
+ if (current === undefined ||
89
+ prepareRepair(transaction.doc, advanceCounter(transaction, current.counter, key)) === null) {
90
+ onRejected?.();
91
+ return false;
92
+ }
93
+ return true;
94
+ },
95
+ appendTransaction(transactions, _previous, state) {
96
+ if (!transactions.some((transaction) => transaction.docChanged))
97
+ return null;
98
+ const pending = key.getState(state)?.pending;
99
+ if (pending == null || pending.changes.length === 0)
100
+ return null;
101
+ const transaction = state.tr;
102
+ for (const change of pending.changes)
103
+ transaction.setNodeMarkup(change.position, undefined, change.attributes);
104
+ return transaction.setMeta('addToHistory', false).setMeta(key, pending.counter);
105
+ },
106
+ });
107
+ }
@@ -0,0 +1,3 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import type { EditorIdentityOptions } from './identity-plugin.js';
3
+ export declare function createEditorIdentity(options?: EditorIdentityOptions): Extension<any, any>;
@@ -0,0 +1,28 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import { EDITOR_SDK_BLOCK_TYPES } from './block-types.js';
3
+ import { createEditorIdentityPlugin } from './identity-plugin.js';
4
+ export function createEditorIdentity(options = {}) {
5
+ return Extension.create({
6
+ name: 'reacdBlockIdentity',
7
+ addProseMirrorPlugins() {
8
+ return [createEditorIdentityPlugin(options)];
9
+ },
10
+ addGlobalAttributes() {
11
+ return [
12
+ {
13
+ types: [...EDITOR_SDK_BLOCK_TYPES],
14
+ attributes: {
15
+ reacdId: {
16
+ default: null,
17
+ parseHTML: (element) => element.getAttribute('data-reacd-block'),
18
+ renderHTML: (attributes) => {
19
+ const id = attributes['reacdId'];
20
+ return typeof id === 'string' ? { 'data-reacd-block': id } : {};
21
+ },
22
+ },
23
+ },
24
+ },
25
+ ];
26
+ },
27
+ });
28
+ }
@@ -0,0 +1,3 @@
1
+ import type { JSONContent } from '@tiptap/core';
2
+ import type { Result } from '@fastsprout/reacd/adapter-runtime/core/result.js';
3
+ export declare function buildEditorPlainPaste(text: string, mode?: 'inline' | 'code'): Result<JSONContent[]>;
@@ -0,0 +1,66 @@
1
+ import { EDITOR_ERRORS, EDITOR_POLICY, } from '@fastsprout/reacd/adapter-runtime/core/editor-policy.js';
2
+ import { editorTextChunks } from '../editor-conversion/text-chunks.js';
3
+ const PASTE_COST = {
4
+ arrayValues: 1,
5
+ textValues: 3,
6
+ textCharacters: 'typetexttext'.length,
7
+ breakCharacters: 'typehardBreak'.length,
8
+ };
9
+ const MAX_PARTS = Math.min(EDITOR_POLICY.maxInlines, Math.floor((EDITOR_POLICY.maxValues - PASTE_COST.arrayValues) / PASTE_COST.textValues));
10
+ function failure() {
11
+ return {
12
+ success: false,
13
+ issues: [{ path: 'Editor.value', message: EDITOR_ERRORS.rejected }],
14
+ };
15
+ }
16
+ function inlinePlan(text) {
17
+ let breaks = 0;
18
+ for (const character of text) {
19
+ if (character === '\n')
20
+ breaks += 1;
21
+ if (breaks > MAX_PARTS)
22
+ return undefined;
23
+ }
24
+ const plan = [];
25
+ let characters = 0;
26
+ function reserve(part) {
27
+ const cost = part.type === 'text'
28
+ ? PASTE_COST.textCharacters + part.to - part.from
29
+ : PASTE_COST.breakCharacters;
30
+ if (plan.length >= MAX_PARTS || characters + cost > EDITOR_POLICY.maxCharacters)
31
+ return false;
32
+ characters += cost;
33
+ plan.push(part);
34
+ return true;
35
+ }
36
+ let first = true;
37
+ for (const line of text.split('\n')) {
38
+ if (!first && !reserve({ type: 'hardBreak' }))
39
+ return undefined;
40
+ first = false;
41
+ for (const chunk of editorTextChunks(line))
42
+ if (!reserve({ type: 'text', source: line, ...chunk }))
43
+ return undefined;
44
+ }
45
+ return plan;
46
+ }
47
+ export function buildEditorPlainPaste(text, mode = 'inline') {
48
+ if (text.length > EDITOR_POLICY.maxCharacters)
49
+ return failure();
50
+ const normalized = text.replace(/\r\n?/g, '\n');
51
+ if (normalized.length === 0)
52
+ return { success: true, data: [] };
53
+ if (mode === 'code')
54
+ return normalized.length > EDITOR_POLICY.maxTextLength
55
+ ? failure()
56
+ : { success: true, data: [{ type: 'text', text: normalized }] };
57
+ const plan = inlinePlan(normalized);
58
+ if (plan === undefined)
59
+ return failure();
60
+ return {
61
+ success: true,
62
+ data: plan.map((part) => part.type === 'hardBreak'
63
+ ? { type: 'hardBreak' }
64
+ : { type: 'text', text: part.source.slice(part.from, part.to) }),
65
+ };
66
+ }
@@ -0,0 +1,5 @@
1
+ import type { Editor } from '@tiptap/core';
2
+ export declare function createEditorResources(): {
3
+ capture(editor: Editor): void;
4
+ dispose(): void;
5
+ };
@@ -0,0 +1,14 @@
1
+ export function createEditorResources() {
2
+ const editors = new Set();
3
+ return {
4
+ capture(editor) {
5
+ editors.add(editor);
6
+ editor.on('destroy', () => { editors.delete(editor); });
7
+ },
8
+ dispose() {
9
+ for (const editor of editors)
10
+ editor.destroy();
11
+ editors.clear();
12
+ },
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ import type { Editor } from '@tiptap/core';
2
+ export declare function selectSdkBlock(editor: Editor, id: string): boolean;
@@ -0,0 +1,31 @@
1
+ import { EDITOR_NATIVE_POLICY } from '@fastsprout/reacd/adapter-runtime/core/editor-native-policy.js';
2
+ export function selectSdkBlock(editor, id) {
3
+ let target;
4
+ editor.state.doc.descendants((node, position) => {
5
+ if (target !== undefined || node.attrs['reacdId'] !== id)
6
+ return target === undefined;
7
+ if (node.isTextblock) {
8
+ target = {
9
+ position: position + EDITOR_NATIVE_POLICY.nodeOpeningSize,
10
+ text: true,
11
+ };
12
+ return false;
13
+ }
14
+ node.descendants((child, offset) => {
15
+ if (target !== undefined || !child.isTextblock)
16
+ return target === undefined;
17
+ target = {
18
+ position: position + offset + EDITOR_NATIVE_POLICY.nodeOpeningSize * 2,
19
+ text: true,
20
+ };
21
+ return false;
22
+ });
23
+ target ??= { position, text: false };
24
+ return false;
25
+ });
26
+ if (target === undefined)
27
+ return false;
28
+ return target.text
29
+ ? editor.chain().focus().setTextSelection(target.position).run()
30
+ : editor.chain().focus().setNodeSelection(target.position).run();
31
+ }
@@ -0,0 +1,9 @@
1
+ import type { Node } from '@tiptap/pm/model';
2
+ import type { Selection } from '@tiptap/pm/state';
3
+ import type { EditorSelection } from '@fastsprout/reacd/adapter-runtime/core/editor-document.js';
4
+ import type { Result } from '@fastsprout/reacd/adapter-runtime/core/result.js';
5
+ export declare function sdkSelectionToDomain(document: Node, selection: Pick<Selection, 'anchor' | 'head'>): EditorSelection | undefined;
6
+ export declare function domainSelectionToSdk(document: Node, selection: EditorSelection): Result<{
7
+ readonly anchor: number;
8
+ readonly head: number;
9
+ }>;
@@ -0,0 +1,92 @@
1
+ import { editorPositionSchema } from '@fastsprout/reacd/adapter-runtime/schema/editor/document/index.js';
2
+ import { stateKeySchema } from '@fastsprout/reacd/adapter-runtime/schema/state/shared/definition.js';
3
+ import { boundedSdkDocument } from '../editor-conversion/budget.js';
4
+ const EDITABLE_TYPES = new Set(['paragraph', 'heading', 'codeBlock']);
5
+ const POSITION_POLICY = {
6
+ openingTokenSize: 1,
7
+ path: 'Editor.selection',
8
+ invalid: 'Editor selection must resolve to editable blocks and valid logical offsets.',
9
+ };
10
+ function editableBlocks(document) {
11
+ if (!boundedSdkDocument(document))
12
+ return undefined;
13
+ try {
14
+ const blocks = [];
15
+ const ids = new Set();
16
+ let duplicate = false;
17
+ document.descendants((node, position) => {
18
+ if (!EDITABLE_TYPES.has(node.type.name))
19
+ return true;
20
+ const raw = node.attrs['reacdId'];
21
+ const id = stateKeySchema.safeParse(raw);
22
+ if (!id.success)
23
+ return false;
24
+ if (ids.has(id.data)) {
25
+ duplicate = true;
26
+ return false;
27
+ }
28
+ ids.add(id.data);
29
+ const start = position + POSITION_POLICY.openingTokenSize;
30
+ blocks.push({ id: id.data, start, end: start + node.content.size });
31
+ return false;
32
+ });
33
+ if (duplicate)
34
+ return undefined;
35
+ const first = blocks.shift();
36
+ return first === undefined ? undefined : [first, ...blocks];
37
+ }
38
+ catch {
39
+ return undefined;
40
+ }
41
+ }
42
+ function nearest(blocks, point) {
43
+ let chosen = blocks[0];
44
+ let offset = 0;
45
+ let distance = Infinity;
46
+ for (const block of blocks) {
47
+ const snapped = Math.min(block.end, Math.max(block.start, point));
48
+ const currentDistance = Math.abs(point - snapped);
49
+ if (currentDistance < distance) {
50
+ chosen = block;
51
+ offset = snapped - block.start;
52
+ distance = currentDistance;
53
+ }
54
+ }
55
+ return Object.freeze({ blockId: chosen.id, offset });
56
+ }
57
+ function nativePoint(document, value) {
58
+ return Number.isInteger(value) && value >= 0 && value <= document.content.size;
59
+ }
60
+ export function sdkSelectionToDomain(document, selection) {
61
+ const blocks = editableBlocks(document);
62
+ if (blocks === undefined ||
63
+ !nativePoint(document, selection.anchor) ||
64
+ !nativePoint(document, selection.head))
65
+ return undefined;
66
+ return Object.freeze({
67
+ anchor: nearest(blocks, selection.anchor),
68
+ focus: nearest(blocks, selection.head),
69
+ });
70
+ }
71
+ function resolve(blocks, point) {
72
+ const parsed = editorPositionSchema.safeParse(point);
73
+ if (!parsed.success)
74
+ return undefined;
75
+ const block = blocks.find((candidate) => candidate.id === parsed.data.blockId);
76
+ if (block === undefined || parsed.data.offset > block.end - block.start)
77
+ return undefined;
78
+ return block.start + parsed.data.offset;
79
+ }
80
+ export function domainSelectionToSdk(document, selection) {
81
+ const blocks = editableBlocks(document);
82
+ if (blocks !== undefined) {
83
+ const anchor = resolve(blocks, selection.anchor);
84
+ const head = resolve(blocks, selection.focus);
85
+ if (anchor !== undefined && head !== undefined)
86
+ return { success: true, data: Object.freeze({ anchor, head }) };
87
+ }
88
+ return {
89
+ success: false,
90
+ issues: [{ path: POSITION_POLICY.path, message: POSITION_POLICY.invalid }],
91
+ };
92
+ }
@@ -0,0 +1,4 @@
1
+ import type { Node } from '@tiptap/pm/model';
2
+ import type { Selection } from '@tiptap/pm/state';
3
+ export declare function selectedSdkBlockId(selection: Selection): string | undefined;
4
+ export declare function sdkBlockPosition(document: Node, id: string): number | undefined;
@@ -0,0 +1,21 @@
1
+ import { NodeSelection } from '@tiptap/pm/state';
2
+ import { stateKeySchema } from '@fastsprout/reacd/adapter-runtime/schema/state/shared/definition.js';
3
+ export function selectedSdkBlockId(selection) {
4
+ if (!(selection instanceof NodeSelection))
5
+ return undefined;
6
+ const parsed = stateKeySchema.safeParse(selection.node.attrs['reacdId']);
7
+ return parsed.success ? parsed.data : undefined;
8
+ }
9
+ export function sdkBlockPosition(document, id) {
10
+ let found;
11
+ document.descendants((node, position) => {
12
+ if (found !== undefined)
13
+ return false;
14
+ if (node.attrs['reacdId'] === id) {
15
+ found = position;
16
+ return false;
17
+ }
18
+ return true;
19
+ });
20
+ return found;
21
+ }
@@ -0,0 +1,2 @@
1
+ import type { EditorSuggestionMenuProps } from '@fastsprout/reacd/adapter-runtime/components/editor-suggestion-menu/index.js';
2
+ export declare function ShadcnEditorSuggestionMenu(properties: EditorSuggestionMenuProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import { useEditorMenu } from '../editor-menu/use-editor-menu.js';
4
+ import { EditorMenuPanel } from '../editor-menu/menu-panel.js';
5
+ export function ShadcnEditorSuggestionMenu(properties) {
6
+ const items = useMemo(() => properties.items.map((item) => ({
7
+ ...item,
8
+ kind: 'suggestion',
9
+ value: { command: item.command },
10
+ })), [properties.items]);
11
+ const menu = useEditorMenu('suggestion', items, properties.disabled);
12
+ return _jsx(EditorMenuPanel, { label: properties.label, ...menu });
13
+ }
@@ -0,0 +1,2 @@
1
+ import type { EditorToolbarProps } from '@fastsprout/reacd/adapter-runtime/components/editor-toolbar/index.js';
2
+ export declare function ShadcnEditorToolbar({ label, items, disabled, }: EditorToolbarProps): import("react").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useContext } from 'react';
3
+ import { Toolbar } from '@base-ui/react/toolbar';
4
+ import { EDITOR_COMMAND_LABELS, EDITOR_DEFAULT_COMMANDS, } from '@fastsprout/reacd/adapter-runtime/core/editor-commands.js';
5
+ import { EDITOR_BEHAVIOR, EDITOR_DEFAULTS, EDITOR_ERRORS, } from '@fastsprout/reacd/adapter-runtime/core/editor-policy.js';
6
+ import { EditorScopeContext } from '@fastsprout/reacd/adapter-runtime/renderer/editor/editor-context.js';
7
+ import { Issues } from '@fastsprout/reacd/adapter-runtime/renderer/issues/issues.renderer.js';
8
+ import { Button } from '../vendor/ui/button.js';
9
+ const DEFAULT_ITEMS = EDITOR_DEFAULT_COMMANDS.map((command) => ({ command }));
10
+ const ACTIONS = new Set([
11
+ 'undo',
12
+ 'redo',
13
+ 'separator',
14
+ 'removeLink',
15
+ ]);
16
+ function commandValue(item) {
17
+ return item.command === 'link'
18
+ ? { command: 'link', href: item.href }
19
+ : { command: item.command };
20
+ }
21
+ export function ShadcnEditorToolbar({ label = EDITOR_DEFAULTS.toolbarLabel, items = DEFAULT_ITEMS, disabled, }) {
22
+ const port = useContext(EditorScopeContext);
23
+ if (port === null)
24
+ return (_jsx(Issues, { issues: [
25
+ {
26
+ path: 'EditorToolbar',
27
+ message: EDITOR_ERRORS.toolbarScope,
28
+ },
29
+ ] }));
30
+ return (_jsx(Toolbar.Root, { className: "reacd-node reacd-editor-toolbar", "aria-label": label, disabled: disabled === true || port.disabled, loopFocus: EDITOR_BEHAVIOR.loopToolbarFocus, children: items.map((item) => {
31
+ const command = commandValue(item);
32
+ const active = port.active(command);
33
+ return (_jsx(Toolbar.Button, { type: "button", "aria-label": item.label ?? EDITOR_COMMAND_LABELS[item.command], "aria-pressed": ACTIONS.has(item.command) ? undefined : active, disabled: disabled === true ||
34
+ port.disabled ||
35
+ item.disabled === true ||
36
+ !port.available(command), focusableWhenDisabled: EDITOR_BEHAVIOR.toolbarDisabledFocusable, render: _jsx(Button, { className: "reacd-button", variant: active ? 'default' : 'outline' }), onClick: () => port.execute(command), children: item.label ?? EDITOR_COMMAND_LABELS[item.command] }, item.command));
37
+ }) }));
38
+ }
@@ -0,0 +1,5 @@
1
+ export declare const ELEMENT_BUTTON_VARIANTS: {
2
+ readonly primary: 'default';
3
+ readonly secondary: 'secondary';
4
+ readonly danger: 'destructive';
5
+ };
@@ -0,0 +1,5 @@
1
+ export const ELEMENT_BUTTON_VARIANTS = {
2
+ primary: 'default',
3
+ secondary: 'secondary',
4
+ danger: 'destructive',
5
+ };
@@ -0,0 +1,2 @@
1
+ import type { EmptyProps } from '@fastsprout/reacd/adapter-runtime/components/empty/empty.js';
2
+ export declare function ShadcnEmpty({ title, description, leading, children, actions, footer, size, variant, loading, loadingLabel, }: EmptyProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from 'react';
3
+ import { EMPTY_DEFAULTS } from '@fastsprout/reacd/adapter-runtime/core/empty-policy.js';
4
+ import { SpinnerSurface } from '@fastsprout/reacd/adapter-runtime/renderer/spinner/spinner.renderer.js';
5
+ export function ShadcnEmpty({ title, description, leading, children, actions, footer, size = EMPTY_DEFAULTS.size, variant = EMPTY_DEFAULTS.variant, loading = EMPTY_DEFAULTS.loading, loadingLabel = EMPTY_DEFAULTS.loadingLabel, }) {
6
+ const id = useId();
7
+ const titleId = `${id}-title`;
8
+ const descriptionId = `${id}-description`;
9
+ return (_jsxs("section", { className: "reacd-node reacd-empty", "data-slot": "empty", "data-size": size, "data-variant": variant, role: "region", "aria-labelledby": titleId, "aria-describedby": description === undefined ? undefined : descriptionId, "data-loading": loading, children: [_jsxs("header", { className: "reacd-empty-header", "data-slot": "empty-header", children: [leading !== undefined && (_jsx("div", { className: "reacd-empty-leading", "data-slot": "empty-media", children: leading })), _jsx("h2", { id: titleId, className: "reacd-empty-title", "data-slot": "empty-title", children: title }), description !== undefined && (_jsx("p", { id: descriptionId, "data-slot": "empty-description", children: description }))] }), loading && _jsx(SpinnerSurface, { label: loadingLabel }), children !== undefined && (_jsx("div", { className: "reacd-empty-content", "data-slot": "empty-content", "aria-busy": loading, children: children })), actions !== undefined && (_jsx("div", { className: "reacd-empty-actions", "data-slot": "empty-actions", children: actions })), footer !== undefined && _jsx("footer", { className: "reacd-empty-footer", children: footer })] }));
10
+ }
@@ -0,0 +1,2 @@
1
+ import type { ErrorProps } from '@fastsprout/reacd/adapter-runtime/components/error/error.js';
2
+ export declare function ShadcnError({ statusCode, title, message, children, leading, actions, redirect, recoveryLabel, }: ErrorProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from 'react';
3
+ import { APPLICATION_DEFAULTS } from '@fastsprout/reacd/adapter-runtime/core/application-shell-policy.js';
4
+ export function ShadcnError({ statusCode, title, message, children, leading, actions, redirect, recoveryLabel = APPLICATION_DEFAULTS.recoveryLabel, }) {
5
+ const id = useId();
6
+ const titleId = `${id}-error-title`;
7
+ const messageId = `${id}-error-message`;
8
+ return (_jsxs("section", { className: "reacd-node reacd-error", role: "region", "aria-labelledby": titleId, "aria-describedby": message === undefined ? undefined : messageId, children: [leading !== undefined && _jsx("div", { children: leading }), _jsx("p", { className: "reacd-error-status", children: statusCode }), _jsx("h2", { id: titleId, children: title }), message !== undefined && _jsx("p", { id: messageId, children: message }), children, _jsxs("div", { className: "reacd-error-actions", children: [actions, redirect !== undefined && (_jsx("a", { className: "reacd-node reacd-button", href: redirect, children: recoveryLabel }))] })] }));
9
+ }
@@ -0,0 +1,2 @@
1
+ import type { FieldGroupProps } from '@fastsprout/reacd/adapter-runtime/components/field-group/index.js';
2
+ export declare function ShadcnFieldGroup({ label, orientation, children, }: FieldGroupProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FIELD_GROUP_DEFAULTS } from '@fastsprout/reacd/adapter-runtime/core/field-group-policy.js';
3
+ export function ShadcnFieldGroup({ label, orientation = FIELD_GROUP_DEFAULTS.orientation, children, }) {
4
+ return (_jsx("div", { className: "reacd-node reacd-field-group", role: "group", "aria-label": label, "data-orientation": orientation, children: children }));
5
+ }
@@ -0,0 +1,2 @@
1
+ import type { FileUploadProps } from '@fastsprout/reacd/adapter-runtime/components/file-upload/index.js';
2
+ export declare function ShadcnFileUpload(props: FileUploadProps): import("react").JSX.Element;