@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-
|
|
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
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: {
|
|
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
|
@@ -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: {
|
|
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
|
})
|