@bamboocss/node 1.56.3 → 1.56.5
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/index.cjs +2 -2
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +2 -2
- package/dist/native/darwin-arm64.node +0 -0
- package/dist/native/darwin-x64.node +0 -0
- package/dist/native/linux-arm64-gnu.node +0 -0
- package/dist/native/linux-x64-gnu.node +0 -0
- package/dist/native/win32-x64-msvc.node +0 -0
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -2073,7 +2073,7 @@ var ParserResult = class {
|
|
|
2073
2073
|
this.css.add(this.append(Object.assign({ type: "css" }, result)));
|
|
2074
2074
|
if (result.data.some(Array.isArray)) throw new _bamboocss_shared.BambooError("INVALID_STYLE_ARGUMENT", "An array is not a style argument.", { hint: "Spread it instead, e.g. css(...styles) rather than css(styles)." });
|
|
2075
2075
|
const encoder = this.encoder;
|
|
2076
|
-
encoder.withOrigin(this.originOf(result), () => result.data.forEach((obj) => encoder.processAtomic(obj)));
|
|
2076
|
+
encoder.withOrigin(this.originOf(result), () => encoder.withMixinAtoms(() => result.data.forEach((obj) => encoder.processAtomic(obj))));
|
|
2077
2077
|
}
|
|
2078
2078
|
/** The call site of `result`, when the encoder is recording them. */
|
|
2079
2079
|
originOf = (result) => {
|
|
@@ -2108,7 +2108,7 @@ var ParserResult = class {
|
|
|
2108
2108
|
type: "pattern",
|
|
2109
2109
|
name
|
|
2110
2110
|
}, result)));
|
|
2111
|
-
this.encoder.withOrigin(this.originOf(result), () => result.data.forEach((obj) => this.encoder.processPattern(name, obj)));
|
|
2111
|
+
this.encoder.withOrigin(this.originOf(result), () => this.encoder.withMixinAtoms(() => result.data.forEach((obj) => this.encoder.processPattern(name, obj))));
|
|
2112
2112
|
}
|
|
2113
2113
|
/**
|
|
2114
2114
|
* @param unresolved The variant axes the call site passed and the build could not read.
|
package/dist/index.d.cts
CHANGED
|
@@ -59,6 +59,8 @@ interface FoldCall {
|
|
|
59
59
|
calleeProperty?: string;
|
|
60
60
|
data: unknown[];
|
|
61
61
|
exact: boolean;
|
|
62
|
+
/** Why the call is not exact, when the evaluator refused code it does not run. */
|
|
63
|
+
refusal?: FoldRefusal;
|
|
62
64
|
argumentCount: number;
|
|
63
65
|
trailingArgumentsInert: boolean;
|
|
64
66
|
selection?: FoldSelection;
|
|
@@ -69,6 +71,20 @@ interface FoldCall {
|
|
|
69
71
|
binding?: string;
|
|
70
72
|
cxArguments: FoldCxArgument[];
|
|
71
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Code the evaluator does not run. `statement`: a helper's body uses one — `subject` is its
|
|
76
|
+
* keyword, or `expression` for a statement run for its effect. `write`: the binding `subject` is
|
|
77
|
+
* reassigned or written into after its declaration. `line` is 1-based; `column` too, in UTF-16.
|
|
78
|
+
*/
|
|
79
|
+
interface FoldRefusal {
|
|
80
|
+
kind: 'statement' | 'write';
|
|
81
|
+
subject: string;
|
|
82
|
+
helper?: string;
|
|
83
|
+
excerpt: string;
|
|
84
|
+
filePath: string;
|
|
85
|
+
line: number;
|
|
86
|
+
column: number;
|
|
87
|
+
}
|
|
72
88
|
interface FoldSplitCall {
|
|
73
89
|
span: FoldSpan;
|
|
74
90
|
binding: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -59,6 +59,8 @@ interface FoldCall {
|
|
|
59
59
|
calleeProperty?: string;
|
|
60
60
|
data: unknown[];
|
|
61
61
|
exact: boolean;
|
|
62
|
+
/** Why the call is not exact, when the evaluator refused code it does not run. */
|
|
63
|
+
refusal?: FoldRefusal;
|
|
62
64
|
argumentCount: number;
|
|
63
65
|
trailingArgumentsInert: boolean;
|
|
64
66
|
selection?: FoldSelection;
|
|
@@ -69,6 +71,20 @@ interface FoldCall {
|
|
|
69
71
|
binding?: string;
|
|
70
72
|
cxArguments: FoldCxArgument[];
|
|
71
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Code the evaluator does not run. `statement`: a helper's body uses one — `subject` is its
|
|
76
|
+
* keyword, or `expression` for a statement run for its effect. `write`: the binding `subject` is
|
|
77
|
+
* reassigned or written into after its declaration. `line` is 1-based; `column` too, in UTF-16.
|
|
78
|
+
*/
|
|
79
|
+
interface FoldRefusal {
|
|
80
|
+
kind: 'statement' | 'write';
|
|
81
|
+
subject: string;
|
|
82
|
+
helper?: string;
|
|
83
|
+
excerpt: string;
|
|
84
|
+
filePath: string;
|
|
85
|
+
line: number;
|
|
86
|
+
column: number;
|
|
87
|
+
}
|
|
72
88
|
interface FoldSplitCall {
|
|
73
89
|
span: FoldSpan;
|
|
74
90
|
binding: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2061,7 +2061,7 @@ var ParserResult = class {
|
|
|
2061
2061
|
this.css.add(this.append(Object.assign({ type: "css" }, result)));
|
|
2062
2062
|
if (result.data.some(Array.isArray)) throw new BambooError("INVALID_STYLE_ARGUMENT", "An array is not a style argument.", { hint: "Spread it instead, e.g. css(...styles) rather than css(styles)." });
|
|
2063
2063
|
const encoder = this.encoder;
|
|
2064
|
-
encoder.withOrigin(this.originOf(result), () => result.data.forEach((obj) => encoder.processAtomic(obj)));
|
|
2064
|
+
encoder.withOrigin(this.originOf(result), () => encoder.withMixinAtoms(() => result.data.forEach((obj) => encoder.processAtomic(obj))));
|
|
2065
2065
|
}
|
|
2066
2066
|
/** The call site of `result`, when the encoder is recording them. */
|
|
2067
2067
|
originOf = (result) => {
|
|
@@ -2096,7 +2096,7 @@ var ParserResult = class {
|
|
|
2096
2096
|
type: "pattern",
|
|
2097
2097
|
name
|
|
2098
2098
|
}, result)));
|
|
2099
|
-
this.encoder.withOrigin(this.originOf(result), () => result.data.forEach((obj) => this.encoder.processPattern(name, obj)));
|
|
2099
|
+
this.encoder.withOrigin(this.originOf(result), () => this.encoder.withMixinAtoms(() => result.data.forEach((obj) => this.encoder.processPattern(name, obj))));
|
|
2100
2100
|
}
|
|
2101
2101
|
/**
|
|
2102
2102
|
* @param unresolved The variant axes the call site passed and the build could not read.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/node",
|
|
3
|
-
"version": "1.56.
|
|
3
|
+
"version": "1.56.5",
|
|
4
4
|
"description": "The core css bamboo library",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
"pkg-types": "2.3.0",
|
|
62
62
|
"pluralize": "8.0.0",
|
|
63
63
|
"ts-pattern": "5.9.0",
|
|
64
|
-
"@bamboocss/config": "1.56.
|
|
65
|
-
"@bamboocss/core": "1.56.
|
|
66
|
-
"@bamboocss/generator": "1.56.
|
|
67
|
-
"@bamboocss/logger": "1.56.
|
|
68
|
-
"@bamboocss/plugin-svelte": "1.56.
|
|
69
|
-
"@bamboocss/plugin-vue": "1.56.
|
|
70
|
-
"@bamboocss/reporter": "1.56.
|
|
71
|
-
"@bamboocss/shared": "1.56.
|
|
72
|
-
"@bamboocss/token-dictionary": "1.56.
|
|
73
|
-
"@bamboocss/types": "1.56.
|
|
64
|
+
"@bamboocss/config": "1.56.5",
|
|
65
|
+
"@bamboocss/core": "1.56.5",
|
|
66
|
+
"@bamboocss/generator": "1.56.5",
|
|
67
|
+
"@bamboocss/logger": "1.56.5",
|
|
68
|
+
"@bamboocss/plugin-svelte": "1.56.5",
|
|
69
|
+
"@bamboocss/plugin-vue": "1.56.5",
|
|
70
|
+
"@bamboocss/reporter": "1.56.5",
|
|
71
|
+
"@bamboocss/shared": "1.56.5",
|
|
72
|
+
"@bamboocss/token-dictionary": "1.56.5",
|
|
73
|
+
"@bamboocss/types": "1.56.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@astrojs/compiler": "3.0.1",
|
|
77
77
|
"@types/fs-extra": "11.0.4",
|
|
78
78
|
"@types/picomatch": "4.0.2",
|
|
79
79
|
"boxen": "8.0.1",
|
|
80
|
-
"@bamboocss/native-extractor": "1.56.
|
|
80
|
+
"@bamboocss/native-extractor": "1.56.5"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@astrojs/compiler": ">=2"
|