@proveanything/smartlinks-utils-ui 0.12.13 → 0.12.14

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.
@@ -7600,11 +7600,12 @@ function SiblingRail({
7600
7600
  const key = def.value;
7601
7601
  const existing = map.get(key);
7602
7602
  if (existing) existing.items.push(item);
7603
- else map.set(key, { label: def.label, items: [item] });
7603
+ else map.set(key, { label: def.label, tone: def.tone ?? "default", items: [item] });
7604
7604
  }
7605
7605
  return Array.from(map.entries()).map(([key, v]) => ({
7606
7606
  key,
7607
7607
  label: v.label,
7608
+ tone: v.tone,
7608
7609
  items: v.items,
7609
7610
  isActive: activeValues.includes(key)
7610
7611
  })).sort((a, b) => compareLifecycleBuckets(a.key, b.key)).filter((b) => b.items.length > 0);
@@ -7729,30 +7730,15 @@ function SiblingRail({
7729
7730
  {
7730
7731
  type: "button",
7731
7732
  className: "ra-sibling-bucket-header",
7733
+ "data-tone": bucket.tone,
7732
7734
  onClick: () => !bucket.isActive && toggleBucket(bucket.key),
7733
7735
  "aria-expanded": open,
7734
7736
  disabled: bucket.isActive,
7735
- style: {
7736
- display: "flex",
7737
- alignItems: "center",
7738
- gap: "6px",
7739
- width: "100%",
7740
- padding: "6px 10px",
7741
- background: "transparent",
7742
- border: 0,
7743
- borderTop: "1px solid hsl(var(--ra-border))",
7744
- font: "inherit",
7745
- fontSize: "11px",
7746
- fontWeight: 600,
7747
- textTransform: "uppercase",
7748
- letterSpacing: "0.04em",
7749
- color: "hsl(var(--ra-muted-text))",
7750
- cursor: bucket.isActive ? "default" : "pointer"
7751
- },
7737
+ style: { cursor: bucket.isActive ? "default" : "pointer" },
7752
7738
  children: [
7753
7739
  !bucket.isActive ? open ? /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "w-3 h-3", "aria-hidden": "true" }) : null,
7754
- /* @__PURE__ */ jsx("span", { children: bucket.label }),
7755
- /* @__PURE__ */ jsx("span", { style: { marginLeft: "auto", fontWeight: 500 }, children: bucket.items.length })
7740
+ /* @__PURE__ */ jsx("span", { className: "ra-sibling-bucket-label", children: bucket.label }),
7741
+ /* @__PURE__ */ jsx("span", { className: "ra-sibling-bucket-count", children: bucket.items.length })
7756
7742
  ]
7757
7743
  }
7758
7744
  ),
@@ -10082,11 +10068,11 @@ function RecordsAdminShellInner(props) {
10082
10068
  try {
10083
10069
  const updated = await SL.app.records.update(collectionId, appId, record.id, { status: next }, true);
10084
10070
  patchRecordStatusInCaches(queryClient, ctx, record.id, next);
10071
+ queryClient.invalidateQueries({
10072
+ queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10073
+ });
10085
10074
  if (updated) {
10086
10075
  patchRecordIntoCaches(queryClient, ctx, updated);
10087
- queryClient.invalidateQueries({
10088
- queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10089
- });
10090
10076
  }
10091
10077
  } catch (err) {
10092
10078
  console.warn("[RecordsAdminShell] lifecycle update failed", err);
@@ -10203,11 +10189,11 @@ function RecordsAdminShellInner(props) {
10203
10189
  i18n,
10204
10190
  onChanged: (_next, updated) => {
10205
10191
  patchRecordStatusInCaches(queryClient, ctx, selectedSummary.id, _next);
10192
+ queryClient.invalidateQueries({
10193
+ queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10194
+ });
10206
10195
  if (updated) {
10207
10196
  patchRecordIntoCaches(queryClient, ctx, updated);
10208
- queryClient.invalidateQueries({
10209
- queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10210
- });
10211
10197
  }
10212
10198
  }
10213
10199
  }
@@ -10233,11 +10219,11 @@ function RecordsAdminShellInner(props) {
10233
10219
  }),
10234
10220
  onChanged: (_next, updated) => {
10235
10221
  patchRecordStatusInCaches(queryClient, ctx, selectedSummary.id, _next);
10222
+ queryClient.invalidateQueries({
10223
+ queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10224
+ });
10236
10225
  if (updated) {
10237
10226
  patchRecordIntoCaches(queryClient, ctx, updated);
10238
- queryClient.invalidateQueries({
10239
- queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
10240
- });
10241
10227
  }
10242
10228
  }
10243
10229
  }
@@ -11308,6 +11294,9 @@ function RecordsAdminShellInner(props) {
11308
11294
  try {
11309
11295
  const updated = await SL.app.records.update(collectionId, appId, id, { status: archivedStatusValue }, true);
11310
11296
  patchRecordStatusInCaches(queryClient, ctx, id, archivedStatusValue);
11297
+ queryClient.invalidateQueries({
11298
+ queryKey: scopeCountsQueryKey(ctx.collectionId, ctx.appId, ctx.recordType)
11299
+ });
11311
11300
  if (updated) patchRecordIntoCaches(queryClient, ctx, updated);
11312
11301
  onTelemetry?.({
11313
11302
  type: "recordAction.invoke",