@compiled/react 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/runtime/index.js +0 -8
- package/dist/browser/runtime/index.js.map +1 -1
- package/dist/cjs/runtime/index.js +0 -8
- package/dist/cjs/runtime/index.js.map +1 -1
- package/dist/esm/runtime/index.js +0 -8
- package/dist/esm/runtime/index.js.map +1 -1
- package/package.json +2 -6
- package/src/runtime/index.ts +0 -11
- package/src/global.d.ts +0 -7
|
@@ -3,12 +3,4 @@ export { default as CC } from './style-cache';
|
|
|
3
3
|
export { default as ax } from './ax';
|
|
4
4
|
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
5
|
export { default as ix } from './css-custom-property';
|
|
6
|
-
// Ensure only one `@compiled/runtime` exist in the bundle.
|
|
7
|
-
// This is because `ac` and `style-cache` need to access a singlton.
|
|
8
|
-
if (typeof window !== 'undefined') {
|
|
9
|
-
if (typeof window.__COMPILED_IMPORTED__ !== 'undefined') {
|
|
10
|
-
throw new Error('Multiple instances of Compiled Runtime have been found on the page. A likely cause is that muliple versions of `@compiled/react` exist in JS bundle.');
|
|
11
|
-
}
|
|
12
|
-
window.__COMPILED_IMPORTED__ = true;
|
|
13
|
-
}
|
|
14
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -15,12 +15,4 @@ Object.defineProperty(exports, "ac", { enumerable: true, get: function () { retu
|
|
|
15
15
|
Object.defineProperty(exports, "clearAcCache", { enumerable: true, get: function () { return ac_1.clearCache; } });
|
|
16
16
|
var css_custom_property_1 = require("./css-custom-property");
|
|
17
17
|
Object.defineProperty(exports, "ix", { enumerable: true, get: function () { return __importDefault(css_custom_property_1).default; } });
|
|
18
|
-
// Ensure only one `@compiled/runtime` exist in the bundle.
|
|
19
|
-
// This is because `ac` and `style-cache` need to access a singlton.
|
|
20
|
-
if (typeof window !== 'undefined') {
|
|
21
|
-
if (typeof window.__COMPILED_IMPORTED__ !== 'undefined') {
|
|
22
|
-
throw new Error('Multiple instances of Compiled Runtime have been found on the page. A likely cause is that muliple versions of `@compiled/react` exist in JS bundle.');
|
|
23
|
-
}
|
|
24
|
-
window.__COMPILED_IMPORTED__ = true;
|
|
25
|
-
}
|
|
26
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAwC;AAA/B,4GAAA,OAAO,OAAM;AACtB,6CAA8C;AAArC,kHAAA,OAAO,OAAM;AACtB,2BAAqC;AAA5B,yGAAA,OAAO,OAAM;AACtB,2BAAiE;AAAxD,yGAAA,OAAO,OAAM;AAAE,kGAAA,UAAU,OAAgB;AAClD,6DAAsD;AAA7C,0HAAA,OAAO,OAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAwC;AAA/B,4GAAA,OAAO,OAAM;AACtB,6CAA8C;AAArC,kHAAA,OAAO,OAAM;AACtB,2BAAqC;AAA5B,yGAAA,OAAO,OAAM;AACtB,2BAAiE;AAAxD,yGAAA,OAAO,OAAM;AAAE,kGAAA,UAAU,OAAgB;AAClD,6DAAsD;AAA7C,0HAAA,OAAO,OAAM"}
|
|
@@ -3,12 +3,4 @@ export { default as CC } from './style-cache';
|
|
|
3
3
|
export { default as ax } from './ax';
|
|
4
4
|
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
5
|
export { default as ix } from './css-custom-property';
|
|
6
|
-
// Ensure only one `@compiled/runtime` exist in the bundle.
|
|
7
|
-
// This is because `ac` and `style-cache` need to access a singlton.
|
|
8
|
-
if (typeof window !== 'undefined') {
|
|
9
|
-
if (typeof window.__COMPILED_IMPORTED__ !== 'undefined') {
|
|
10
|
-
throw new Error('Multiple instances of Compiled Runtime have been found on the page. A likely cause is that muliple versions of `@compiled/react` exist in JS bundle.');
|
|
11
|
-
}
|
|
12
|
-
window.__COMPILED_IMPORTED__ = true;
|
|
13
|
-
}
|
|
14
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiled/react",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A familiar and performant compile time CSS-in-JS library for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiled",
|
|
@@ -17,11 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"author": "Michael Dougall",
|
|
20
|
-
"sideEffects":
|
|
21
|
-
"./dist/browser/runtime/index.js",
|
|
22
|
-
"./dist/cjs/runtime/index.js",
|
|
23
|
-
"./dist/esm/runtime/index.js"
|
|
24
|
-
],
|
|
20
|
+
"sideEffects": false,
|
|
25
21
|
"exports": {
|
|
26
22
|
".": {
|
|
27
23
|
"import": [
|
package/src/runtime/index.ts
CHANGED
|
@@ -3,14 +3,3 @@ export { default as CC } from './style-cache';
|
|
|
3
3
|
export { default as ax } from './ax';
|
|
4
4
|
export { default as ac, clearCache as clearAcCache } from './ac';
|
|
5
5
|
export { default as ix } from './css-custom-property';
|
|
6
|
-
|
|
7
|
-
// Ensure only one `@compiled/runtime` exist in the bundle.
|
|
8
|
-
// This is because `ac` and `style-cache` need to access a singlton.
|
|
9
|
-
if (typeof window !== 'undefined') {
|
|
10
|
-
if (typeof window.__COMPILED_IMPORTED__ !== 'undefined') {
|
|
11
|
-
throw new Error(
|
|
12
|
-
'Multiple instances of Compiled Runtime have been found on the page. A likely cause is that muliple versions of `@compiled/react` exist in JS bundle.'
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
window.__COMPILED_IMPORTED__ = true;
|
|
16
|
-
}
|