{"_id":"@cotherapist/instrument-take","name":"@cotherapist/instrument-take","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@cotherapist/instrument-take","version":"0.1.0","description":"Stimulus controllers for Cotherapist instrument take forms (questionnaire, ordered_selection, stimulus_wizard)","type":"module","main":"./src/index.js","exports":{".":"./src/index.js","./controllers/*":"./src/controllers/*","./helpers/*":"./src/helpers/*","./styles/ordered-selection.css":"./styles/ordered-selection.scss","./styles/ordered-selection.scss":"./styles/ordered-selection.scss"},"scripts":{"test":"node --test test/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/cotherapist-ru/instrument-take.git"},"bugs":{"url":"https://github.com/cotherapist-ru/instrument-take/issues"},"homepage":"https://github.com/cotherapist-ru/instrument-take#readme","engines":{"node":">=18"},"peerDependencies":{"@hotwired/stimulus":"^3.2.0"},"devDependencies":{"@hotwired/stimulus":"^3.2.2"},"keywords":["stimulus","cotherapist","psychometrics","hotwired"],"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_id":"@cotherapist/instrument-take@0.1.0","gitHead":"f36eb84ebab53d9c6dbdce9138f34c99e8d3bb85","_nodeVersion":"22.10.0","_npmVersion":"11.5.2","dist":{"integrity":"sha512-a/VpjLcwS5SdpNWkfQ9MhJ43zTYvqNyai7kyAfeY+IiZofTN3gxbS3hm+anewq36Bs4DaFSec83hq3lGTByrog==","shasum":"c4d7851559aebd5fb5ff3ac86cc8d07015c43a82","tarball":"https://registry.npmjs.org/@cotherapist/instrument-take/-/instrument-take-0.1.0.tgz","fileCount":12,"unpackedSize":54172,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCeaIt/ZhLB+F/tSKQRaeprhtV0dFXTp31VigO9d2hcswIgNbHC7o6o2OuRQdymDuKEyfmtHjuGIL71MsBwEDGjp3k="}]},"_npmUser":{"name":"ilyario","email":"ponomarevid@ya.ru"},"directories":{},"maintainers":[{"name":"ilyario","email":"ponomarevid@ya.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/instrument-take_0.1.0_1784111277845_0.9168197663646094"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T10:27:57.696Z","0.1.0":"2026-07-15T10:27:57.983Z","modified":"2026-07-15T10:27:58.198Z"},"maintainers":[{"name":"ilyario","email":"ponomarevid@ya.ru"}],"description":"Stimulus controllers for Cotherapist instrument take forms (questionnaire, ordered_selection, stimulus_wizard)","homepage":"https://github.com/cotherapist-ru/instrument-take#readme","keywords":["stimulus","cotherapist","psychometrics","hotwired"],"repository":{"type":"git","url":"git+https://github.com/cotherapist-ru/instrument-take.git"},"bugs":{"url":"https://github.com/cotherapist-ru/instrument-take/issues"},"license":"MIT","readme":"# @cotherapist/instrument-take\n\n[![CI](https://github.com/cotherapist-ru/instrument-take/actions/workflows/ci.yml/badge.svg)](https://github.com/cotherapist-ru/instrument-take/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/@cotherapist/instrument-take.svg)](https://www.npmjs.com/package/@cotherapist/instrument-take)\n\nStimulus-контроллеры для прохождения психологических тестов (form archetypes):\n\n- `questionnaire-wizard` — пошаговый опросник с авто-submit\n- `ordered-selection` — ранжирование / выбор в колонках (портретные методики)\n- `stimulus-wizard` — wizard для стимульных методик\n- `submit-loading` — блокировка формы при отправке без отмены навигации в Chromium\n\n## Установка\n\n```bash\nnpm install @cotherapist/instrument-take @hotwired/stimulus\n```\n\n`@hotwired/stimulus` — peer dependency (>= 3.2).\n\n## Использование\n\n```js\nimport { Application } from \"@hotwired/stimulus\"\nimport {\n  QuestionnaireWizardController,\n  OrderedSelectionController,\n  StimulusWizardController,\n  SubmitLoadingController,\n} from \"@cotherapist/instrument-take\"\n\nconst app = Application.start()\napp.register(\"questionnaire-wizard\", QuestionnaireWizardController)\napp.register(\"ordered-selection\", OrderedSelectionController)\napp.register(\"stimulus-wizard\", StimulusWizardController)\napp.register(\"submit-loading\", SubmitLoadingController)\n```\n\nХелперы экспортируются из корня пакета:\n\n```js\nimport { findStepElement, parseDataset, lockSubmitButtons } from \"@cotherapist/instrument-take\"\n```\n\nСтили портретного `ordered-selection` (Сонди) — в пакете:\n\n```css\n@import \"@cotherapist/instrument-take/styles/ordered-selection.css\";\n```\n\nДля Sass (monolith) импортируйте без расширения `.css`, чтобы стили встроились в бандл:\n\n```scss\n@import \"@cotherapist/instrument-take/styles/ordered-selection\";\n```\n\nВ public-testing файл копируется при `task assets` в `web/static/instrument-take-ordered-selection.css`.\n\n## Разработка\n\n```bash\nnpm ci\nnpm test\n```\n\nТребуется Node.js >= 18 (встроенный `node:test`).\n\n## Публикация\n\nПодробная пошаговая инструкция: **[PUBLISHING.md](PUBLISHING.md)** (npm org, GitHub Secrets, первый и последующие релизы).\n\nКратко:\n\n1. Репозиторий: [github.com/cotherapist-ru/instrument-take](https://github.com/cotherapist-ru/instrument-take)\n2. Секрет `NPM_TOKEN` в GitHub Actions (Automation token org `@cotherapist`)\n3. GitHub Release с тегом `vX.Y.Z` = `version` в `package.json` → workflow **Publish** публикует в npm\n\n## Лицензия\n\nMIT — см. [LICENSE](LICENSE).\n","readmeFilename":"README.md","_rev":"1-82c81f56ce0f0352642d8e4b072013b2"}