{
  "component": {
    "id": "help-center-template",
    "name": "Help center template",
    "tier": "pro",
    "exampleId": "help-center-template",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/help-center-template-demo.tsx",
    "exportName": "HelpCenterTemplateDemo",
    "sha256": "ec61a1ad5a3b149cb3abf1626fe5a88b106bdf58bffffa5329b1c754f31097a5",
    "helperImports": [],
    "directComponentImports": [
      "faq-section",
      "help-center-template",
      "search-results"
    ],
    "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/help-center-template",
    "registryUrl": "https://tidalui.com/r/pro/help-center-template.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/help-center-template",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/help-center-template",
      "registryUrl": "https://tidalui.com/r/pro/help-center-template.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/help-center-template.tsx",
    "exports": [
      "TidalFaqGroup",
      "TidalHelpCenterAction",
      "TidalHelpCenterTemplate",
      "TidalSearchFilter",
      "TidalSearchResult",
      "TidalSearchResultGroup"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/help-center-template.css",
      "components/ui/search-results.css",
      "components/ui/faq-section.css",
      "components/ui/accordion.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/search-results",
      "@tidal-pro/faq-section"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "accordion",
      "faq-section",
      "help-center-template",
      "search-results"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/help-center-template.css",
      "components/ui/search-results.css",
      "components/ui/faq-section.css",
      "components/ui/accordion.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/help-center-template.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/help-center-template-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useMemo, useRef, useState } from \"react\";\n\nimport { TidalHelpCenterTemplate, type TidalHelpCenterAction } from \"./components/ui/help-center-template\";\n\nimport type { TidalSearchFilter, TidalSearchResult, TidalSearchResultGroup } from \"./components/ui/search-results\";\n\nimport type { TidalFaqGroup } from \"./components/ui/faq-section\";\n\nimport \"./components/ui/search-results.css\";\n\nimport \"./components/ui/faq-section.css\";\n\nimport \"./components/ui/help-center-template.css\";\n\nimport \"./components/ui/accordion.css\";\n\n\n\nconst tidalExampleStyles = \".help-center-template-demo,\\n.help-center-template-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.help-center-template-demo {\\n  width: 100%;\\n  min-width: 0;\\n  container: help-center-demo / inline-size;\\n}\\n\\n.help-center-template-demo-notes {\\n  display: grid;\\n  grid-template-columns: repeat(2, minmax(0, 1fr));\\n  gap: 10px;\\n  margin-top: 20px;\\n}\\n\\n.help-center-template-demo-notes article,\\n.help-center-template-demo-contact {\\n  min-width: 0;\\n  padding: 18px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 14px;\\n  background: var(--t-subtle);\\n  color: var(--t-muted);\\n}\\n\\n.help-center-template-demo-notes article:focus-visible,\\n.help-center-template-demo-contact:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.help-center-template-demo-notes span,\\n.help-center-template-demo-contact > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 720;\\n  letter-spacing: 0.1em;\\n  text-transform: uppercase;\\n}\\n\\n.help-center-template-demo-notes h2,\\n.help-center-template-demo-contact h2 {\\n  margin: 7px 0 0;\\n  color: var(--t-ink);\\n  font-size: 18px;\\n  line-height: 1.15;\\n  overflow-wrap: anywhere;\\n}\\n\\n.help-center-template-demo-notes p,\\n.help-center-template-demo-contact p {\\n  margin: 8px 0 0;\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n.help-center-template-demo-contact {\\n  margin-top: 10px;\\n  background: var(--t-ink);\\n  color: color-mix(in srgb, var(--t-surface) 72%, var(--t-ink));\\n}\\n\\n.help-center-template-demo-contact > span,\\n.help-center-template-demo-contact h2 {\\n  color: var(--t-surface);\\n}\\n\\n@container help-center-demo (max-width: 560px) {\\n  .help-center-template-demo-notes {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\";\n\ntype ResultType = \"all\" | \"guide\" | \"policy\";\n\ninterface HelpArticle {\n  id: string;\n  title: string;\n  description: string;\n  type: Exclude<ResultType, \"all\">;\n  typeLabel: string;\n  time: string;\n  body: string;\n}\n\nconst HELP_ARTICLES: readonly HelpArticle[] = [\n  {\n    id: \"workspace-basics\",\n    title: \"Set up a sample workspace\",\n    description: \"Arrange the project list and choose a starting view.\",\n    type: \"guide\",\n    typeLabel: \"Guide\",\n    time: \"4 min\",\n    body: \"Start with one project, give it a clear name, and add only the teammates who need the sample view.\",\n  },\n  {\n    id: \"review-files\",\n    title: \"Review shared files\",\n    description: \"Open a file, inspect its notes, and return to the library.\",\n    type: \"guide\",\n    typeLabel: \"Guide\",\n    time: \"3 min\",\n    body: \"Use the file detail view to read supplied notes before returning to the same filtered library position.\",\n  },\n  {\n    id: \"sample-access\",\n    title: \"Sample access policy\",\n    description: \"Understand how the fictional preview labels access states.\",\n    type: \"policy\",\n    typeLabel: \"Policy\",\n    time: \"2 min\",\n    body: \"Access labels in this preview describe local sample state only. They do not grant an account or share a resource.\",\n  },\n  {\n    id: \"archive-notes\",\n    title: \"Archive notes policy\",\n    description: \"See what the local archive example retains on screen.\",\n    type: \"policy\",\n    typeLabel: \"Policy\",\n    time: \"2 min\",\n    body: \"The archive example changes the visible local list. It does not retain, delete, or recover a real file.\",\n  },\n];\n\nconst FAQ_GROUPS: readonly TidalFaqGroup[] = [\n  {\n    id: \"workspace\",\n    label: \"Workspace\",\n    description: \"Starting and organizing the local sample.\",\n    questions: [\n      {\n        value: \"workspace-name\",\n        title: \"Can I rename the sample workspace?\",\n        searchText: \"workspace name rename\",\n        answer:\n          \"Yes. In this preview, renaming updates local React state only and does not create an account or workspace.\",\n      },\n      {\n        value: \"workspace-people\",\n        title: \"Does adding a teammate send an invitation?\",\n        searchText: \"teammate invite people\",\n        answer:\n          \"No. Fictional teammate choices remain inside the preview and do not send an invitation.\",\n      },\n    ],\n  },\n  {\n    id: \"files\",\n    label: \"Files\",\n    description: \"Reviewing supplied sample documents.\",\n    questions: [\n      {\n        value: \"files-download\",\n        title: \"Which files can I open?\",\n        searchText: \"open download sample files\",\n        answer:\n          \"Only the explicitly labelled sample documents and in-page notes included with this library are available.\",\n      },\n      {\n        value: \"files-storage\",\n        title: \"Are changes stored after reload?\",\n        searchText: \"stored saved reload persistence\",\n        answer:\n          \"No. The connected examples use local component state and reset when the preview reloads.\",\n      },\n    ],\n  },\n];\n\nexport function HelpCenterTemplateDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const searchRef = useRef<HTMLInputElement>(null);\n  const [query, setQuery] = useState(\"\");\n  const [resultType, setResultType] = useState<ResultType>(\"all\");\n  const [faqCategory, setFaqCategory] = useState(\"all\");\n  const [openQuestion, setOpenQuestion] = useState(\"\");\n\n  const visibleArticles = useMemo(() => {\n    const normalized = query.trim().toLocaleLowerCase();\n    return HELP_ARTICLES.filter((article) => {\n      const matchesType = resultType === \"all\" || article.type === resultType;\n      const matchesQuery =\n        !normalized ||\n        `${article.title} ${article.description} ${article.typeLabel}`\n          .toLocaleLowerCase()\n          .includes(normalized);\n      return matchesType && matchesQuery;\n    });\n  }, [query, resultType]);\n\n  const filters: readonly TidalSearchFilter[] = [\n    {\n      id: \"all\",\n      label: \"All\",\n      accessibleLabel: \"Show all help results\",\n      count: HELP_ARTICLES.length,\n    },\n    {\n      id: \"guide\",\n      label: \"Guides\",\n      accessibleLabel: \"Show guides\",\n      count: HELP_ARTICLES.filter((article) => article.type === \"guide\").length,\n    },\n    {\n      id: \"policy\",\n      label: \"Policies\",\n      accessibleLabel: \"Show policies\",\n      count: HELP_ARTICLES.filter((article) => article.type === \"policy\")\n        .length,\n    },\n  ];\n\n  const searchResults: readonly TidalSearchResult[] = visibleArticles.map(\n    (article) => ({\n      id: article.id,\n      title: article.title,\n      description: article.description,\n      typeLabel: article.typeLabel,\n      meta: article.time,\n      action: {\n        kind: \"link\",\n        href: `#help-article-${generatedId}-${article.id}`,\n        accessibleLabel: `Open ${article.title}`,\n      },\n    }),\n  );\n\n  const groups: readonly TidalSearchResultGroup[] = searchResults.length\n    ? [\n        {\n          id: \"help-results\",\n          title: \"Guides and policies\",\n          accessibleLabel: `${searchResults.length} matching help results`,\n          count: searchResults.length,\n          results: searchResults,\n        },\n      ]\n    : [];\n\n  const actions: readonly TidalHelpCenterAction[] = [\n    {\n      id: \"browse\",\n      kind: \"link\",\n      href: `#help-browse-${generatedId}`,\n      label: \"Browse guides\",\n      description: \"Search the supplied local library.\",\n      emphasis: \"primary\",\n    },\n    {\n      id: \"contact\",\n      kind: \"link\",\n      href: `#help-contact-${generatedId}`,\n      label: \"Contact options\",\n      description: \"Review this sample boundary.\",\n    },\n  ];\n\n  function resetResults() {\n    setQuery(\"\");\n    setResultType(\"all\");\n    searchRef.current?.focus({ preventScroll: true });\n  }\n\n  return (\n    <section\n      className=\"help-center-template-demo\"\n      aria-label=\"Help center sample\"\n    >\n      <TidalHelpCenterTemplate\n        title=\"Find a clear next step\"\n        eyebrow=\"Help center\"\n        description=\"Search supplied guides, inspect local policies, and open concise answers for this fictional workspace.\"\n        actions={actions}\n        searchResults={{\n          id: `help-browse-${generatedId}`,\n          title: \"Browse the help library\",\n          eyebrow: null,\n          description:\n            \"Search four supplied help notes or narrow the visible type.\",\n          queryControl: {\n            label: \"Search help\",\n            value: query,\n            placeholder: \"Search guides and policies\",\n            inputRef: searchRef,\n            inputProps: { autoComplete: \"off\" },\n            onValueChange: setQuery,\n          },\n          filters,\n          selectedFilterId: resultType,\n          onFilterChange: (filter) => setResultType(filter.id as ResultType),\n          groups,\n          resultCount: searchResults.length,\n          resultCountLabel: (count) =>\n            `${count} ${count === 1 ? \"help result\" : \"help results\"}`,\n          emptyTitle: \"No matching help notes\",\n          emptyDescription:\n            \"Clear the current query and type to restore the supplied library.\",\n          emptyAction: {\n            label: \"Show all help\",\n            accessibleLabel: \"Clear help search and show every result\",\n            onAction: resetResults,\n          },\n        }}\n        faq={{\n          id: `help-faq-${generatedId}`,\n          title: \"Common questions\",\n          eyebrow: null,\n          description:\n            \"Open an answer from the supplied workspace and file topics.\",\n          groups: FAQ_GROUPS,\n          value: openQuestion,\n          onValueChange: setOpenQuestion,\n          category: {\n            value: faqCategory,\n            allId: \"all\",\n            label: \"FAQ topics\",\n            options: [\n              { id: \"all\", label: \"All topics\" },\n              { id: \"workspace\", label: \"Workspace\" },\n              { id: \"files\", label: \"Files\" },\n            ],\n            onValueChange: (value) => {\n              setFaqCategory(value);\n              setOpenQuestion(\"\");\n            },\n          },\n          reset: {\n            label: \"Reset questions\",\n            onReset: () => {\n              setFaqCategory(\"all\");\n              setOpenQuestion(\"\");\n            },\n          },\n          summaryHint: \"Choose a topic, then open a supplied answer.\",\n        }}\n        footer=\"Sample help content. Search, filters, links, and answers stay in this preview.\"\n      />\n\n      <div\n        className=\"help-center-template-demo-notes\"\n        aria-label=\"Help article notes\"\n      >\n        {HELP_ARTICLES.map((article) => (\n          <article\n            key={article.id}\n            id={`help-article-${generatedId}-${article.id}`}\n            tabIndex={-1}\n          >\n            <span>{article.typeLabel}</span>\n            <h2>{article.title}</h2>\n            <p>{article.body}</p>\n          </article>\n        ))}\n      </div>\n\n      <aside\n        id={`help-contact-${generatedId}`}\n        className=\"help-center-template-demo-contact\"\n        tabIndex={-1}\n      >\n        <span>Contact sample</span>\n        <h2>No support request is sent</h2>\n        <p>\n          This in-page note demonstrates a help destination without creating a\n          ticket, message, account, or stored record.\n        </p>\n      </aside>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <HelpCenterTemplateDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/help-center-template.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": "Existing demo label or ARIA prop",
    "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": "Preserve browser focus order and visible focus.",
    "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": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "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": []
}
