@ai-matrx/records-ui 0.106.0 → 0.107.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/index.d.cts CHANGED
@@ -3426,6 +3426,8 @@ interface FieldEditorControlProps {
3426
3426
  * drop-down or a "Choose" button. Every other control ignores it.
3427
3427
  */
3428
3428
  asForm?: boolean | undefined;
3429
+ /** A FORM'S SINGLE CHOICE WAS PICKED (lane TYPEFORM-2): the runner may go on to the next question. */
3430
+ onChosen?: (() => void) | undefined;
3429
3431
  }
3430
3432
  /** The label row every editor shares: one line, the label, the unit, the required mark. */
3431
3433
  declare function FieldLabel({ field, htmlFor, children }: {
@@ -3433,7 +3435,7 @@ declare function FieldLabel({ field, htmlFor, children }: {
3433
3435
  htmlFor: string;
3434
3436
  children?: ReactNode;
3435
3437
  }): react.JSX.Element;
3436
- declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
3438
+ declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
3437
3439
  /** The chip a picked record shows as — REC-2's "a record is a chip" in one place. */
3438
3440
  declare function RecordChip({ title, onRemove, className, }: {
3439
3441
  title: string;
@@ -4660,6 +4662,28 @@ interface FormSpec {
4660
4662
  * whoever happens to be signed in and calling it public.
4661
4663
  */
4662
4664
  isPublic?: boolean;
4665
+ /**
4666
+ * THE OWNER'S LOGO AND NAME ABOVE THE FORM (lane TYPEFORM-2). Left out, the organization's knob
4667
+ * `forms/show_owner_header` (default on); false hides the agency's brand on a client's form.
4668
+ */
4669
+ showOwnerHeader?: boolean | null;
4670
+ /** A single choice goes on to the next question when picked. Left out, knob `forms/choice_auto_advance`. */
4671
+ autoAdvance?: boolean | null;
4672
+ /** NOTIFY ON ANSWER, the builder's words (lane TYPEFORM-2): a webhook and the automation that sends it. */
4673
+ notify?: FormNotify | null;
4674
+ }
4675
+ /** Where an answer is sent besides the owner's own subscription (lane TYPEFORM-2). */
4676
+ interface FormNotify {
4677
+ webhookUrl?: string | null;
4678
+ /** The `custom.automation_declare` row that posts to `webhookUrl` (trigger form_answered). */
4679
+ webhookAutomationId?: Uuid | null;
4680
+ /**
4681
+ * EMAIL THE RESPONDENT (TYPEFORM-2), off unless set: one email to the address the person typed
4682
+ * in `respondentField` (an email question), worded from the ending reached — sent by
4683
+ * `custom.form_respondent_copy` through the platform's notification sender.
4684
+ */
4685
+ emailRespondent?: boolean | null;
4686
+ respondentField?: string | null;
4663
4687
  }
4664
4688
  /**
4665
4689
  * A form as `custom.forms` reports it — the spec a screen renders, plus the
@@ -4912,9 +4936,15 @@ interface FormLookFrameProps {
4912
4936
  children: ReactNode;
4913
4937
  /** The builder's preview pane: the accent band sits on the pane, not across the window. */
4914
4938
  contained?: boolean | undefined;
4939
+ /**
4940
+ * THE OWNER'S LOGO AND NAME (lane TYPEFORM-2). Off, the frame draws no logo and no organization
4941
+ * name — an agency's client form carries the client's words only. The host resolves the knob
4942
+ * `forms/show_owner_header` and the form's own override; left out, shown.
4943
+ */
4944
+ showOwnerHeader?: boolean | undefined;
4915
4945
  className?: string | undefined;
4916
4946
  }
4917
- declare function FormLookFrame({ look, title, children, contained, className }: FormLookFrameProps): react.JSX.Element;
4947
+ declare function FormLookFrame({ look, title, children, contained, showOwnerHeader, className }: FormLookFrameProps): react.JSX.Element;
4918
4948
 
4919
4949
  interface DigestSchedulerProps {
4920
4950
  /** The Table the digest is about. A saved view is a view OF something. */
@@ -5741,6 +5771,12 @@ interface FormRunnerProps {
5741
5771
  onStart?: (() => void) | undefined;
5742
5772
  /** TYPEFORM-DUP: called as each question is put in front of the person — the host counts drop-off. */
5743
5773
  onQuestionShown?: ((fieldKey: string) => void) | undefined;
5774
+ /**
5775
+ * TYPEFORM-2: a single choice goes on to the next question when picked. Left out, the form's own
5776
+ * `autoAdvance`, then on (the knob `forms/choice_auto_advance`'s default — the public page passes
5777
+ * the organization's resolved value).
5778
+ */
5779
+ autoAdvance?: boolean | undefined;
5744
5780
  }
5745
5781
  /**
5746
5782
  * THE ONE ENTRY POINT. It picks the arm and nothing else: a caller that brought
package/dist/index.d.ts CHANGED
@@ -3426,6 +3426,8 @@ interface FieldEditorControlProps {
3426
3426
  * drop-down or a "Choose" button. Every other control ignores it.
3427
3427
  */
3428
3428
  asForm?: boolean | undefined;
3429
+ /** A FORM'S SINGLE CHOICE WAS PICKED (lane TYPEFORM-2): the runner may go on to the next question. */
3430
+ onChosen?: (() => void) | undefined;
3429
3431
  }
3430
3432
  /** The label row every editor shares: one line, the label, the unit, the required mark. */
3431
3433
  declare function FieldLabel({ field, htmlFor, children }: {
@@ -3433,7 +3435,7 @@ declare function FieldLabel({ field, htmlFor, children }: {
3433
3435
  htmlFor: string;
3434
3436
  children?: ReactNode;
3435
3437
  }): react.JSX.Element;
3436
- declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
3438
+ declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
3437
3439
  /** The chip a picked record shows as — REC-2's "a record is a chip" in one place. */
3438
3440
  declare function RecordChip({ title, onRemove, className, }: {
3439
3441
  title: string;
@@ -4660,6 +4662,28 @@ interface FormSpec {
4660
4662
  * whoever happens to be signed in and calling it public.
4661
4663
  */
4662
4664
  isPublic?: boolean;
4665
+ /**
4666
+ * THE OWNER'S LOGO AND NAME ABOVE THE FORM (lane TYPEFORM-2). Left out, the organization's knob
4667
+ * `forms/show_owner_header` (default on); false hides the agency's brand on a client's form.
4668
+ */
4669
+ showOwnerHeader?: boolean | null;
4670
+ /** A single choice goes on to the next question when picked. Left out, knob `forms/choice_auto_advance`. */
4671
+ autoAdvance?: boolean | null;
4672
+ /** NOTIFY ON ANSWER, the builder's words (lane TYPEFORM-2): a webhook and the automation that sends it. */
4673
+ notify?: FormNotify | null;
4674
+ }
4675
+ /** Where an answer is sent besides the owner's own subscription (lane TYPEFORM-2). */
4676
+ interface FormNotify {
4677
+ webhookUrl?: string | null;
4678
+ /** The `custom.automation_declare` row that posts to `webhookUrl` (trigger form_answered). */
4679
+ webhookAutomationId?: Uuid | null;
4680
+ /**
4681
+ * EMAIL THE RESPONDENT (TYPEFORM-2), off unless set: one email to the address the person typed
4682
+ * in `respondentField` (an email question), worded from the ending reached — sent by
4683
+ * `custom.form_respondent_copy` through the platform's notification sender.
4684
+ */
4685
+ emailRespondent?: boolean | null;
4686
+ respondentField?: string | null;
4663
4687
  }
4664
4688
  /**
4665
4689
  * A form as `custom.forms` reports it — the spec a screen renders, plus the
@@ -4912,9 +4936,15 @@ interface FormLookFrameProps {
4912
4936
  children: ReactNode;
4913
4937
  /** The builder's preview pane: the accent band sits on the pane, not across the window. */
4914
4938
  contained?: boolean | undefined;
4939
+ /**
4940
+ * THE OWNER'S LOGO AND NAME (lane TYPEFORM-2). Off, the frame draws no logo and no organization
4941
+ * name — an agency's client form carries the client's words only. The host resolves the knob
4942
+ * `forms/show_owner_header` and the form's own override; left out, shown.
4943
+ */
4944
+ showOwnerHeader?: boolean | undefined;
4915
4945
  className?: string | undefined;
4916
4946
  }
4917
- declare function FormLookFrame({ look, title, children, contained, className }: FormLookFrameProps): react.JSX.Element;
4947
+ declare function FormLookFrame({ look, title, children, contained, showOwnerHeader, className }: FormLookFrameProps): react.JSX.Element;
4918
4948
 
4919
4949
  interface DigestSchedulerProps {
4920
4950
  /** The Table the digest is about. A saved view is a view OF something. */
@@ -5741,6 +5771,12 @@ interface FormRunnerProps {
5741
5771
  onStart?: (() => void) | undefined;
5742
5772
  /** TYPEFORM-DUP: called as each question is put in front of the person — the host counts drop-off. */
5743
5773
  onQuestionShown?: ((fieldKey: string) => void) | undefined;
5774
+ /**
5775
+ * TYPEFORM-2: a single choice goes on to the next question when picked. Left out, the form's own
5776
+ * `autoAdvance`, then on (the knob `forms/choice_auto_advance`'s default — the public page passes
5777
+ * the organization's resolved value).
5778
+ */
5779
+ autoAdvance?: boolean | undefined;
5744
5780
  }
5745
5781
  /**
5746
5782
  * THE ONE ENTRY POINT. It picks the arm and nothing else: a caller that brought