@hosty-sdk/app 0.42.0 → 0.43.0
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/install-react.js +3 -1
- package/dist/install.d.ts +3 -0
- package/dist/install.js +4 -0
- package/package.json +1 -1
package/dist/install-react.js
CHANGED
|
@@ -127,7 +127,9 @@ function InstallationSession({ client, source, confirmationWindow, onClose, onCh
|
|
|
127
127
|
const popup = openInstallationConfirmation();
|
|
128
128
|
claimPopup(popup);
|
|
129
129
|
// A known draft submit failure retries its existing identity, without resolving the feed again.
|
|
130
|
-
if (
|
|
130
|
+
if (request?.updatePlan?.error)
|
|
131
|
+
flow.clearReview();
|
|
132
|
+
if (!flow.snapshot().request)
|
|
131
133
|
await flow.review(initialSource ?? { manifestPath: manifestPath.trim() });
|
|
132
134
|
if (flow.snapshot().request?.status !== "draft") {
|
|
133
135
|
closeUnusedPopup(popup);
|
package/dist/install.d.ts
CHANGED
|
@@ -114,6 +114,9 @@ export interface InstallationRequest {
|
|
|
114
114
|
status: "draft" | "pending" | "executing" | "succeeded" | "denied" | "failed";
|
|
115
115
|
plan: InstallPlan | null;
|
|
116
116
|
updatePlan?: {
|
|
117
|
+
error?: string | null;
|
|
118
|
+
errorCode?: string | null;
|
|
119
|
+
readiness?: string | null;
|
|
117
120
|
appId: string;
|
|
118
121
|
displayName?: string | null;
|
|
119
122
|
targetVersion: string;
|
package/dist/install.js
CHANGED
|
@@ -78,6 +78,10 @@ export class InstallationFlow {
|
|
|
78
78
|
async submit(settings, autostart) {
|
|
79
79
|
if (this.state.busy || this.state.uncertainSubmit || this.state.request?.status !== "draft")
|
|
80
80
|
return null;
|
|
81
|
+
if (this.state.request.updatePlan?.error) {
|
|
82
|
+
this.set({ ...this.state, error: this.state.request.updatePlan.error });
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
81
85
|
const id = this.state.request.id;
|
|
82
86
|
const generation = this.generation;
|
|
83
87
|
this.submitting = true;
|
package/package.json
CHANGED