@bamboocss/parser 1.41.1 → 1.43.0

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.d.cts CHANGED
@@ -178,6 +178,21 @@ declare class Generator extends Context {
178
178
  * exists: those all run during extraction, before anything has been decoded. Every path
179
179
  * that emits css comes through `getCss`.
180
180
  */
181
+ /**
182
+ * Report every raw CSS value in the source, under `strictValues`.
183
+ *
184
+ * The policy is "everything goes through the theme", and the brackets are what make reaching
185
+ * outside it visible: `fontSize: '[14px]'` says so in the source, where `fontSize: '14px'`
186
+ * reads exactly like using the scale.
187
+ *
188
+ * Read off `decoder.atomic` — the styles the *source* produced — so a preset's own reset and
189
+ * a config recipe are not held to a project's policy about its own code. That is the whole
190
+ * reason this is a separate pass rather than a branch in `transform`, which sees both.
191
+ *
192
+ * A keyword is not a raw value; see `isRawValue` for why that distinction needs the grammar
193
+ * and is what the type-level version of this setting could never draw.
194
+ */
195
+ reportRawValues: () => void;
181
196
  assertNoUnresolvedTokens: () => void;
182
197
  /**
183
198
  * Get CSS for a specific layer from the stylesheet
package/dist/index.d.mts CHANGED
@@ -178,6 +178,21 @@ declare class Generator extends Context {
178
178
  * exists: those all run during extraction, before anything has been decoded. Every path
179
179
  * that emits css comes through `getCss`.
180
180
  */
181
+ /**
182
+ * Report every raw CSS value in the source, under `strictValues`.
183
+ *
184
+ * The policy is "everything goes through the theme", and the brackets are what make reaching
185
+ * outside it visible: `fontSize: '[14px]'` says so in the source, where `fontSize: '14px'`
186
+ * reads exactly like using the scale.
187
+ *
188
+ * Read off `decoder.atomic` — the styles the *source* produced — so a preset's own reset and
189
+ * a config recipe are not held to a project's policy about its own code. That is the whole
190
+ * reason this is a separate pass rather than a branch in `transform`, which sees both.
191
+ *
192
+ * A keyword is not a raw value; see `isRawValue` for why that distinction needs the grammar
193
+ * and is what the type-level version of this setting could never draw.
194
+ */
195
+ reportRawValues: () => void;
181
196
  assertNoUnresolvedTokens: () => void;
182
197
  /**
183
198
  * Get CSS for a specific layer from the stylesheet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/parser",
3
- "version": "1.41.1",
3
+ "version": "1.43.0",
4
4
  "description": "The static parser for bamboo css",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -34,17 +34,17 @@
34
34
  "dependencies": {
35
35
  "ts-morph": "28.0.0",
36
36
  "ts-pattern": "5.9.0",
37
- "@bamboocss/config": "^1.41.1",
38
- "@bamboocss/core": "^1.41.1",
39
- "@bamboocss/extractor": "1.41.1",
40
- "@bamboocss/logger": "1.41.1",
41
- "@bamboocss/shared": "1.41.1",
42
- "@bamboocss/types": "1.41.1"
37
+ "@bamboocss/config": "^1.43.0",
38
+ "@bamboocss/core": "^1.43.0",
39
+ "@bamboocss/extractor": "1.43.0",
40
+ "@bamboocss/logger": "1.43.0",
41
+ "@bamboocss/shared": "1.43.0",
42
+ "@bamboocss/types": "1.43.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@bamboocss/generator": "1.41.1",
46
- "@bamboocss/plugin-svelte": "1.41.1",
47
- "@bamboocss/plugin-vue": "1.41.1"
45
+ "@bamboocss/generator": "1.43.0",
46
+ "@bamboocss/plugin-svelte": "1.43.0",
47
+ "@bamboocss/plugin-vue": "1.43.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown src/index.ts --format=esm,cjs --dts",