@proveanything/smartlinks-utils-ui 0.11.7 → 0.11.9
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/dist/components/AssetPicker/index.css +31 -0
- package/dist/components/AssetPicker/index.css.map +1 -1
- package/dist/components/ConditionsEditor/index.css +31 -0
- package/dist/components/ConditionsEditor/index.css.map +1 -1
- package/dist/components/FontPicker/index.css +31 -0
- package/dist/components/FontPicker/index.css.map +1 -1
- package/dist/components/IconPicker/index.css +31 -0
- package/dist/components/IconPicker/index.css.map +1 -1
- package/dist/components/RecordsAdmin/index.css +31 -0
- package/dist/components/RecordsAdmin/index.css.map +1 -1
- package/dist/components/RecordsAdmin/index.d.ts +28 -0
- package/dist/components/RecordsAdmin/index.js +265 -191
- package/dist/components/RecordsAdmin/index.js.map +1 -1
- package/dist/index.css +31 -0
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
|
@@ -432,6 +432,13 @@ interface RecordsAdminI18n {
|
|
|
432
432
|
duplicateAction: string;
|
|
433
433
|
/** Toast shown after a successful Duplicate. `{name}` = source label. */
|
|
434
434
|
duplicateToast: string;
|
|
435
|
+
/**
|
|
436
|
+
* Row-menu label for the "Copy and start new rule" action — shown on
|
|
437
|
+
* the rules tab in singleton mode. One-click flow: copies the row to
|
|
438
|
+
* the clipboard and immediately opens the New Rule wizard seeded with
|
|
439
|
+
* it.
|
|
440
|
+
*/
|
|
441
|
+
copyAndNewRuleAction: string;
|
|
435
442
|
/** Confirm dialog when pasting onto a destination with an existing saved value. */
|
|
436
443
|
pasteConfirmTitle: string;
|
|
437
444
|
pasteConfirmBody: string;
|
|
@@ -728,6 +735,14 @@ interface RecordSlotContext {
|
|
|
728
735
|
* `i18n.duplicateAction` (e.g. "Run this vote again").
|
|
729
736
|
*/
|
|
730
737
|
onDuplicate?: () => void;
|
|
738
|
+
/**
|
|
739
|
+
* Singleton-mode rules-tab affordance — copy this row's value and
|
|
740
|
+
* immediately open the New Rule wizard pre-seeded with it. Replaces
|
|
741
|
+
* the two-step "Copy → Paste as new rule (sidebar)" flow when the
|
|
742
|
+
* admin wants to spin a new rule off an existing rule or the global
|
|
743
|
+
* record. Hidden in collection cardinality and outside the rules tab.
|
|
744
|
+
*/
|
|
745
|
+
onCopyAndNewRule?: () => void;
|
|
731
746
|
/**
|
|
732
747
|
* Paste the current clipboard entry onto this row. Disabled when there is
|
|
733
748
|
* nothing to paste, when the source ref equals this row, or when the
|
|
@@ -1339,6 +1354,7 @@ interface Props$d {
|
|
|
1339
1354
|
rowClipboard?: (record: RecordSummary) => {
|
|
1340
1355
|
onCopy?: () => void;
|
|
1341
1356
|
onDuplicate?: () => void;
|
|
1357
|
+
onCopyAndNewRule?: () => void;
|
|
1342
1358
|
} | null;
|
|
1343
1359
|
/**
|
|
1344
1360
|
* Optional host-supplied per-record action lookup. Returned actions are
|
|
@@ -1464,6 +1480,15 @@ interface Props$b<T> {
|
|
|
1464
1480
|
canPaste: boolean;
|
|
1465
1481
|
pasteSourceLabel?: string;
|
|
1466
1482
|
pasteWillReplace?: boolean;
|
|
1483
|
+
/**
|
|
1484
|
+
* Singleton-mode rules-tab affordance — copies the current editor
|
|
1485
|
+
* value AND immediately opens the New Rule wizard pre-seeded with
|
|
1486
|
+
* it. Mirrors the row-menu action; rendered as a third button
|
|
1487
|
+
* between Copy and Paste when present.
|
|
1488
|
+
*/
|
|
1489
|
+
onCopyAndNewRule?: () => void;
|
|
1490
|
+
/** Label for the "Copy and start new rule" button. */
|
|
1491
|
+
copyAndNewRuleLabel?: string;
|
|
1467
1492
|
};
|
|
1468
1493
|
/** Host-provided labels for save / discard / delete (resting state only). */
|
|
1469
1494
|
actionLabels?: Partial<Record<RecordsAdminActionKey, string>>;
|
|
@@ -2510,6 +2535,7 @@ interface Props$5<T> {
|
|
|
2510
2535
|
rowClipboard?: (record: RecordSummary<T>) => {
|
|
2511
2536
|
onCopy?: () => void;
|
|
2512
2537
|
onDuplicate?: () => void;
|
|
2538
|
+
onCopyAndNewRule?: () => void;
|
|
2513
2539
|
} | null;
|
|
2514
2540
|
/**
|
|
2515
2541
|
* Optional projector returning extra strings to include in the search
|
|
@@ -2562,6 +2588,7 @@ interface Props$3<T> {
|
|
|
2562
2588
|
rowClipboard?: (record: RecordSummary<T>) => {
|
|
2563
2589
|
onCopy?: () => void;
|
|
2564
2590
|
onDuplicate?: () => void;
|
|
2591
|
+
onCopyAndNewRule?: () => void;
|
|
2565
2592
|
} | null;
|
|
2566
2593
|
i18n: Pick<RecordsAdminI18n, 'itemColumnLabel' | 'itemColumnUpdated' | 'itemActions' | 'delete'>;
|
|
2567
2594
|
}
|
|
@@ -2580,6 +2607,7 @@ interface Props$2<T> {
|
|
|
2580
2607
|
rowClipboard?: (record: RecordSummary<T>) => {
|
|
2581
2608
|
onCopy?: () => void;
|
|
2582
2609
|
onDuplicate?: () => void;
|
|
2610
|
+
onCopyAndNewRule?: () => void;
|
|
2583
2611
|
} | null;
|
|
2584
2612
|
i18n: Pick<RecordsAdminI18n, 'delete'>;
|
|
2585
2613
|
}
|