@tuya-sat/sdf-main-sdk 0.2.2 → 1.0.0-cube2.0.1

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,16 +1,6 @@
1
1
  import { FC } from 'react';
2
- export interface ForgetProps {
3
- extra?: {
4
- BgSlot?: FC<{
5
- bg: string;
6
- }>;
7
- };
8
- customStyle?: {
9
- formStyle?: any;
10
- };
11
- }
12
2
  /**
13
3
  * 公版忘记密码页面
14
4
  */
15
- declare const Forget: FC<ForgetProps>;
5
+ declare const Forget: FC;
16
6
  export default Forget;
@@ -27,16 +27,7 @@ export interface LoginProps {
27
27
  afterLoginApiHook?: (tocontinue: () => void) => Promise<void>;
28
28
  };
29
29
  extra?: {
30
- TitleSolt?: FC<{
31
- logo: string;
32
- title: string;
33
- }>;
34
- BgSlot?: FC<{
35
- bg: string;
36
- }>;
37
- };
38
- customStyle?: {
39
- formStyle?: any;
30
+ TitleSolt: FC;
40
31
  };
41
32
  }
42
33
  /**
@@ -11,7 +11,6 @@ export declare const getCurrentUser: () => {
11
11
  mobile?: string;
12
12
  email?: string;
13
13
  country_code?: string;
14
- user_id?: string;
15
14
  };
16
15
  export declare const safeLogout: (history: any) => void;
17
16
  export declare const getSearchMap: (search: any) => URLSearchParams;
@@ -24,6 +23,3 @@ export declare const isOpenGt: () => boolean;
24
23
  export declare const isMessageCt: () => boolean;
25
24
  export declare const processLoadAssetInCss: (apps: any, url: any, args: any) => any;
26
25
  export declare const initSdfConfig: () => void;
27
- export declare const app2Group: () => {};
28
- export declare const cookieSetting: any;
29
- export declare const initCCM: () => void;
@@ -17,7 +17,7 @@ export declare const eventNames: {
17
17
  HIDE_TOP_MICRO_MENUS: string;
18
18
  };
19
19
  export declare const eventEmitter: EventEmitter;
20
- export declare const getMicroAppId: () => string;
20
+ export declare const getMicroAppId: () => any;
21
21
  export declare const curMicroAppName: () => any;
22
22
  export declare const curMicroAppCode: () => any;
23
23
  export declare const micApps: () => any;
@@ -26,4 +26,3 @@ export declare const getPathByMicroId: (microId: string) => any;
26
26
  export declare const queryString: (state: {
27
27
  [x: string]: any;
28
28
  }) => string;
29
- export declare const bgStyle: () => {};
@@ -1,5 +1,5 @@
1
1
  import type { Theme, UserColorConfigWithThemeAndMenu } from './base';
2
- export declare function hexToRgba(ahex: string, opacity: number): string;
2
+ export declare function hexToRgba(hex: string, opacity: number): string;
3
3
  export default function changeMenuCssVariable({ menuColor, theme, prefix, }: {
4
4
  menuColor: UserColorConfigWithThemeAndMenu | null;
5
5
  theme: Theme;
package/dist/zh.json CHANGED
@@ -173,7 +173,6 @@
173
173
  "register.registerSuccess": "注册成功",
174
174
  "relogin.tip": "账号已在其他设备(浏览器)登录或已过期",
175
175
  "relogin.btn": "重新登录",
176
- "relogin.pwd": "如非本人操作,建议前往账号设置修改密码",
177
- "etip": "哎呀,出现了一些问题,请稍后重试。"
176
+ "relogin.pwd": "如非本人操作,建议前往账号设置修改密码"
178
177
  }
179
- }
178
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/sdf-main-sdk",
3
- "version": "0.2.2",
3
+ "version": "1.0.0-cube2.0.1",
4
4
  "main": "./dist/main.bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
package/webpack.config.js CHANGED
@@ -1,16 +1,15 @@
1
- const path = require('path');
2
- const webpack = require('webpack');
3
- const fs = require('fs');
1
+ const path = require("path");
2
+ const webpack = require("webpack");
3
+ const fs = require("fs");
4
4
  const BundleAnalyzerPlugin =
5
- require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
5
+ require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
6
6
 
7
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
7
+ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
8
8
  const CopyPlugin = require('copy-webpack-plugin');
9
9
  const REACT_APP_THEME_CSS_JS = fs.readFileSync(
10
10
  'src/micro-script/theme/theme-css/static.js',
11
11
  'utf-8'
12
12
  );
13
- const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
14
13
 
15
14
  module.exports = {
16
15
  mode: 'production',
@@ -65,7 +64,6 @@ module.exports = {
65
64
  ],
66
65
  }),
67
66
  new MiniCssExtractPlugin(),
68
- new WebpackManifestPlugin(),
69
67
  ],
70
68
  resolve: {
71
69
  extensions: ['.ts', '.tsx', '.js', 'jsx'],
@@ -1,15 +0,0 @@
1
- {
2
- "main.css": "auto/main.css",
3
- "main.js": "auto/main.bundle.js",
4
- "131.ebd0b9e1.chunk.js": "auto/131.ebd0b9e1.chunk.js",
5
- "static/img/reLogin.png": "auto/static/img/294142da390c5af23324.png",
6
- "static/img/emptyPage.png": "auto/static/img/daa00e3565343b2c9c18.png",
7
- "static/img/expira.png": "auto/static/img/ddf3e1f8ec8350445a4a.png",
8
- "static/img/app-scan-zh.png": "auto/static/img/cd53a77fb81c7c568c93.png",
9
- "static/img/app-scan-en.png": "auto/static/img/1a627bbd762619cb553e.png",
10
- "en.json": "auto/en.json",
11
- "zh.json": "auto/zh.json",
12
- "main.css.map": "auto/main.css.map",
13
- "main.bundle.js.map": "auto/main.bundle.js.map",
14
- "131.ebd0b9e1.chunk.js.map": "auto/131.ebd0b9e1.chunk.js.map"
15
- }