@simpleplatform/ui-kit 0.2.0 → 0.3.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.
package/README.md CHANGED
@@ -7,9 +7,11 @@ workflow; use the Space SDK directly when you need to own the UI yourself.
7
7
  ## Status
8
8
 
9
9
  This package is in alpha. `StatusBadge` is the current simple component.
10
- Managed `RecordForm` and `RecordActivity` are pre-release interfaces and still require deployed
11
- browser-parity approval. Record-header actions are exposed by the companion
12
- Space SDK as `simple.ui.header`; they are not a UI Kit export.
10
+ Managed `RecordForm`, `RecordActivity`, and database-backed record views are
11
+ pre-release React interfaces. Their local fixture implementations have been
12
+ browser-verified; they are not yet a stable compatibility promise. Record-header
13
+ actions are exposed by the companion Space SDK as `simple.ui.header`; they are
14
+ not a UI Kit export.
13
15
  Do not treat alpha APIs as a stable compatibility promise until they are
14
16
  released with an explicit support policy.
15
17
 
@@ -19,10 +21,14 @@ released with an explicit support policy.
19
21
  pnpm add @simpleplatform/ui-kit @simpleplatform/sdk
20
22
  ```
21
23
 
22
- The kit needs version 3 of `@simpleplatform/sdk`, and React 18.3 or 19 for its
23
- React bridges. Its peer range also accepts `0.0.0`, the number the SDK carries
24
- inside this repository, so a Space that links both packages by folder path
25
- installs without a warning.
24
+ Managed views require the SDK's private managed-view bridge. The peer and
25
+ scaffold requirement is `@simpleplatform/sdk@^4.0.0`; 4.0.0 is the first
26
+ published release with the bridge. SDK 3.2.0 was never released; SDK 3.1.0 lacks the
27
+ bridge. Publish the compatible SDK before the UI Kit; the UI Kit release check
28
+ verifies the published SDK artifact's bridge. For local review, use matching
29
+ SDK/UI Kit feature builds. React bridges support React 18.3 or 19. The `0.0.0`
30
+ peer exception supports linked workspace builds and does not prove registry
31
+ compatibility.
26
32
 
27
33
  Releases are tagged `v<version>-kit`. The package is below 1.0: a breaking
28
34
  change raises the minor, and the default range `^0.1.0` never moves onto `0.2`
@@ -30,9 +36,11 @@ by itself.
30
36
 
31
37
  ## Current component: StatusBadge
32
38
 
39
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
40
+ before using this example.
41
+
33
42
  ```tsx
34
43
  import { StatusBadge } from '@simpleplatform/ui-kit/react'
35
- import '@simpleplatform/ui-kit/theme.css'
36
44
 
37
45
  export function DeploymentState() {
38
46
  return <StatusBadge label="Ready" tone="success" />
@@ -59,66 +67,102 @@ Both exports are also available from the package root, `@simpleplatform/ui-kit`.
59
67
  props; the package provides no React provider or implicit SDK client.
60
68
 
61
69
  The Web Component can also be used without React. Import the `elements`
62
- entry once before using its tag in HTML:
70
+ entry once before using its tag in HTML, and load the stylesheet as described
71
+ in [Loading the stylesheet](#loading-the-stylesheet):
63
72
 
64
73
  ```ts
65
74
  import '@simpleplatform/ui-kit/elements'
66
- import '@simpleplatform/ui-kit/theme.css'
67
75
  ```
68
76
 
69
77
  ```html
70
78
  <simple-status-badge label="Ready" tone="success"></simple-status-badge>
71
79
  ```
72
80
 
73
- Import `theme.css` in the Space entry point. It bundles the Geist font files
74
- with the Space (so they load inside its cross-origin iframe) and provides
75
- `StatusBadge` defaults that use the platform's own light and dark colors and
76
- dimensions. The neutral tone follows the Space's `--secondary`, `--border`, and
77
- `--secondary-foreground` tokens when defined (as HSL triplets, the platform's
78
- convention), with fallback colors otherwise. A Space may override any
79
- `--simple-status-badge-*` variable in its own CSS, and may override the default
80
- font stack as well. These names stay component-local: the platform-wide semantic
81
- CSS-variable contract is a separate project.
81
+ ### Loading the stylesheet
82
+
83
+ In a Space that uses Tailwind 4, import the kit's stylesheet inside the Space's
84
+ Tailwind stylesheet, directly after `@import "tailwindcss";`. For example,
85
+ `src/styles/theme.css` should begin with:
86
+
87
+ ```css
88
+ @import "tailwindcss";
89
+ @import "@simpleplatform/ui-kit/theme.css";
90
+ ```
91
+
92
+ Import that Space stylesheet once from the entry point, such as `src/main.tsx`:
93
+
94
+ ```ts
95
+ import './styles/theme.css'
96
+ ```
97
+
98
+ The kit contains an `@theme` block that maps Tailwind names to the platform's
99
+ theme tokens and an `@layer utilities` block, so both stylesheets need to pass
100
+ through Tailwind together. Importing the kit's stylesheet separately from
101
+ JavaScript can leave its `@theme` block unprocessed, which the browser ignores,
102
+ and place the utilities layer before Tailwind's base layer. The base reset then
103
+ overrides utilities, removing padding, margins, and borders.
104
+
105
+ In a Space without Tailwind, import `@simpleplatform/ui-kit/theme.css` in the
106
+ Space's own stylesheet and import that stylesheet once from the entry point.
107
+ A plain import supplies the Geist and Geist Mono font files, the `:root`
108
+ platform theme tokens and `.dark` color overrides, the responsive `.container`
109
+ width rules, and the Lucide icon sizing rules. These are ordinary CSS and work
110
+ without Tailwind; the browser ignores the `@theme` block, so a plain import does
111
+ not generate Tailwind utilities or provide its theme aliases. The kit's
112
+ stylesheet does not bundle Tailwind or its base reset.
113
+
114
+ The fonts are bundled with the Space so they load inside its cross-origin
115
+ iframe. `StatusBadge` uses the shared platform tokens for its light and dark
116
+ colors and dimensions. Its neutral tone uses `--simple-color-surface-sunken`
117
+ for the background, `--simple-color-border-default` for the border, and
118
+ `--simple-color-text-secondary` for the text; these tokens contain complete
119
+ CSS color values, not bare HSL triplets. The other tones use the corresponding
120
+ `--simple-color-status-info*`, `--simple-color-status-success*`,
121
+ `--simple-color-status-warning*`, and `--simple-color-status-danger*` tokens.
122
+ A Space may override the `--simple-*` tokens in its own CSS after the imports,
123
+ including `--simple-font-family-sans` for the font stack. These tokens are shared
124
+ with other UI that uses the platform theme; they are not component-local
125
+ `--simple-status-badge-*` variables.
82
126
 
83
127
  ### Runtime boundary
84
128
 
85
129
  The Simple host supplies the exact UI Runtime to the managed component bridge
86
- during the Space handshake. `<RecordForm />` and `<RecordActivity />` load it automatically; the runtime
87
- loader and URL are private implementation details, not supported Space APIs.
130
+ during the Space handshake. `RecordForm`, `RecordActivity`, and the managed
131
+ database-backed views load it automatically; the runtime loader and URL are
132
+ private implementation details, not supported Space APIs.
88
133
  Space authors should never choose or hard-code a runtime URL.
89
134
 
90
- The UI Kit reads host metadata and authorized callbacks from SDK-created record
91
- handles through a versioned symbol. Space authors use the `RecordForm` and
92
- `RecordActivity` components; there is no managed UI adapter package entry point.
135
+ `RecordForm` and `RecordActivity` use a bridge on SDK-created record handles.
136
+ Managed views take the SDK client, a table source, and a validated preset. The
137
+ public adapter entry point is `@simpleplatform/ui-kit/react`; runtime elements
138
+ and bridge metadata remain private.
93
139
 
94
140
  ### Framework support
95
141
 
96
- The managed `RecordForm` and `RecordActivity` exports are currently available only from
97
- `@simpleplatform/ui-kit/react`. Simple's renderer itself runs inside the Space
98
- iframe, so React is not an architectural requirement for customer Spaces; the
99
- current limitation is that a public framework-neutral form or activity element has not
100
- been shipped. The private runtime elements are not supported HTML APIs.
101
-
102
- The intended direction is to expose a public element from
103
- `@simpleplatform/ui-kit/elements` and make the React component a thin adapter
104
- over it. Vue, Svelte, or plain JavaScript could then pass a `RecordHandle` as an
105
- element property and use the same managed form. Until that element has a
106
- documented lifecycle, property, error, loading, and cleanup contract, non-React
107
- Spaces can use `@simpleplatform/sdk/space` to build custom controls with
108
- `simple.records.current()` or `simple.records.open()`. The managed `RecordForm`
109
- itself remains available only through the React entry point.
142
+ Managed `RecordForm`, `RecordActivity`, and record-view components are currently
143
+ available only from `@simpleplatform/ui-kit/react`. Simple's renderer itself runs
144
+ inside the Space iframe, so React is not an architectural requirement for customer
145
+ Spaces; no public framework-neutral managed form, activity, or view element has
146
+ shipped. Private runtime elements are not supported HTML APIs.
147
+
148
+ `StatusBadge` has a public Web Component entry. Non-React Spaces can use
149
+ `@simpleplatform/sdk/space` to build their own record and view controls with the
150
+ authorized SDK APIs. The private managed UI runtime elements are not a supported
151
+ cross-framework contract.
110
152
 
111
153
  ## RecordForm
112
154
 
113
155
  `RecordForm` is the default choice for a Record Space that wants the complete
114
156
  Simple record experience without rebuilding it.
115
157
 
158
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
159
+ before using this example.
160
+
116
161
  ```tsx
117
162
  import type { RecordHandle } from '@simpleplatform/sdk/space'
118
163
  import { connect } from '@simpleplatform/sdk/space'
119
164
  import { RecordForm } from '@simpleplatform/ui-kit/react'
120
165
  import { useEffect, useState } from 'react'
121
- import '@simpleplatform/ui-kit/theme.css'
122
166
 
123
167
  const client = connect({ targetOrigin: new URL(document.referrer).origin })
124
168
 
@@ -197,8 +241,9 @@ Simple and are not supported extension APIs:
197
241
  - field editor registry or per-field renderer replacement;
198
242
  - RecordForm's document attachment/promotion lifecycle, reference search,
199
243
  secret decryption, and JSON-editor internals. Document upload and promotion
200
- are handled by the managed form's private host adapter; a standalone file
201
- staging API is not currently exposed to Spaces.
244
+ are handled by the managed form's private host adapter. Customer-owned
245
+ uploads can use the separate public `simple.documents.stage({ file })` API;
246
+ staging does not attach the file to a record.
202
247
  - Record Behavior scheduling and host session events.
203
248
 
204
249
  This boundary lets Simple improve complex field workflows without requiring
@@ -209,12 +254,14 @@ customer Spaces to track internal form contracts.
209
254
  `RecordActivity` is the managed component for displaying the platform activity
210
255
  stream (audit log changes and notes) for a record handle.
211
256
 
257
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
258
+ before using this example.
259
+
212
260
  ```tsx
213
261
  import type { RecordHandle } from '@simpleplatform/sdk/space'
214
262
  import { connect } from '@simpleplatform/sdk/space'
215
263
  import { RecordActivity } from '@simpleplatform/ui-kit/react'
216
264
  import { useEffect, useState } from 'react'
217
- import '@simpleplatform/ui-kit/theme.css'
218
265
 
219
266
  const client = connect({ targetOrigin: new URL(document.referrer).origin })
220
267
 
@@ -225,7 +272,7 @@ export function ActivityView() {
225
272
  useEffect(() => {
226
273
  let active = true
227
274
  void client
228
- .then(simple => simple.record())
275
+ .then(simple => simple.records.current())
229
276
  .then((value) => {
230
277
  if (active)
231
278
  setRecord(value)
@@ -251,9 +298,9 @@ export function ActivityView() {
251
298
  }
252
299
  ```
253
300
 
254
- | Prop | Type | Required | Purpose |
255
- | -------- | -------------- | -------- | ------------------------------------------------------------------ |
256
- | `record` | `RecordHandle` | Yes | A record handle from `simple.record()` or `simple.records.open()`. |
301
+ | Prop | Type | Required | Purpose |
302
+ | -------- | -------------- | -------- | --------------------------------------------------------------------------- |
303
+ | `record` | `RecordHandle` | Yes | A record handle from `simple.records.current()` or `simple.records.open()`. |
257
304
 
258
305
  ### Supported context and behavior
259
306
 
@@ -285,7 +332,230 @@ It receives `applicationId`, `tableId`, `recordId`, `fields`, `graphql`, and the
285
332
  existing optional decrypt capability from the private record UI bridge. The
286
333
  runtime descriptor, loader, and underlying GraphQL operations are
287
334
  private implementation details and not customer extension points. This integration
288
- is pre-release and subject to deployed browser-parity approval.
335
+ remains pre-release; local browser parity has been verified in the fixture.
336
+
337
+ ## Managed database-backed views
338
+
339
+ Managed views render authorized records from a table through the existing host
340
+ bridge. They accept configuration rather than row arrays, GraphQL documents, or
341
+ render callbacks. The platform validates preset fields against the current
342
+ readable schema and keeps authorization, filtering, ordering, paging, and field
343
+ formatting in its existing record path.
344
+
345
+ The package exports `ListView`, `DataGrid`, and `Board` from
346
+ `@simpleplatform/ui-kit/react`. Their contracts are exported from
347
+ `@simpleplatform/ui-kit/contracts`.
348
+
349
+ `ListView` uses the same tile preset for grid cards in a wide container and
350
+ continuous rows in a narrow container. The layout follows the component's
351
+ container width, including when it sits in a narrow Space on a wide screen.
352
+
353
+ Inbox remains a platform Custom View preset and renderer. Spaces do not expose
354
+ an `InboxView`; they can use List, DataGrid, and Board while platform routes
355
+ continue to use Inbox.
356
+
357
+ List, DataGrid, and Board provide their platform-owned filter controls.
358
+ Standalone `ConditionBuilder` and `ConditionSummary` components are not public
359
+ Space APIs yet.
360
+
361
+ ### Maintaining the shared contract fixtures
362
+
363
+ `test/fixtures/record-view-contract-v1.json` in this package is the authority;
364
+ the platform keeps a tracked mirror so each repo can run its tests independently.
365
+ Edit the authority, then run these commands from the SDK repo with both checkouts available:
366
+
367
+ ```sh
368
+ node scripts/sync-record-view-contract.mjs ../simple
369
+ node scripts/sync-record-view-contract.mjs ../simple --check
370
+ ```
371
+
372
+ Commit both copies together. The corpus covers legacy Board page-size normalization
373
+ and current Show more with numeric summaries.
374
+
375
+ Public TypeScript names omit a version suffix. The saved `views` preset-set
376
+ envelope, filter expressions, and tile layouts retain their `version: 1` fields.
377
+
378
+ ```tsx
379
+ import type { SimpleClient } from '@simpleplatform/sdk/space'
380
+ import type {
381
+ FilterExpression,
382
+ ListPreset,
383
+ TableRecordSource,
384
+ ViewItemReference,
385
+ } from '@simpleplatform/ui-kit/contracts'
386
+ import { ListView } from '@simpleplatform/ui-kit/react'
387
+ import { useState } from 'react'
388
+
389
+ const source: TableRecordSource = {
390
+ appId: 'com.example.crm',
391
+ kind: 'table',
392
+ tableId: 'TBL000123',
393
+ }
394
+
395
+ const preset: ListPreset = {
396
+ config: {
397
+ tile: {
398
+ presentation: 'row',
399
+ subtitleFieldName: 'status',
400
+ titleFieldName: 'title',
401
+ version: 1,
402
+ },
403
+ },
404
+ id: 'open-tickets',
405
+ kind: 'list',
406
+ title: 'Open tickets',
407
+ }
408
+
409
+ export function TicketList({ client, openTicket }: {
410
+ client: SimpleClient
411
+ openTicket: (reference: ViewItemReference) => void
412
+ }) {
413
+ const [filter, setFilter] = useState<FilterExpression | undefined>(preset.filter)
414
+
415
+ return (
416
+ <ListView
417
+ client={client}
418
+ source={source}
419
+ preset={preset}
420
+ filter={filter}
421
+ onFilterChange={setFilter}
422
+ onItemOpen={openTicket}
423
+ />
424
+ )
425
+ }
426
+ ```
427
+
428
+ Import `ViewItemReference` from `@simpleplatform/ui-kit/contracts` for the
429
+ callback type in this example. The source is `{ kind: 'table', appId, tableId }`;
430
+ `tableId` is the platform table metadata record ID, not the logical SCL table
431
+ name. The platform resolves it and verifies app ownership before using its
432
+ existing record hooks. Presets are versioned and discriminated as `list`, `table`,
433
+ `board`, or `inbox`; Inbox is platform-only. Fields use logical SCL names. `onItemOpen` receives only
434
+ `{ kind: 'record', appId, tableName, recordId }`. Navigation and record actions
435
+ stay with the Space. Controlled views pass both `filter` and
436
+ `onFilterChange`; otherwise the preset's filter initializes view state.
437
+
438
+ The view's built-in filter controls share the versioned `FilterExpression`
439
+ with saved preset filters. A Space may control that view state with `filter`
440
+ and `onFilterChange`; filter-builder components remain platform-owned. Preset
441
+ icons are derived from `kind`. Tile visuals use provider-qualified IDs from
442
+ `RECORD_VIEW_ICON_IDS`, such as `lucide:star`.
443
+ QuickFilterBar is excluded from the first phase.
444
+ `DataGrid` mounts the existing platform TanStack GenericTable, including its
445
+ column configuration, sorting/resizing/pinning, cell menus, filter dialog,
446
+ refresh, page export and pager. Narrow containers use platform tiles with the
447
+ same fetched rows and sorting state. With no tile configured, the first visible
448
+ selected column becomes the labeled title and every other selected column is
449
+ shown as a labeled value. A configured tile emphasizes its bound fields and
450
+ appends the remaining visible columns once. Filter changes preserve user sort;
451
+ changed sort defaults apply intentionally. `onItemOpen` handles record and reference
452
+ opens; omitting it makes navigation unavailable. Route-only New/custom actions
453
+ are supplied by the platform route host.
454
+
455
+ Configured email tiles also retain the remaining selected DataGrid columns as
456
+ labeled values. Ordinary List/Inbox email tiles keep their sender/date,
457
+ subject, and preview layout.
458
+
459
+ Simple and advanced filters reject numeric input that JavaScript cannot
460
+ represent without changing its value; invalid text stays visible for correction.
461
+ JSON key operands remain strings, including keys such as `"123"` or `"true"`.
462
+ Nested AND/OR groups and multi-value operands retain their complete meaning
463
+ when opening the advanced editor or adding a simple field filter.
464
+
465
+ `Board` may call `onMoveRequest`; it does not persist a move by itself.
466
+ Use `client.records.open()`, check `update()` and `submit()` results, and reject
467
+ the callback when the managed workflow fails. Lanes must use an enum field.
468
+ Narrow boards load cards only for the selected lane and keep each lane's Show
469
+ more limit when switching. Lane totals are queried independently for all lanes,
470
+ even when no numeric summaries are configured. Pending totals show a loading
471
+ indicator; failed totals show unavailable rather than zero. At narrow widths
472
+ the Board uses horizontally scrollable lane tabs, a full-width vertical record
473
+ stack, and a per-card **Move** action listing every destination lane. Wider
474
+ boards retain multi-lane drag-and-drop. Configure the per-lane batch with
475
+ `lanePageSize`; it defaults to 50, matching List and DataGrid. Optional `summaries` display up to
476
+ three database-backed numeric aggregates over all matching authorized records
477
+ in each lane after its preset and active filters, using `sum`, `average`,
478
+ `min`, or `max`. The platform validates summary fields against the table
479
+ schema. Set preset `orderBy` to sort cards within each lane by up to five fields;
480
+ `laneOrder` controls the lane order.
481
+
482
+ ```ts
483
+ import type { BoardPreset } from '@simpleplatform/ui-kit/contracts'
484
+
485
+ const boardPreset: BoardPreset = {
486
+ config: {
487
+ laneFieldName: 'stage',
488
+ lanePageSize: 50,
489
+ summaries: [
490
+ { fieldName: 'amount', operation: 'sum' },
491
+ { fieldName: 'amount', operation: 'average' },
492
+ ],
493
+ tile: { presentation: 'row', titleFieldName: 'name', version: 1 },
494
+ },
495
+ id: 'opportunities',
496
+ kind: 'board',
497
+ orderBy: [{ direction: 'desc', fieldName: 'amount' }],
498
+ title: 'Opportunities',
499
+ }
500
+ ```
501
+
502
+ Preset selectors on the platform and fixture show the family icon beside the
503
+ title. On a platform Custom View route, the most recently selected preset is
504
+ stored in local browser preferences per application and Custom View. An
505
+ explicit `?preset=<id>` URL selection takes precedence; if a remembered preset
506
+ was removed, the platform uses `defaultPresetId`. A Space receives an explicit
507
+ `preset` prop and owns preset selection state.
508
+
509
+ Space tiles use the same `RecordTileLayout` in List/Table/Board `config.tile`.
510
+ The platform Inbox uses `config.listTile`. Its `detail` defaults to `fields`,
511
+ which requires `detailFieldNames`; `detail: 'record'` renders the platform
512
+ RecordPage and does not accept `detailFieldNames`. The compositions are `row`,
513
+ `person`, `media`, `editorial`, `email`, `status`, and `spotlight`. Email uses `titleFieldName` for
514
+ the subject, `eyebrowFieldName` for the sender, `subtitleFieldName` for a
515
+ two-line plain-text preview, and `trailingFieldName` for the received date/time.
516
+ The platform Inbox displays sender and relative date together above the subject.
517
+ List/Inbox email tiles omit generic badges, detail fields, and icons; DataGrid
518
+ retains selected fields as labeled values. Bind
519
+ title/subtitle/eyebrow/trailing, badge/detail fields, a safe catalog icon, an
520
+ enum icon map, or an authorized document image. Values stay inline and safe inside the parent open action;
521
+ references request only the target ID/display field and fall back to the ID
522
+ when unavailable. Arbitrary HTML/CSS, image URLs, row arrays and render callbacks
523
+ are not supported.
524
+
525
+ `InboxPreset` describes platform Custom View configuration only. The
526
+ Space UI Kit does not export an Inbox renderer.
527
+
528
+ The Space collection components do not expose an imperative ref. Space code
529
+ owns source, preset, and navigation state; managed List, DataGrid, and Board do
530
+ not host an editable record-detail session.
531
+
532
+ Public components take an explicit preset. To reuse a saved Custom View, load
533
+ its active List-type record with the existing SDK query, verify target table,
534
+ call `validateViewPresetSet(customization.views)`, and choose a List, Table, or
535
+ Board preset. Skip platform-only Inbox presets. Initialize controlled filters from `selected.filter` when
536
+ desired; controlled `filter={undefined}` deliberately means unfiltered. The
537
+ fixture uses this approach rather than separate hardcoded presets.
538
+
539
+ Contract bounds are 20 presets, 80-character IDs, 120-character titles, 200-character
540
+ unpadded field names, 40 fields per column/detail/badge array, 5 sort fields,
541
+ 80–800px column widths, and 20 total Board lanes with batches of at most 50
542
+ records per lane. Enum icon maps allow 100 unpadded nonempty values of at most 200
543
+ characters and only exported catalog icons. Portable SDK and schema-aware
544
+ platform validators remain separate and run matching versioned conformance
545
+ fixtures. Container width selects the responsive DataGrid presentation; it is
546
+ not configurable in the preset.
547
+
548
+ The `dev.simple.ui_fixtures` Space API Demo includes a database-backed tile
549
+ playground: saved presets, Apply/Reset tile JSON, List/Table/Board previews,
550
+ phone/full widths, simple/advanced filters, and generated component code. Its
551
+ 14 scenario families are seeded database records; preview JSON supplies layout
552
+ only. Final deployed visual/device acceptance for these additions is tracked
553
+ separately from passing unit/package checks.
554
+
555
+ See `simple/architecture_history/space-views.md` for the current platform
556
+ contract, implementation status, verification, and release gates. Future view
557
+ API designs are in `simple/architecture_history/space-view-roadmap.md`.
558
+ This API is pre-release.
289
559
 
290
560
  ## Build a custom form instead
291
561
 
@@ -468,10 +738,12 @@ the `onChange` callback once, deduplicating the response and event.
468
738
 
469
739
  ## Multiple records
470
740
 
471
- The first release supports the route-owned primary record only. A future
472
- secondary-record API will let a Space explicitly define a multi-record save
473
- plan. `RecordForm` does not infer a save order from the forms on screen, and a
474
- header action never silently submits every visible form.
741
+ `simple.records.current()` returns the route-owned primary record;
742
+ `simple.records.open({ appId, tableName, recordId })` opens an independently
743
+ authorized session for another record. Opened sessions live until the Space
744
+ connection ends. Each handle submits independently; the SDK does not provide an
745
+ atomic multi-record transaction or infer save order from the forms on screen.
746
+ A header action never silently submits every visible form.
475
747
 
476
748
  For all-or-nothing multi-record workflows, use a server-side transactional
477
749
  Action when that capability is available; sequential browser submits cannot
@@ -1,2 +1,4 @@
1
1
  export { SIMPLE_STATUS_BADGE_TONES, type SimpleStatusBadgeTone, } from './status-badge.js';
2
+ export { FILTER_OPERATORS_V1 as FILTER_OPERATORS, isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isFilterExpressionV1 as isFilterExpression, isInboxPresetV1 as isInboxPreset, isListPresetV1 as isListPreset, isRecordReferenceV1 as isRecordReference, isRecordSortV1 as isRecordSort, isRecordSourceV1 as isRecordSource, isRecordTileLayoutV1 as isRecordTileLayout, isRecordViewPresetV1 as isRecordViewPreset, isViewItemReferenceV1 as isViewItemReference, isViewPresetSetV1 as isViewPresetSet, RECORD_TILE_PRESENTATIONS_V1 as RECORD_TILE_PRESENTATIONS, RECORD_VIEW_ICON_IDS_V1 as RECORD_VIEW_ICON_IDS, RECORD_VIEW_KINDS_V1 as RECORD_VIEW_KINDS, RecordViewContractError, validateBoardPresetV1 as validateBoardPreset, validateControlledFilterPropsV1 as validateControlledFilterProps, validateDataGridPresetV1 as validateDataGridPreset, validateFilterExpressionV1 as validateFilterExpression, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateSourceFilterExpressionV1 as validateSourceFilterExpression, validateTableRecordSourceV1 as validateTableRecordSource, validateViewItemReferenceV1 as validateViewItemReference, validateViewPresetSetV1 as validateViewPresetSet, } from './views.js';
3
+ export type { BoardMoveRequestV1 as BoardMoveRequest, BoardPresetV1 as BoardPreset, BoardProps, ControlledFilterPropsV1 as ControlledFilterProps, DataGridPresetV1 as DataGridPreset, DataGridProps, FilterExpressionV1 as FilterExpression, FilterNodeV1 as FilterNode, FilterOperatorV1 as FilterOperator, FilterValueV1 as FilterValue, InboxPresetV1 as InboxPreset, ListPresetV1 as ListPreset, ListViewProps, RecordReferenceV1 as RecordReference, RecordSortV1 as RecordSort, RecordSourceV1 as RecordSource, RecordTileLayoutV1 as RecordTileLayout, RecordTilePresentationV1 as RecordTilePresentation, RecordTileVisualV1 as RecordTileVisual, RecordViewIconIdV1 as RecordViewIconId, RecordViewKindV1 as RecordViewKind, RecordViewPresetV1 as RecordViewPreset, RecordViewPresetBaseV1 as RecordViewPresetBase, RecordViewPropsV1 as RecordViewProps, RecordViewSummaryV1 as RecordViewSummary, TableRecordSourceV1 as TableRecordSource, ViewItemReferenceV1 as ViewItemReference, ViewPresetSetV1 as ViewPresetSet, } from './views.js';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,mBAAmB,IAAI,gBAAgB,EACvC,eAAe,IAAI,aAAa,EAChC,yBAAyB,IAAI,uBAAuB,EACpD,kBAAkB,IAAI,gBAAgB,EACtC,oBAAoB,IAAI,kBAAkB,EAC1C,eAAe,IAAI,aAAa,EAChC,cAAc,IAAI,YAAY,EAC9B,mBAAmB,IAAI,iBAAiB,EACxC,cAAc,IAAI,YAAY,EAC9B,gBAAgB,IAAI,cAAc,EAClC,oBAAoB,IAAI,kBAAkB,EAC1C,oBAAoB,IAAI,kBAAkB,EAC1C,qBAAqB,IAAI,mBAAmB,EAC5C,iBAAiB,IAAI,eAAe,EACpC,4BAA4B,IAAI,yBAAyB,EACzD,uBAAuB,IAAI,oBAAoB,EAC/C,oBAAoB,IAAI,iBAAiB,EACzC,uBAAuB,EACvB,qBAAqB,IAAI,mBAAmB,EAC5C,+BAA+B,IAAI,6BAA6B,EAChE,wBAAwB,IAAI,sBAAsB,EAClD,0BAA0B,IAAI,wBAAwB,EACtD,qBAAqB,IAAI,mBAAmB,EAC5C,oBAAoB,IAAI,kBAAkB,EAC1C,yBAAyB,IAAI,uBAAuB,EACpD,oBAAoB,IAAI,kBAAkB,EAC1C,sBAAsB,IAAI,oBAAoB,EAC9C,0BAA0B,IAAI,wBAAwB,EACtD,0BAA0B,IAAI,wBAAwB,EACtD,gCAAgC,IAAI,8BAA8B,EAClE,2BAA2B,IAAI,yBAAyB,EACxD,2BAA2B,IAAI,yBAAyB,EACxD,uBAAuB,IAAI,qBAAqB,GACjD,MAAM,YAAY,CAAA;AAEnB,YAAY,EACV,kBAAkB,IAAI,gBAAgB,EACtC,aAAa,IAAI,WAAW,EAC5B,UAAU,EACV,uBAAuB,IAAI,qBAAqB,EAChD,gBAAgB,IAAI,cAAc,EAClC,aAAa,EACb,kBAAkB,IAAI,gBAAgB,EACtC,YAAY,IAAI,UAAU,EAC1B,gBAAgB,IAAI,cAAc,EAClC,aAAa,IAAI,WAAW,EAC5B,aAAa,IAAI,WAAW,EAC5B,YAAY,IAAI,UAAU,EAC1B,aAAa,EACb,iBAAiB,IAAI,eAAe,EACpC,YAAY,IAAI,UAAU,EAC1B,cAAc,IAAI,YAAY,EAC9B,kBAAkB,IAAI,gBAAgB,EACtC,wBAAwB,IAAI,sBAAsB,EAClD,kBAAkB,IAAI,gBAAgB,EACtC,kBAAkB,IAAI,gBAAgB,EACtC,gBAAgB,IAAI,cAAc,EAClC,kBAAkB,IAAI,gBAAgB,EACtC,sBAAsB,IAAI,oBAAoB,EAC9C,iBAAiB,IAAI,eAAe,EACpC,mBAAmB,IAAI,iBAAiB,EACxC,mBAAmB,IAAI,iBAAiB,EACxC,mBAAmB,IAAI,iBAAiB,EACxC,eAAe,IAAI,aAAa,GACjC,MAAM,YAAY,CAAA"}
@@ -1 +1,2 @@
1
1
  export { SIMPLE_STATUS_BADGE_TONES, } from './status-badge.js';
2
+ export { FILTER_OPERATORS_V1 as FILTER_OPERATORS, isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isFilterExpressionV1 as isFilterExpression, isInboxPresetV1 as isInboxPreset, isListPresetV1 as isListPreset, isRecordReferenceV1 as isRecordReference, isRecordSortV1 as isRecordSort, isRecordSourceV1 as isRecordSource, isRecordTileLayoutV1 as isRecordTileLayout, isRecordViewPresetV1 as isRecordViewPreset, isViewItemReferenceV1 as isViewItemReference, isViewPresetSetV1 as isViewPresetSet, RECORD_TILE_PRESENTATIONS_V1 as RECORD_TILE_PRESENTATIONS, RECORD_VIEW_ICON_IDS_V1 as RECORD_VIEW_ICON_IDS, RECORD_VIEW_KINDS_V1 as RECORD_VIEW_KINDS, RecordViewContractError, validateBoardPresetV1 as validateBoardPreset, validateControlledFilterPropsV1 as validateControlledFilterProps, validateDataGridPresetV1 as validateDataGridPreset, validateFilterExpressionV1 as validateFilterExpression, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateSourceFilterExpressionV1 as validateSourceFilterExpression, validateTableRecordSourceV1 as validateTableRecordSource, validateViewItemReferenceV1 as validateViewItemReference, validateViewPresetSetV1 as validateViewPresetSet, } from './views.js';