@dp-bohrium/widget-sdk 0.0.2 → 0.0.3

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 (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -16,7 +16,8 @@ Host 与控制面应继续只消费 `@dp-bohrium/widget-contracts`,不要安
16
16
  import { createWidgetClient } from "@dp-bohrium/widget-sdk";
17
17
 
18
18
  const widget = createWidgetClient({
19
- widgetSdkVersion: "0.0.2",
19
+ // 填入已安装的 @dp-bohrium/widget-sdk 精确版本(npm view / package.json)
20
+ widgetSdkVersion: "REPLACE_WITH_INSTALLED_SDK_VERSION",
20
21
  async onInit(payload) {
21
22
  // 使用 Host 下发的 locale、theme 与 capabilities 初始化。
22
23
  console.log(payload.locale);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dp-bohrium/widget-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Bohrium Widget 开发者 SDK:在 Widget Bundle 内与 Host 建立 Bridge,并暴露生命周期与能力协议。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@dp-bohrium/widget-contracts": "0.0.2"
48
+ "@dp-bohrium/widget-contracts": "0.0.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@biomejs/biome": "^2.2.0",