@tuya-sat/sdf-main-sdk 6.2.47 → 6.2.49

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.7ee6d102.chunk.js": "auto/364.7ee6d102.chunk.js",
4
+ "364.c1fc42f3.chunk.js": "auto/364.c1fc42f3.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.7ee6d102.chunk.js.map": "auto/364.7ee6d102.chunk.js.map"
26
+ "364.c1fc42f3.chunk.js.map": "auto/364.c1fc42f3.chunk.js.map"
27
27
  }
@@ -0,0 +1,16 @@
1
+ import { TemperatureUnit } from '@/constant';
2
+ export type TemperatureUnitListener = (unit: TemperatureUnit) => void;
3
+ /**
4
+ * 主、子应用共享的用户温标状态。
5
+ *
6
+ * 子应用通过 qiankun props 中的 `tempUnitSubscribe` 读取当前值并监听变更。
7
+ */
8
+ declare class TemperatureUnitSubscribe {
9
+ private value;
10
+ private readonly listeners;
11
+ getValue: () => TemperatureUnit;
12
+ publish: (unit: TemperatureUnit) => void;
13
+ subscribe: (listener: TemperatureUnitListener, callImmediately?: boolean) => () => boolean;
14
+ }
15
+ export declare const tempUnitSubscribe: TemperatureUnitSubscribe;
16
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/sdf-main-sdk",
3
- "version": "6.2.47",
3
+ "version": "6.2.49",
4
4
  "main": "./dist/main.bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",