@urbicon-ui/sveltekit-utils 8.4.0 → 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.
package/dist/table-view.d.ts
CHANGED
|
@@ -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'
|
|
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' | '
|
|
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
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
//
|
|
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
|
-
//
|
|
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'
|
|
312
|
+
if (origin === 'user') {
|
|
314
313
|
shouldMirror = true;
|
|
315
314
|
sawUserChange = true;
|
|
316
315
|
}
|