pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+21
@@ -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
@@ -0,0 +1 @@
|
||||
# @emotion/use-insertion-effect-with-fallbacks
|
||||
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
|
||||
var syncFallback = function syncFallback(create) {
|
||||
return create();
|
||||
};
|
||||
|
||||
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
||||
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
||||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
||||
|
||||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };
|
||||
Generated
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var React = require('react');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
if (k !== 'default') {
|
||||
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: function () { return e[k]; }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
n["default"] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var syncFallback = function syncFallback(create) {
|
||||
return create();
|
||||
};
|
||||
|
||||
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
||||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;
|
||||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
|
||||
|
||||
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback;
|
||||
exports.useInsertionEffectWithLayoutFallback = useInsertionEffectWithLayoutFallback;
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./emotion-use-insertion-effect-with-fallbacks.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./emotion-use-insertion-effect-with-fallbacks.cjs.dev.js");
|
||||
}
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
useInsertionEffectAlwaysWithSyncFallback,
|
||||
useInsertionEffectWithLayoutFallback
|
||||
} from "./emotion-use-insertion-effect-with-fallbacks.cjs.js";
|
||||
Generated
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var React = require('react');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
if (k !== 'default') {
|
||||
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: function () { return e[k]; }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
n["default"] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var syncFallback = function syncFallback(create) {
|
||||
return create();
|
||||
};
|
||||
|
||||
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
||||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;
|
||||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
|
||||
|
||||
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback;
|
||||
exports.useInsertionEffectWithLayoutFallback = useInsertionEffectWithLayoutFallback;
|
||||
Generated
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import * as React from 'react';
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var syncFallback = function syncFallback(create) {
|
||||
return create();
|
||||
};
|
||||
|
||||
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
||||
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;
|
||||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
||||
|
||||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };
|
||||
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
|
||||
var syncFallback = function syncFallback(create) {
|
||||
return create();
|
||||
};
|
||||
|
||||
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
||||
var useInsertionEffectAlwaysWithSyncFallback = syncFallback ;
|
||||
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
||||
|
||||
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "@emotion/use-insertion-effect-with-fallbacks",
|
||||
"version": "1.0.1",
|
||||
"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",
|
||||
"browser": {
|
||||
"./dist/emotion-use-insertion-effect-with-fallbacks.esm.js": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.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": {
|
||||
".": {
|
||||
"module": {
|
||||
"worker": "./dist/emotion-use-insertion-effect-with-fallbacks.worker.esm.js",
|
||||
"browser": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js",
|
||||
"default": "./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"
|
||||
},
|
||||
"preconstruct": {
|
||||
"exports": {
|
||||
"envConditions": [
|
||||
"browser",
|
||||
"worker"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as React from 'react'
|
||||
|
||||
const isBrowser = typeof document !== 'undefined'
|
||||
|
||||
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