impact-chatbot 3.1.6 → 3.1.7
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.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -9345,7 +9345,10 @@ const SurfaceFrameContent = ({ frame, isFormDisabled = false, messageIndex = 0 }
|
|
|
9345
9345
|
if (prompt)
|
|
9346
9346
|
window.dispatchEvent(new CustomEvent(PROMPT_EVENT, { detail: prompt }));
|
|
9347
9347
|
}
|
|
9348
|
-
else if (data.type === "iui:change" && ask && own) {
|
|
9348
|
+
else if (data.type === "iui:change" && ask && own && !isFormDisabled) {
|
|
9349
|
+
// only while the form waits: once it is submitted or timed out, its page repeats its values every time
|
|
9350
|
+
// the surface is posted into it (disabled after Submit, again on each step of the run), and in
|
|
9351
|
+
// chatbotContext those would be sent in place of the next message the user types
|
|
9349
9352
|
const values = data.values || {};
|
|
9350
9353
|
setForm({ values, inputs: Array.isArray(data.inputs) ? data.inputs : Object.keys(values), missing: Array.isArray(data.missing) ? data.missing : [] });
|
|
9351
9354
|
// as this chat's own inputs record their values, for the step form's Submit (ButtonContent)
|