@proveanything/smartlinks-utils-ui 1.13.13 → 1.13.15

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-I3T36FSI.js';
1
+ export { AssetPicker, useAppRegistry, useAssets } from '../../chunk-LRWXRRNJ.js';
2
2
  import '../../chunk-OLYC54YT.js';
3
3
  import '../../chunk-5UQQYXCX.js';
4
4
  import '../../chunk-L7FQ52F5.js';
@@ -2036,6 +2036,18 @@ declare const listRecords: (ctx: RecordsCtx, params?: {
2036
2036
  limit?: number;
2037
2037
  offset?: number;
2038
2038
  sort?: string;
2039
+ /**
2040
+ * Include records past their `expiresAt`. Defaults to `true` — the admin
2041
+ * shell needs to see expired records so operators can review, extend or
2042
+ * delete them. Pass `false` on public-facing surfaces that should only
2043
+ * see currently-live records.
2044
+ */
2045
+ includeExpired?: boolean;
2046
+ /**
2047
+ * Include records whose `startsAt` is in the future. Defaults to `true`
2048
+ * for the same admin-surface reason as `includeExpired`.
2049
+ */
2050
+ includeScheduled?: boolean;
2039
2051
  }) => Promise<{
2040
2052
  data: AppRecord[];
2041
2053
  total: number;
@@ -1,5 +1,5 @@
1
- import { parsedRefToTarget, parsedRefToScope, matchRecords, scopesEqual, getRecordById, listRecords, upsertRecord, updateRecord, createRecord, removeRecord } from '../../chunk-KA4MKRHL.js';
2
- export { bulkDelete, bulkUpsert, createRecord, getRecordById, listRecords, matchRecords, parsedRefToScope, parsedRefToTarget, removeRecord, restoreRecord, scopesEqual, upsertRecord } from '../../chunk-KA4MKRHL.js';
1
+ import { parsedRefToTarget, parsedRefToScope, matchRecords, scopesEqual, getRecordById, listRecords, upsertRecord, updateRecord, createRecord, removeRecord } from '../../chunk-HC43AGW3.js';
2
+ export { bulkDelete, bulkUpsert, createRecord, getRecordById, listRecords, matchRecords, parsedRefToScope, parsedRefToTarget, removeRecord, restoreRecord, scopesEqual, upsertRecord } from '../../chunk-HC43AGW3.js';
3
3
  import { useIntroState, ErrorBoundary, AdminPageHeader } from '../../chunk-XASZS7EA.js';
4
4
  export { ErrorBoundary } from '../../chunk-XASZS7EA.js';
5
5
  import { FacetRuleEditor } from '../../chunk-WVCNIX7N.js';
@@ -713,7 +713,12 @@ var useProductSubRecords = (args) => {
713
713
  {
714
714
  ...recordType ? { recordType } : {},
715
715
  limit,
716
- offset
716
+ offset,
717
+ // Admin discovery: include expired + scheduled so the rail
718
+ // exposes every variant/batch that has *ever* held a record,
719
+ // matching the rest of the admin shell's list semantics.
720
+ includeExpired: true,
721
+ includeScheduled: true
717
722
  },
718
723
  true
719
724
  ).catch(() => null);
@@ -2655,7 +2660,7 @@ function useShellNavigation(args) {
2655
2660
  }
2656
2661
  }
2657
2662
  try {
2658
- const { removeRecord: removeRecord2 } = await import('../../records-4NN757SG.js');
2663
+ const { removeRecord: removeRecord2 } = await import('../../records-UOHHX5FQ.js');
2659
2664
  await removeRecord2(ctx, itemId);
2660
2665
  onTelemetry?.({ type: "item.delete", recordType, scopeRef: baseScopeRef, itemId });
2661
2666
  if (selectedItemId === itemId) setSelectedItemId(null);
@@ -9605,7 +9610,7 @@ function RecordsAdminShellInner(props) {
9605
9610
  drillTab,
9606
9611
  classify: classify3,
9607
9612
  pageSize: railPageSize,
9608
- activeStatuses,
9613
+ activeStatuses: resolvedActiveStatuses,
9609
9614
  searchCorpus: ruleSearchCorpus
9610
9615
  });
9611
9616
  const {
@@ -9626,13 +9631,13 @@ function RecordsAdminShellInner(props) {
9626
9631
  ctx,
9627
9632
  scopeKind: "rule",
9628
9633
  enabled: true,
9629
- activeStatuses
9634
+ activeStatuses: resolvedActiveStatuses
9630
9635
  });
9631
9636
  const globalScopedList = useRecordList({
9632
9637
  ctx,
9633
9638
  scopeKind: "collection",
9634
9639
  enabled: cardinality === "singleton",
9635
- activeStatuses
9640
+ activeStatuses: resolvedActiveStatuses
9636
9641
  });
9637
9642
  const pinnedProduct = useSingleProduct({
9638
9643
  SL,
@@ -9657,7 +9662,7 @@ function RecordsAdminShellInner(props) {
9657
9662
  if (cardinality !== "singleton") return [];
9658
9663
  if (recordList.isLoading) return [];
9659
9664
  if (recordList.isFetchingNextPage || recordList.hasNextPage) return [];
9660
- return groupSingletonConflicts(recordList.items, activeStatuses);
9665
+ return groupSingletonConflicts(recordList.items, resolvedActiveStatuses);
9661
9666
  },
9662
9667
  [
9663
9668
  cardinality,
@@ -9665,7 +9670,7 @@ function RecordsAdminShellInner(props) {
9665
9670
  recordList.isLoading,
9666
9671
  recordList.isFetchingNextPage,
9667
9672
  recordList.hasNextPage,
9668
- activeStatuses
9673
+ resolvedActiveStatuses
9669
9674
  ]
9670
9675
  );
9671
9676
  const hasSingletonConflicts = singletonConflicts.length > 0;
@@ -10209,7 +10214,7 @@ function RecordsAdminShellInner(props) {
10209
10214
  };
10210
10215
  function buildLifecycleAction(record) {
10211
10216
  if (!record.id) return null;
10212
- const allow = activeStatuses ?? ["active"];
10217
+ const allow = resolvedActiveStatuses;
10213
10218
  const s = record.lifecycleStatus;
10214
10219
  const active = s == null || s === "" || allow.includes(s);
10215
10220
  const next = active ? "archived" : "active";
@@ -11008,10 +11013,10 @@ function RecordsAdminShellInner(props) {
11008
11013
  return leftItems.filter((r) => {
11009
11014
  const s = r.lifecycleStatus;
11010
11015
  if (s == null || s === "") return true;
11011
- const allow = activeStatuses ?? ["active"];
11016
+ const allow = resolvedActiveStatuses;
11012
11017
  return allow.includes(s);
11013
11018
  });
11014
- }, [leftItems, railShowsHistoryDisclosure, activeStatuses]);
11019
+ }, [leftItems, railShowsHistoryDisclosure, resolvedActiveStatuses]);
11015
11020
  const railHistoryBySlot = useMemo(() => {
11016
11021
  if (!railShowsHistoryDisclosure) return void 0;
11017
11022
  return recordList.historyBySlot;