@qaiddev/quests-embed 1.6.0 → 1.6.1

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/embed.d.ts CHANGED
@@ -45,6 +45,7 @@ export declare class QaidQuests {
45
45
  private scrollCueEl;
46
46
  private overflow;
47
47
  private footerEl;
48
+ private primaryBtn;
48
49
  private savingEl;
49
50
  private backdropEl;
50
51
  private currentInput;
@@ -96,6 +97,15 @@ export declare class QaidQuests {
96
97
  private advance;
97
98
  private back;
98
99
  private recomputeVisible;
100
+ /**
101
+ * Label the step's primary button for what pressing it will do: "Submit"
102
+ * when no question after this one is visible under the current answers,
103
+ * "Next" otherwise. Uses the same test as `advance()`, so the two cannot
104
+ * disagree. Called on draw AND on every answer, because an answer can
105
+ * reveal a follow-up (Submit → Next) or hide the last one (Next → Submit).
106
+ * Edits the one button in place — no redraw, so focus and typed text stay.
107
+ */
108
+ private syncPrimaryLabel;
99
109
  private handleAnswerChange;
100
110
  private flushPendingSave;
101
111
  private saveAnswer;