@tuya-sat/sdf-main-sdk 6.2.5 → 6.2.6

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,7 +1,7 @@
1
1
  {
2
2
  "main.css": "auto/main.css",
3
3
  "main.js": "auto/main.bundle.js",
4
- "364.2d905ea9.chunk.js": "auto/364.2d905ea9.chunk.js",
4
+ "364.051902fe.chunk.js": "auto/364.051902fe.chunk.js",
5
5
  "static/img/login3.png": "auto/static/img/dd06d35d98047203e715.png",
6
6
  "static/img/reLogin.png": "auto/static/img/294142da390c5af23324.png",
7
7
  "static/img/login2.png": "auto/static/img/47a523d0027c7b5af83f.png",
@@ -23,5 +23,5 @@
23
23
  "static/img/tuya.png": "auto/static/img/328d8b5c342b13933c5c.png",
24
24
  "main.css.map": "auto/main.css.map",
25
25
  "main.bundle.js.map": "auto/main.bundle.js.map",
26
- "364.2d905ea9.chunk.js.map": "auto/364.2d905ea9.chunk.js.map"
26
+ "364.051902fe.chunk.js.map": "auto/364.051902fe.chunk.js.map"
27
27
  }
@@ -0,0 +1,8 @@
1
+ export declare const MAIN_APP_AUTH_MODE_KEY = "sdf.main-app.auth.mode";
2
+ /**
3
+ * @brief 判断主应用是否关闭 SDK 前端鉴权
4
+ * @return true 表示 SDK 不主动跳登录、不做前端 403 类路由拦截、不主动请求 saas-info/MQTT
5
+ * @note 配置来源为主应用 manifest.json 的 annotations: { "sdf.main-app.auth.mode": "none" }。
6
+ * 该开关只影响浏览器侧 SDK 主动行为,不绕过网关 LoginGuard、SaaS API 权限或后端接口鉴权。
7
+ */
8
+ export declare const isMainAppAuthDisabled: () => boolean;
@@ -1,4 +1,6 @@
1
+ export { isMainAppAuthDisabled, MAIN_APP_AUTH_MODE_KEY } from '@/utils/authMode';
1
2
  export declare const AUTH_SYNC_KEY = "SAAS_AUTH_SYNC_EVENT";
3
+ export declare const SAAS_AUTH_INFO_KEY = "SAAS_AUTH_INFO";
2
4
  type AuthSyncType = 'login' | 'logout';
3
5
  export declare const emitAuthSyncEvent: (type: AuthSyncType) => void;
4
6
  export declare const findEntry: (menus: any, pathname: any) => any;
@@ -50,4 +52,3 @@ export declare const initSdfConfig: () => void;
50
52
  export declare const app2Group: () => {};
51
53
  export declare const cookieSetting: any;
52
54
  export declare const initCCM: () => void;
53
- export {};
@@ -20,6 +20,7 @@ export declare const eventNames: {
20
20
  HEADER_VISIBLE: string;
21
21
  HIDE_LAYOUT_PADDING: string;
22
22
  UNMOUNT_MICRO_APP: string;
23
+ AUTH_STATE_CHANGE: string;
23
24
  };
24
25
  export declare const eventEmitter: EventEmitter<[never]>;
25
26
  export { switchHome, switchProject, switchProjectToSpace, getPendingSpaceId, clearPendingSpaceId, } from './switchHome';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/sdf-main-sdk",
3
- "version": "6.2.5",
3
+ "version": "6.2.6",
4
4
  "main": "./dist/main.bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",