{"_id":"@calmery-chan/aleph-plugin-emotion","_rev":"7-4692a910370c94f6f07ba0be62b0d4e2","name":"@calmery-chan/aleph-plugin-emotion","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"config":{"commitizen":{"path":"cz-conventional-changelog"}},"dependencies":{"@babel/core":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@emotion/css":"11.1.3","@emotion/server":"11.4.0","babel-loader":"8.2.2","glob":"7.2.0","react":"17.0.2","react-dom":"17.0.2","webpack":"5.58.1","webpack-cli":"4.9.0"},"devDependencies":{"@semantic-release/git":"10.0.0","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","husky":"7.0.2","semantic-release":"18.0.0"},"engines":{"node":"^16.11.0","npm":"^8.0.0"},"main":"./node/index.js","name":"@calmery-chan/aleph-plugin-emotion","packageManager":"npm@^8.0.0","release":{"branches":["main"],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"scripts":{"prepare":"husky install"},"version":"1.0.0","gitHead":"351c2cd0f07e362139685013b8139b0374374443","_id":"@calmery-chan/aleph-plugin-emotion@1.0.0","_nodeVersion":"16.11.0","_npmVersion":"8.0.0","dist":{"integrity":"sha512-8Mx5+WkAdC506jQ/thMfj5N/wVKlYSqEYS/NwYfYuVYsh/VuSkgMjBdKUmOFqQ87067u1wG5CySlI78f5oYVqg==","shasum":"93e90fc4f3276e127e6225567ed42e2f39da49c5","tarball":"https://registry.npmjs.org/@calmery-chan/aleph-plugin-emotion/-/aleph-plugin-emotion-1.0.0.tgz","fileCount":1,"unpackedSize":1195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFS6BsgNbD/6/2XZcUikY4UD5u+D85XxWmlXYUpPRbiJAiAyLVntOoHad7Vf+OTKuVv4vfPEA79M9DWV/NbWfuFP0w=="}]},"_npmUser":{"name":"calmery","email":"contact@calmery.me"},"directories":{},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph-plugin-emotion_1.0.0_1633929162715_0.13530623217281912"},"_hasShrinkwrap":false,"deprecated":"Missing files"},"1.0.1":{"config":{"commitizen":{"path":"cz-conventional-changelog"}},"dependencies":{"@babel/core":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@emotion/css":"11.1.3","@emotion/server":"11.4.0","babel-loader":"8.2.2","glob":"7.2.0","react":"17.0.2","react-dom":"17.0.2","webpack":"5.58.1","webpack-cli":"4.9.0"},"devDependencies":{"@semantic-release/git":"10.0.0","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","husky":"7.0.2","semantic-release":"18.0.0"},"engines":{"node":"^16.11.0","npm":"^8.0.0"},"main":"./node/index.js","name":"@calmery-chan/aleph-plugin-emotion","packageManager":"npm@^8.0.0","release":{"branches":["main"],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"scripts":{"prepare":"husky install"},"version":"1.0.1","gitHead":"98276472b3d91c55098e2b2f310124d5ef7d9a1d","_id":"@calmery-chan/aleph-plugin-emotion@1.0.1","_nodeVersion":"16.11.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-N+LWik19j95KXN8hgOySNQFRtLNfeRYICPrMCZSWOx1xvU97rezQzOQixpc4ToahjN8N97t2ygCKc+LP+N7b9w==","shasum":"f6b04e9e3844fb06c45b2fb43ec831615fd79ad3","tarball":"https://registry.npmjs.org/@calmery-chan/aleph-plugin-emotion/-/aleph-plugin-emotion-1.0.1.tgz","fileCount":7,"unpackedSize":5453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0pT1Zyaf8JjzfKqNddnQwozBZwGPnTFWj8wx938SRPwIgLAK+kUsh+/9Ufeh6Qo1BL7/LkrqgNUeUkhR2YCDmAFc="}]},"_npmUser":{"name":"calmery","email":"contact@calmery.me"},"directories":{},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph-plugin-emotion_1.0.1_1633931152278_0.10633126891891687"},"_hasShrinkwrap":false},"1.1.0":{"author":{"name":"Calmery","email":"contact@calmery.me","url":"https://calmery.me/"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"dependencies":{"@babel/core":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@emotion/css":"11.1.3","@emotion/server":"11.4.0","babel-loader":"8.2.2","glob":"7.2.0","react":"17.0.2","react-dom":"17.0.2","webpack":"5.58.1","webpack-cli":"4.9.0"},"description":"A plugin for using :woman_singer: with Aleph.js","devDependencies":{"@semantic-release/git":"10.0.0","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","husky":"7.0.2","lint-staged":"11.2.3","semantic-release":"18.0.0"},"engines":{"node":"^16.11.0","npm":"^8.0.0"},"homepage":"https://github.com/calmery-chan/aleph-plugin-emotion#readme","license":"MIT","lint-staged":{"**/*.{json,md,ts,tsx}":"vr fmt"},"main":"./node/index.js","name":"@calmery-chan/aleph-plugin-emotion","packageManager":"npm@^8.0.0","release":{"branches":["main"],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"repository":{"type":"git","url":"git+https://github.com/calmery-chan/aleph-plugin-emotion.git"},"scripts":{"prepare":"husky install"},"version":"1.1.0","gitHead":"81ccb0c518bbd45faa8bc5ee835d9ae38439bced","bugs":{"url":"https://github.com/calmery-chan/aleph-plugin-emotion/issues"},"_id":"@calmery-chan/aleph-plugin-emotion@1.1.0","_nodeVersion":"16.11.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-gaQ5LTa6pVe7fqflIoYcZkUlsQr/XLPtz4jOH+YkXXj5BrprIoxzbSWazXhfcq/qh5XBKdpSc6Ai7fFplCz+9Q==","shasum":"27fb2b27390567ca913ab0c536b155a45b83278a","tarball":"https://registry.npmjs.org/@calmery-chan/aleph-plugin-emotion/-/aleph-plugin-emotion-1.1.0.tgz","fileCount":9,"unpackedSize":9813,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4XtfkBeaKemHtRoC3Hrx3jBJKXjLL1jiGXNy3OOdJuAiBmX60vbn4lUo97zvfQqPmi8BDjaQkFvJ+DchPvD8qsPw=="}]},"_npmUser":{"name":"calmery","email":"contact@calmery.me"},"directories":{},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph-plugin-emotion_1.1.0_1633961676298_0.23241776365014122"},"_hasShrinkwrap":false},"1.1.1":{"author":{"name":"Calmery","email":"contact@calmery.me","url":"https://calmery.me/"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"dependencies":{"@babel/core":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@emotion/css":"11.1.3","@emotion/server":"11.4.0","babel-loader":"8.2.2","glob":"7.2.0","react":"17.0.2","react-dom":"17.0.2","webpack":"5.58.1","webpack-cli":"4.9.0"},"description":"A plugin for using :woman_singer: with Aleph.js","devDependencies":{"@semantic-release/git":"10.0.0","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","husky":"7.0.2","lint-staged":"11.2.3","semantic-release":"18.0.0"},"engines":{"node":"^16.11.0","npm":"^8.0.0"},"homepage":"https://github.com/calmery-chan/aleph-plugin-emotion#readme","license":"MIT","lint-staged":{"**/*.{json,md,ts,tsx}":"vr fmt"},"main":"./node/index.js","name":"@calmery-chan/aleph-plugin-emotion","packageManager":"npm@^8.0.0","release":{"branches":["main"],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"repository":{"type":"git","url":"git+https://github.com/calmery-chan/aleph-plugin-emotion.git"},"scripts":{"prepare":"husky install"},"version":"1.1.1","gitHead":"94d07d01884afd873842815c7bcc59a1f0ba60e7","bugs":{"url":"https://github.com/calmery-chan/aleph-plugin-emotion/issues"},"_id":"@calmery-chan/aleph-plugin-emotion@1.1.1","_nodeVersion":"16.11.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-twDjqB+V9Ao1s101J2GihjQCi3kBZY0Bquc9DxxZ0kjn9DX285TxKqlFHP1N0bdzZgHQBxy3NptDgS0n2Jv07w==","shasum":"2194e7f684f70ea4670694e82c8a9dbd0da9312d","tarball":"https://registry.npmjs.org/@calmery-chan/aleph-plugin-emotion/-/aleph-plugin-emotion-1.1.1.tgz","fileCount":9,"unpackedSize":9813,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0toPhiE+/tn1p6G5nAFj3tn7+H5qt0dHBJwkfMkmXEAiEAgxhDUOMBDCS/C7SEdsIN84Gba5JZCZdsNSmXSC8iAUQ="}]},"_npmUser":{"name":"calmery","email":"contact@calmery.me"},"directories":{},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph-plugin-emotion_1.1.1_1634142448983_0.5412707143668651"},"_hasShrinkwrap":false},"2.0.0":{"author":{"name":"Calmery","email":"contact@calmery.me","url":"https://calmery.me/"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"dependencies":{"@babel/core":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@emotion/css":"11.1.3","@emotion/server":"11.4.0","babel-loader":"8.2.2","glob":"7.2.0","react":"17.0.2","react-dom":"17.0.2","webpack":"5.58.1","webpack-cli":"4.9.0"},"description":"A plugin for using :woman_singer: with Aleph.js","devDependencies":{"@semantic-release/git":"10.0.0","commitizen":"4.2.4","cz-conventional-changelog":"3.3.0","husky":"7.0.2","lint-staged":"11.2.3","semantic-release":"18.0.0"},"engines":{"node":"^16.11.0","npm":"^8.0.0"},"homepage":"https://github.com/calmery-chan/aleph-plugin-emotion#readme","license":"MIT","lint-staged":{"**/*.{json,md,ts,tsx}":"vr fmt"},"main":"./node/index.js","name":"@calmery-chan/aleph-plugin-emotion","packageManager":"npm@^8.0.0","release":{"branches":["main"],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"repository":{"type":"git","url":"git+https://github.com/calmery-chan/aleph-plugin-emotion.git"},"scripts":{"prepare":"husky install"},"version":"2.0.0","gitHead":"f5b2cc0ebf5c815c32aff172f63f1665ad8f75a6","bugs":{"url":"https://github.com/calmery-chan/aleph-plugin-emotion/issues"},"_id":"@calmery-chan/aleph-plugin-emotion@2.0.0","_nodeVersion":"16.11.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-MmFsRWwAxfutVplEiNnqsaDEE0Yw8+X7GXztE5TG4+kD6YQ9WugoZe7X0EdFPblv0Uu08UUnY/yugo/cvvCGbQ==","shasum":"abff5b14a24ca38f1eb318fea2d0a2c3ccbff55d","tarball":"https://registry.npmjs.org/@calmery-chan/aleph-plugin-emotion/-/aleph-plugin-emotion-2.0.0.tgz","fileCount":9,"unpackedSize":9819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzazXCRA9TVsSAnZWagAAKFsQAJpofDUGg3zADASZzmMP\nXfk2Qk6q8TscPYkmJbd5kjf8eeTUJMeRwZPSL9EtKy5cJ5drLyspZG1FPl2M\nu4Wiqa6Uys+b2VBXW+z/fopQbUbYCaQSJRzX+uxsan3sax6n04fHYemPvgGa\nb20Epq0vo3vUjT/Iml6L8lhL4iKV1t4zotoviEjB+F9z+401y1Dx93BwP8ug\nzvzW/a3TBh17Uut8lxcVZufJAeNcnuL+EkbwOGmPQgVRC7pi4ehC2yOPCc0z\nhplO0vijZgVlqs5XK2rjQuTqdCMvqCF9P22P6h3aW70cfJBRiAe1opI8HN3n\ncAiHdJseKt7exEX463+VC5v6L2forhLn2b1CJOs54Nm/lKE0qwkQNCvi/mj7\nQOrTCcpNdFzoULuYgmygiNWnqvgG6yiDs2CJ2PmdCxbUMACKKUy+WdVPNNvK\nFuvJl6wS3KvH5IVuG/X9b2ri94TkvGzhFFMHZLywu0OpJZx3IcMfUkO+cOJD\nq2em1R7rERYvsiB8QYXhZ/eOX3R4DizwZJTfs9hJih7hj6NlV0s7qsG09tcc\nwoKQv8YX/kNvSIeXS+Tmmi/nSmc7wqI6H0K0pqaHbwp3PXKjo2jBybiiha9T\nFgTB8UiWTm7lZpJ4yueDcc+yGyU4oHkF4VZfOxLvfffoEMQRMJ0Obmi3c6ID\nbq/u\r\n=Waxr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqy0+QSsngs0ecEb5Xd/GWwGARH5Ch4RtGDgFNBza6cAiBzcuCcYOIc8kKxA3L29ApDk38D+0RqP+sAKw2JNzy0lA=="}]},"_npmUser":{"name":"calmery","email":"contact@calmery.me"},"directories":{},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph-plugin-emotion_2.0.0_1634588414184_0.736572119295339"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-11T05:12:42.660Z","1.0.0":"2021-10-11T05:12:42.829Z","modified":"2022-04-04T21:33:28.368Z","1.0.1":"2021-10-11T05:45:52.438Z","1.1.0":"2021-10-11T14:14:36.445Z","1.1.1":"2021-10-13T16:27:29.121Z","2.0.0":"2021-10-18T20:20:14.357Z"},"maintainers":[{"name":"calmery","email":"contact@calmery.me"}],"readme":"# @calmery-chan/aleph-plugin-emotion\n\n[![@calmery-chan/aleph-plugin-emotion - npm](https://img.shields.io/npm/v/@calmery-chan/aleph-plugin-emotion.svg)](https://www.npmjs.com/package/@calmery-chan/aleph-plugin-emotion)\n[![Lint](https://github.com/calmery-chan/aleph-plugin-emotion/actions/workflows/lint.yml/badge.svg?branch=develop)](https://github.com/calmery-chan/aleph-plugin-emotion/actions/workflows/lint.yml)\n[![Commitizen Friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\nA plugin for using :woman_singer: with Aleph.js.\n\n## Features\n\nCan only use [@emotion/css](https://emotion.sh/docs/@emotion/css).\n\n- [x] API\n  - [x] Generate Class Names — `css`\n  - [x] Global Styles — `injectGlobal`\n  - [x] Animation Keyframes — `keyframes`\n  - [x] Composing Class Names — `cx`\n- [ ] Custom Instances\n- [x] Server Side Rendering\n\n## Usage\n\n```\n$ npm i @calmery-chan/aleph-plugin-emotion\n```\n\n```ts\n// aleph.config.ts\n\nimport type { Config } from \"https://deno.land/x/aleph@v0.3.0-beta.19/types.d.ts\";\nimport emotion from \"./node_modules/@calmery-chan/aleph-plugin-emotion/plugin.ts\";\n\nexport default <Config> {\n  plugins: [emotion],\n};\n```\n\nInternally, the React component is compiled using Babel, and then the CSS is\nextracted using the `extractCritical` function in\n[@emotion/server](https://www.npmjs.com/package/@emotion/server). Therefore, if\nyou import the npm package directly from [esm.sh](https://esm.sh/), etc., it\nwill fail to compile using Babel. Use\n[import_map.json](https://alephjs.org/docs/basic-features/import-maps) and add\nthe npm package using `npm install`.\n\n```json\n// import_map.json\n\n{\n  \"imports\": {\n    \"@emotion/css\": \"https://esm.sh/@emotion/css@11.1.3\",\n    \"react\": \"https://esm.sh/react@17.0.2\"\n  }\n}\n```\n\n```tsx\n// pages/index.ts\n\n// import { css } from \"https://esm.sh/@emotion/css@11.1.3\";\n// import React from \"https://esm.sh/react@17.0.2\";\nimport { css } from \"@emotion/css\";\nimport React from \"react\";\n\nconst container = css`\n  background: #000;\n  color: #FFF;\n`;\n\nexport default () => {\n  return (\n    <div className={container}>\n      Hello World\n    </div>\n  );\n};\n```\n\n```\n$ npm i -D @emotion/css react\n$ aleph dev\n```\n\nSee [example](./example/).\n","readmeFilename":"README.md","description":"A plugin for using :woman_singer: with Aleph.js","homepage":"https://github.com/calmery-chan/aleph-plugin-emotion#readme","repository":{"type":"git","url":"git+https://github.com/calmery-chan/aleph-plugin-emotion.git"},"author":{"name":"Calmery","email":"contact@calmery.me","url":"https://calmery.me/"},"bugs":{"url":"https://github.com/calmery-chan/aleph-plugin-emotion/issues"},"license":"MIT"}