@proveanything/smartlinks-utils-ui 1.13.14 → 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';
@@ -1,5 +1,5 @@
1
- import { parsedRefToTarget, parsedRefToScope, matchRecords, scopesEqual, getRecordById, listRecords, upsertRecord, updateRecord, createRecord, removeRecord } from '../../chunk-W5ZEH3RT.js';
2
- export { bulkDelete, bulkUpsert, createRecord, getRecordById, listRecords, matchRecords, parsedRefToScope, parsedRefToTarget, removeRecord, restoreRecord, scopesEqual, upsertRecord } from '../../chunk-W5ZEH3RT.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';
@@ -2660,7 +2660,7 @@ function useShellNavigation(args) {
2660
2660
  }
2661
2661
  }
2662
2662
  try {
2663
- const { removeRecord: removeRecord2 } = await import('../../records-GPSKUNST.js');
2663
+ const { removeRecord: removeRecord2 } = await import('../../records-UOHHX5FQ.js');
2664
2664
  await removeRecord2(ctx, itemId);
2665
2665
  onTelemetry?.({ type: "item.delete", recordType, scopeRef: baseScopeRef, itemId });
2666
2666
  if (selectedItemId === itemId) setSelectedItemId(null);
@@ -9610,7 +9610,7 @@ function RecordsAdminShellInner(props) {
9610
9610
  drillTab,
9611
9611
  classify: classify3,
9612
9612
  pageSize: railPageSize,
9613
- activeStatuses,
9613
+ activeStatuses: resolvedActiveStatuses,
9614
9614
  searchCorpus: ruleSearchCorpus
9615
9615
  });
9616
9616
  const {
@@ -9631,13 +9631,13 @@ function RecordsAdminShellInner(props) {
9631
9631
  ctx,
9632
9632
  scopeKind: "rule",
9633
9633
  enabled: true,
9634
- activeStatuses
9634
+ activeStatuses: resolvedActiveStatuses
9635
9635
  });
9636
9636
  const globalScopedList = useRecordList({
9637
9637
  ctx,
9638
9638
  scopeKind: "collection",
9639
9639
  enabled: cardinality === "singleton",
9640
- activeStatuses
9640
+ activeStatuses: resolvedActiveStatuses
9641
9641
  });
9642
9642
  const pinnedProduct = useSingleProduct({
9643
9643
  SL,
@@ -9662,7 +9662,7 @@ function RecordsAdminShellInner(props) {
9662
9662
  if (cardinality !== "singleton") return [];
9663
9663
  if (recordList.isLoading) return [];
9664
9664
  if (recordList.isFetchingNextPage || recordList.hasNextPage) return [];
9665
- return groupSingletonConflicts(recordList.items, activeStatuses);
9665
+ return groupSingletonConflicts(recordList.items, resolvedActiveStatuses);
9666
9666
  },
9667
9667
  [
9668
9668
  cardinality,
@@ -9670,7 +9670,7 @@ function RecordsAdminShellInner(props) {
9670
9670
  recordList.isLoading,
9671
9671
  recordList.isFetchingNextPage,
9672
9672
  recordList.hasNextPage,
9673
- activeStatuses
9673
+ resolvedActiveStatuses
9674
9674
  ]
9675
9675
  );
9676
9676
  const hasSingletonConflicts = singletonConflicts.length > 0;
@@ -10214,7 +10214,7 @@ function RecordsAdminShellInner(props) {
10214
10214
  };
10215
10215
  function buildLifecycleAction(record) {
10216
10216
  if (!record.id) return null;
10217
- const allow = activeStatuses ?? ["active"];
10217
+ const allow = resolvedActiveStatuses;
10218
10218
  const s = record.lifecycleStatus;
10219
10219
  const active = s == null || s === "" || allow.includes(s);
10220
10220
  const next = active ? "archived" : "active";
@@ -11013,10 +11013,10 @@ function RecordsAdminShellInner(props) {
11013
11013
  return leftItems.filter((r) => {
11014
11014
  const s = r.lifecycleStatus;
11015
11015
  if (s == null || s === "") return true;
11016
- const allow = activeStatuses ?? ["active"];
11016
+ const allow = resolvedActiveStatuses;
11017
11017
  return allow.includes(s);
11018
11018
  });
11019
- }, [leftItems, railShowsHistoryDisclosure, activeStatuses]);
11019
+ }, [leftItems, railShowsHistoryDisclosure, resolvedActiveStatuses]);
11020
11020
  const railHistoryBySlot = useMemo(() => {
11021
11021
  if (!railShowsHistoryDisclosure) return void 0;
11022
11022
  return recordList.historyBySlot;