@powerhousedao/reactor-browser 6.0.0-dev.67 → 6.0.0-dev.68
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/src/analytics.js +61 -108
- package/dist/src/connect.js +2 -2
- package/dist/src/index.js +27 -27
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
package/dist/src/analytics.js
CHANGED
|
@@ -60262,7 +60262,7 @@ class BrowserAnalyticsStore extends MemoryAnalyticsStore {
|
|
|
60262
60262
|
}
|
|
60263
60263
|
}
|
|
60264
60264
|
|
|
60265
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60265
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
60266
60266
|
var Subscribable = class {
|
|
60267
60267
|
constructor() {
|
|
60268
60268
|
this.listeners = /* @__PURE__ */ new Set;
|
|
@@ -60283,7 +60283,7 @@ var Subscribable = class {
|
|
|
60283
60283
|
onUnsubscribe() {}
|
|
60284
60284
|
};
|
|
60285
60285
|
|
|
60286
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60286
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
|
|
60287
60287
|
var defaultTimeoutProvider = {
|
|
60288
60288
|
setTimeout: (callback, delay) => setTimeout(callback, delay),
|
|
60289
60289
|
clearTimeout: (timeoutId) => clearTimeout(timeoutId),
|
|
@@ -60328,7 +60328,7 @@ function systemSetTimeoutZero(callback) {
|
|
|
60328
60328
|
setTimeout(callback, 0);
|
|
60329
60329
|
}
|
|
60330
60330
|
|
|
60331
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60331
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/utils.js
|
|
60332
60332
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
60333
60333
|
function noop() {}
|
|
60334
60334
|
function functionalUpdate(updater, input) {
|
|
@@ -60429,12 +60429,10 @@ function partialMatchKey(a, b) {
|
|
|
60429
60429
|
return false;
|
|
60430
60430
|
}
|
|
60431
60431
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
60432
|
-
function replaceEqualDeep(a, b
|
|
60432
|
+
function replaceEqualDeep(a, b) {
|
|
60433
60433
|
if (a === b) {
|
|
60434
60434
|
return a;
|
|
60435
60435
|
}
|
|
60436
|
-
if (depth > 500)
|
|
60437
|
-
return b;
|
|
60438
60436
|
const array = isPlainArray(a) && isPlainArray(b);
|
|
60439
60437
|
if (!array && !(isPlainObject(a) && isPlainObject(b)))
|
|
60440
60438
|
return b;
|
|
@@ -60458,7 +60456,7 @@ function replaceEqualDeep(a, b, depth = 0) {
|
|
|
60458
60456
|
copy[key] = bItem;
|
|
60459
60457
|
continue;
|
|
60460
60458
|
}
|
|
60461
|
-
const v = replaceEqualDeep(aItem, bItem
|
|
60459
|
+
const v = replaceEqualDeep(aItem, bItem);
|
|
60462
60460
|
copy[key] = v;
|
|
60463
60461
|
if (v === aItem)
|
|
60464
60462
|
equalItems++;
|
|
@@ -60531,7 +60529,7 @@ function addToStart(items, item, max = 0) {
|
|
|
60531
60529
|
const newItems = [item, ...items];
|
|
60532
60530
|
return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
|
|
60533
60531
|
}
|
|
60534
|
-
var skipToken =
|
|
60532
|
+
var skipToken = Symbol();
|
|
60535
60533
|
function ensureQueryFn(options, fetchOptions) {
|
|
60536
60534
|
if (true) {
|
|
60537
60535
|
if (options.queryFn === skipToken) {
|
|
@@ -60552,29 +60550,8 @@ function shouldThrowError(throwOnError, params) {
|
|
|
60552
60550
|
}
|
|
60553
60551
|
return !!throwOnError;
|
|
60554
60552
|
}
|
|
60555
|
-
function addConsumeAwareSignal(object, getSignal, onCancelled) {
|
|
60556
|
-
let consumed = false;
|
|
60557
|
-
let signal;
|
|
60558
|
-
Object.defineProperty(object, "signal", {
|
|
60559
|
-
enumerable: true,
|
|
60560
|
-
get: () => {
|
|
60561
|
-
signal ??= getSignal();
|
|
60562
|
-
if (consumed) {
|
|
60563
|
-
return signal;
|
|
60564
|
-
}
|
|
60565
|
-
consumed = true;
|
|
60566
|
-
if (signal.aborted) {
|
|
60567
|
-
onCancelled();
|
|
60568
|
-
} else {
|
|
60569
|
-
signal.addEventListener("abort", onCancelled, { once: true });
|
|
60570
|
-
}
|
|
60571
|
-
return signal;
|
|
60572
|
-
}
|
|
60573
|
-
});
|
|
60574
|
-
return object;
|
|
60575
|
-
}
|
|
60576
60553
|
|
|
60577
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60554
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/focusManager.js
|
|
60578
60555
|
var FocusManager = class extends Subscribable {
|
|
60579
60556
|
#focused;
|
|
60580
60557
|
#cleanup;
|
|
@@ -60636,7 +60613,7 @@ var FocusManager = class extends Subscribable {
|
|
|
60636
60613
|
};
|
|
60637
60614
|
var focusManager = new FocusManager;
|
|
60638
60615
|
|
|
60639
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60616
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
60640
60617
|
function pendingThenable() {
|
|
60641
60618
|
let resolve;
|
|
60642
60619
|
let reject;
|
|
@@ -60668,7 +60645,7 @@ function pendingThenable() {
|
|
|
60668
60645
|
return thenable;
|
|
60669
60646
|
}
|
|
60670
60647
|
|
|
60671
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60648
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
60672
60649
|
var defaultScheduler = systemSetTimeoutZero;
|
|
60673
60650
|
function createNotifyManager() {
|
|
60674
60651
|
let queue = [];
|
|
@@ -60737,7 +60714,7 @@ function createNotifyManager() {
|
|
|
60737
60714
|
}
|
|
60738
60715
|
var notifyManager = createNotifyManager();
|
|
60739
60716
|
|
|
60740
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60717
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/onlineManager.js
|
|
60741
60718
|
var OnlineManager = class extends Subscribable {
|
|
60742
60719
|
#online = true;
|
|
60743
60720
|
#cleanup;
|
|
@@ -60789,7 +60766,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
60789
60766
|
};
|
|
60790
60767
|
var onlineManager = new OnlineManager;
|
|
60791
60768
|
|
|
60792
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60769
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
60793
60770
|
function defaultRetryDelay(failureCount) {
|
|
60794
60771
|
return Math.min(1000 * 2 ** failureCount, 30000);
|
|
60795
60772
|
}
|
|
@@ -60909,7 +60886,7 @@ function createRetryer(config) {
|
|
|
60909
60886
|
};
|
|
60910
60887
|
}
|
|
60911
60888
|
|
|
60912
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60889
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/removable.js
|
|
60913
60890
|
var Removable = class {
|
|
60914
60891
|
#gcTimeout;
|
|
60915
60892
|
destroy() {
|
|
@@ -60934,7 +60911,7 @@ var Removable = class {
|
|
|
60934
60911
|
}
|
|
60935
60912
|
};
|
|
60936
60913
|
|
|
60937
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
60914
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/query.js
|
|
60938
60915
|
var Query = class extends Removable {
|
|
60939
60916
|
#initialState;
|
|
60940
60917
|
#revertState;
|
|
@@ -61256,8 +61233,7 @@ var Query = class extends Removable {
|
|
|
61256
61233
|
fetchFailureCount: state.fetchFailureCount + 1,
|
|
61257
61234
|
fetchFailureReason: error,
|
|
61258
61235
|
fetchStatus: "idle",
|
|
61259
|
-
status: "error"
|
|
61260
|
-
isInvalidated: true
|
|
61236
|
+
status: "error"
|
|
61261
61237
|
};
|
|
61262
61238
|
case "invalidate":
|
|
61263
61239
|
return {
|
|
@@ -61320,7 +61296,7 @@ function getDefaultState(options) {
|
|
|
61320
61296
|
};
|
|
61321
61297
|
}
|
|
61322
61298
|
|
|
61323
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
61299
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
61324
61300
|
var QueryObserver = class extends Subscribable {
|
|
61325
61301
|
constructor(client, options) {
|
|
61326
61302
|
super();
|
|
@@ -61611,12 +61587,10 @@ var QueryObserver = class extends Subscribable {
|
|
|
61611
61587
|
};
|
|
61612
61588
|
const nextResult = result;
|
|
61613
61589
|
if (this.options.experimental_prefetchInRender) {
|
|
61614
|
-
const hasResultData = nextResult.data !== undefined;
|
|
61615
|
-
const isErrorWithoutData = nextResult.status === "error" && !hasResultData;
|
|
61616
61590
|
const finalizeThenableIfPossible = (thenable) => {
|
|
61617
|
-
if (
|
|
61591
|
+
if (nextResult.status === "error") {
|
|
61618
61592
|
thenable.reject(nextResult.error);
|
|
61619
|
-
} else if (
|
|
61593
|
+
} else if (nextResult.data !== undefined) {
|
|
61620
61594
|
thenable.resolve(nextResult.data);
|
|
61621
61595
|
}
|
|
61622
61596
|
};
|
|
@@ -61632,12 +61606,12 @@ var QueryObserver = class extends Subscribable {
|
|
|
61632
61606
|
}
|
|
61633
61607
|
break;
|
|
61634
61608
|
case "fulfilled":
|
|
61635
|
-
if (
|
|
61609
|
+
if (nextResult.status === "error" || nextResult.data !== prevThenable.value) {
|
|
61636
61610
|
recreateThenable();
|
|
61637
61611
|
}
|
|
61638
61612
|
break;
|
|
61639
61613
|
case "rejected":
|
|
61640
|
-
if (
|
|
61614
|
+
if (nextResult.status !== "error" || nextResult.error !== prevThenable.reason) {
|
|
61641
61615
|
recreateThenable();
|
|
61642
61616
|
}
|
|
61643
61617
|
break;
|
|
@@ -61737,7 +61711,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
61737
61711
|
return false;
|
|
61738
61712
|
}
|
|
61739
61713
|
|
|
61740
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
61714
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
61741
61715
|
function infiniteQueryBehavior(pages) {
|
|
61742
61716
|
return {
|
|
61743
61717
|
onFetch: (context, query) => {
|
|
@@ -61750,7 +61724,19 @@ function infiniteQueryBehavior(pages) {
|
|
|
61750
61724
|
const fetchFn = async () => {
|
|
61751
61725
|
let cancelled = false;
|
|
61752
61726
|
const addSignalProperty = (object) => {
|
|
61753
|
-
|
|
61727
|
+
Object.defineProperty(object, "signal", {
|
|
61728
|
+
enumerable: true,
|
|
61729
|
+
get: () => {
|
|
61730
|
+
if (context.signal.aborted) {
|
|
61731
|
+
cancelled = true;
|
|
61732
|
+
} else {
|
|
61733
|
+
context.signal.addEventListener("abort", () => {
|
|
61734
|
+
cancelled = true;
|
|
61735
|
+
});
|
|
61736
|
+
}
|
|
61737
|
+
return context.signal;
|
|
61738
|
+
}
|
|
61739
|
+
});
|
|
61754
61740
|
};
|
|
61755
61741
|
const queryFn = ensureQueryFn(context.options, context.fetchOptions);
|
|
61756
61742
|
const fetchPage = async (data, param, previous) => {
|
|
@@ -61825,7 +61811,7 @@ function getPreviousPageParam(options, { pages, pageParams }) {
|
|
|
61825
61811
|
return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : undefined;
|
|
61826
61812
|
}
|
|
61827
61813
|
|
|
61828
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
61814
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
61829
61815
|
var Mutation = class extends Removable {
|
|
61830
61816
|
#client;
|
|
61831
61817
|
#observers;
|
|
@@ -61915,9 +61901,7 @@ var Mutation = class extends Removable {
|
|
|
61915
61901
|
onContinue();
|
|
61916
61902
|
} else {
|
|
61917
61903
|
this.#dispatch({ type: "pending", variables, isPaused });
|
|
61918
|
-
|
|
61919
|
-
await this.#mutationCache.config.onMutate(variables, this, mutationFnContext);
|
|
61920
|
-
}
|
|
61904
|
+
await this.#mutationCache.config.onMutate?.(variables, this, mutationFnContext);
|
|
61921
61905
|
const context = await this.options.onMutate?.(variables, mutationFnContext);
|
|
61922
61906
|
if (context !== this.state.context) {
|
|
61923
61907
|
this.#dispatch({
|
|
@@ -61938,26 +61922,13 @@ var Mutation = class extends Removable {
|
|
|
61938
61922
|
} catch (error) {
|
|
61939
61923
|
try {
|
|
61940
61924
|
await this.#mutationCache.config.onError?.(error, variables, this.state.context, this, mutationFnContext);
|
|
61941
|
-
} catch (e) {
|
|
61942
|
-
Promise.reject(e);
|
|
61943
|
-
}
|
|
61944
|
-
try {
|
|
61945
61925
|
await this.options.onError?.(error, variables, this.state.context, mutationFnContext);
|
|
61946
|
-
} catch (e) {
|
|
61947
|
-
Promise.reject(e);
|
|
61948
|
-
}
|
|
61949
|
-
try {
|
|
61950
61926
|
await this.#mutationCache.config.onSettled?.(undefined, error, this.state.variables, this.state.context, this, mutationFnContext);
|
|
61951
|
-
} catch (e) {
|
|
61952
|
-
Promise.reject(e);
|
|
61953
|
-
}
|
|
61954
|
-
try {
|
|
61955
61927
|
await this.options.onSettled?.(undefined, error, variables, this.state.context, mutationFnContext);
|
|
61956
|
-
|
|
61957
|
-
|
|
61928
|
+
throw error;
|
|
61929
|
+
} finally {
|
|
61930
|
+
this.#dispatch({ type: "error", error });
|
|
61958
61931
|
}
|
|
61959
|
-
this.#dispatch({ type: "error", error });
|
|
61960
|
-
throw error;
|
|
61961
61932
|
} finally {
|
|
61962
61933
|
this.#mutationCache.runNext(this);
|
|
61963
61934
|
}
|
|
@@ -62043,7 +62014,7 @@ function getDefaultState2() {
|
|
|
62043
62014
|
};
|
|
62044
62015
|
}
|
|
62045
62016
|
|
|
62046
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
62017
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
62047
62018
|
var MutationCache = class extends Subscribable {
|
|
62048
62019
|
constructor(config = {}) {
|
|
62049
62020
|
super();
|
|
@@ -62152,7 +62123,7 @@ function scopeFor(mutation) {
|
|
|
62152
62123
|
return mutation.options.scope?.id;
|
|
62153
62124
|
}
|
|
62154
62125
|
|
|
62155
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
62126
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
62156
62127
|
var MutationObserver = class extends Subscribable {
|
|
62157
62128
|
#client;
|
|
62158
62129
|
#currentResult = undefined;
|
|
@@ -62233,27 +62204,11 @@ var MutationObserver = class extends Subscribable {
|
|
|
62233
62204
|
mutationKey: this.options.mutationKey
|
|
62234
62205
|
};
|
|
62235
62206
|
if (action?.type === "success") {
|
|
62236
|
-
|
|
62237
|
-
|
|
62238
|
-
} catch (e) {
|
|
62239
|
-
Promise.reject(e);
|
|
62240
|
-
}
|
|
62241
|
-
try {
|
|
62242
|
-
this.#mutateOptions.onSettled?.(action.data, null, variables, onMutateResult, context);
|
|
62243
|
-
} catch (e) {
|
|
62244
|
-
Promise.reject(e);
|
|
62245
|
-
}
|
|
62207
|
+
this.#mutateOptions.onSuccess?.(action.data, variables, onMutateResult, context);
|
|
62208
|
+
this.#mutateOptions.onSettled?.(action.data, null, variables, onMutateResult, context);
|
|
62246
62209
|
} else if (action?.type === "error") {
|
|
62247
|
-
|
|
62248
|
-
|
|
62249
|
-
} catch (e) {
|
|
62250
|
-
Promise.reject(e);
|
|
62251
|
-
}
|
|
62252
|
-
try {
|
|
62253
|
-
this.#mutateOptions.onSettled?.(undefined, action.error, variables, onMutateResult, context);
|
|
62254
|
-
} catch (e) {
|
|
62255
|
-
Promise.reject(e);
|
|
62256
|
-
}
|
|
62210
|
+
this.#mutateOptions.onError?.(action.error, variables, onMutateResult, context);
|
|
62211
|
+
this.#mutateOptions.onSettled?.(undefined, action.error, variables, onMutateResult, context);
|
|
62257
62212
|
}
|
|
62258
62213
|
}
|
|
62259
62214
|
this.listeners.forEach((listener) => {
|
|
@@ -62263,7 +62218,7 @@ var MutationObserver = class extends Subscribable {
|
|
|
62263
62218
|
}
|
|
62264
62219
|
};
|
|
62265
62220
|
|
|
62266
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
62221
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
62267
62222
|
var QueryCache = class extends Subscribable {
|
|
62268
62223
|
constructor(config = {}) {
|
|
62269
62224
|
super();
|
|
@@ -62351,7 +62306,7 @@ var QueryCache = class extends Subscribable {
|
|
|
62351
62306
|
}
|
|
62352
62307
|
};
|
|
62353
62308
|
|
|
62354
|
-
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.
|
|
62309
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@5.90.7/node_modules/@tanstack/query-core/build/modern/queryClient.js
|
|
62355
62310
|
var QueryClient = class {
|
|
62356
62311
|
#queryCache;
|
|
62357
62312
|
#mutationCache;
|
|
@@ -62611,10 +62566,10 @@ var QueryClient = class {
|
|
|
62611
62566
|
this.#mutationCache.clear();
|
|
62612
62567
|
}
|
|
62613
62568
|
};
|
|
62614
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62569
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
62615
62570
|
import * as React5 from "react";
|
|
62616
62571
|
|
|
62617
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62572
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
62618
62573
|
import * as React from "react";
|
|
62619
62574
|
import { jsx } from "react/jsx-runtime";
|
|
62620
62575
|
"use client";
|
|
@@ -62642,7 +62597,7 @@ var QueryClientProvider = ({
|
|
|
62642
62597
|
return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });
|
|
62643
62598
|
};
|
|
62644
62599
|
|
|
62645
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62600
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
62646
62601
|
import * as React2 from "react";
|
|
62647
62602
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
62648
62603
|
"use client";
|
|
@@ -62663,12 +62618,11 @@ function createValue() {
|
|
|
62663
62618
|
var QueryErrorResetBoundaryContext = React2.createContext(createValue());
|
|
62664
62619
|
var useQueryErrorResetBoundary = () => React2.useContext(QueryErrorResetBoundaryContext);
|
|
62665
62620
|
|
|
62666
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62621
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
62667
62622
|
import * as React3 from "react";
|
|
62668
62623
|
"use client";
|
|
62669
|
-
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary
|
|
62670
|
-
|
|
62671
|
-
if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
|
|
62624
|
+
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
62625
|
+
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
62672
62626
|
if (!errorResetBoundary.isReset()) {
|
|
62673
62627
|
options.retryOnMount = false;
|
|
62674
62628
|
}
|
|
@@ -62689,14 +62643,14 @@ var getHasError = ({
|
|
|
62689
62643
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === undefined || shouldThrowError(throwOnError, [result.error, query]));
|
|
62690
62644
|
};
|
|
62691
62645
|
|
|
62692
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62646
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
62693
62647
|
import * as React4 from "react";
|
|
62694
62648
|
"use client";
|
|
62695
62649
|
var IsRestoringContext = React4.createContext(false);
|
|
62696
62650
|
var useIsRestoring = () => React4.useContext(IsRestoringContext);
|
|
62697
62651
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
62698
62652
|
|
|
62699
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62653
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
62700
62654
|
var defaultThrowOnError = (_error, query) => query.state.data === undefined;
|
|
62701
62655
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
62702
62656
|
if (defaultedOptions.suspense) {
|
|
@@ -62715,7 +62669,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
62715
62669
|
errorResetBoundary.clearReset();
|
|
62716
62670
|
});
|
|
62717
62671
|
|
|
62718
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62672
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
62719
62673
|
"use client";
|
|
62720
62674
|
function useBaseQuery(options, Observer, queryClient) {
|
|
62721
62675
|
if (true) {
|
|
@@ -62728,7 +62682,6 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
62728
62682
|
const client = useQueryClient(queryClient);
|
|
62729
62683
|
const defaultedOptions = client.defaultQueryOptions(options);
|
|
62730
62684
|
client.getDefaultOptions().queries?._experimental_beforeQuery?.(defaultedOptions);
|
|
62731
|
-
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
|
62732
62685
|
if (true) {
|
|
62733
62686
|
if (!defaultedOptions.queryFn) {
|
|
62734
62687
|
console.error(`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);
|
|
@@ -62736,7 +62689,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
62736
62689
|
}
|
|
62737
62690
|
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
|
62738
62691
|
ensureSuspenseTimers(defaultedOptions);
|
|
62739
|
-
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary
|
|
62692
|
+
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
|
|
62740
62693
|
useClearResetErrorBoundary(errorResetBoundary);
|
|
62741
62694
|
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
|
62742
62695
|
const [observer] = React5.useState(() => new Observer(client, defaultedOptions));
|
|
@@ -62757,14 +62710,14 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
62757
62710
|
result,
|
|
62758
62711
|
errorResetBoundary,
|
|
62759
62712
|
throwOnError: defaultedOptions.throwOnError,
|
|
62760
|
-
query,
|
|
62713
|
+
query: client.getQueryCache().get(defaultedOptions.queryHash),
|
|
62761
62714
|
suspense: defaultedOptions.suspense
|
|
62762
62715
|
})) {
|
|
62763
62716
|
throw result.error;
|
|
62764
62717
|
}
|
|
62765
62718
|
client.getDefaultOptions().queries?._experimental_afterQuery?.(defaultedOptions, result);
|
|
62766
62719
|
if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {
|
|
62767
|
-
const promise = isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) :
|
|
62720
|
+
const promise = isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) : client.getQueryCache().get(defaultedOptions.queryHash)?.promise;
|
|
62768
62721
|
promise?.catch(noop).finally(() => {
|
|
62769
62722
|
observer.updateResult();
|
|
62770
62723
|
});
|
|
@@ -62772,13 +62725,13 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
62772
62725
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
62773
62726
|
}
|
|
62774
62727
|
|
|
62775
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62728
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
62776
62729
|
"use client";
|
|
62777
62730
|
function useQuery(options, queryClient) {
|
|
62778
62731
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
62779
62732
|
}
|
|
62780
62733
|
|
|
62781
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62734
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
|
|
62782
62735
|
"use client";
|
|
62783
62736
|
function useSuspenseQuery(options, queryClient) {
|
|
62784
62737
|
if (true) {
|
|
@@ -62794,7 +62747,7 @@ function useSuspenseQuery(options, queryClient) {
|
|
|
62794
62747
|
placeholderData: undefined
|
|
62795
62748
|
}, QueryObserver, queryClient);
|
|
62796
62749
|
}
|
|
62797
|
-
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.
|
|
62750
|
+
// ../../node_modules/.pnpm/@tanstack+react-query@5.90.7_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useMutation.js
|
|
62798
62751
|
import * as React6 from "react";
|
|
62799
62752
|
"use client";
|
|
62800
62753
|
function useMutation(options, queryClient) {
|
package/dist/src/connect.js
CHANGED
|
@@ -34516,7 +34516,7 @@ class ReactorClient {
|
|
|
34516
34516
|
const driveActions = await signActions([
|
|
34517
34517
|
addFile({
|
|
34518
34518
|
id: documentId,
|
|
34519
|
-
name: document.header.name,
|
|
34519
|
+
name: document.header.name || documentId,
|
|
34520
34520
|
documentType: document.header.documentType,
|
|
34521
34521
|
parentFolder
|
|
34522
34522
|
})
|
|
@@ -34547,7 +34547,7 @@ class ReactorClient {
|
|
|
34547
34547
|
throw new Error(job.error?.message);
|
|
34548
34548
|
}
|
|
34549
34549
|
}
|
|
34550
|
-
return
|
|
34550
|
+
return this.reactor.get(documentId);
|
|
34551
34551
|
}
|
|
34552
34552
|
async execute(documentIdentifier, branch, actions2, signal) {
|
|
34553
34553
|
this.logger.verbose("execute(@documentIdentifier, @branch, @count actions)", documentIdentifier, branch, actions2.length);
|