@asteby/metacore-runtime-react 53.25.0 → 53.27.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 (387) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/action-modal-dispatcher.d.ts +3 -3
  3. package/dist/action-modal-dispatcher.d.ts.map +1 -1
  4. package/dist/action-modal-dispatcher.js +36 -31
  5. package/dist/action-priority.d.ts +1 -1
  6. package/dist/activity-diff.d.ts +1 -1
  7. package/dist/activity-diff.js +1 -1
  8. package/dist/activity-timeline.d.ts +2 -2
  9. package/dist/activity-timeline.js +3 -3
  10. package/dist/activity-value-renderer.d.ts +1 -1
  11. package/dist/activity-value-renderer.js +3 -3
  12. package/dist/addon-loader.d.ts +1 -1
  13. package/dist/addon-loader.js +3 -3
  14. package/dist/addon-page-host.js +1 -1
  15. package/dist/addon-page-loader.d.ts +2 -2
  16. package/dist/addon-page-loader.js +3 -3
  17. package/dist/api-context.js +4 -4
  18. package/dist/approval-gate.d.ts +1 -1
  19. package/dist/approval-gate.js +5 -5
  20. package/dist/assist-interview.d.ts +1 -1
  21. package/dist/assist-interview.js +1 -1
  22. package/dist/attention/index.d.ts +3 -3
  23. package/dist/attention/index.js +3 -3
  24. package/dist/attention/use-nav-badges.js +2 -2
  25. package/dist/attribute-classes.d.ts +1 -1
  26. package/dist/audit-info.d.ts +1 -1
  27. package/dist/audit-info.js +5 -5
  28. package/dist/bulk-image-dialog.d.ts +1 -1
  29. package/dist/bulk-image-dialog.js +5 -5
  30. package/dist/bulk-image-import.d.ts +2 -2
  31. package/dist/bulk-image-import.js +1 -1
  32. package/dist/bulk-image-target.d.ts +1 -1
  33. package/dist/bulk-image-target.js +1 -1
  34. package/dist/bulk-image-wizard.d.ts +1 -1
  35. package/dist/bulk-image-wizard.js +5 -5
  36. package/dist/business/catalog-product-search.d.ts +1 -1
  37. package/dist/business/customer-picker.js +4 -4
  38. package/dist/business/document-editor-model.d.ts +3 -3
  39. package/dist/business/document-editor-model.js +4 -4
  40. package/dist/business/document-editor-panels.d.ts +3 -3
  41. package/dist/business/document-editor-panels.js +1 -1
  42. package/dist/business/document-editor.d.ts +2 -2
  43. package/dist/business/document-editor.js +22 -22
  44. package/dist/business/document-lines.d.ts +2 -2
  45. package/dist/business/document-lines.js +3 -3
  46. package/dist/business/field-errors.d.ts +1 -1
  47. package/dist/business/field-errors.js +1 -1
  48. package/dist/business/format.js +1 -1
  49. package/dist/business/index.d.ts +29 -29
  50. package/dist/business/index.js +29 -29
  51. package/dist/business/inspection-checklist.d.ts +1 -1
  52. package/dist/business/inspection-checklist.js +2 -2
  53. package/dist/business/inspection.d.ts +1 -1
  54. package/dist/business/inspection.js +2 -2
  55. package/dist/business/line-items-editor.d.ts +3 -3
  56. package/dist/business/line-items-editor.js +5 -5
  57. package/dist/business/line-items.d.ts +1 -1
  58. package/dist/business/line-items.js +2 -2
  59. package/dist/business/line-product-cell.d.ts +2 -2
  60. package/dist/business/line-product-cell.js +2 -2
  61. package/dist/business/payment-allocator.d.ts +1 -1
  62. package/dist/business/payment-allocator.js +2 -2
  63. package/dist/business/payment-capture.d.ts +1 -1
  64. package/dist/business/payment-capture.js +3 -3
  65. package/dist/business/payment.js +1 -1
  66. package/dist/business/print-send-dialog.js +1 -1
  67. package/dist/business/product-display.d.ts +1 -1
  68. package/dist/business/product-options.d.ts +1 -1
  69. package/dist/business/product-options.js +4 -4
  70. package/dist/business/product-picker.d.ts +1 -1
  71. package/dist/business/product-picker.js +3 -3
  72. package/dist/business/product-search.d.ts +2 -2
  73. package/dist/business/product-search.js +1 -1
  74. package/dist/business/refund-destination.d.ts +1 -1
  75. package/dist/business/refund-destination.js +2 -2
  76. package/dist/business/refund.js +1 -1
  77. package/dist/business/relate-documents.js +1 -1
  78. package/dist/business/return-wizard.d.ts +2 -2
  79. package/dist/business/return-wizard.js +4 -4
  80. package/dist/business/return.d.ts +2 -2
  81. package/dist/business/return.js +2 -2
  82. package/dist/business/vehicle-picker.js +3 -3
  83. package/dist/cache-coherence.js +3 -3
  84. package/dist/capability-providers/index.d.ts +3 -3
  85. package/dist/capability-providers/index.js +3 -3
  86. package/dist/capability-providers/provider-sortable-list.d.ts +1 -1
  87. package/dist/capability-providers/provider-sortable-list.js +1 -1
  88. package/dist/collection-cell.js +1 -1
  89. package/dist/column-filter-field.d.ts +1 -1
  90. package/dist/column-visibility.d.ts +1 -1
  91. package/dist/custom-stages.d.ts +2 -2
  92. package/dist/custom-stages.js +1 -1
  93. package/dist/dashboard-grid.d.ts +1 -1
  94. package/dist/dashboard-grid.js +3 -3
  95. package/dist/dialogs/create-record-dialog.d.ts +1 -1
  96. package/dist/dialogs/create-record-dialog.js +1 -1
  97. package/dist/dialogs/dynamic-record.d.ts +15 -5
  98. package/dist/dialogs/dynamic-record.d.ts.map +1 -1
  99. package/dist/dialogs/dynamic-record.js +47 -41
  100. package/dist/dialogs/export.d.ts +1 -1
  101. package/dist/dialogs/export.js +2 -2
  102. package/dist/dialogs/import.d.ts +1 -1
  103. package/dist/dialogs/import.js +3 -3
  104. package/dist/dialogs/inline-relation-rows.d.ts +3 -3
  105. package/dist/dialogs/inline-relation-rows.js +3 -3
  106. package/dist/dialogs/inline-relations.d.ts +3 -3
  107. package/dist/dialogs/inline-relations.js +3 -3
  108. package/dist/dialogs/normalize-submit.d.ts +1 -1
  109. package/dist/dialogs/normalize-submit.js +3 -3
  110. package/dist/dialogs/use-inline-relations.d.ts +1 -1
  111. package/dist/dialogs/use-inline-relations.js +3 -3
  112. package/dist/dialogs/view-record-dialog.d.ts +1 -1
  113. package/dist/dialogs/view-record-dialog.js +1 -1
  114. package/dist/display-value.js +1 -1
  115. package/dist/document/action-bar.d.ts +1 -1
  116. package/dist/document/action-bar.js +1 -1
  117. package/dist/document/document-header.d.ts +2 -2
  118. package/dist/document/document-header.js +2 -2
  119. package/dist/document/document-page.d.ts +3 -3
  120. package/dist/document/document-page.js +9 -9
  121. package/dist/document/document-timeline.d.ts +2 -2
  122. package/dist/document/document-timeline.js +2 -2
  123. package/dist/document/evaluate.d.ts +1 -1
  124. package/dist/document/evaluate.js +1 -1
  125. package/dist/document/format.d.ts +1 -1
  126. package/dist/document/index.d.ts +13 -13
  127. package/dist/document/index.js +13 -13
  128. package/dist/document/registry.d.ts +1 -1
  129. package/dist/document/secondary-bar.js +2 -2
  130. package/dist/document/smart-buttons.js +1 -1
  131. package/dist/document/status-badge.d.ts +1 -1
  132. package/dist/document/use-document-sources.d.ts +1 -1
  133. package/dist/document/use-document-sources.js +2 -2
  134. package/dist/document-form-dialog.d.ts +2 -2
  135. package/dist/document-form-dialog.js +16 -16
  136. package/dist/document-template-editor.js +1 -1
  137. package/dist/dynamic-columns-shim.d.ts +1 -1
  138. package/dist/dynamic-columns.d.ts +3 -3
  139. package/dist/dynamic-columns.js +19 -19
  140. package/dist/dynamic-crud-page.d.ts +2 -2
  141. package/dist/dynamic-crud-page.js +13 -13
  142. package/dist/dynamic-date-field.d.ts +1 -1
  143. package/dist/dynamic-date-field.js +1 -1
  144. package/dist/dynamic-form-schema.d.ts +2 -2
  145. package/dist/dynamic-form-schema.js +4 -4
  146. package/dist/dynamic-form.d.ts +10 -10
  147. package/dist/dynamic-form.d.ts.map +1 -1
  148. package/dist/dynamic-form.js +31 -24
  149. package/dist/dynamic-icon.js +1 -1
  150. package/dist/dynamic-kanban.d.ts +3 -3
  151. package/dist/dynamic-kanban.js +25 -25
  152. package/dist/dynamic-line-items.d.ts +1 -1
  153. package/dist/dynamic-line-items.d.ts.map +1 -1
  154. package/dist/dynamic-line-items.js +11 -6
  155. package/dist/dynamic-multi-select-field.d.ts +1 -1
  156. package/dist/dynamic-multi-select-field.d.ts.map +1 -1
  157. package/dist/dynamic-multi-select-field.js +12 -12
  158. package/dist/dynamic-relation-helpers.d.ts +1 -1
  159. package/dist/dynamic-relation-helpers.js +2 -2
  160. package/dist/dynamic-relation.d.ts +2 -2
  161. package/dist/dynamic-relation.js +15 -15
  162. package/dist/dynamic-relations.d.ts +2 -2
  163. package/dist/dynamic-relations.js +1 -1
  164. package/dist/dynamic-row-actions.d.ts +1 -1
  165. package/dist/dynamic-row-actions.js +5 -5
  166. package/dist/dynamic-select-field.d.ts +3 -3
  167. package/dist/dynamic-select-field.js +11 -11
  168. package/dist/dynamic-table.d.ts +2 -2
  169. package/dist/dynamic-table.js +24 -24
  170. package/dist/dynamic-view.d.ts +4 -4
  171. package/dist/dynamic-view.js +7 -7
  172. package/dist/entity-select.js +4 -4
  173. package/dist/field-validation-ui.d.ts +2 -2
  174. package/dist/field-widget-registry.d.ts +1 -1
  175. package/dist/form-layout-ui.d.ts +1 -1
  176. package/dist/form-layout.d.ts +1 -1
  177. package/dist/form-layout.js +1 -1
  178. package/dist/genui/index.d.ts +1 -1
  179. package/dist/genui/index.js +1 -1
  180. package/dist/genui/settings-block.d.ts +1 -1
  181. package/dist/genui/settings-block.js +3 -3
  182. package/dist/host-api-client.d.ts +28 -1
  183. package/dist/host-api-client.d.ts.map +1 -1
  184. package/dist/host-api-client.js +27 -14
  185. package/dist/host-api.d.ts +23 -1
  186. package/dist/host-api.d.ts.map +1 -1
  187. package/dist/host-api.js +79 -4
  188. package/dist/hotswap-reload-policy.d.ts +1 -1
  189. package/dist/hotswap-reload-policy.js +1 -1
  190. package/dist/icon-picker-field.d.ts +1 -1
  191. package/dist/icon-picker-field.js +3 -3
  192. package/dist/icon-resolvers.d.ts +1 -1
  193. package/dist/icon-resolvers.js +1 -1
  194. package/dist/icon-spec.js +1 -1
  195. package/dist/index.d.ts +165 -165
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +148 -148
  198. package/dist/license/index.d.ts +6 -6
  199. package/dist/license/index.js +6 -6
  200. package/dist/license/license-expiry-banner.d.ts +1 -1
  201. package/dist/license/license-expiry-banner.js +3 -3
  202. package/dist/license/license-gate.d.ts +1 -1
  203. package/dist/license/license-gate.js +5 -5
  204. package/dist/license/license-status-badge.d.ts +1 -1
  205. package/dist/license/license-status-badge.js +1 -1
  206. package/dist/license/use-license-t.d.ts +1 -1
  207. package/dist/license/use-license-t.js +1 -1
  208. package/dist/license/view.d.ts +1 -1
  209. package/dist/license/view.js +1 -1
  210. package/dist/list-include.d.ts +1 -1
  211. package/dist/manifest-hotswap-subscriber.d.ts +1 -1
  212. package/dist/manifest-hotswap-subscriber.js +1 -1
  213. package/dist/metadata-cache.d.ts +1 -1
  214. package/dist/metadata-cache.js +1 -1
  215. package/dist/model-action-toolbar.d.ts +1 -1
  216. package/dist/model-action-toolbar.js +7 -7
  217. package/dist/nav-permissions.d.ts +1 -1
  218. package/dist/nav-permissions.js +1 -1
  219. package/dist/navigation-builder.d.ts +1 -1
  220. package/dist/navigation-builder.js +1 -1
  221. package/dist/option-display.d.ts +1 -1
  222. package/dist/option-display.js +2 -2
  223. package/dist/option-filter.d.ts +1 -1
  224. package/dist/option-when.d.ts +1 -1
  225. package/dist/org-runtime-provider.d.ts +2 -2
  226. package/dist/org-runtime-provider.js +2 -2
  227. package/dist/permissions-context.d.ts +1 -1
  228. package/dist/permissions-manager.js +4 -4
  229. package/dist/primitives/aging.js +1 -1
  230. package/dist/primitives/allocation.js +1 -1
  231. package/dist/primitives/approvals.d.ts +1 -1
  232. package/dist/primitives/contributions.js +1 -1
  233. package/dist/primitives/document-kinds.d.ts +1 -1
  234. package/dist/primitives/index.d.ts +7 -7
  235. package/dist/primitives/index.js +7 -7
  236. package/dist/primitives/panels.d.ts +1 -1
  237. package/dist/primitives/use-contributions.d.ts +2 -2
  238. package/dist/primitives/use-contributions.js +2 -2
  239. package/dist/print-document-button.d.ts +1 -1
  240. package/dist/print-document-button.js +1 -1
  241. package/dist/provenance.js +3 -3
  242. package/dist/query-batch.d.ts +1 -1
  243. package/dist/query-batch.js +1 -1
  244. package/dist/record-actions.d.ts +2 -2
  245. package/dist/record-actions.js +2 -2
  246. package/dist/record-history.d.ts +2 -2
  247. package/dist/record-history.js +3 -3
  248. package/dist/record-picker-dialog.js +3 -3
  249. package/dist/record-picker-option.d.ts +1 -1
  250. package/dist/record-picker-option.js +1 -1
  251. package/dist/record-picker.d.ts +5 -0
  252. package/dist/record-picker.d.ts.map +1 -1
  253. package/dist/record-picker.js +16 -6
  254. package/dist/record-prefill-bar.js +1 -1
  255. package/dist/relation-gallery.js +1 -1
  256. package/dist/requires-addon.d.ts +1 -1
  257. package/dist/rich-cells.js +2 -2
  258. package/dist/rich-url.js +1 -1
  259. package/dist/row-actions-menu.js +5 -5
  260. package/dist/searchable-select-field.d.ts +33 -0
  261. package/dist/searchable-select-field.d.ts.map +1 -0
  262. package/dist/searchable-select-field.js +50 -0
  263. package/dist/searchable-select.d.ts +45 -0
  264. package/dist/searchable-select.d.ts.map +1 -0
  265. package/dist/searchable-select.js +72 -0
  266. package/dist/server-error.js +2 -2
  267. package/dist/setup/addon-config-surface.d.ts +3 -3
  268. package/dist/setup/addon-config-surface.js +10 -10
  269. package/dist/setup/connector-blocks-model.d.ts +1 -1
  270. package/dist/setup/connector-blocks.d.ts +1 -1
  271. package/dist/setup/connector-blocks.js +6 -6
  272. package/dist/setup/flow-model.d.ts +1 -1
  273. package/dist/setup/health-card.d.ts +1 -1
  274. package/dist/setup/health-card.js +2 -2
  275. package/dist/setup/index.d.ts +12 -12
  276. package/dist/setup/index.js +12 -12
  277. package/dist/setup/records-table.d.ts +1 -1
  278. package/dist/setup/records-table.js +2 -2
  279. package/dist/setup/setup-flow.d.ts +1 -1
  280. package/dist/setup/setup-flow.js +7 -7
  281. package/dist/setup/setup-form-step.d.ts +1 -1
  282. package/dist/setup/setup-form-step.js +4 -4
  283. package/dist/setup/step-status-badge.d.ts +1 -1
  284. package/dist/setup/step-status-badge.js +2 -2
  285. package/dist/setup/tone.d.ts +1 -1
  286. package/dist/setup/types.d.ts +2 -2
  287. package/dist/sidebar-layout-manager.d.ts +1 -1
  288. package/dist/sidebar-layout-manager.js +2 -2
  289. package/dist/slot.js +1 -1
  290. package/dist/slots/addon-slot.js +4 -4
  291. package/dist/slots/index.d.ts +2 -2
  292. package/dist/slots/index.js +2 -2
  293. package/dist/stage-automations.d.ts +2 -2
  294. package/dist/stage-automations.js +1 -1
  295. package/dist/stage-layout.js +1 -1
  296. package/dist/stage-overrides.d.ts +1 -1
  297. package/dist/stage-overrides.js +1 -1
  298. package/dist/supervised-action.js +1 -1
  299. package/dist/testing.d.ts +1 -1
  300. package/dist/testing.js +1 -1
  301. package/dist/tri-state-boolean.d.ts +2 -2
  302. package/dist/tri-state-boolean.js +1 -1
  303. package/dist/types.d.ts +13 -1
  304. package/dist/types.d.ts.map +1 -1
  305. package/dist/upload-field.d.ts +1 -1
  306. package/dist/upload-field.js +4 -4
  307. package/dist/use-addon-installed-probe.js +3 -3
  308. package/dist/use-addon-settings.d.ts +1 -1
  309. package/dist/use-addon-settings.js +1 -1
  310. package/dist/use-dynamic-filters.d.ts +2 -2
  311. package/dist/use-dynamic-filters.js +6 -6
  312. package/dist/use-edge-device.d.ts +1 -1
  313. package/dist/use-edge-device.js +2 -2
  314. package/dist/use-facet-loaders.d.ts +1 -1
  315. package/dist/use-facet-loaders.js +1 -1
  316. package/dist/use-flip-animation.d.ts +1 -1
  317. package/dist/use-flip-animation.js +1 -1
  318. package/dist/use-host-api-client.d.ts +2 -2
  319. package/dist/use-host-api-client.d.ts.map +1 -1
  320. package/dist/use-host-api-client.js +6 -4
  321. package/dist/use-option-ids.d.ts +1 -1
  322. package/dist/use-option-ids.js +2 -2
  323. package/dist/use-options-resolver.d.ts +2 -2
  324. package/dist/use-options-resolver.js +4 -4
  325. package/dist/use-org-document-templates.js +1 -1
  326. package/dist/use-print-document.js +1 -1
  327. package/dist/use-record-mutation-tick.js +1 -1
  328. package/dist/validator.d.ts +2 -2
  329. package/dist/validator.js +1 -1
  330. package/dist/view-system/card-spec.d.ts +1 -1
  331. package/dist/view-system/cards-view.d.ts +1 -1
  332. package/dist/view-system/cards-view.js +2 -2
  333. package/dist/view-system/index.d.ts +9 -9
  334. package/dist/view-system/index.js +9 -9
  335. package/dist/view-system/model-view.d.ts +3 -3
  336. package/dist/view-system/model-view.js +7 -7
  337. package/dist/view-system/saved-views.d.ts +1 -1
  338. package/dist/view-system/use-view-mode.d.ts +1 -1
  339. package/dist/view-system/view-state.d.ts +1 -1
  340. package/dist/view-system/view-switcher.d.ts +1 -1
  341. package/dist/view-system/view-toolbar.d.ts +1 -1
  342. package/dist/view-system/view-toolbar.js +2 -2
  343. package/dist/views/calendar-view.d.ts +1 -1
  344. package/dist/views/calendar-view.js +2 -2
  345. package/dist/views/chart-view.d.ts +2 -2
  346. package/dist/views/chart-view.js +2 -2
  347. package/dist/views/data-source.d.ts +2 -2
  348. package/dist/views/index.d.ts +3 -3
  349. package/dist/views/index.js +2 -2
  350. package/dist/views/map-view.d.ts +1 -1
  351. package/dist/views/map-view.js +3 -3
  352. package/dist/views/panels.d.ts +1 -1
  353. package/dist/views/panels.js +3 -3
  354. package/dist/views/registry.d.ts +2 -2
  355. package/dist/views/registry.js +12 -12
  356. package/dist/views/split-view.d.ts +1 -1
  357. package/dist/views/split-view.js +4 -4
  358. package/dist/views/timeline-view.d.ts +1 -1
  359. package/dist/views/timeline-view.js +3 -3
  360. package/dist/views/types.d.ts +2 -2
  361. package/dist/widgets/charts.d.ts +1 -1
  362. package/dist/widgets/charts.js +2 -2
  363. package/dist/widgets/lazy-charts.d.ts +1 -1
  364. package/dist/widgets/lazy-charts.js +2 -2
  365. package/dist/widgets/renderers.d.ts +2 -2
  366. package/dist/widgets/renderers.js +2 -2
  367. package/dist/widgets/widget-card.d.ts +1 -1
  368. package/dist/widgets/widget-card.js +2 -2
  369. package/dist/widgets/widget-renderer.d.ts +1 -1
  370. package/dist/widgets/widget-renderer.js +4 -4
  371. package/package.json +9 -9
  372. package/src/__tests__/host-api-client.test.tsx +28 -0
  373. package/src/__tests__/host-api.test.ts +91 -0
  374. package/src/__tests__/searchable-select.test.tsx +247 -0
  375. package/src/action-modal-dispatcher.tsx +16 -0
  376. package/src/dialogs/dynamic-record.tsx +26 -0
  377. package/src/dynamic-form.tsx +17 -0
  378. package/src/dynamic-line-items.tsx +17 -0
  379. package/src/dynamic-multi-select-field.tsx +5 -4
  380. package/src/host-api-client.ts +51 -15
  381. package/src/host-api.ts +81 -3
  382. package/src/index.ts +2 -1
  383. package/src/record-picker.tsx +32 -3
  384. package/src/searchable-select-field.tsx +134 -0
  385. package/src/searchable-select.ts +87 -0
  386. package/src/types.ts +12 -0
  387. package/src/use-host-api-client.ts +5 -3
@@ -1,6 +1,6 @@
1
1
  import { HostApiError } from '@asteby/metacore-sdk';
2
2
  import type { HostApi } from '@asteby/metacore-sdk';
3
- import type { ApiClient } from './api-context';
3
+ import type { ApiClient } from './api-context.js';
4
4
  export interface CreateHostApiOptions {
5
5
  /**
6
6
  * Endpoint the host serves capability queries on (`POST`, body
@@ -14,9 +14,31 @@ export interface CreateHostApiOptions {
14
14
  * batches.
15
15
  */
16
16
  batchGets?: boolean;
17
+ /**
18
+ * Ceiling (ms) for a remote's per-call `timeout`. Default 600000 (10 min).
19
+ * A remote asking for more, or for `0`, gets this ceiling. `0` here means
20
+ * the host admits no ceiling (remote `0` = no limit).
21
+ */
22
+ maxTimeoutMs?: number;
17
23
  }
18
24
  /** Strip transport details from any error before it reaches remote code. */
19
25
  export declare function toHostApiError(e: unknown): HostApiError;
26
+ /**
27
+ * Headers the host owns. A remote may add headers but never set these: they
28
+ * carry the credentials, the tenant scope or transport framing. Compared
29
+ * lowercase.
30
+ */
31
+ export declare const PROTECTED_HOST_HEADERS: ReadonlySet<string>;
32
+ /** Drop protected / malformed headers; returns undefined when none remain. */
33
+ export declare function sanitizeRemoteHeaders(headers: Record<string, string> | undefined): Record<string, string> | undefined;
34
+ export declare const DEFAULT_MAX_TIMEOUT_MS = 600000;
35
+ /** Request-config key the host transport reads to bypass its offline cache. */
36
+ export declare const HOST_FRESHNESS_KEY = "metacoreFreshness";
37
+ /**
38
+ * Validate a requested timeout: finite number >= 0 else `undefined` (ignored);
39
+ * clamp to `max` (0 or above max => max; `max === 0` => no ceiling).
40
+ */
41
+ export declare function normalizeTimeout(t: unknown, max?: number): number | undefined;
20
42
  /** Build the remote-facing {@link HostApi} over the host's ApiClient. */
21
43
  export declare function createHostApi(client: ApiClient, options?: CreateHostApiOptions): HostApi;
22
44
  //# sourceMappingURL=host-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-api.d.ts","sourceRoot":"","sources":["../src/host-api.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EACR,OAAO,EAGV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACtB;AAkBD,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,YAAY,CAWvD;AAuDD,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,oBAAyB,GAAG,OAAO,CA+C5F"}
1
+ {"version":3,"file":"host-api.d.ts","sourceRoot":"","sources":["../src/host-api.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EACR,OAAO,EAGV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACxB;AAkBD,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,YAAY,CAWvD;AAcD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAyBrD,CAAA;AAGF,8EAA8E;AAC9E,wBAAgB,qBAAqB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYpC;AAED,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAE7C,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,sBAAsB,CAAA;AAErD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,GAAE,MAA+B,GAAG,MAAM,GAAG,SAAS,CAIrG;AAgDD,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAiD5F"}
package/dist/host-api.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // credentials the host attaches.
13
13
  import { HostApiError } from '@asteby/metacore-sdk';
14
14
  import { isAbortError } from '@asteby/metacore-lib/envelope';
15
- import { batchGet } from './query-batch';
15
+ import { batchGet } from './query-batch.js';
16
16
  function errorMessage(data, fallback) {
17
17
  if (data && typeof data === 'object') {
18
18
  const d = data;
@@ -50,7 +50,72 @@ function safeData(data) {
50
50
  return undefined;
51
51
  }
52
52
  }
53
- function toConfig(opts) {
53
+ /**
54
+ * Headers the host owns. A remote may add headers but never set these: they
55
+ * carry the credentials, the tenant scope or transport framing. Compared
56
+ * lowercase.
57
+ */
58
+ export const PROTECTED_HOST_HEADERS = new Set([
59
+ 'authorization',
60
+ 'proxy-authorization',
61
+ 'cookie',
62
+ 'x-organization-id',
63
+ 'x-org-id',
64
+ 'x-branch-id',
65
+ 'accept-language',
66
+ 'host',
67
+ 'content-length',
68
+ 'content-type',
69
+ 'transfer-encoding',
70
+ 'origin',
71
+ 'referer',
72
+ // Reenvio / identidad de origen: el backend arma URLs publicas y decide
73
+ // tenant a partir de ellas.
74
+ 'x-forwarded-host',
75
+ 'x-forwarded-proto',
76
+ 'x-forwarded-for',
77
+ 'x-forwarded-port',
78
+ 'forwarded',
79
+ 'x-real-ip',
80
+ 'x-storefront-domain',
81
+ 'x-api-key',
82
+ 'x-http-method-override',
83
+ ]);
84
+ const PROTECTED_HEADER_PREFIXES = ['proxy-'];
85
+ /** Drop protected / malformed headers; returns undefined when none remain. */
86
+ export function sanitizeRemoteHeaders(headers) {
87
+ if (!headers || typeof headers !== 'object')
88
+ return undefined;
89
+ const out = {};
90
+ for (const [name, value] of Object.entries(headers)) {
91
+ if (typeof value !== 'string')
92
+ continue;
93
+ if (!/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/.test(name))
94
+ continue;
95
+ if (/[\r\n]/.test(value))
96
+ continue;
97
+ const lower = name.toLowerCase();
98
+ if (PROTECTED_HOST_HEADERS.has(lower) || PROTECTED_HEADER_PREFIXES.some((p) => lower.startsWith(p)))
99
+ continue;
100
+ out[name] = value;
101
+ }
102
+ return Object.keys(out).length ? out : undefined;
103
+ }
104
+ export const DEFAULT_MAX_TIMEOUT_MS = 600_000;
105
+ /** Request-config key the host transport reads to bypass its offline cache. */
106
+ export const HOST_FRESHNESS_KEY = 'metacoreFreshness';
107
+ /**
108
+ * Validate a requested timeout: finite number >= 0 else `undefined` (ignored);
109
+ * clamp to `max` (0 or above max => max; `max === 0` => no ceiling).
110
+ */
111
+ export function normalizeTimeout(t, max = DEFAULT_MAX_TIMEOUT_MS) {
112
+ if (typeof t !== 'number' || !Number.isFinite(t) || t < 0)
113
+ return undefined;
114
+ if (max > 0 && (t === 0 || t > max))
115
+ return max;
116
+ return t;
117
+ }
118
+ function toConfig(opts, maxTimeoutMs) {
54
119
  if (!opts)
55
120
  return undefined;
56
121
  const config = {};
@@ -60,6 +125,14 @@ function toConfig(opts) {
60
125
  config.signal = opts.signal;
61
126
  if (opts.responseType === 'blob')
62
127
  config.responseType = 'blob';
128
+ const timeout = normalizeTimeout(opts.timeout, maxTimeoutMs);
129
+ if (timeout !== undefined)
130
+ config.timeout = timeout;
131
+ if (opts.freshness === 'network')
132
+ config[HOST_FRESHNESS_KEY] = 'network';
133
+ const headers = sanitizeRemoteHeaders(opts.headers);
134
+ if (headers)
135
+ config.headers = headers;
63
136
  return config;
64
137
  }
65
138
  // With `responseType: 'blob'` axios also delivers the error body as a Blob.
@@ -102,14 +175,16 @@ async function bodyOf(p, opts) {
102
175
  export function createHostApi(client, options = {}) {
103
176
  const capabilityPath = options.capabilityPath ?? '/capabilities/query';
104
177
  const withConfig = (args, opts) => {
105
- const config = toConfig(opts);
178
+ const config = toConfig(opts, options.maxTimeoutMs);
106
179
  return config ? [...args, config] : args;
107
180
  };
108
181
  const patch = client.patch;
109
182
  return Object.freeze({
110
183
  get: (path, opts) => {
111
184
  const args = withConfig([path], opts);
112
- const batch = options.batchGets && opts?.responseType !== 'blob';
185
+ // A GET with per-call headers cannot share a POST /q: it goes on its own.
186
+ const batch = options.batchGets && opts?.responseType !== 'blob' && !sanitizeRemoteHeaders(opts?.headers) &&
187
+ opts?.timeout === undefined && opts?.freshness !== 'network';
113
188
  return bodyOf(batch ? batchGet(client, ...args) : client.get(...args), opts);
114
189
  },
115
190
  post: (path, body, opts) => bodyOf(client.post(...withConfig([path, body], opts)), opts),
@@ -1,4 +1,4 @@
1
- import { type AddonManifestChangedMessage, type ManifestHotSwapClient, type WireHotSwapInvalidationOptions } from './manifest-hotswap-subscriber';
1
+ import { type AddonManifestChangedMessage, type ManifestHotSwapClient, type WireHotSwapInvalidationOptions } from './manifest-hotswap-subscriber.js';
2
2
  /**
3
3
  * One of three strategies for reacting to an `ADDON_MANIFEST_CHANGED` event:
4
4
  *
@@ -54,7 +54,7 @@
54
54
  // for backward compatibility (legacy hosts may still call it from `onSwap`) but
55
55
  // is a no-op under the MF runtime.
56
56
  import { useMemo, useRef, useState } from 'react';
57
- import { useManifestHotSwapSubscriber, } from './manifest-hotswap-subscriber';
57
+ import { useManifestHotSwapSubscriber, } from './manifest-hotswap-subscriber.js';
58
58
  /**
59
59
  * Pure (testable) implementation of the swap handler. Decides the action
60
60
  * given a message + config + deps, applies side effects via `deps`, and
@@ -1,4 +1,4 @@
1
- import type { ActionFieldDef } from './types';
1
+ import type { ActionFieldDef } from './types.js';
2
2
  export interface IconPickerFieldProps {
3
3
  field: ActionFieldDef;
4
4
  value: any;
@@ -14,10 +14,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  // means image, anything else means icon.
15
15
  import { useMemo, useState } from 'react';
16
16
  import { ChevronsUpDown } from 'lucide-react';
17
- import { lucideIconNames } from './dynamic-icon';
17
+ import { lucideIconNames } from './dynamic-icon.js';
18
18
  import { Button, Input, Popover, PopoverContent, PopoverTrigger, } from '@asteby/metacore-ui/primitives';
19
- import { DynamicIcon, resolveLucideIconName } from './dynamic-icon';
20
- import { UploadField } from './upload-field';
19
+ import { DynamicIcon, resolveLucideIconName } from './dynamic-icon.js';
20
+ import { UploadField } from './upload-field.js';
21
21
  /** Icons rendered per "page" — grows as the user scrolls to the bottom. Keeps
22
22
  * the DOM light: the lucide catalog is ~1500 glyphs, so we never mount them all. */
23
23
  const PAGE = 60;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type IconSpec } from './icon-spec';
2
+ import { type IconSpec } from './icon-spec.js';
3
3
  export type IconResolver = (spec: string) => IconSpec | ReactNode | null | undefined;
4
4
  /** Outcome of resolving: a built-in spec, or a node the host rendered itself. */
5
5
  export type ResolvedIcon = IconSpec | {
@@ -1,4 +1,4 @@
1
- import { parseIconSpec } from './icon-spec';
1
+ import { parseIconSpec } from './icon-spec.js';
2
2
  const resolvers = [];
3
3
  const SPEC_KINDS = new Set(['lucide', 'emoji', 'image', 'unknown']);
4
4
  function isIconSpec(v) {
package/dist/icon-spec.js CHANGED
@@ -13,7 +13,7 @@
13
13
  // ("mdi mdi-home", "bi bi-house", "ti ti-home", "ri-home-line") and Iconify ids
14
14
  // ("mdi:home") only get the generic normalisation against Lucide; no tables.
15
15
  import dynamicIconImports from 'lucide-react/dynamicIconImports';
16
- import { FONT_AWESOME_ALIASES } from './icon-aliases';
16
+ import { FONT_AWESOME_ALIASES } from './icon-aliases.js';
17
17
  const LUCIDE_KEYS = dynamicIconImports;
18
18
  function kebabToPascal(kebab) {
19
19
  return kebab
package/dist/index.d.ts CHANGED
@@ -1,167 +1,167 @@
1
- export * from './types';
2
- export * from './table-virtualization';
3
- export { LicenseGate, LicenseExpiryBanner, LicenseStatusBadge, isLicenseOperable, isLicenseBlocking, isLicenseReadOnly, isPresetEntitled, isTrialExpired, deriveLicenseView, isLicenseCloned, sellerContactLine, CLONE_NOTICE, LICENSE_MESSAGES, registerLicenseMessages, type LicenseGateProps, type LicenseExpiryBannerProps, type LicenseStatusBadgeProps, type LicenseState, type LicenseStatus, type LicenseSeller, type LicenseOnExpiry, type LicenseBranding, type LicenseView, type LicenseCondition, type LicenseSeverity, type LicenseLang, } from './license';
4
- export * from './options-context';
5
- export { extractServerError, extractFieldErrors, localizeFieldIssue, localizeFieldErrorMap, toastServerError, toastServerSuccess, type ExtractedError, type Translate, type FieldIssue, } from './server-error';
6
- export { parseRuleString, fieldValidationOf, checkValue, validateValues, bagHasErrors, exemptUnchangedRuleIssues, type ValidationSpec, } from './validator';
7
- export { VALIDATION_CATALOGS, validationCatalog, validationMessageKey } from './validation-catalog';
8
- export { labelForValidationPath, labelsForValidationFields, formatFieldErrorsDescription, clearFieldErrorTree, lineItemErrorsFor, } from './field-validation-ui';
9
- export * from './dynamic-table';
10
- export { DynamicKanban, type DynamicKanbanProps, deriveStages, groupByStage, isTransitionAllowed, applyOptimisticMove, applyStageOverrides, laneDeltasFromOverrides, selectCardColumns, isCardOverdue, refLaneSource, withGroupBy, withRefLanes, visibleCardFields, isEmptyCardValue, nextLaneCoordinates, UNASSIGNED_LANE, } from './dynamic-kanban';
11
- export { PortalDragOverlay, type PortalDragOverlayProps } from './portal-drag-overlay';
12
- export { useStageAutomations, StageAutomationsButton, isTagColumn, automationFieldOptions, groupAutomationsByStage, activeAutomationCount, type StageAutomation, type StageAutomationAction, type StageAutomationActionType, type NewStageAutomation, type UseStageAutomationsResult, type StageAutomationsButtonProps, } from './stage-automations';
13
- export { useCustomStages, splitCustomStages, mergeLaneStages, resolveSmartLanes, smartLaneParams, cardMatchesStageFilters, customStageFilterFields, isCustomStageDraftValid, slugifyStageKey, emptyCustomStageFilter, AddStageColumn, CustomStageLaneMenu, CustomStageDialog, CustomStageDeleteDialog, StageConditionBuilder, StageConfigDialog, stageFilterOpSymbol, SmartLane, CUSTOM_STAGE_COLORS, CUSTOM_STAGE_FILTER_OPS, type CustomStage, type NewCustomStage, type CustomStageType, type CustomStageFilter, type CustomStageFilterOp, type UseCustomStagesResult, type StageConfigTarget, type StageConfigKind, type StageConditionBuilderProps, type StageConfigDialogProps, } from './custom-stages';
14
- export { useStageLayout, type StageLayout, type UseStageLayoutResult, } from './stage-layout';
15
- export { useStageOverrides, type StageOverridePatch, type UseStageOverridesResult, } from './stage-overrides';
16
- export { DynamicView, resolveViewRenderer, resolveViewKind, readViewFromSearch, resolveActiveView, type DynamicViewProps, } from './dynamic-view';
17
- export { useDynamicFilters, type UseDynamicFiltersOptions, type UseDynamicFiltersResult, } from './use-dynamic-filters';
18
- export { useDebouncedValue, SEARCH_DEBOUNCE_MS } from './use-debounced-value';
19
- export { useOptimisticMutation, type UseOptimisticMutationOptions, type UseOptimisticMutationResult, } from './use-optimistic-mutation';
20
- export { useFlipAnimation, type UseFlipAnimationOptions } from './use-flip-animation';
21
- export { usePersistedQuery, createPersistedSnapshot, type UsePersistedQueryOptions, type PersistedSnapshot, type PersistedSnapshotOptions, type PersistedEntry, } from './use-persisted-query';
22
- export { motionDuration, motionEasing, prefersReducedMotion, MOTION_DEFAULTS, type MotionDuration, type MotionEasing, } from './motion';
23
- export { useResource, useMutation, type ResourceState, type MutationState, } from './use-resource';
24
- export * from './dynamic-form';
25
- export { FilePickButton, type FilePickButtonProps, } from './file-pick-button';
26
- export * from './barcode-scanner';
27
- export * from './form-layout';
28
- export * from './form-layout-ui';
29
- export { SetupFlow, SetupFormStep, RecordsTable, HealthCard, StepStatusBadge, AddonConfigSurface, ConnectorBlocks, type ConnectorBlocksProps, type ConnectorFormBlock, type BlockResult, type SetupFlowProps, type SetupCustomStepProps, type SetupFormStepProps, type RecordsTableProps, type HealthCardProps, type StepStatusBadgeProps, type AddonConfigSurfaceProps, type AddonConfigAddon, type AddonConfigNotifier, type AddonSettingDef, type ConnectorEntry, type ConnectorCredentialField, type ConnectorFormLayout, } from './setup';
30
- export type * from './setup/types';
31
- export { FieldGrid, FieldCell, FieldLabel } from './field-grid';
32
- export { ActionModalDispatcher, FEDERATED_ACTION_MODAL_TIMEOUT_MS, resolveFieldDefault, type ActionModalProps, type FieldDefaultContext, } from './action-modal-dispatcher';
33
- export { todayInZone, isTodayToken } from './calendar-date';
34
- export { setFederatedActionLoader, type FederatedActionLoader } from './federated-action-loader';
35
- export { ModelActionToolbar, useModelActions, type ModelActionToolbarProps, type ActionPlacement, } from './model-action-toolbar';
36
- export { resolveListPrimaryAction, actionReplacesCreate, type ListPrimaryActionInput, type ListPrimaryActionResult, type ListActionRef, type CreateMode, } from './list-primary-action';
37
- export { emitRecordMutation, emitRecordMutationSettled, subscribeRecordMutations, RECORD_MUTATION_EVENT, RECORD_MUTATION_SETTLE_DELAYS, type RecordMutationKind, type RecordMutationDetail, } from './record-mutation-events';
38
- export { DocumentFormDialog, resolveDocumentForms, scopeDocumentFormsToFilter, delegatedCreate, withoutDelegatedTypes, type DelegatedCreate, type DocumentFormDialogProps, } from './document-form-dialog';
39
- export { modelFromNavUrl, capabilityForNavItem, isNavItemAllowed, useNavItemVisible, type NavLeafLike, } from './nav-permissions';
40
- export { CfdiStampPanel, CfdiStampResultDialog, extractStampResult, type CfdiStampResult, type CfdiStampPanelProps, type CfdiStampResultDialogProps, } from './cfdi-stamp-panel';
41
- export { useRecordMutationTick } from './use-record-mutation-tick';
42
- export * from './addon-loader';
43
- export { AddonPageLoader, AddonPageSkeleton, type AddonPageLoaderProps, } from './addon-page-loader';
44
- export { AddonPageHost, createPageChromeStore, usePageChromeState, useHostContext, useHostApi, useAddonNavigate, useAddonLocation, useAddonSearchParams, useBreadcrumbs, usePageChrome, useIsInAddonPage, resolveAddonPath, addonSubpath, type AddonPageHostProps, type AddonPageHostValue, type AddonPageLocation, type AddonNavigateOptions, type PageChromeState, type PageChromeStore, } from './addon-page-host';
45
- export { createHostApi, toHostApiError, type CreateHostApiOptions } from './host-api';
46
- export { HostApiProvider, type HostApiProviderProps } from './host-api-context';
47
- export { createHostApiClient, type HostApiClient, type HostRequestConfig, type AxiosLikeClient, } from './host-api-client';
48
- export { useHostApiClient } from './use-host-api-client';
49
- export { FederatedErrorBoundary, type FederatedErrorBoundaryProps, type FederatedErrorFallbackProps, type FederatedErrorInfo, type FederatedErrorStrings, } from './federated-error-boundary';
50
- export * from './views';
51
- export { PURGE_ADDON_MESSAGE, isAddonFrontendCacheUrl, purgeAddonFrontendCache, resolvePluginExports, composeDisposables, runDispose, type PurgeAddonMessage, type AddonRegisterModule, type ResolvedPlugin, } from './addon-fiber';
52
- export { AddonLayoutProvider, useAddonLayout, useAddonLayoutControl, useDeclareAddonLayout, type AddonLayout, type AddonLayoutProviderProps, } from './addon-layout-context';
53
- export * from './slot';
54
- export * from './slots';
55
- export * from './capability-gate';
56
- export { PermissionsProvider, useCan, usePermissionsActive, useRoleGate, isActionAllowedForRoles, makeCan, capabilityForActionKey, modelCapability, gateTableMetadata, resolveRowActions, type CanFn, type RoleGate, type PermissionsProviderProps, } from './permissions-context';
57
- export { ApprovalPinDialog, approvalErrorMessage, type ApprovalPinDialogProps, type ApprovalPinSubmit, } from './approval-pin-dialog';
58
- export { ApprovalGateProvider, useApprovalGate, approvalCapability, approvalRequiredInfo, approvalGateAvailable, APPROVAL_PARKED_EVENT, APPROVAL_DECIDED_EVENT, type ApprovalGateValue, type ApprovalGrant, type ApprovalRequiredInfo, type RequestApprovalOptions, } from './approval-gate';
59
- export { useSupervisor, withApproval, type SupervisedAction, type SupervisorAuthorization, type AuthorizeOptions, } from './supervised-action';
60
- export { ReasonPromptDialog, useReasonPrompt, reasonRequiredInfo, DEFAULT_REASON_MIN, type ReasonPromptDialogProps, type ReasonPromptApi, type ReasonRequiredInfo, type RunWithReasonOptions, } from './reason-prompt';
61
- export { useDynamicRowActions, type UseDynamicRowActionsParams, type DynamicRowActions, } from './dynamic-row-actions';
62
- export { resolveRequiresAddon, setAddonInstallHandler, getAddonInstallHandler, requiresAddonName, useRequiresAddonLabel, RequiresAddonLock, RequiresAddonDialog, type RequiresAddon, type RequiresAddonDialogProps, } from './requires-addon';
63
- export { ColorPickerField, DEFAULT_ROLE_COLOR, normalizeHex } from './color-picker-field';
64
- export { PermissionsManager, moduleActionCapability, moduleCapabilities, grantedCountForModule, capabilitySetsEqual, defaultActionIcon, suggestRoleIcon, normalizeCatalogGroups, flattenGroups, filterModuleGroups, groupModuleActions, type PermissionsManagerProps, type PermissionsCatalog, type GroupedPermissionsCatalog, type FlatPermissionsCatalog, type ModuleGroup, type PermissionModuleDef, type PermissionActionDef, type GeneralPermissionDef, type RoleDef, type RoleInput, } from './permissions-manager';
65
- export { applySidebarLayout, collectFolderKeys, folderAccessCapability, coreRefKey, addonModelRefKey, addonUrlRefKey, urlRefKey, leafRefFor, normalizeNavPath, slugifyFolderKey, isValidFolderKey, layoutTreeFromNavGroups, type CatalogLeaf, type SidebarLayoutDoc, type SidebarLayoutNode, type AppliedNavGroup, type AppliedNavItem, } from './apply-sidebar-layout';
66
- export { SidebarLayoutManager, type SidebarLayoutManagerProps, } from './sidebar-layout-manager';
67
- export * from './org-runtime-context';
68
- export * from './provenance';
69
- export * from './business';
70
- export * from './primitives';
71
- export * from './org-runtime-provider';
72
- export * from './navigation-builder';
73
- export * from './i18n-provider';
74
- export * from './api-context';
75
- export * from './cache-coherence';
76
- export * from './use-addon-settings';
77
- export * from './use-addon-installed-probe';
78
- export * from './use-edge-device';
79
- export * from './use-print-document';
80
- export * from './print-document-button';
81
- export * from './use-org-document-templates';
82
- export * from './document-template-editor';
83
- export * from './metadata-cache';
84
- export { cacheScope, peekCacheScope, syncCacheScope, onCacheScopeChange, setCacheScopeLanguageProvider, setCacheScopeProvider, type CacheScopeParts, } from './cache-scope';
85
- export { RealtimeProvider, useRealtimeClient, useRealtimeDefault, useRealtime, useRealtimeStatus, useRealtimeInvalidate, useRealtimeTick, queryKeyMatchesEvent, type RealtimeContextValue, type RealtimeProviderProps, type UseRealtimeOptions, type UseRealtimeInvalidateOptions, type UseRealtimeTickOptions, } from './realtime-context';
86
- export { ADDON_MANIFEST_CHANGED_TYPE, wireHotSwapInvalidation, useManifestHotSwapSubscriber, type AddonManifestChangedMessage, type ManifestHotSwapClient, type WireHotSwapInvalidationOptions, } from './manifest-hotswap-subscriber';
87
- export { useHotSwapReload, applyHotSwapReload, withVersionParam, clearFederationContainer, shortenHash, type HotSwapReloadStrategy, type HotSwapReloadConfig, type HotSwapReloadAction, type HotSwapReloadDeps, type UseHotSwapReloadResult, } from './hotswap-reload-policy';
88
- export * from './dynamic-icon';
89
- export * from './icon-spec';
90
- export * from './icon-resolvers';
91
- export { FONT_AWESOME_ALIASES } from './icon-aliases';
92
- export type { ColumnFilterConfig, FilterOption as DynamicColumnFilterOption, GetDynamicColumns, RowActionPredicate, DynamicIconComponent, } from './dynamic-columns-shim';
93
- export { defaultGetDynamicColumns, makeDefaultGetDynamicColumns, relationKeyFor, resolveAvatarSrc, resolveImageSrc, resolveMissingActorLabel, isSystemActorColumn, resolveActorDisplayName, resolveRelationLabel, type DynamicColumnsHelpers, } from './dynamic-columns';
94
- export { humanizeToken, localizeFieldLabel, translateMetadataLabel } from './dynamic-columns-helpers';
95
- export { ChipsCell, MeterCell, SwatchCell, chipItems, validSwatches } from './rich-cells';
96
- export type { ChipItem, ChipsCellProps, MeterCellProps } from './rich-cells';
97
- export type { MetadataTranslator } from './dynamic-columns-helpers';
98
- export { UrlChip, FileChip, ImageThumbnail, MediaValue, RichText, linkifyText, classifyUrl, isImageUrl, isFileUrl, ensureHref, smartUrlLabel, fileNameFromUrl, splitTrailingPunct, type UrlKind, type LinkifyOptions, } from './rich-url';
99
- export { ImageStack, OptionBadge, statusColorFor, useIsDarkTheme, } from './display-value';
100
- export { CollectionCell, formatScalar, prettifyKey, countLabel, type CollectionCellProps, type Translate as CollectionCellTranslate, } from './collection-cell';
101
- export { NIL_UUID, isNilUuid, normalizeNilUuid } from './nil-uuid';
102
- export { DynamicRecordDialog, ViewValue } from './dialogs/dynamic-record';
103
- export { normalizeRefFieldsForSubmit } from './dialogs/normalize-submit';
104
- export type { DynamicRecordDialogProps, FieldDef, FieldOption, GetImageUrl } from './dialogs/dynamic-record';
105
- export { CreateRecordDialog } from './dialogs/create-record-dialog';
106
- export { EntitySelect } from './entity-select';
107
- export type { EntitySelectProps, EntitySelectOption } from './entity-select';
108
- export { RecordPicker, useRecordSearch, useLatestSearch, RECORD_PICKER_Z_INDEX } from './record-picker';
109
- export type { RecordPickerProps, RecordPickerItemState, RecordPickerVariant, RecordPickerTrigger, UseRecordSearchOptions, UseRecordSearchResult, } from './record-picker';
110
- export { RecordPickerAction, PickerCreateItem, JOINED_TRIGGER_CLASS, hasRecordPickerAction, requestRecordCreate, requestRecordEdit, recordLabel, withSearchPrefill, } from './record-picker-actions';
111
- export type { RecordPickerActionProps, RecordCreateRequest, RecordEditRequest } from './record-picker-actions';
112
- export { useRecordPickerDialog } from './record-picker-dialog';
113
- export type { UseRecordPickerDialogOptions, UseRecordPickerDialogResult } from './record-picker-dialog';
114
- export { OptionLead, OptionThumb } from './record-picker-option';
115
- export { OptionDisplayRow, OptionDisplayValue, getOptionDisplay, hasOptionDisplays, formatTrailingValue, formatRelativeDate, toneVariant, } from './option-display';
116
- export type { OptionDisplayData, OptionTrailingItem, OptionBadgeItem, OptionDisplayTone, OptionDisplayRowProps } from './option-display';
117
- export { ViewRecordDialog } from './dialogs/view-record-dialog';
118
- export type { ModelKey, ModelSchema, CreateResult, RecordDialogProps, CreateRecordDialogProps, ViewRecordDialogProps, } from './dialogs/types';
119
- export { ExportDialog } from './dialogs/export';
120
- export { ImportDialog } from './dialogs/import';
121
- export { DynamicCRUDPage, type DynamicCRUDPageProps, type DynamicCRUDPageStrings, type DynamicCRUDPageClasses, } from './dynamic-crud-page';
122
- export { DynamicRelation, type DynamicRelationProps, type DynamicRelationStrings, type DynamicRelationKind, buildRelationFilterParams, buildCreatePayload, deriveRelationFormFields, relationRowKey, } from './dynamic-relation';
123
- export { DynamicRelations, resolveParentId, buildRelationFilters, isEmbedded, type DynamicRelationsProps, } from './dynamic-relations';
124
- export { registerModelExtension, getModelExtension, clearModelExtensions, type ModelExtension, type ModelExtensionProps, } from './model-extension-registry';
125
- export { registerFieldWidget, getFieldWidget, listFieldWidgets, clearFieldWidgets, useFieldWidgetRegistryVersion, type FieldWidgetComponent, type FieldWidgetProps, } from './field-widget-registry';
126
- export { registerAgentResultRenderer, resolveAgentResultRenderer, listAgentResultRenderers, clearAgentResultRenderers, useAgentResultRegistryVersion, AgentResultView, type AgentResult, type AgentResultRenderer, type AgentResultRendererOptions, type AgentResultRendererProps, type AgentResultViewProps, } from './agent-result-registry';
127
- export { isColumnVisibleInTable, isColumnVisibleInModal, isColumnVisibleInLineSubtable, AUDIT_SUBTABLE_COLUMN_KEYS, getSearchableColumnKeys, } from './column-visibility';
128
- export { batchGet, loadQueryPart, nameBatchTokens, narrowInToken, optionsBatchToken, optionsModelFromUrl, rememberInRows, invalidateQueryBatchData, resetQueryBatchCache, clearQueryBatchCaches, splitInToken, tokenForGet, type InListToken, type NarrowedIn, type QueryPart, } from './query-batch';
129
- export { useOptionsResolver, invalidateOptionsCache, projectOption, type ResolvedOption, type OptionsMeta, type UseOptionsResolverArgs, type UseOptionsResolverResult, } from './use-options-resolver';
130
- export { useResolveOptionIds, OPTION_IDS_CHUNK, type OptionIdResolution, type UseResolveOptionIdsArgs, type UseResolveOptionIdsResult, } from './use-option-ids';
131
- export { DELETED_RECORD_LABEL } from './dynamic-select-field';
132
- export { setOrgConfigBridge, getOrgConfigBridge, resolveValidatorToken, type OrgConfigBridge, } from './use-org-config-bridge';
133
- export { registerValidator, getDependsOn, resolveDependsValue, getOptionsConfig, resolveOptionsSource, getVisibleWhen, evaluateVisibleWhen, ATTRIBUTE_CLASSES_KEY, scopeValueFromFilterToken, buildListScopeValues, evaluateVisibleWhenForListScope, applyLineItemRowFormulas, computeLineItemTotals, toNumber, } from './dynamic-form-schema';
134
- export { BranchCreateGateProvider, useBranchCreateGate, type BranchCreateGateApi, } from './branch-create-gate';
135
- export { ActivityValueRenderer, type ActivityValueRendererProps, } from './activity-value-renderer';
136
- export { ActivityDiff, type ActivityEvent, type ActivityDiffProps, } from './activity-diff';
137
- export { AuditInfo, readAuditMeta, resolveAuditActor, SYSTEM_ACTOR_ID, type AuditInfoProps, type AuditActor, } from './audit-info';
138
- export { RecordHistory, type RecordHistoryProps, } from './record-history';
139
- export { ActivityTimeline, type ActivityTimelineProps, } from './activity-timeline';
140
- export { DashboardGrid, normalizeGroups, } from './dashboard-grid';
141
- export { DashboardEmptyMockup } from './dashboard-empty-mockup';
142
- export type { WidgetKind, WidgetSize, WidgetFormat, WidgetAccent, WidgetAggregate, WidgetWhereOp, DashboardWidgetQuery, DashboardWidgetCompare, DashboardWidgetSpec, WidgetSeriesPoint, WidgetData, DashboardWidgetGroup, LoadWidgetData, DashboardGridProps, DashboardGridStrings, } from './dashboard-types';
143
- export { StatWidget, ListWidget, ProgressWidget, type WidgetRenderProps, } from './widgets/renderers';
144
- export { BarWidget, LineWidget, AreaWidget, PieWidget, DonutWidget, preloadWidgetCharts, } from './widgets/lazy-charts';
145
- export { WidgetRenderer, WidgetSkeleton, SIZE_SPAN, SIZE_CLASS, type WidgetRendererProps, } from './widgets/widget-renderer';
146
- export { WidgetCard, DeltaChip, WidgetEmpty, WidgetError, type WidgetCardProps, } from './widgets/widget-card';
147
- export { formatWidgetValue, formatAxisTick, formatDelta, accentClasses, paletteColor, CHART_PALETTE, type AccentClasses, type WidgetFormatCtx, } from './widgets/widget-format';
1
+ export * from './types.js';
2
+ export * from './table-virtualization.js';
3
+ export { LicenseGate, LicenseExpiryBanner, LicenseStatusBadge, isLicenseOperable, isLicenseBlocking, isLicenseReadOnly, isPresetEntitled, isTrialExpired, deriveLicenseView, isLicenseCloned, sellerContactLine, CLONE_NOTICE, LICENSE_MESSAGES, registerLicenseMessages, type LicenseGateProps, type LicenseExpiryBannerProps, type LicenseStatusBadgeProps, type LicenseState, type LicenseStatus, type LicenseSeller, type LicenseOnExpiry, type LicenseBranding, type LicenseView, type LicenseCondition, type LicenseSeverity, type LicenseLang, } from './license/index.js';
4
+ export * from './options-context.js';
5
+ export { extractServerError, extractFieldErrors, localizeFieldIssue, localizeFieldErrorMap, toastServerError, toastServerSuccess, type ExtractedError, type Translate, type FieldIssue, } from './server-error.js';
6
+ export { parseRuleString, fieldValidationOf, checkValue, validateValues, bagHasErrors, exemptUnchangedRuleIssues, type ValidationSpec, } from './validator.js';
7
+ export { VALIDATION_CATALOGS, validationCatalog, validationMessageKey } from './validation-catalog.js';
8
+ export { labelForValidationPath, labelsForValidationFields, formatFieldErrorsDescription, clearFieldErrorTree, lineItemErrorsFor, } from './field-validation-ui.js';
9
+ export * from './dynamic-table.js';
10
+ export { DynamicKanban, type DynamicKanbanProps, deriveStages, groupByStage, isTransitionAllowed, applyOptimisticMove, applyStageOverrides, laneDeltasFromOverrides, selectCardColumns, isCardOverdue, refLaneSource, withGroupBy, withRefLanes, visibleCardFields, isEmptyCardValue, nextLaneCoordinates, UNASSIGNED_LANE, } from './dynamic-kanban.js';
11
+ export { PortalDragOverlay, type PortalDragOverlayProps } from './portal-drag-overlay.js';
12
+ export { useStageAutomations, StageAutomationsButton, isTagColumn, automationFieldOptions, groupAutomationsByStage, activeAutomationCount, type StageAutomation, type StageAutomationAction, type StageAutomationActionType, type NewStageAutomation, type UseStageAutomationsResult, type StageAutomationsButtonProps, } from './stage-automations.js';
13
+ export { useCustomStages, splitCustomStages, mergeLaneStages, resolveSmartLanes, smartLaneParams, cardMatchesStageFilters, customStageFilterFields, isCustomStageDraftValid, slugifyStageKey, emptyCustomStageFilter, AddStageColumn, CustomStageLaneMenu, CustomStageDialog, CustomStageDeleteDialog, StageConditionBuilder, StageConfigDialog, stageFilterOpSymbol, SmartLane, CUSTOM_STAGE_COLORS, CUSTOM_STAGE_FILTER_OPS, type CustomStage, type NewCustomStage, type CustomStageType, type CustomStageFilter, type CustomStageFilterOp, type UseCustomStagesResult, type StageConfigTarget, type StageConfigKind, type StageConditionBuilderProps, type StageConfigDialogProps, } from './custom-stages.js';
14
+ export { useStageLayout, type StageLayout, type UseStageLayoutResult, } from './stage-layout.js';
15
+ export { useStageOverrides, type StageOverridePatch, type UseStageOverridesResult, } from './stage-overrides.js';
16
+ export { DynamicView, resolveViewRenderer, resolveViewKind, readViewFromSearch, resolveActiveView, type DynamicViewProps, } from './dynamic-view.js';
17
+ export { useDynamicFilters, type UseDynamicFiltersOptions, type UseDynamicFiltersResult, } from './use-dynamic-filters.js';
18
+ export { useDebouncedValue, SEARCH_DEBOUNCE_MS } from './use-debounced-value.js';
19
+ export { useOptimisticMutation, type UseOptimisticMutationOptions, type UseOptimisticMutationResult, } from './use-optimistic-mutation.js';
20
+ export { useFlipAnimation, type UseFlipAnimationOptions } from './use-flip-animation.js';
21
+ export { usePersistedQuery, createPersistedSnapshot, type UsePersistedQueryOptions, type PersistedSnapshot, type PersistedSnapshotOptions, type PersistedEntry, } from './use-persisted-query.js';
22
+ export { motionDuration, motionEasing, prefersReducedMotion, MOTION_DEFAULTS, type MotionDuration, type MotionEasing, } from './motion.js';
23
+ export { useResource, useMutation, type ResourceState, type MutationState, } from './use-resource.js';
24
+ export * from './dynamic-form.js';
25
+ export { FilePickButton, type FilePickButtonProps, } from './file-pick-button.js';
26
+ export * from './barcode-scanner.js';
27
+ export * from './form-layout.js';
28
+ export * from './form-layout-ui.js';
29
+ export { SetupFlow, SetupFormStep, RecordsTable, HealthCard, StepStatusBadge, AddonConfigSurface, ConnectorBlocks, type ConnectorBlocksProps, type ConnectorFormBlock, type BlockResult, type SetupFlowProps, type SetupCustomStepProps, type SetupFormStepProps, type RecordsTableProps, type HealthCardProps, type StepStatusBadgeProps, type AddonConfigSurfaceProps, type AddonConfigAddon, type AddonConfigNotifier, type AddonSettingDef, type ConnectorEntry, type ConnectorCredentialField, type ConnectorFormLayout, } from './setup/index.js';
30
+ export type * from './setup/types.js';
31
+ export { FieldGrid, FieldCell, FieldLabel } from './field-grid.js';
32
+ export { ActionModalDispatcher, FEDERATED_ACTION_MODAL_TIMEOUT_MS, resolveFieldDefault, type ActionModalProps, type FieldDefaultContext, } from './action-modal-dispatcher.js';
33
+ export { todayInZone, isTodayToken } from './calendar-date.js';
34
+ export { setFederatedActionLoader, type FederatedActionLoader } from './federated-action-loader.js';
35
+ export { ModelActionToolbar, useModelActions, type ModelActionToolbarProps, type ActionPlacement, } from './model-action-toolbar.js';
36
+ export { resolveListPrimaryAction, actionReplacesCreate, type ListPrimaryActionInput, type ListPrimaryActionResult, type ListActionRef, type CreateMode, } from './list-primary-action.js';
37
+ export { emitRecordMutation, emitRecordMutationSettled, subscribeRecordMutations, RECORD_MUTATION_EVENT, RECORD_MUTATION_SETTLE_DELAYS, type RecordMutationKind, type RecordMutationDetail, } from './record-mutation-events.js';
38
+ export { DocumentFormDialog, resolveDocumentForms, scopeDocumentFormsToFilter, delegatedCreate, withoutDelegatedTypes, type DelegatedCreate, type DocumentFormDialogProps, } from './document-form-dialog.js';
39
+ export { modelFromNavUrl, capabilityForNavItem, isNavItemAllowed, useNavItemVisible, type NavLeafLike, } from './nav-permissions.js';
40
+ export { CfdiStampPanel, CfdiStampResultDialog, extractStampResult, type CfdiStampResult, type CfdiStampPanelProps, type CfdiStampResultDialogProps, } from './cfdi-stamp-panel.js';
41
+ export { useRecordMutationTick } from './use-record-mutation-tick.js';
42
+ export * from './addon-loader.js';
43
+ export { AddonPageLoader, AddonPageSkeleton, type AddonPageLoaderProps, } from './addon-page-loader.js';
44
+ export { AddonPageHost, createPageChromeStore, usePageChromeState, useHostContext, useHostApi, useAddonNavigate, useAddonLocation, useAddonSearchParams, useBreadcrumbs, usePageChrome, useIsInAddonPage, resolveAddonPath, addonSubpath, type AddonPageHostProps, type AddonPageHostValue, type AddonPageLocation, type AddonNavigateOptions, type PageChromeState, type PageChromeStore, } from './addon-page-host.js';
45
+ export { createHostApi, toHostApiError, sanitizeRemoteHeaders, PROTECTED_HOST_HEADERS, normalizeTimeout, DEFAULT_MAX_TIMEOUT_MS, HOST_FRESHNESS_KEY, type CreateHostApiOptions } from './host-api.js';
46
+ export { HostApiProvider, type HostApiProviderProps } from './host-api-context.js';
47
+ export { createHostApiClient, type HostApiClient, type HostApiClientOptions, type HostRequestConfig, type AxiosLikeClient, } from './host-api-client.js';
48
+ export { useHostApiClient } from './use-host-api-client.js';
49
+ export { FederatedErrorBoundary, type FederatedErrorBoundaryProps, type FederatedErrorFallbackProps, type FederatedErrorInfo, type FederatedErrorStrings, } from './federated-error-boundary.js';
50
+ export * from './views/index.js';
51
+ export { PURGE_ADDON_MESSAGE, isAddonFrontendCacheUrl, purgeAddonFrontendCache, resolvePluginExports, composeDisposables, runDispose, type PurgeAddonMessage, type AddonRegisterModule, type ResolvedPlugin, } from './addon-fiber.js';
52
+ export { AddonLayoutProvider, useAddonLayout, useAddonLayoutControl, useDeclareAddonLayout, type AddonLayout, type AddonLayoutProviderProps, } from './addon-layout-context.js';
53
+ export * from './slot.js';
54
+ export * from './slots/index.js';
55
+ export * from './capability-gate.js';
56
+ export { PermissionsProvider, useCan, usePermissionsActive, useRoleGate, isActionAllowedForRoles, makeCan, capabilityForActionKey, modelCapability, gateTableMetadata, resolveRowActions, type CanFn, type RoleGate, type PermissionsProviderProps, } from './permissions-context.js';
57
+ export { ApprovalPinDialog, approvalErrorMessage, type ApprovalPinDialogProps, type ApprovalPinSubmit, } from './approval-pin-dialog.js';
58
+ export { ApprovalGateProvider, useApprovalGate, approvalCapability, approvalRequiredInfo, approvalGateAvailable, APPROVAL_PARKED_EVENT, APPROVAL_DECIDED_EVENT, type ApprovalGateValue, type ApprovalGrant, type ApprovalRequiredInfo, type RequestApprovalOptions, } from './approval-gate.js';
59
+ export { useSupervisor, withApproval, type SupervisedAction, type SupervisorAuthorization, type AuthorizeOptions, } from './supervised-action.js';
60
+ export { ReasonPromptDialog, useReasonPrompt, reasonRequiredInfo, DEFAULT_REASON_MIN, type ReasonPromptDialogProps, type ReasonPromptApi, type ReasonRequiredInfo, type RunWithReasonOptions, } from './reason-prompt.js';
61
+ export { useDynamicRowActions, type UseDynamicRowActionsParams, type DynamicRowActions, } from './dynamic-row-actions.js';
62
+ export { resolveRequiresAddon, setAddonInstallHandler, getAddonInstallHandler, requiresAddonName, useRequiresAddonLabel, RequiresAddonLock, RequiresAddonDialog, type RequiresAddon, type RequiresAddonDialogProps, } from './requires-addon.js';
63
+ export { ColorPickerField, DEFAULT_ROLE_COLOR, normalizeHex } from './color-picker-field.js';
64
+ export { PermissionsManager, moduleActionCapability, moduleCapabilities, grantedCountForModule, capabilitySetsEqual, defaultActionIcon, suggestRoleIcon, normalizeCatalogGroups, flattenGroups, filterModuleGroups, groupModuleActions, type PermissionsManagerProps, type PermissionsCatalog, type GroupedPermissionsCatalog, type FlatPermissionsCatalog, type ModuleGroup, type PermissionModuleDef, type PermissionActionDef, type GeneralPermissionDef, type RoleDef, type RoleInput, } from './permissions-manager.js';
65
+ export { applySidebarLayout, collectFolderKeys, folderAccessCapability, coreRefKey, addonModelRefKey, addonUrlRefKey, urlRefKey, leafRefFor, normalizeNavPath, slugifyFolderKey, isValidFolderKey, layoutTreeFromNavGroups, type CatalogLeaf, type SidebarLayoutDoc, type SidebarLayoutNode, type AppliedNavGroup, type AppliedNavItem, } from './apply-sidebar-layout.js';
66
+ export { SidebarLayoutManager, type SidebarLayoutManagerProps, } from './sidebar-layout-manager.js';
67
+ export * from './org-runtime-context.js';
68
+ export * from './provenance.js';
69
+ export * from './business/index.js';
70
+ export * from './primitives/index.js';
71
+ export * from './org-runtime-provider.js';
72
+ export * from './navigation-builder.js';
73
+ export * from './i18n-provider.js';
74
+ export * from './api-context.js';
75
+ export * from './cache-coherence.js';
76
+ export * from './use-addon-settings.js';
77
+ export * from './use-addon-installed-probe.js';
78
+ export * from './use-edge-device.js';
79
+ export * from './use-print-document.js';
80
+ export * from './print-document-button.js';
81
+ export * from './use-org-document-templates.js';
82
+ export * from './document-template-editor.js';
83
+ export * from './metadata-cache.js';
84
+ export { cacheScope, peekCacheScope, syncCacheScope, onCacheScopeChange, setCacheScopeLanguageProvider, setCacheScopeProvider, type CacheScopeParts, } from './cache-scope.js';
85
+ export { RealtimeProvider, useRealtimeClient, useRealtimeDefault, useRealtime, useRealtimeStatus, useRealtimeInvalidate, useRealtimeTick, queryKeyMatchesEvent, type RealtimeContextValue, type RealtimeProviderProps, type UseRealtimeOptions, type UseRealtimeInvalidateOptions, type UseRealtimeTickOptions, } from './realtime-context.js';
86
+ export { ADDON_MANIFEST_CHANGED_TYPE, wireHotSwapInvalidation, useManifestHotSwapSubscriber, type AddonManifestChangedMessage, type ManifestHotSwapClient, type WireHotSwapInvalidationOptions, } from './manifest-hotswap-subscriber.js';
87
+ export { useHotSwapReload, applyHotSwapReload, withVersionParam, clearFederationContainer, shortenHash, type HotSwapReloadStrategy, type HotSwapReloadConfig, type HotSwapReloadAction, type HotSwapReloadDeps, type UseHotSwapReloadResult, } from './hotswap-reload-policy.js';
88
+ export * from './dynamic-icon.js';
89
+ export * from './icon-spec.js';
90
+ export * from './icon-resolvers.js';
91
+ export { FONT_AWESOME_ALIASES } from './icon-aliases.js';
92
+ export type { ColumnFilterConfig, FilterOption as DynamicColumnFilterOption, GetDynamicColumns, RowActionPredicate, DynamicIconComponent, } from './dynamic-columns-shim.js';
93
+ export { defaultGetDynamicColumns, makeDefaultGetDynamicColumns, relationKeyFor, resolveAvatarSrc, resolveImageSrc, resolveMissingActorLabel, isSystemActorColumn, resolveActorDisplayName, resolveRelationLabel, type DynamicColumnsHelpers, } from './dynamic-columns.js';
94
+ export { humanizeToken, localizeFieldLabel, translateMetadataLabel } from './dynamic-columns-helpers.js';
95
+ export { ChipsCell, MeterCell, SwatchCell, chipItems, validSwatches } from './rich-cells.js';
96
+ export type { ChipItem, ChipsCellProps, MeterCellProps } from './rich-cells.js';
97
+ export type { MetadataTranslator } from './dynamic-columns-helpers.js';
98
+ export { UrlChip, FileChip, ImageThumbnail, MediaValue, RichText, linkifyText, classifyUrl, isImageUrl, isFileUrl, ensureHref, smartUrlLabel, fileNameFromUrl, splitTrailingPunct, type UrlKind, type LinkifyOptions, } from './rich-url.js';
99
+ export { ImageStack, OptionBadge, statusColorFor, useIsDarkTheme, } from './display-value.js';
100
+ export { CollectionCell, formatScalar, prettifyKey, countLabel, type CollectionCellProps, type Translate as CollectionCellTranslate, } from './collection-cell.js';
101
+ export { NIL_UUID, isNilUuid, normalizeNilUuid } from './nil-uuid.js';
102
+ export { DynamicRecordDialog, ViewValue } from './dialogs/dynamic-record.js';
103
+ export { normalizeRefFieldsForSubmit } from './dialogs/normalize-submit.js';
104
+ export type { DynamicRecordDialogProps, FieldDef, FieldOption, GetImageUrl } from './dialogs/dynamic-record.js';
105
+ export { CreateRecordDialog } from './dialogs/create-record-dialog.js';
106
+ export { EntitySelect } from './entity-select.js';
107
+ export type { EntitySelectProps, EntitySelectOption } from './entity-select.js';
108
+ export { RecordPicker, useRecordSearch, useLatestSearch, RECORD_PICKER_Z_INDEX } from './record-picker.js';
109
+ export type { RecordPickerProps, RecordPickerItemState, RecordPickerVariant, RecordPickerTrigger, UseRecordSearchOptions, UseRecordSearchResult, } from './record-picker.js';
110
+ export { RecordPickerAction, PickerCreateItem, JOINED_TRIGGER_CLASS, hasRecordPickerAction, requestRecordCreate, requestRecordEdit, recordLabel, withSearchPrefill, } from './record-picker-actions.js';
111
+ export type { RecordPickerActionProps, RecordCreateRequest, RecordEditRequest } from './record-picker-actions.js';
112
+ export { useRecordPickerDialog } from './record-picker-dialog.js';
113
+ export type { UseRecordPickerDialogOptions, UseRecordPickerDialogResult } from './record-picker-dialog.js';
114
+ export { OptionLead, OptionThumb } from './record-picker-option.js';
115
+ export { OptionDisplayRow, OptionDisplayValue, getOptionDisplay, hasOptionDisplays, formatTrailingValue, formatRelativeDate, toneVariant, } from './option-display.js';
116
+ export type { OptionDisplayData, OptionTrailingItem, OptionBadgeItem, OptionDisplayTone, OptionDisplayRowProps } from './option-display.js';
117
+ export { ViewRecordDialog } from './dialogs/view-record-dialog.js';
118
+ export type { ModelKey, ModelSchema, CreateResult, RecordDialogProps, CreateRecordDialogProps, ViewRecordDialogProps, } from './dialogs/types.js';
119
+ export { ExportDialog } from './dialogs/export.js';
120
+ export { ImportDialog } from './dialogs/import.js';
121
+ export { DynamicCRUDPage, type DynamicCRUDPageProps, type DynamicCRUDPageStrings, type DynamicCRUDPageClasses, } from './dynamic-crud-page.js';
122
+ export { DynamicRelation, type DynamicRelationProps, type DynamicRelationStrings, type DynamicRelationKind, buildRelationFilterParams, buildCreatePayload, deriveRelationFormFields, relationRowKey, } from './dynamic-relation.js';
123
+ export { DynamicRelations, resolveParentId, buildRelationFilters, isEmbedded, type DynamicRelationsProps, } from './dynamic-relations.js';
124
+ export { registerModelExtension, getModelExtension, clearModelExtensions, type ModelExtension, type ModelExtensionProps, } from './model-extension-registry.js';
125
+ export { registerFieldWidget, getFieldWidget, listFieldWidgets, clearFieldWidgets, useFieldWidgetRegistryVersion, type FieldWidgetComponent, type FieldWidgetProps, } from './field-widget-registry.js';
126
+ export { registerAgentResultRenderer, resolveAgentResultRenderer, listAgentResultRenderers, clearAgentResultRenderers, useAgentResultRegistryVersion, AgentResultView, type AgentResult, type AgentResultRenderer, type AgentResultRendererOptions, type AgentResultRendererProps, type AgentResultViewProps, } from './agent-result-registry.js';
127
+ export { isColumnVisibleInTable, isColumnVisibleInModal, isColumnVisibleInLineSubtable, AUDIT_SUBTABLE_COLUMN_KEYS, getSearchableColumnKeys, } from './column-visibility.js';
128
+ export { batchGet, loadQueryPart, nameBatchTokens, narrowInToken, optionsBatchToken, optionsModelFromUrl, rememberInRows, invalidateQueryBatchData, resetQueryBatchCache, clearQueryBatchCaches, splitInToken, tokenForGet, type InListToken, type NarrowedIn, type QueryPart, } from './query-batch.js';
129
+ export { useOptionsResolver, invalidateOptionsCache, projectOption, type ResolvedOption, type OptionsMeta, type UseOptionsResolverArgs, type UseOptionsResolverResult, } from './use-options-resolver.js';
130
+ export { useResolveOptionIds, OPTION_IDS_CHUNK, type OptionIdResolution, type UseResolveOptionIdsArgs, type UseResolveOptionIdsResult, } from './use-option-ids.js';
131
+ export { DELETED_RECORD_LABEL } from './dynamic-select-field.js';
132
+ export { setOrgConfigBridge, getOrgConfigBridge, resolveValidatorToken, type OrgConfigBridge, } from './use-org-config-bridge.js';
133
+ export { registerValidator, getDependsOn, resolveDependsValue, getOptionsConfig, resolveOptionsSource, getVisibleWhen, evaluateVisibleWhen, ATTRIBUTE_CLASSES_KEY, scopeValueFromFilterToken, buildListScopeValues, evaluateVisibleWhenForListScope, applyLineItemRowFormulas, computeLineItemTotals, toNumber, } from './dynamic-form-schema.js';
134
+ export { BranchCreateGateProvider, useBranchCreateGate, type BranchCreateGateApi, } from './branch-create-gate.js';
135
+ export { ActivityValueRenderer, type ActivityValueRendererProps, } from './activity-value-renderer.js';
136
+ export { ActivityDiff, type ActivityEvent, type ActivityDiffProps, } from './activity-diff.js';
137
+ export { AuditInfo, readAuditMeta, resolveAuditActor, SYSTEM_ACTOR_ID, type AuditInfoProps, type AuditActor, } from './audit-info.js';
138
+ export { RecordHistory, type RecordHistoryProps, } from './record-history.js';
139
+ export { ActivityTimeline, type ActivityTimelineProps, } from './activity-timeline.js';
140
+ export { DashboardGrid, normalizeGroups, } from './dashboard-grid.js';
141
+ export { DashboardEmptyMockup } from './dashboard-empty-mockup.js';
142
+ export type { WidgetKind, WidgetSize, WidgetFormat, WidgetAccent, WidgetAggregate, WidgetWhereOp, DashboardWidgetQuery, DashboardWidgetCompare, DashboardWidgetSpec, WidgetSeriesPoint, WidgetData, DashboardWidgetGroup, LoadWidgetData, DashboardGridProps, DashboardGridStrings, } from './dashboard-types.js';
143
+ export { StatWidget, ListWidget, ProgressWidget, type WidgetRenderProps, } from './widgets/renderers.js';
144
+ export { BarWidget, LineWidget, AreaWidget, PieWidget, DonutWidget, preloadWidgetCharts, } from './widgets/lazy-charts.js';
145
+ export { WidgetRenderer, WidgetSkeleton, SIZE_SPAN, SIZE_CLASS, type WidgetRendererProps, } from './widgets/widget-renderer.js';
146
+ export { WidgetCard, DeltaChip, WidgetEmpty, WidgetError, type WidgetCardProps, } from './widgets/widget-card.js';
147
+ export { formatWidgetValue, formatAxisTick, formatDelta, accentClasses, paletteColor, CHART_PALETTE, type AccentClasses, type WidgetFormatCtx, } from './widgets/widget-format.js';
148
148
  export { Sparkline, type SparklineProps } from '@asteby/metacore-charts';
149
- export { AssistInterview, AssistCardView } from './assist-interview';
150
- export type { AssistSession, AssistTurn, AssistQuestion, AssistCard, AssistProgressStep } from './assist-interview';
151
- export { useAttributeClasses, resolveAttributeClasses, resetAttributeClassCache, type AttributeClass, type AttributeClassSection, } from './attribute-classes';
152
- export * from './document';
153
- export { getOptionFilter, applyOptionFilter, optionPassesRule } from './option-filter';
154
- export type { OptionFilter, OptionFilterRule } from './option-filter';
155
- export { InstalledAddonsProvider, useAddonInstalled, useCapabilityProvided, useInstalledAddons, type InstalledAddonsValue, } from './installed-addons-context';
156
- export { RecordPrefillBar, type RecordPrefillBarProps } from './record-prefill-bar';
157
- export { RowActionsMenu, RowActionMenuItem, RowActionsModelContext, type RowActionsMenuProps, } from './row-actions-menu';
158
- export { classifyActionPriority, isActionProviderActive, isRecordActionProviderActive, resolveRecordActions, splitActionsByPriority, useRecordActions, type ActionPriority, type PrioritizableAction, type RecordActionContext, type RecordActionContribution, type ResolvedRecordAction, type SplitActions, } from './record-actions';
159
- export * from './capability-providers';
160
- export { BulkImageImportButton, type BulkImageImportButtonProps, } from './bulk-image-dialog';
161
- export type { BulkImageTarget } from './bulk-image-target';
162
- export type { BatchLog as BulkImageBatchLog } from './bulk-image-import';
163
- export * from './attention';
164
- export * from './view-system';
165
- export { useModelLabels, resolveModelLabels, defaultSingular } from './model-labels';
166
- export type { ModelLabels, ModelLabelInput, ModelLabelT } from './model-labels';
149
+ export { AssistInterview, AssistCardView } from './assist-interview.js';
150
+ export type { AssistSession, AssistTurn, AssistQuestion, AssistCard, AssistProgressStep } from './assist-interview.js';
151
+ export { useAttributeClasses, resolveAttributeClasses, resetAttributeClassCache, type AttributeClass, type AttributeClassSection, } from './attribute-classes.js';
152
+ export * from './document/index.js';
153
+ export { getOptionFilter, applyOptionFilter, optionPassesRule } from './option-filter.js';
154
+ export type { OptionFilter, OptionFilterRule } from './option-filter.js';
155
+ export { InstalledAddonsProvider, useAddonInstalled, useCapabilityProvided, useInstalledAddons, type InstalledAddonsValue, } from './installed-addons-context.js';
156
+ export { RecordPrefillBar, type RecordPrefillBarProps } from './record-prefill-bar.js';
157
+ export { RowActionsMenu, RowActionMenuItem, RowActionsModelContext, type RowActionsMenuProps, } from './row-actions-menu.js';
158
+ export { classifyActionPriority, isActionProviderActive, isRecordActionProviderActive, resolveRecordActions, splitActionsByPriority, useRecordActions, type ActionPriority, type PrioritizableAction, type RecordActionContext, type RecordActionContribution, type ResolvedRecordAction, type SplitActions, } from './record-actions.js';
159
+ export * from './capability-providers/index.js';
160
+ export { BulkImageImportButton, type BulkImageImportButtonProps, } from './bulk-image-dialog.js';
161
+ export type { BulkImageTarget } from './bulk-image-target.js';
162
+ export type { BatchLog as BulkImageBatchLog } from './bulk-image-import.js';
163
+ export * from './attention/index.js';
164
+ export * from './view-system/index.js';
165
+ export { useModelLabels, resolveModelLabels, defaultSingular } from './model-labels.js';
166
+ export type { ModelLabels, ModelLabelInput, ModelLabelT } from './model-labels.js';
167
167
  //# sourceMappingURL=index.d.ts.map