@urbicon-ui/sveltekit-utils 8.4.1 → 8.5.0

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.
@@ -70,14 +70,14 @@ export interface TableViewLike {
70
70
  pageSize: number;
71
71
  filters: TableViewFilter[];
72
72
  groupBy: string | null;
73
- applyExternal(partial: Partial<TableViewSnapshot>, origin: 'external' | 'system'): void;
73
+ applyExternal(partial: Partial<TableViewSnapshot>, origin: 'external'): void;
74
74
  claimAxes(kind: 'url' | 'storage', axes: readonly TableViewAxis[]): void;
75
75
  releaseAxes(kind: 'url' | 'storage', axes: readonly TableViewAxis[]): void;
76
76
  markInitApplied(axes: readonly TableViewAxis[]): void;
77
77
  wasInitApplied(axis: TableViewAxis): boolean;
78
78
  originOf(axis: TableViewAxis): {
79
79
  revision: number;
80
- origin: 'user' | 'external' | 'system' | 'init';
80
+ origin: 'user' | 'external' | 'init';
81
81
  };
82
82
  snapshot(): TableViewSnapshot;
83
83
  }
@@ -293,10 +293,10 @@ export function bindViewToUrl(view, options = {}) {
293
293
  let lastSubmitted = null;
294
294
  let timer = null;
295
295
  const currentBaseline = () => lastSubmitted ?? canonical(ownSlice(page.url.search, managedKeys));
296
- // Whether the pending debounce window saw a reader (or system) change, as
297
- // opposed to a pure external mirror (`reflectExternal`): a storage seed
298
- // reaching the URL must never mint a history entry the reader did not
299
- // cause, so a mirror-only submission always replaces.
296
+ // Whether the pending debounce window saw a reader change, as opposed to
297
+ // a pure external mirror (`reflectExternal`): a storage seed reaching the
298
+ // URL must never mint a history entry the reader did not cause, so a
299
+ // mirror-only submission always replaces.
300
300
  let pendingHasUserChange = false;
301
301
  $effect(() => {
302
302
  readAxes(view, axes); // track exactly the bound axes
@@ -307,10 +307,9 @@ export function bindViewToUrl(view, options = {}) {
307
307
  const { revision, origin } = view.originOf(axis);
308
308
  if (revision > lastSeenRevision[axis]) {
309
309
  lastSeenRevision[axis] = revision;
310
- // `system` mirrors too: the table cleaning a value may clean the
311
- // URL (virtualized × grouping). Only `external` (a binding
310
+ // Only the reader's own change mirrors; `external` (a binding
312
311
  // applying) stays silent.
313
- if (origin === 'user' || origin === 'system') {
312
+ if (origin === 'user') {
314
313
  shouldMirror = true;
315
314
  sawUserChange = true;
316
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urbicon-ui/sveltekit-utils",
3
- "version": "8.4.1",
3
+ "version": "8.5.0",
4
4
  "description": "SvelteKit helper utilities — createCronRunner, streamSse, and URL-state runes",
5
5
  "license": "MIT",
6
6
  "repository": {