{
  "name": "SUB_ACTION_TYPES",
  "package": "@magicblocksai/ui",
  "file": "packages/ui/src/components/SubActionField.tsx",
  "chapterTag": "23 Workspace",
  "chapter": "23-workspace.html",
  "sectionId": null,
  "elName": null,
  "demoUrl": null,
  "hasLiveDemo": false,
  "description": "Action types a **quick-reply button** may trigger (v1 `actionButton.action`).\nExcludes `add_buttons` (no buttons-in-buttons — this terminates the\nrecursion) and `human_takeover` (a terminal handoff, not a button follow-up).\nA button *may* open a form, whose own submit set ({@link FORM_SUBMIT_ACTIONS})\nexcludes forms — so nesting is always bounded.",
  "useClient": true,
  "interactivity": "interactive",
  "namedExports": [
    {
      "name": "SubActionField",
      "isPrincipal": false,
      "isType": false
    },
    {
      "name": "SUB_ACTION_TYPES",
      "isPrincipal": true,
      "isType": false
    },
    {
      "name": "FORM_SUBMIT_ACTIONS",
      "isPrincipal": false,
      "isType": false
    },
    {
      "name": "SubActionFieldProps",
      "isPrincipal": false,
      "isType": true
    }
  ],
  "importStatement": "import { SUB_ACTION_TYPES } from \"@magicblocksai/ui\";",
  "props": [
    {
      "name": "value",
      "optional": true,
      "type": "Action",
      "doc": "The nested action, or `undefined` when none is set yet."
    },
    {
      "name": "onChange",
      "optional": false,
      "type": "(next: Action | undefined) => void",
      "doc": "Fires with the next action, or `undefined` when cleared."
    },
    {
      "name": "allow",
      "optional": true,
      "type": "readonly ActionType[]",
      "doc": "Allowed sub-action types. Defaults to {@link SUB_ACTION_TYPES}."
    },
    {
      "name": "context",
      "optional": true,
      "type": "ActionConfigContext",
      "doc": "Workspace data forwarded to the nested config panel."
    },
    {
      "name": "idPrefix",
      "optional": true,
      "type": "string",
      "doc": "Stable id seed for the created sub-action (e.g. the button id)."
    }
  ],
  "classesUsed": [
    "sub-action-config",
    "sub-action-field"
  ],
  "examples": {
    "react": null,
    "html": null,
    "css": ".sub-action-config { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--bg-warm); }\n\n.sub-action-field { display: flex; flex-direction: column; gap: var(--s-3); }"
  }
}
