gomtm 0.0.278 → 0.0.280

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,7 +1,7 @@
1
1
  import { Message, PartialMessage } from "@bufbuild/protobuf";
2
2
  import { PropsWithChildren } from "react";
3
3
  import { MethodUnaryDescriptor } from "../connectquery";
4
- export declare function WithConnectHydrate<I extends Message<I>, O extends Message<O>>(props: {
4
+ export declare function PrefetchConnectInfiniteQuery<I extends Message<I>, O extends Message<O>>(props: {
5
5
  methodSig: MethodUnaryDescriptor<I, O>;
6
6
  input?: PartialMessage<I>;
7
7
  } & PropsWithChildren): Promise<import("react").JSX.Element>;
@@ -38,7 +38,7 @@ import { jsx } from "react/jsx-runtime";
38
38
  import { HydrationBoundary, QueryClient, dehydrate } from "@tanstack/react-query";
39
39
  import { callUnaryMethod, createConnectInfiniteQueryKey } from "../connectquery";
40
40
  import { createTransport } from "../mtmFetcher";
41
- function WithConnectHydrate(props) {
41
+ function PrefetchConnectInfiniteQuery(props) {
42
42
  return __async(this, null, function* () {
43
43
  const { methodSig, input, children } = props;
44
44
  const queryClient = new QueryClient();
@@ -55,5 +55,5 @@ function WithConnectHydrate(props) {
55
55
  });
56
56
  }
57
57
  export {
58
- WithConnectHydrate
58
+ PrefetchConnectInfiniteQuery
59
59
  };
@@ -1,4 +1,4 @@
1
1
  import { ComponentProps, PropsWithChildren } from "react";
2
2
  import { Message } from "..";
3
3
  import { ListViewProvider } from "./ListViewProvider";
4
- export default function ListViewPage<I extends Message<I>, O extends Message<O>>(props: {} & ComponentProps<typeof ListViewProvider> & PropsWithChildren): import("react").JSX.Element;
4
+ export default function MtListView<I extends Message<I>, O extends Message<O>>(props: {} & ComponentProps<typeof ListViewProvider> & PropsWithChildren): import("react").JSX.Element;
@@ -30,21 +30,21 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- import { Fragment, jsx } from "react/jsx-runtime";
34
- import { WithConnectHydrate } from "../components/SSR";
33
+ import { jsx } from "react/jsx-runtime";
34
+ import { PrefetchConnectInfiniteQuery } from "../components/SSR";
35
35
  import { siteList } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
36
36
  import { ListViewProvider } from "./ListViewProvider";
37
- function ListViewPage(props) {
37
+ function MtListView(props) {
38
38
  const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
39
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
40
- WithConnectHydrate,
39
+ return /* @__PURE__ */ jsx(ListViewProvider, __spreadProps(__spreadValues({}, etc), { children: /* @__PURE__ */ jsx(
40
+ PrefetchConnectInfiniteQuery,
41
41
  {
42
42
  methodSig: siteList,
43
43
  input: etc.params,
44
44
  children
45
45
  }
46
- ) })) });
46
+ ) }));
47
47
  }
48
48
  export {
49
- ListViewPage as default
49
+ MtListView as default
50
50
  };
@@ -3,6 +3,4 @@ export declare const LzDash5: import("react").LazyExoticComponent<typeof import(
3
3
  export declare const LzDemoLayout: import("react").LazyExoticComponent<typeof import("./demo-layout").default>;
4
4
  export declare const LzDebugLayout: import("react").LazyExoticComponent<typeof import("./debug-layout").default>;
5
5
  export declare const LzFrontLayout: import("react").LazyExoticComponent<typeof import("./front-layout").default>;
6
- export declare const LayoutBase: (props: {
7
- layoutName?: string;
8
- } & PropsWithChildren) => import("react").JSX.Element;
6
+ export declare const LayoutBase: (props: {} & PropsWithChildren) => import("react").JSX.Element;
@@ -24,13 +24,14 @@ const LzDemoLayout = lazy(() => import("./demo-layout"));
24
24
  const LzDebugLayout = lazy(() => import("./debug-layout"));
25
25
  const LzFrontLayout = lazy(() => import("./front-layout"));
26
26
  const LayoutBase = (props) => {
27
- const { layoutName, children } = props;
27
+ const { children } = props;
28
+ const mtapp = useMtmApp();
28
29
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(TooltipProvider, { delayDuration: 0, children: [
29
- layoutName == "front" ? /* @__PURE__ */ jsxs(LzFrontLayout, { children: [
30
+ mtapp.layoutName == "front" ? /* @__PURE__ */ jsxs(LzFrontLayout, { children: [
30
31
  " ",
31
32
  children,
32
33
  " "
33
- ] }) : layoutName == "dash5" ? /* @__PURE__ */ jsx(LzDash5, { children }) : layoutName == "debug" ? /* @__PURE__ */ jsx(LzDebugLayout, { children }) : layoutName == "demo1" ? /* @__PURE__ */ jsx(LzDemoLayout, { children }) : layoutName == "default" ? /* @__PURE__ */ jsx(Fragment, { children }) : children,
34
+ ] }) : mtapp.layoutName == "dash5" ? /* @__PURE__ */ jsx(LzDash5, { children }) : mtapp.layoutName == "debug" ? /* @__PURE__ */ jsx(LzDebugLayout, { children }) : mtapp.layoutName == "demo1" ? /* @__PURE__ */ jsx(LzDemoLayout, { children }) : mtapp.layoutName == "default" ? /* @__PURE__ */ jsx(Fragment, { children }) : children,
34
35
  /* @__PURE__ */ jsx(
35
36
  ProgressBar,
36
37
  {