@doubao-dev/framework 0.2.0 → 0.2.2

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/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { HealthDataType as HealthDataType_2 } from '@byted-doubao-apps/bridge-api';
2
+ import type { OpenAppResult } from '@byted-doubao-apps/bridge-api';
2
3
 
3
4
  /**
4
5
  * 加速度数据变化事件。
@@ -7418,6 +7419,15 @@ export declare const onUserScreenRecord: ClientEventRegistry<UserScreenRecordEve
7418
7419
  */
7419
7420
  export declare const onWifiConnected: ClientEventRegistry<WifiConnectedEvent>;
7420
7421
 
7422
+ /**
7423
+ * 通过 URI 打开外部应用。
7424
+ *
7425
+ * @internal
7426
+ */
7427
+ export declare const openApp: (params: {
7428
+ uri: string;
7429
+ }) => Promise<OpenAppResult>;
7430
+
7421
7431
  /**
7422
7432
  * 打开蓝牙适配器。
7423
7433
  *
@@ -644,6 +644,12 @@ export declare interface Circle {
644
644
 
645
645
  export { ContentSizeChangedEvent }
646
646
 
647
+ /**
648
+ * 自定义地图样式 ID。
649
+ * @since 0.2.1
650
+ */
651
+ export declare type CustomMapStyleId = string;
652
+
647
653
  export declare const DoubaoPaymentButton: typeof DoubaoPaymentButton_2;
648
654
 
649
655
  declare const DoubaoPaymentButton_2: DoubaoPaymentButton_3;
@@ -1749,10 +1755,10 @@ export declare interface MapProps {
1749
1755
  */
1750
1756
  children?: ReactNode;
1751
1757
  /**
1752
- * 地图主题样式。
1758
+ * 地图主题样式,支持内置主题;自 0.2.1 起支持自定义样式 ID。
1753
1759
  * @defaultValue "normal-light"
1754
1760
  */
1755
- mapStyle?: 'normal-light' | 'normal-dark' | 'simple-light' | 'simple-dark';
1761
+ mapStyle?: 'normal-light' | 'normal-dark' | 'simple-light' | 'simple-dark' | CustomMapStyleId;
1756
1762
  /**
1757
1763
  * 地图中心位置。
1758
1764
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubao-dev/framework",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {