{
  "antiPatterns": [
    "Using viewport width to select the narrow pane.",
    "Setting document-wide theme attributes for a local preview."
  ],
  "api": {
    "importPath": "@ancrel/workspace",
    "props": [
      {
        "name": "children",
        "required": true,
        "type": "ReactNode"
      },
      {
        "name": "className",
        "required": false,
        "type": "string"
      },
      {
        "name": "defaultNarrowPane",
        "required": false,
        "type": "ShellPane"
      },
      {
        "name": "density",
        "required": false,
        "type": "Density"
      },
      {
        "name": "inspector",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "key",
        "required": false,
        "type": "React.Key | null | undefined"
      },
      {
        "name": "labels",
        "required": false,
        "type": "Partial<{\n        showSidebar: string;\n        showInspector: string;\n        backToMain: string;\n    }>"
      },
      {
        "name": "mainAs",
        "required": false,
        "type": "'main' | 'div'"
      },
      {
        "name": "narrowBreakpoint",
        "required": false,
        "type": "number"
      },
      {
        "name": "narrowPane",
        "required": false,
        "type": "ShellPane"
      },
      {
        "name": "onNarrowPaneChange",
        "required": false,
        "type": "((pane: ShellPane) => void) | undefined"
      },
      {
        "name": "rail",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "ref",
        "required": false,
        "type": "React.Ref<HTMLDivElement> | undefined"
      },
      {
        "name": "sidebar",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "split",
        "required": false,
        "type": "Pick<ResizableSplitProps, 'leftConfig' | 'rightConfig' | 'minCenterWidth' | 'persistKey' | 'storage' | 'labels' | 'onWidthsChange'>"
      },
      {
        "name": "statusBar",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "theme",
        "required": false,
        "type": "Theme"
      },
      {
        "name": "titleBar",
        "required": false,
        "type": "ReactNode"
      }
    ],
    "symbol": "WorkspaceShell",
    "typeRef": "api/workspace/shell/index.d.ts"
  },
  "constraints": [
    "Give the parent a definite height.",
    "Use mainAs=\"div\" when embedding the shell in an existing main landmark."
  ],
  "docs": "raw/frontend/workspace-shell.md",
  "examples": [
    {
      "code": "import '@ancrel/tokens/css'\nimport '@ancrel/workspace/styles.css'\nimport './example.css'\nimport { WorkspaceShell } from '@ancrel/workspace'\n\nexport default function App() {\n  return <section aria-label=\"Report workspace\" className=\"report-workspace\">\n    <WorkspaceShell titleBar=\"Report\" sidebar={<button>Contents</button>}\n      inspector=\"Revision 2\" statusBar=\"Ready\" theme=\"light\" density=\"compact\">\n      <h1>Overview</h1>\n    </WorkspaceShell>\n  </section>\n}\n",
      "command": "pnpm test",
      "entry": "examples/fe.workspace-shell/App.tsx",
      "fixture": "examples/fe.workspace-shell/",
      "id": "minimal"
    }
  ],
  "id": "fe.workspace-shell",
  "kind": "react-component",
  "language": "typescript",
  "layer": "frontend",
  "owner": "frontend-infra",
  "package": {
    "ecosystem": "npm",
    "name": "@ancrel/workspace",
    "version": "0.2.0"
  },
  "provenance": {
    "mode": "original",
    "origin": "Ancrel",
    "references": [
      {
        "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
        "note": "Title bar sizing at line 1357.",
        "path": "frontend/src/App.tsx",
        "repo": "rule-studio"
      },
      {
        "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
        "note": "Workspace layout reference, lines 110–235.",
        "path": "frontend/src/components/rules/RulesWorkspace.tsx",
        "repo": "rule-studio"
      },
      {
        "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
        "note": "Multi-pane acceptance reference.",
        "path": "frontend/src/components/scopes/ScopesWorkspace.tsx",
        "repo": "rule-studio"
      },
      {
        "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
        "note": "Parent-height layout reference for local containment.",
        "path": "frontend/src/index.css",
        "repo": "rule-studio"
      }
    ]
  },
  "schemaVersion": 1,
  "stability": "experimental",
  "summary": "A container-responsive workspace with independently scrollable pane landmarks.",
  "tokenDependencies": [
    "ref.color.x0c0c10",
    "ref.color.x111115",
    "ref.color.x16161a",
    "ref.color.x202025",
    "ref.color.x684a84",
    "ref.color.x737380",
    "ref.color.x858591",
    "ref.color.xcdb2ea",
    "ref.color.xededef",
    "ref.color.xf0f0f3",
    "ref.color.xf5f5f7",
    "ref.color.xffffff",
    "ref.space.px2",
    "ref.space.px36",
    "ref.space.px4",
    "ref.space.px40",
    "ref.space.px6",
    "ref.space.px8",
    "sys.action.focus",
    "sys.border.control",
    "sys.ink.primary",
    "sys.radius.sm",
    "sys.size.titleBar",
    "sys.space.hair",
    "sys.space.snug",
    "sys.space.tight",
    "sys.surface.canvas",
    "sys.surface.chrome",
    "sys.surface.panel"
  ]
}
