@v-miniapp/router 1.0.5 → 1.0.8
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/index.js +3 -3
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as b, Fragment as tu, jsxs as es } from "react/jsx-runtime";
|
|
2
2
|
import nu, { useRef as G, useEffect as N, isValidElement as au, useCallback as iu, useState as ae, Suspense as rs, Fragment as ou, createContext as su, useMemo as ie, useContext as uu } from "react";
|
|
3
|
-
import { create as cu } from "zustand";
|
|
4
3
|
import { nanoid as Tn } from "nanoid";
|
|
4
|
+
import { create as cu } from "zustand";
|
|
5
5
|
const fu = () => /* @__PURE__ */ b(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
@@ -2136,7 +2136,7 @@ const k = new cf({ emitCustomEvent: !0 }), vf = (e) => {
|
|
|
2136
2136
|
prevHistories: c
|
|
2137
2137
|
});
|
|
2138
2138
|
}, q = J({}, s.animation, d.animation), p = o.animation?.mode || "view-transition";
|
|
2139
|
-
q.type && q.type !== "none" && !wn ? (ge(q.type, f?.replace ? "REPLACE" : "PUSH"), p === "view-transition" ? document.startViewTransition(() => y()) : y()) : (ge("none", f?.replace ? "REPLACE" : "PUSH"), y());
|
|
2139
|
+
q.type && q.type !== "none" && !wn ? (ge(q.type, f?.replace ? "REPLACE" : "PUSH"), p === "view-transition" && document.startViewTransition ? document.startViewTransition(() => y()) : y()) : (ge("none", f?.replace ? "REPLACE" : "PUSH"), y());
|
|
2140
2140
|
} else if (typeof a == "number") {
|
|
2141
2141
|
const f = i, h = c[c.length - 1], l = J({}, u, {
|
|
2142
2142
|
[h.location.key]: f?.animation ? { animation: a > 0 ? "none" : f.animation } : {}
|
|
@@ -2174,7 +2174,7 @@ const k = new cf({ emitCustomEvent: !0 }), vf = (e) => {
|
|
|
2174
2174
|
nextHistories: l
|
|
2175
2175
|
});
|
|
2176
2176
|
const I = o.animation?.mode || "view-transition";
|
|
2177
|
-
A.type && A.type !== "none" && !wn ? (ge(A.type, f ? "POP" : "PUSH"), I === "view-transition" ? document.startViewTransition(
|
|
2177
|
+
A.type && A.type !== "none" && !wn ? (ge(A.type, f ? "POP" : "PUSH"), I === "view-transition" && document.startViewTransition ? document.startViewTransition(
|
|
2178
2178
|
() => e({ histories: l, pageStates: h })
|
|
2179
2179
|
) : e({ histories: l, pageStates: h })) : (ge("none", f ? "POP" : "PUSH"), e({ histories: l, pageStates: h })), Zo({
|
|
2180
2180
|
history: l[l.length - 1],
|