@pipe0/react 0.0.4 → 0.0.6

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 (307) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +58 -2
  3. package/dist/components/compound/pipe-catalog/active-filters.d.mts +7 -10
  4. package/dist/components/compound/pipe-catalog/active-filters.d.mts.map +1 -1
  5. package/dist/components/compound/pipe-catalog/active-filters.mjs +22 -18
  6. package/dist/components/compound/pipe-catalog/active-filters.mjs.map +1 -1
  7. package/dist/components/compound/pipe-catalog/card.d.mts +3 -12
  8. package/dist/components/compound/pipe-catalog/card.d.mts.map +1 -1
  9. package/dist/components/compound/pipe-catalog/card.mjs +28 -25
  10. package/dist/components/compound/pipe-catalog/card.mjs.map +1 -1
  11. package/dist/components/compound/pipe-catalog/category-filter.d.mts +6 -13
  12. package/dist/components/compound/pipe-catalog/category-filter.d.mts.map +1 -1
  13. package/dist/components/compound/pipe-catalog/category-filter.mjs +12 -13
  14. package/dist/components/compound/pipe-catalog/category-filter.mjs.map +1 -1
  15. package/dist/components/compound/pipe-catalog/column-filter.d.mts +6 -14
  16. package/dist/components/compound/pipe-catalog/column-filter.d.mts.map +1 -1
  17. package/dist/components/compound/pipe-catalog/column-filter.mjs +9 -9
  18. package/dist/components/compound/pipe-catalog/column-filter.mjs.map +1 -1
  19. package/dist/components/compound/pipe-catalog/empty.d.mts +5 -10
  20. package/dist/components/compound/pipe-catalog/empty.d.mts.map +1 -1
  21. package/dist/components/compound/pipe-catalog/empty.mjs +12 -14
  22. package/dist/components/compound/pipe-catalog/empty.mjs.map +1 -1
  23. package/dist/components/compound/pipe-catalog/index.d.mts +1 -1
  24. package/dist/components/compound/pipe-catalog/input-field-filter.d.mts +3 -3
  25. package/dist/components/compound/pipe-catalog/input-field-filter.d.mts.map +1 -1
  26. package/dist/components/compound/pipe-catalog/input-field-filter.mjs.map +1 -1
  27. package/dist/components/compound/pipe-catalog/list.d.mts +8 -25
  28. package/dist/components/compound/pipe-catalog/list.d.mts.map +1 -1
  29. package/dist/components/compound/pipe-catalog/list.mjs +14 -14
  30. package/dist/components/compound/pipe-catalog/list.mjs.map +1 -1
  31. package/dist/components/compound/pipe-catalog/output-field-filter.d.mts +3 -3
  32. package/dist/components/compound/pipe-catalog/output-field-filter.d.mts.map +1 -1
  33. package/dist/components/compound/pipe-catalog/output-field-filter.mjs.map +1 -1
  34. package/dist/components/compound/pipe-catalog/provider-filter.d.mts +3 -3
  35. package/dist/components/compound/pipe-catalog/provider-filter.d.mts.map +1 -1
  36. package/dist/components/compound/pipe-catalog/provider-filter.mjs.map +1 -1
  37. package/dist/components/compound/pipe-catalog/root.d.mts +6 -6
  38. package/dist/components/compound/pipe-catalog/root.d.mts.map +1 -1
  39. package/dist/components/compound/pipe-catalog/root.mjs +2 -2
  40. package/dist/components/compound/pipe-catalog/root.mjs.map +1 -1
  41. package/dist/components/compound/pipe-catalog/search-filter.d.mts +5 -9
  42. package/dist/components/compound/pipe-catalog/search-filter.d.mts.map +1 -1
  43. package/dist/components/compound/pipe-catalog/search-filter.mjs +9 -10
  44. package/dist/components/compound/pipe-catalog/search-filter.mjs.map +1 -1
  45. package/dist/components/compound/pipe-catalog/tag-filter.d.mts +3 -3
  46. package/dist/components/compound/pipe-catalog/tag-filter.d.mts.map +1 -1
  47. package/dist/components/compound/pipe-catalog/tag-filter.mjs.map +1 -1
  48. package/dist/components/compound/pipe-form/content.d.mts +6 -3
  49. package/dist/components/compound/pipe-form/content.d.mts.map +1 -1
  50. package/dist/components/compound/pipe-form/content.mjs +17 -25
  51. package/dist/components/compound/pipe-form/content.mjs.map +1 -1
  52. package/dist/components/compound/pipe-form/errors.d.mts +23 -0
  53. package/dist/components/compound/pipe-form/errors.d.mts.map +1 -0
  54. package/dist/components/compound/pipe-form/errors.mjs +40 -0
  55. package/dist/components/compound/pipe-form/errors.mjs.map +1 -0
  56. package/dist/components/compound/pipe-form/footer.d.mts +7 -7
  57. package/dist/components/compound/pipe-form/footer.d.mts.map +1 -1
  58. package/dist/components/compound/pipe-form/footer.mjs +11 -6
  59. package/dist/components/compound/pipe-form/footer.mjs.map +1 -1
  60. package/dist/components/compound/pipe-form/header.d.mts +7 -7
  61. package/dist/components/compound/pipe-form/header.d.mts.map +1 -1
  62. package/dist/components/compound/pipe-form/header.mjs +11 -6
  63. package/dist/components/compound/pipe-form/header.mjs.map +1 -1
  64. package/dist/components/compound/pipe-form/index.d.mts +2 -1
  65. package/dist/components/compound/pipe-form/root.d.mts +18 -11
  66. package/dist/components/compound/pipe-form/root.d.mts.map +1 -1
  67. package/dist/components/compound/pipe-form/root.mjs +21 -27
  68. package/dist/components/compound/pipe-form/root.mjs.map +1 -1
  69. package/dist/components/compound/pipe-form/submit-button.d.mts +15 -4
  70. package/dist/components/compound/pipe-form/submit-button.d.mts.map +1 -1
  71. package/dist/components/compound/pipe-form/submit-button.mjs +23 -8
  72. package/dist/components/compound/pipe-form/submit-button.mjs.map +1 -1
  73. package/dist/components/compound/pipe-form/title.d.mts +9 -8
  74. package/dist/components/compound/pipe-form/title.d.mts.map +1 -1
  75. package/dist/components/compound/pipe-form/title.mjs +11 -6
  76. package/dist/components/compound/pipe-form/title.mjs.map +1 -1
  77. package/dist/components/compound/search-catalog/active-filters.d.mts +7 -10
  78. package/dist/components/compound/search-catalog/active-filters.d.mts.map +1 -1
  79. package/dist/components/compound/search-catalog/active-filters.mjs +22 -18
  80. package/dist/components/compound/search-catalog/active-filters.mjs.map +1 -1
  81. package/dist/components/compound/search-catalog/card.d.mts +4 -13
  82. package/dist/components/compound/search-catalog/card.d.mts.map +1 -1
  83. package/dist/components/compound/search-catalog/card.mjs +31 -28
  84. package/dist/components/compound/search-catalog/card.mjs.map +1 -1
  85. package/dist/components/compound/search-catalog/category-filter.d.mts +7 -13
  86. package/dist/components/compound/search-catalog/category-filter.d.mts.map +1 -1
  87. package/dist/components/compound/search-catalog/category-filter.mjs +12 -13
  88. package/dist/components/compound/search-catalog/category-filter.mjs.map +1 -1
  89. package/dist/components/compound/search-catalog/column-filter.d.mts +6 -10
  90. package/dist/components/compound/search-catalog/column-filter.d.mts.map +1 -1
  91. package/dist/components/compound/search-catalog/column-filter.mjs +9 -9
  92. package/dist/components/compound/search-catalog/column-filter.mjs.map +1 -1
  93. package/dist/components/compound/search-catalog/empty.d.mts +5 -10
  94. package/dist/components/compound/search-catalog/empty.d.mts.map +1 -1
  95. package/dist/components/compound/search-catalog/empty.mjs +12 -14
  96. package/dist/components/compound/search-catalog/empty.mjs.map +1 -1
  97. package/dist/components/compound/search-catalog/index.d.mts +1 -1
  98. package/dist/components/compound/search-catalog/list.d.mts +8 -10
  99. package/dist/components/compound/search-catalog/list.d.mts.map +1 -1
  100. package/dist/components/compound/search-catalog/list.mjs +14 -14
  101. package/dist/components/compound/search-catalog/list.mjs.map +1 -1
  102. package/dist/components/compound/search-catalog/output-field-filter.d.mts +3 -3
  103. package/dist/components/compound/search-catalog/output-field-filter.d.mts.map +1 -1
  104. package/dist/components/compound/search-catalog/output-field-filter.mjs.map +1 -1
  105. package/dist/components/compound/search-catalog/provider-filter.d.mts +3 -3
  106. package/dist/components/compound/search-catalog/provider-filter.d.mts.map +1 -1
  107. package/dist/components/compound/search-catalog/provider-filter.mjs.map +1 -1
  108. package/dist/components/compound/search-catalog/root.d.mts +6 -6
  109. package/dist/components/compound/search-catalog/root.d.mts.map +1 -1
  110. package/dist/components/compound/search-catalog/root.mjs +2 -2
  111. package/dist/components/compound/search-catalog/root.mjs.map +1 -1
  112. package/dist/components/compound/search-catalog/search-filter.d.mts +5 -9
  113. package/dist/components/compound/search-catalog/search-filter.d.mts.map +1 -1
  114. package/dist/components/compound/search-catalog/search-filter.mjs +9 -10
  115. package/dist/components/compound/search-catalog/search-filter.mjs.map +1 -1
  116. package/dist/components/compound/search-catalog/tag-filter.d.mts +3 -3
  117. package/dist/components/compound/search-catalog/tag-filter.d.mts.map +1 -1
  118. package/dist/components/compound/search-catalog/tag-filter.mjs.map +1 -1
  119. package/dist/components/compound/search-form/content.d.mts +6 -3
  120. package/dist/components/compound/search-form/content.d.mts.map +1 -1
  121. package/dist/components/compound/search-form/content.mjs +17 -25
  122. package/dist/components/compound/search-form/content.mjs.map +1 -1
  123. package/dist/components/compound/search-form/errors.d.mts +23 -0
  124. package/dist/components/compound/search-form/errors.d.mts.map +1 -0
  125. package/dist/components/compound/search-form/errors.mjs +40 -0
  126. package/dist/components/compound/search-form/errors.mjs.map +1 -0
  127. package/dist/components/compound/search-form/footer.d.mts +7 -7
  128. package/dist/components/compound/search-form/footer.d.mts.map +1 -1
  129. package/dist/components/compound/search-form/footer.mjs +11 -6
  130. package/dist/components/compound/search-form/footer.mjs.map +1 -1
  131. package/dist/components/compound/search-form/header.d.mts +7 -7
  132. package/dist/components/compound/search-form/header.d.mts.map +1 -1
  133. package/dist/components/compound/search-form/header.mjs +11 -6
  134. package/dist/components/compound/search-form/header.mjs.map +1 -1
  135. package/dist/components/compound/search-form/index.d.mts +2 -1
  136. package/dist/components/compound/search-form/root.d.mts +19 -12
  137. package/dist/components/compound/search-form/root.d.mts.map +1 -1
  138. package/dist/components/compound/search-form/root.mjs +21 -27
  139. package/dist/components/compound/search-form/root.mjs.map +1 -1
  140. package/dist/components/compound/search-form/submit-button.d.mts +15 -4
  141. package/dist/components/compound/search-form/submit-button.d.mts.map +1 -1
  142. package/dist/components/compound/search-form/submit-button.mjs +23 -8
  143. package/dist/components/compound/search-form/submit-button.mjs.map +1 -1
  144. package/dist/components/compound/search-form/title.d.mts +9 -8
  145. package/dist/components/compound/search-form/title.d.mts.map +1 -1
  146. package/dist/components/compound/search-form/title.mjs +11 -6
  147. package/dist/components/compound/search-form/title.mjs.map +1 -1
  148. package/dist/components/compound/searches-catalog/active-filters.d.mts +7 -10
  149. package/dist/components/compound/searches-catalog/active-filters.d.mts.map +1 -1
  150. package/dist/components/compound/searches-catalog/active-filters.mjs +22 -18
  151. package/dist/components/compound/searches-catalog/active-filters.mjs.map +1 -1
  152. package/dist/components/compound/searches-catalog/card.d.mts +5 -6
  153. package/dist/components/compound/searches-catalog/card.d.mts.map +1 -1
  154. package/dist/components/compound/searches-catalog/card.mjs +38 -28
  155. package/dist/components/compound/searches-catalog/card.mjs.map +1 -1
  156. package/dist/components/compound/searches-catalog/category-filter.d.mts +7 -13
  157. package/dist/components/compound/searches-catalog/category-filter.d.mts.map +1 -1
  158. package/dist/components/compound/searches-catalog/category-filter.mjs +12 -13
  159. package/dist/components/compound/searches-catalog/category-filter.mjs.map +1 -1
  160. package/dist/components/compound/searches-catalog/column-filter.d.mts +6 -10
  161. package/dist/components/compound/searches-catalog/column-filter.d.mts.map +1 -1
  162. package/dist/components/compound/searches-catalog/column-filter.mjs +9 -9
  163. package/dist/components/compound/searches-catalog/column-filter.mjs.map +1 -1
  164. package/dist/components/compound/searches-catalog/empty.d.mts +5 -10
  165. package/dist/components/compound/searches-catalog/empty.d.mts.map +1 -1
  166. package/dist/components/compound/searches-catalog/empty.mjs +12 -14
  167. package/dist/components/compound/searches-catalog/empty.mjs.map +1 -1
  168. package/dist/components/compound/searches-catalog/index.d.mts +1 -1
  169. package/dist/components/compound/searches-catalog/list.d.mts +8 -10
  170. package/dist/components/compound/searches-catalog/list.d.mts.map +1 -1
  171. package/dist/components/compound/searches-catalog/list.mjs +14 -14
  172. package/dist/components/compound/searches-catalog/list.mjs.map +1 -1
  173. package/dist/components/compound/searches-catalog/output-field-filter.d.mts +3 -3
  174. package/dist/components/compound/searches-catalog/output-field-filter.d.mts.map +1 -1
  175. package/dist/components/compound/searches-catalog/output-field-filter.mjs.map +1 -1
  176. package/dist/components/compound/searches-catalog/provider-filter.d.mts +3 -3
  177. package/dist/components/compound/searches-catalog/provider-filter.d.mts.map +1 -1
  178. package/dist/components/compound/searches-catalog/provider-filter.mjs.map +1 -1
  179. package/dist/components/compound/searches-catalog/root.d.mts +6 -6
  180. package/dist/components/compound/searches-catalog/root.d.mts.map +1 -1
  181. package/dist/components/compound/searches-catalog/root.mjs +2 -2
  182. package/dist/components/compound/searches-catalog/root.mjs.map +1 -1
  183. package/dist/components/compound/searches-catalog/search-filter.d.mts +5 -9
  184. package/dist/components/compound/searches-catalog/search-filter.d.mts.map +1 -1
  185. package/dist/components/compound/searches-catalog/search-filter.mjs +9 -10
  186. package/dist/components/compound/searches-catalog/search-filter.mjs.map +1 -1
  187. package/dist/components/compound/searches-catalog/tag-filter.d.mts +3 -3
  188. package/dist/components/compound/searches-catalog/tag-filter.d.mts.map +1 -1
  189. package/dist/components/compound/searches-catalog/tag-filter.mjs.map +1 -1
  190. package/dist/components/defaults/adapters/index.mjs +2 -2
  191. package/dist/components/defaults/adapters/index.mjs.map +1 -1
  192. package/dist/components/defaults/adapters/json-extraction-input.mjs +291 -199
  193. package/dist/components/defaults/adapters/json-extraction-input.mjs.map +1 -1
  194. package/dist/components/defaults/adapters/{pipes-trigger-input.mjs → pipes-run-if-input.mjs} +32 -32
  195. package/dist/components/defaults/adapters/pipes-run-if-input.mjs.map +1 -0
  196. package/dist/components/defaults/adapters/providers-input.mjs +221 -13
  197. package/dist/components/defaults/adapters/providers-input.mjs.map +1 -1
  198. package/dist/components/defaults/catalog/card-primitives.d.mts +14 -24
  199. package/dist/components/defaults/catalog/card-primitives.d.mts.map +1 -1
  200. package/dist/components/defaults/catalog/card-primitives.mjs +19 -19
  201. package/dist/components/defaults/catalog/card-primitives.mjs.map +1 -1
  202. package/dist/components/defaults/catalog/layout.mjs +7 -10
  203. package/dist/components/defaults/catalog/layout.mjs.map +1 -1
  204. package/dist/components/defaults/layout/field-wrapper.d.mts +2 -2
  205. package/dist/components/defaults/layout/field-wrapper.d.mts.map +1 -1
  206. package/dist/components/defaults/layout/field-wrapper.mjs +5 -2
  207. package/dist/components/defaults/layout/field-wrapper.mjs.map +1 -1
  208. package/dist/components/defaults/layout/group.d.mts +4 -4
  209. package/dist/components/defaults/layout/group.d.mts.map +1 -1
  210. package/dist/components/defaults/layout/group.mjs +69 -54
  211. package/dist/components/defaults/layout/group.mjs.map +1 -1
  212. package/dist/components/defaults/layout/section.d.mts +9 -4
  213. package/dist/components/defaults/layout/section.d.mts.map +1 -1
  214. package/dist/components/defaults/layout/section.mjs +11 -13
  215. package/dist/components/defaults/layout/section.mjs.map +1 -1
  216. package/dist/components/field-renderer.d.mts.map +1 -1
  217. package/dist/components/field-renderer.mjs +1 -1
  218. package/dist/components/field-renderer.mjs.map +1 -1
  219. package/dist/components/internal/LiquidEditor/ChipEditPopover.mjs +30 -15
  220. package/dist/components/internal/LiquidEditor/ChipEditPopover.mjs.map +1 -1
  221. package/dist/components/internal/icons.mjs +36 -1
  222. package/dist/components/internal/icons.mjs.map +1 -1
  223. package/dist/components/internal/multi-select-popover-trigger.mjs +0 -1
  224. package/dist/components/internal/multi-select-popover-trigger.mjs.map +1 -1
  225. package/dist/components/internal/tag-chip-decoration.mjs +15 -0
  226. package/dist/components/internal/tag-chip-decoration.mjs.map +1 -1
  227. package/dist/components/ui/badge.mjs +1 -1
  228. package/dist/components/ui/button.d.mts +2 -2
  229. package/dist/components/ui/combobox.mjs +0 -1
  230. package/dist/components/ui/combobox.mjs.map +1 -1
  231. package/dist/context/pipe-catalog-card-context.d.mts +7 -0
  232. package/dist/context/pipe-catalog-card-context.d.mts.map +1 -1
  233. package/dist/context/pipe-catalog-card-context.mjs.map +1 -1
  234. package/dist/context/pipe-form-context.d.mts +17 -3
  235. package/dist/context/pipe-form-context.d.mts.map +1 -1
  236. package/dist/context/pipe-form-context.mjs.map +1 -1
  237. package/dist/context/search-catalog-card-context.d.mts +8 -0
  238. package/dist/context/search-catalog-card-context.d.mts.map +1 -1
  239. package/dist/context/search-catalog-card-context.mjs.map +1 -1
  240. package/dist/context/search-form-context.d.mts +17 -3
  241. package/dist/context/search-form-context.d.mts.map +1 -1
  242. package/dist/context/search-form-context.mjs.map +1 -1
  243. package/dist/context/searches-catalog-card-context.d.mts +8 -0
  244. package/dist/context/searches-catalog-card-context.d.mts.map +1 -1
  245. package/dist/context/searches-catalog-card-context.mjs.map +1 -1
  246. package/dist/hooks/use-field-error.d.mts +2 -2
  247. package/dist/hooks/use-field-error.d.mts.map +1 -1
  248. package/dist/hooks/use-field-error.mjs +7 -3
  249. package/dist/hooks/use-field-error.mjs.map +1 -1
  250. package/dist/hooks/use-form-core.d.mts +0 -3
  251. package/dist/hooks/use-form-core.d.mts.map +1 -1
  252. package/dist/hooks/use-form-core.mjs +36 -2
  253. package/dist/hooks/use-form-core.mjs.map +1 -1
  254. package/dist/hooks/use-pipe-catalog-table.d.mts +8 -8
  255. package/dist/hooks/use-pipe-form.d.mts +11 -0
  256. package/dist/hooks/use-pipe-form.d.mts.map +1 -1
  257. package/dist/hooks/use-pipe-form.mjs +35 -6
  258. package/dist/hooks/use-pipe-form.mjs.map +1 -1
  259. package/dist/hooks/use-search-catalog-table.d.mts +6 -6
  260. package/dist/hooks/use-search-form.d.mts +11 -0
  261. package/dist/hooks/use-search-form.d.mts.map +1 -1
  262. package/dist/hooks/use-search-form.mjs +35 -6
  263. package/dist/hooks/use-search-form.mjs.map +1 -1
  264. package/dist/index.d.mts +9 -8
  265. package/dist/index.mjs +3 -9
  266. package/dist/styles/pipe0-form.css +418 -38
  267. package/dist/types/adapters.d.mts +6 -5
  268. package/dist/types/adapters.d.mts.map +1 -1
  269. package/dist/types/catalog-adapters.d.mts +2 -2
  270. package/dist/types/field-props.d.mts +4 -16
  271. package/dist/types/field-props.d.mts.map +1 -1
  272. package/dist/types/form-handle.d.mts +81 -1
  273. package/dist/types/form-handle.d.mts.map +1 -1
  274. package/dist/utils/build-section-handlers.mjs +6 -2
  275. package/dist/utils/build-section-handlers.mjs.map +1 -1
  276. package/dist/utils/internal-form.mjs +28 -0
  277. package/dist/utils/internal-form.mjs.map +1 -0
  278. package/dist/widgets/avatar-group.d.mts +4 -7
  279. package/dist/widgets/avatar-group.d.mts.map +1 -1
  280. package/dist/widgets/avatar-group.mjs +13 -12
  281. package/dist/widgets/avatar-group.mjs.map +1 -1
  282. package/package.json +70 -18
  283. package/dist/components/compound/pipe-catalog/index.mjs +0 -15
  284. package/dist/components/compound/pipe-form/index.mjs +0 -11
  285. package/dist/components/compound/search-catalog/index.mjs +0 -14
  286. package/dist/components/compound/search-form/index.mjs +0 -11
  287. package/dist/components/compound/searches-catalog/index.mjs +0 -14
  288. package/dist/components/defaults/adapters/pipes-trigger-input.mjs.map +0 -1
  289. package/dist/components/defaults/layout/submit-button.d.mts +0 -9
  290. package/dist/components/defaults/layout/submit-button.d.mts.map +0 -1
  291. package/dist/components/defaults/layout/submit-button.mjs +0 -23
  292. package/dist/components/defaults/layout/submit-button.mjs.map +0 -1
  293. package/dist/components/defaults/toggle-advanced-button.mjs +0 -29
  294. package/dist/components/defaults/toggle-advanced-button.mjs.map +0 -1
  295. package/dist/components/ui/input-group.mjs +0 -30
  296. package/dist/components/ui/input-group.mjs.map +0 -1
  297. package/dist/context/form-customization-context.d.mts +0 -71
  298. package/dist/context/form-customization-context.d.mts.map +0 -1
  299. package/dist/context/form-customization-context.mjs +0 -114
  300. package/dist/context/form-customization-context.mjs.map +0 -1
  301. package/dist/hooks/use-disclosure.mjs +0 -35
  302. package/dist/hooks/use-disclosure.mjs.map +0 -1
  303. package/dist/utils/render-slot.d.mts +0 -44
  304. package/dist/utils/render-slot.d.mts.map +0 -1
  305. package/dist/utils/render-slot.mjs +0 -30
  306. package/dist/utils/render-slot.mjs.map +0 -1
  307. package/dist/widgets/index.mjs +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"use-pipe-form.mjs","names":[],"sources":["../../src/hooks/use-pipe-form.ts"],"sourcesContent":["import {\n type FormResolvers,\n type FormStore,\n getPipeDefaultPayload,\n getPipePayloadFormConfig,\n getPipePayloadSchema,\n type PipeId,\n type PipePayload,\n type ValidationContext,\n} from \"@pipe0/base\";\nimport { useMemo, useState } from \"react\";\nimport type { PipeFormContext } from \"../context/pipe-form-context.js\";\nimport { type ResourceStatus, useFormCore } from \"./use-form-core.js\";\n\nexport type { PipeFormContext, ResourceStatus };\n\nexport interface UsePipeFormOptions {\n pipeId: PipeId;\n publicKey: string;\n defaultValues?: PipePayload;\n resolvers?: FormResolvers;\n userConnections?: { public_id: string; provider: string }[];\n validationContext?: ValidationContext;\n store?: FormStore;\n /**\n * Form-level scope tags. Bundled into every `resolvers.getSecrets` call so\n * the backend can return only the secrets allowed in the declared scopes.\n */\n scopes?: string[];\n /**\n * Current team context. Bundled into every `resolvers.getSecrets` call so\n * the backend can restrict team-level secrets to this team only.\n */\n teamId?: string;\n}\n\nexport function usePipeForm(options: UsePipeFormOptions): PipeFormContext {\n const {\n pipeId,\n publicKey,\n defaultValues,\n resolvers,\n validationContext,\n store: defaultFormStore,\n scopes,\n teamId,\n } = options;\n\n const schema = useMemo(() => getPipePayloadSchema(pipeId), [pipeId]);\n\n const [store, setStore] = useState<FormStore>(defaultFormStore ?? { field_options: {} });\n\n const formConfig = useMemo(() => {\n const defaultPayload = getPipeDefaultPayload(pipeId);\n if (!defaultPayload) throw new Error(\"No default payload\");\n\n return getPipePayloadFormConfig({\n pipePayload: defaultPayload,\n store,\n validationContext,\n formResolvers: resolvers,\n });\n }, [pipeId, defaultValues, validationContext, store]);\n\n const core = useFormCore<PipePayload>({\n pipeOrSearchId: pipeId,\n kind: \"pipe\",\n schema,\n publicKey,\n defaultValues,\n store,\n setStore,\n formConfig,\n resolvers,\n environment: validationContext?.environment,\n scopes,\n teamId,\n });\n\n return useMemo<PipeFormContext>(\n () => ({\n id: pipeId,\n publicKey,\n form: core.form,\n sections: core.sections,\n fields: core.fields,\n connectionsStatus: core.connectionsStatus,\n fieldLoadStates: core.fieldLoadStates,\n resolvers,\n store,\n reset: core.reset,\n }),\n [\n pipeId,\n publicKey,\n core.form,\n core.sections,\n core.fields,\n core.connectionsStatus,\n core.fieldLoadStates,\n resolvers,\n store,\n core.reset,\n ],\n );\n}\n"],"mappings":";;;;;AAoCA,SAAgB,YAAY,SAA8C;CACxE,MAAM,EACJ,QACA,WACA,eACA,WACA,mBACA,OAAO,kBACP,QACA,WACE;CAEJ,MAAM,SAAS,cAAc,qBAAqB,OAAO,EAAE,CAAC,OAAO,CAAC;CAEpE,MAAM,CAAC,OAAO,YAAY,SAAoB,oBAAoB,EAAE,eAAe,EAAE,EAAE,CAAC;CAcxF,MAAM,OAAO,YAAyB;EACpC,gBAAgB;EAChB,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,YApBiB,cAAc;GAC/B,MAAM,iBAAiB,sBAAsB,OAAO;AACpD,OAAI,CAAC,eAAgB,OAAM,IAAI,MAAM,qBAAqB;AAE1D,UAAO,yBAAyB;IAC9B,aAAa;IACb;IACA;IACA,eAAe;IAChB,CAAC;KACD;GAAC;GAAQ;GAAe;GAAmB;GAAM,CAAC;EAWnD;EACA,aAAa,mBAAmB;EAChC;EACA;EACD,CAAC;AAEF,QAAO,eACE;EACL,IAAI;EACJ;EACA,MAAM,KAAK;EACX,UAAU,KAAK;EACf,QAAQ,KAAK;EACb,mBAAmB,KAAK;EACxB,iBAAiB,KAAK;EACtB;EACA;EACA,OAAO,KAAK;EACb,GACD;EACE;EACA;EACA,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL;EACA;EACA,KAAK;EACN,CACF"}
1
+ {"version":3,"file":"use-pipe-form.mjs","names":[],"sources":["../../src/hooks/use-pipe-form.ts"],"sourcesContent":["import {\n type FormResolvers,\n type FormStore,\n getPipeDefaultPayload,\n getPipePayloadFormConfig,\n getPipePayloadSchema,\n type PipeId,\n type PipePayload,\n type ValidationContext,\n} from \"@pipe0/base\";\nimport { useMemo, useState } from \"react\";\nimport type { PipeFormContext } from \"../context/pipe-form-context.js\";\nimport type {\n FormCustomizationState,\n GroupMap,\n PathMap,\n SectionMap,\n} from \"../types/form-customization.js\";\nimport { applyFormCustomization } from \"../utils/build-section-handlers.js\";\nimport { asFormHandle } from \"../utils/internal-form.js\";\nimport { type ResourceStatus, useFormCore } from \"./use-form-core.js\";\n\nexport type { PipeFormContext, ResourceStatus };\n\nexport interface UsePipeFormOptions {\n pipeId: PipeId;\n publicKey: string;\n defaultValues?: PipePayload;\n resolvers?: FormResolvers;\n userConnections?: { public_id: string; provider: string }[];\n validationContext?: ValidationContext;\n store?: FormStore;\n /**\n * Hide / relabel / reorder sections by section key. `null` hides a section.\n * Note: when `resolvers.getConnections` is omitted, the `connector` section\n * is hidden automatically — there's no value to render without a resolver.\n */\n sectionMap?: SectionMap;\n /** Hide / relabel / reorder groups by group path. `null` hides a group. */\n groupMap?: GroupMap;\n /** Hide / relabel fields by field path. `null` hides a field. */\n pathMap?: PathMap;\n /**\n * Form-level scope tags. Bundled into every `resolvers.getSecrets` call so\n * the backend can return only the secrets allowed in the declared scopes.\n */\n scopes?: string[];\n /**\n * Current team context. Bundled into every `resolvers.getSecrets` call so\n * the backend can restrict team-level secrets to this team only.\n */\n teamId?: string;\n}\n\nexport function usePipeForm(options: UsePipeFormOptions): PipeFormContext {\n const {\n pipeId,\n publicKey,\n defaultValues,\n resolvers,\n validationContext,\n store: defaultFormStore,\n sectionMap,\n groupMap,\n pathMap,\n scopes,\n teamId,\n } = options;\n\n const schema = useMemo(() => getPipePayloadSchema(pipeId), [pipeId]);\n\n const [store, setStore] = useState<FormStore>(defaultFormStore ?? { field_options: {} });\n\n const formConfig = useMemo(() => {\n const defaultPayload = getPipeDefaultPayload(pipeId);\n if (!defaultPayload) throw new Error(\"No default payload\");\n\n return getPipePayloadFormConfig({\n pipePayload: defaultPayload,\n store,\n validationContext,\n formResolvers: resolvers,\n });\n }, [pipeId, defaultValues, validationContext, store]);\n\n const core = useFormCore<PipePayload>({\n pipeOrSearchId: pipeId,\n kind: \"pipe\",\n schema,\n publicKey,\n defaultValues,\n store,\n setStore,\n formConfig,\n resolvers,\n environment: validationContext?.environment,\n scopes,\n teamId,\n });\n\n // Customization is owned by the hook so consumers see already-filtered\n // sections/fields. Connector is auto-hidden when no `getConnections`\n // resolver is wired — nothing to render without one.\n const hasGetConnections = resolvers?.getConnections != null;\n const customization = useMemo<FormCustomizationState>(\n () => ({\n sectionMap: hasGetConnections\n ? (sectionMap ?? {})\n : { ...(sectionMap ?? {}), connector: null },\n groupMap: groupMap ?? {},\n pathMap: pathMap ?? {},\n }),\n [sectionMap, groupMap, pathMap, hasGetConnections],\n );\n\n const sections = useMemo(\n () => applyFormCustomization(core.sections, customization),\n [core.sections, customization],\n );\n\n const fields = useMemo(\n () => sections.flatMap((s) => s.groups.flatMap((g) => g.fields)),\n [sections],\n );\n\n const fieldPaths = useMemo(\n () => new Set(sections.flatMap((s) => s.groups.flatMap((g) => g.fields.map((f) => f.path)))),\n [sections],\n );\n\n return useMemo<PipeFormContext>(\n () => ({\n id: pipeId,\n publicKey,\n form: asFormHandle(core.form),\n sections,\n fields,\n fieldPaths,\n connectionsStatus: core.connectionsStatus,\n fieldLoadStates: core.fieldLoadStates,\n fieldLoaderErrors: core.fieldLoaderErrors,\n loadingFieldLoaders: core.loadingFieldLoaders,\n hasFieldLoaderError: core.hasFieldLoaderError,\n isFieldLoaderLoading: core.isFieldLoaderLoading,\n resolvers,\n store,\n reset: core.reset,\n }),\n [\n pipeId,\n publicKey,\n core.form,\n sections,\n fields,\n fieldPaths,\n core.connectionsStatus,\n core.fieldLoadStates,\n core.fieldLoaderErrors,\n core.loadingFieldLoaders,\n core.hasFieldLoaderError,\n core.isFieldLoaderLoading,\n resolvers,\n store,\n core.reset,\n ],\n );\n}\n"],"mappings":";;;;;;;AAsDA,SAAgB,YAAY,SAA8C;CACxE,MAAM,EACJ,QACA,WACA,eACA,WACA,mBACA,OAAO,kBACP,YACA,UACA,SACA,QACA,WACE;CAEJ,MAAM,SAAS,cAAc,qBAAqB,OAAO,EAAE,CAAC,OAAO,CAAC;CAEpE,MAAM,CAAC,OAAO,YAAY,SAAoB,oBAAoB,EAAE,eAAe,EAAE,EAAE,CAAC;CAcxF,MAAM,OAAO,YAAyB;EACpC,gBAAgB;EAChB,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,YApBiB,cAAc;GAC/B,MAAM,iBAAiB,sBAAsB,OAAO;AACpD,OAAI,CAAC,eAAgB,OAAM,IAAI,MAAM,qBAAqB;AAE1D,UAAO,yBAAyB;IAC9B,aAAa;IACb;IACA;IACA,eAAe;IAChB,CAAC;KACD;GAAC;GAAQ;GAAe;GAAmB;GAAM,CAAC;EAWnD;EACA,aAAa,mBAAmB;EAChC;EACA;EACD,CAAC;CAKF,MAAM,oBAAoB,WAAW,kBAAkB;CACvD,MAAM,gBAAgB,eACb;EACL,YAAY,oBACP,cAAc,EAAE,GACjB;GAAE,GAAI,cAAc,EAAE;GAAG,WAAW;GAAM;EAC9C,UAAU,YAAY,EAAE;EACxB,SAAS,WAAW,EAAE;EACvB,GACD;EAAC;EAAY;EAAU;EAAS;EAAkB,CACnD;CAED,MAAM,WAAW,cACT,uBAAuB,KAAK,UAAU,cAAc,EAC1D,CAAC,KAAK,UAAU,cAAc,CAC/B;CAED,MAAM,SAAS,cACP,SAAS,SAAS,MAAM,EAAE,OAAO,SAAS,MAAM,EAAE,OAAO,CAAC,EAChE,CAAC,SAAS,CACX;CAED,MAAM,aAAa,cACX,IAAI,IAAI,SAAS,SAAS,MAAM,EAAE,OAAO,SAAS,MAAM,EAAE,OAAO,KAAK,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAC5F,CAAC,SAAS,CACX;AAED,QAAO,eACE;EACL,IAAI;EACJ;EACA,MAAM,aAAa,KAAK,KAAK;EAC7B;EACA;EACA;EACA,mBAAmB,KAAK;EACxB,iBAAiB,KAAK;EACtB,mBAAmB,KAAK;EACxB,qBAAqB,KAAK;EAC1B,qBAAqB,KAAK;EAC1B,sBAAsB,KAAK;EAC3B;EACA;EACA,OAAO,KAAK;EACb,GACD;EACE;EACA;EACA,KAAK;EACL;EACA;EACA;EACA,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL;EACA;EACA,KAAK;EACN,CACF"}
@@ -27,12 +27,12 @@ declare function useSearchCatalogTable(config?: {
27
27
  removeColumnFilter: (id: "inputFields" | "outputFields" | "tags" | "providers") => void;
28
28
  resetFilters: () => void;
29
29
  getColumnFilterValue: (id: "inputFields" | "outputFields" | "tags" | "providers") => string;
30
- sortedOutputFieldEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]][];
31
- sortedTagEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]][];
32
- sortedProviderEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]][];
33
- searchIdsByOutputField: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]>;
34
- searchIdsByProvider: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]>;
35
- searchIdsByTag: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:amplemarket@1" | "people:profiles:crustdata@1" | "people:profiles:amplemarket@1")[]>;
30
+ sortedOutputFieldEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]][];
31
+ sortedTagEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]][];
32
+ sortedProviderEntries: [string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]][];
33
+ searchIdsByOutputField: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]>;
34
+ searchIdsByProvider: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]>;
35
+ searchIdsByTag: Record<string, ("companies:profiles:crustdata@1" | "companies:profiles:crustdata@2" | "companies:profiles:amplemarket@1" | "companies:profiles:amplemarket@2" | "people:profiles:crustdata@1" | "people:profiles:crustdata@2" | "people:profiles:amplemarket@1" | "people:profiles:amplemarket@2")[]>;
36
36
  };
37
37
  type UseSearchCatalogTableReturn = ReturnType<typeof useSearchCatalogTable>;
38
38
  //#endregion
@@ -1,4 +1,5 @@
1
1
  import { ResourceStatus } from "./use-form-core.mjs";
2
+ import { GroupMap, PathMap, SectionMap } from "../types/form-customization.mjs";
2
3
  import { SearchFormContext } from "../context/search-form-context.mjs";
3
4
  import { FormResolvers, FormStore, PipesEnvironment, SearchId, SearchPayload } from "@pipe0/base";
4
5
 
@@ -10,6 +11,16 @@ interface UseSearchFormOptions {
10
11
  resolvers?: FormResolvers;
11
12
  environment?: PipesEnvironment;
12
13
  store?: FormStore;
14
+ /**
15
+ * Hide / relabel / reorder sections by section key. `null` hides a section.
16
+ * Note: when `resolvers.getConnections` is omitted, the `connector` section
17
+ * is hidden automatically — there's no value to render without a resolver.
18
+ */
19
+ sectionMap?: SectionMap;
20
+ /** Hide / relabel / reorder groups by group path. `null` hides a group. */
21
+ groupMap?: GroupMap;
22
+ /** Hide / relabel fields by field path. `null` hides a field. */
23
+ pathMap?: PathMap;
13
24
  }
14
25
  declare function useSearchForm(options: UseSearchFormOptions): SearchFormContext;
15
26
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"use-search-form.d.mts","names":[],"sources":["../../src/hooks/use-search-form.ts"],"mappings":";;;;;UAeiB,oBAAA;EACf,QAAA,EAAU,QAAA;EACV,SAAA;EACA,aAAA,GAAgB,aAAA;EAChB,SAAA,GAAY,aAAA;EACZ,WAAA,GAAc,gBAAA;EACd,KAAA,GAAQ,SAAA;AAAA;AAAA,iBAGM,aAAA,CAAc,OAAA,EAAS,oBAAA,GAAuB,iBAAA"}
1
+ {"version":3,"file":"use-search-form.d.mts","names":[],"sources":["../../src/hooks/use-search-form.ts"],"mappings":";;;;;;UAuBiB,oBAAA;EACf,QAAA,EAAU,QAAA;EACV,SAAA;EACA,aAAA,GAAgB,aAAA;EAChB,SAAA,GAAY,aAAA;EACZ,WAAA,GAAc,gBAAA;EACd,KAAA,GAAQ,SAAA;EADM;;;;;EAOd,UAAA,GAAa,UAAA;EAII;EAFjB,QAAA,GAAW,QAAA;EAbD;EAeV,OAAA,GAAU,OAAA;AAAA;AAAA,iBAGI,aAAA,CAAc,OAAA,EAAS,oBAAA,GAAuB,iBAAA"}
@@ -1,10 +1,12 @@
1
+ import { asFormHandle } from "../utils/internal-form.mjs";
2
+ import { applyFormCustomization } from "../utils/build-section-handlers.mjs";
1
3
  import { useFormCore } from "./use-form-core.mjs";
2
4
  import { useMemo, useState } from "react";
3
5
  import { getSearchPayloadFormConfig, getSearchPayloadSchema } from "@pipe0/base";
4
6
 
5
7
  //#region src/hooks/use-search-form.ts
6
8
  function useSearchForm(options) {
7
- const { searchId, publicKey, defaultValues, resolvers, environment, store: defaultStore } = options;
9
+ const { searchId, publicKey, defaultValues, resolvers, environment, store: defaultStore, sectionMap, groupMap, pathMap } = options;
8
10
  const schema = useMemo(() => getSearchPayloadSchema(searchId), [searchId]);
9
11
  const [store, setStore] = useState(defaultStore ?? { field_options: {} });
10
12
  const core = useFormCore({
@@ -28,14 +30,36 @@ function useSearchForm(options) {
28
30
  resolvers,
29
31
  environment
30
32
  });
33
+ const hasGetConnections = resolvers?.getConnections != null;
34
+ const customization = useMemo(() => ({
35
+ sectionMap: hasGetConnections ? sectionMap ?? {} : {
36
+ ...sectionMap ?? {},
37
+ connector: null
38
+ },
39
+ groupMap: groupMap ?? {},
40
+ pathMap: pathMap ?? {}
41
+ }), [
42
+ sectionMap,
43
+ groupMap,
44
+ pathMap,
45
+ hasGetConnections
46
+ ]);
47
+ const sections = useMemo(() => applyFormCustomization(core.sections, customization), [core.sections, customization]);
48
+ const fields = useMemo(() => sections.flatMap((s) => s.groups.flatMap((g) => g.fields)), [sections]);
49
+ const fieldPaths = useMemo(() => new Set(sections.flatMap((s) => s.groups.flatMap((g) => g.fields.map((f) => f.path)))), [sections]);
31
50
  return useMemo(() => ({
32
51
  id: searchId,
33
52
  publicKey,
34
- form: core.form,
35
- sections: core.sections,
36
- fields: core.fields,
53
+ form: asFormHandle(core.form),
54
+ sections,
55
+ fields,
56
+ fieldPaths,
37
57
  connectionsStatus: core.connectionsStatus,
38
58
  fieldLoadStates: core.fieldLoadStates,
59
+ fieldLoaderErrors: core.fieldLoaderErrors,
60
+ loadingFieldLoaders: core.loadingFieldLoaders,
61
+ hasFieldLoaderError: core.hasFieldLoaderError,
62
+ isFieldLoaderLoading: core.isFieldLoaderLoading,
39
63
  resolvers,
40
64
  store,
41
65
  reset: core.reset
@@ -43,10 +67,15 @@ function useSearchForm(options) {
43
67
  searchId,
44
68
  publicKey,
45
69
  core.form,
46
- core.sections,
47
- core.fields,
70
+ sections,
71
+ fields,
72
+ fieldPaths,
48
73
  core.connectionsStatus,
49
74
  core.fieldLoadStates,
75
+ core.fieldLoaderErrors,
76
+ core.loadingFieldLoaders,
77
+ core.hasFieldLoaderError,
78
+ core.isFieldLoaderLoading,
50
79
  resolvers,
51
80
  store,
52
81
  core.reset
@@ -1 +1 @@
1
- {"version":3,"file":"use-search-form.mjs","names":[],"sources":["../../src/hooks/use-search-form.ts"],"sourcesContent":["import {\n type FormResolvers,\n type FormStore,\n getSearchPayloadFormConfig,\n getSearchPayloadSchema,\n type PipesEnvironment,\n type SearchId,\n type SearchPayload,\n} from \"@pipe0/base\";\nimport { useMemo, useState } from \"react\";\nimport type { SearchFormContext } from \"../context/search-form-context.js\";\nimport { type ResourceStatus, useFormCore } from \"./use-form-core.js\";\n\nexport type { ResourceStatus, SearchFormContext };\n\nexport interface UseSearchFormOptions {\n searchId: SearchId;\n publicKey: string;\n defaultValues?: SearchPayload;\n resolvers?: FormResolvers;\n environment?: PipesEnvironment;\n store?: FormStore;\n}\n\nexport function useSearchForm(options: UseSearchFormOptions): SearchFormContext {\n const {\n searchId,\n publicKey,\n defaultValues,\n resolvers,\n environment,\n store: defaultStore,\n } = options;\n\n const schema = useMemo(() => getSearchPayloadSchema(searchId), [searchId]);\n\n const [store, setStore] = useState<FormStore>(defaultStore ?? { field_options: {} });\n\n const formConfig = useMemo(() => {\n return getSearchPayloadFormConfig({\n searchPayload: defaultValues ?? ({ search_id: searchId } as SearchPayload),\n formContext: store,\n });\n }, [searchId, defaultValues, store]);\n\n const core = useFormCore<SearchPayload>({\n pipeOrSearchId: searchId,\n kind: \"search\",\n schema,\n publicKey,\n defaultValues,\n store,\n setStore,\n formConfig,\n resolvers,\n environment,\n });\n\n return useMemo<SearchFormContext>(\n () => ({\n id: searchId,\n publicKey,\n form: core.form,\n sections: core.sections,\n fields: core.fields,\n connectionsStatus: core.connectionsStatus,\n fieldLoadStates: core.fieldLoadStates,\n resolvers,\n store,\n reset: core.reset,\n }),\n [\n searchId,\n publicKey,\n core.form,\n core.sections,\n core.fields,\n core.connectionsStatus,\n core.fieldLoadStates,\n resolvers,\n store,\n core.reset,\n ],\n );\n}\n"],"mappings":";;;;;AAwBA,SAAgB,cAAc,SAAkD;CAC9E,MAAM,EACJ,UACA,WACA,eACA,WACA,aACA,OAAO,iBACL;CAEJ,MAAM,SAAS,cAAc,uBAAuB,SAAS,EAAE,CAAC,SAAS,CAAC;CAE1E,MAAM,CAAC,OAAO,YAAY,SAAoB,gBAAgB,EAAE,eAAe,EAAE,EAAE,CAAC;CASpF,MAAM,OAAO,YAA2B;EACtC,gBAAgB;EAChB,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,YAfiB,cAAc;AAC/B,UAAO,2BAA2B;IAChC,eAAe,iBAAkB,EAAE,WAAW,UAAU;IACxD,aAAa;IACd,CAAC;KACD;GAAC;GAAU;GAAe;GAAM,CAAC;EAWlC;EACA;EACD,CAAC;AAEF,QAAO,eACE;EACL,IAAI;EACJ;EACA,MAAM,KAAK;EACX,UAAU,KAAK;EACf,QAAQ,KAAK;EACb,mBAAmB,KAAK;EACxB,iBAAiB,KAAK;EACtB;EACA;EACA,OAAO,KAAK;EACb,GACD;EACE;EACA;EACA,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL;EACA;EACA,KAAK;EACN,CACF"}
1
+ {"version":3,"file":"use-search-form.mjs","names":[],"sources":["../../src/hooks/use-search-form.ts"],"sourcesContent":["import {\n type FormResolvers,\n type FormStore,\n getSearchPayloadFormConfig,\n getSearchPayloadSchema,\n type PipesEnvironment,\n type SearchId,\n type SearchPayload,\n} from \"@pipe0/base\";\nimport { useMemo, useState } from \"react\";\nimport type { SearchFormContext } from \"../context/search-form-context.js\";\nimport type {\n FormCustomizationState,\n GroupMap,\n PathMap,\n SectionMap,\n} from \"../types/form-customization.js\";\nimport { applyFormCustomization } from \"../utils/build-section-handlers.js\";\nimport { asFormHandle } from \"../utils/internal-form.js\";\nimport { type ResourceStatus, useFormCore } from \"./use-form-core.js\";\n\nexport type { ResourceStatus, SearchFormContext };\n\nexport interface UseSearchFormOptions {\n searchId: SearchId;\n publicKey: string;\n defaultValues?: SearchPayload;\n resolvers?: FormResolvers;\n environment?: PipesEnvironment;\n store?: FormStore;\n /**\n * Hide / relabel / reorder sections by section key. `null` hides a section.\n * Note: when `resolvers.getConnections` is omitted, the `connector` section\n * is hidden automatically — there's no value to render without a resolver.\n */\n sectionMap?: SectionMap;\n /** Hide / relabel / reorder groups by group path. `null` hides a group. */\n groupMap?: GroupMap;\n /** Hide / relabel fields by field path. `null` hides a field. */\n pathMap?: PathMap;\n}\n\nexport function useSearchForm(options: UseSearchFormOptions): SearchFormContext {\n const {\n searchId,\n publicKey,\n defaultValues,\n resolvers,\n environment,\n store: defaultStore,\n sectionMap,\n groupMap,\n pathMap,\n } = options;\n\n const schema = useMemo(() => getSearchPayloadSchema(searchId), [searchId]);\n\n const [store, setStore] = useState<FormStore>(defaultStore ?? { field_options: {} });\n\n const formConfig = useMemo(() => {\n return getSearchPayloadFormConfig({\n searchPayload: defaultValues ?? ({ search_id: searchId } as SearchPayload),\n formContext: store,\n });\n }, [searchId, defaultValues, store]);\n\n const core = useFormCore<SearchPayload>({\n pipeOrSearchId: searchId,\n kind: \"search\",\n schema,\n publicKey,\n defaultValues,\n store,\n setStore,\n formConfig,\n resolvers,\n environment,\n });\n\n const hasGetConnections = resolvers?.getConnections != null;\n const customization = useMemo<FormCustomizationState>(\n () => ({\n sectionMap: hasGetConnections\n ? (sectionMap ?? {})\n : { ...(sectionMap ?? {}), connector: null },\n groupMap: groupMap ?? {},\n pathMap: pathMap ?? {},\n }),\n [sectionMap, groupMap, pathMap, hasGetConnections],\n );\n\n const sections = useMemo(\n () => applyFormCustomization(core.sections, customization),\n [core.sections, customization],\n );\n\n const fields = useMemo(\n () => sections.flatMap((s) => s.groups.flatMap((g) => g.fields)),\n [sections],\n );\n\n const fieldPaths = useMemo(\n () => new Set(sections.flatMap((s) => s.groups.flatMap((g) => g.fields.map((f) => f.path)))),\n [sections],\n );\n\n return useMemo<SearchFormContext>(\n () => ({\n id: searchId,\n publicKey,\n form: asFormHandle(core.form),\n sections,\n fields,\n fieldPaths,\n connectionsStatus: core.connectionsStatus,\n fieldLoadStates: core.fieldLoadStates,\n fieldLoaderErrors: core.fieldLoaderErrors,\n loadingFieldLoaders: core.loadingFieldLoaders,\n hasFieldLoaderError: core.hasFieldLoaderError,\n isFieldLoaderLoading: core.isFieldLoaderLoading,\n resolvers,\n store,\n reset: core.reset,\n }),\n [\n searchId,\n publicKey,\n core.form,\n sections,\n fields,\n fieldPaths,\n core.connectionsStatus,\n core.fieldLoadStates,\n core.fieldLoaderErrors,\n core.loadingFieldLoaders,\n core.hasFieldLoaderError,\n core.isFieldLoaderLoading,\n resolvers,\n store,\n core.reset,\n ],\n );\n}\n"],"mappings":";;;;;;;AA0CA,SAAgB,cAAc,SAAkD;CAC9E,MAAM,EACJ,UACA,WACA,eACA,WACA,aACA,OAAO,cACP,YACA,UACA,YACE;CAEJ,MAAM,SAAS,cAAc,uBAAuB,SAAS,EAAE,CAAC,SAAS,CAAC;CAE1E,MAAM,CAAC,OAAO,YAAY,SAAoB,gBAAgB,EAAE,eAAe,EAAE,EAAE,CAAC;CASpF,MAAM,OAAO,YAA2B;EACtC,gBAAgB;EAChB,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,YAfiB,cAAc;AAC/B,UAAO,2BAA2B;IAChC,eAAe,iBAAkB,EAAE,WAAW,UAAU;IACxD,aAAa;IACd,CAAC;KACD;GAAC;GAAU;GAAe;GAAM,CAAC;EAWlC;EACA;EACD,CAAC;CAEF,MAAM,oBAAoB,WAAW,kBAAkB;CACvD,MAAM,gBAAgB,eACb;EACL,YAAY,oBACP,cAAc,EAAE,GACjB;GAAE,GAAI,cAAc,EAAE;GAAG,WAAW;GAAM;EAC9C,UAAU,YAAY,EAAE;EACxB,SAAS,WAAW,EAAE;EACvB,GACD;EAAC;EAAY;EAAU;EAAS;EAAkB,CACnD;CAED,MAAM,WAAW,cACT,uBAAuB,KAAK,UAAU,cAAc,EAC1D,CAAC,KAAK,UAAU,cAAc,CAC/B;CAED,MAAM,SAAS,cACP,SAAS,SAAS,MAAM,EAAE,OAAO,SAAS,MAAM,EAAE,OAAO,CAAC,EAChE,CAAC,SAAS,CACX;CAED,MAAM,aAAa,cACX,IAAI,IAAI,SAAS,SAAS,MAAM,EAAE,OAAO,SAAS,MAAM,EAAE,OAAO,KAAK,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAC5F,CAAC,SAAS,CACX;AAED,QAAO,eACE;EACL,IAAI;EACJ;EACA,MAAM,aAAa,KAAK,KAAK;EAC7B;EACA;EACA;EACA,mBAAmB,KAAK;EACxB,iBAAiB,KAAK;EACtB,mBAAmB,KAAK;EACxB,qBAAqB,KAAK;EAC1B,qBAAqB,KAAK;EAC1B,sBAAsB,KAAK;EAC3B;EACA;EACA,OAAO,KAAK;EACb,GACD;EACE;EACA;EACA,KAAK;EACL;EACA;EACA;EACA,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL;EACA;EACA,KAAK;EACN,CACF"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import { RenderProp, renderSlot } from "./utils/render-slot.mjs";
2
1
  import { ActiveFilter, PipeCatalogActiveFilters, PipeCatalogActiveFiltersProps, PipeCatalogActiveFiltersState } from "./components/compound/pipe-catalog/active-filters.mjs";
3
2
  import { CatalogClassNames, CatalogComponentOverrides, CostMode, PipeCardData, SearchCardData, SearchesCardData } from "./types/catalog-adapters.mjs";
4
3
  import { PipeCatalogCard, PipeCatalogCardProps } from "./components/compound/pipe-catalog/card.mjs";
@@ -11,11 +10,13 @@ import { PipeCatalogList, PipeCatalogListProps, PipeCatalogListState } from "./c
11
10
  import { PipeCatalogOutputFieldFilter, PipeCatalogOutputFieldFilterProps } from "./components/compound/pipe-catalog/output-field-filter.mjs";
12
11
  import { PipeCatalogProviderFilter, PipeCatalogProviderFilterProps } from "./components/compound/pipe-catalog/provider-filter.mjs";
13
12
  import { InputFieldEntries, OutputFieldEntries, UsePipeCatalogTableReturn, usePipeCatalogTable } from "./hooks/use-pipe-catalog-table.mjs";
14
- import { PipeCatalog, PipeCatalogInstanceProps, PipeCatalogLegacyProps, PipeCatalogProps } from "./components/compound/pipe-catalog/root.mjs";
13
+ import { PipeCatalog, PipeCatalogInstanceProps, PipeCatalogProps, PipeCatalogZeroConfigProps } from "./components/compound/pipe-catalog/root.mjs";
15
14
  import { PipeCatalogSearchFilter, PipeCatalogSearchFilterProps, PipeCatalogSearchFilterState } from "./components/compound/pipe-catalog/search-filter.mjs";
16
15
  import { PipeCatalogTagFilter, PipeCatalogTagFilterProps } from "./components/compound/pipe-catalog/tag-filter.mjs";
17
16
  import { AnyFieldProps, FieldMeta, GeneratedFieldProps } from "./types/field-props.mjs";
17
+ import { FormErrorEntry, FormErrors, FormFieldState, FormHandle, FormResetFieldOptions, FormResetOptions, FormSetValueOptions, FormStateSnapshot } from "./types/form-handle.mjs";
18
18
  import { PipeFormContent } from "./components/compound/pipe-form/content.mjs";
19
+ import { PipeFormErrors } from "./components/compound/pipe-form/errors.mjs";
19
20
  import { PipeFormField } from "./components/compound/pipe-form/field.mjs";
20
21
  import { PipeFormFooter } from "./components/compound/pipe-form/footer.mjs";
21
22
  import { PipeFormGroup } from "./components/compound/pipe-form/group.mjs";
@@ -23,7 +24,7 @@ import { PipeFormHeader } from "./components/compound/pipe-form/header.mjs";
23
24
  import { PipeFormContext, usePipeFormContext } from "./context/pipe-form-context.mjs";
24
25
  import { FieldAdapterMap, FormClassNames } from "./types/adapters.mjs";
25
26
  import { GroupMap, GroupOverride, PathMap, PathOverride, SectionMap, SectionOverride } from "./types/form-customization.mjs";
26
- import { PipeForm, PipeFormInstanceProps, PipeFormLegacyProps, PipeFormProps } from "./components/compound/pipe-form/root.mjs";
27
+ import { PipeForm, PipeFormInstanceProps, PipeFormProps, PipeFormZeroConfigProps } from "./components/compound/pipe-form/root.mjs";
27
28
  import { PipeFormSection } from "./components/compound/pipe-form/section.mjs";
28
29
  import { PipeFormSubmitButton } from "./components/compound/pipe-form/submit-button.mjs";
29
30
  import { PipeFormTitle } from "./components/compound/pipe-form/title.mjs";
@@ -37,16 +38,17 @@ import { SearchCatalogList, SearchCatalogListProps, SearchCatalogListState } fro
37
38
  import { SearchCatalogOutputFieldFilter, SearchCatalogOutputFieldFilterProps } from "./components/compound/search-catalog/output-field-filter.mjs";
38
39
  import { SearchCatalogProviderFilter, SearchCatalogProviderFilterProps } from "./components/compound/search-catalog/provider-filter.mjs";
39
40
  import { SearchOutputFieldEntries, UseSearchCatalogTableReturn, useSearchCatalogTable } from "./hooks/use-search-catalog-table.mjs";
40
- import { SearchCatalog, SearchCatalogInstanceProps, SearchCatalogLegacyProps, SearchCatalogProps } from "./components/compound/search-catalog/root.mjs";
41
+ import { SearchCatalog, SearchCatalogInstanceProps, SearchCatalogProps, SearchCatalogZeroConfigProps } from "./components/compound/search-catalog/root.mjs";
41
42
  import { SearchCatalogSearchFilter, SearchCatalogSearchFilterProps, SearchCatalogSearchFilterState } from "./components/compound/search-catalog/search-filter.mjs";
42
43
  import { SearchCatalogTagFilter, SearchCatalogTagFilterProps } from "./components/compound/search-catalog/tag-filter.mjs";
43
44
  import { SearchFormContent } from "./components/compound/search-form/content.mjs";
45
+ import { SearchFormErrors } from "./components/compound/search-form/errors.mjs";
44
46
  import { SearchFormField } from "./components/compound/search-form/field.mjs";
45
47
  import { SearchFormFooter } from "./components/compound/search-form/footer.mjs";
46
48
  import { SearchFormGroup } from "./components/compound/search-form/group.mjs";
47
49
  import { SearchFormHeader } from "./components/compound/search-form/header.mjs";
48
50
  import { SearchFormContext, useSearchFormContext } from "./context/search-form-context.mjs";
49
- import { SearchForm, SearchFormInstanceProps, SearchFormLegacyProps, SearchFormProps } from "./components/compound/search-form/root.mjs";
51
+ import { SearchForm, SearchFormInstanceProps, SearchFormProps, SearchFormZeroConfigProps } from "./components/compound/search-form/root.mjs";
50
52
  import { SearchFormSection } from "./components/compound/search-form/section.mjs";
51
53
  import { SearchFormSubmitButton } from "./components/compound/search-form/submit-button.mjs";
52
54
  import { SearchFormTitle } from "./components/compound/search-form/title.mjs";
@@ -60,7 +62,7 @@ import { SearchesCatalogList, SearchesCatalogListProps, SearchesCatalogListState
60
62
  import { SearchesCatalogOutputFieldFilter, SearchesCatalogOutputFieldFilterProps } from "./components/compound/searches-catalog/output-field-filter.mjs";
61
63
  import { SearchesCatalogProviderFilter, SearchesCatalogProviderFilterProps } from "./components/compound/searches-catalog/provider-filter.mjs";
62
64
  import { SearchesOutputFieldEntries, UseSearchesCatalogTableReturn, useSearchesCatalogTable } from "./hooks/use-searches-catalog-table.mjs";
63
- import { SearchesCatalog, SearchesCatalogInstanceProps, SearchesCatalogLegacyProps, SearchesCatalogProps } from "./components/compound/searches-catalog/root.mjs";
65
+ import { SearchesCatalog, SearchesCatalogInstanceProps, SearchesCatalogProps, SearchesCatalogZeroConfigProps } from "./components/compound/searches-catalog/root.mjs";
64
66
  import { SearchesCatalogSearchFilter, SearchesCatalogSearchFilterProps, SearchesCatalogSearchFilterState } from "./components/compound/searches-catalog/search-filter.mjs";
65
67
  import { SearchesCatalogTagFilter, SearchesCatalogTagFilterProps } from "./components/compound/searches-catalog/tag-filter.mjs";
66
68
  import { defaultAdapters } from "./components/defaults/adapters/index.mjs";
@@ -72,7 +74,6 @@ import { CatalogProviderAvatars, CatalogProviderAvatarsProps } from "./component
72
74
  import { FieldKind } from "./types/field-handle.mjs";
73
75
  import { FieldRenderer } from "./components/field-renderer.mjs";
74
76
  import { CatalogConfig, CatalogProvider, CatalogProviderProps, CatalogRoot, useCatalogConfig } from "./context/catalog-config-context.mjs";
75
- import { FormCustomizationAction, FormCustomizationProvider, FormCustomizationState, useFormCustomization } from "./context/form-customization-context.mjs";
76
77
  import { FormProvider, FormRoot } from "./context/form-provider.mjs";
77
78
  import { PipeCatalogCardContext, PipeCatalogCardContextValue, usePipeCatalogCard } from "./context/pipe-catalog-card-context.mjs";
78
79
  import { PipeCatalogContext, PipeCatalogContextValue, usePipeCatalogContext } from "./context/pipe-catalog-context.mjs";
@@ -93,4 +94,4 @@ import { PricingBadge } from "./widgets/pricing-badge.mjs";
93
94
  import { ProviderLogo } from "./widgets/provider-logo.mjs";
94
95
  import { WidgetStrip } from "./widgets/widget-strip.mjs";
95
96
  import { WidgetView } from "./widgets/widget-view.mjs";
96
- export { type AnyFieldProps as AnyFieldHandle, AvatarGroup, type AvatarGroupProps, type AvatarGroupState, CatalogCard, CatalogCardBadge, type CatalogCardBadgeProps, CatalogCardBadges, type CatalogCardBadgesProps, CatalogCardDescription, type CatalogCardDescriptionProps, CatalogCardHeader, type CatalogCardHeaderProps, type CatalogCardProps, CatalogCardTitle, type CatalogCardTitleProps, CatalogCategorySection, type CatalogCategorySectionProps, type CatalogClassNames, type CatalogComponentOverrides, type CatalogConfig, CatalogCopyId, type CatalogCopyIdProps, CatalogCreditBadge, type CatalogCreditBadgeProps, CatalogDocsBadge, type CatalogDocsBadgeProps, CatalogFieldBadge, type CatalogFieldBadgeProps, type CatalogFieldBadgeState, CatalogProvider, CatalogProviderAvatars, type CatalogProviderAvatarsProps, type CatalogProviderProps, CatalogRoot, type CostMode, EmojiGlyph, type FieldAdapterMap, type GeneratedFieldProps as FieldHandle, type FieldKind, type FieldMeta, FieldRenderer, FieldTypeBadge, type FormClassNames, type FormCustomizationAction, FormCustomizationProvider, type FormCustomizationState, FormProvider, FormRoot, type GroupMap, type GroupOverride, IconGlyph, type InputFieldEntries, LogoUrl, type OutputFieldEntries, type PathMap, type PathOverride, type ActiveFilter as PipeActiveFilter, type PipeCardData, PipeCatalog, PipeCatalogActiveFilters, type PipeCatalogActiveFiltersProps, type PipeCatalogActiveFiltersState, PipeCatalogCard, PipeCatalogCardContext, type PipeCatalogCardContextValue, type PipeCatalogCardProps, PipeCatalogCategoryFilter, type PipeCatalogCategoryFilterProps, type PipeCatalogCategoryFilterState, PipeCatalogColumnFilter, type PipeCatalogColumnFilterProps, PipeCatalogColumnFilters, type PipeCatalogColumnFiltersProps, PipeCatalogContext, type PipeCatalogContextValue, PipeCatalogEmpty, type PipeCatalogEmptyProps, type PipeCatalogEmptyState, PipeCatalogInputFieldFilter, type PipeCatalogInputFieldFilterProps, type PipeCatalogInstanceProps, type PipeCatalogLegacyProps, PipeCatalogList, type PipeCatalogListProps, type PipeCatalogListState, PipeCatalogOutputFieldFilter, type PipeCatalogOutputFieldFilterProps, type PipeCatalogProps, PipeCatalogProviderFilter, type PipeCatalogProviderFilterProps, PipeCatalogSearchFilter, type PipeCatalogSearchFilterProps, type PipeCatalogSearchFilterState, PipeCatalogTagFilter, type PipeCatalogTagFilterProps, type PipeColumnFilterId, type ColumnFilterState as PipeColumnFilterState, PipeForm, PipeFormContent, PipeFormContext, PipeFormField, PipeFormFooter, PipeFormGroup, PipeFormHeader, type PipeFormInstanceProps, type PipeFormLegacyProps, type PipeFormProps, PipeFormSection, PipeFormSubmitButton, PipeFormTitle, PricingBadge, ProviderLogo, type RenderProp, type ActiveFilter$1 as SearchActiveFilter, type SearchCardData, SearchCatalog, SearchCatalogActiveFilters, type SearchCatalogActiveFiltersProps, type SearchCatalogActiveFiltersState, SearchCatalogCard, SearchCatalogCardContext, type SearchCatalogCardContextValue, type SearchCatalogCardProps, SearchCatalogCategoryFilter, type SearchCatalogCategoryFilterProps, type SearchCatalogCategoryFilterState, SearchCatalogColumnFilter, type SearchCatalogColumnFilterProps, SearchCatalogColumnFilters, type SearchCatalogColumnFiltersProps, SearchCatalogContext, type SearchCatalogContextValue, SearchCatalogEmpty, type SearchCatalogEmptyProps, type SearchCatalogEmptyState, type SearchCatalogInstanceProps, type SearchCatalogLegacyProps, SearchCatalogList, type SearchCatalogListProps, type SearchCatalogListState, SearchCatalogOutputFieldFilter, type SearchCatalogOutputFieldFilterProps, type SearchCatalogProps, SearchCatalogProviderFilter, type SearchCatalogProviderFilterProps, SearchCatalogSearchFilter, type SearchCatalogSearchFilterProps, type SearchCatalogSearchFilterState, SearchCatalogTagFilter, type SearchCatalogTagFilterProps, type SearchColumnFilterId, type ColumnFilterState$1 as SearchColumnFilterState, SearchForm, SearchFormContent, SearchFormContext, SearchFormField, SearchFormFooter, SearchFormGroup, SearchFormHeader, type SearchFormInstanceProps, type SearchFormLegacyProps, type SearchFormProps, SearchFormSection, SearchFormSubmitButton, SearchFormTitle, type SearchOutputFieldEntries, type ActiveFilter$2 as SearchesActiveFilter, type SearchesCardData, SearchesCatalog, SearchesCatalogActiveFilters, type SearchesCatalogActiveFiltersProps, type SearchesCatalogActiveFiltersState, SearchesCatalogCard, SearchesCatalogCardContext, type SearchesCatalogCardContextValue, type SearchesCatalogCardProps, SearchesCatalogCategoryFilter, type SearchesCatalogCategoryFilterProps, type SearchesCatalogCategoryFilterState, SearchesCatalogColumnFilter, type SearchesCatalogColumnFilterProps, SearchesCatalogColumnFilters, type SearchesCatalogColumnFiltersProps, SearchesCatalogContext, type SearchesCatalogContextValue, SearchesCatalogEmpty, type SearchesCatalogEmptyProps, type SearchesCatalogEmptyState, type SearchesCatalogInstanceProps, type SearchesCatalogLegacyProps, SearchesCatalogList, type SearchesCatalogListProps, type SearchesCatalogListState, SearchesCatalogOutputFieldFilter, type SearchesCatalogOutputFieldFilterProps, type SearchesCatalogProps, SearchesCatalogProviderFilter, type SearchesCatalogProviderFilterProps, SearchesCatalogSearchFilter, type SearchesCatalogSearchFilterProps, type SearchesCatalogSearchFilterState, SearchesCatalogTagFilter, type SearchesCatalogTagFilterProps, type SearchesColumnFilterId, type ColumnFilterState$2 as SearchesColumnFilterState, type SearchesOutputFieldEntries, type SectionMap, type SectionOverride, type UsePipeCatalogTableReturn, type UsePipeFormOptions, type UseSearchCatalogTableReturn, type UseSearchFormOptions, type UseSearchesCatalogTableReturn, WidgetStrip, WidgetView, defaultAdapters, fuzzyFilter, getFieldStatusIcon, getFieldTypeIcon, renderSlot, useCatalogConfig, useFieldError, useFormCustomization, usePipeCatalogCard, usePipeCatalogContext, usePipeCatalogTable, usePipeForm, usePipeFormContext, usePortalContainer, useSearchCatalogCard, useSearchCatalogContext, useSearchCatalogTable, useSearchForm, useSearchFormContext, useSearchesCatalogCard, useSearchesCatalogContext, useSearchesCatalogTable };
97
+ export { type AnyFieldProps as AnyFieldHandle, AvatarGroup, type AvatarGroupProps, type AvatarGroupState, CatalogCard, CatalogCardBadge, type CatalogCardBadgeProps, CatalogCardBadges, type CatalogCardBadgesProps, CatalogCardDescription, type CatalogCardDescriptionProps, CatalogCardHeader, type CatalogCardHeaderProps, type CatalogCardProps, CatalogCardTitle, type CatalogCardTitleProps, CatalogCategorySection, type CatalogCategorySectionProps, type CatalogClassNames, type CatalogComponentOverrides, type CatalogConfig, CatalogCopyId, type CatalogCopyIdProps, CatalogCreditBadge, type CatalogCreditBadgeProps, CatalogDocsBadge, type CatalogDocsBadgeProps, CatalogFieldBadge, type CatalogFieldBadgeProps, type CatalogFieldBadgeState, CatalogProvider, CatalogProviderAvatars, type CatalogProviderAvatarsProps, type CatalogProviderProps, CatalogRoot, type CostMode, EmojiGlyph, type FieldAdapterMap, type GeneratedFieldProps as FieldHandle, type FieldKind, type FieldMeta, FieldRenderer, FieldTypeBadge, type FormClassNames, type FormErrorEntry, type FormErrors, type FormFieldState, type FormHandle, FormProvider, type FormResetFieldOptions, type FormResetOptions, FormRoot, type FormSetValueOptions, type FormStateSnapshot, type GroupMap, type GroupOverride, IconGlyph, type InputFieldEntries, LogoUrl, type OutputFieldEntries, type PathMap, type PathOverride, type ActiveFilter as PipeActiveFilter, type PipeCardData, PipeCatalog, PipeCatalogActiveFilters, type PipeCatalogActiveFiltersProps, type PipeCatalogActiveFiltersState, PipeCatalogCard, PipeCatalogCardContext, type PipeCatalogCardContextValue, type PipeCatalogCardProps, PipeCatalogCategoryFilter, type PipeCatalogCategoryFilterProps, type PipeCatalogCategoryFilterState, PipeCatalogColumnFilter, type PipeCatalogColumnFilterProps, PipeCatalogColumnFilters, type PipeCatalogColumnFiltersProps, PipeCatalogContext, type PipeCatalogContextValue, PipeCatalogEmpty, type PipeCatalogEmptyProps, type PipeCatalogEmptyState, PipeCatalogInputFieldFilter, type PipeCatalogInputFieldFilterProps, type PipeCatalogInstanceProps, PipeCatalogList, type PipeCatalogListProps, type PipeCatalogListState, PipeCatalogOutputFieldFilter, type PipeCatalogOutputFieldFilterProps, type PipeCatalogProps, PipeCatalogProviderFilter, type PipeCatalogProviderFilterProps, PipeCatalogSearchFilter, type PipeCatalogSearchFilterProps, type PipeCatalogSearchFilterState, PipeCatalogTagFilter, type PipeCatalogTagFilterProps, type PipeCatalogZeroConfigProps, type PipeColumnFilterId, type ColumnFilterState as PipeColumnFilterState, PipeForm, PipeFormContent, PipeFormContext, PipeFormErrors, PipeFormField, PipeFormFooter, PipeFormGroup, PipeFormHeader, type PipeFormInstanceProps, type PipeFormProps, PipeFormSection, PipeFormSubmitButton, PipeFormTitle, type PipeFormZeroConfigProps, PricingBadge, ProviderLogo, type ActiveFilter$1 as SearchActiveFilter, type SearchCardData, SearchCatalog, SearchCatalogActiveFilters, type SearchCatalogActiveFiltersProps, type SearchCatalogActiveFiltersState, SearchCatalogCard, SearchCatalogCardContext, type SearchCatalogCardContextValue, type SearchCatalogCardProps, SearchCatalogCategoryFilter, type SearchCatalogCategoryFilterProps, type SearchCatalogCategoryFilterState, SearchCatalogColumnFilter, type SearchCatalogColumnFilterProps, SearchCatalogColumnFilters, type SearchCatalogColumnFiltersProps, SearchCatalogContext, type SearchCatalogContextValue, SearchCatalogEmpty, type SearchCatalogEmptyProps, type SearchCatalogEmptyState, type SearchCatalogInstanceProps, SearchCatalogList, type SearchCatalogListProps, type SearchCatalogListState, SearchCatalogOutputFieldFilter, type SearchCatalogOutputFieldFilterProps, type SearchCatalogProps, SearchCatalogProviderFilter, type SearchCatalogProviderFilterProps, SearchCatalogSearchFilter, type SearchCatalogSearchFilterProps, type SearchCatalogSearchFilterState, SearchCatalogTagFilter, type SearchCatalogTagFilterProps, type SearchCatalogZeroConfigProps, type SearchColumnFilterId, type ColumnFilterState$1 as SearchColumnFilterState, SearchForm, SearchFormContent, SearchFormContext, SearchFormErrors, SearchFormField, SearchFormFooter, SearchFormGroup, SearchFormHeader, type SearchFormInstanceProps, type SearchFormProps, SearchFormSection, SearchFormSubmitButton, SearchFormTitle, type SearchFormZeroConfigProps, type SearchOutputFieldEntries, type ActiveFilter$2 as SearchesActiveFilter, type SearchesCardData, SearchesCatalog, SearchesCatalogActiveFilters, type SearchesCatalogActiveFiltersProps, type SearchesCatalogActiveFiltersState, SearchesCatalogCard, SearchesCatalogCardContext, type SearchesCatalogCardContextValue, type SearchesCatalogCardProps, SearchesCatalogCategoryFilter, type SearchesCatalogCategoryFilterProps, type SearchesCatalogCategoryFilterState, SearchesCatalogColumnFilter, type SearchesCatalogColumnFilterProps, SearchesCatalogColumnFilters, type SearchesCatalogColumnFiltersProps, SearchesCatalogContext, type SearchesCatalogContextValue, SearchesCatalogEmpty, type SearchesCatalogEmptyProps, type SearchesCatalogEmptyState, type SearchesCatalogInstanceProps, SearchesCatalogList, type SearchesCatalogListProps, type SearchesCatalogListState, SearchesCatalogOutputFieldFilter, type SearchesCatalogOutputFieldFilterProps, type SearchesCatalogProps, SearchesCatalogProviderFilter, type SearchesCatalogProviderFilterProps, SearchesCatalogSearchFilter, type SearchesCatalogSearchFilterProps, type SearchesCatalogSearchFilterState, SearchesCatalogTagFilter, type SearchesCatalogTagFilterProps, type SearchesCatalogZeroConfigProps, type SearchesColumnFilterId, type ColumnFilterState$2 as SearchesColumnFilterState, type SearchesOutputFieldEntries, type SectionMap, type SectionOverride, type UsePipeCatalogTableReturn, type UsePipeFormOptions, type UseSearchCatalogTableReturn, type UseSearchFormOptions, type UseSearchesCatalogTableReturn, WidgetStrip, WidgetView, defaultAdapters, fuzzyFilter, getFieldStatusIcon, getFieldTypeIcon, useCatalogConfig, useFieldError, usePipeCatalogCard, usePipeCatalogContext, usePipeCatalogTable, usePipeForm, usePipeFormContext, usePortalContainer, useSearchCatalogCard, useSearchCatalogContext, useSearchCatalogTable, useSearchForm, useSearchFormContext, useSearchesCatalogCard, useSearchesCatalogContext, useSearchesCatalogTable };
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { usePortalContainer } from "./context/portal-container-context.mjs";
2
2
  import { CatalogProvider, CatalogRoot, useCatalogConfig } from "./context/catalog-config-context.mjs";
3
3
  import { PipeCatalogContext, usePipeCatalogContext } from "./context/pipe-catalog-context.mjs";
4
- import { renderSlot } from "./utils/render-slot.mjs";
5
4
  import { PipeCatalogActiveFilters } from "./components/compound/pipe-catalog/active-filters.mjs";
6
5
  import { PipeCatalogCardContext, usePipeCatalogCard } from "./context/pipe-catalog-card-context.mjs";
7
6
  import { SearchCatalogCardContext, useSearchCatalogCard } from "./context/search-catalog-card-context.mjs";
@@ -23,9 +22,8 @@ import { usePipeCatalogTable } from "./hooks/use-pipe-catalog-table.mjs";
23
22
  import { PipeCatalogSearchFilter } from "./components/compound/pipe-catalog/search-filter.mjs";
24
23
  import { PipeCatalog } from "./components/compound/pipe-catalog/root.mjs";
25
24
  import { PipeCatalogTagFilter } from "./components/compound/pipe-catalog/tag-filter.mjs";
26
- import "./components/compound/pipe-catalog/index.mjs";
27
- import { FormCustomizationProvider, useFormCustomization } from "./context/form-customization-context.mjs";
28
25
  import { PipeFormContext, usePipeFormContext } from "./context/pipe-form-context.mjs";
26
+ import { PipeFormErrors } from "./components/compound/pipe-form/errors.mjs";
29
27
  import { IconGlyph } from "./widgets/icon-glyph.mjs";
30
28
  import { useFieldError } from "./hooks/use-field-error.mjs";
31
29
  import { FieldTypeBadge } from "./widgets/field-type-badge.mjs";
@@ -48,7 +46,6 @@ import { usePipeForm } from "./hooks/use-pipe-form.mjs";
48
46
  import { PipeFormSubmitButton } from "./components/compound/pipe-form/submit-button.mjs";
49
47
  import { PipeForm } from "./components/compound/pipe-form/root.mjs";
50
48
  import { PipeFormTitle } from "./components/compound/pipe-form/title.mjs";
51
- import "./components/compound/pipe-form/index.mjs";
52
49
  import { SearchCatalogActiveFilters } from "./components/compound/search-catalog/active-filters.mjs";
53
50
  import { SearchCatalogCard } from "./components/compound/search-catalog/card.mjs";
54
51
  import { SearchCatalogCategoryFilter } from "./components/compound/search-catalog/category-filter.mjs";
@@ -62,8 +59,8 @@ import { useSearchCatalogTable } from "./hooks/use-search-catalog-table.mjs";
62
59
  import { SearchCatalogSearchFilter } from "./components/compound/search-catalog/search-filter.mjs";
63
60
  import { SearchCatalog } from "./components/compound/search-catalog/root.mjs";
64
61
  import { SearchCatalogTagFilter } from "./components/compound/search-catalog/tag-filter.mjs";
65
- import "./components/compound/search-catalog/index.mjs";
66
62
  import { SearchFormContext, useSearchFormContext } from "./context/search-form-context.mjs";
63
+ import { SearchFormErrors } from "./components/compound/search-form/errors.mjs";
67
64
  import { SearchFormField } from "./components/compound/search-form/field.mjs";
68
65
  import { SearchFormGroup } from "./components/compound/search-form/group.mjs";
69
66
  import { SearchFormSection } from "./components/compound/search-form/section.mjs";
@@ -74,7 +71,6 @@ import { useSearchForm } from "./hooks/use-search-form.mjs";
74
71
  import { SearchFormSubmitButton } from "./components/compound/search-form/submit-button.mjs";
75
72
  import { SearchForm } from "./components/compound/search-form/root.mjs";
76
73
  import { SearchFormTitle } from "./components/compound/search-form/title.mjs";
77
- import "./components/compound/search-form/index.mjs";
78
74
  import { SearchesCatalogActiveFilters } from "./components/compound/searches-catalog/active-filters.mjs";
79
75
  import { SearchesCatalogCard } from "./components/compound/searches-catalog/card.mjs";
80
76
  import { SearchesCatalogCategoryFilter } from "./components/compound/searches-catalog/category-filter.mjs";
@@ -88,11 +84,9 @@ import { useSearchesCatalogTable } from "./hooks/use-searches-catalog-table.mjs"
88
84
  import { SearchesCatalogSearchFilter } from "./components/compound/searches-catalog/search-filter.mjs";
89
85
  import { SearchesCatalog } from "./components/compound/searches-catalog/root.mjs";
90
86
  import { SearchesCatalogTagFilter } from "./components/compound/searches-catalog/tag-filter.mjs";
91
- import "./components/compound/searches-catalog/index.mjs";
92
87
  import { CatalogCopyId, CatalogCreditBadge, CatalogDocsBadge, CatalogFieldBadge } from "./components/defaults/catalog/card-derived.mjs";
93
88
  import { CatalogCategorySection } from "./components/defaults/catalog/category-section.mjs";
94
89
  import { AvatarGroup } from "./widgets/avatar-group.mjs";
95
90
  import { CatalogProviderAvatars } from "./components/defaults/catalog/provider-avatars.mjs";
96
- import "./widgets/index.mjs";
97
91
 
98
- export { AvatarGroup, CatalogCard, CatalogCardBadge, CatalogCardBadges, CatalogCardDescription, CatalogCardHeader, CatalogCardTitle, CatalogCategorySection, CatalogCopyId, CatalogCreditBadge, CatalogDocsBadge, CatalogFieldBadge, CatalogProvider, CatalogProviderAvatars, CatalogRoot, EmojiGlyph, FieldRenderer, FieldTypeBadge, FormCustomizationProvider, FormProvider, FormRoot, IconGlyph, LogoUrl, PipeCatalog, PipeCatalogActiveFilters, PipeCatalogCard, PipeCatalogCardContext, PipeCatalogCategoryFilter, PipeCatalogColumnFilter, PipeCatalogColumnFilters, PipeCatalogContext, PipeCatalogEmpty, PipeCatalogInputFieldFilter, PipeCatalogList, PipeCatalogOutputFieldFilter, PipeCatalogProviderFilter, PipeCatalogSearchFilter, PipeCatalogTagFilter, PipeForm, PipeFormContent, PipeFormContext, PipeFormField, PipeFormFooter, PipeFormGroup, PipeFormHeader, PipeFormSection, PipeFormSubmitButton, PipeFormTitle, PricingBadge, ProviderLogo, SearchCatalog, SearchCatalogActiveFilters, SearchCatalogCard, SearchCatalogCardContext, SearchCatalogCategoryFilter, SearchCatalogColumnFilter, SearchCatalogColumnFilters, SearchCatalogContext, SearchCatalogEmpty, SearchCatalogList, SearchCatalogOutputFieldFilter, SearchCatalogProviderFilter, SearchCatalogSearchFilter, SearchCatalogTagFilter, SearchForm, SearchFormContent, SearchFormContext, SearchFormField, SearchFormFooter, SearchFormGroup, SearchFormHeader, SearchFormSection, SearchFormSubmitButton, SearchFormTitle, SearchesCatalog, SearchesCatalogActiveFilters, SearchesCatalogCard, SearchesCatalogCardContext, SearchesCatalogCategoryFilter, SearchesCatalogColumnFilter, SearchesCatalogColumnFilters, SearchesCatalogContext, SearchesCatalogEmpty, SearchesCatalogList, SearchesCatalogOutputFieldFilter, SearchesCatalogProviderFilter, SearchesCatalogSearchFilter, SearchesCatalogTagFilter, WidgetStrip, WidgetView, defaultAdapters, fuzzyFilter, getFieldStatusIcon, getFieldTypeIcon, renderSlot, useCatalogConfig, useFieldError, useFormCustomization, usePipeCatalogCard, usePipeCatalogContext, usePipeCatalogTable, usePipeForm, usePipeFormContext, usePortalContainer, useSearchCatalogCard, useSearchCatalogContext, useSearchCatalogTable, useSearchForm, useSearchFormContext, useSearchesCatalogCard, useSearchesCatalogContext, useSearchesCatalogTable };
92
+ export { AvatarGroup, CatalogCard, CatalogCardBadge, CatalogCardBadges, CatalogCardDescription, CatalogCardHeader, CatalogCardTitle, CatalogCategorySection, CatalogCopyId, CatalogCreditBadge, CatalogDocsBadge, CatalogFieldBadge, CatalogProvider, CatalogProviderAvatars, CatalogRoot, EmojiGlyph, FieldRenderer, FieldTypeBadge, FormProvider, FormRoot, IconGlyph, LogoUrl, PipeCatalog, PipeCatalogActiveFilters, PipeCatalogCard, PipeCatalogCardContext, PipeCatalogCategoryFilter, PipeCatalogColumnFilter, PipeCatalogColumnFilters, PipeCatalogContext, PipeCatalogEmpty, PipeCatalogInputFieldFilter, PipeCatalogList, PipeCatalogOutputFieldFilter, PipeCatalogProviderFilter, PipeCatalogSearchFilter, PipeCatalogTagFilter, PipeForm, PipeFormContent, PipeFormContext, PipeFormErrors, PipeFormField, PipeFormFooter, PipeFormGroup, PipeFormHeader, PipeFormSection, PipeFormSubmitButton, PipeFormTitle, PricingBadge, ProviderLogo, SearchCatalog, SearchCatalogActiveFilters, SearchCatalogCard, SearchCatalogCardContext, SearchCatalogCategoryFilter, SearchCatalogColumnFilter, SearchCatalogColumnFilters, SearchCatalogContext, SearchCatalogEmpty, SearchCatalogList, SearchCatalogOutputFieldFilter, SearchCatalogProviderFilter, SearchCatalogSearchFilter, SearchCatalogTagFilter, SearchForm, SearchFormContent, SearchFormContext, SearchFormErrors, SearchFormField, SearchFormFooter, SearchFormGroup, SearchFormHeader, SearchFormSection, SearchFormSubmitButton, SearchFormTitle, SearchesCatalog, SearchesCatalogActiveFilters, SearchesCatalogCard, SearchesCatalogCardContext, SearchesCatalogCategoryFilter, SearchesCatalogColumnFilter, SearchesCatalogColumnFilters, SearchesCatalogContext, SearchesCatalogEmpty, SearchesCatalogList, SearchesCatalogOutputFieldFilter, SearchesCatalogProviderFilter, SearchesCatalogSearchFilter, SearchesCatalogTagFilter, WidgetStrip, WidgetView, defaultAdapters, fuzzyFilter, getFieldStatusIcon, getFieldTypeIcon, useCatalogConfig, useFieldError, usePipeCatalogCard, usePipeCatalogContext, usePipeCatalogTable, usePipeForm, usePipeFormContext, usePortalContainer, useSearchCatalogCard, useSearchCatalogContext, useSearchCatalogTable, useSearchForm, useSearchFormContext, useSearchesCatalogCard, useSearchesCatalogContext, useSearchesCatalogTable };