mates 0.3.3 → 0.4.0-beta.10
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/Fetch/Fetch.d.ts +7 -1
- package/dist/Fetch/Fetch.d.ts.map +1 -1
- package/dist/MatesUtils/FetchUtils.d.ts +30 -0
- package/dist/MatesUtils/FetchUtils.d.ts.map +1 -0
- package/dist/MatesUtils/MatesUtils.d.ts +47 -0
- package/dist/MatesUtils/MatesUtils.d.ts.map +1 -0
- package/dist/MatesUtils/RouterUtils.d.ts +39 -0
- package/dist/MatesUtils/RouterUtils.d.ts.map +1 -0
- package/dist/MatesUtils/StorageUtils.d.ts +16 -0
- package/dist/MatesUtils/StorageUtils.d.ts.map +1 -0
- package/dist/MatesUtils/ThemeUtils.d.ts +18 -0
- package/dist/MatesUtils/ThemeUtils.d.ts.map +1 -0
- package/dist/MatesUtils/index.d.ts +6 -0
- package/dist/MatesUtils/index.d.ts.map +1 -0
- package/dist/Mutables/Extended Atoms/themeAtom.d.ts +3 -15
- package/dist/Mutables/Extended Atoms/themeAtom.d.ts.map +1 -1
- package/dist/Mutables/atom/storageAtom.d.ts +9 -31
- package/dist/Mutables/atom/storageAtom.d.ts.map +1 -1
- package/dist/Mutables/atom/titleAtom.d.ts +3 -9
- package/dist/Mutables/atom/titleAtom.d.ts.map +1 -1
- package/dist/Mutables/scope/scope.d.ts +32 -1
- package/dist/Mutables/scope/scope.d.ts.map +1 -1
- package/dist/Router/Router.d.ts +3 -2
- package/dist/Router/Router.d.ts.map +1 -1
- package/dist/Router/animatedRouter.d.ts.map +1 -1
- package/dist/Router/hashAtom.d.ts +7 -3
- package/dist/Router/hashAtom.d.ts.map +1 -1
- package/dist/Router/historyStateAtom.d.ts +4 -36
- package/dist/Router/historyStateAtom.d.ts.map +1 -1
- package/dist/Router/historyUtils.d.ts +1 -12
- package/dist/Router/historyUtils.d.ts.map +1 -1
- package/dist/Router/index.d.ts +1 -8
- package/dist/Router/index.d.ts.map +1 -1
- package/dist/Router/isPathMatching.d.ts +5 -1
- package/dist/Router/isPathMatching.d.ts.map +1 -1
- package/dist/Router/location.d.ts +3 -63
- package/dist/Router/location.d.ts.map +1 -1
- package/dist/Router/navigateTo.d.ts +7 -27
- package/dist/Router/navigateTo.d.ts.map +1 -1
- package/dist/Router/navigationLock.d.ts +5 -46
- package/dist/Router/navigationLock.d.ts.map +1 -1
- package/dist/Router/navigationRequest.d.ts +7 -42
- package/dist/Router/navigationRequest.d.ts.map +1 -1
- package/dist/Router/pathAtom.d.ts +16 -36
- package/dist/Router/pathAtom.d.ts.map +1 -1
- package/dist/Router/qsAtom.d.ts +7 -3
- package/dist/Router/qsAtom.d.ts.map +1 -1
- package/dist/Template/hmr.d.ts +6 -0
- package/dist/Template/hmr.d.ts.map +1 -0
- package/dist/Template/x-x.d.ts +1 -0
- package/dist/Template/x-x.d.ts.map +1 -1
- package/dist/Template/x.d.ts +16 -3
- package/dist/Template/x.d.ts.map +1 -1
- package/dist/Utils/cookie.d.ts +2 -0
- package/dist/Utils/cookie.d.ts.map +1 -0
- package/dist/Utils/index.d.ts +1 -0
- package/dist/Utils/index.d.ts.map +1 -1
- package/dist/actions/asyncAction.d.ts.map +1 -1
- package/dist/css-in-js/stylesheet.d.ts.map +1 -1
- package/dist/css-in-js/theme.d.ts +0 -8
- package/dist/css-in-js/theme.d.ts.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +30 -33
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -39
- package/dist/index.js.map +1 -1
- package/dist/on/hooks.d.ts.map +1 -1
- package/dist/ssr/index.d.ts +1 -0
- package/dist/ssr/index.d.ts.map +1 -1
- package/dist/ssr/ssrFlag.d.ts +56 -21
- package/dist/ssr/ssrFlag.d.ts.map +1 -1
- package/dist/ssr/useCtx.d.ts +63 -0
- package/dist/ssr/useCtx.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/Router/pathResolver.d.ts +0 -9
- package/dist/Router/pathResolver.d.ts.map +0 -1
|
@@ -1,74 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AtomType, SuperAtomType } from "../Mutables/atom/atom";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* and `qsAtom`.
|
|
3
|
+
* Creates a read-only location facade bound to the given scope atoms.
|
|
5
4
|
*
|
|
6
5
|
* Every getter performs a **tracked read**, so any reactive context (effect,
|
|
7
6
|
* component render function) that accesses one of these properties will
|
|
8
7
|
* automatically re-run when that part of the URL changes.
|
|
9
|
-
*
|
|
10
|
-
* This module also re-exports `navigationLocked`, `lockNavigation`, and
|
|
11
|
-
* `unlockNavigation` from `navigationLock.ts` as a single convenient import
|
|
12
|
-
* point for consumers that need both location data and navigation control.
|
|
13
|
-
*
|
|
14
|
-
* **Intentionally read-only.** To navigate, use `navigateTo()`. To update
|
|
15
|
-
* the query string or hash state, use `qsAtom.set()` / `hashAtom.set()`.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* import { location } from "mates";
|
|
19
|
-
*
|
|
20
|
-
* location.path; // "/about" — current pathname
|
|
21
|
-
* location.hash; // { tab: "overview" } — parsed hash fragment
|
|
22
|
-
* location.qsObj; // { q: "react", page: 1 } — parsed query string
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* import { location, lockNavigation, unlockNavigation } from "mates";
|
|
26
|
-
*
|
|
27
|
-
* lockNavigation();
|
|
28
|
-
* navigateTo("/somewhere"); // no-op while locked
|
|
29
|
-
* unlockNavigation();
|
|
30
|
-
* navigateTo("/somewhere"); // works
|
|
31
8
|
*/
|
|
32
|
-
export declare
|
|
33
|
-
/**
|
|
34
|
-
* The current URL pathname (e.g. `"/about"`), sourced from `pathAtom`.
|
|
35
|
-
*
|
|
36
|
-
* Reading this property inside a reactive context registers a dependency on
|
|
37
|
-
* `pathAtom`, so the context re-runs whenever the path changes.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* location.path; // "/about"
|
|
41
|
-
*/
|
|
9
|
+
export declare function createLocation(pathAtom: SuperAtomType<string>, hashAtom: AtomType<Record<string, any>>, qsAtom: AtomType<Record<string, any>>): {
|
|
42
10
|
readonly path: string;
|
|
43
|
-
/**
|
|
44
|
-
* The current URL hash fragment as a parsed plain object, sourced from
|
|
45
|
-
* `hashAtom`.
|
|
46
|
-
*
|
|
47
|
-
* The hash is parsed as `URLSearchParams` — primitive values are strings,
|
|
48
|
-
* JSON-encoded objects/arrays are automatically deserialised.
|
|
49
|
-
*
|
|
50
|
-
* Reading this property inside a reactive context registers a dependency on
|
|
51
|
-
* `hashAtom`, so the context re-runs whenever the hash state changes.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // URL: #tab=overview&page=2
|
|
55
|
-
* location.hash; // { tab: "overview", page: "2" }
|
|
56
|
-
*/
|
|
57
11
|
readonly hash: Record<string, any>;
|
|
58
|
-
/**
|
|
59
|
-
* The current URL query string as a parsed plain object, sourced from
|
|
60
|
-
* `qsAtom`.
|
|
61
|
-
*
|
|
62
|
-
* The query string is parsed via `URLSearchParams` — primitive values are
|
|
63
|
-
* strings, JSON-encoded objects/arrays are automatically deserialised.
|
|
64
|
-
*
|
|
65
|
-
* Reading this property inside a reactive context registers a dependency on
|
|
66
|
-
* `qsAtom`, so the context re-runs whenever the query string changes.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* // URL: ?q=react&page=1
|
|
70
|
-
* location.qsObj; // { q: "react", page: "1" }
|
|
71
|
-
*/
|
|
72
12
|
readonly qsObj: Record<string, any>;
|
|
73
13
|
};
|
|
74
14
|
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../lib/Router/location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../lib/Router/location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EACvC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;mBAGvB,MAAM;mBAGN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAGlB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;EAInC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
|
+
import type { AtomType, SuperAtomType } from "../Mutables/atom/atom";
|
|
2
|
+
import type { EventType } from "../Mutables/events/events";
|
|
3
|
+
import type { NavigationEventPayload } from "./navigationRequest";
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* sync, so the Router re-renders reactively.
|
|
5
|
+
* Creates a `navigateTo` function bound to the given scope atoms.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
* -
|
|
7
|
-
* is overwritten, so the user cannot navigate back to the previous URL.
|
|
8
|
-
* - Silently no-ops if navigation is currently locked (`navigationLocked()`
|
|
9
|
-
* returns `true`). Nothing is pushed/replaced and `pathAtom` is not updated.
|
|
10
|
-
* - `data` is forwarded as the state argument to the history API and can be
|
|
11
|
-
* retrieved later via `history.state`.
|
|
12
|
-
*
|
|
13
|
-
* Scroll-to-top is intentionally **not** handled here. It belongs in the
|
|
14
|
-
* router layer (`animatedRouter`'s `scrollToTop` option) so that:
|
|
15
|
-
* 1. The scroll fires at the right moment (after exit animation, before
|
|
16
|
-
* enter animation) rather than prematurely before the old page exits.
|
|
17
|
-
* 2. Nested / child routers can opt out with `scrollToTop: false` without
|
|
18
|
-
* affecting the parent.
|
|
19
|
-
*
|
|
20
|
-
* @param path - The pathname to navigate to (e.g. `"/about"`).
|
|
21
|
-
* @param replace - When `true`, calls `replaceState` instead of `pushState`.
|
|
22
|
-
* Defaults to `false`.
|
|
23
|
-
* @param data - Optional state object passed to the history API.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* navigateTo("/about"); // pushState
|
|
27
|
-
* navigateTo("/login", true); // replaceState (no new history entry)
|
|
28
|
-
* navigateTo("/profile", false, { userId: 42 }); // pushState with state data
|
|
7
|
+
* Use this factory when working with a `MatesUtils` scope to ensure
|
|
8
|
+
* SSR-safe, request-isolated navigation.
|
|
29
9
|
*/
|
|
30
|
-
export declare function
|
|
10
|
+
export declare function createNavigateTo(pathAtom: SuperAtomType<string>, navigationLocked: AtomType<boolean>, historyStateAtom: AtomType<unknown>, navigationRequestEvent: EventType<NavigationEventPayload>): (path: string, replace?: boolean, data?: any) => void;
|
|
31
11
|
//# sourceMappingURL=navigateTo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigateTo.d.ts","sourceRoot":"","sources":["../../lib/Router/navigateTo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigateTo.d.ts","sourceRoot":"","sources":["../../lib/Router/navigateTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAIlE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,EACnC,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,EACnC,sBAAsB,EAAE,SAAS,CAAC,sBAAsB,CAAC,GACxD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAsCvD"}
|
|
@@ -1,50 +1,9 @@
|
|
|
1
|
+
import { type AtomType } from "../Mutables/atom/atom";
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Creates a reactive atom holding the navigation lock state.
|
|
3
4
|
*
|
|
4
|
-
* When `true`, all navigation is suspended
|
|
5
|
-
*
|
|
6
|
-
* - `pathAtom` is hard-locked via `superAtom.lock()`, so `.set()` calls are
|
|
7
|
-
* silently ignored.
|
|
8
|
-
* - The `qsAtom → URL` effect and the `popstate` handler both bail out early.
|
|
9
|
-
* - The `hashAtom → URL` effect and the `hashchange` handler both bail out early.
|
|
10
|
-
*
|
|
11
|
-
* When `false` (the default), all navigation works normally.
|
|
12
|
-
*
|
|
13
|
-
* Prefer using the `lockNavigation()` / `unlockNavigation()` helpers over
|
|
14
|
-
* calling `navigationLocked.set()` directly.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* import { navigationLocked } from "mates";
|
|
18
|
-
*
|
|
19
|
-
* navigationLocked(); // false — unlocked by default
|
|
20
|
-
*/
|
|
21
|
-
export declare const navigationLocked: import("../Mutables/atom/atom").AtomType<boolean>;
|
|
22
|
-
/**
|
|
23
|
-
* Locks navigation across the entire Router module.
|
|
24
|
-
*
|
|
25
|
-
* After calling this, the following all become no-ops until
|
|
26
|
-
* `unlockNavigation()` is called:
|
|
27
|
-
* - `navigateTo()`
|
|
28
|
-
* - `pathAtom.set()` (hard-locked via `superAtom`)
|
|
29
|
-
* - `qsAtom` → URL writes
|
|
30
|
-
* - `hashAtom` → URL writes
|
|
31
|
-
* - `popstate` / `hashchange` → atom updates
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* lockNavigation();
|
|
35
|
-
* navigateTo("/somewhere"); // no-op
|
|
36
|
-
*/
|
|
37
|
-
export declare const lockNavigation: () => void;
|
|
38
|
-
/**
|
|
39
|
-
* Unlocks navigation, re-enabling all navigation operations that were
|
|
40
|
-
* suppressed by `lockNavigation()`.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* lockNavigation();
|
|
44
|
-
* navigateTo("/somewhere"); // no-op
|
|
45
|
-
*
|
|
46
|
-
* unlockNavigation();
|
|
47
|
-
* navigateTo("/somewhere"); // works — pushState + pathAtom.set()
|
|
5
|
+
* When `true`, all navigation is suspended. When `false` (default),
|
|
6
|
+
* navigation works normally.
|
|
48
7
|
*/
|
|
49
|
-
export declare
|
|
8
|
+
export declare function createNavigationLocked(): AtomType<boolean>;
|
|
50
9
|
//# sourceMappingURL=navigationLock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationLock.d.ts","sourceRoot":"","sources":["../../lib/Router/navigationLock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigationLock.d.ts","sourceRoot":"","sources":["../../lib/Router/navigationLock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5D;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,QAAQ,CAAC,OAAO,CAAC,CAE1D"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EventType } from "../Mutables/events/events";
|
|
2
|
+
/** Internal event payload — what navigateTo() / pathAtom fire (no `next`). */
|
|
3
|
+
export interface NavigationEventPayload {
|
|
2
4
|
to: string;
|
|
3
5
|
from: string;
|
|
4
6
|
}
|
|
@@ -13,49 +15,12 @@ interface NavigationEventPayload {
|
|
|
13
15
|
export interface NavigationRequestDetail {
|
|
14
16
|
to: string;
|
|
15
17
|
from: string;
|
|
16
|
-
/**
|
|
17
|
-
* Proceed with the navigation.
|
|
18
|
-
* If not called before the callback settles, navigation is cancelled.
|
|
19
|
-
*/
|
|
18
|
+
/** Proceed with the navigation. If not called before the callback settles, navigation is cancelled. */
|
|
20
19
|
next: () => void;
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
24
|
-
* navigation is committed.
|
|
25
|
-
* interception.
|
|
22
|
+
* Creates a low-level event bus fired by `navigateTo()` / `popstate`
|
|
23
|
+
* immediately before navigation is committed.
|
|
26
24
|
*/
|
|
27
|
-
export declare
|
|
28
|
-
/**
|
|
29
|
-
* Component-scoped hook that fires whenever `navigateTo()` is called,
|
|
30
|
-
* **before** the navigation is committed.
|
|
31
|
-
*
|
|
32
|
-
* The callback receives `{ to, from, next }`:
|
|
33
|
-
* - Call `next()` to allow the navigation.
|
|
34
|
-
* - Do **not** call `next()` to cancel it.
|
|
35
|
-
* - The callback may be `async` — navigation stays locked until `next()` is
|
|
36
|
-
* called or the callback settles without calling it.
|
|
37
|
-
*
|
|
38
|
-
* Must be called in the **outer function** of a mates component.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* import { onNavigationRequest } from "mates";
|
|
43
|
-
* import { Confirm } from "mates-ui";
|
|
44
|
-
*
|
|
45
|
-
* const EditorPage = () => {
|
|
46
|
-
* const isDirty = atom(false);
|
|
47
|
-
*
|
|
48
|
-
* onNavigationRequest(async ({ next }) => {
|
|
49
|
-
* if (!isDirty()) { next(); return; } // clean — let it through
|
|
50
|
-
* const leave = await Confirm("Leave without saving?");
|
|
51
|
-
* if (leave) { isDirty.set(false); next(); } // confirmed — proceed
|
|
52
|
-
* // no next() call → navigation is cancelled
|
|
53
|
-
* });
|
|
54
|
-
*
|
|
55
|
-
* return () => html`…`;
|
|
56
|
-
* };
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare const onNavigationRequest: (fn: (detail: NavigationRequestDetail) => void | Promise<void>) => void;
|
|
60
|
-
export {};
|
|
25
|
+
export declare function createNavigationRequestEvent(): EventType<NavigationEventPayload>;
|
|
61
26
|
//# sourceMappingURL=navigationRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationRequest.d.ts","sourceRoot":"","sources":["../../lib/Router/navigationRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigationRequest.d.ts","sourceRoot":"","sources":["../../lib/Router/navigationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAK3D,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAID;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAEhF"}
|
|
@@ -1,42 +1,22 @@
|
|
|
1
|
+
import type { AtomType } from "../Mutables/atom/atom";
|
|
2
|
+
import { type SuperAtomType } from "../Mutables/atom/atom";
|
|
3
|
+
import type { EventType } from "../Mutables/events/events";
|
|
4
|
+
import type { NavigationEventPayload } from "./navigationRequest";
|
|
1
5
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Provides `pathAtom` — the single source of truth for the current URL
|
|
5
|
-
* pathname inside the Router module.
|
|
6
|
-
*
|
|
7
|
-
* `pathAtom` is a `superAtom` (a lockable reactive atom) initialised with
|
|
8
|
-
* `window.location.pathname` at module load time. Because it is a
|
|
9
|
-
* `superAtom`, it can be hard-locked and hard-unlocked in response to the
|
|
10
|
-
* navigation lock state, which causes every subscriber (including the Router
|
|
11
|
-
* itself) to ignore updates while navigation is locked.
|
|
12
|
-
*
|
|
13
|
-
* Three browser events keep `pathAtom` in sync with navigation that happens
|
|
14
|
-
* outside of `navigateTo`:
|
|
15
|
-
* - `popstate` — browser back / forward buttons
|
|
16
|
-
* - `hashchange` — hash-only navigations that also change the pathname
|
|
17
|
-
* - `navigate` — Navigation API (supported in modern browsers)
|
|
18
|
-
*
|
|
19
|
-
* Any component or effect that reads `pathAtom()` will automatically re-run
|
|
20
|
-
* whenever the path changes.
|
|
21
|
-
*
|
|
22
|
-
* **Do NOT set `pathAtom` directly.** Use `navigateTo()` instead so that
|
|
23
|
-
* `window.history` and the atom are always updated together.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* pathAtom.get(); // "/current/path"
|
|
27
|
-
* pathAtom(); // same — tracked read (registers a reactive dependency)
|
|
28
|
-
*
|
|
29
|
-
* // Do NOT do this:
|
|
30
|
-
* // pathAtom.set("/somewhere"); // bypasses history API
|
|
31
|
-
* // Use instead:
|
|
32
|
-
* // navigateTo("/somewhere");
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* Reactive atom holding the current `window.location.pathname`.
|
|
6
|
+
* Creates a reactive superAtom holding the current `window.location.pathname`.
|
|
36
7
|
*
|
|
37
8
|
* Implemented as a `superAtom` so it can be locked/unlocked in step with
|
|
38
|
-
* `navigationLocked()`.
|
|
9
|
+
* `navigationLocked()`. Prefer reading via the call syntax (`pathAtom()`)
|
|
39
10
|
* inside reactive contexts so that the caller re-renders on path changes.
|
|
11
|
+
*
|
|
12
|
+
* **Do NOT set `pathAtom` directly.** Use `navigateTo()` instead.
|
|
13
|
+
*
|
|
14
|
+
* @param navigationLocked - Reactive atom; when true, popstate/hashchange/navigate
|
|
15
|
+
* events are suppressed and beforeunload guard is active.
|
|
16
|
+
* @param historyStateAtom - Reactive atom; kept in sync with `window.history.state`
|
|
17
|
+
* during popstate events.
|
|
18
|
+
* @param navigationRequestEvent - Event bus; fired before navigation is committed
|
|
19
|
+
* so subscribers can cancel via lockNavigation().
|
|
40
20
|
*/
|
|
41
|
-
export declare
|
|
21
|
+
export declare function createPathAtom(navigationLocked: AtomType<boolean>, historyStateAtom: AtomType<unknown>, navigationRequestEvent: EventType<NavigationEventPayload>): SuperAtomType<string>;
|
|
42
22
|
//# sourceMappingURL=pathAtom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pathAtom.d.ts","sourceRoot":"","sources":["../../lib/Router/pathAtom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pathAtom.d.ts","sourceRoot":"","sources":["../../lib/Router/pathAtom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,EACnC,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,EACnC,sBAAsB,EAAE,SAAS,CAAC,sBAAsB,CAAC,GACxD,aAAa,CAAC,MAAM,CAAC,CAsEvB"}
|
package/dist/Router/qsAtom.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { type AtomType } from "../Mutables/atom/atom";
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Creates a reactive atom holding the current URL query string as a parsed object.
|
|
3
4
|
*
|
|
4
|
-
* Hydrated from `window.location.search` at
|
|
5
|
+
* Hydrated from `window.location.search` at creation time. All reads are
|
|
5
6
|
* reactive — any effect or component that calls `qsAtom()` will re-run
|
|
6
7
|
* whenever the query string state changes.
|
|
7
8
|
*
|
|
8
9
|
* Setting the atom via `qsAtom.set(obj)` automatically serialises the new
|
|
9
10
|
* value back to the URL query string using `history.replaceState`.
|
|
11
|
+
*
|
|
12
|
+
* @param navigationLocked - A reactive atom; when `true`, URL writes and
|
|
13
|
+
* popstate→atom updates are suppressed.
|
|
10
14
|
*/
|
|
11
|
-
export declare
|
|
15
|
+
export declare function createQsAtom(navigationLocked: AtomType<boolean>): AtomType<Record<string, any>>;
|
|
12
16
|
//# sourceMappingURL=qsAtom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qsAtom.d.ts","sourceRoot":"","sources":["../../lib/Router/qsAtom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qsAtom.d.ts","sourceRoot":"","sources":["../../lib/Router/qsAtom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAmC5D;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,GAClC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAuB/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function isHmrEnabled(): boolean;
|
|
2
|
+
export declare function getHotComponentImpl<T extends Function>(component: T): T;
|
|
3
|
+
export declare function getHotComponentId(component: unknown): string | null;
|
|
4
|
+
export declare function getHotComponentFile(component: unknown): string | null;
|
|
5
|
+
export declare function getHotComponentExport(component: unknown): string | null;
|
|
6
|
+
//# sourceMappingURL=hmr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../lib/Template/hmr.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,IAAI,OAAO,CAItC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,QAAQ,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAMvE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAInE;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIrE;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIvE"}
|
package/dist/Template/x-x.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-x.d.ts","sourceRoot":"","sources":["../../lib/Template/x-x.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"x-x.d.ts","sourceRoot":"","sources":["../../lib/Template/x-x.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,2BAA2B,CAAC;AAYhF,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,MAAM,CAAsB;IAE7B,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,IAAI,SAAe;IAC1B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,WAAW,CAEV;IACT,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAU;IAE3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,UAAU,GAAG,EAAE,MAAM,GAAG,CAAC,CAAa;IAEzD,gFAAgF;IACzE,UAAU,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,EAAE,CAAM;IAEpD,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,EAAE,KAAK,EAAE,GAAG;IAIvC,WAAW,SAAM;IAExB,iGAAiG;IAC1F,MAAM,SAAK;IAClB,sEAAsE;IAC/D,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAQ;IACjD,kFAAkF;IAC3E,cAAc,SAAK;IAE1B,+CAA+C;IACxC,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,EAAE,CAAM;IACzD,2EAA2E;IACpE,WAAW,EAAE,OAAO,CAAQ;IAG5B,qBAAqB,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,CAAa;IACnD,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI;IAKjC,aAAa,EAAE,IAAI,GAAG,gBAAgB,CAAQ;IAC9C,UAAU,EAAE,IAAI,GAAG,gBAAgB,CAAQ;;IAwBlD,IAAI,KAAK,CAAC,GAAG,qBAAA,EAGZ;IAED,IAAI,KAAK,wBAER;IAEM,OAAO,EAAE,GAAG,CAAC;IAEpB,OAAO,CAAC,cAAc,CAAS;IAM/B;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAmBxB,IAAI,IAAI,CAAC,GAAG,KAAA,EAyBX;IAED,IAAI,IAAI,QAEP;IAMD,gBAAgB;IAIhB,iBAAiB;IAgCjB,oBAAoB;IAqBpB,OAAO,CAAC,qBAAqB,CAa3B;IAEF,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ;IAazC,OAAO;IA6CP,OAAO,CAAC,eAAe;IAsFhB,WAAW;IAKlB,OAAO,CAAC,kBAAkB;CAiF3B"}
|
package/dist/Template/x.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import type { ComponentType } from "./x-x.types";
|
|
1
|
+
import type { ComponentType, Props } from "./x-x.types";
|
|
2
2
|
export declare const x: <T extends Record<string, any>>(viewFn: ComponentType<T>, props?: T) => import("lit-html").TemplateResult<1>;
|
|
3
3
|
export declare const view: <T extends Record<string, any>>(viewFn: ComponentType<T>, props?: T) => import("lit-html").TemplateResult<1>;
|
|
4
4
|
/** @alias x */
|
|
5
5
|
export declare const template: <T extends Record<string, any>>(viewFn: ComponentType<T>, props?: T) => import("lit-html").TemplateResult<1>;
|
|
6
|
-
export declare const renderX: <T extends Record<string, any>>(viewFn: ComponentType<T>, element: HTMLElement
|
|
6
|
+
export declare const renderX: <T extends Record<string, any>>(viewFn: ComponentType<T>, element: HTMLElement) => import("lit-html").RootPart;
|
|
7
|
+
/**
|
|
8
|
+
* Wraps a component in a scope provider that initializes all framework
|
|
9
|
+
* utilities (RouterUtils, FetchUtils, StorageUtils, ThemeUtils).
|
|
10
|
+
*
|
|
11
|
+
* The returned component creates scopes in its outer function, so
|
|
12
|
+
* `scope()` has a valid host context. Child components can then access
|
|
13
|
+
* them via `useRouter()` / `useFetch()` / etc.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const App = WithScope(AppShell, () => ({}));
|
|
17
|
+
* render(App, document.getElementById("app")!);
|
|
18
|
+
*/
|
|
19
|
+
export declare const WithScope: <T extends Record<string, any>>(propsFn: Props<T>) => () => import("lit-html").TemplateResult<1>;
|
|
7
20
|
/** @alias renderX */
|
|
8
|
-
export declare const renderTemplate: <T extends Record<string, any>>(viewFn: ComponentType<T>, element: HTMLElement
|
|
21
|
+
export declare const renderTemplate: <T extends Record<string, any>>(viewFn: ComponentType<T>, element: HTMLElement) => import("lit-html").RootPart;
|
|
9
22
|
//# sourceMappingURL=x.d.ts.map
|
package/dist/Template/x.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../lib/Template/x.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../lib/Template/x.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAExD,eAAO,MAAM,CAAC,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,QAAQ,aAAa,CAAC,CAAC,CAAC,EACxB,QAAO,CAAW,yCAGnB,CAAC;AAGF,eAAO,MAAM,IAAI,GARC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACrC,aAAa,CAAC,CAAC,CAAC,UACjB,CAAC,yCAMW,CAAC;AACtB,eAAe;AACf,eAAO,MAAM,QAAQ,GAVH,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACrC,aAAa,CAAC,CAAC,CAAC,UACjB,CAAC,yCAQe,CAAC;AAE1B,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,QAAQ,aAAa,CAAC,CAAC,CAAC,EACxB,SAAS,WAAW,gCAGrB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,+CAkBzE,CAAC;AAEF,qBAAqB;AACrB,eAAO,MAAM,cAAc,GAxCH,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAC3C,aAAa,CAAC,CAAC,CAAC,WACf,WAAW,gCAsCe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../lib/Utils/cookie.ts"],"names":[],"mappings":"AAWA,wBAAgB,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BrD"}
|
package/dist/Utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/Utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/Utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncAction.d.ts","sourceRoot":"","sources":["../../lib/actions/asyncAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asyncAction.d.ts","sourceRoot":"","sources":["../../lib/actions/asyncAction.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAGV,kBAAkB,EAClB,qBAAqB,EAGtB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAK5B,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EACpE,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE,kBAAkB,GAC3B,qBAAqB,CAAC,CAAC,CAAC,CAoO1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../lib/css-in-js/stylesheet.ts"],"names":[],"mappings":"AAOA,OA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AED;;;;OAIG;IACH,SAAS,IAAI,MAAM;CAOpB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,UAAU,IAAI;IAC5B,GAAG,EAAE,KAAK,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAC;CAC9D,CAiDA;AAID,KAAK,KAAK,GAAG,CAAC,CAAC,SAAS,aAAa,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AAa1D;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,kBAAkB,CAKnD;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAW1C;AAID;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAOvE;AAID;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,aAAa,EAC/C,KAAK,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,gBAAgB,GACzB,EAAE,CAAC,CAAC,CAAC,CAYP;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI9C;AAID;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ThemeAtomType } from "../Mutables/Extended Atoms/themeAtom";
|
|
2
1
|
/**
|
|
3
2
|
* A flat map of token names to CSS values.
|
|
4
3
|
* Keys may include or omit the leading "--".
|
|
@@ -33,13 +32,6 @@ export type ThemeMode<T extends ThemesInput> = "auto" | (string & keyof T);
|
|
|
33
32
|
export type GlobalThemeResult<T extends ThemesInput> = {
|
|
34
33
|
/** Plain object: tokenKey → "--token-key" (the CSS variable name, no var() wrapper). */
|
|
35
34
|
cssVars: CssVars<T[keyof T]>;
|
|
36
|
-
/**
|
|
37
|
-
* The singleton theme atom shared across the entire app.
|
|
38
|
-
* Call `.setToDark()`, `.setToLight()`, `.setToAuto()`, or `.toggle()`.
|
|
39
|
-
* Reads/writes localStorage & data-theme on <html>.
|
|
40
|
-
* Always the same instance as `themeAtom()` from mates.
|
|
41
|
-
*/
|
|
42
|
-
themeAtom: ThemeAtomType;
|
|
43
35
|
};
|
|
44
36
|
/**
|
|
45
37
|
* Define your application's themes as named token maps.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../lib/css-in-js/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../lib/css-in-js/theme.ts"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,aAAa,IAAI;IAC7C,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,IAAI,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,IAAI;IACrD,wFAAwF;IACxF,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC;AA4CF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAC/C,MAAM,EAAE,CAAC,GACR,iBAAiB,CAAC,CAAC,CAAC,CAgDtB;AAID;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAQtE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -25,27 +25,28 @@ export { $, type AnimatedIfConfig, type AnimatedXConfig, type AttrMap, type Attr
|
|
|
25
25
|
export type { Measurements } from "./Directives/$";
|
|
26
26
|
export { injectMatesAnimations, MA, type MatesAnimationClass, } from "./Directives/animationClasses";
|
|
27
27
|
export { type DevToolsHooks, installDevToolsHooks, isDevToolsInstalled, } from "./devtools";
|
|
28
|
-
export { type AfterInterceptor, type BeforeInterceptor, buildRequestUrl,
|
|
28
|
+
export { type AfterInterceptor, type BeforeInterceptor, buildRequestUrl, type ErrorInterceptor, type ErrorType, ErrorTypes, type FetchActionConfig, FetchClient, type FetchRequest, isApiResponseSuccess, runWithGlobalInterceptors, setSSRApiLookup, setSSRRequest, withAuth, withBaseUrl, withLogging, } from "./Fetch";
|
|
29
29
|
export type { DBInstanceType, DBTableAtom, DBTableType, IDBKey, IndexDBConfig, IndexQueryBuilderType, MigratorType, RangeBuilder, TransactionScopeType, } from "./indexdb";
|
|
30
30
|
export { indexDB } from "./indexdb";
|
|
31
|
-
export {
|
|
31
|
+
export { FetchUtils, MatesUtils, RouterUtils, StorageUtils, ThemeUtils, } from "./MatesUtils";
|
|
32
|
+
export { _, _subToView, type AtomConfig, type AtomType, atom, type CacheAtomType, type ChangeFlagAtomType, cacheAtom, changeFlagAtom, createReactiveRunner, createTimedAtom, debouncedAtom, delayAtom, df, type EventType, effect, event, type FormAtom, formAtom, getCurrentHost, getGlobalScopeClasses, getParentScope, getParentScope as getScope, type IAtomType, iAtom, iAtom as signal, isEmail, isMax, isMin, isPattern, isRequired, mapAtom, maxLength, memo, minLength, on, on as watch, onAllMount, onCleanup, onError, onMount, onPaint, onReferenceChange, type PaginationAtomType, paginationAtom, type Ref, ref, registerGlobalScopes, type SetterReturnType, type StorageAtomType, type StorageValue, type Subscribable, type SuperAtomOptions, type SuperAtomType, safetyCheck, scope, setAtom, setRef, setter, superAtom, type ThemeAtomType, type ThemeValue, throttledAtom, trackAndSubscribe, useContext, useFetch, useRouter, useScope, useState, useStorage, useStore, useTheme, useUtils, type ValidateAllResult, type ValidatorFn, validateAll, validateReactiveFunction, withHost, type XTabEventType, xTabEvent, } from "./Mutables";
|
|
32
33
|
export { store } from "./Mutables/store";
|
|
33
34
|
export type { MiniDBInstance, MiniDBList, MiniDBMigrateFn, MiniDBMigrator, } from "./minidb";
|
|
34
35
|
export { miniDB } from "./minidb";
|
|
35
36
|
export { onBlur, onClickAway, onCopy, onCut, onDOMReady, onFileDrop, onFocus, onInterval, onKeyDown, onKeyUp, onNavigate, onOffline, onOnline, onPaste, onResize, onScroll, onSelectionChange, onSocket, onStorageChange, onTimeout, onUpdate, onVisibilityChange, onWindow, onWindowCapture, onWindowResize, onWindowScroll, type WheelDirectionEvent, type WindowHookEventName, type WindowHookHandler, } from "./on";
|
|
36
37
|
export type { DialogOptions, FloatingContainer, FloatingContainerOptions, Placement, PopupOpenAtom, PopupOptions, PopupPlacement, PortalOptions, } from "./portals";
|
|
37
38
|
export { computeAutoPlacement, createFloatingContainer, dialog, getCoords, placementTransform, popup, portal, } from "./portals";
|
|
38
|
-
export { type AnimatedRouteConfig, type AnimatedRouterOptions, animatedRouter, buildPath,
|
|
39
|
+
export { type AnimatedRouteConfig, type AnimatedRouterOptions, animatedRouter, buildPath, isPathMatching, type NavigationRequestDetail, Router, replaceParams, route, } from "./Router";
|
|
39
40
|
export type { WsConfig, WsConnection, WsStatus } from "./socket";
|
|
40
41
|
export { ws } from "./socket";
|
|
41
|
-
export { isSSR, setSSRMode } from "./ssr";
|
|
42
|
+
export { type Ctx, decrementSsrAsyncCounter, done, getSsrAsyncCounter, incrementSsrAsyncCounter, isDev, isSSR, setSSRMode, setSsrDoneCallback, useCtx, useIsSSR, } from "./ssr";
|
|
42
43
|
export type { Component, ComponentElement, ComponentType, HostElement, LazyComponent, Props, Setter, TemplateFn, } from "./Template";
|
|
43
|
-
export { cleanupScheduler, effectScheduler, globalScheduler, isAsyncValue, renderX, resetComponentState, resolveAsyncValue, unwrapModule, x, } from "./Template";
|
|
44
|
+
export { cleanupScheduler, effectScheduler, globalScheduler, isAsyncValue, renderX, resetComponentState, resolveAsyncValue, unwrapModule, WithScope, x, } from "./Template";
|
|
44
45
|
export { renderTemplate, template, view } from "./Template/x";
|
|
45
46
|
export { createManagedTimer } from "./Timers";
|
|
46
47
|
export { assertComponentOuterContext, assertNotInRestrictedContext, componentRunningStatus, isInRestrictedContext, } from "./TrackState/componentStatus";
|
|
47
48
|
export { addStoreBeingRead, getStoresBeingRead, isEffectRunning, isReadTrackingEnabled, popEffect, pushEffect, restoreTracking, saveAndEnableTracking, startTracking, stopTracking, type TrackingSnapshot, } from "./TrackState/readTracking";
|
|
48
|
-
export { Context, type Countdown, type CountdownState, chunk, clamp, countdown, deepClone, deepFreeze, get, getAllProps, groupBy, type IterateDeeplyCallback, isAction, isAsyncAction, isAsyncFunction, isAtom, isChannel, isConfirmationEvent, isDefinedAsGetter, isEmpty, isEvent, isFunction, isGetter, isSetter, isUnit, iterateDeeply, log, logError, logWarning, type MatesLogEventDetail, matesLogEvent, merge, NotificationManager, omit, onceIdle, pick, range as arrayRange, registerCleanup, type SvgConfig, SyncNotificationManager, safeClone, safeSVG, safeSVG as unsafeSVG, uniqBy, uuid, uuid as randomId, } from "./Utils";
|
|
49
|
+
export { Context, type Countdown, type CountdownState, chunk, clamp, countdown, deepClone, deepFreeze, get, getAllProps, getCookieObj, groupBy, type IterateDeeplyCallback, isAction, isAsyncAction, isAsyncFunction, isAtom, isChannel, isConfirmationEvent, isDefinedAsGetter, isEmpty, isEvent, isFunction, isGetter, isSetter, isUnit, iterateDeeply, log, logError, logWarning, type MatesLogEventDetail, matesLogEvent, merge, NotificationManager, omit, onceIdle, pick, range as arrayRange, registerCleanup, type SvgConfig, SyncNotificationManager, safeClone, safeSVG, safeSVG as unsafeSVG, uniqBy, uuid, uuid as randomId, } from "./Utils";
|
|
49
50
|
export { type DateInput, type DateUnit, type DateValues, date, getAllTimezones, getCalendar, getLocale, getMonths, getTimezoneOffset, type MatesDate, type MonthInfo, setLocale, setTimezone, setTimezoneOffset, type TimezoneEntry, } from "./Utils/Date";
|
|
50
51
|
export { ZeroPromise } from "./ZeroPromise";
|
|
51
52
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC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