@compiled/react 0.16.3 → 0.16.4
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/create-strict-api/index.js +4 -4
- package/dist/browser/create-strict-api/index.js.map +1 -1
- package/dist/browser/utils/error.d.ts +1 -0
- package/dist/browser/utils/error.js +19 -0
- package/dist/browser/utils/error.js.map +1 -1
- package/dist/cjs/create-strict-api/index.js +3 -3
- package/dist/cjs/create-strict-api/index.js.map +1 -1
- package/dist/cjs/utils/error.d.ts +1 -0
- package/dist/cjs/utils/error.js +21 -1
- package/dist/cjs/utils/error.js.map +1 -1
- package/dist/esm/create-strict-api/index.js +4 -4
- package/dist/esm/create-strict-api/index.js.map +1 -1
- package/dist/esm/utils/error.d.ts +1 -0
- package/dist/esm/utils/error.js +19 -0
- package/dist/esm/utils/error.js.map +1 -1
- package/package.json +1 -1
- package/src/create-strict-api/index.ts +4 -4
- package/src/utils/error.ts +20 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createStrictSetupError } from '../utils/error';
|
|
2
2
|
import { cx } from '../xcss-prop';
|
|
3
3
|
/**
|
|
4
4
|
* ## Create Strict API
|
|
@@ -51,14 +51,14 @@ import { cx } from '../xcss-prop';
|
|
|
51
51
|
export function createStrictAPI() {
|
|
52
52
|
return {
|
|
53
53
|
css() {
|
|
54
|
-
throw
|
|
54
|
+
throw createStrictSetupError();
|
|
55
55
|
},
|
|
56
56
|
cssMap() {
|
|
57
|
-
throw
|
|
57
|
+
throw createStrictSetupError();
|
|
58
58
|
},
|
|
59
59
|
cx,
|
|
60
60
|
XCSSProp() {
|
|
61
|
-
throw
|
|
61
|
+
throw createStrictSetupError();
|
|
62
62
|
},
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -17,4 +17,23 @@ export const createSetupError = () => {
|
|
|
17
17
|
Good luck!
|
|
18
18
|
`);
|
|
19
19
|
};
|
|
20
|
+
export const createStrictSetupError = () => {
|
|
21
|
+
return new Error(`
|
|
22
|
+
██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
|
|
23
|
+
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
|
|
24
|
+
██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
|
|
25
|
+
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
|
|
26
|
+
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
|
|
27
|
+
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
|
|
28
|
+
|
|
29
|
+
@compiled/react
|
|
30
|
+
|
|
31
|
+
Code was executed when it shouldn't have. To resolve make sure to:
|
|
32
|
+
|
|
33
|
+
1. Set up Compiled.
|
|
34
|
+
2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
|
|
35
|
+
|
|
36
|
+
For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
|
|
37
|
+
`);
|
|
38
|
+
};
|
|
20
39
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -54,14 +54,14 @@ const xcss_prop_1 = require("../xcss-prop");
|
|
|
54
54
|
function createStrictAPI() {
|
|
55
55
|
return {
|
|
56
56
|
css() {
|
|
57
|
-
throw (0, error_1.
|
|
57
|
+
throw (0, error_1.createStrictSetupError)();
|
|
58
58
|
},
|
|
59
59
|
cssMap() {
|
|
60
|
-
throw (0, error_1.
|
|
60
|
+
throw (0, error_1.createStrictSetupError)();
|
|
61
61
|
},
|
|
62
62
|
cx: xcss_prop_1.cx,
|
|
63
63
|
XCSSProp() {
|
|
64
|
-
throw (0, error_1.
|
|
64
|
+
throw (0, error_1.createStrictSetupError)();
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":";;;AACA,0CAAwD;AACxD,4CAA+E;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAgB,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;QACD,EAAE,EAAF,cAAE;QACF,QAAQ;YACN,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC;AAbD,0CAaC"}
|
package/dist/cjs/utils/error.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSetupError = void 0;
|
|
3
|
+
exports.createStrictSetupError = exports.createSetupError = void 0;
|
|
4
4
|
const createSetupError = () => {
|
|
5
5
|
return new Error(`
|
|
6
6
|
██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
|
|
@@ -21,4 +21,24 @@ const createSetupError = () => {
|
|
|
21
21
|
`);
|
|
22
22
|
};
|
|
23
23
|
exports.createSetupError = createSetupError;
|
|
24
|
+
const createStrictSetupError = () => {
|
|
25
|
+
return new Error(`
|
|
26
|
+
██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
|
|
27
|
+
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
|
|
28
|
+
██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
|
|
29
|
+
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
|
|
30
|
+
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
|
|
31
|
+
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
|
|
32
|
+
|
|
33
|
+
@compiled/react
|
|
34
|
+
|
|
35
|
+
Code was executed when it shouldn't have. To resolve make sure to:
|
|
36
|
+
|
|
37
|
+
1. Set up Compiled.
|
|
38
|
+
2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
|
|
39
|
+
|
|
40
|
+
For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
|
|
41
|
+
`);
|
|
42
|
+
};
|
|
43
|
+
exports.createStrictSetupError = createStrictSetupError;
|
|
24
44
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B"}
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B;AAEK,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createStrictSetupError } from '../utils/error';
|
|
2
2
|
import { cx } from '../xcss-prop';
|
|
3
3
|
/**
|
|
4
4
|
* ## Create Strict API
|
|
@@ -51,14 +51,14 @@ import { cx } from '../xcss-prop';
|
|
|
51
51
|
export function createStrictAPI() {
|
|
52
52
|
return {
|
|
53
53
|
css() {
|
|
54
|
-
throw
|
|
54
|
+
throw createStrictSetupError();
|
|
55
55
|
},
|
|
56
56
|
cssMap() {
|
|
57
|
-
throw
|
|
57
|
+
throw createStrictSetupError();
|
|
58
58
|
},
|
|
59
59
|
cx,
|
|
60
60
|
XCSSProp() {
|
|
61
|
-
throw
|
|
61
|
+
throw createStrictSetupError();
|
|
62
62
|
},
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/esm/utils/error.js
CHANGED
|
@@ -17,4 +17,23 @@ export const createSetupError = () => {
|
|
|
17
17
|
Good luck!
|
|
18
18
|
`);
|
|
19
19
|
};
|
|
20
|
+
export const createStrictSetupError = () => {
|
|
21
|
+
return new Error(`
|
|
22
|
+
██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
|
|
23
|
+
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
|
|
24
|
+
██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
|
|
25
|
+
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
|
|
26
|
+
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
|
|
27
|
+
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
|
|
28
|
+
|
|
29
|
+
@compiled/react
|
|
30
|
+
|
|
31
|
+
Code was executed when it shouldn't have. To resolve make sure to:
|
|
32
|
+
|
|
33
|
+
1. Set up Compiled.
|
|
34
|
+
2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
|
|
35
|
+
|
|
36
|
+
For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
|
|
37
|
+
`);
|
|
38
|
+
};
|
|
20
39
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StrictCSSProperties, CSSPseudos } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import { createStrictSetupError } from '../utils/error';
|
|
3
3
|
import { type CompiledStyles, cx, type Internal$XCSSProp } from '../xcss-prop';
|
|
4
4
|
|
|
5
5
|
type PseudosDeclarations = {
|
|
@@ -210,14 +210,14 @@ type CompiledSchema = StrictCSSProperties & PseudosDeclarations;
|
|
|
210
210
|
export function createStrictAPI<TSchema extends CompiledSchema>(): CompiledAPI<TSchema> {
|
|
211
211
|
return {
|
|
212
212
|
css() {
|
|
213
|
-
throw
|
|
213
|
+
throw createStrictSetupError();
|
|
214
214
|
},
|
|
215
215
|
cssMap() {
|
|
216
|
-
throw
|
|
216
|
+
throw createStrictSetupError();
|
|
217
217
|
},
|
|
218
218
|
cx,
|
|
219
219
|
XCSSProp() {
|
|
220
|
-
throw
|
|
220
|
+
throw createStrictSetupError();
|
|
221
221
|
},
|
|
222
222
|
};
|
|
223
223
|
}
|
package/src/utils/error.ts
CHANGED
|
@@ -17,3 +17,23 @@ export const createSetupError = (): Error => {
|
|
|
17
17
|
Good luck!
|
|
18
18
|
`);
|
|
19
19
|
};
|
|
20
|
+
|
|
21
|
+
export const createStrictSetupError = (): Error => {
|
|
22
|
+
return new Error(`
|
|
23
|
+
██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
|
|
24
|
+
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
|
|
25
|
+
██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
|
|
26
|
+
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
|
|
27
|
+
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
|
|
28
|
+
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
|
|
29
|
+
|
|
30
|
+
@compiled/react
|
|
31
|
+
|
|
32
|
+
Code was executed when it shouldn't have. To resolve make sure to:
|
|
33
|
+
|
|
34
|
+
1. Set up Compiled.
|
|
35
|
+
2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
|
|
36
|
+
|
|
37
|
+
For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
|
|
38
|
+
`);
|
|
39
|
+
};
|