@praxisui/list 8.0.0-beta.1 → 8.0.0-beta.11
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 +22 -6
- package/fesm2022/praxisui-list.mjs +2337 -145
- package/index.d.ts +35 -23
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -288,7 +288,7 @@ actions: [
|
|
|
288
288
|
- `showIf`: use Json Logic. Example: `{ "==": [{ "var": "row.status" }, "active"] }`.
|
|
289
289
|
- `emitPayload`: authoring field in the config/editor; current runtime `actionClick` emission does not change shape based on this field.
|
|
290
290
|
|
|
291
|
-
### Global actions
|
|
291
|
+
### Global actions
|
|
292
292
|
|
|
293
293
|
```ts
|
|
294
294
|
actions: [
|
|
@@ -296,13 +296,15 @@ actions: [
|
|
|
296
296
|
id: 'favorite',
|
|
297
297
|
icon: 'favorite',
|
|
298
298
|
label: 'Favorite',
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
globalAction: {
|
|
300
|
+
actionId: 'api.post',
|
|
301
|
+
payload: { url: '/api/favorite', body: { id: '${item.id}' } }
|
|
302
|
+
}
|
|
301
303
|
}
|
|
302
304
|
]
|
|
303
305
|
```
|
|
304
306
|
|
|
305
|
-
When `
|
|
307
|
+
When `globalAction` is set, `actionClick` is **not emitted** by default. Use `emitLocal: true` to emit both.
|
|
306
308
|
|
|
307
309
|
### Confirmation and loading
|
|
308
310
|
|
|
@@ -312,14 +314,16 @@ actions: [
|
|
|
312
314
|
id: 'delete',
|
|
313
315
|
icon: 'delete',
|
|
314
316
|
label: 'Delete',
|
|
315
|
-
|
|
317
|
+
globalAction: {
|
|
318
|
+
actionId: 'api.patch',
|
|
319
|
+
payload: { url: '/api/items/${item.id}', body: { active: false } },
|
|
320
|
+
},
|
|
316
321
|
showLoading: true,
|
|
317
322
|
confirmation: {
|
|
318
323
|
title: 'Confirm deletion',
|
|
319
324
|
message: 'Are you sure you want to delete this item?',
|
|
320
325
|
type: 'danger',
|
|
321
326
|
},
|
|
322
|
-
globalPayload: { url: '/api/items/${item.id}', body: { active: false } },
|
|
323
327
|
}
|
|
324
328
|
]
|
|
325
329
|
```
|
|
@@ -337,6 +341,18 @@ Outputs:
|
|
|
337
341
|
- `(actionClick)`: `{ actionId, item, index }`
|
|
338
342
|
- `(selectionChange)`: `{ mode, value, items, ids? }`
|
|
339
343
|
|
|
344
|
+
## Agentic Authoring & Manifest
|
|
345
|
+
|
|
346
|
+
`@praxisui/list` publishes `PRAXIS_LIST_AUTHORING_MANIFEST` as the executable authoring contract for list/card configuration.
|
|
347
|
+
|
|
348
|
+
- **Component ID:** `praxis-list`
|
|
349
|
+
- **Config Schema:** `PraxisListConfig`
|
|
350
|
+
- **Editable targets:** 20 target kinds: `itemTemplate`, `primaryText`, `secondaryText`, `avatar`, `badge`, `itemAction`, `emptyState`, `selection`, `layout`, `rowLayout`, `dataBinding`, `interaction`, `expansion`, `rules`, `meta`, `skin`, `toolbarUi`, `localization`, `accessibility`, `eventMapping`.
|
|
351
|
+
- **Operation families:** 29 operations covering every path published in `LIST_AI_CAPABILITIES`, including metadata, local/remote data, layout, row layout, skin, selection, interaction/expansion, rules, executive template slots, features, skeleton, item actions, toolbar UI, i18n, accessibility, and declarative event mappings.
|
|
352
|
+
- **Validation:** 30 deterministic validators cover field binding, stable action/rule/section IDs, destructive action removal, remote resource binding, local/remote precedence, enum support, row layout placement reachability, expansion schema safety, Json Logic, global actions, declared-only runtime warnings, and editor round-trip preservation.
|
|
353
|
+
- **Examples/evals:** 30 fixtures cover every operation family, including title/subtitle binding, action creation/update/removal, status badge, selection mode, missing field rejection, skin, toolbar, accessibility, event mapping, row layout, expansion, data modes, i18n, empty state and conditional row styling.
|
|
354
|
+
- **Declared-only semantics:** fields documented as declared-only remain authorable only as config/editor round-trip fields and are guarded by `declared-only-runtime-warning`; the manifest does not claim runtime behavior that the component does not implement.
|
|
355
|
+
|
|
340
356
|
## Known limitations and mismatches
|
|
341
357
|
|
|
342
358
|
1. `layout.virtualScroll` and `layout.stickySectionHeader` exist in the contract/editor, but have no runtime implementation.
|