gomtm 0.0.235 → 0.0.236

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.
Files changed (27) hide show
  1. package/dist/esm/components/MtmInstallScript.js +4 -6
  2. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.d.ts +0 -0
  3. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.js +0 -0
  4. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +41 -1
  5. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +46 -2
  6. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +25 -1
  7. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +45 -1
  8. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +105 -11
  9. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +362 -36
  10. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +53 -0
  11. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +60 -0
  12. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +38 -0
  13. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +56 -0
  14. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +481 -0
  15. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +2367 -0
  16. package/dist/esm/messageTypeRegistry.d.ts +1 -0
  17. package/dist/esm/messageTypeRegistry.js +3 -3
  18. package/dist/esm/providers/GomtmProvider.js +5 -1
  19. package/dist/esm/validations/spContentModi.d.ts +4 -4
  20. package/dist/esm/validations/spRoute.d.ts +8 -8
  21. package/dist/esm/validations/user.d.ts +6 -6
  22. package/dist/tsconfig.type.tsbuildinfo +1 -1
  23. package/package.json +3 -3
  24. package/dist/esm/store/ExampleStoreProvider.d.ts +0 -6
  25. package/dist/esm/store/ExampleStoreProvider.js +0 -43
  26. package/dist/esm/store/gomtm.atom.d.ts +0 -4
  27. package/dist/esm/store/gomtm.atom.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gomtm",
3
- "version": "0.0.235",
3
+ "version": "0.0.236",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -83,8 +83,8 @@
83
83
  "stable-hash": "^0.0.4",
84
84
  "universal-cookie": "^7.1.4",
85
85
  "zod": "^3.22.2",
86
- "mtxlib": "0.3.315",
87
- "mtxuilib": "0.0.592"
86
+ "mtxlib": "0.3.316",
87
+ "mtxuilib": "0.0.593"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@babel/core": "^7.24.0",
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const exampleParamsAtom: import("jotai").PrimitiveAtom<string> & {
3
- init: string;
4
- };
5
- export declare const exampleValue1Atom2: import("jotai").Atom<string>;
6
- export declare const StoreExample: () => import("react").JSX.Element;
@@ -1,43 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Provider, atom, createStore, useAtom } from "jotai";
4
- import { useMemo } from "react";
5
- const exampleParamsAtom = atom("value1");
6
- const exampleValue1Atom2 = atom((get) => {
7
- return get(exampleParamsAtom);
8
- });
9
- const ExampleProvider = (props) => {
10
- const { value, children } = props;
11
- const innerStore = useMemo(() => {
12
- const store = createStore();
13
- store.set(exampleParamsAtom, value);
14
- return store;
15
- }, [value]);
16
- return /* @__PURE__ */ jsx(Provider, { store: innerStore, children });
17
- };
18
- const DemoShowExampleValue = () => {
19
- const [value, setValue] = useAtom(exampleParamsAtom);
20
- const [value2, setValue2] = useAtom(exampleValue1Atom2);
21
- return /* @__PURE__ */ jsxs("div", { className: "bg-red-100 p-2", children: [
22
- /* @__PURE__ */ jsxs("div", { children: [
23
- "value:",
24
- value
25
- ] }),
26
- /* @__PURE__ */ jsxs("div", { children: [
27
- "value2:",
28
- value2
29
- ] })
30
- ] });
31
- };
32
- const StoreExample = () => {
33
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
34
- /* @__PURE__ */ jsx("h1", { children: "\u6F14\u793A\u6B63\u786E\u7684 jotai provider \u7684\u4F7F\u7528\u65B9\u5F0F" }),
35
- /* @__PURE__ */ jsx(ExampleProvider, { value: "value11111111111", children: /* @__PURE__ */ jsx(DemoShowExampleValue, {}) }),
36
- /* @__PURE__ */ jsx(ExampleProvider, { value: "value22222222", children: /* @__PURE__ */ jsx(DemoShowExampleValue, {}) })
37
- ] });
38
- };
39
- export {
40
- StoreExample,
41
- exampleParamsAtom,
42
- exampleValue1Atom2
43
- };
@@ -1,4 +0,0 @@
1
- export declare const isDebugValueAtom: import("jotai").PrimitiveAtom<boolean> & {
2
- init: boolean;
3
- };
4
- export declare const isDebugAtom: import("jotai").WritableAtom<boolean, [value: boolean], void>;
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { atom } from "jotai";
3
- const isDebugValueAtom = atom(false);
4
- const isDebugAtom = atom((get) => {
5
- return get(isDebugValueAtom);
6
- }, (_, set, value) => {
7
- set(isDebugValueAtom, value);
8
- });
9
- export {
10
- isDebugAtom,
11
- isDebugValueAtom
12
- };