gemi 0.13.6 → 0.13.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAqB,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAqB/E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;KACrC;CACF;
|
|
1
|
+
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAqB,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAqB/E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;KACrC;CACF;AAgND,eAAO,MAAM,YAAY,GAAI,OAAO;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACxD,UAAU,EAAE,aAAa,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CACpD,4CAuCA,CAAC"}
|
package/dist/client/index.js
CHANGED
|
@@ -31709,7 +31709,7 @@ const Routes = (props) => {
|
|
|
31709
31709
|
const { fetch: fetch2, host } = useContext(HttpClientContext);
|
|
31710
31710
|
const { updatePrefecthedData } = useContext(QueryManagerContext);
|
|
31711
31711
|
const { routerSubject, updatePageData, fetchRouteCSS } = useContext(ClientRouterContext);
|
|
31712
|
-
const {
|
|
31712
|
+
const { updateDictionary } = useContext(I18nContext);
|
|
31713
31713
|
const [routeState, setRouteState] = useState({
|
|
31714
31714
|
params: routerSubject.getValue().params,
|
|
31715
31715
|
search: routerSubject.getValue().search,
|
|
@@ -31739,7 +31739,6 @@ const Routes = (props) => {
|
|
|
31739
31739
|
const [res] = await Promise.all([
|
|
31740
31740
|
fetch2(url),
|
|
31741
31741
|
fetchRouteCSS(pathname),
|
|
31742
|
-
fetchTranslations(pathname, void 0),
|
|
31743
31742
|
...views.map((component) => {
|
|
31744
31743
|
var _a2;
|
|
31745
31744
|
if (!(window == null ? void 0 : window.loaders)) return Promise.resolve();
|
|
@@ -31750,6 +31749,7 @@ const Routes = (props) => {
|
|
|
31750
31749
|
if (res.ok) {
|
|
31751
31750
|
const {
|
|
31752
31751
|
data,
|
|
31752
|
+
i18n,
|
|
31753
31753
|
prefetchedData,
|
|
31754
31754
|
breadcrumbs,
|
|
31755
31755
|
directive = {},
|
|
@@ -31763,6 +31763,7 @@ const Routes = (props) => {
|
|
|
31763
31763
|
}
|
|
31764
31764
|
updatePageData(data, breadcrumbs);
|
|
31765
31765
|
updatePrefecthedData(prefetchedData);
|
|
31766
|
+
updateDictionary((i18n == null ? void 0 : i18n.dictionary) ?? {});
|
|
31766
31767
|
if (is404) {
|
|
31767
31768
|
startTransition(() => {
|
|
31768
31769
|
setRouteState((state2) => ({
|
|
@@ -31779,12 +31780,12 @@ const Routes = (props) => {
|
|
|
31779
31780
|
}, [
|
|
31780
31781
|
routerSubject,
|
|
31781
31782
|
fetchRouteCSS,
|
|
31782
|
-
fetchTranslations,
|
|
31783
31783
|
fetch2,
|
|
31784
31784
|
host,
|
|
31785
31785
|
replace,
|
|
31786
31786
|
updatePageData,
|
|
31787
|
-
updatePrefecthedData
|
|
31787
|
+
updatePrefecthedData,
|
|
31788
|
+
updateDictionary
|
|
31788
31789
|
]);
|
|
31789
31790
|
return /* @__PURE__ */ jsx(RouteStateProvider, { state: routeState, children: /* @__PURE__ */ jsx(
|
|
31790
31791
|
Tree,
|