@thefreshop/tb 1.0.2 → 1.0.4

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,2 +1,3 @@
1
- export { TbContext, TbProvider, useTbState } from "./provider/provider";
1
+ export { TbProvider, useTbState } from "./provider/provider";
2
+ export { tbContext } from "./provider/tbContext";
2
3
  export { default as TbFrame } from "./layout/frame";
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { navType } from "../../types";
3
- declare const Nav: ({ nav: { menuSet, openIcon, closeIcon } }: {
3
+ declare const Nav: ({ nav: { menuSet, openIcon, closeIcon }, islogin }: {
4
4
  nav: navType;
5
+ islogin: boolean;
5
6
  }) => React.JSX.Element;
6
7
  export default Nav;
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import type { ProviderType } from "../../types";
3
- export declare const TbContext: React.Context<ProviderType | undefined>;
4
3
  export declare const TbProvider: ({ children }: {
5
4
  children: React.ReactNode;
6
5
  }) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ProviderType } from "../../types";
3
+ export declare const tbContext: React.Context<ProviderType | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefreshop/tb",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "tb framework",
5
5
  "license": "MIT",
6
6
  "repository": "/tb",
@@ -12,20 +12,18 @@
12
12
  },
13
13
  "peerDependencies": {
14
14
  "@ant-design/icons": "^5.4.0",
15
- "@monaco-editor/react": "^4.6.0",
16
- "antd": "^5.21.5",
15
+ "@monaco-editor/react": "^4.7.0",
16
+ "antd": "^6.0.0",
17
17
  "dayjs": "^1.11.13",
18
18
  "react": "^18.3.1",
19
19
  "react-dom": "^18.3.1",
20
20
  "react-error-boundary": "^4.0.13"
21
21
  },
22
22
  "devDependencies": {
23
- "react": "^18.3.1",
24
- "react-dom": "^18.3.1",
25
23
  "@babel/core": "^7.25.2",
26
24
  "@babel/preset-env": "^7.25.3",
27
25
  "@babel/preset-react": "^7.24.7",
28
- "@monaco-editor/react": "^4.6.0",
26
+ "@monaco-editor/react": "^4.7.0",
29
27
  "@rollup/plugin-babel": "^6.0.4",
30
28
  "@rollup/plugin-commonjs": "^26.0.1",
31
29
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -38,6 +36,8 @@
38
36
  "postcss": "^8.4.41",
39
37
  "postcss-loader": "^8.1.1",
40
38
  "postcss-prefixer": "^3.0.0",
39
+ "react": "^18.3.1",
40
+ "react-dom": "^18.3.1",
41
41
  "react-image-file-resizer": "^0.4.8",
42
42
  "react-quill": "^2.0.0",
43
43
  "rollup": "^4.20.0",
@@ -51,7 +51,6 @@
51
51
  "dist"
52
52
  ],
53
53
  "dependencies": {
54
- "antd": "^5.21.5",
55
54
  "moment": "^2.30.1",
56
55
  "moment-timezone": "^0.6.0"
57
56
  }