@tutti-os/workspace-app-center 0.0.43 → 0.0.44
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/{chunk-TEGNWC7E.js → chunk-N4YVSUX5.js} +17 -2
- package/dist/{chunk-TEGNWC7E.js.map → chunk-N4YVSUX5.js.map} +1 -1
- package/dist/contracts/index.d.ts +22 -0
- package/dist/core/index.js +1 -1
- package/dist/i18n/index.js +12 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/ui/index.d.ts +5 -1
- package/dist/ui/index.js +263 -25
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -2145,7 +2145,14 @@ function createAppCenterViewModel({
|
|
|
2145
2145
|
...factoryJob?.jobId ? { factoryJobId: factoryJob.jobId } : {},
|
|
2146
2146
|
...factoryJob?.provider ? { factoryProvider: factoryJob.provider } : {},
|
|
2147
2147
|
...runtime?.error?.message ? { errorMessage: runtime.error.message } : {},
|
|
2148
|
-
...runtime?.installProgress ? { installProgress: runtime.installProgress } : {}
|
|
2148
|
+
...runtime?.installProgress ? { installProgress: runtime.installProgress } : {},
|
|
2149
|
+
authors: resolveWorkspaceAppAuthors(app.manifest),
|
|
2150
|
+
...app.manifest.source ? {
|
|
2151
|
+
repository: {
|
|
2152
|
+
type: app.manifest.source.type,
|
|
2153
|
+
url: app.manifest.source.url
|
|
2154
|
+
}
|
|
2155
|
+
} : {}
|
|
2149
2156
|
};
|
|
2150
2157
|
}).sort((left, right) => left.name.localeCompare(right.name));
|
|
2151
2158
|
return {
|
|
@@ -2157,6 +2164,14 @@ function createAppCenterViewModel({
|
|
|
2157
2164
|
runningCount: appCards.filter((app) => app.status === "running").length
|
|
2158
2165
|
};
|
|
2159
2166
|
}
|
|
2167
|
+
function resolveWorkspaceAppAuthors(manifest) {
|
|
2168
|
+
const authors = manifest.authors && manifest.authors.length > 0 ? manifest.authors : manifest.author ? [manifest.author] : [];
|
|
2169
|
+
return authors.map((author) => ({
|
|
2170
|
+
avatarUrl: normalizeOptionalString(author.avatarUrl),
|
|
2171
|
+
name: normalizeOptionalString(author.name) ?? "",
|
|
2172
|
+
url: normalizeOptionalString(author.url)
|
|
2173
|
+
})).filter((author) => author.name);
|
|
2174
|
+
}
|
|
2160
2175
|
function createRuntimeStateMaps(runtimeStates) {
|
|
2161
2176
|
const fallbackByAppId = /* @__PURE__ */ new Map();
|
|
2162
2177
|
const byInstallationId = /* @__PURE__ */ new Map();
|
|
@@ -2380,4 +2395,4 @@ export {
|
|
|
2380
2395
|
resolveWorkspaceAppCatalogMetadata,
|
|
2381
2396
|
createWorkspaceAppRecord
|
|
2382
2397
|
};
|
|
2383
|
-
//# sourceMappingURL=chunk-
|
|
2398
|
+
//# sourceMappingURL=chunk-N4YVSUX5.js.map
|