@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.
- package/README.md +8 -0
- package/dist/{chunk-WLN4WW7K.js → chunk-E3GQ6LNZ.js} +5 -3
- package/dist/chunk-E3GQ6LNZ.js.map +1 -0
- package/dist/components/AssetPicker/index.js +1 -1
- package/dist/components/RecordsAdmin/index.d.ts +6 -2
- package/dist/components/RecordsAdmin/index.js +2 -1
- package/dist/components/RecordsAdmin/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WLN4WW7K.js.map +0 -1
package/README.md
CHANGED
|
@@ -58,6 +58,14 @@ Each module has a full reference doc under [`docs/`](./docs/README.md):
|
|
|
58
58
|
|
|
59
59
|
### Records Admin Shell
|
|
60
60
|
|
|
61
|
+
> ⚠️ **Before you mount the shell, decide cardinality.** If your app is a
|
|
62
|
+
> list of things (auction items, FAQs, image gallery, perks) you want
|
|
63
|
+
> `items.cardinality: 'list'`. If it's one winning record per scope
|
|
64
|
+
> (warranty, nutrition, care instructions) keep the default `'singleton'`.
|
|
65
|
+
> The default is `'singleton'`, so multi-item apps **must opt in** — see
|
|
66
|
+
> [Choosing cardinality](./docs/records-admin-shell.md#-choosing-cardinality-read-this-first).
|
|
67
|
+
> (`'collection'` is still accepted as a deprecated alias for `'list'`.)
|
|
68
|
+
|
|
61
69
|
```tsx
|
|
62
70
|
import {
|
|
63
71
|
RecordsAdminShell,
|
|
@@ -2610,7 +2610,9 @@ var TagEditor = ({ initial, suggestions, assetName, onCancel, onSave }) => {
|
|
|
2610
2610
|
const handleSave = async () => {
|
|
2611
2611
|
setSaving(true);
|
|
2612
2612
|
try {
|
|
2613
|
-
|
|
2613
|
+
const pending = input.trim();
|
|
2614
|
+
const finalLabels = pending && !labels.some((l) => l.toLowerCase() === pending.toLowerCase()) ? [...labels, pending] : labels;
|
|
2615
|
+
await onSave(finalLabels);
|
|
2614
2616
|
} finally {
|
|
2615
2617
|
setSaving(false);
|
|
2616
2618
|
}
|
|
@@ -3632,5 +3634,5 @@ var AssetPicker = (props) => {
|
|
|
3632
3634
|
assertStylesLoaded();
|
|
3633
3635
|
|
|
3634
3636
|
export { ASSET_MIME_FILTERS, AssetPicker, useAppRegistry, useAssets };
|
|
3635
|
-
//# sourceMappingURL=chunk-
|
|
3636
|
-
//# sourceMappingURL=chunk-
|
|
3637
|
+
//# sourceMappingURL=chunk-E3GQ6LNZ.js.map
|
|
3638
|
+
//# sourceMappingURL=chunk-E3GQ6LNZ.js.map
|