{"name":"@emotion/cache","version":"11.14.0","description":"emotion's cache","main":"dist/emotion-cache.cjs.js","module":"dist/emotion-cache.esm.js","types":"dist/emotion-cache.cjs.d.ts","exports":{".":{"types":{"import":"./dist/emotion-cache.cjs.mjs","default":"./dist/emotion-cache.cjs.js"},"development":{"edge-light":{"module":"./dist/emotion-cache.development.edge-light.esm.js","import":"./dist/emotion-cache.development.edge-light.cjs.mjs","default":"./dist/emotion-cache.development.edge-light.cjs.js"},"worker":{"module":"./dist/emotion-cache.development.edge-light.esm.js","import":"./dist/emotion-cache.development.edge-light.cjs.mjs","default":"./dist/emotion-cache.development.edge-light.cjs.js"},"workerd":{"module":"./dist/emotion-cache.development.edge-light.esm.js","import":"./dist/emotion-cache.development.edge-light.cjs.mjs","default":"./dist/emotion-cache.development.edge-light.cjs.js"},"browser":{"module":"./dist/emotion-cache.browser.development.esm.js","import":"./dist/emotion-cache.browser.development.cjs.mjs","default":"./dist/emotion-cache.browser.development.cjs.js"},"module":"./dist/emotion-cache.development.esm.js","import":"./dist/emotion-cache.development.cjs.mjs","default":"./dist/emotion-cache.development.cjs.js"},"edge-light":{"module":"./dist/emotion-cache.edge-light.esm.js","import":"./dist/emotion-cache.edge-light.cjs.mjs","default":"./dist/emotion-cache.edge-light.cjs.js"},"worker":{"module":"./dist/emotion-cache.edge-light.esm.js","import":"./dist/emotion-cache.edge-light.cjs.mjs","default":"./dist/emotion-cache.edge-light.cjs.js"},"workerd":{"module":"./dist/emotion-cache.edge-light.esm.js","import":"./dist/emotion-cache.edge-light.cjs.mjs","default":"./dist/emotion-cache.edge-light.cjs.js"},"browser":{"module":"./dist/emotion-cache.browser.esm.js","import":"./dist/emotion-cache.browser.cjs.mjs","default":"./dist/emotion-cache.browser.cjs.js"},"module":"./dist/emotion-cache.esm.js","import":"./dist/emotion-cache.cjs.mjs","default":"./dist/emotion-cache.cjs.js"},"./package.json":"./package.json"},"imports":{"#is-development":{"development":"./src/conditions/true.ts","default":"./src/conditions/false.ts"},"#is-browser":{"edge-light":"./src/conditions/false.ts","workerd":"./src/conditions/false.ts","worker":"./src/conditions/false.ts","browser":"./src/conditions/true.ts","default":"./src/conditions/is-browser.ts"}},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/emotion-js/emotion.git#main"},"scripts":{"test:typescript":"dtslint types"},"dependencies":{"@emotion/memoize":"^0.9.0","@emotion/sheet":"^1.4.0","@emotion/utils":"^1.4.2","@emotion/weak-memoize":"^0.4.0","stylis":"4.2.0"},"devDependencies":{"@definitelytyped/dtslint":"0.0.112","@emotion/hash":"*","@types/stylis":"^4.2.7","typescript":"^5.4.5"},"gitHead":"3c19ce5997f73960679e546af47801205631dfde","bugs":{"url":"https://github.com/emotion-js/emotion/issues"},"homepage":"https://github.com/emotion-js/emotion/tree/main#readme","_id":"@emotion/cache@11.14.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==","shasum":"ee44b26986eeb93c8be82bb92f1f7a9b21b2ed76","tarball":"http://registry-npm.ywwl.com/@emotion/cache/download/@emotion/cache-11.14.0.tgz","fileCount":39,"unpackedSize":244106,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeVnFQuxrh0RH43v/ZMhtQMPw1BUK/mVQcOASlJ7inLAiA8XwMWZoam/fmEZw1zAcw2VZTpolUMCf3iRH2iytiQRA=="}],"size":24940,"noattachment":false,"key":"/@emotion/cache/-/@emotion/cache-11.14.0.tgz"},"_npmUser":{"name":"emotion-release-bot","email":"emotion-release-bot@hamil.town"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cache_11.14.0_1733733807849_0.017101208946985746"},"_hasShrinkwrap":false,"readme":"# @emotion/cache\n\n### createCache\n\n`createCache` allows for low level customization of how styles get inserted by emotion. It's intended to be used with the [`<CacheProvider/>`](https://emotion.sh/docs/cache-provider) component to override the default cache, which is created with sensible defaults for most applications.\n\n```javascript\nimport createCache from '@emotion/cache'\n\nexport const myCache = createCache({\n  key: 'my-prefix-key',\n  stylisPlugins: [\n    /* your plugins here */\n  ]\n})\n```\n\n### Primary use cases\n\n- Using emotion in embedded contexts such as an `<iframe/>`\n\n- Setting a [nonce](#nonce-string) on any `<style/>` tag emotion creates for security purposes\n\n- Using emotion with a developer defined `<style/>` tag\n\n- Using emotion with custom Stylis plugins\n\n## Options\n\n### `nonce`\n\n`string`\n\nA nonce that will be set on each style tag that emotion inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).\n\n### `stylisPlugins`\n\n`Array<Function>`\n\nA Stylis plugins that will be run by Stylis during preprocessing. [Read the Stylis docs to find out more](https://github.com/thysultan/stylis.js#middleware). This can be used for many purposes such as RTL.\n\n> Note:\n>\n> Prefixer is just a plugin which happens to be put in default `stylisPlugins`. If you plan to use custom `stylisPlugins` and you want to have your styles prefixed automatically you must include prefixer in your custom `stylisPlugins`. You can import `prefixer` from the `stylis` module to do that (`import { prefixer } from 'stylis'`);\n\n### `key`\n\n`string (Pattern: [^a-z-])`\n\nThe prefix before class names. It will also be set as the value of the `data-emotion` attribute on the style tags that emotion inserts and it's used in the attribute name that marks style elements in `renderStylesToString` and `renderStylesToNodeStream`. This is **required if using multiple emotion caches in the same app**.\n\n### `container`\n\n`Node`\n\nA DOM node that emotion will insert all of its style tags into. This is useful for inserting styles into iframes or windows.\n\n### `prepend`\n\n`boolean`\n\nA boolean representing whether to prepend rather than append style tags into the specified container DOM node.\n","publish_time":1733733808087,"maintainers":[{"name":"tkh44","email":"kye.hohenberger@gmail.com"},{"name":"emotion-release-bot","email":"emotion-release-bot@hamil.town"},{"name":"andarist","email":"mateuszburzynski@gmail.com"},{"name":"emmatown","email":"npm@emmas.town"}],"_cnpm_publish_time":1733733808087,"dist-tags":{"latest":"11.14.0","next":"11.0.0-next.19","rc":"11.0.0-rc.0","really-unsafe-please-do-not-use":"10.0.0-really-unsafe-please-do-not-use.2"}}