@declarion/react 0.142.0 → 0.147.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 (459) hide show
  1. package/dist-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
  2. package/dist-lib/api/access-expiry.js +1 -2
  3. package/dist-lib/api/agents.js +1 -2
  4. package/dist-lib/api/audience.js +1 -2
  5. package/dist-lib/api/auth-redirect.js +1 -2
  6. package/dist-lib/api/auth.js +1 -2
  7. package/dist-lib/api/batch.js +1 -2
  8. package/dist-lib/api/client.js +27 -28
  9. package/dist-lib/api/data.js +23 -24
  10. package/dist-lib/api/entities.js +36 -37
  11. package/dist-lib/api/events.js +6 -7
  12. package/dist-lib/api/fileReferences.js +1 -2
  13. package/dist-lib/api/params.js +1 -2
  14. package/dist-lib/api/properties.js +1 -2
  15. package/dist-lib/api/request-bounds.js +1 -2
  16. package/dist-lib/api/schema.js +5 -6
  17. package/dist-lib/api/session-renewal.js +6 -7
  18. package/dist-lib/api/status.js +1 -2
  19. package/dist-lib/app.js +154 -155
  20. package/dist-lib/components/actions/ActionButton.js +32 -33
  21. package/dist-lib/components/actions/ActionDialog.js +85 -86
  22. package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
  23. package/dist-lib/components/actions/ActionResultDialog.js +1 -2
  24. package/dist-lib/components/actions/ActionRunner.js +96 -97
  25. package/dist-lib/components/actions/ObjectActionBar.js +49 -50
  26. package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
  27. package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
  28. package/dist-lib/components/actions/RowActionsKebab.js +27 -28
  29. package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
  30. package/dist-lib/components/agents/AgentChatPanel.js +1 -2
  31. package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
  32. package/dist-lib/components/agents/AgentElicitForm.js +13 -14
  33. package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
  34. package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
  35. package/dist-lib/components/agents/AgentPicker.js +1 -2
  36. package/dist-lib/components/agents/ChatAttachments.js +22 -23
  37. package/dist-lib/components/agents/transcript-runs.js +1 -2
  38. package/dist-lib/components/chrome/AssociationTabs.js +44 -45
  39. package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
  40. package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
  41. package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
  42. package/dist-lib/components/chrome/PageHeader.js +12 -13
  43. package/dist-lib/components/chrome/PageShell.js +1 -2
  44. package/dist-lib/components/chrome/RecordHeader.js +1 -2
  45. package/dist-lib/components/chrome/headerActionZone.js +0 -1
  46. package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
  47. package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
  48. package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
  49. package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
  50. package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
  51. package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
  52. package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
  53. package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
  54. package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
  55. package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
  56. package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
  57. package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
  58. package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
  59. package/dist-lib/components/detail-layout/FieldRow.js +11 -12
  60. package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
  61. package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
  62. package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
  63. package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
  64. package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
  65. package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
  66. package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
  67. package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
  68. package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
  69. package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
  70. package/dist-lib/components/detail-layout/blockMeta.js +1 -2
  71. package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
  72. package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
  73. package/dist-lib/components/detail-layout/visibility.js +1 -2
  74. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
  75. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
  76. package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
  77. package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
  78. package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
  79. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
  80. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
  81. package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
  82. package/dist-lib/components/fields/BoolField.js +1 -2
  83. package/dist-lib/components/fields/EmailField.js +5 -6
  84. package/dist-lib/components/fields/EnumField.js +7 -8
  85. package/dist-lib/components/fields/FileReferenceField.js +18 -19
  86. package/dist-lib/components/fields/IntArrayField.js +11 -12
  87. package/dist-lib/components/fields/JsonEditor.js +1 -2
  88. package/dist-lib/components/fields/JsonField.js +1 -2
  89. package/dist-lib/components/fields/MultilangArrayField.js +22 -23
  90. package/dist-lib/components/fields/MultilangField.js +13 -14
  91. package/dist-lib/components/fields/MultilangTextField.js +13 -14
  92. package/dist-lib/components/fields/NumberField.js +5 -6
  93. package/dist-lib/components/fields/PasswordField.js +1 -2
  94. package/dist-lib/components/fields/PhoneField.js +24 -25
  95. package/dist-lib/components/fields/RefCombobox.js +42 -43
  96. package/dist-lib/components/fields/RefField.js +14 -15
  97. package/dist-lib/components/fields/RichTextField.js +29 -30
  98. package/dist-lib/components/fields/SecretField.js +1 -2
  99. package/dist-lib/components/fields/StringArrayField.js +29 -30
  100. package/dist-lib/components/fields/StringField.js +12 -13
  101. package/dist-lib/components/fields/StructureField.js +60 -61
  102. package/dist-lib/components/fields/TextField.js +18 -19
  103. package/dist-lib/components/fields/TimestampField.js +17 -18
  104. package/dist-lib/components/fields/UrlField.js +5 -6
  105. package/dist-lib/components/fields/cells/factories/badge.js +5 -6
  106. package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
  107. package/dist-lib/components/fields/cells/factories/code.js +1 -2
  108. package/dist-lib/components/fields/cells/factories/date.js +1 -2
  109. package/dist-lib/components/fields/cells/factories/email.js +1 -2
  110. package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
  111. package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
  112. package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
  113. package/dist-lib/components/fields/cells/factories/json.js +1 -2
  114. package/dist-lib/components/fields/cells/factories/link.js +10 -11
  115. package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
  116. package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
  117. package/dist-lib/components/fields/cells/factories/money.js +1 -2
  118. package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
  119. package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
  120. package/dist-lib/components/fields/cells/factories/number.js +1 -2
  121. package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
  122. package/dist-lib/components/fields/cells/factories/phone.js +1 -2
  123. package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
  124. package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
  125. package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
  126. package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
  127. package/dist-lib/components/fields/cells/factories/text.js +1 -2
  128. package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
  129. package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
  130. package/dist-lib/components/fields/cells/factories/url.js +13 -14
  131. package/dist-lib/components/fields/cells/registry.js +1 -2
  132. package/dist-lib/components/fields/index.js +19 -20
  133. package/dist-lib/components/fields/langMap.js +1 -2
  134. package/dist-lib/components/fields/secretValue.js +1 -2
  135. package/dist-lib/components/file-widgets/CircleImage.js +1 -2
  136. package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
  137. package/dist-lib/components/file-widgets/FileList.js +35 -36
  138. package/dist-lib/components/file-widgets/Grid.js +119 -120
  139. package/dist-lib/components/file-widgets/GridLazy.js +1 -2
  140. package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
  141. package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
  142. package/dist-lib/components/file-widgets/SquareImage.js +1 -2
  143. package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
  144. package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
  145. package/dist-lib/components/file-widgets/WideBanner.js +1 -2
  146. package/dist-lib/components/file-widgets/builtins.js +1 -2
  147. package/dist-lib/components/file-widgets/cropper.js +1 -2
  148. package/dist-lib/components/file-widgets/draft-scope.js +1 -2
  149. package/dist-lib/components/file-widgets/helpers.js +1 -2
  150. package/dist-lib/components/file-widgets/host.js +33 -34
  151. package/dist-lib/components/file-widgets/payload.js +1 -2
  152. package/dist-lib/components/file-widgets/registry.js +1 -2
  153. package/dist-lib/components/file-widgets/upload.js +41 -42
  154. package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
  155. package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
  156. package/dist-lib/components/file-widgets/value.js +1 -2
  157. package/dist-lib/components/filters/FilterChips.js +15 -16
  158. package/dist-lib/components/filters/FilterConditionValue.js +15 -16
  159. package/dist-lib/components/filters/FilterDrawer.js +141 -142
  160. package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
  161. package/dist-lib/components/filters/filter-op-label.js +1 -2
  162. package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
  163. package/dist-lib/components/layout/CommandPalette.js +1 -2
  164. package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
  165. package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
  166. package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
  167. package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
  168. package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
  169. package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
  170. package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
  171. package/dist-lib/components/layout/Layout.js +132 -140
  172. package/dist-lib/components/layout/Rail.js +11 -12
  173. package/dist-lib/components/layout/Sidebar.js +60 -61
  174. package/dist-lib/components/layout/TabStrip.js +66 -67
  175. package/dist-lib/components/layout/TenantChip.js +21 -22
  176. package/dist-lib/components/layout/TopBar.js +89 -90
  177. package/dist-lib/components/layout/tab-close.js +1 -2
  178. package/dist-lib/components/list/ColumnPicker.js +35 -36
  179. package/dist-lib/components/list/InlineEditCell.js +22 -23
  180. package/dist-lib/components/list/PeekFieldCell.js +7 -8
  181. package/dist-lib/components/list/QuickPeek.js +29 -30
  182. package/dist-lib/components/list/ViewSwitcher.js +44 -45
  183. package/dist-lib/components/list/peekDraftStore.js +1 -2
  184. package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
  185. package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
  186. package/dist-lib/components/pages/DocumentsMenu.js +53 -54
  187. package/dist-lib/components/pages/ExportMenu.js +37 -38
  188. package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
  189. package/dist-lib/components/pages/NoScreensPage.js +1 -2
  190. package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
  191. package/dist-lib/components/pages/NotFoundPage.js +1 -2
  192. package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
  193. package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
  194. package/dist-lib/components/pages/RecordPanels.js +1 -2
  195. package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
  196. package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
  197. package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
  198. package/dist-lib/components/pages/SmartDetailPage.js +1 -2
  199. package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
  200. package/dist-lib/components/pages/SmartListPage.js +1 -2
  201. package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
  202. package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
  203. package/dist-lib/components/pages/auth/AuthShell.js +14 -15
  204. package/dist-lib/components/pages/auth/CodeInput.js +0 -1
  205. package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
  206. package/dist-lib/components/pages/auth/Forgot.js +1 -2
  207. package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
  208. package/dist-lib/components/pages/auth/Reset.js +1 -2
  209. package/dist-lib/components/pages/auth/SignIn.js +44 -45
  210. package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
  211. package/dist-lib/components/pages/auth/SignUp.js +1 -2
  212. package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
  213. package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
  214. package/dist-lib/components/pages/auth/TwoFA.js +1 -2
  215. package/dist-lib/components/pages/auth/icons.js +1 -2
  216. package/dist-lib/components/pages/exportRequest.js +1 -2
  217. package/dist-lib/components/pages/list/DataCell.js +1 -2
  218. package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
  219. package/dist-lib/components/pages/list/ListCardRow.js +53 -54
  220. package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
  221. package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
  222. package/dist-lib/components/pages/list/ListFooter.js +17 -18
  223. package/dist-lib/components/pages/list/ListHeader.js +31 -32
  224. package/dist-lib/components/pages/list/ListNoRows.js +32 -33
  225. package/dist-lib/components/pages/list/ListTable.js +29 -30
  226. package/dist-lib/components/pages/list/ListTableRow.js +1 -2
  227. package/dist-lib/components/pages/list/ListToolbar.js +58 -59
  228. package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
  229. package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
  230. package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
  231. package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
  232. package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
  233. package/dist-lib/components/pages/list/cardProjection.js +16 -17
  234. package/dist-lib/components/pages/list/column-sizing.js +1 -2
  235. package/dist-lib/components/pages/list/columns.js +74 -75
  236. package/dist-lib/components/pages/list/filter-meta.js +1 -2
  237. package/dist-lib/components/pages/list/page-size.js +1 -2
  238. package/dist-lib/components/pages/list/sortable-header.js +1 -2
  239. package/dist-lib/components/pages/list/table-features.js +1 -2
  240. package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
  241. package/dist-lib/components/pages/list/useActiveView.js +1 -2
  242. package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
  243. package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
  244. package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
  245. package/dist-lib/components/pages/list/useListQuery.js +1 -2
  246. package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
  247. package/dist-lib/components/pages/list/useListSelection.js +16 -17
  248. package/dist-lib/components/pages/list/useListSort.js +1 -2
  249. package/dist-lib/components/pages/list/useListViews.js +31 -32
  250. package/dist-lib/components/pages/list/useRowMenu.js +20 -21
  251. package/dist-lib/components/pages/list/visible-filters.js +1 -2
  252. package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
  253. package/dist-lib/components/pages/profile/Preferences.js +1 -2
  254. package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
  255. package/dist-lib/components/pages/profile/Profile.js +1 -2
  256. package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
  257. package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
  258. package/dist-lib/components/params/ParamsBlock.js +30 -31
  259. package/dist-lib/components/params/param-editors.js +58 -59
  260. package/dist-lib/components/primitives/Avatar.js +1 -2
  261. package/dist-lib/components/primitives/BoolToggle.js +1 -2
  262. package/dist-lib/components/primitives/BrandGlyph.js +1 -2
  263. package/dist-lib/components/primitives/BrandLogo.js +1 -2
  264. package/dist-lib/components/primitives/Btn.js +1 -2
  265. package/dist-lib/components/primitives/Check.js +1 -2
  266. package/dist-lib/components/primitives/Chip.js +1 -2
  267. package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
  268. package/dist-lib/components/primitives/Dropdown.js +2 -3
  269. package/dist-lib/components/primitives/Fields.js +128 -129
  270. package/dist-lib/components/primitives/HoverCard.js +2 -3
  271. package/dist-lib/components/primitives/IconBtn.js +1 -2
  272. package/dist-lib/components/primitives/Icons.js +1 -2
  273. package/dist-lib/components/primitives/Kbd.js +1 -2
  274. package/dist-lib/components/primitives/MenuItem.js +1 -2
  275. package/dist-lib/components/primitives/Pill.js +1 -2
  276. package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
  277. package/dist-lib/components/primitives/RetryButton.js +5 -6
  278. package/dist-lib/components/primitives/RowField.js +1 -2
  279. package/dist-lib/components/primitives/SectionCard.js +1 -2
  280. package/dist-lib/components/primitives/Spinner.js +1 -2
  281. package/dist-lib/components/primitives/StatTile.js +1 -2
  282. package/dist-lib/components/primitives/Tooltip.js +1 -2
  283. package/dist-lib/components/primitives/dataTableStyles.js +1 -2
  284. package/dist-lib/components/shared/BlankScreen.js +1 -2
  285. package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
  286. package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
  287. package/dist-lib/components/shared/ConfirmDialog.js +7 -8
  288. package/dist-lib/components/shared/ConnectionNotice.js +1 -2
  289. package/dist-lib/components/shared/CopyButton.js +1 -2
  290. package/dist-lib/components/shared/DynamicIcon.js +1 -2
  291. package/dist-lib/components/shared/EmptyState.js +1 -2
  292. package/dist-lib/components/shared/ErrorBoundary.js +10 -11
  293. package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
  294. package/dist-lib/components/shared/LucideIcon.js +1 -2
  295. package/dist-lib/components/shared/Markdown.js +1 -2
  296. package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
  297. package/dist-lib/components/shared/ModalFrame.js +1 -2
  298. package/dist-lib/components/shared/RefreshControl.js +6 -7
  299. package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
  300. package/dist-lib/components/shared/StatusStepper.js +1 -2
  301. package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
  302. package/dist-lib/components/shared/useOwnRefresh.js +1 -2
  303. package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
  304. package/dist-lib/embed/EmbedContext.js +1 -2
  305. package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
  306. package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
  307. package/dist-lib/embed/EmbedLocationReporter.js +11 -12
  308. package/dist-lib/embed/EmbedResizeReporter.js +9 -10
  309. package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
  310. package/dist-lib/embed/embed-dirty.js +1 -2
  311. package/dist-lib/embed/embed-history.js +1 -2
  312. package/dist-lib/embed/embed-nav-guard.js +1 -2
  313. package/dist-lib/embed/file-src.js +12 -13
  314. package/dist-lib/embed/handshake.js +1 -2
  315. package/dist-lib/embed/params.js +1 -2
  316. package/dist-lib/embed/protocol.js +1 -2
  317. package/dist-lib/embed/screen-location.js +1 -2
  318. package/dist-lib/embed/theme.js +1 -2
  319. package/dist-lib/embed/token.js +1 -2
  320. package/dist-lib/embed/useEmbedNavigate.js +25 -26
  321. package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
  322. package/dist-lib/hooks/useActionData.js +1 -2
  323. package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
  324. package/dist-lib/hooks/useAgentConversation.js +122 -123
  325. package/dist-lib/hooks/useAggregate.js +1 -2
  326. package/dist-lib/hooks/useAllEntityData.js +9 -10
  327. package/dist-lib/hooks/useAssociatedData.js +1 -2
  328. package/dist-lib/hooks/useAuth.js +26 -27
  329. package/dist-lib/hooks/useBranding.js +1 -2
  330. package/dist-lib/hooks/useBrandingChrome.js +16 -17
  331. package/dist-lib/hooks/useChildrenData.js +4 -5
  332. package/dist-lib/hooks/useColumns.js +1 -2
  333. package/dist-lib/hooks/useConnectionNotice.js +16 -17
  334. package/dist-lib/hooks/useCurrentLocation.js +1 -2
  335. package/dist-lib/hooks/useCurrentScreen.js +1 -2
  336. package/dist-lib/hooks/useCursorEntityData.js +1 -2
  337. package/dist-lib/hooks/useDebounce.js +1 -2
  338. package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
  339. package/dist-lib/hooks/useDocumentTitle.js +5 -6
  340. package/dist-lib/hooks/useEntity.js +1 -2
  341. package/dist-lib/hooks/useEntityData.js +1 -2
  342. package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
  343. package/dist-lib/hooks/useFilters.js +5 -6
  344. package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
  345. package/dist-lib/hooks/useImpersonation.js +15 -16
  346. package/dist-lib/hooks/useIntentPrefetch.js +6 -7
  347. package/dist-lib/hooks/useJsonSnapshot.js +1 -2
  348. package/dist-lib/hooks/useLanguage.js +11 -12
  349. package/dist-lib/hooks/useLiveObject.js +6 -7
  350. package/dist-lib/hooks/useLongPress.js +1 -2
  351. package/dist-lib/hooks/useMutations.js +31 -32
  352. package/dist-lib/hooks/useObject.js +1 -2
  353. package/dist-lib/hooks/useObjectStatus.js +4 -5
  354. package/dist-lib/hooks/usePageState.js +9 -10
  355. package/dist-lib/hooks/usePageStateRuntime.js +16 -17
  356. package/dist-lib/hooks/usePageStateTtl.js +1 -2
  357. package/dist-lib/hooks/useParams.js +58 -59
  358. package/dist-lib/hooks/useProperties.js +5 -6
  359. package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
  360. package/dist-lib/hooks/useRefRecords.js +31 -32
  361. package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
  362. package/dist-lib/hooks/useResponsiveMode.js +1 -2
  363. package/dist-lib/hooks/useRowTenant.js +1 -2
  364. package/dist-lib/hooks/useSSE.js +100 -101
  365. package/dist-lib/hooks/useSchema.js +16 -17
  366. package/dist-lib/hooks/useScreen.js +1 -2
  367. package/dist-lib/hooks/useScreenBack.js +17 -18
  368. package/dist-lib/hooks/useScreenTab.js +1 -2
  369. package/dist-lib/hooks/useTabNavigate.js +25 -26
  370. package/dist-lib/hooks/useTabSearchMirror.js +6 -7
  371. package/dist-lib/hooks/useTabTitle.js +10 -11
  372. package/dist-lib/hooks/useText.js +6 -7
  373. package/dist-lib/hooks/useTimelineData.js +5 -6
  374. package/dist-lib/hooks/useUiPreferences.js +31 -32
  375. package/dist-lib/hooks/useUnsavedInput.js +1 -2
  376. package/dist-lib/hooks/useVersionWatcher.js +16 -17
  377. package/dist-lib/hooks/useViews.js +16 -17
  378. package/dist-lib/hooks/useWindowConversation.js +1 -2
  379. package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
  380. package/dist-lib/icons.d.ts +2 -4
  381. package/dist-lib/icons.js +5 -5
  382. package/dist-lib/index.d.ts +4 -272
  383. package/dist-lib/index.js +129 -129
  384. package/dist-lib/lib/action-dispatch.js +1 -2
  385. package/dist-lib/lib/actions.js +26 -27
  386. package/dist-lib/lib/anchor.js +1 -2
  387. package/dist-lib/lib/brand-tokens.js +1 -2
  388. package/dist-lib/lib/branding.js +1 -2
  389. package/dist-lib/lib/canonical-url.js +1 -2
  390. package/dist-lib/lib/capabilityPrefetch.js +1 -2
  391. package/dist-lib/lib/child-config.js +1 -2
  392. package/dist-lib/lib/children-validation.js +2 -3
  393. package/dist-lib/lib/date-text.js +1 -2
  394. package/dist-lib/lib/decimal-text.js +1 -2
  395. package/dist-lib/lib/display-value.js +1 -2
  396. package/dist-lib/lib/document-templates.js +1 -2
  397. package/dist-lib/lib/download.js +13 -14
  398. package/dist-lib/lib/evidence-verdict.js +1 -2
  399. package/dist-lib/lib/failure.js +4 -5
  400. package/dist-lib/lib/field-classification.js +1 -2
  401. package/dist-lib/lib/field-regions.js +1 -2
  402. package/dist-lib/lib/filter-evaluator.js +1 -2
  403. package/dist-lib/lib/filters.js +1 -2
  404. package/dist-lib/lib/format-count.js +1 -2
  405. package/dist-lib/lib/html-state.js +1 -2
  406. package/dist-lib/lib/language.js +1 -2
  407. package/dist-lib/lib/longPressGesture.js +0 -1
  408. package/dist-lib/lib/mass-edit.js +1 -2
  409. package/dist-lib/lib/money-text.js +1 -2
  410. package/dist-lib/lib/number-text.js +1 -2
  411. package/dist-lib/lib/page-inset.js +1 -2
  412. package/dist-lib/lib/phone.js +1 -2
  413. package/dist-lib/lib/profile.js +1 -2
  414. package/dist-lib/lib/query-retry.js +1 -2
  415. package/dist-lib/lib/quick-add.js +1 -2
  416. package/dist-lib/lib/read-display-state.js +1 -2
  417. package/dist-lib/lib/realtime-query-keys.js +2 -3
  418. package/dist-lib/lib/realtime-reconcile.js +32 -33
  419. package/dist-lib/lib/realtime-resync.js +40 -41
  420. package/dist-lib/lib/record-documents-key.js +1 -2
  421. package/dist-lib/lib/ref-choices.js +1 -2
  422. package/dist-lib/lib/refetch-when-idle.js +1 -2
  423. package/dist-lib/lib/rich-text.js +1 -2
  424. package/dist-lib/lib/role-label.js +1 -2
  425. package/dist-lib/lib/rowClickGesture.js +1 -2
  426. package/dist-lib/lib/safe-url.js +1 -2
  427. package/dist-lib/lib/schema-routing.js +1 -2
  428. package/dist-lib/lib/screen-back.js +1 -2
  429. package/dist-lib/lib/scroll-restoration.js +21 -22
  430. package/dist-lib/lib/shortcut.js +1 -2
  431. package/dist-lib/lib/size-value.js +1 -2
  432. package/dist-lib/lib/sort.js +1 -2
  433. package/dist-lib/lib/timestamp.js +1 -2
  434. package/dist-lib/lib/toast.js +1 -2
  435. package/dist-lib/lib/ui-actions.js +43 -44
  436. package/dist-lib/lib/utils.js +1 -2
  437. package/dist-lib/lib/variants.js +1 -2
  438. package/dist-lib/lib/versionTracker.js +26 -27
  439. package/dist-lib/lib/viewport-category.js +1 -2
  440. package/dist-lib/lib/window-election.js +1 -2
  441. package/dist-lib/stores/auth.js +32 -33
  442. package/dist-lib/stores/icon-registry.js +1 -2
  443. package/dist-lib/stores/list-layout.js +0 -1
  444. package/dist-lib/stores/page-state.js +1 -2
  445. package/dist-lib/stores/preferences.js +1 -2
  446. package/dist-lib/stores/realtime.js +1 -2
  447. package/dist-lib/stores/screen-registry.js +1 -2
  448. package/dist-lib/stores/tabs.js +1 -2
  449. package/dist-lib/test/seed-schema.js +4 -5
  450. package/dist-lib/testing.d.ts +2 -4
  451. package/dist-lib/testing.js +49 -50
  452. package/dist-lib/types/api.js +1 -2
  453. package/dist-lib/types/fieldType.js +1 -2
  454. package/dist-lib/types/ordmap.js +1 -2
  455. package/dist-lib/types/schema.js +1 -2
  456. package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
  457. package/dist-lib/vite/index.d.ts +0 -2
  458. package/dist-lib/vite/index.js +1 -2
  459. package/package.json +11 -11
@@ -1,18 +1,18 @@
1
- import { useText as e } from "../../hooks/useText.js";
2
- import { UploadError as t, discardFile as n, formatBytes as r, uploadCheckFailure as i, uploadFailure as a, uploadFile as o, validateClientSide as s } from "./upload.js";
3
- import { UploadFailureText as c } from "./UploadFailureText.js";
4
- import { downloadFileURL as l } from "./helpers.js";
5
- import { useDraftRegistration as u } from "./draft-scope.js";
1
+ import { UploadError as e, discardFile as t, formatBytes as n, uploadCheckFailure as r, uploadFailure as i, uploadFile as a, validateClientSide as o } from "./upload.js";
2
+ import { UploadFailureText as s } from "./UploadFailureText.js";
3
+ import { useText as c } from "../../hooks/useText.js";
4
+ import { useDraftRegistration as l } from "./draft-scope.js";
5
+ import { downloadFileURL as u } from "./helpers.js";
6
6
  import { useEmbedFileOpener as d } from "./useEmbedFileSrc.js";
7
7
  import { fileArrayFromValue as f } from "./value.js";
8
8
  import { useCallback as p, useEffect as m, useRef as h, useState as g } from "react";
9
9
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
10
- //#region src/components/file-widgets/FileList.tsx
10
+ // src/components/file-widgets/FileList.tsx
11
11
  function b(e) {
12
12
  return e ? (e.split("/")[1] ?? e).toUpperCase().slice(0, 6) : "";
13
13
  }
14
14
  function x(x) {
15
- let { field: S, fieldName: C, value: w, onChange: T, mode: E, disabled: D } = x, O = f(w), [k, A] = g([]), { register: j, unregister: M, isDraft: N } = u(), P = e(), F = e("errors"), I = h(O);
15
+ let { field: S, fieldName: C, value: w, onChange: T, mode: E, disabled: D } = x, O = f(w), [k, A] = g([]), { register: j, unregister: M, isDraft: N } = l(), P = c(), F = c("errors"), I = h(O);
16
16
  I.current = O;
17
17
  let L = h(null), R = h(/* @__PURE__ */ new Set()), z = h([]);
18
18
  z.current = k;
@@ -20,30 +20,30 @@ function x(x) {
20
20
  m(() => () => {
21
21
  z.current.forEach((e) => e.abort());
22
22
  }, []);
23
- let V = (S.accepts ?? []).join(","), H = E === "display", U = p(async (e) => {
24
- let r = s(e, S.accepts, S.max_size_bytes), c = `row-${Math.random().toString(36).slice(2)}-${Date.now()}`, l = new AbortController();
25
- if (r) A((t) => [...t, {
23
+ let V = (S.accepts ?? []).join(","), H = E === "display", U = p(async (n) => {
24
+ let s = o(n, S.accepts, S.max_size_bytes), c = `row-${Math.random().toString(36).slice(2)}-${Date.now()}`, l = new AbortController();
25
+ if (s) A((e) => [...e, {
26
26
  localId: c,
27
- filename: e.name,
27
+ filename: n.name,
28
28
  progress: null,
29
- error: i(P, F, r),
29
+ error: r(P, F, s),
30
30
  abort: () => {}
31
31
  }]);
32
32
  else {
33
- A((t) => [...t, {
33
+ A((e) => [...e, {
34
34
  localId: c,
35
- filename: e.name,
35
+ filename: n.name,
36
36
  progress: {
37
37
  loaded: 0,
38
- total: e.size,
38
+ total: n.size,
39
39
  pct: 0
40
40
  },
41
41
  error: null,
42
42
  abort: () => l.abort()
43
43
  }]);
44
44
  try {
45
- let t = await o({
46
- file: e,
45
+ let e = await a({
46
+ file: n,
47
47
  entityCode: x.entityCode,
48
48
  fieldCode: C,
49
49
  signal: l.signal,
@@ -53,28 +53,28 @@ function x(x) {
53
53
  } : t))
54
54
  });
55
55
  if (R.current.delete(c)) {
56
- n(t.id).catch(() => {}), M(t.id);
56
+ t(e.id).catch(() => {}), M(e.id);
57
57
  return;
58
58
  }
59
- j(t.id, () => n(t.id));
59
+ j(e.id, () => t(e.id));
60
60
  let r = {
61
- id: t.id,
62
- filename: t.filename,
63
- content_type: t.content_type,
64
- size_bytes: t.size_bytes,
65
- sha256: t.sha256,
66
- width: t.width,
67
- height: t.height,
68
- url: t.url,
69
- metadata: t.metadata
61
+ id: e.id,
62
+ filename: e.filename,
63
+ content_type: e.content_type,
64
+ size_bytes: e.size_bytes,
65
+ sha256: e.sha256,
66
+ width: e.width,
67
+ height: e.height,
68
+ url: e.url,
69
+ metadata: e.metadata
70
70
  }, i = [...I.current, r];
71
71
  I.current = i, T?.(i), A((e) => e.filter((e) => e.localId !== c));
72
- } catch (e) {
73
- if (e instanceof t && e.code === "ABORTED") {
72
+ } catch (t) {
73
+ if (t instanceof e && t.code === "ABORTED") {
74
74
  A((e) => e.filter((e) => e.localId !== c));
75
75
  return;
76
76
  }
77
- let n = a(P, F, e);
77
+ let n = i(P, F, t);
78
78
  A((e) => e.map((e) => e.localId === c ? {
79
79
  ...e,
80
80
  error: n,
@@ -101,14 +101,14 @@ function x(x) {
101
101
  let t = e.target.files;
102
102
  e.target.value = "", t && t.length > 0 && W(t);
103
103
  }, [W]), q = p((e) => {
104
- N(e) && (n(e).catch(() => {}), M(e)), T?.(O.filter((t) => t.id !== e));
104
+ N(e) && (t(e).catch(() => {}), M(e)), T?.(O.filter((t) => t.id !== e));
105
105
  }, [
106
106
  N,
107
107
  O,
108
108
  T,
109
109
  M
110
110
  ]), J = p((e) => {
111
- B(e.id, "download", l(e));
111
+ B(e.id, "download", u(e));
112
112
  }, [B]);
113
113
  return /* @__PURE__ */ y("div", {
114
114
  "data-testid": `file-widget-${C}`,
@@ -137,7 +137,7 @@ function x(x) {
137
137
  }),
138
138
  /* @__PURE__ */ v("span", {
139
139
  className: "flex-none text-xs text-muted-foreground",
140
- children: r(e.size_bytes, P.language)
140
+ children: n(e.size_bytes, P.language)
141
141
  }),
142
142
  /* @__PURE__ */ v("button", {
143
143
  type: "button",
@@ -171,7 +171,7 @@ function x(x) {
171
171
  e.error ? /* @__PURE__ */ v("span", {
172
172
  role: "alert",
173
173
  className: "text-xs text-destructive",
174
- children: /* @__PURE__ */ v(c, { failure: e.error })
174
+ children: /* @__PURE__ */ v(s, { failure: e.error })
175
175
  }) : /* @__PURE__ */ y("span", {
176
176
  className: "text-xs text-muted-foreground",
177
177
  role: "progressbar",
@@ -209,5 +209,4 @@ function x(x) {
209
209
  })] })]
210
210
  });
211
211
  }
212
- //#endregion
213
212
  export { x as FileList };
@@ -1,82 +1,82 @@
1
- import { pluralText as e } from "../../lib/language.js";
2
- import { useText as t } from "../../hooks/useText.js";
3
- import { UploadError as n, discardFile as r, formatBytes as i, uploadCheckFailure as a, uploadFailure as o, uploadFile as s, validateClientSide as c } from "./upload.js";
4
- import { UploadFailureText as l } from "./UploadFailureText.js";
5
- import { fileFieldLabel as u, preferredListThumbnail as d, previewFileURL as f } from "./helpers.js";
6
- import { useDraftRegistration as p } from "./draft-scope.js";
1
+ import { UploadError as e, discardFile as t, formatBytes as n, uploadCheckFailure as r, uploadFailure as i, uploadFile as a, validateClientSide as o } from "./upload.js";
2
+ import { UploadFailureText as s } from "./UploadFailureText.js";
3
+ import { useText as c } from "../../hooks/useText.js";
4
+ import { pluralText as l } from "../../lib/language.js";
5
+ import { useDraftRegistration as u } from "./draft-scope.js";
6
+ import { fileFieldLabel as d, preferredListThumbnail as f, previewFileURL as p } from "./helpers.js";
7
7
  import { useEmbedFileSrc as m } from "./useEmbedFileSrc.js";
8
8
  import { fileArrayFromValue as h } from "./value.js";
9
9
  import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
10
10
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
11
- import { DndContext as w, PointerSensor as ee, closestCenter as te, useSensor as ne, useSensors as re } from "@dnd-kit/core";
12
- import { SortableContext as T, arrayMove as E, rectSortingStrategy as D, useSortable as O } from "@dnd-kit/sortable";
13
- import { CSS as k } from "@dnd-kit/utilities";
14
- //#region src/components/file-widgets/Grid.tsx
15
- function A(i) {
16
- let { field: l, fieldName: d, value: f, onChange: m, mode: x, disabled: O } = i, k = h(f), [A, M] = b([]), [N, P] = b(/* @__PURE__ */ new Set()), [F, I] = b(null), { register: L, unregister: R, isDraft: z } = p(), B = t(), V = t("errors"), H = y(/* @__PURE__ */ new Set()), U = y([]);
17
- U.current = A;
18
- let W = y(k);
19
- W.current = k, _(() => () => {
11
+ import { DndContext as w, PointerSensor as T, closestCenter as ee, useSensor as te, useSensors as ne } from "@dnd-kit/core";
12
+ import { SortableContext as re, arrayMove as ie, rectSortingStrategy as E, useSortable as D } from "@dnd-kit/sortable";
13
+ import { CSS as O } from "@dnd-kit/utilities";
14
+ // src/components/file-widgets/Grid.tsx
15
+ function k(n) {
16
+ let { field: s, fieldName: f, value: p, onChange: m, mode: x, disabled: D } = n, O = h(p), [k, M] = b([]), [N, P] = b(/* @__PURE__ */ new Set()), [F, I] = b(null), { register: L, unregister: R, isDraft: z } = u(), B = c(), V = c("errors"), H = y(/* @__PURE__ */ new Set()), U = y([]);
17
+ U.current = k;
18
+ let W = y(O);
19
+ W.current = O, _(() => () => {
20
20
  U.current.forEach((e) => e.abort());
21
21
  }, []);
22
- let oe = re(ne(ee, { activationConstraint: { distance: 5 } })), se = (l.accepts ?? ["image/*"]).join(","), ce = l.display?.reorderable !== !1, le = l.display?.listable_thumbnail, G = g(async (e) => {
23
- let t = c(e, l.accepts, l.max_size_bytes), u = `tile-${Math.random().toString(36).slice(2)}-${Date.now()}`, f = new AbortController();
24
- if (t) M((n) => [...n, {
22
+ let oe = ne(te(T, { activationConstraint: { distance: 5 } })), se = (s.accepts ?? ["image/*"]).join(","), ce = s.display?.reorderable !== !1, le = s.display?.listable_thumbnail, G = g(async (c) => {
23
+ let l = o(c, s.accepts, s.max_size_bytes), u = `tile-${Math.random().toString(36).slice(2)}-${Date.now()}`, d = new AbortController();
24
+ if (l) M((e) => [...e, {
25
25
  localId: u,
26
- filename: e.name,
26
+ filename: c.name,
27
27
  progress: null,
28
- error: a(B, V, t),
28
+ error: r(B, V, l),
29
29
  abort: () => {}
30
30
  }]);
31
31
  else {
32
- M((t) => [...t, {
32
+ M((e) => [...e, {
33
33
  localId: u,
34
- filename: e.name,
34
+ filename: c.name,
35
35
  progress: {
36
36
  loaded: 0,
37
- total: e.size,
37
+ total: c.size,
38
38
  pct: 0
39
39
  },
40
40
  error: null,
41
- abort: () => f.abort()
41
+ abort: () => d.abort()
42
42
  }]);
43
43
  try {
44
- let t = await s({
45
- file: e,
46
- entityCode: i.entityCode,
47
- fieldCode: d,
48
- signal: f.signal,
44
+ let e = await a({
45
+ file: c,
46
+ entityCode: n.entityCode,
47
+ fieldCode: f,
48
+ signal: d.signal,
49
49
  onProgress: (e) => M((t) => t.map((t) => t.localId === u ? {
50
50
  ...t,
51
51
  progress: e
52
52
  } : t))
53
53
  });
54
54
  if (H.current.delete(u)) {
55
- r(t.id).catch(() => {}), R(t.id);
55
+ t(e.id).catch(() => {}), R(e.id);
56
56
  return;
57
57
  }
58
- L(t.id, () => r(t.id));
59
- let n = {
60
- id: t.id,
61
- filename: t.filename,
62
- content_type: t.content_type,
63
- size_bytes: t.size_bytes,
64
- sha256: t.sha256,
65
- width: t.width,
66
- height: t.height,
67
- url: t.url,
68
- metadata: t.metadata
69
- }, a = [...W.current, n];
70
- W.current = a, m?.(a), M((e) => e.filter((e) => e.localId !== u));
71
- } catch (e) {
72
- if (e instanceof n && e.code === "ABORTED") {
58
+ L(e.id, () => t(e.id));
59
+ let r = {
60
+ id: e.id,
61
+ filename: e.filename,
62
+ content_type: e.content_type,
63
+ size_bytes: e.size_bytes,
64
+ sha256: e.sha256,
65
+ width: e.width,
66
+ height: e.height,
67
+ url: e.url,
68
+ metadata: e.metadata
69
+ }, i = [...W.current, r];
70
+ W.current = i, m?.(i), M((e) => e.filter((e) => e.localId !== u));
71
+ } catch (t) {
72
+ if (t instanceof e && t.code === "ABORTED") {
73
73
  M((e) => e.filter((e) => e.localId !== u));
74
74
  return;
75
75
  }
76
- let t = o(B, V, e);
76
+ let n = i(B, V, t);
77
77
  M((e) => e.map((e) => e.localId === u ? {
78
78
  ...e,
79
- error: t,
79
+ error: n,
80
80
  progress: null,
81
81
  abort: () => {}
82
82
  } : e));
@@ -85,62 +85,62 @@ function A(i) {
85
85
  }, [
86
86
  V,
87
87
  B,
88
- l.accepts,
89
- l.max_size_bytes,
90
- d,
88
+ s.accepts,
89
+ s.max_size_bytes,
90
+ f,
91
91
  m,
92
- i.entityCode,
92
+ n.entityCode,
93
93
  L,
94
94
  R
95
95
  ]), K = g((e) => {
96
96
  Array.from(e).forEach((e) => void G(e));
97
97
  }, [G]), q = y(null), J = g(() => {
98
- O || q.current?.click();
99
- }, [O]), ue = g((e) => {
100
- O || (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
101
- }, [O]), de = g((e) => {
102
- if (O) return;
98
+ D || q.current?.click();
99
+ }, [D]), ue = g((e) => {
100
+ D || (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
101
+ }, [D]), de = g((e) => {
102
+ if (D) return;
103
103
  e.preventDefault();
104
104
  let t = e.dataTransfer.files;
105
105
  t && t.length > 0 && K(t);
106
- }, [O, K]), fe = g((e) => {
106
+ }, [D, K]), fe = g((e) => {
107
107
  let t = e.target.files;
108
108
  e.target.value = "", t && t.length > 0 && K(t);
109
109
  }, [K]), pe = g((e) => {
110
- z(e) && (r(e).catch(() => {}), R(e));
111
- let t = k.filter((t) => t.id !== e);
112
- m?.(t), P((t) => {
110
+ z(e) && (t(e).catch(() => {}), R(e));
111
+ let n = O.filter((t) => t.id !== e);
112
+ m?.(n), P((t) => {
113
113
  let n = new Set(t);
114
114
  return n.delete(e), n;
115
115
  });
116
116
  }, [
117
117
  z,
118
- k,
118
+ O,
119
119
  m,
120
120
  R
121
121
  ]), me = g(() => {
122
122
  N.size !== 0 && (Array.from(N).forEach((e) => {
123
- z(e) && (r(e).catch(() => {}), R(e));
124
- }), m?.(k.filter((e) => !N.has(e.id))), P(/* @__PURE__ */ new Set()));
123
+ z(e) && (t(e).catch(() => {}), R(e));
124
+ }), m?.(O.filter((e) => !N.has(e.id))), P(/* @__PURE__ */ new Set()));
125
125
  }, [
126
126
  z,
127
- k,
127
+ O,
128
128
  N,
129
129
  m,
130
130
  R
131
131
  ]), he = g((e) => {
132
132
  let { active: t, over: n } = e;
133
133
  if (!n || t.id === n.id) return;
134
- let r = k.findIndex((e) => e.id === t.id), i = k.findIndex((e) => e.id === n.id);
135
- r < 0 || i < 0 || m?.(E(k, r, i));
136
- }, [k, m]), ge = g((e) => {
134
+ let r = O.findIndex((e) => e.id === t.id), i = O.findIndex((e) => e.id === n.id);
135
+ r < 0 || i < 0 || m?.(ie(O, r, i));
136
+ }, [O, m]), ge = g((e) => {
137
137
  P((t) => {
138
138
  let n = new Set(t);
139
139
  return n.has(e) ? n.delete(e) : n.add(e), n;
140
140
  });
141
- }, []), Y = F == null ? null : k[F], X = g(() => {
142
- I((e) => e == null ? e : Math.min(k.length - 1, e + 1));
143
- }, [k.length]), Z = g(() => {
141
+ }, []), Y = F == null ? null : O[F], X = g(() => {
142
+ I((e) => e == null ? e : Math.min(O.length - 1, e + 1));
143
+ }, [O.length]), Z = g(() => {
144
144
  I((e) => e == null ? e : Math.max(0, e - 1));
145
145
  }, []), Q = g(() => I(null), []);
146
146
  _(() => {
@@ -156,10 +156,10 @@ function A(i) {
156
156
  Z
157
157
  ]);
158
158
  let _e = g((e) => {
159
- O || (e.key === "Enter" || e.key === " ") && e.target === e.currentTarget && (e.preventDefault(), J());
160
- }, [O, J]), $ = x === "display", ve = v(() => k.map((e) => e.id), [k]);
159
+ D || (e.key === "Enter" || e.key === " ") && e.target === e.currentTarget && (e.preventDefault(), J());
160
+ }, [D, J]), $ = x === "display", ve = v(() => O.map((e) => e.id), [O]);
161
161
  return /* @__PURE__ */ C("div", {
162
- "data-testid": `file-widget-${d}`,
162
+ "data-testid": `file-widget-${f}`,
163
163
  className: "flex flex-col gap-2",
164
164
  children: [
165
165
  !$ && N.size > 0 && /* @__PURE__ */ C("div", {
@@ -169,7 +169,7 @@ function A(i) {
169
169
  children: [
170
170
  /* @__PURE__ */ S("span", {
171
171
  className: "text-foreground",
172
- children: e(B, "file.grid.selected", N.size, {
172
+ children: l(B, "file.grid.selected", N.size, {
173
173
  one: "{count} selected",
174
174
  other: "{count} selected"
175
175
  })
@@ -191,47 +191,47 @@ function A(i) {
191
191
  }),
192
192
  /* @__PURE__ */ S(w, {
193
193
  sensors: oe,
194
- collisionDetection: te,
194
+ collisionDetection: ee,
195
195
  onDragEnd: he,
196
- children: /* @__PURE__ */ S(T, {
196
+ children: /* @__PURE__ */ S(re, {
197
197
  items: ve,
198
- strategy: D,
198
+ strategy: E,
199
199
  children: /* @__PURE__ */ C("div", {
200
200
  className: $ ? "grid grid-cols-[repeat(auto-fill,minmax(140px,1fr))] gap-3" : "grid grid-cols-[repeat(auto-fill,minmax(140px,1fr))] gap-3 rounded-md border border-dashed border-border bg-surface p-3 outline-none focus-visible:outline-2 focus-visible:outline-accent",
201
201
  role: "grid",
202
- "aria-label": u(B, l, d),
203
- tabIndex: $ || O ? -1 : 0,
202
+ "aria-label": d(B, s, f),
203
+ tabIndex: $ || D ? -1 : 0,
204
204
  onDragOver: ue,
205
205
  onDrop: de,
206
206
  onKeyDown: _e,
207
207
  "data-testid": "grid-container",
208
208
  children: [
209
- k.map((e, t) => /* @__PURE__ */ S(j, {
209
+ O.map((e, t) => /* @__PURE__ */ S(A, {
210
210
  file: e,
211
211
  selected: N.has(e.id),
212
- disabled: O || $,
212
+ disabled: D || $,
213
213
  reorderable: ce && !$,
214
214
  preferredThumbnail: le,
215
215
  onSelect: () => ge(e.id),
216
216
  onRemove: () => pe(e.id),
217
217
  onPreview: () => I(t)
218
218
  }, e.id)),
219
- A.map((e) => /* @__PURE__ */ S(ie, {
219
+ k.map((e) => /* @__PURE__ */ S(j, {
220
220
  tile: e,
221
221
  onCancel: () => {
222
222
  e.abort(), H.current.add(e.localId), M((t) => t.filter((t) => t.localId !== e.localId));
223
223
  },
224
224
  onDismiss: () => M((t) => t.filter((t) => t.localId !== e.localId))
225
225
  }, e.localId)),
226
- k.length === 0 && A.length === 0 && ($ ? /* @__PURE__ */ S("div", {
226
+ O.length === 0 && k.length === 0 && ($ ? /* @__PURE__ */ S("div", {
227
227
  className: "col-span-full text-sm text-muted-foreground",
228
228
  "data-testid": "grid-empty",
229
- children: B(l.display?.placeholder) || B("file.list.empty", "No files")
229
+ children: B(s.display?.placeholder) || B("file.list.empty", "No files")
230
230
  }) : /* @__PURE__ */ S("div", {
231
231
  className: "col-span-full flex h-24 cursor-pointer items-center justify-center text-sm text-muted-foreground",
232
232
  onClick: J,
233
233
  "data-testid": "grid-empty",
234
- children: B(l.display?.placeholder) || B("file.grid.empty", "Drop files here or click to browse")
234
+ children: B(s.display?.placeholder) || B("file.grid.empty", "Drop files here or click to browse")
235
235
  }))
236
236
  ]
237
237
  })
@@ -244,12 +244,12 @@ function A(i) {
244
244
  multiple: !0,
245
245
  onChange: fe,
246
246
  style: { display: "none" },
247
- "data-testid": `file-input-${d}`
247
+ "data-testid": `file-input-${f}`
248
248
  }),
249
249
  Y && /* @__PURE__ */ S(ae, {
250
250
  file: Y,
251
251
  hasPrev: F > 0,
252
- hasNext: F < k.length - 1,
252
+ hasNext: F < O.length - 1,
253
253
  onPrev: Z,
254
254
  onNext: X,
255
255
  onClose: Q
@@ -257,42 +257,42 @@ function A(i) {
257
257
  ]
258
258
  });
259
259
  }
260
- function j({ file: e, selected: n, disabled: r, reorderable: i, preferredThumbnail: a, onSelect: o, onRemove: s, onPreview: c }) {
261
- let { attributes: l, listeners: u, setNodeRef: p, transform: h, transition: g, isDragging: _ } = O({
260
+ function A({ file: e, selected: t, disabled: n, reorderable: r, preferredThumbnail: i, onSelect: a, onRemove: o, onPreview: s }) {
261
+ let { attributes: l, listeners: u, setNodeRef: d, transform: h, transition: g, isDragging: _ } = D({
262
262
  id: e.id,
263
- disabled: !i
264
- }), v = t(), y = {
265
- transform: k.Transform.toString(h),
263
+ disabled: !r
264
+ }), v = c(), y = {
265
+ transform: O.Transform.toString(h),
266
266
  transition: g,
267
267
  opacity: _ ? .5 : 1
268
- }, b = d(e, a), w = m(b?.id, "preview", b && f(b));
268
+ }, b = f(e, i), w = m(b?.id, "preview", b && p(b));
269
269
  return /* @__PURE__ */ C("div", {
270
- ref: p,
270
+ ref: d,
271
271
  style: y,
272
- className: `group relative aspect-square overflow-hidden rounded-md border ${n ? "border-accent" : "border-border"} bg-surface-2`,
272
+ className: `group relative aspect-square overflow-hidden rounded-md border ${t ? "border-accent" : "border-border"} bg-surface-2`,
273
273
  "data-testid": `grid-tile-${e.id}`,
274
- "data-selected": n || void 0,
274
+ "data-selected": t || void 0,
275
275
  children: [w ? /* @__PURE__ */ S("img", {
276
276
  src: w,
277
277
  alt: e.filename,
278
278
  className: "h-full w-full cursor-pointer object-cover",
279
279
  loading: "lazy",
280
- onClick: c
280
+ onClick: s
281
281
  }) : /* @__PURE__ */ S("div", {
282
282
  className: "flex h-full w-full cursor-pointer items-center justify-center bg-surface-3 text-xs text-muted-foreground",
283
- onClick: c,
283
+ onClick: s,
284
284
  children: e.filename
285
- }), !r && /* @__PURE__ */ C(x, { children: [
285
+ }), !n && /* @__PURE__ */ C(x, { children: [
286
286
  /* @__PURE__ */ S("input", {
287
287
  type: "checkbox",
288
288
  className: "absolute left-1 top-1 h-4 w-4 cursor-pointer",
289
- checked: n,
290
- onChange: o,
289
+ checked: t,
290
+ onChange: a,
291
291
  "aria-label": v("file.grid.select", "Select {filename}", { filename: e.filename }),
292
292
  "data-testid": `select-${e.id}`,
293
293
  onClick: (e) => e.stopPropagation()
294
294
  }),
295
- i && /* @__PURE__ */ S("button", {
295
+ r && /* @__PURE__ */ S("button", {
296
296
  type: "button",
297
297
  className: "absolute right-1 top-1 cursor-grab rounded-sm border border-border bg-card px-1 text-xs",
298
298
  "aria-label": v("file.grid.reorder", "Drag to reorder {filename}", { filename: e.filename }),
@@ -306,12 +306,12 @@ function j({ file: e, selected: n, disabled: r, reorderable: i, preferredThumbna
306
306
  children: [/* @__PURE__ */ S("button", {
307
307
  type: "button",
308
308
  className: "rounded-sm border border-border bg-card px-2 py-0.5 text-xs",
309
- onClick: c,
309
+ onClick: s,
310
310
  children: v("file.view", "View")
311
311
  }), /* @__PURE__ */ S("button", {
312
312
  type: "button",
313
313
  className: "rounded-sm border border-border bg-card px-2 py-0.5 text-xs text-destructive",
314
- onClick: s,
314
+ onClick: o,
315
315
  "data-testid": `remove-${e.id}`,
316
316
  children: v("file.delete", "Delete")
317
317
  })]
@@ -319,8 +319,8 @@ function j({ file: e, selected: n, disabled: r, reorderable: i, preferredThumbna
319
319
  ] })]
320
320
  });
321
321
  }
322
- function ie({ tile: e, onCancel: n, onDismiss: r }) {
323
- let i = t();
322
+ function j({ tile: e, onCancel: t, onDismiss: n }) {
323
+ let r = c();
324
324
  return /* @__PURE__ */ C("div", {
325
325
  className: `relative flex aspect-square flex-col items-center justify-center rounded-md border ${e.error ? "border-destructive" : "border-border"} bg-surface-2 p-2 text-center text-xs`,
326
326
  "data-testid": `pending-tile-${e.localId}`,
@@ -341,41 +341,41 @@ function ie({ tile: e, onCancel: n, onDismiss: r }) {
341
341
  e.error && /* @__PURE__ */ S("div", {
342
342
  role: "alert",
343
343
  className: "mt-1 text-destructive",
344
- children: /* @__PURE__ */ S(l, { failure: e.error })
344
+ children: /* @__PURE__ */ S(s, { failure: e.error })
345
345
  }),
346
346
  /* @__PURE__ */ S("button", {
347
347
  type: "button",
348
348
  className: "mt-1 rounded-sm border border-border bg-card px-2 py-0.5",
349
- onClick: e.error ? r : n,
350
- children: e.error ? i("file.upload.dismiss", "Dismiss") : i("file.upload.cancel", "Cancel")
349
+ onClick: e.error ? n : t,
350
+ children: e.error ? r("file.upload.dismiss", "Dismiss") : r("file.upload.cancel", "Cancel")
351
351
  })
352
352
  ]
353
353
  });
354
354
  }
355
- function ae({ file: e, hasPrev: n, hasNext: r, onPrev: a, onNext: o, onClose: s }) {
356
- let c = t(), l = m(e.id, "preview", f(e));
355
+ function ae({ file: e, hasPrev: t, hasNext: r, onPrev: i, onNext: a, onClose: o }) {
356
+ let s = c(), l = m(e.id, "preview", p(e));
357
357
  return /* @__PURE__ */ C("div", {
358
358
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/80",
359
359
  role: "dialog",
360
360
  "aria-modal": "true",
361
361
  "aria-label": e.filename,
362
362
  "data-testid": "lightbox",
363
- onClick: s,
363
+ onClick: o,
364
364
  children: [
365
365
  /* @__PURE__ */ S("button", {
366
366
  type: "button",
367
367
  className: "absolute right-4 top-4 rounded-sm border border-border bg-card px-3 py-1 text-foreground",
368
368
  onClick: (e) => {
369
- e.stopPropagation(), s();
369
+ e.stopPropagation(), o();
370
370
  },
371
371
  "data-testid": "lightbox-close",
372
- children: c("file.lightbox.close", "Close")
372
+ children: s("file.lightbox.close", "Close")
373
373
  }),
374
- n && /* @__PURE__ */ S("button", {
374
+ t && /* @__PURE__ */ S("button", {
375
375
  type: "button",
376
376
  className: "absolute left-4 rounded-sm border border-border bg-card px-3 py-2 text-foreground",
377
377
  onClick: (e) => {
378
- e.stopPropagation(), a();
378
+ e.stopPropagation(), i();
379
379
  },
380
380
  "data-testid": "lightbox-prev",
381
381
  children: "‹"
@@ -384,7 +384,7 @@ function ae({ file: e, hasPrev: n, hasNext: r, onPrev: a, onNext: o, onClose: s
384
384
  type: "button",
385
385
  className: "absolute right-4 bottom-4 rounded-sm border border-border bg-card px-3 py-2 text-foreground",
386
386
  onClick: (e) => {
387
- e.stopPropagation(), o();
387
+ e.stopPropagation(), a();
388
388
  },
389
389
  "data-testid": "lightbox-next",
390
390
  children: "›"
@@ -399,12 +399,11 @@ function ae({ file: e, hasPrev: n, hasNext: r, onPrev: a, onNext: o, onClose: s
399
399
  children: [
400
400
  e.filename,
401
401
  " (",
402
- i(e.size_bytes, c.language),
402
+ n(e.size_bytes, s.language),
403
403
  ")"
404
404
  ]
405
405
  })
406
406
  ]
407
407
  });
408
408
  }
409
- //#endregion
410
- export { A as Grid };
409
+ export { k as Grid };
@@ -1,6 +1,6 @@
1
1
  import { Suspense as e, lazy as t } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
- //#region src/components/file-widgets/GridLazy.tsx
3
+ // src/components/file-widgets/GridLazy.tsx
4
4
  var r = t(() => import("./Grid.js").then((e) => ({ default: e.Grid })));
5
5
  function i() {
6
6
  return /* @__PURE__ */ n("div", { className: "h-24 w-full rounded-md bg-muted animate-pulse" });
@@ -11,5 +11,4 @@ function a(t) {
11
11
  children: /* @__PURE__ */ n(r, { ...t })
12
12
  });
13
13
  }
14
- //#endregion
15
14
  export { a as GridLazy };