@algolia/wizard 0.9.0-rc.84.74 → 0.9.0-rc.84.75

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.
Files changed (2) hide show
  1. package/dist/main.js +3 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -287,13 +287,11 @@ var useWizard = create((set, get) => ({
287
287
  // may repeat or duplicate on-screen content and isn't the useful signal
288
288
  // here.
289
289
  submitInput: async (value) => {
290
- const resolve4 = get()._resolve;
291
- if (!resolve4) return;
290
+ await markInteraction();
291
+ get()._resolve?.(value);
292
292
  set({ inputReq: null, _resolve: null, phase: "running" });
293
293
  const id = get().logStart("prompt", `User input: ${describeInputValue(value)}`);
294
294
  get().logEnd(id, "success");
295
- await markInteraction();
296
- resolve4(value);
297
295
  },
298
296
  setDone: () => set({ phase: "done" }),
299
297
  setError: (message) => set({ phase: "error", error: message }),
@@ -2763,7 +2761,7 @@ async function runAnalysis(mode, extraInstructions = []) {
2763
2761
  // package.json
2764
2762
  var package_default = {
2765
2763
  name: "@algolia/wizard",
2766
- version: "0.9.0-rc.84.74",
2764
+ version: "0.9.0-rc.84.75",
2767
2765
  description: "Magically implement Algolia functionality in your codebase",
2768
2766
  type: "module",
2769
2767
  engines: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/wizard",
3
- "version": "0.9.0-rc.84.74",
3
+ "version": "0.9.0-rc.84.75",
4
4
  "description": "Magically implement Algolia functionality in your codebase",
5
5
  "type": "module",
6
6
  "engines": {