{"_id":"@coriolis/coriolis-svelte","_rev":"2-b0149493b3b5e89e4567e2d83a680ee7","name":"@coriolis/coriolis-svelte","dist-tags":{"latest":"1.0.0-alpha2"},"versions":{"1.0.0-alpha1":{"name":"@coriolis/coriolis-svelte","version":"1.0.0-alpha1","description":"Coriolis wrapper for Svelte","license":"GPL-3.0","author":{"name":"Nicolas Deveaud"},"repository":{"type":"git","url":"git+https://github.com/coriolisjs/coriolis-svelte.git"},"bugs":{"url":"https://github.com/coriolisjs/coriolis-svelte/issues"},"keywords":["coriolis","event","eventsourcing","effect","aggregate","projection","reducer","predictable","functional","immutable","hot","live","replay","store","svelte"],"main":"cjs/provideStore.js","type":"module","sideEffects":false,"module":"provideStore.js","scripts":{"clear:all":"rm -rf node_modules","clear":"rm -rf cjs","lint":"eslint .","pretty":"prettier './**/{*.{js?(on),md,?(s)css,html},.*.{js?(on),md,?(s)css,html}}' --write && eslint . --fix","test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c","autobuild":"rollup -c -w","prepublishOnly":"npm run lint && npm outdated && npm run clear && npm run build && git tag ${VERSION} && git push origin ${VERSION}","publish:local":"VERSION=${npm_package_version}-local npm publish --registry http://localhost:4873","publish:npm":"VERSION=${npm_package_version} npm publish --registry https://registry.npmjs.org --access public"},"peerDependencies":{"svelte":"3.x"},"devDependencies":{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","babel-eslint":"^10.1.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.20.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","prettier":"^2.0.2","rollup":"^2.2.0","rollup-plugin-babel":"^4.4.0"},"gitHead":"baad923eafc2e73d8a547d89ac35c12bb82f857a","homepage":"https://github.com/coriolisjs/coriolis-svelte#readme","_id":"@coriolis/coriolis-svelte@1.0.0-alpha1","_nodeVersion":"12.13.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-Pguy/0T6Zv8sAi+iEnBlJObbTiiYt6QKHRKX9+YEjMHMA546OW1x8HreoN89sEaSTOaFNR2p4xuzLcMa2Gl6sg==","shasum":"e009d81a16f7f02110adcf8782029585010032ab","tarball":"https://registry.npmjs.org/@coriolis/coriolis-svelte/-/coriolis-svelte-1.0.0-alpha1.tgz","fileCount":6,"unpackedSize":43308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegRPjCRA9TVsSAnZWagAAEwUP+QG70qIoxikiqfW02aE6\nDM/PB+T5thoAnghgZXhNl4JpyBs01Rgt//638Bd2FDd9qsm+tCXHljJkSVkR\nB2rV3EYMp8cN4e5yYuBb20FlBxuSldSUTQUdFKmgaYr1PxP0CSG7EAlT4AnF\nmHFHy5xBjEH8qIstHwiVYuauqEsvRxsIoOxhhWJlHv+CuZlPKBnc7OYHXstH\nW3rzOIzGQKVM5FuW9TN8xY4OKsHX7jp8Jk9TBUohhV+kz/SqEvGy/UvXtFqI\nWLsLIvAoeceIlbupPZ3S2pchkHxr6VZUWm+X67a/OxBV8UpFcKwg57xYvFis\nBVQq+lzd9UVbPMwg4epZCZh4V1umeqs0rPWpYeDhPj5qPjaJWIShhpVZsWXf\n7mk/tmBgUjZqDamCtsfnmL064+3h8NWBdSrOFUJd2FkbUyMOuIf31wPQa70X\nyu8M6sNQMtFzY2wpHHhgjqnQa3+zD4r4jIP540P9yGKzPNUlkNDtDPtn5sL0\n39sBgl0zlxDQ6MU9dxvRyMpt6MjvxNz8w3GvJ6jcuPbBnE1tv5fhfEZ/dfuq\n+W2uiXCYZ86yCygA9RZE23hsCUkNtcvSkGCjxEKxZhzrXCV5VKl/NWTUePkp\ngcn9mddYNSnz14vI9m6SkI6PC3zLL+QKRLF1qffg4uXP0YEwbXNQtNgAfzkt\nnZA2\r\n=qvjm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUZ4Snfw3Pl43xDVUUZmSOT5ezC7+j6R3DaDuag0DDtAiBEEYpCY7Ck0R+83Ekp5EvM//n4+7l1JEBCUHSLzPSgpA=="}]},"maintainers":[{"name":"nicolas.deveaud","email":"nicolas.deveaud@gmail.com"}],"_npmUser":{"name":"nicolas.deveaud","email":"nicolas.deveaud@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coriolis-svelte_1.0.0-alpha1_1585517539084_0.7299580528236398"},"_hasShrinkwrap":false},"1.0.0-alpha2":{"name":"@coriolis/coriolis-svelte","version":"1.0.0-alpha2","description":"Coriolis wrapper for Svelte","license":"GPL-3.0","author":{"name":"Nicolas Deveaud"},"repository":{"type":"git","url":"git+https://github.com/coriolisjs/coriolis-svelte.git"},"bugs":{"url":"https://github.com/coriolisjs/coriolis-svelte/issues"},"keywords":["coriolis","event","eventsourcing","effect","aggregate","projection","reducer","predictable","functional","immutable","hot","live","replay","store","svelte"],"main":"cjs/provideStore.js","sideEffects":false,"module":"provideStore.js","scripts":{"clear:all":"rm -rf node_modules","clear":"rm -rf cjs","lint":"eslint .","pretty":"prettier './**/{*.{js?(on),md,?(s)css,html},.*.{js?(on),md,?(s)css,html}}' --write && eslint . --fix","test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c","autobuild":"rollup -c -w","upgrade":"npm outdated --parseable --depth=0 | cut -d: -f4 | xargs npm install","prepublishOnly":"npm run lint && npm outdated && npm run clear && npm run build && git tag ${VERSION} && git push origin ${VERSION}","publish:local":"VERSION=${npm_package_version}-local npm publish --registry http://localhost:4873","publish:npm":"VERSION=${npm_package_version} npm publish --registry https://registry.npmjs.org --access public"},"peerDependencies":{"svelte":"3.x"},"devDependencies":{"@babel/core":"^7.10.4","@babel/preset-env":"^7.10.4","babel-eslint":"^10.1.0","eslint":"^7.4.0","eslint-config-prettier":"^6.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","prettier":"^2.0.5","rollup":"^2.21.0","rollup-plugin-babel":"^4.4.0"},"gitHead":"b9489f08c2f2a40c9a08f7b9b29ba88cb774f8ae","homepage":"https://github.com/coriolisjs/coriolis-svelte#readme","_id":"@coriolis/coriolis-svelte@1.0.0-alpha2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GoOZiVcyT4STJCvOCZtegSfa2x3mkfhn2R8V28GMAcR5ChCDq2shWgh3RZC8E5qKZCGVOpy7F1rUrYHUQDetLQ==","shasum":"0eb848599cc3cfd7215576f3ed00e683c822645e","tarball":"https://registry.npmjs.org/@coriolis/coriolis-svelte/-/coriolis-svelte-1.0.0-alpha2.tgz","fileCount":6,"unpackedSize":43377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCkmQCRA9TVsSAnZWagAATsUQAKKUbyKwU/glaiFv28zh\n9d34V4wmk/tivvop4uy1A0X2P33tnoSjhTwekBJrPxA2KB1GtJD2swgecKs9\n4gaK1fyx5GaOPHsOMeeYgUiHSMd9C+jU/K6Pz/p0q8lSa+rpcw8S3JpTSf2d\nHyVi8/5/npZtB5pkC02N8qVgI0bhVNPwWdSXxLrOlTb3oP9VE1+ScrNXl4zC\njQBgOrC6J+4cq+E+2Rx2ie96oEL61plQhGPMC8u/aZpva7QcsZetVf0xyrXC\n/yvLEPZ/rsEQGIi+Xp78nFax1u+9HUOzNnM8mgZzWS3e6vUVjV1qgkWMpDds\nMn4tYoUT2+YEnKWUoEg86brM/hxcetL8pPJMaYvBGk4+itO5qtNF0Zy12tj6\nsmdFZL9cm1CUFfbVeNFOd156Q1CpCre9Mm5Rh1tJn6YaljAOMnesr1Ginaj3\ngEwoR/LLtxUz8UV1ZXwgin39/J2HDYbzyyTz4WfrvUj+5KFP4mH7wsGMoBvi\n0OG/CLyJVY8vbHp9KgrubW83Kh60s4D9GJigSu54zWNhleSPjyL66EgM9buR\n0lFMtXd2oHkqxUppoJPKmbMtTuAhZOkikWme4I3ZcWsy5dnO989TXTgggDyH\nI2w8anju7Z5k3izQJDhYmJNJBMQzjiKYEAcuHu40Dp1AtAAusZxsrrYRNCcd\nG7Uk\r\n=3no2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+k9sqS45ngiNQ5ivXN4KHrBZaNgfYQ14PSiCzt9/yWAiEAqGLFxaFXA+eJRM1L+3oDvgwduB/FHxeozAubp0GuCb4="}]},"maintainers":[{"name":"nicolas.deveaud","email":"nicolas.deveaud@gmail.com"}],"_npmUser":{"name":"nicolas.deveaud","email":"nicolas.deveaud@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coriolis-svelte_1.0.0-alpha2_1594509712175_0.7442378403395518"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-29T21:32:18.805Z","1.0.0-alpha1":"2020-03-29T21:32:19.184Z","modified":"2022-04-05T01:24:16.370Z","1.0.0-alpha2":"2020-07-11T23:21:52.370Z"},"maintainers":[{"name":"nicolas.deveaud","email":"nicolas.deveaud@gmail.com"}],"description":"Coriolis wrapper for Svelte","homepage":"https://github.com/coriolisjs/coriolis-svelte#readme","keywords":["coriolis","event","eventsourcing","effect","aggregate","projection","reducer","predictable","functional","immutable","hot","live","replay","store","svelte"],"repository":{"type":"git","url":"git+https://github.com/coriolisjs/coriolis-svelte.git"},"author":{"name":"Nicolas Deveaud"},"bugs":{"url":"https://github.com/coriolisjs/coriolis-svelte/issues"},"license":"GPL-3.0","readme":"# Coriolis wrapper for Svelte\n\nSvelte is a great UI tool. combined with coriolis it provides a powerfull set for building great apps\n\n## Install\n\n```sh\nnpm install --save @coriolis/coriolis-svelte\n```\n\n# Usage\n\nIn your UI entry point Entry.svelte:\n\n```svelte\n<script context=\"module\">\n  import { withProjection, createDispatch, createStoreAPIProvider } from '@coriolis/coriolis-svelte'\n\n  const {\n    setStoreAPI,\n    shareStoreAPI\n  } = createStoreAPIProvider()\n\n  export { setStoreAPI }\n</script>\n<script>\n  import { lastPayloadOfType } from '@coriolis/parametered-projection'\n  import { message } from '../projections/message'\n\n  shareStoreAPI()\n\n  const message$ = withProjection(lastPayloadOfType('message'))\n  const dispatchMessage = createDispatch((message) => ({ type: 'message', payload: message }))\n</script>\n\n<h1>{$message$}</h1>\n\n<input type=\"text\" on:change={(event) => dispatchMessage(event.target.value)}>\n\n```\n\nThen you can build your Coriolis event store:\n\n```javascript\nimport { createStore } from '@coriolis/coriolis'\nimport Entry, { setStoreAPI } from 'Entry.svelte'\n\nconst uiEffect = ({ dispatchEvent, withProjection }) => {\n  setStoreAPI({ dispatchEvent, withProjection })\n\n  const app = new Entry({\n    target: document.body,\n  })\n\n  return () => {\n    app.$destroy()\n  }\n}\n\ncreateStore(uiEffect)\n```\n\nThis example is not the most useful code sample, but you should give a try to both Coriolis and Svelte projects\n","readmeFilename":"README.md"}