@proveanything/smartlinks-utils-ui 0.12.6 → 0.12.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/dist/chunk-WCUKTVWC.js +382 -0
- package/dist/chunk-WCUKTVWC.js.map +1 -0
- package/dist/components/AssetPicker/index.css +14 -6
- package/dist/components/AssetPicker/index.css.map +1 -1
- package/dist/components/ConditionsEditor/index.css +14 -6
- package/dist/components/ConditionsEditor/index.css.map +1 -1
- package/dist/components/ConditionsEditor/index.js +1 -1
- package/dist/components/FontPicker/index.css +14 -6
- package/dist/components/FontPicker/index.css.map +1 -1
- package/dist/components/IconPicker/index.css +14 -6
- package/dist/components/IconPicker/index.css.map +1 -1
- package/dist/components/LinkPicker/index.css +3990 -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 +14 -6
- package/dist/components/RecordsAdmin/index.css.map +1 -1
- package/dist/components/RecordsAdmin/index.d.ts +44 -3
- package/dist/components/RecordsAdmin/index.js +772 -392
- package/dist/components/RecordsAdmin/index.js.map +1 -1
- package/dist/index.css +14 -6
- 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
|
@@ -372,6 +372,10 @@ interface RecordsAdminI18n {
|
|
|
372
372
|
editor: string;
|
|
373
373
|
closePreview: string;
|
|
374
374
|
openPreview: string;
|
|
375
|
+
/** Tooltip / aria-label for the rail collapse (close) button. */
|
|
376
|
+
closeList: string;
|
|
377
|
+
/** Label for the floating pill that reopens the rail when collapsed. */
|
|
378
|
+
openList: string;
|
|
375
379
|
previewAs: string;
|
|
376
380
|
previewAsDefault: string;
|
|
377
381
|
confirmDelete: string;
|
|
@@ -537,6 +541,16 @@ interface RecordsAdminI18n {
|
|
|
537
541
|
conflictDeleteDuplicates: string;
|
|
538
542
|
conflictDeleteConfirm: string;
|
|
539
543
|
conflictResolveLabel: string;
|
|
544
|
+
/** Rules-tab sort dropdown. */
|
|
545
|
+
ruleSortLabel: string;
|
|
546
|
+
ruleSortRecent: string;
|
|
547
|
+
ruleSortName: string;
|
|
548
|
+
ruleSortActiveCount: string;
|
|
549
|
+
ruleSortHasArchived: string;
|
|
550
|
+
/** Lifecycle bucket badges shown on rule rows (Phase 2). */
|
|
551
|
+
lifecycleBadgeActive: string;
|
|
552
|
+
lifecycleBadgeArchived: string;
|
|
553
|
+
lifecycleBadgeDraft: string;
|
|
540
554
|
}
|
|
541
555
|
declare const DEFAULT_I18N: RecordsAdminI18n;
|
|
542
556
|
|
|
@@ -1863,8 +1877,10 @@ interface Props$9 {
|
|
|
1863
1877
|
ariaLabel: string;
|
|
1864
1878
|
title: string;
|
|
1865
1879
|
children: ReactNode;
|
|
1880
|
+
/** Which edge of the anchor the pill should hug. Defaults to `right`. */
|
|
1881
|
+
side?: 'left' | 'right';
|
|
1866
1882
|
}
|
|
1867
|
-
declare function PreviewReopenPill({ anchorRef, onClick, ariaLabel, title, children }: Props$9): React$1.ReactPortal | null;
|
|
1883
|
+
declare function PreviewReopenPill({ anchorRef, onClick, ariaLabel, title, children, side, }: Props$9): React$1.ReactPortal | null;
|
|
1868
1884
|
|
|
1869
1885
|
declare const ScopeBreadcrumb: ({ scope }: {
|
|
1870
1886
|
scope: ParsedRef;
|
|
@@ -2061,6 +2077,12 @@ declare const useRecordList: (args: UseRecordListArgs) => {
|
|
|
2061
2077
|
activeItems: RecordSummary<unknown>[];
|
|
2062
2078
|
historyItems: RecordSummary<unknown>[];
|
|
2063
2079
|
historyBySlot: Map<string, RecordSummary<unknown>[]>;
|
|
2080
|
+
ruleLifecycleCounts: ReadonlyMap<string, {
|
|
2081
|
+
active: number;
|
|
2082
|
+
archived: number;
|
|
2083
|
+
draft: number;
|
|
2084
|
+
other: number;
|
|
2085
|
+
}>;
|
|
2064
2086
|
total: number;
|
|
2065
2087
|
counts: {
|
|
2066
2088
|
all: number;
|
|
@@ -2779,9 +2801,17 @@ interface Props$6<T> {
|
|
|
2779
2801
|
hasNextPage?: boolean;
|
|
2780
2802
|
isFetchingNextPage?: boolean;
|
|
2781
2803
|
onLoadMore?: () => void;
|
|
2804
|
+
/**
|
|
2805
|
+
* When true (default in collection cardinality), partition the list
|
|
2806
|
+
* into Active / Archived / Draft buckets, mirroring `SiblingRail`.
|
|
2807
|
+
* Active stays expanded; non-active buckets collapse by default.
|
|
2808
|
+
*/
|
|
2809
|
+
groupByLifecycle?: boolean;
|
|
2810
|
+
/** Host lifecycle config — used so labels/active set match the rail. */
|
|
2811
|
+
lifecycle?: LifecycleConfig;
|
|
2782
2812
|
i18n: RecordsAdminI18n;
|
|
2783
2813
|
}
|
|
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;
|
|
2814
|
+
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
2815
|
|
|
2786
2816
|
interface Props$5 {
|
|
2787
2817
|
options: ItemView[];
|
|
@@ -2914,9 +2944,20 @@ interface Props$1<T> {
|
|
|
2914
2944
|
} | null | undefined;
|
|
2915
2945
|
/** Host-defined extra row actions, surfaced below the built-ins. */
|
|
2916
2946
|
rowActions?: (record: RecordSummary<T>) => RecordAction[] | null | undefined;
|
|
2947
|
+
/**
|
|
2948
|
+
* When true (default in collection cardinality), partition the rail
|
|
2949
|
+
* into Active / Archived / Draft buckets. Active stays expanded; non-
|
|
2950
|
+
* active buckets collapse by default with a "Show N" toggle.
|
|
2951
|
+
*
|
|
2952
|
+
* Empty buckets are hidden. The bucket order follows
|
|
2953
|
+
* `LIFECYCLE_BUCKET_ORDER` (draft → active → archived → custom).
|
|
2954
|
+
*/
|
|
2955
|
+
groupByLifecycle?: boolean;
|
|
2956
|
+
/** Host lifecycle config — passed through so labels/tones match. */
|
|
2957
|
+
lifecycle?: LifecycleConfig;
|
|
2917
2958
|
i18n: Pick<RecordsAdminI18n, 'backToScopes' | 'siblingsHeading' | 'noItemsTitle' | 'noItemsBody' | 'backToList' | 'newItem' | 'copy' | 'duplicateAction' | 'copyAndNewRuleAction'>;
|
|
2918
2959
|
}
|
|
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;
|
|
2960
|
+
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
2961
|
|
|
2921
2962
|
interface ClipboardEntry<T = unknown> {
|
|
2922
2963
|
value: T;
|