{
  "component": {
    "id": "product-tour",
    "name": "Product tour",
    "tier": "pro",
    "exampleId": "product-tour",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/product-tour-demo.tsx",
    "exportName": "ProductTourDemo",
    "sha256": "4c5d0f0dc4fb96644c48bee03f330a1ea2bc002059fd4518a2b2797cc92f2bef",
    "helperImports": [],
    "directComponentImports": [
      "product-tour"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/product-tour",
    "registryUrl": "https://tidalui.com/r/pro/product-tour.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/product-tour",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/product-tour",
      "registryUrl": "https://tidalui.com/r/pro/product-tour.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/product-tour.tsx",
    "exports": [
      "TidalProductTour",
      "TidalTourStep"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/product-tour.css",
      "components/ui/popover.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/popover"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "popover",
      "product-tour"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/product-tour.css",
      "components/ui/popover.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/product-tour.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/product-tour-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useMemo, useRef, useState } from \"react\";\n\nimport { TidalProductTour, type TidalTourStep } from \"./components/ui/product-tour\";\n\nimport \"./components/ui/product-tour.css\";\n\nimport \"./components/ui/popover.css\";\n\n\n\nconst tidalExampleStyles = \".product-tour-demo {\\n  width: 100%;\\n  max-width: 760px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 20px;\\n  background: var(--t-surface);\\n  padding: 24px;\\n  color: var(--t-ink);\\n}\\n.product-tour-demo header {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 20px;\\n}\\n.product-tour-demo button {\\n  min-height: 44px;\\n  padding: 10px 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 8px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 12px;\\n  cursor: pointer;\\n}\\n.product-tour-demo nav {\\n  display: flex;\\n  gap: 8px;\\n  margin: 24px 0;\\n}\\n.product-tour-demo nav button[aria-pressed=\\\"true\\\"] {\\n  background: var(--t-subtle);\\n}\\n.product-tour-demo-activity {\\n  padding: 20px;\\n  margin-bottom: 20px;\\n  background: var(--t-subtle);\\n  border-radius: 12px;\\n}\\n.product-tour-demo small {\\n  font-size: 11px;\\n  text-transform: uppercase;\\n  letter-spacing: 0.1em;\\n  color: var(--t-muted);\\n}\\n.product-tour-demo h3 {\\n  font-size: 19px;\\n  margin: 10px 0;\\n}\\n.product-tour-demo p {\\n  font-size: 12px;\\n  line-height: 1.6;\\n  color: var(--t-muted);\\n}\\n@media (max-width: 400px) {\\n  .product-tour-demo {\\n    padding: 16px;\\n  }\\n  .product-tour-demo header {\\n    flex-wrap: wrap;\\n    gap: 10px;\\n  }\\n}\";\n\nexport function ProductTourDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const [current, setCurrent] = useState<string | null>(null),\n    [done, setDone] = useState(false),\n    [tab, setTab] = useState(\"Overview\");\n  const projects = useRef<HTMLButtonElement>(null),\n    activity = useRef<HTMLDivElement>(null),\n    create = useRef<HTMLButtonElement>(null);\n  const steps = useMemo<readonly TidalTourStep[]>(\n    () => [\n      {\n        id: \"projects\",\n        title: \"Find your projects\",\n        description: \"Keep active work close. This tab opens the project list.\",\n        target: () => projects.current,\n      },\n      {\n        id: \"activity\",\n        title: \"Review recent activity\",\n        description: \"See the latest changes in this workspace.\",\n        target: () => activity.current,\n      },\n      {\n        id: \"create\",\n        title: \"Start something new\",\n        description: \"Create a project when you are ready.\",\n        target: () => create.current,\n      },\n    ],\n    [],\n  );\n  return (\n    <div className=\"product-tour-demo\">\n      <header>\n        <strong>Workspace</strong>\n        <button\n          onClick={() => {\n            setDone(false);\n            setCurrent(\"projects\");\n          }}\n        >\n          Take a tour\n        </button>\n      </header>\n      <nav>\n        {[\"Overview\", \"Projects\"].map((label) => (\n          <button\n            key={label}\n            ref={label === \"Projects\" ? projects : undefined}\n            aria-pressed={tab === label}\n            onClick={() => setTab(label)}\n          >\n            {label}\n          </button>\n        ))}\n      </nav>\n      <div ref={activity} className=\"product-tour-demo-activity\">\n        <small>{tab}</small>\n        <h3>{tab === \"Projects\" ? \"Your projects\" : \"Recent activity\"}</h3>\n        <p>\n          {tab === \"Projects\"\n            ? \"Website refresh · Review\"\n            : \"Website refresh moved to review.\"}\n        </p>\n      </div>\n      <button ref={create} onClick={() => setTab(\"Projects\")}>\n        Create project\n      </button>\n      {done && <p role=\"status\">Tour complete in this preview.</p>}\n      <TidalProductTour\n        theme={theme}\n        steps={steps}\n        currentId={current}\n        onStepChange={setCurrent}\n        onDismiss={() => setCurrent(null)}\n        onFinish={() => {\n          setCurrent(null);\n          setDone(true);\n        }}\n      />\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ProductTourDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/product-tour.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "currentId",
      "type": "inferred-from-existing-demo",
      "initial": "null",
      "setter": "setCurrent",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onDismiss",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onFinish",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onStepChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Verify focus returns to the invoking control after dismissal.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
