@blockquote-web-components/blockquote-controller-xstate
Version:
This controller allows you to subscribe to an XState actor, updating a specified reactive property whenever the state machine transitions.
129 lines (128 loc) • 3.57 kB
JSON
{
"name": "@blockquote-web-components/blockquote-controller-xstate",
"version": "2.3.14",
"description": "This controller allows you to subscribe to an XState actor, updating a specified reactive property whenever the state machine transitions.",
"keywords": [
"lit",
"web-component",
"XState",
"stately",
"state-machine",
"statechart",
"actor"
],
"license": "MIT",
"author": "blockquote-controller-xstate",
"type": "module",
"exports": {
".": {
"default": "./src/index.js"
},
"./package.json": {
"default": "./package.json"
},
"./BlockquoteControllerXstate.js": {
"default": "./src/BlockquoteControllerXstate.js"
},
"./index.js": {
"default": "./src/index.js"
}
},
"files": [
"/src/"
],
"scripts": {
"analyze": "cem analyze --litelement --globs \"{src,define}/**/*.{js,ts}\" \"index.js\"",
"build": "echo \"This is not a TypeScript project, so no need to build.\"",
"dev:vite": "vite build",
"format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
"format:eslint": "eslint . --fix",
"format:prettier": "prettier \"**/*.{js,ts,css,scss,html,json}\" --write --ignore-path .prettierignore",
"format:stylelint": "stylelint \"{demo,src}/**/*.{js,ts,css,scss,html}\" --fix --ignore-path .prettierignore",
"postinstall": "npm run sort:package",
"preview:vite": "vite preview",
"sass:watch": "sass-style-template",
"sort:package": "npx sort-package-json",
"start": "concurrently -k -r \"npm:vite\" \"npm:sass:watch\"",
"test": "vitest --run --browser.headless",
"test:watch": "vitest",
"vite": "vite"
},
"lint-staged": {
"**/*.{js,ts,html}": [
"npm run format"
],
"**/*.json": [
"npm run format:prettier"
],
"**/*.{scss,css}": [
"npm run format:prettier",
"npm run format:stylelint"
]
},
"prettier": {
"bracketSameLine": true,
"bracketSpacing": false,
"htmlWhitespaceSensitivity": "ignore",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "*.{scss,css}",
"options": {
"singleQuote": false
}
},
{
"files": "*.json",
"options": {
"parser": "json-stringify"
}
}
]
},
"stylelint": {
"extends": "stylelint-config-standard-scss",
"allowEmptyInput": true,
"rules": {
"custom-property-pattern": null,
"no-duplicate-selectors": null,
"color-function-notation": null,
"alpha-value-notation": null,
"media-feature-name-no-unknown": null,
"comment-empty-line-before": null,
"declaration-empty-line-before": null,
"property-no-vendor-prefix": null,
"selector-attribute-quotes": null,
"value-no-vendor-prefix": null
},
"overrides": [
{
"files": [
"**/*.html"
],
"customSyntax": "postcss-html"
},
{
"files": [
"**/*.{ts,js}"
],
"customSyntax": "postcss-lit"
}
]
},
"dependencies": {
"lit": "^3.3.0",
"xstate": "^5.19.4"
},
"devDependencies": {
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.12.0",
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.13.1"
},
"publishConfig": {
"access": "public"
},
"customElements": "custom-elements.json",
"gitHead": "93fe2ab670aaf6d6c778ae2d2bfc3c42bea48995"
}