gemi 0.107.0 → 0.108.0
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/bin/gemi.js +170 -19
- package/dist/bin/gemi.js.map +6 -5
- package/dist/{chunk-vbm1ng3f.js → chunk-2mhx4e4g.js} +1 -1
- package/dist/{chunk-6zqqec7r.js → chunk-b9av1sgb.js} +1 -1
- package/dist/{chunk-z38355mx.js → chunk-cewyag0d.js} +2 -2
- package/dist/{chunk-z38355mx.js.map → chunk-cewyag0d.js.map} +1 -1
- package/dist/chunk-h2hdpm70.js +24 -0
- package/dist/{chunk-6tyf0h6k.js.map → chunk-h2hdpm70.js.map} +6 -5
- package/dist/{chunk-5mj7a141.js → chunk-ncfxmtd5.js} +4 -4
- package/dist/{chunk-5mj7a141.js.map → chunk-ncfxmtd5.js.map} +3 -3
- package/dist/client/ClientRouter.d.ts +2 -0
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/index.js +4 -3
- package/dist/client/index.js.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/http/index.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/server/httpProd.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/staticFile.d.ts +20 -1
- package/dist/server/staticFile.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/router/createComponentTree.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6tyf0h6k.js +0 -24
- /package/dist/{chunk-vbm1ng3f.js.map → chunk-2mhx4e4g.js.map} +0 -0
- /package/dist/{chunk-6zqqec7r.js.map → chunk-b9av1sgb.js.map} +0 -0
|
@@ -13,6 +13,8 @@ export declare const Tree: import("react").MemoExoticComponent<(props: {
|
|
|
13
13
|
tree: ComponentTree;
|
|
14
14
|
entries: string[];
|
|
15
15
|
pathname: string;
|
|
16
|
+
/** Index into `entries` this level of the tree renders. */
|
|
17
|
+
depth?: number;
|
|
16
18
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
17
19
|
export declare const ClientRouter: (props: {
|
|
18
20
|
viewImportMap?: Record<string, ReturnType<typeof lazy>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAqB,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAK/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,OAAO,EAA6C,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpG,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAWjC,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;AA8FD,eAAO,MAAM,IAAI,8CACP;
|
|
1
|
+
{"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAqB,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAK/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,OAAO,EAA6C,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpG,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAWjC,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;AA8FD,eAAO,MAAM,IAAI,8CACP;IACN,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,6CAoDF,CAAC;AAsOF,eAAO,MAAM,YAAY,GAAI,OAAO;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACxD,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAClD,UAAU,EAAE,aAAa,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnE,iEAAiE;IACjE,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,4CA6CA,CAAC"}
|
package/dist/client/index.js
CHANGED
|
@@ -1705,8 +1705,8 @@ var Route = memo((props) => {
|
|
|
1705
1705
|
});
|
|
1706
1706
|
});
|
|
1707
1707
|
var Tree = memo((props) => {
|
|
1708
|
-
const { entries, tree, pathname, action } = props;
|
|
1709
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: tree.filter(([path]) => entries
|
|
1708
|
+
const { entries, tree, pathname, action, depth = 0 } = props;
|
|
1709
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: tree.filter(([path]) => path === entries[depth]).map((node, slot) => {
|
|
1710
1710
|
const [path, subtree] = node;
|
|
1711
1711
|
if (subtree.length > 0) return /* @__PURE__ */ jsx(Route, {
|
|
1712
1712
|
action,
|
|
@@ -1716,7 +1716,8 @@ var Tree = memo((props) => {
|
|
|
1716
1716
|
action,
|
|
1717
1717
|
tree: subtree,
|
|
1718
1718
|
entries,
|
|
1719
|
-
pathname
|
|
1719
|
+
pathname,
|
|
1720
|
+
depth: depth + 1
|
|
1720
1721
|
})
|
|
1721
1722
|
}, `slot-${slot}`);
|
|
1722
1723
|
return /* @__PURE__ */ jsx(Route, {
|