@tuya-sat/sdf-main-sdk 0.0.5 → 0.0.7

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 (99) hide show
  1. package/dist/{131.d04e7bf2.chunk.js → 131.5e21d515.chunk.js} +1 -1
  2. package/dist/{131.d04e7bf2.chunk.js.map → 131.5e21d515.chunk.js.map} +1 -1
  3. package/dist/App.d.ts +4 -0
  4. package/dist/api/index.d.ts +18 -0
  5. package/dist/api/req.d.ts +6 -0
  6. package/dist/api/res.d.ts +7 -0
  7. package/dist/api/urls.d.ts +29 -0
  8. package/dist/api/utils.d.ts +2 -0
  9. package/dist/components/404/index.d.ts +1 -0
  10. package/dist/components/500/index.d.ts +1 -0
  11. package/dist/components/BCustomNav/index.d.ts +13 -0
  12. package/dist/components/BForgot/index.d.ts +2 -0
  13. package/dist/components/BHeaderUser/components/BSwitchLang/index.d.ts +12 -0
  14. package/dist/components/BHeaderUser/components/Badge/components/Notice/Drawer/Content.d.ts +2 -0
  15. package/dist/components/BHeaderUser/components/Badge/components/Notice/Drawer/index.d.ts +5 -0
  16. package/dist/components/BHeaderUser/components/Badge/components/Notice/hooks.d.ts +24 -0
  17. package/dist/components/BHeaderUser/components/Badge/components/Notice/index.d.ts +2 -0
  18. package/dist/components/BHeaderUser/components/Badge/components/Notice/table/index.d.ts +2 -0
  19. package/dist/components/BHeaderUser/components/Badge/components/Notice/table/read.d.ts +5 -0
  20. package/dist/components/BHeaderUser/components/Badge/components/Notice/tools/index.d.ts +8 -0
  21. package/dist/components/BHeaderUser/components/Badge/index.d.ts +2 -0
  22. package/dist/components/BHeaderUser/index.d.ts +5 -0
  23. package/dist/components/BHeaderUser/logout.d.ts +4 -0
  24. package/dist/components/BLayout/components/Header/index.d.ts +21 -0
  25. package/dist/components/BLayout/components/Layout/empty.d.ts +2 -0
  26. package/dist/components/BLayout/components/Layout/index.d.ts +26 -0
  27. package/dist/components/BLayout/components/Logo.d.ts +2 -0
  28. package/dist/components/BLayout/components/Menu/collapse.d.ts +5 -0
  29. package/dist/components/BLayout/components/Menu/image/close.d.ts +2 -0
  30. package/dist/components/BLayout/components/Menu/image/closedefault.d.ts +2 -0
  31. package/dist/components/BLayout/components/Menu/image/open.d.ts +2 -0
  32. package/dist/components/BLayout/components/Menu/image/opendefault.d.ts +2 -0
  33. package/dist/components/BLayout/components/Menu/index.d.ts +25 -0
  34. package/dist/components/BLayout/components/MenuIcon.d.ts +9 -0
  35. package/dist/components/BLayout/components/MultiSider/index.d.ts +6 -0
  36. package/dist/components/BLayout/components/Sider/index.d.ts +6 -0
  37. package/dist/components/BLayout/index.d.ts +7 -0
  38. package/dist/components/BLayoutLogin/index.d.ts +2 -0
  39. package/dist/components/BLogin/component/Clause/index.d.ts +4 -0
  40. package/dist/components/BLogin/component/ForgotBtn/index.d.ts +4 -0
  41. package/dist/components/BLogin/component/Password/index.d.ts +5 -0
  42. package/dist/components/BLogin/component/SubmitBtn/index.d.ts +8 -0
  43. package/dist/components/BLogin/component/TenanSpace/index.d.ts +2 -0
  44. package/dist/components/BLogin/component/Title/index.d.ts +4 -0
  45. package/dist/components/BLogin/component/UserName/index.d.ts +4 -0
  46. package/dist/components/BLogin/component/VerifyCode/index.d.ts +6 -0
  47. package/dist/components/BLogin/index.d.ts +5 -0
  48. package/dist/components/BRegister/components/TenantName/index.d.ts +2 -0
  49. package/dist/components/BRegister/index.d.ts +2 -0
  50. package/dist/components/Back/index.d.ts +2 -0
  51. package/dist/components/IconFont/index.d.ts +7 -0
  52. package/dist/components/MicroComponent/Header/index.d.ts +58 -0
  53. package/dist/components/PForgot/index.d.ts +2 -0
  54. package/dist/components/PLogin/index.d.ts +5 -0
  55. package/dist/components/PRegister/index.d.ts +2 -0
  56. package/dist/components/PSetting/index.d.ts +2 -0
  57. package/dist/constant/chargeStatus.d.ts +6 -0
  58. package/dist/constant/imgs.d.ts +3 -0
  59. package/dist/constant/index.d.ts +20 -0
  60. package/dist/hooks/index.d.ts +13 -0
  61. package/dist/index.d.ts +68 -0
  62. package/dist/lang/index.d.ts +2 -0
  63. package/dist/lang/utils.d.ts +16 -0
  64. package/dist/main.bundle.js +1 -1
  65. package/dist/main.bundle.js.map +1 -1
  66. package/dist/main.css.map +1 -1
  67. package/dist/micro-script/theme/index.d.ts +3 -0
  68. package/dist/micro-script/theme/theme-css/subscriber.d.ts +48 -0
  69. package/dist/micro-script/theme/util/index.d.ts +11 -0
  70. package/dist/mqtt/index.d.ts +9 -0
  71. package/dist/pages/403.d.ts +2 -0
  72. package/dist/pages/404.d.ts +2 -0
  73. package/dist/pages/expiration.d.ts +1 -0
  74. package/dist/pages/forgot.d.ts +6 -0
  75. package/dist/pages/home/index.d.ts +3 -0
  76. package/dist/pages/home/setting/index.d.ts +5 -0
  77. package/dist/pages/index.d.ts +7 -0
  78. package/dist/pages/login.d.ts +37 -0
  79. package/dist/pages/register.d.ts +6 -0
  80. package/dist/pages/relogin/index.d.ts +1 -0
  81. package/dist/plugins/index.d.ts +2 -0
  82. package/dist/qiankun/globalState.d.ts +5 -0
  83. package/dist/qiankun/index.d.ts +3 -0
  84. package/dist/qiankun/utils/index.d.ts +7 -0
  85. package/dist/qiankun/xhook/index.d.ts +3 -0
  86. package/dist/reportWebVitals.d.ts +3 -0
  87. package/dist/sentry/index.d.ts +1 -0
  88. package/dist/sky/index.d.ts +5 -0
  89. package/dist/utils/checkPass.d.ts +1 -0
  90. package/dist/utils/common.d.ts +25 -0
  91. package/dist/utils/eventBus.d.ts +24 -0
  92. package/dist/utils/index.d.ts +22 -0
  93. package/dist/utils/theme/base.d.ts +41 -0
  94. package/dist/utils/theme/changeCssVariable.d.ts +10 -0
  95. package/dist/utils/theme/changeMenuCssVariable.d.ts +7 -0
  96. package/dist/utils/theme/index.d.ts +8 -0
  97. package/dist/utils/theme/store.d.ts +8 -0
  98. package/dist/utils/yrule.d.ts +50 -0
  99. package/package.json +4 -4
@@ -0,0 +1,3 @@
1
+ import { Fallback } from './theme-css/subscriber';
2
+ declare let microThemeControl: Fallback;
3
+ export { microThemeControl };
@@ -0,0 +1,48 @@
1
+ import type { Theme } from '@/utils/theme/base';
2
+ interface Subscriber {
3
+ (theme: Theme): void;
4
+ }
5
+ declare function removeCssVariable(tpl: string): string;
6
+ declare function createMicroColorSchemeControl(): {
7
+ microAppWithThemeMap: Map<string, boolean>;
8
+ add(id: string, value: boolean): void;
9
+ setColorScheme(id: string): void;
10
+ };
11
+ declare class Fallback {
12
+ changeTheme(value: unknown): void;
13
+ cannotExclude(url: string): boolean;
14
+ beforeMount(app: any): void;
15
+ getTemplate(tpl: string): string;
16
+ }
17
+ declare class SingleTheme extends Fallback {
18
+ microColorSchemeControl: ReturnType<typeof createMicroColorSchemeControl>;
19
+ theme: Theme;
20
+ constructor();
21
+ beforeMount(app: any): void;
22
+ getTemplate(tpl: string): string;
23
+ }
24
+ declare class DarkLightChange extends SingleTheme {
25
+ private subscribers;
26
+ constructor();
27
+ changeTheme(theme: Theme): void;
28
+ beforeMount(app: any): void;
29
+ cannotExclude(url: string): boolean;
30
+ injectVarible(str: string, varibles: [string, string][]): string;
31
+ getTemplate(tpl: string): string;
32
+ add(id: string, subscriber: Subscriber): void;
33
+ clear(): void;
34
+ dispatch(id: string, theme: string): void;
35
+ }
36
+ declare class CustomVariable extends Fallback {
37
+ removeCssVariable: typeof removeCssVariable;
38
+ getTemplate(tpl: string): string;
39
+ }
40
+ declare class CustomizeVariableWithSingleTheme extends SingleTheme {
41
+ removeCssVariable: typeof removeCssVariable;
42
+ getTemplate(tpl: string): string;
43
+ }
44
+ declare class CustomizeVariableWithDarkLightChange extends DarkLightChange {
45
+ removeCssVariable: typeof removeCssVariable;
46
+ getTemplate(tpl: string): string;
47
+ }
48
+ export { SingleTheme, DarkLightChange, CustomVariable, CustomizeVariableWithSingleTheme, CustomizeVariableWithDarkLightChange, Fallback, };
@@ -0,0 +1,11 @@
1
+ declare const HREF_REGEX: RegExp;
2
+ declare const DEFAULT_LINK_REGEX: RegExp;
3
+ declare const LIGHT_LINK_REGEX: RegExp;
4
+ declare const DARK_LINK_REGEX: RegExp;
5
+ declare const CSS_VARIABLE_STYLE_TAG_REGEX: RegExp;
6
+ declare function getCurrentMicroResourceRoot(id: string): any;
7
+ declare function processHtmlInTheme(url: string, apps: any[]): {
8
+ text(): Promise<string>;
9
+ };
10
+ declare function getMicroIdFromHtml(tpl: any): string;
11
+ export { HREF_REGEX, DEFAULT_LINK_REGEX, LIGHT_LINK_REGEX, DARK_LINK_REGEX, CSS_VARIABLE_STYLE_TAG_REGEX, getCurrentMicroResourceRoot, processHtmlInTheme, getMicroIdFromHtml, };
@@ -0,0 +1,9 @@
1
+ declare const mqtt: {
2
+ init: (cb: any) => void;
3
+ subscribeTopic: (bizType: string, cbFn: (msg: string) => void, option: {
4
+ isGlobal: boolean;
5
+ }) => void;
6
+ unsubscribeMicTopics: () => void;
7
+ unsubscribeTopic: (bizType: any) => void;
8
+ };
9
+ export default mqtt;
@@ -0,0 +1,2 @@
1
+ declare const Page403: () => JSX.Element;
2
+ export default Page403;
@@ -0,0 +1,2 @@
1
+ declare const Page404: () => JSX.Element;
2
+ export default Page404;
@@ -0,0 +1 @@
1
+ export default function Expiration(): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * 公版忘记密码页面
4
+ */
5
+ declare const Forget: FC;
6
+ export default Forget;
@@ -0,0 +1,3 @@
1
+ export declare let mainHistory: any;
2
+ declare const Home: () => JSX.Element;
3
+ export default Home;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 公版用户设置页面
3
+ */
4
+ declare const Setting: () => JSX.Element;
5
+ export default Setting;
@@ -0,0 +1,7 @@
1
+ declare const index: () => {
2
+ name: string;
3
+ path: string;
4
+ exact: boolean;
5
+ page: any;
6
+ }[];
7
+ export default index;
@@ -0,0 +1,37 @@
1
+ import { FC } from 'react';
2
+ type IForm = {
3
+ username: string;
4
+ password: string;
5
+ tenantSpace?: string;
6
+ secureKey: string;
7
+ country_code: string;
8
+ };
9
+ export interface LoginProps {
10
+ /**
11
+ * 登录页面 hooks 埋点
12
+ */
13
+ hooks?: {
14
+ /**
15
+ * 功能:替换登录接口
16
+ */
17
+ loginApiHook?: (form: IForm, tocontinue: () => void) => Promise<void>;
18
+ /**
19
+ * 功能:触发登录接口前
20
+ * @param form
21
+ * @returns
22
+ */
23
+ beforeLoginApiHook?: (form: IForm) => Promise<void>;
24
+ /**
25
+ * 功能:触发登录接口后
26
+ */
27
+ afterLoginApiHook?: (tocontinue: () => void) => Promise<void>;
28
+ };
29
+ extra?: {
30
+ TitleSolt: FC;
31
+ };
32
+ }
33
+ /**
34
+ * 公版登录页面
35
+ */
36
+ declare const Login: FC<LoginProps>;
37
+ export default Login;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * 公版注册页面
4
+ */
5
+ declare const Register: FC;
6
+ export default Register;
@@ -0,0 +1 @@
1
+ export default function ReLogin(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function getPlugins(): any[];
2
+ export declare function initialPlugins(): Promise<void>;
@@ -0,0 +1,5 @@
1
+ declare const globalState: {
2
+ isLogin: boolean;
3
+ lang: string;
4
+ };
5
+ export default globalState;
@@ -0,0 +1,3 @@
1
+ export declare let setGlobalState: any;
2
+ export declare const micState: any;
3
+ export declare const runQiankun: (props: any) => void;
@@ -0,0 +1,7 @@
1
+ export declare const gPermissions: () => any;
2
+ export declare const isSupportMobileWithFallback: () => boolean;
3
+ export declare const resourcePrefix: (resource: any) => any;
4
+ export declare const tyLang: string;
5
+ export declare const permission: (appId: any) => (permissionCode: any) => any;
6
+ export declare const region: string;
7
+ export declare const processLoadAssetInCss: (apps: any, url: any, args: any) => any;
@@ -0,0 +1,3 @@
1
+ export declare const apiIntercept: ({ mainHistory }: {
2
+ mainHistory: any;
3
+ }) => void;
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
@@ -0,0 +1 @@
1
+ export default function initSentry(): void;
@@ -0,0 +1,5 @@
1
+ export declare const initSky: () => void;
2
+ export declare const skyReport: (microCode: string) => void;
3
+ export declare const skyReportFirstLoadApp: (microCode: string, time: number) => void;
4
+ export declare const skyReportLoadApp: (microCode: string, time: number) => void;
5
+ export declare const curEnv: () => "pre" | "daily" | "prod";
@@ -0,0 +1 @@
1
+ export declare function checkPassWord(value: string): boolean;
@@ -0,0 +1,25 @@
1
+ export declare const findEntry: (menus: any, pathname: any) => any;
2
+ export declare const getDeepestPath: (menu: any) => any;
3
+ export declare const auth: (history: any) => void;
4
+ export declare const getCurrentUser: () => {
5
+ user_nick_name: string;
6
+ user_name: string;
7
+ roles: {
8
+ role_code?: string;
9
+ role_name: string;
10
+ }[];
11
+ mobile?: string;
12
+ email?: string;
13
+ country_code?: string;
14
+ };
15
+ export declare const safeLogout: (history: any) => void;
16
+ export declare const getSearchMap: (search: any) => URLSearchParams;
17
+ export declare const afterLoginHook: ({ search, history, }: {
18
+ search: string;
19
+ history: any;
20
+ }) => void;
21
+ export declare const isSupportMultiLang: () => boolean;
22
+ export declare const isOpenGt: () => boolean;
23
+ export declare const isMessageCt: () => boolean;
24
+ export declare const processLoadAssetInCss: (apps: any, url: any, args: any) => any;
25
+ export declare const initSdfConfig: () => void;
@@ -0,0 +1,24 @@
1
+ type EventCallback = (e: any) => void;
2
+ interface IEvent {
3
+ addEventListener: (type: string, callback: EventCallback) => void;
4
+ removeEventListener: (type: string, callback: EventCallback) => boolean;
5
+ removeAllEventListener: (type?: string) => boolean;
6
+ dispatchEvent: (type: string, value?: any) => void;
7
+ }
8
+ declare class CustomEvent implements IEvent {
9
+ static eventMap: {
10
+ [key: string]: EventCallback[];
11
+ };
12
+ private eventMap;
13
+ static addEventListener: (type: string, callback: EventCallback) => void;
14
+ static removeEventListener: (type: string, callback: EventCallback) => boolean;
15
+ static removeAllEventListener: (type?: string) => boolean;
16
+ static dispatchEvent: (type: string, value?: any) => void;
17
+ static hasEventListener: (type: string, callback: EventCallback) => boolean;
18
+ addEventListener: (type: string, callback: EventCallback) => void;
19
+ removeEventListener: (type: string, callback: EventCallback) => boolean;
20
+ removeAllEventListener: (type?: string) => boolean;
21
+ dispatchEvent: (type: string, value?: any) => void;
22
+ private hasEventListener;
23
+ }
24
+ export default CustomEvent;
@@ -0,0 +1,22 @@
1
+ /// <reference types="node" />
2
+ import { EventEmitter } from 'events';
3
+ import type { IMenu } from '@/components/BLayout/components/Menu';
4
+ /**
5
+ * 检查menus数组是否带标签
6
+ * @param menus 菜单数组
7
+ * @returns boolean true表示有标签
8
+ */
9
+ export declare function checkMenuVersion(menus: IMenu[]): boolean;
10
+ export declare function browserType(): "Chrome" | "Safari" | "Firefox" | "Edge" | "IE" | "Opera" | "Other";
11
+ export declare const eventNames: {
12
+ USER_NAME: string;
13
+ HIDE_MSG_TOOL: string;
14
+ HIDE_MENU: string;
15
+ HIDE_NAV: string;
16
+ };
17
+ export declare const eventEmiter: EventEmitter;
18
+ export declare const getMicroAppId: () => string;
19
+ export declare const curMicroAppName: () => any;
20
+ export declare const curMicroAppCode: () => any;
21
+ export declare const micApps: () => any;
22
+ export declare const whitePahtList: () => string[];
@@ -0,0 +1,41 @@
1
+ import type { MenuType } from 'src/components/BLayout/components/Menu';
2
+ export declare const LIGHT = "light";
3
+ export declare const DARK = "dark";
4
+ export type Theme = typeof LIGHT | typeof DARK;
5
+ export interface ColorConfig {
6
+ menuBg?: string;
7
+ menuText?: string;
8
+ menuBgExpand?: string;
9
+ menuTextExpand?: string;
10
+ menuBgActived?: string;
11
+ menuTextActived?: string;
12
+ menuSlideBg?: string;
13
+ menuSlideText?: string;
14
+ menuSlideBgActived?: string;
15
+ menuSlideTextActived?: string;
16
+ menuSlideBoundary?: string;
17
+ navigateBg?: string;
18
+ navigateText?: string;
19
+ navigateTextHover?: string;
20
+ navigateBoundary?: string;
21
+ }
22
+ export interface UserConfigItem {
23
+ hex: string;
24
+ a: number;
25
+ }
26
+ export type UserColorConfig = {
27
+ [p in keyof ColorConfig]?: UserConfigItem;
28
+ };
29
+ export type UserColorConfigWithTheme = Record<Theme, UserColorConfig>;
30
+ export type UserColorConfigWithThemeAndMenu = Record<MenuType, UserColorConfigWithTheme>;
31
+ declare function isSupportCssVariable(): boolean;
32
+ declare function isSupportLightDarkSwitch(): boolean;
33
+ declare function getSupportedTheme(): "all" | Theme;
34
+ declare function isSpecificTheme(): boolean;
35
+ declare function getCssVarible(): {
36
+ primaryColor: string | UserConfigItem;
37
+ primaryColorInAll: string | UserConfigItem;
38
+ };
39
+ declare function getDynamicMenuTheme(): UserColorConfigWithThemeAndMenu;
40
+ declare function getRenderTheme(): Theme;
41
+ export { isSupportCssVariable, isSupportLightDarkSwitch, getSupportedTheme, isSpecificTheme, getCssVarible, getDynamicMenuTheme, getRenderTheme, };
@@ -0,0 +1,10 @@
1
+ import type { Theme } from './base';
2
+ export interface ThemeColor {
3
+ primaryColor?: string;
4
+ infoColor?: string;
5
+ successColor?: string;
6
+ processingColor?: string;
7
+ errorColor?: string;
8
+ warningColor?: string;
9
+ }
10
+ export declare function changeCssVarible(setTheme: ThemeColor, globalPrefixCls: string, themeVarint: Theme): void;
@@ -0,0 +1,7 @@
1
+ import type { Theme, UserColorConfigWithThemeAndMenu } from './base';
2
+ export declare function hexToRgba(hex: string, opacity: number): string;
3
+ export default function changeMenuCssVariable({ menuColor, theme, prefix, }: {
4
+ menuColor: UserColorConfigWithThemeAndMenu | null;
5
+ theme: Theme;
6
+ prefix?: string;
7
+ }): void;
@@ -0,0 +1,8 @@
1
+ import type { Theme } from './base';
2
+ declare function changeTheme(theme: Theme): void;
3
+ declare function useTheme(): {
4
+ theme: Theme;
5
+ changeTheme: () => void;
6
+ };
7
+ declare function initalTheme(cb?: () => void): void;
8
+ export { changeTheme, useTheme, initalTheme };
@@ -0,0 +1,8 @@
1
+ import type { Theme } from './base';
2
+ declare const THEME_TYPE = "CHANGE THEME";
3
+ export declare const themeSubscribe: {
4
+ subscribe: (cb: (type: typeof THEME_TYPE, value: Theme) => void, callImmediately: boolean) => () => void;
5
+ getValue: () => Theme;
6
+ publish: (value: Theme) => void;
7
+ };
8
+ export {};
@@ -0,0 +1,50 @@
1
+ export interface YRuleConfig {
2
+ verifyId: string;
3
+ challenge: string;
4
+ expiredSecs: number;
5
+ verifyType: string;
6
+ grey: string;
7
+ apiServer: string;
8
+ i18nLabels: Record<string, string>;
9
+ errorLevel?: 'high' | 'low';
10
+ }
11
+ export interface YRuleCaptcha {
12
+ verify(): void;
13
+ reset(): void;
14
+ refresh(): void;
15
+ refreshToken(): void;
16
+ getValidate(): YRuleSecureInfo;
17
+ onReady(callback: () => void): YRuleCaptcha;
18
+ onSuccess(callback: (secureInfo: YRuleSecureInfo) => void): YRuleCaptcha;
19
+ onClose(callback: () => void): YRuleCaptcha;
20
+ onError(callback: (err: Error) => void): YRuleCaptcha;
21
+ [key: string]: any;
22
+ }
23
+ interface YRuleSecureInfo {
24
+ challenge: string;
25
+ validate: string;
26
+ }
27
+ interface YRuleSwitch {
28
+ isNeedJiyan: boolean;
29
+ }
30
+ /**
31
+ * 引入 sdk 脚本
32
+ */
33
+ export declare function setup(): void;
34
+ /**
35
+ * 初始化 yrule 配置
36
+ */
37
+ export declare function init(): Promise<YRuleConfig | YRuleSwitch | undefined>;
38
+ /**
39
+ * 触发验证
40
+ * @param {YRuleConfig | Promise<YRuleConfig>} yRuleConfig- 极验配置信息
41
+ * @param {function} onClose - 关闭极验弹框的回调
42
+ * @returns {Promise<YRuleSecureInfo | false>} 值为 false 时,表示关闭弹框,放弃验证
43
+ */
44
+ type YRuleResult = YRuleConfig | YRuleSwitch;
45
+ export declare function verify<T extends YRuleResult = YRuleResult>(yRuleConfig: T | Promise<T>, onClose?: () => void): Promise<Promise<YRuleSecureInfo | boolean>>;
46
+ export declare function shouldOpenYRule(code: number): boolean;
47
+ export declare function useYRule(): {
48
+ verify: () => Promise<YRuleSecureInfo | boolean>;
49
+ };
50
+ export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@tuya-sat/sdf-main-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "main": "./dist/main.bundle.js",
5
- "types": "./index.ts",
5
+ "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
- "build": "webpack",
8
+ "build": "webpack && npm run ts",
9
9
  "dev": "webpack watch ",
10
- "ts": "tsc --emitDeclarationOnly ",
10
+ "ts": "tsc --emitDeclarationOnly ",
11
11
  "lint": "eslint *.ts*"
12
12
  },
13
13
  "devDependencies": {