@thefreshop/tb 1.0.16 → 1.0.17
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/cjs/index.js +116 -158
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/provider.types.d.ts +10 -13
- package/dist/cjs/types/tbframe.types.d.ts +2 -2
- package/dist/esm/index.js +116 -158
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/provider.types.d.ts +10 -13
- package/dist/esm/types/tbframe.types.d.ts +2 -2
- package/dist/index.d.ts +11 -14
- package/package.json +8 -2
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { userType } from "./user.types";
|
|
2
|
-
import {
|
|
2
|
+
import { tabType } from "./tbframe.types";
|
|
3
3
|
export type ProviderType = {
|
|
4
4
|
topkey: string;
|
|
5
5
|
setTopkey: (value: string) => void;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
tabList: tabType[];
|
|
7
|
+
setTabList: (tabList: tabType[]) => void;
|
|
8
|
+
tabKeys: string[];
|
|
9
|
+
currentTabKey?: string;
|
|
10
|
+
setCurrentTabKey: (key: string) => void;
|
|
11
|
+
addTabKey: (key: string) => void;
|
|
12
|
+
removeTabKey: (key: string) => void;
|
|
13
|
+
startTabKey?: string;
|
|
14
|
+
setStartTabKey: (key: string) => void;
|
|
11
15
|
loginUser: (value: userType | null) => void;
|
|
12
16
|
logout: (force?: boolean) => void;
|
|
13
17
|
user?: userType;
|
|
14
|
-
startpage?: React.ReactNode;
|
|
15
|
-
setStartpage: (value: React.ReactNode) => void;
|
|
16
18
|
SetWarning: (value: ErrMsgType) => void;
|
|
17
19
|
errMsg?: ErrMsgType;
|
|
18
|
-
setGlobalpages: (value: tabType[]) => void;
|
|
19
|
-
globalpages?: tabType[];
|
|
20
|
-
addGlobalTabs: (key: string) => void;
|
|
21
|
-
setMenupages: (value: navType) => void;
|
|
22
|
-
goTabs: (key: string) => void;
|
|
23
20
|
};
|
|
24
21
|
export type ErrMsgType = {
|
|
25
22
|
err?: string;
|
|
@@ -2,10 +2,9 @@ export interface tbframeType {
|
|
|
2
2
|
islogin?: boolean;
|
|
3
3
|
isgroup?: boolean;
|
|
4
4
|
isgroupauth?: boolean;
|
|
5
|
-
|
|
5
|
+
startTabKey?: string;
|
|
6
6
|
loginpage?: React.ReactNode;
|
|
7
7
|
logoutComponent?: React.ReactNode;
|
|
8
|
-
globalpages?: tabType[];
|
|
9
8
|
}
|
|
10
9
|
export declare const baseAdminDat: TbFrameType;
|
|
11
10
|
export type TbFrameType = {
|
|
@@ -50,6 +49,7 @@ export type menuType = {
|
|
|
50
49
|
};
|
|
51
50
|
export type navType = {
|
|
52
51
|
menuSet: menuSetType[];
|
|
52
|
+
globalTabs?: tabType[];
|
|
53
53
|
openIcon?: React.ReactElement | JSX.Element;
|
|
54
54
|
closeIcon?: React.ReactElement | JSX.Element;
|
|
55
55
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -172,10 +172,9 @@ interface tbframeType {
|
|
|
172
172
|
islogin?: boolean;
|
|
173
173
|
isgroup?: boolean;
|
|
174
174
|
isgroupauth?: boolean;
|
|
175
|
-
|
|
175
|
+
startTabKey?: string;
|
|
176
176
|
loginpage?: React.ReactNode;
|
|
177
177
|
logoutComponent?: React.ReactNode;
|
|
178
|
-
globalpages?: tabType[];
|
|
179
178
|
}
|
|
180
179
|
declare const baseAdminDat: TbFrameType;
|
|
181
180
|
type TbFrameType = {
|
|
@@ -220,6 +219,7 @@ type menuType = {
|
|
|
220
219
|
};
|
|
221
220
|
type navType = {
|
|
222
221
|
menuSet: menuSetType[];
|
|
222
|
+
globalTabs?: tabType[];
|
|
223
223
|
openIcon?: React.ReactElement | JSX.Element;
|
|
224
224
|
closeIcon?: React.ReactElement | JSX.Element;
|
|
225
225
|
};
|
|
@@ -231,23 +231,20 @@ type menuSetType = {
|
|
|
231
231
|
type ProviderType = {
|
|
232
232
|
topkey: string;
|
|
233
233
|
setTopkey: (value: string) => void;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
tabList: tabType[];
|
|
235
|
+
setTabList: (tabList: tabType[]) => void;
|
|
236
|
+
tabKeys: string[];
|
|
237
|
+
currentTabKey?: string;
|
|
238
|
+
setCurrentTabKey: (key: string) => void;
|
|
239
|
+
addTabKey: (key: string) => void;
|
|
240
|
+
removeTabKey: (key: string) => void;
|
|
241
|
+
startTabKey?: string;
|
|
242
|
+
setStartTabKey: (key: string) => void;
|
|
239
243
|
loginUser: (value: userType | null) => void;
|
|
240
244
|
logout: (force?: boolean) => void;
|
|
241
245
|
user?: userType;
|
|
242
|
-
startpage?: React.ReactNode;
|
|
243
|
-
setStartpage: (value: React.ReactNode) => void;
|
|
244
246
|
SetWarning: (value: ErrMsgType) => void;
|
|
245
247
|
errMsg?: ErrMsgType;
|
|
246
|
-
setGlobalpages: (value: tabType[]) => void;
|
|
247
|
-
globalpages?: tabType[];
|
|
248
|
-
addGlobalTabs: (key: string) => void;
|
|
249
|
-
setMenupages: (value: navType) => void;
|
|
250
|
-
goTabs: (key: string) => void;
|
|
251
248
|
};
|
|
252
249
|
type ErrMsgType = {
|
|
253
250
|
err?: string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thefreshop/tb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "tb framework",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/thefreshop/tb.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
7
13
|
"main": "dist/cjs/index.js",
|
|
8
14
|
"module": "dist/esm/index.js",
|
|
9
15
|
"scripts": {
|