domflax 0.1.2 → 0.1.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.
Files changed (46) hide show
  1. package/README.md +25 -8
  2. package/dist/{chunk-DNHOGPYV.js → chunk-3Z5ZWLXX.js} +407 -51
  3. package/dist/chunk-3Z5ZWLXX.js.map +1 -0
  4. package/dist/{chunk-DOQEBGWB.js → chunk-5FWENSD2.js} +63 -8
  5. package/dist/chunk-5FWENSD2.js.map +1 -0
  6. package/dist/chunk-EVENAJYI.js +336 -0
  7. package/dist/chunk-EVENAJYI.js.map +1 -0
  8. package/dist/{chunk-DWLB7FRR.js → chunk-H5KTGI3A.js} +153 -7
  9. package/dist/chunk-H5KTGI3A.js.map +1 -0
  10. package/dist/{chunk-6WVVF6AD.js → chunk-U5GOONKV.js} +5 -2
  11. package/dist/{chunk-6WVVF6AD.js.map → chunk-U5GOONKV.js.map} +1 -1
  12. package/dist/cli.cjs +995 -166
  13. package/dist/cli.cjs.map +1 -1
  14. package/dist/cli.js +245 -229
  15. package/dist/cli.js.map +1 -1
  16. package/dist/index.cjs +614 -68
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +34 -18
  19. package/dist/index.d.ts +34 -18
  20. package/dist/index.js +4 -4
  21. package/dist/{pattern-F5xBtIE-.d.cts → pattern-CP9_HpVK.d.cts} +1 -1
  22. package/dist/{pattern-CV607P87.d.ts → pattern-CYgsv-jO.d.ts} +1 -1
  23. package/dist/pattern-kit.cjs.map +1 -1
  24. package/dist/pattern-kit.d.cts +2 -2
  25. package/dist/pattern-kit.d.ts +2 -2
  26. package/dist/pattern-kit.js +2 -2
  27. package/dist/{resolve-ops-DIwEelH-.d.ts → resolve-ops-Ci7LgYHC.d.cts} +9 -0
  28. package/dist/{resolve-ops-DIwEelH-.d.cts → resolve-ops-Ci7LgYHC.d.ts} +9 -0
  29. package/dist/verify.d.cts +1 -1
  30. package/dist/verify.d.ts +1 -1
  31. package/dist/verify.js +1 -1
  32. package/dist/webpack-loader.cjs +614 -68
  33. package/dist/webpack-loader.cjs.map +1 -1
  34. package/dist/webpack-loader.d.cts +2 -2
  35. package/dist/webpack-loader.d.ts +2 -2
  36. package/dist/webpack-loader.js +4 -4
  37. package/dist/worker.cjs +5955 -0
  38. package/dist/worker.cjs.map +1 -0
  39. package/dist/worker.d.cts +2 -0
  40. package/dist/worker.d.ts +2 -0
  41. package/dist/worker.js +72 -0
  42. package/dist/worker.js.map +1 -0
  43. package/package.json +4 -2
  44. package/dist/chunk-DNHOGPYV.js.map +0 -1
  45. package/dist/chunk-DOQEBGWB.js.map +0 -1
  46. package/dist/chunk-DWLB7FRR.js.map +0 -1
@@ -22,10 +22,10 @@ import {
22
22
  removeNode,
23
23
  replaceWith,
24
24
  targetedByCombinator
25
- } from "./chunk-DWLB7FRR.js";
25
+ } from "./chunk-H5KTGI3A.js";
26
26
  import {
27
27
  init_esm_shims
28
- } from "./chunk-6WVVF6AD.js";
28
+ } from "./chunk-U5GOONKV.js";
29
29
 
30
30
  // src/pattern-kit.ts
31
31
  init_esm_shims();
@@ -143,6 +143,15 @@ interface NodeMeta {
143
143
  declaresCustomProperties: boolean;
144
144
  whitespaceSensitive: boolean;
145
145
  touched: boolean;
146
+ /**
147
+ * A rewrite pass DIRECTLY rewrote THIS element's own computed style (setClassList / mergeStyle onto
148
+ * it / foldInheritedStyles into it). Distinct from {@link touched}, which is ALSO raised when a
149
+ * neighbour op (a child's `unwrap`, a sibling `mergeSiblings`/`moveNode`, an `insert`/`replaceWith`)
150
+ * marks this node as a structural bystander WITHOUT changing its computed. Reverse-emit re-derives
151
+ * class tokens ONLY for `styleDirty` elements, so a bystander keeps its `class` attribute byte-for-
152
+ * byte identical (it can never gain a redundant class it did not already carry).
153
+ */
154
+ styleDirty: boolean;
146
155
  synthetic: boolean;
147
156
  safetyFloor: SafetyLevel;
148
157
  }
@@ -143,6 +143,15 @@ interface NodeMeta {
143
143
  declaresCustomProperties: boolean;
144
144
  whitespaceSensitive: boolean;
145
145
  touched: boolean;
146
+ /**
147
+ * A rewrite pass DIRECTLY rewrote THIS element's own computed style (setClassList / mergeStyle onto
148
+ * it / foldInheritedStyles into it). Distinct from {@link touched}, which is ALSO raised when a
149
+ * neighbour op (a child's `unwrap`, a sibling `mergeSiblings`/`moveNode`, an `insert`/`replaceWith`)
150
+ * marks this node as a structural bystander WITHOUT changing its computed. Reverse-emit re-derives
151
+ * class tokens ONLY for `styleDirty` elements, so a bystander keeps its `class` attribute byte-for-
152
+ * byte identical (it can never gain a redundant class it did not already carry).
153
+ */
154
+ styleDirty: boolean;
146
155
  synthetic: boolean;
147
156
  safetyFloor: SafetyLevel;
148
157
  }
package/dist/verify.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as Diagnostic } from './resolve-ops-DIwEelH-.cjs';
1
+ import { i as Diagnostic } from './resolve-ops-Ci7LgYHC.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-DIwEelH-.js';
1
+ import { i as Diagnostic } from './resolve-ops-Ci7LgYHC.js';
2
2
 
3
3
  /**
4
4
  * @domflax/verify — public type contract (TYPED STUB)
package/dist/verify.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  init_esm_shims
6
- } from "./chunk-6WVVF6AD.js";
6
+ } from "./chunk-U5GOONKV.js";
7
7
 
8
8
  // ../../node_modules/pngjs/lib/chunkstream.js
9
9
  var require_chunkstream = __commonJS({