@proveanything/smartlinks-utils-ui 1.13.7 → 1.13.8

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.
@@ -1,4 +1,4 @@
1
- export { AssetPicker, useAppRegistry, useAssets } from '../../chunk-WLN4WW7K.js';
1
+ export { AssetPicker, useAppRegistry, useAssets } from '../../chunk-E3GQ6LNZ.js';
2
2
  import '../../chunk-OLYC54YT.js';
3
3
  import '../../chunk-5UQQYXCX.js';
4
4
  import '../../chunk-L7FQ52F5.js';
@@ -240,9 +240,13 @@ declare const ALL_ITEM_VIEWS: ItemView[];
240
240
  /**
241
241
  * Whether each scope holds at most one record of this type, or many.
242
242
  * - `singleton` → one record per scope (e.g. washing instructions). Default.
243
- * - `collection` → many records per scope (e.g. FAQs, recipes, SOPs).
243
+ * - `list` → many records per scope (e.g. FAQs, recipes, SOPs, auction
244
+ * items, image galleries). Public widget renders a list / grid / feed.
245
+ * - `collection` → **deprecated alias for `list`**, kept for back-compat. New
246
+ * apps should use `'list'`. The name collided with the SmartLinks
247
+ * `Collection` (brand) primitive, which was confusing.
244
248
  */
245
- type RecordCardinality = 'singleton' | 'collection';
249
+ type RecordCardinality = 'singleton' | 'list' | 'collection';
246
250
  /**
247
251
  * How `useCollectedRecords` orders the aggregated chain.
248
252
  * - `specificity` → most-specific scope first (default).
@@ -9393,7 +9393,7 @@ function RecordsAdminShellInner(props) {
9393
9393
  scopePicker: previewScopePicker = false
9394
9394
  } = editorPreview ?? {};
9395
9395
  const {
9396
- cardinality = "singleton",
9396
+ cardinality: cardinalityRaw = "singleton",
9397
9397
  noun: itemNoun = "item",
9398
9398
  generateId: generateItemId,
9399
9399
  views: itemViews = ["table"],
@@ -9409,6 +9409,7 @@ function RecordsAdminShellInner(props) {
9409
9409
  searchableFields: itemsSearchableFields,
9410
9410
  searchable: itemsSearchable
9411
9411
  } = items ?? {};
9412
+ const cardinality = cardinalityRaw === "list" ? "collection" : cardinalityRaw;
9412
9413
  const {
9413
9414
  strategy: dirtyStrategy = "keep",
9414
9415
  disableBeforeUnload = false,