{"_id":"@apextelemed/survey-solid","_rev":"2-a72cd9baa7e90e9165bc2fa831c0abf3","name":"@apextelemed/survey-solid","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@apextelemed/survey-solid","version":"0.1.0","keywords":["apex","telemed","survey","solid","solidjs","telehealth"],"license":"MIT","_id":"@apextelemed/survey-solid@0.1.0","maintainers":[{"name":"apexjoeleaver","email":"jleaver@apextelemed.com"},{"name":"smcclure_apex","email":"smcclure@apextelemed.com"}],"homepage":"https://github.com/thefortifiedgrp/apex-survey-helper/tree/main/packages/solid#readme","bugs":{"url":"https://github.com/thefortifiedgrp/apex-survey-helper/issues"},"dist":{"shasum":"00160c000e28239192d3ca1842943706f27058ec","tarball":"https://registry.npmjs.org/@apextelemed/survey-solid/-/survey-solid-0.1.0.tgz","fileCount":9,"integrity":"sha512-QK6GDGz5x9NQzGt0y3Un+H+upd/5zPPNq6RobHVqVyf2tkP9bOfmUnhhFXh0wVQrbfrO9CPbA3nPlXWk7a9bPw==","signatures":[{"sig":"MEYCIQCEAB8azlQPEKClcZeXxc4V+NXd6KXf35GZd32bi4MeTgIhAPyXxPfYbKfrV/KDwXcfWBqfdbChQi6Cb5Z8cSEo700D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apextelemed%2fsurvey-solid@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42417},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c676cedf601813b36006816276f315f669146291","scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"smcclure_apex","email":"smcclure@apextelemed.com"},"repository":{"url":"git+https://github.com/thefortifiedgrp/apex-survey-helper.git","type":"git","directory":"packages/solid"},"_npmVersion":"10.8.2","description":"Solid hook for the Apex Telemed survey-v2 embed flow.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"@apextelemed/survey-core":"*"},"peerDependencies":{"solid-js":"^1.9.0","@apextelemed/survey-core":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/survey-solid_0.1.0_1787612586838_0.9630910294227657","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@apextelemed/survey-solid","version":"0.2.0","description":"Solid hook for the Apex Telemed survey-v2 embed flow.","license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git+https://github.com/thefortifiedgrp/apex-survey-helper.git","directory":"packages/solid"},"homepage":"https://github.com/thefortifiedgrp/apex-survey-helper/tree/main/packages/solid#readme","bugs":{"url":"https://github.com/thefortifiedgrp/apex-survey-helper/issues"},"type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"keywords":["apex","telemed","survey","solid","solidjs","telehealth"],"peerDependencies":{"@apextelemed/survey-core":">=0.1.0 <1.0.0","solid-js":"^1.9.0"},"devDependencies":{"@apextelemed/survey-core":"*"},"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=18"},"gitHead":"668eeee60c8d30ddd21a721dd25b4b2834c56715","_id":"@apextelemed/survey-solid@0.2.0","_nodeVersion":"24.19.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-5m0vnzCcBWuZwNyAMj8VsHYs98aDnx3RhoumtHQPa/HExrd2luSQiM1927tYOCivtM5rEMoSY05d8fRXs5w0Wg==","shasum":"47755b3c9b1fc8afab5850b983b9f3801a936057","tarball":"https://registry.npmjs.org/@apextelemed/survey-solid/-/survey-solid-0.2.0.tgz","fileCount":9,"unpackedSize":44024,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apextelemed%2fsurvey-solid@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIETS/XkpBv866twDR89yv0JBhZ/ECE0tt6D0L6Phr/SIAiEAhDwoC+4Y3BsBYGycTraLgOw5aQU3zc0mX8NF/MhSb74="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cb8a2832-6242-4bd1-8c3c-9049f03ec9f3"}},"directories":{},"maintainers":[{"name":"apexjoeleaver","email":"jleaver@apextelemed.com"},{"name":"smcclure_apex","email":"smcclure@apextelemed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/survey-solid_0.2.0_1787692653366_0.7998911151080303"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-24T23:03:06.684Z","modified":"2026-08-25T21:17:33.863Z","0.1.0":"2026-08-24T23:03:07.012Z","0.2.0":"2026-08-25T21:17:33.515Z"},"bugs":{"url":"https://github.com/thefortifiedgrp/apex-survey-helper/issues"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/thefortifiedgrp/apex-survey-helper/tree/main/packages/solid#readme","keywords":["apex","telemed","survey","solid","solidjs","telehealth"],"repository":{"type":"git","url":"git+https://github.com/thefortifiedgrp/apex-survey-helper.git","directory":"packages/solid"},"description":"Solid hook for the Apex Telemed survey-v2 embed flow.","maintainers":[{"name":"apexjoeleaver","email":"jleaver@apextelemed.com"},{"name":"smcclure_apex","email":"smcclure@apextelemed.com"}],"readme":"# @apextelemed/survey-solid\n\nSolid hook for the **Apex Telemed survey-v2 embed flow**, built on\n[`@apextelemed/survey-core`](https://www.npmjs.com/package/@apextelemed/survey-core).\nHeadless — you own all markup and styling.\n\n```bash\nnpm install @apextelemed/survey-core @apextelemed/survey-solid\n```\n\n`solid-js ^1.9` is a peer dependency. State is mirrored into a Solid store via\n`reconcile()`, so the returned accessors are fine-grained reactive.\n\n## Usage\n\n```tsx\nimport { useSurveyV2Flow } from '@apextelemed/survey-solid';\nimport { For, Switch, Match } from 'solid-js';\n\nexport function Survey() {\n  const flow = useSurveyV2Flow({\n    apiBaseUrl: 'https://api.apextelemed.com/api',\n    publishableKey: 'pk_live_xxx',\n    drugIds: ['drug-A'],\n  });\n\n  return (\n    <Switch>\n      <Match when={flow.outcome().kind === 'loading'}>Loading…</Match>\n      <Match when={flow.outcome().kind === 'questions'}>\n        <For each={flow.visibleQuestions()}>\n          {(q) => (\n            <label>\n              {q.text}\n              <input\n                value={(flow.answers()[q.questionId] as string) ?? ''}\n                onInput={(e) => flow.setAnswer(q.questionId, e.currentTarget.value)}\n              />\n            </label>\n          )}\n        </For>\n        <button onClick={flow.back} disabled={flow.stepIndex() === 0}>Back</button>\n        <button onClick={flow.next} disabled={flow.submitting()}>Next</button>\n      </Match>\n      <Match when={flow.outcome().kind === 'complete'}>Thanks!</Match>\n    </Switch>\n  );\n}\n```\n\n> The engine is constructed once when the hook runs. To restart with different\n> options, re-create the owning component.\n\nSee the [Solid adapter docs](https://github.com/apextelemed/apex-survey-helper/blob/main/docs/partners/solid.md)\nfor the full `SurveyV2Flow` shape and the\n[runnable example](https://github.com/apextelemed/apex-survey-helper/tree/main/examples/solid-vite).\n","readmeFilename":"README.md"}