@asgard-js/react 0.2.54 → 0.2.55

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.
@@ -0,0 +1,12 @@
1
+ import { AsgardServiceClient } from '@asgard-js/core';
2
+
3
+ /**
4
+ * 判斷 uri 是否為指向 channel sandbox 工作目錄的 cwd:// 連結。
5
+ */
6
+ export declare function isCwdUri(uri: string | null | undefined): boolean;
7
+ /**
8
+ * 處理 cwd:// URI action:取出相對路徑、呼叫 Edge Server 取回檔案 binary、觸發瀏覽器下載。
9
+ * 失敗時記錄錯誤而不向外拋,讓事件 handler 可安全地 `void` 它。
10
+ */
11
+ export declare function downloadCwdUri(client: AsgardServiceClient, customChannelId: string, uri: string): Promise<void>;
12
+ //# sourceMappingURL=cwd-download.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwd-download.d.ts","sourceRoot":"","sources":["../../src/utils/cwd-download.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAItD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEhE;AAmBD;;;GAGG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAUrH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgard-js/react",
3
- "version": "0.2.54",
3
+ "version": "0.2.55",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -47,7 +47,7 @@
47
47
  "vite-plugin-svgr": "^4.3.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@asgard-js/core": "^0.2.54",
50
+ "@asgard-js/core": "^0.2.55",
51
51
  "react": "^18.0.0 || ^19.0.0",
52
52
  "react-dom": "^18.0.0 || ^19.0.0"
53
53
  }