Jesus sucks
This commit is contained in:
21
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/LICENSE
generated
vendored
Normal file
21
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Emotion team and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/README.md
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/README.md
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# @emotion/use-insertion-effect-with-fallbacks
|
||||
63
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json
generated
vendored
Normal file
63
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "@emotion/use-insertion-effect-with-fallbacks",
|
||||
"version": "1.1.0",
|
||||
"description": "A wrapper package that uses `useInsertionEffect` or a fallback for it",
|
||||
"main": "dist/emotion-use-insertion-effect-with-fallbacks.cjs.js",
|
||||
"module": "dist/emotion-use-insertion-effect-with-fallbacks.esm.js",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/use-insertion-effect-with-fallbacks",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"react": "16.14.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.js"
|
||||
},
|
||||
"edge-light": {
|
||||
"module": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.esm.js",
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.js"
|
||||
},
|
||||
"worker": {
|
||||
"module": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.esm.js",
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.js"
|
||||
},
|
||||
"workerd": {
|
||||
"module": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.esm.js",
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.edge-light.cjs.js"
|
||||
},
|
||||
"browser": {
|
||||
"module": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js",
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.cjs.js"
|
||||
},
|
||||
"module": "./dist/emotion-use-insertion-effect-with-fallbacks.esm.js",
|
||||
"import": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.mjs",
|
||||
"default": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"imports": {
|
||||
"#is-browser": {
|
||||
"edge-light": "./src/conditions/false.js",
|
||||
"workerd": "./src/conditions/false.js",
|
||||
"worker": "./src/conditions/false.js",
|
||||
"browser": "./src/conditions/true.js",
|
||||
"default": "./src/conditions/is-browser.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/false.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/false.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default false
|
||||
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/is-browser.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/is-browser.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default typeof document !== 'undefined'
|
||||
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/true.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/true.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default true
|
||||
15
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.js
generated
vendored
Normal file
15
backend/frontend/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as React from 'react'
|
||||
import isBrowser from '#is-browser'
|
||||
|
||||
const syncFallback = create => create()
|
||||
|
||||
const useInsertionEffect = React['useInsertion' + 'Effect']
|
||||
? React['useInsertion' + 'Effect']
|
||||
: false
|
||||
|
||||
export const useInsertionEffectAlwaysWithSyncFallback = !isBrowser
|
||||
? syncFallback
|
||||
: useInsertionEffect || syncFallback
|
||||
|
||||
export const useInsertionEffectWithLayoutFallback =
|
||||
useInsertionEffect || React.useLayoutEffect
|
||||
Reference in New Issue
Block a user