@ai-matrx/records-ui 0.105.1 → 0.107.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/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,21 @@ 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;
4663
4680
  }
4664
4681
  /**
4665
4682
  * A form as `custom.forms` reports it — the spec a screen renders, plus the
@@ -4912,9 +4929,15 @@ interface FormLookFrameProps {
4912
4929
  children: ReactNode;
4913
4930
  /** The builder's preview pane: the accent band sits on the pane, not across the window. */
4914
4931
  contained?: boolean | undefined;
4932
+ /**
4933
+ * THE OWNER'S LOGO AND NAME (lane TYPEFORM-2). Off, the frame draws no logo and no organization
4934
+ * name — an agency's client form carries the client's words only. The host resolves the knob
4935
+ * `forms/show_owner_header` and the form's own override; left out, shown.
4936
+ */
4937
+ showOwnerHeader?: boolean | undefined;
4915
4938
  className?: string | undefined;
4916
4939
  }
4917
- declare function FormLookFrame({ look, title, children, contained, className }: FormLookFrameProps): react.JSX.Element;
4940
+ declare function FormLookFrame({ look, title, children, contained, showOwnerHeader, className }: FormLookFrameProps): react.JSX.Element;
4918
4941
 
4919
4942
  interface DigestSchedulerProps {
4920
4943
  /** The Table the digest is about. A saved view is a view OF something. */
@@ -5741,6 +5764,12 @@ interface FormRunnerProps {
5741
5764
  onStart?: (() => void) | undefined;
5742
5765
  /** TYPEFORM-DUP: called as each question is put in front of the person — the host counts drop-off. */
5743
5766
  onQuestionShown?: ((fieldKey: string) => void) | undefined;
5767
+ /**
5768
+ * TYPEFORM-2: a single choice goes on to the next question when picked. Left out, the form's own
5769
+ * `autoAdvance`, then on (the knob `forms/choice_auto_advance`'s default — the public page passes
5770
+ * the organization's resolved value).
5771
+ */
5772
+ autoAdvance?: boolean | undefined;
5744
5773
  }
5745
5774
  /**
5746
5775
  * 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,21 @@ 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;
4663
4680
  }
4664
4681
  /**
4665
4682
  * A form as `custom.forms` reports it — the spec a screen renders, plus the
@@ -4912,9 +4929,15 @@ interface FormLookFrameProps {
4912
4929
  children: ReactNode;
4913
4930
  /** The builder's preview pane: the accent band sits on the pane, not across the window. */
4914
4931
  contained?: boolean | undefined;
4932
+ /**
4933
+ * THE OWNER'S LOGO AND NAME (lane TYPEFORM-2). Off, the frame draws no logo and no organization
4934
+ * name — an agency's client form carries the client's words only. The host resolves the knob
4935
+ * `forms/show_owner_header` and the form's own override; left out, shown.
4936
+ */
4937
+ showOwnerHeader?: boolean | undefined;
4915
4938
  className?: string | undefined;
4916
4939
  }
4917
- declare function FormLookFrame({ look, title, children, contained, className }: FormLookFrameProps): react.JSX.Element;
4940
+ declare function FormLookFrame({ look, title, children, contained, showOwnerHeader, className }: FormLookFrameProps): react.JSX.Element;
4918
4941
 
4919
4942
  interface DigestSchedulerProps {
4920
4943
  /** The Table the digest is about. A saved view is a view OF something. */
@@ -5741,6 +5764,12 @@ interface FormRunnerProps {
5741
5764
  onStart?: (() => void) | undefined;
5742
5765
  /** TYPEFORM-DUP: called as each question is put in front of the person — the host counts drop-off. */
5743
5766
  onQuestionShown?: ((fieldKey: string) => void) | undefined;
5767
+ /**
5768
+ * TYPEFORM-2: a single choice goes on to the next question when picked. Left out, the form's own
5769
+ * `autoAdvance`, then on (the knob `forms/choice_auto_advance`'s default — the public page passes
5770
+ * the organization's resolved value).
5771
+ */
5772
+ autoAdvance?: boolean | undefined;
5744
5773
  }
5745
5774
  /**
5746
5775
  * THE ONE ENTRY POINT. It picks the arm and nothing else: a caller that brought