@proveanything/smartlinks-utils-ui 0.12.6 → 0.12.7
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/chunk-WCUKTVWC.js +382 -0
- package/dist/chunk-WCUKTVWC.js.map +1 -0
- package/dist/components/AssetPicker/index.css +7 -0
- package/dist/components/AssetPicker/index.css.map +1 -1
- package/dist/components/ConditionsEditor/index.css +7 -0
- package/dist/components/ConditionsEditor/index.css.map +1 -1
- package/dist/components/ConditionsEditor/index.js +1 -1
- package/dist/components/FontPicker/index.css +7 -0
- package/dist/components/FontPicker/index.css.map +1 -1
- package/dist/components/IconPicker/index.css +7 -0
- package/dist/components/IconPicker/index.css.map +1 -1
- package/dist/components/LinkPicker/index.css +3989 -0
- package/dist/components/LinkPicker/index.css.map +1 -0
- package/dist/components/LinkPicker/index.d.ts +131 -0
- package/dist/components/LinkPicker/index.js +6 -0
- package/dist/components/LinkPicker/index.js.map +1 -0
- package/dist/components/RecordsAdmin/index.css +7 -0
- package/dist/components/RecordsAdmin/index.css.map +1 -1
- package/dist/components/RecordsAdmin/index.d.ts +37 -2
- package/dist/components/RecordsAdmin/index.js +382 -123
- package/dist/components/RecordsAdmin/index.js.map +1 -1
- package/dist/index.css +7 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -537,6 +537,16 @@ interface RecordsAdminI18n {
|
|
|
537
537
|
conflictDeleteDuplicates: string;
|
|
538
538
|
conflictDeleteConfirm: string;
|
|
539
539
|
conflictResolveLabel: string;
|
|
540
|
+
/** Rules-tab sort dropdown. */
|
|
541
|
+
ruleSortLabel: string;
|
|
542
|
+
ruleSortRecent: string;
|
|
543
|
+
ruleSortName: string;
|
|
544
|
+
ruleSortActiveCount: string;
|
|
545
|
+
ruleSortHasArchived: string;
|
|
546
|
+
/** Lifecycle bucket badges shown on rule rows (Phase 2). */
|
|
547
|
+
lifecycleBadgeActive: string;
|
|
548
|
+
lifecycleBadgeArchived: string;
|
|
549
|
+
lifecycleBadgeDraft: string;
|
|
540
550
|
}
|
|
541
551
|
declare const DEFAULT_I18N: RecordsAdminI18n;
|
|
542
552
|
|
|
@@ -2061,6 +2071,12 @@ declare const useRecordList: (args: UseRecordListArgs) => {
|
|
|
2061
2071
|
activeItems: RecordSummary<unknown>[];
|
|
2062
2072
|
historyItems: RecordSummary<unknown>[];
|
|
2063
2073
|
historyBySlot: Map<string, RecordSummary<unknown>[]>;
|
|
2074
|
+
ruleLifecycleCounts: ReadonlyMap<string, {
|
|
2075
|
+
active: number;
|
|
2076
|
+
archived: number;
|
|
2077
|
+
draft: number;
|
|
2078
|
+
other: number;
|
|
2079
|
+
}>;
|
|
2064
2080
|
total: number;
|
|
2065
2081
|
counts: {
|
|
2066
2082
|
all: number;
|
|
@@ -2779,9 +2795,17 @@ interface Props$6<T> {
|
|
|
2779
2795
|
hasNextPage?: boolean;
|
|
2780
2796
|
isFetchingNextPage?: boolean;
|
|
2781
2797
|
onLoadMore?: () => void;
|
|
2798
|
+
/**
|
|
2799
|
+
* When true (default in collection cardinality), partition the list
|
|
2800
|
+
* into Active / Archived / Draft buckets, mirroring `SiblingRail`.
|
|
2801
|
+
* Active stays expanded; non-active buckets collapse by default.
|
|
2802
|
+
*/
|
|
2803
|
+
groupByLifecycle?: boolean;
|
|
2804
|
+
/** Host lifecycle config — used so labels/active set match the rail. */
|
|
2805
|
+
lifecycle?: LifecycleConfig;
|
|
2782
2806
|
i18n: RecordsAdminI18n;
|
|
2783
2807
|
}
|
|
2784
|
-
declare function ItemListView<T>({ items, isLoading, error, ctx, itemNoun, ruleSummary, view, views, onViewChange, renderItemList, renderItemCard, renderItemEmpty, itemColumns, cardSize, rowActions, rowClipboard, searchableFields, searchable, total, hasNextPage, isFetchingNextPage, onLoadMore, i18n, }: Props$6<T>): react_jsx_runtime.JSX.Element;
|
|
2808
|
+
declare function ItemListView<T>({ items, isLoading, error, ctx, itemNoun, ruleSummary, view, views, onViewChange, renderItemList, renderItemCard, renderItemEmpty, itemColumns, cardSize, rowActions, rowClipboard, searchableFields, searchable, total, hasNextPage, isFetchingNextPage, onLoadMore, groupByLifecycle, lifecycle, i18n, }: Props$6<T>): react_jsx_runtime.JSX.Element;
|
|
2785
2809
|
|
|
2786
2810
|
interface Props$5 {
|
|
2787
2811
|
options: ItemView[];
|
|
@@ -2914,9 +2938,20 @@ interface Props$1<T> {
|
|
|
2914
2938
|
} | null | undefined;
|
|
2915
2939
|
/** Host-defined extra row actions, surfaced below the built-ins. */
|
|
2916
2940
|
rowActions?: (record: RecordSummary<T>) => RecordAction[] | null | undefined;
|
|
2941
|
+
/**
|
|
2942
|
+
* When true (default in collection cardinality), partition the rail
|
|
2943
|
+
* into Active / Archived / Draft buckets. Active stays expanded; non-
|
|
2944
|
+
* active buckets collapse by default with a "Show N" toggle.
|
|
2945
|
+
*
|
|
2946
|
+
* Empty buckets are hidden. The bucket order follows
|
|
2947
|
+
* `LIFECYCLE_BUCKET_ORDER` (draft → active → archived → custom).
|
|
2948
|
+
*/
|
|
2949
|
+
groupByLifecycle?: boolean;
|
|
2950
|
+
/** Host lifecycle config — passed through so labels/tones match. */
|
|
2951
|
+
lifecycle?: LifecycleConfig;
|
|
2917
2952
|
i18n: Pick<RecordsAdminI18n, 'backToScopes' | 'siblingsHeading' | 'noItemsTitle' | 'noItemsBody' | 'backToList' | 'newItem' | 'copy' | 'duplicateAction' | 'copyAndNewRuleAction'>;
|
|
2918
2953
|
}
|
|
2919
|
-
declare function SiblingRail<T>({ items, selectedItemId, isLoading, error, onBack, onSelect, contextKind, contextSummary, onCreate, itemNoun, dirtyKeys, errorKeys, i18n, total, hasNextPage, isFetchingNextPage, onLoadMore, rowClipboard, rowActions, }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
2954
|
+
declare function SiblingRail<T>({ items, selectedItemId, isLoading, error, onBack, onSelect, contextKind, contextSummary, onCreate, itemNoun, dirtyKeys, errorKeys, i18n, total, hasNextPage, isFetchingNextPage, onLoadMore, rowClipboard, rowActions, groupByLifecycle, lifecycle, }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
2920
2955
|
|
|
2921
2956
|
interface ClipboardEntry<T = unknown> {
|
|
2922
2957
|
value: T;
|