@farm.js/core 0.1.0-beta.4 → 0.1.0-beta.5
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/{chunk-AJWRO5WE.mjs → chunk-2NHCNRF6.mjs} +2 -2
- package/dist/{chunk-3U3ZUQAQ.mjs → chunk-7N62DNSO.mjs} +2 -2
- package/dist/{chunk-AOBXKNS5.mjs → chunk-A2LUXHD2.mjs} +2 -2
- package/dist/{chunk-W4UIVMVI.mjs → chunk-EEABSBKK.mjs} +2 -2
- package/dist/{chunk-W4UIVMVI.mjs.map → chunk-EEABSBKK.mjs.map} +1 -1
- package/dist/{chunk-SADGIRS2.mjs → chunk-J5YWQVI5.mjs} +2 -2
- package/dist/chunk-J5YWQVI5.mjs.map +1 -0
- package/dist/{chunk-VVKWFZAH.mjs → chunk-QTZZ2ISQ.mjs} +1 -1
- package/dist/{chunk-VVKWFZAH.mjs.map → chunk-QTZZ2ISQ.mjs.map} +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.mjs +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.mjs +6 -6
- package/dist/internal/build-runtime.cjs +1 -1
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +5 -5
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +2 -2
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +4 -4
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.cjs.map +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +4 -4
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-SADGIRS2.mjs.map +0 -1
- /package/dist/{chunk-AJWRO5WE.mjs.map → chunk-2NHCNRF6.mjs.map} +0 -0
- /package/dist/{chunk-3U3ZUQAQ.mjs.map → chunk-7N62DNSO.mjs.map} +0 -0
- /package/dist/{chunk-AOBXKNS5.mjs.map → chunk-A2LUXHD2.mjs.map} +0 -0
package/dist/client.d.mts
CHANGED
|
@@ -442,6 +442,6 @@ declare function useRouter(options?: UseRouterOptions): {
|
|
|
442
442
|
declare function usePageState<TState = unknown>(): TState | null;
|
|
443
443
|
declare function useNavigation(): FarmNavigationState;
|
|
444
444
|
declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
|
|
445
|
-
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement>;
|
|
445
|
+
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement | null>;
|
|
446
446
|
|
|
447
447
|
export { type AnyMutationTarget, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FarmClientPluginManager, type FarmNavigateOptions, type FarmNavigationBlocker, type FarmNavigationBlockerContext, type FarmNavigationListener, type FarmNavigationLocation, type FarmNavigationState, type FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkProps, type MutationAsync, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, SPARouter, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseBlockerOptions, type UseBlockerReturn, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, type UseRouterOptions, createStore, getRouter, navigateTo, prefetch, pushState, readPageState, replaceState, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration };
|
package/dist/client.d.ts
CHANGED
|
@@ -442,6 +442,6 @@ declare function useRouter(options?: UseRouterOptions): {
|
|
|
442
442
|
declare function usePageState<TState = unknown>(): TState | null;
|
|
443
443
|
declare function useNavigation(): FarmNavigationState;
|
|
444
444
|
declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
|
|
445
|
-
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement>;
|
|
445
|
+
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement | null>;
|
|
446
446
|
|
|
447
447
|
export { type AnyMutationTarget, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FarmClientPluginManager, type FarmNavigateOptions, type FarmNavigationBlocker, type FarmNavigationBlockerContext, type FarmNavigationListener, type FarmNavigationLocation, type FarmNavigationState, type FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkProps, type MutationAsync, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, SPARouter, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseBlockerOptions, type UseBlockerReturn, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, type UseRouterOptions, createStore, getRouter, navigateTo, prefetch, pushState, readPageState, replaceState, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration };
|
package/dist/client.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
fetchServerQuery,
|
|
13
13
|
prefetchServerQuery,
|
|
14
14
|
useServerQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-J5YWQVI5.mjs";
|
|
16
16
|
import {
|
|
17
17
|
APIClientError,
|
|
18
18
|
IntegrationClientError,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
usePageState,
|
|
44
44
|
useRouter,
|
|
45
45
|
useScrollRestoration
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QTZZ2ISQ.mjs";
|
|
47
47
|
import "./chunk-ITN462YM.mjs";
|
|
48
48
|
import "./chunk-B232I2GP.mjs";
|
|
49
49
|
import {
|
package/dist/index.cjs
CHANGED
|
@@ -16775,7 +16775,7 @@ var init_environment_vite = __esm({
|
|
|
16775
16775
|
var version;
|
|
16776
16776
|
var init_package = __esm({
|
|
16777
16777
|
"package.json"() {
|
|
16778
|
-
version = "0.1.0-beta.
|
|
16778
|
+
version = "0.1.0-beta.5";
|
|
16779
16779
|
}
|
|
16780
16780
|
});
|
|
16781
16781
|
|
|
@@ -33519,7 +33519,7 @@ function useServerQuery(query, input, options = {}) {
|
|
|
33519
33519
|
const key = createServerQueryCallKey(query, input);
|
|
33520
33520
|
const inputRef = (0, import_react8.useRef)(input);
|
|
33521
33521
|
const optionsRef = (0, import_react8.useRef)(options);
|
|
33522
|
-
const mountedKeyRef = (0, import_react8.useRef)();
|
|
33522
|
+
const mountedKeyRef = (0, import_react8.useRef)(void 0);
|
|
33523
33523
|
inputRef.current = input;
|
|
33524
33524
|
optionsRef.current = options;
|
|
33525
33525
|
const subscribe = (0, import_react8.useCallback)(
|