postcss 8.3.9 → 8.4.31

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 (44) hide show
  1. package/README.md +7 -23
  2. package/lib/at-rule.d.ts +58 -49
  3. package/lib/comment.d.ts +43 -32
  4. package/lib/container.d.ts +233 -223
  5. package/lib/container.js +251 -244
  6. package/lib/css-syntax-error.d.ts +117 -61
  7. package/lib/css-syntax-error.js +10 -3
  8. package/lib/declaration.d.ts +85 -61
  9. package/lib/document.d.ts +27 -16
  10. package/lib/fromJSON.d.ts +6 -2
  11. package/lib/input.d.ts +118 -54
  12. package/lib/input.js +87 -55
  13. package/lib/lazy-result.d.ts +82 -67
  14. package/lib/lazy-result.js +234 -232
  15. package/lib/list.d.ts +53 -47
  16. package/lib/list.js +16 -14
  17. package/lib/map-generator.js +231 -172
  18. package/lib/no-work-result.d.ts +46 -0
  19. package/lib/no-work-result.js +135 -0
  20. package/lib/node.d.ts +345 -253
  21. package/lib/node.js +200 -139
  22. package/lib/parse.d.ts +6 -2
  23. package/lib/parser.js +354 -309
  24. package/lib/postcss.d.mts +72 -0
  25. package/lib/postcss.d.ts +288 -319
  26. package/lib/postcss.js +18 -12
  27. package/lib/postcss.mjs +1 -0
  28. package/lib/previous-map.d.ts +23 -14
  29. package/lib/previous-map.js +37 -40
  30. package/lib/processor.d.ts +55 -41
  31. package/lib/processor.js +20 -27
  32. package/lib/result.d.ts +87 -76
  33. package/lib/root.d.ts +49 -36
  34. package/lib/root.js +12 -10
  35. package/lib/rule.d.ts +54 -45
  36. package/lib/stringifier.d.ts +46 -0
  37. package/lib/stringifier.js +140 -138
  38. package/lib/stringify.d.ts +6 -2
  39. package/lib/terminal-highlight.js +11 -11
  40. package/lib/tokenize.js +2 -2
  41. package/lib/warn-once.js +1 -0
  42. package/lib/warning.d.ts +79 -36
  43. package/lib/warning.js +6 -4
  44. package/package.json +20 -10
@@ -0,0 +1,72 @@
1
+ export {
2
+ // postcss function / namespace
3
+ default,
4
+
5
+ // Value exports from postcss.mjs
6
+ stringify,
7
+ fromJSON,
8
+ // @ts-expect-error This value exists, but it’s untyped.
9
+ plugin,
10
+ parse,
11
+ list,
12
+
13
+ document,
14
+ comment,
15
+ atRule,
16
+ rule,
17
+ decl,
18
+ root,
19
+
20
+ CssSyntaxError,
21
+ Declaration,
22
+ Container,
23
+ Processor,
24
+ Document,
25
+ Comment,
26
+ Warning,
27
+ AtRule,
28
+ Result,
29
+ Input,
30
+ Rule,
31
+ Root,
32
+ Node,
33
+
34
+ // Type-only exports
35
+ AcceptedPlugin,
36
+ AnyNode,
37
+ AtRuleProps,
38
+ Builder,
39
+ ChildNode,
40
+ ChildProps,
41
+ CommentProps,
42
+ ContainerProps,
43
+ DeclarationProps,
44
+ DocumentProps,
45
+ FilePosition,
46
+ Helpers,
47
+ JSONHydrator,
48
+ Message,
49
+ NodeErrorOptions,
50
+ NodeProps,
51
+ OldPlugin,
52
+ Parser,
53
+ Plugin,
54
+ PluginCreator,
55
+ Position,
56
+ Postcss,
57
+ ProcessOptions,
58
+ RootProps,
59
+ RuleProps,
60
+ Source,
61
+ SourceMap,
62
+ SourceMapOptions,
63
+ Stringifier,
64
+ Syntax,
65
+ TransformCallback,
66
+ Transformer,
67
+ WarningOptions,
68
+
69
+ // This is a class, but it’s not re-exported. That’s why it’s exported as type-only here.
70
+ type LazyResult,
71
+
72
+ } from './postcss.js'