@declarion/react 0.48.2 → 0.49.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 (84) hide show
  1. package/dist-lib/Check-DAfMbQIw.js +38 -0
  2. package/dist-lib/{DraggableChildrenTable-p2ZSdwzj.js → DraggableChildrenTable-B98Md-Yq.js} +30 -30
  3. package/dist-lib/{Grid-CjLFAKMZ.js → Grid-BdtEd4R9.js} +2 -2
  4. package/dist-lib/{LayoutRenderer-DCscqXsv.js → LayoutRenderer-oVU3nEb5.js} +600 -597
  5. package/dist-lib/ListCardsBody-DYMt1H8l.js +287 -0
  6. package/dist-lib/{MarkdownRenderer-Sb7zcvj0.js → MarkdownRenderer-E9hbyoUn.js} +1 -1
  7. package/dist-lib/RefreshControl-B_2eW53M.js +430 -0
  8. package/dist-lib/{SmartDetailPage.impl-BAW-Tx_H.js → SmartDetailPage.impl-Dg22HOxb.js} +520 -515
  9. package/dist-lib/SmartListPage.impl-CPhhXT5S.js +2849 -0
  10. package/dist-lib/{SmartRecordListPage.impl-DtSSlGrI.js → SmartRecordListPage.impl-CF0UKgUj.js} +243 -240
  11. package/dist-lib/SortHeaderMenu-DodGvb7A.js +106 -0
  12. package/dist-lib/action-dispatch-CYOw7nkP.js +1984 -0
  13. package/dist-lib/api/batch.d.ts +5 -2
  14. package/dist-lib/api/data.d.ts +35 -4
  15. package/dist-lib/api/entities.d.ts +3 -3
  16. package/dist-lib/cardProjection-D-AufCh-.js +757 -0
  17. package/dist-lib/components/{shared → actions}/ObjectActionBar.d.ts +1 -1
  18. package/dist-lib/components/{shared → actions}/ResponsiveActionBar.d.ts +1 -1
  19. package/dist-lib/components/fields/cells/factories/date.d.ts +2 -0
  20. package/dist-lib/components/file-widgets/upload.d.ts +6 -1
  21. package/dist-lib/components/layout/Layout.d.ts +1 -1
  22. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  23. package/dist-lib/components/pages/SmartListPage.d.ts +2 -12
  24. package/dist-lib/components/pages/SmartListPage.impl.d.ts +4 -0
  25. package/dist-lib/components/pages/list/ListCardRow.d.ts +40 -0
  26. package/dist-lib/components/pages/list/ListCardsBody.d.ts +34 -0
  27. package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
  28. package/dist-lib/components/pages/list/ListFooter.d.ts +26 -0
  29. package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
  30. package/dist-lib/components/pages/list/ListNoRows.d.ts +32 -0
  31. package/dist-lib/components/pages/list/ListTable.d.ts +34 -0
  32. package/dist-lib/components/pages/list/ListTableRow.d.ts +18 -0
  33. package/dist-lib/components/pages/list/ListToolbar.d.ts +43 -0
  34. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +14 -0
  35. package/dist-lib/components/pages/list/page-size.d.ts +3 -0
  36. package/dist-lib/components/pages/list/sortable-header.d.ts +2 -0
  37. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +37 -0
  38. package/dist-lib/components/pages/list/useListQuery.d.ts +66 -0
  39. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +61 -0
  40. package/dist-lib/components/pages/list/useListSelection.d.ts +31 -0
  41. package/dist-lib/components/pages/list/useListSort.d.ts +45 -0
  42. package/dist-lib/components/pages/list/useListViews.d.ts +46 -0
  43. package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
  44. package/dist-lib/components/shared/RefreshControl.d.ts +17 -4
  45. package/dist-lib/field-classification-DTgUnbzd.js +1134 -0
  46. package/dist-lib/format-count-DAHCcHZO.js +1551 -0
  47. package/dist-lib/hooks/useBrandingChrome.d.ts +17 -1
  48. package/dist-lib/hooks/useText.d.ts +3 -0
  49. package/dist-lib/hooks/useViews.d.ts +1 -1
  50. package/dist-lib/index.d.ts +17 -15
  51. package/dist-lib/index.js +1783 -6287
  52. package/dist-lib/lib/messages.d.ts +7 -1
  53. package/dist-lib/lib/rowClickGesture.d.ts +12 -0
  54. package/dist-lib/lib/timestamp.d.ts +8 -3
  55. package/dist-lib/peekDraftStore-CnxqkoWN.js +194 -0
  56. package/dist-lib/record-documents-key-DEFlLxnF.js +27 -0
  57. package/dist-lib/registry-WypUQQ7t.js +1768 -0
  58. package/dist-lib/testing.d.ts +17 -2
  59. package/dist-lib/testing.js +72 -58
  60. package/dist-lib/types/api.d.ts +54 -12
  61. package/dist-lib/types/schema.d.ts +22 -6
  62. package/dist-lib/{useCurrentScreen-BshVTPVq.js → useCurrentScreen-C5Oio-1G.js} +1125 -1068
  63. package/dist-lib/useListQuery-Dc2vbxqs.js +87 -0
  64. package/dist-lib/useProperties-C36ENFdY.js +81 -0
  65. package/dist-lib/{useProperties-DrHFr0A1.js → useTabSearchMirror-sIuYEFaq.js} +116 -194
  66. package/dist-lib/{value-B1O6QikE.js → value-igT4LsqW.js} +69 -69
  67. package/package.json +1 -1
  68. package/dist-lib/RefreshControl-Cnl9nE0x.js +0 -945
  69. package/dist-lib/registry-CCxnZW2b.js +0 -5281
  70. /package/dist-lib/components/{shared → actions}/ActionButton.d.ts +0 -0
  71. /package/dist-lib/components/{shared → actions}/ActionDialog.d.ts +0 -0
  72. /package/dist-lib/components/{shared → actions}/ActionResultDialog.d.ts +0 -0
  73. /package/dist-lib/components/{shared → actions}/ActionRunner.d.ts +0 -0
  74. /package/dist-lib/components/{mass-edit → actions}/PropertyGridEditor.d.ts +0 -0
  75. /package/dist-lib/components/{shared → actions}/RowActionsKebab.d.ts +0 -0
  76. /package/dist-lib/components/{shared → chrome}/AssociationTabs.d.ts +0 -0
  77. /package/dist-lib/components/{shared → chrome}/AuditMetaStrip.d.ts +0 -0
  78. /package/dist-lib/components/{shared → chrome}/Breadcrumbs.d.ts +0 -0
  79. /package/dist-lib/components/{shared → chrome}/HighlightsStrip.d.ts +0 -0
  80. /package/dist-lib/components/{shared → chrome}/PageHeader.d.ts +0 -0
  81. /package/dist-lib/components/{shared → chrome}/RecordHeader.d.ts +0 -0
  82. /package/dist-lib/components/{shell → layout}/CommandPalette.d.ts +0 -0
  83. /package/dist-lib/components/{columns → list}/ColumnPicker.d.ts +0 -0
  84. /package/dist-lib/components/{views → list}/ViewSwitcher.d.ts +0 -0
@@ -1,13 +1,16 @@
1
+ import type { ApiErrorBody } from "../types/api";
1
2
  export interface BatchOp {
2
3
  action: string;
3
4
  params?: Record<string, unknown> | null;
4
5
  }
5
6
  export interface BatchOpResult {
6
7
  index: number;
8
+ /** The dispatched action, so an entry says WHICH op it describes. */
9
+ action?: string;
7
10
  ok: boolean;
8
11
  result?: unknown;
9
- error?: string;
10
- error_code?: string;
12
+ /** The failure, in the one shape every carrier sends. */
13
+ error?: ApiErrorBody;
11
14
  }
12
15
  export interface BatchResponse {
13
16
  results: BatchOpResult[];
@@ -1,4 +1,4 @@
1
- import type { ListParams, ListResponse, DataResponse } from "../types/api";
1
+ import type { ApiErrorBody, ListParams, ListResponse, DataResponse } from "../types/api";
2
2
  import type { PkValues } from "../types/schema";
3
3
  import type { ExportRequest } from "../components/pages/exportRequest";
4
4
  export declare function listEntities(entity: string, params?: ListParams, options?: {
@@ -41,12 +41,43 @@ export interface ActionExecuteResponse {
41
41
  errors?: ActionItemError[];
42
42
  /** Per-item skips (batch_mode: each responses where conditions filtered rows). */
43
43
  skipped?: ActionItemSkip[];
44
+ /**
45
+ * The action's declared synchronous chain, when it has one. ABSENT means the
46
+ * action declares no such step - never that a step passed. A failed step does
47
+ * not change the action's own status: it committed, and an event is free to
48
+ * fail without undoing a committed write. So "saved" and "saved, and the work
49
+ * behind it did not run" are the same status and different reports.
50
+ */
51
+ events?: EventsReport;
44
52
  }
53
+ /** What the platform says the action's synchronous chain did. */
54
+ export interface EventsReport {
55
+ failed_count?: number;
56
+ timed_out_count?: number;
57
+ job_ids?: string[];
58
+ /** In the handler's DECLARED step order, at every depth. */
59
+ failures?: EventFailure[];
60
+ /** What the response bounds dropped. Non-zero means there were more. */
61
+ failures_omitted?: number;
62
+ }
63
+ /** One declared step that did not do its work. */
64
+ export interface EventFailure {
65
+ step: number;
66
+ handler: string;
67
+ /** The id a per-object step died on. */
68
+ object?: string;
69
+ /** How many objects after it were never reached. */
70
+ not_attempted?: number;
71
+ error?: ApiErrorBody;
72
+ /** This step's OWN chain, when it declared one. */
73
+ events?: EventsReport;
74
+ }
75
+ /** Whether anything in this chain, at any depth, did not happen. */
76
+ export declare function eventsFailed(events: EventsReport | undefined): boolean;
45
77
  export interface ActionItemError {
46
78
  id: string;
47
- error: string;
48
- /** Sidecar DeclarionCode when available (e.g. VALIDATION_ERROR), else "". */
49
- code?: string;
79
+ /** The failure, in the one shape every carrier sends. */
80
+ error: ApiErrorBody;
50
81
  }
51
82
  export interface ActionItemSkip {
52
83
  id: string;
@@ -40,9 +40,9 @@ export declare class EntityClient<T extends Record<string, unknown> = Record<str
40
40
  /** List records with cursor-based pagination, field selection, and expansion.
41
41
  *
42
42
  * Recovery on cursor-stale signals: when the server returns
43
- * `cursor_semantics_mismatch` (sort grammar version bump),
44
- * `cursor_locale_changed` (active locale switched mid-pagination), or
45
- * `archive_cursor_invalid` (an undecodable cross-store archive cursor), the
43
+ * `cursor.semantics_mismatch` (sort grammar version bump),
44
+ * `cursor.locale_changed` (active locale switched mid-pagination), or
45
+ * `cursor.archive_invalid` (an undecodable cross-store archive cursor), the
46
46
  * `after` token is dropped and the request is retried once from the top.
47
47
  *
48
48
  * CRITICAL for accumulating callers (infinite scroll): the returned