domflax 0.1.4 → 0.2.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.
Files changed (42) hide show
  1. package/README.md +47 -29
  2. package/dist/{chunk-EVENAJYI.js → chunk-EYQXQQQH.js} +3 -3
  3. package/dist/{chunk-3Z5ZWLXX.js → chunk-FPT4EJ6Q.js} +805 -1612
  4. package/dist/chunk-FPT4EJ6Q.js.map +1 -0
  5. package/dist/{chunk-5FWENSD2.js → chunk-JBM3MJRM.js} +149 -10
  6. package/dist/chunk-JBM3MJRM.js.map +1 -0
  7. package/dist/{chunk-H5KTGI3A.js → chunk-TTJEXWAC.js} +172 -5
  8. package/dist/chunk-TTJEXWAC.js.map +1 -0
  9. package/dist/cli.cjs +1032 -1640
  10. package/dist/cli.cjs.map +1 -1
  11. package/dist/cli.js +30 -10
  12. package/dist/cli.js.map +1 -1
  13. package/dist/index.cjs +1116 -1627
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +226 -485
  16. package/dist/index.d.ts +226 -485
  17. package/dist/index.js +16 -36
  18. package/dist/{pattern-CP9_HpVK.d.cts → pattern-DotR_dHs.d.cts} +1 -1
  19. package/dist/pattern-kit.cjs +60 -1
  20. package/dist/pattern-kit.cjs.map +1 -1
  21. package/dist/pattern-kit.d.cts +2 -2
  22. package/dist/pattern-kit.d.ts +2 -2
  23. package/dist/pattern-kit.js +1 -1
  24. package/dist/{pattern-CYgsv-jO.d.ts → pattern-urm5uuwj.d.ts} +1 -1
  25. package/dist/{resolve-ops-Ci7LgYHC.d.ts → resolve-ops-D8aQina5.d.cts} +11 -0
  26. package/dist/{resolve-ops-Ci7LgYHC.d.cts → resolve-ops-D8aQina5.d.ts} +11 -0
  27. package/dist/verify.d.cts +1 -1
  28. package/dist/verify.d.ts +1 -1
  29. package/dist/webpack-loader.cjs +1014 -1578
  30. package/dist/webpack-loader.cjs.map +1 -1
  31. package/dist/webpack-loader.d.cts +8 -2
  32. package/dist/webpack-loader.d.ts +8 -2
  33. package/dist/webpack-loader.js +7 -4
  34. package/dist/webpack-loader.js.map +1 -1
  35. package/dist/worker.cjs +983 -1601
  36. package/dist/worker.cjs.map +1 -1
  37. package/dist/worker.js +3 -3
  38. package/package.json +1 -1
  39. package/dist/chunk-3Z5ZWLXX.js.map +0 -1
  40. package/dist/chunk-5FWENSD2.js.map +0 -1
  41. package/dist/chunk-H5KTGI3A.js.map +0 -1
  42. /package/dist/{chunk-EVENAJYI.js.map → chunk-EYQXQQQH.js.map} +0 -0
@@ -132,6 +132,17 @@ interface NodeMeta {
132
132
  hasDynamicChildren: boolean;
133
133
  isComponent: boolean;
134
134
  hasDangerousHtml: boolean;
135
+ /**
136
+ * SAFETY (Layer 2): at least one of THIS element's static class tokens could not be resolved by the
137
+ * style provider — a real, non-empty token that yielded no declarations and is not a known no-op
138
+ * utility (e.g. a Tailwind-v4 project the v3 resolver cannot drive, a JS-hook class like `js-toggle`,
139
+ * or a typo). The element's TRUE style is therefore UNKNOWN, so it must be treated as OPAQUE for
140
+ * flatten purposes (never removed/unwrapped as "inert"). Set by the frontends from
141
+ * `ResolveResult.unknown`; distinct from an element that RESOLVED to no paint (all tokens known,
142
+ * collectively non-painting) which stays flatten-eligible. Compress is unaffected — it only rewrites
143
+ * the element's own RESOLVED tokens and preserves unknown ones verbatim.
144
+ */
145
+ hasUnresolvedClasses: boolean;
135
146
  targetedByCombinator: boolean;
136
147
  targetedByStructuralPseudo: boolean;
137
148
  selectorDependents: number;
@@ -132,6 +132,17 @@ interface NodeMeta {
132
132
  hasDynamicChildren: boolean;
133
133
  isComponent: boolean;
134
134
  hasDangerousHtml: boolean;
135
+ /**
136
+ * SAFETY (Layer 2): at least one of THIS element's static class tokens could not be resolved by the
137
+ * style provider — a real, non-empty token that yielded no declarations and is not a known no-op
138
+ * utility (e.g. a Tailwind-v4 project the v3 resolver cannot drive, a JS-hook class like `js-toggle`,
139
+ * or a typo). The element's TRUE style is therefore UNKNOWN, so it must be treated as OPAQUE for
140
+ * flatten purposes (never removed/unwrapped as "inert"). Set by the frontends from
141
+ * `ResolveResult.unknown`; distinct from an element that RESOLVED to no paint (all tokens known,
142
+ * collectively non-painting) which stays flatten-eligible. Compress is unaffected — it only rewrites
143
+ * the element's own RESOLVED tokens and preserves unknown ones verbatim.
144
+ */
145
+ hasUnresolvedClasses: boolean;
135
146
  targetedByCombinator: boolean;
136
147
  targetedByStructuralPseudo: boolean;
137
148
  selectorDependents: number;
package/dist/verify.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as Diagnostic } from './resolve-ops-Ci7LgYHC.cjs';
1
+ import { i as Diagnostic } from './resolve-ops-D8aQina5.cjs';
2
2
 
3
3
  /**
4
4
  * @domflax/verify — public type contract (TYPED STUB)
package/dist/verify.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as Diagnostic } from './resolve-ops-Ci7LgYHC.js';
1
+ import { i as Diagnostic } from './resolve-ops-D8aQina5.js';
2
2
 
3
3
  /**
4
4
  * @domflax/verify — public type contract (TYPED STUB)