@huaqiu/component-gen-app 0.3.8 → 0.3.9

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/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>华秋 Component Gen</title>
7
- <script type="module" crossorigin src="./assets/index-B83Ehy7Z.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-BUYjeikQ.js"></script>
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
package/lib/index.d.ts CHANGED
@@ -93,6 +93,8 @@ interface HistoryEntry {
93
93
  filename: string;
94
94
  fileUrl?: string;
95
95
  size?: number;
96
+ /** HQ Edge-resolvable URI captured at generation time (Place action). */
97
+ uri?: string;
96
98
  };
97
99
  error?: string;
98
100
  }
package/lib/index.js CHANGED
@@ -923,7 +923,10 @@ function useJobRunner(ports) {
923
923
  setPkgType(entry.input?.packageType ?? null);
924
924
  setFileName(null);
925
925
  setResult({
926
- artifact: { id: entry.result?.artifactId },
926
+ artifact: {
927
+ id: entry.result?.artifactId,
928
+ ...entry.result?.uri ? { uri: entry.result.uri } : {}
929
+ },
927
930
  filename: entry.result?.filename,
928
931
  ...entry.input?.dimensions ? { dimensions: entry.input.dimensions } : {}
929
932
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/component-gen-app",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -114,7 +114,13 @@ export function useJobRunner(ports: ComponentGenPorts): UseJobRunnerResult {
114
114
  setPkgType(entry.input?.packageType ?? null)
115
115
  setFileName(null)
116
116
  setResult({
117
- artifact: { id: entry.result?.artifactId },
117
+ artifact: {
118
+ id: entry.result?.artifactId,
119
+ // The placement channel survives reopens only if the generation-time
120
+ // URI was recorded in history; without it Place stays hidden (the
121
+ // frontend cannot mint an HQ Edge-resolvable URI from a store id).
122
+ ...(entry.result?.uri ? { uri: entry.result.uri } : {}),
123
+ },
118
124
  filename: entry.result?.filename,
119
125
  ...(entry.input?.dimensions ? { dimensions: entry.input.dimensions } : {}),
120
126
  })
package/src/ports.ts CHANGED
@@ -92,6 +92,8 @@ export interface HistoryEntry {
92
92
  filename: string
93
93
  fileUrl?: string
94
94
  size?: number
95
+ /** HQ Edge-resolvable URI captured at generation time (Place action). */
96
+ uri?: string
95
97
  }
96
98
  error?: string
97
99
  }