stylehacks 8.0.3 → 9.0.3

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 (69) hide show
  1. package/package.json +10 -10
  2. package/src/dictionary/browsers.js +1 -3
  3. package/src/dictionary/identifiers.js +1 -3
  4. package/src/dictionary/postcss.js +1 -3
  5. package/src/dictionary/tags.js +1 -3
  6. package/src/exists.js +4 -5
  7. package/src/index.js +53 -10
  8. package/src/isMixin.js +4 -4
  9. package/src/lib/computeBrowsersToSupport.js +10 -12
  10. package/src/lib/getBrowsersForWebBuild.js +2 -4
  11. package/src/plugin.js +17 -16
  12. package/src/plugins/bodyEmpty.js +10 -11
  13. package/src/plugins/htmlCombinatorCommentBody.js +10 -11
  14. package/src/plugins/htmlFirstChild.js +10 -11
  15. package/src/plugins/important.js +5 -6
  16. package/src/plugins/index.js +33 -14
  17. package/src/plugins/leadingStar.js +6 -8
  18. package/src/plugins/leadingUnderscore.js +6 -8
  19. package/src/plugins/mediaSlash0.js +6 -7
  20. package/src/plugins/mediaSlash0Slash9.js +6 -7
  21. package/src/plugins/mediaSlash9.js +6 -7
  22. package/src/plugins/slash9.js +6 -7
  23. package/src/plugins/starHtml.js +10 -11
  24. package/src/plugins/trailingSlashComma.js +7 -8
  25. package/types/dictionary/browsers.d.ts +7 -9
  26. package/types/dictionary/browsers.d.ts.map +1 -1
  27. package/types/dictionary/identifiers.d.ts +5 -7
  28. package/types/dictionary/identifiers.d.ts.map +1 -1
  29. package/types/dictionary/postcss.d.ts +4 -6
  30. package/types/dictionary/postcss.d.ts.map +1 -1
  31. package/types/dictionary/tags.d.ts +3 -5
  32. package/types/dictionary/tags.d.ts.map +1 -1
  33. package/types/exists.d.ts +1 -1
  34. package/types/exists.d.ts.map +1 -1
  35. package/types/index.d.ts +4 -4
  36. package/types/index.d.ts.map +1 -1
  37. package/types/isMixin.d.ts +1 -1
  38. package/types/isMixin.d.ts.map +1 -1
  39. package/types/lib/computeBrowsersToSupport.d.ts +2 -2
  40. package/types/lib/computeBrowsersToSupport.d.ts.map +1 -1
  41. package/types/lib/getBrowsersForWebBuild.d.ts +2 -2
  42. package/types/plugin.d.ts +30 -27
  43. package/types/plugin.d.ts.map +1 -1
  44. package/types/plugins/bodyEmpty.d.ts +3 -3
  45. package/types/plugins/bodyEmpty.d.ts.map +1 -1
  46. package/types/plugins/htmlCombinatorCommentBody.d.ts +3 -3
  47. package/types/plugins/htmlCombinatorCommentBody.d.ts.map +1 -1
  48. package/types/plugins/htmlFirstChild.d.ts +3 -3
  49. package/types/plugins/htmlFirstChild.d.ts.map +1 -1
  50. package/types/plugins/important.d.ts +2 -2
  51. package/types/plugins/important.d.ts.map +1 -1
  52. package/types/plugins/index.d.ts +41 -6
  53. package/types/plugins/index.d.ts.map +1 -1
  54. package/types/plugins/leadingStar.d.ts +3 -3
  55. package/types/plugins/leadingStar.d.ts.map +1 -1
  56. package/types/plugins/leadingUnderscore.d.ts +2 -2
  57. package/types/plugins/leadingUnderscore.d.ts.map +1 -1
  58. package/types/plugins/mediaSlash0.d.ts +2 -2
  59. package/types/plugins/mediaSlash0.d.ts.map +1 -1
  60. package/types/plugins/mediaSlash0Slash9.d.ts +2 -2
  61. package/types/plugins/mediaSlash0Slash9.d.ts.map +1 -1
  62. package/types/plugins/mediaSlash9.d.ts +2 -2
  63. package/types/plugins/mediaSlash9.d.ts.map +1 -1
  64. package/types/plugins/slash9.d.ts +2 -2
  65. package/types/plugins/slash9.d.ts.map +1 -1
  66. package/types/plugins/starHtml.d.ts +3 -3
  67. package/types/plugins/starHtml.d.ts.map +1 -1
  68. package/types/plugins/trailingSlashComma.d.ts +2 -2
  69. package/types/plugins/trailingSlashComma.d.ts.map +1 -1
@@ -1,14 +1,13 @@
1
- 'use strict';
2
- const parser = require('postcss-selector-parser');
3
- const exists = require('../exists');
4
- const isMixin = require('../isMixin');
5
- const BasePlugin = require('../plugin');
6
- const { IE_5_5, IE_6 } = require('../dictionary/browsers');
7
- const { SELECTOR } = require('../dictionary/identifiers');
8
- const { RULE } = require('../dictionary/postcss');
9
- const { HTML } = require('../dictionary/tags');
1
+ import parser from 'postcss-selector-parser';
2
+ import exists from '../exists.js';
3
+ import isMixin from '../isMixin.js';
4
+ import BasePlugin from '../plugin.js';
5
+ import { IE_5_5, IE_6 } from '../dictionary/browsers.js';
6
+ import { SELECTOR } from '../dictionary/identifiers.js';
7
+ import { RULE } from '../dictionary/postcss.js';
8
+ import { HTML } from '../dictionary/tags.js';
10
9
 
11
- module.exports = class StarHtml extends BasePlugin {
10
+ export default (class StarHtml extends BasePlugin {
12
11
  /** @param {import('postcss').Result=} result */
13
12
  constructor(result) {
14
13
  super([IE_5_5, IE_6], [RULE], result);
@@ -47,4 +46,4 @@ module.exports = class StarHtml extends BasePlugin {
47
46
  });
48
47
  };
49
48
  }
50
- };
49
+ });
@@ -1,11 +1,10 @@
1
- 'use strict';
2
- const BasePlugin = require('../plugin');
3
- const isMixin = require('../isMixin');
4
- const { IE_5_5, IE_6, IE_7 } = require('../dictionary/browsers');
5
- const { SELECTOR } = require('../dictionary/identifiers');
6
- const { RULE } = require('../dictionary/postcss');
1
+ import BasePlugin from '../plugin.js';
2
+ import isMixin from '../isMixin.js';
3
+ import { IE_5_5, IE_6, IE_7 } from '../dictionary/browsers.js';
4
+ import { SELECTOR } from '../dictionary/identifiers.js';
5
+ import { RULE } from '../dictionary/postcss.js';
7
6
 
8
- module.exports = class TrailingSlashComma extends BasePlugin {
7
+ export default (class TrailingSlashComma extends BasePlugin {
9
8
  /** @param {import('postcss').Result=} result */
10
9
  constructor(result) {
11
10
  super([IE_5_5, IE_6, IE_7], [RULE], result);
@@ -33,4 +32,4 @@ module.exports = class TrailingSlashComma extends BasePlugin {
33
32
  });
34
33
  }
35
34
  }
36
- };
35
+ });
@@ -1,10 +1,8 @@
1
- declare const _exports: {
2
- FF_2: string;
3
- IE_5_5: string;
4
- IE_6: string;
5
- IE_7: string;
6
- IE_8: string;
7
- OP_9: string;
8
- };
9
- export = _exports;
1
+ declare const FF_2 = "firefox 2";
2
+ declare const IE_5_5 = "ie 5.5";
3
+ declare const IE_6 = "ie 6";
4
+ declare const IE_7 = "ie 7";
5
+ declare const IE_8 = "ie 8";
6
+ declare const OP_9 = "opera 9";
7
+ export { FF_2, IE_5_5, IE_6, IE_7, IE_8, OP_9 };
10
8
  //# sourceMappingURL=browsers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/dictionary/browsers.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/dictionary/browsers.js"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,cAAc,CAAC;AACzB,QAAA,MAAM,MAAM,WAAW,CAAC;AACxB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,QAAA,MAAM,IAAI,YAAY,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
@@ -1,8 +1,6 @@
1
- declare const _exports: {
2
- MEDIA_QUERY: string;
3
- PROPERTY: string;
4
- SELECTOR: string;
5
- VALUE: string;
6
- };
7
- export = _exports;
1
+ declare const MEDIA_QUERY = "media query";
2
+ declare const PROPERTY = "property";
3
+ declare const SELECTOR = "selector";
4
+ declare const VALUE = "value";
5
+ export { MEDIA_QUERY, PROPERTY, SELECTOR, VALUE };
8
6
  //# sourceMappingURL=identifiers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identifiers.d.ts","sourceRoot":"","sources":["../../src/dictionary/identifiers.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"identifiers.d.ts","sourceRoot":"","sources":["../../src/dictionary/identifiers.js"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW,gBAAgB,CAAC;AAClC,QAAA,MAAM,QAAQ,aAAa,CAAC;AAC5B,QAAA,MAAM,QAAQ,aAAa,CAAC;AAC5B,QAAA,MAAM,KAAK,UAAU,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC"}
@@ -1,7 +1,5 @@
1
- declare const _exports: {
2
- ATRULE: string;
3
- DECL: string;
4
- RULE: string;
5
- };
6
- export = _exports;
1
+ declare const ATRULE = "atrule";
2
+ declare const DECL = "decl";
3
+ declare const RULE = "rule";
4
+ export { ATRULE, DECL, RULE };
7
5
  //# sourceMappingURL=postcss.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/dictionary/postcss.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/dictionary/postcss.js"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,WAAW,CAAC;AACxB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
@@ -1,6 +1,4 @@
1
- declare const _exports: {
2
- BODY: string;
3
- HTML: string;
4
- };
5
- export = _exports;
1
+ declare const BODY = "body";
2
+ declare const HTML = "html";
3
+ export { BODY, HTML };
6
4
  //# sourceMappingURL=tags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/dictionary/tags.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/dictionary/tags.js"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,QAAA,MAAM,IAAI,SAAS,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
package/types/exists.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export = exists;
2
1
  /**
3
2
  * @param {import('postcss-selector-parser').Selector} selector
4
3
  * @param {number} index
@@ -6,4 +5,5 @@ export = exists;
6
5
  * @return {boolean | undefined | ''}
7
6
  */
8
7
  declare function exists(selector: import('postcss-selector-parser').Selector, index: number, value: string): boolean | undefined | '';
8
+ export default exists;
9
9
  //# sourceMappingURL=exists.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../src/exists.js"],"names":[],"mappings":";AAEA;;;;;GAKG;wBAC8B,QAAQ,EAL9B,OAAO,yBAAyB,EAAE,QAKJ,EAAE,KAAK,EAJrC,MAIqC,EAAE,KAAK,EAH5C,MAG4C,GAF3C,OAAO,GAAG,SAAS,GAAG,EAAE"}
1
+ {"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../src/exists.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,iBAAS,MAAM,CAAC,QAAQ,EALb,OAAO,yBAAyB,EAAE,QAKrB,EAAE,KAAK,EAJpB,MAIoB,EAAE,KAAK,EAH3B,MAG2B,GAF1B,OAAO,GAAG,SAAS,GAAG,EAAE,CAKnC;eAEc,MAAM"}
package/types/index.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- declare const _exports: import("postcss").PluginCreator<Options> & {
2
- detect: (node: import('postcss').Node) => boolean;
3
- };
4
- export = _exports;
5
1
  import type browserslist from 'browserslist';
6
2
  export type AutoprefixerOptions = {
7
3
  overrideBrowserslist?: string | string[];
@@ -10,4 +6,8 @@ export type BrowserslistOptions = Pick<browserslist.Options, 'stats' | 'path' |
10
6
  export type Options = {
11
7
  lint?: boolean;
12
8
  } & AutoprefixerOptions & BrowserslistOptions;
9
+ declare const moduleExports: import('postcss').PluginCreator<Options> & {
10
+ detect: (node: import('postcss').Node) => boolean;
11
+ };
12
+ export { moduleExports as default, moduleExports as 'module.exports' };
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";YAqEiE,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,OAAO;;;AAhEvG,OAAQ,KAAA,YAAY,MAAM,cAAc,CACxC;AAAA,YAAwD,mBAAmB,GAAjE;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAqB;AAC3E,YAAgE,mBAAmB,GAAzE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAAqB;AACnF,YAAwE,OAAO,GAArE;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,mBAAmB,GAAG,mBAAmB,CAAS"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAMG,OAAQ,KAAA,YAAY,MAAM,cAAc,CACxC;AAAA,YAAwD,mBAAmB,GAAjE;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAqB;AAC3E,YAAgE,mBAAmB,GAAzE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAAqB;AACnF,YAAwE,OAAO,GAArE;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,mBAAmB,GAAG,mBAAmB,CAAS;AAoGlF,QAAA,MAAM,aAAa,EACN,OAAO,SAAS,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG;IAAC,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,OAAO,CAAA;CAEvG,CAAC;AAEJ,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
- export = isMixin;
2
1
  /**
3
2
  * @param {import('postcss').Rule} node
4
3
  * @return {boolean}
5
4
  */
6
5
  declare function isMixin(node: import('postcss').Rule): boolean;
6
+ export default isMixin;
7
7
  //# sourceMappingURL=isMixin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMixin.d.ts","sourceRoot":"","sources":["../src/isMixin.js"],"names":[],"mappings":";AACA;;;GAGG;yBAC+B,IAAI,EAH3B,OAAO,SAAS,EAAE,IAGS,GAF1B,OAAO"}
1
+ {"version":3,"file":"isMixin.d.ts","sourceRoot":"","sources":["../src/isMixin.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,iBAAS,OAAO,CAAC,IAAI,EAHV,OAAO,SAAS,EAAE,IAGR,GAFT,OAAO,CAUlB;eAEc,OAAO"}
@@ -1,4 +1,4 @@
1
- export = computeBrowsersToSupport;
1
+ import browserslist from 'browserslist';
2
2
  /**
3
3
  *
4
4
  * @param {{overrideBrowserslist?: string | string[] | undefined, stats?: browserslist.Options["stats"], path?: browserslist.Options["path"], env?: browserslist.Options["env"]}} options
@@ -14,5 +14,5 @@ declare function computeBrowsersToSupport(options: {
14
14
  path?: browserslist.Options["path"];
15
15
  env?: browserslist.Options["env"];
16
16
  }, stats: browserslist.Options["stats"], from: string | undefined, file?: string, env?: browserslist.Options["env"]): string[];
17
- import browserslist = require('browserslist');
17
+ export default computeBrowsersToSupport;
18
18
  //# sourceMappingURL=computeBrowsersToSupport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"computeBrowsersToSupport.d.ts","sourceRoot":"","sources":["../../src/lib/computeBrowsersToSupport.js"],"names":[],"mappings":";AAKA;;;;;;;;GAQG;0CAED,OAAO,EARE;IAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;CAQtK,EACP,KAAK,EARI,YAAY,CAAC,OAAO,CAAC,OAAO,CAQhC,EACL,IAAI,EARK,MAAM,GAAC,SAQZ,EACJ,IAAI,AARH,CACA,EADQ,MAQL,EACJ,GAAG,AARF,CACA,EADQ,YAAY,CAAC,OAAO,CAAC,KAAK,CAQhC,GAPQ,MAAM,EAAE;OAVf,YAAY,WAAW,cAAc"}
1
+ {"version":3,"file":"computeBrowsersToSupport.d.ts","sourceRoot":"","sources":["../../src/lib/computeBrowsersToSupport.js"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,cAAc,CAAC;AAKxC;;;;;;;;GAQG;AACH,iBAAS,wBAAwB,CAAC,OAAO,EAP9B;IAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;CAOtI,EAAE,KAAK,EANrC,YAAY,CAAC,OAAO,CAAC,OAAO,CAMS,EAAE,IAAI,EAL3C,MAAM,GAAC,SAKoC,EAAE,IAAI,AAJzD,CACA,EADQ,MAIiD,EAAE,GAAG,AAH9D,CACA,EADQ,YAAY,CAAC,OAAO,CAAC,KAAK,CAG4B,GAFpD,MAAM,EAAE,CASpB;eAEc,wBAAwB"}
@@ -1,3 +1,3 @@
1
- export = _exports;
2
- declare function _exports(): string[];
1
+ export default _default;
2
+ declare function _default(): string[];
3
3
  //# sourceMappingURL=getBrowsersForWebBuild.d.ts.map
package/types/plugin.d.ts CHANGED
@@ -1,24 +1,41 @@
1
- export = BasePlugin;
2
1
  /**
3
- * @typedef {object} Plugin
4
- * @prop {Set<string>} targets
5
- * @prop {Set<string>} nodeTypes
6
- * @prop {(node: import('postcss').Node) => void} detectAndResolve
7
- * @prop {(node: import('postcss').Node) => void} detectAndWarn
8
- */
9
- /**
10
- * @typedef {import('postcss').Node & {_stylehacks: {
11
- message: string,
12
- browsers: Set<string>,
13
- identifier: string,
14
- hack: string }}} NodeWithInfo
2
+ * @typedef {import('postcss').Node & {
3
+ * _stylehacks: {
4
+ * message: string,
5
+ * browsers: Set<string>,
6
+ * identifier: string,
7
+ * hack: string
8
+ * }
9
+ * }} NodeWithInfo
15
10
  */
11
+ export type Plugin = {
12
+ targets: Set<string>;
13
+ nodeTypes: Set<string>;
14
+ detectAndResolve: (node: import('postcss').Node) => void;
15
+ detectAndWarn: (node: import('postcss').Node) => void;
16
+ };
17
+ export type NodeWithInfo = import('postcss').Node & {
18
+ _stylehacks: {
19
+ message: string;
20
+ browsers: Set<string>;
21
+ identifier: string;
22
+ hack: string;
23
+ };
24
+ };
25
+ export default BasePlugin;
16
26
  declare class BasePlugin {
17
27
  /** @type {NodeWithInfo[]} */
18
28
  nodes: NodeWithInfo[];
19
29
  targets: Set<string>;
20
30
  nodeTypes: Set<string>;
21
31
  result: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined;
32
+ /**
33
+ * @typedef {object} Plugin
34
+ * @prop {Set<string>} targets
35
+ * @prop {Set<string>} nodeTypes
36
+ * @prop {(node: import('postcss').Node) => void} detectAndResolve
37
+ * @prop {(node: import('postcss').Node) => void} detectAndWarn
38
+ */
22
39
  /**
23
40
  * @param {string[]} targets
24
41
  * @param {string[]} nodeTypes
@@ -55,18 +72,4 @@ declare class BasePlugin {
55
72
  resolve(): void;
56
73
  warn(): void;
57
74
  }
58
- export type Plugin = {
59
- targets: Set<string>;
60
- nodeTypes: Set<string>;
61
- detectAndResolve: (node: import('postcss').Node) => void;
62
- detectAndWarn: (node: import('postcss').Node) => void;
63
- };
64
- export type NodeWithInfo = import('postcss').Node & {
65
- _stylehacks: {
66
- message: string;
67
- browsers: Set<string>;
68
- identifier: string;
69
- hack: string;
70
- };
71
- };
72
75
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":";AACA;;;;;;GAMG;AAEH;;;;;;GAMG;;IASC,6BAA6B;IACxB,KAAK,EADC,YAAY,EAAE;IAEpB,OAAO;IACP,SAAS;IACT,MAAM;IAVb;;;;OAIG;IACH,YAAY,OAAO,EAJR,MAAM,EAIE,EAAE,SAAS,EAHnB,MAAM,EAGa,EAAE,MAAM,AAFnC,CACF,EADU,OAAO,SAAS,EAAE,MAAM,YAEG,EAMrC;IAED;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAJE,OAAO,SAAS,EAAE,IAIpB,EAAE,QAAQ,EAHR;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAGzB,GAFP,IAAI,CAaf;IAED;;;OAGG;IACH,GAAG,CAAC,IAAI,EAHG,OAAO,SAAS,EAAE,IAGrB,GAFI,OAAO,CAUlB;IAED;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAHV,OAAO,SAAS,EAAE,IAGR,GAFT,IAAI,CAQf;IAED;;;OAGG;IACH,aAAa,CAAC,IAAI,EAHP,OAAO,SAAS,EAAE,IAGX,GAFN,IAAI,CAQf;IACD,2CAA2C;IAE3C,MAAM,CAAC,IAAI,EAFC,OAAO,SAAS,EAAE,IAEnB,QAEV;IAED,qBAAqB;IACrB,OAAO,IADM,IAAI,CAKhB;IAED,IAAI,SASH;;AA1GA,YAAkB,MAAM,GACxB;IAAoB,OAAO,EAApB,GAAG,CAAC,MAAM,CAAC,CAClB;IAAoB,SAAS,EAAtB,GAAG,CAAC,MAAM,CAAC,CAClB;IAA+C,gBAAgB,EAAxD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC7C;IAA+C,aAAa,EAArD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC/C;CAAA,CAAA;AAGE,YAIwD,YAAY,GAJ1D,OAAO,SAAS,EAAE,IAAI,GAAG;IAAC,WAAW,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAC,CAAc"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIE,YAAkB,MAAM,GACxB;IAAoB,OAAO,EAApB,GAAG,CAAC,MAAM,CAAC,CAClB;IAAoB,SAAS,EAAtB,GAAG,CAAC,MAAM,CAAC,CAClB;IAA+C,gBAAgB,EAAxD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC7C;IAA+C,aAAa,EAArD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC/C;CAAA,CAAA;AAjBA,YAOG,YAAY,GAPL,OAAO,SAAS,EAAE,IAAI,GAAG;IACjC,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAc;;;IAiBd,6BAA6B;IACxB,KAAK,EADC,YAAY,EAAE;IAEpB,OAAO;IACP,SAAS;IACT,MAAM;IAjBb;;;;;;OAMG;IACH;;;;OAIG;IACH,YAAY,OAAO,EAJR,MAAM,EAIE,EAAE,SAAS,EAHnB,MAAM,EAGa,EAAE,MAAM,AAFnC,CACF,EADU,OAAO,SAAS,EAAE,MAAM,YAEG,EAMrC;IAED;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAJE,OAAO,SAAS,EAAE,IAIpB,EAAE,QAAQ,EAHR;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAGzB,GAFP,IAAI,CAaf;IAED;;;OAGG;IACH,GAAG,CAAC,IAAI,EAHG,OAAO,SAAS,EAAE,IAGrB,GAFI,OAAO,CAUlB;IAED;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAHV,OAAO,SAAS,EAAE,IAGR,GAFT,IAAI,CAQf;IAED;;;OAGG;IACH,aAAa,CAAC,IAAI,EAHP,OAAO,SAAS,EAAE,IAGX,GAFN,IAAI,CAQf;IACD,2CAA2C;IAE3C,MAAM,CAAC,IAAI,EAFC,OAAO,SAAS,EAAE,IAEnB,QAEV;IAED,qBAAqB;IACrB,OAAO,IADM,IAAI,CAKhB;IAED,IAAI,SASH"}
@@ -1,4 +1,6 @@
1
- export = BodyEmpty;
1
+ import parser from 'postcss-selector-parser';
2
+ import BasePlugin from '../plugin.js';
3
+ export default BodyEmpty;
2
4
  declare class BodyEmpty extends BasePlugin {
3
5
  /** @param {import('postcss').Result} result */
4
6
  constructor(result: import('postcss').Result);
@@ -13,6 +15,4 @@ declare class BodyEmpty extends BasePlugin {
13
15
  */
14
16
  analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
15
17
  }
16
- import parser = require('postcss-selector-parser');
17
- import BasePlugin = require('../plugin');
18
18
  //# sourceMappingURL=bodyEmpty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bodyEmpty.d.ts","sourceRoot":"","sources":["../../src/plugins/bodyEmpty.js"],"names":[],"mappings":";uBAUiC,SAAQ,UAAU;IACjD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC;;OA9CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"bodyEmpty.d.ts","sourceRoot":"","sources":["../../src/plugins/bodyEmpty.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAG7C,OAAO,UAAU,MAAM,cAAc,CAAC;;uBAMN,SAAQ,UAAU;IAChD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC"}
@@ -1,4 +1,6 @@
1
- export = HtmlCombinatorCommentBody;
1
+ import parser from 'postcss-selector-parser';
2
+ import BasePlugin from '../plugin.js';
3
+ export default HtmlCombinatorCommentBody;
2
4
  declare class HtmlCombinatorCommentBody extends BasePlugin {
3
5
  /** @param {import('postcss').Result} result */
4
6
  constructor(result: import('postcss').Result);
@@ -12,6 +14,4 @@ declare class HtmlCombinatorCommentBody extends BasePlugin {
12
14
  */
13
15
  analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
14
16
  }
15
- import parser = require('postcss-selector-parser');
16
- import BasePlugin = require('../plugin');
17
17
  //# sourceMappingURL=htmlCombinatorCommentBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"htmlCombinatorCommentBody.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlCombinatorCommentBody.js"],"names":[],"mappings":";uCAUiD,SAAQ,UAAU;IACjE,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CASf;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAsBtC;;OAnDG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"htmlCombinatorCommentBody.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlCombinatorCommentBody.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAG7C,OAAO,UAAU,MAAM,cAAc,CAAC;;uCAMU,SAAQ,UAAU;IAChE,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CASf;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAsBtC"}
@@ -1,4 +1,6 @@
1
- export = HtmlFirstChild;
1
+ import parser from 'postcss-selector-parser';
2
+ import BasePlugin from '../plugin.js';
3
+ export default HtmlFirstChild;
2
4
  declare class HtmlFirstChild extends BasePlugin {
3
5
  /** @param {import('postcss').Result} result */
4
6
  constructor(result: import('postcss').Result);
@@ -13,6 +15,4 @@ declare class HtmlFirstChild extends BasePlugin {
13
15
  */
14
16
  analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
15
17
  }
16
- import parser = require('postcss-selector-parser');
17
- import BasePlugin = require('../plugin');
18
18
  //# sourceMappingURL=htmlFirstChild.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"htmlFirstChild.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlFirstChild.js"],"names":[],"mappings":";4BAUsC,SAAQ,UAAU;IACtD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAQf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC;;OA/CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"htmlFirstChild.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlFirstChild.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAG7C,OAAO,UAAU,MAAM,cAAc,CAAC;;4BAMD,SAAQ,UAAU;IACrD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAQf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC"}
@@ -1,4 +1,5 @@
1
- export = Important;
1
+ import BasePlugin from '../plugin.js';
2
+ export default Important;
2
3
  declare class Important extends BasePlugin {
3
4
  /** @param {import('postcss').Result=} result */
4
5
  constructor(result?: import('postcss').Result | undefined);
@@ -8,5 +9,4 @@ declare class Important extends BasePlugin {
8
9
  */
9
10
  detect(decl: import('postcss').Declaration): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=important.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"important.d.ts","sourceRoot":"","sources":["../../src/plugins/important.js"],"names":[],"mappings":";uBAKiC,SAAQ,UAAU;IACjD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAWf;;OAtBG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"important.d.ts","sourceRoot":"","sources":["../../src/plugins/important.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;uBAIN,SAAQ,UAAU;IAChD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAWf"}
@@ -1,9 +1,44 @@
1
- declare const _exports: ({
2
- new (result?: import('postcss').Result | undefined): important;
1
+ declare const plugins: ({
2
+ new (result?: import('postcss').Result | undefined): {
3
+ detect(decl: import('postcss').Declaration): void;
4
+ nodes: import("../plugin.js").NodeWithInfo[];
5
+ targets: Set<string>;
6
+ nodeTypes: Set<string>;
7
+ result: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined;
8
+ push(node: import('postcss').Node, metadata: {
9
+ identifier: string;
10
+ hack: string;
11
+ }): void;
12
+ any(node: import('postcss').Node): boolean;
13
+ detectAndResolve(node: import('postcss').Node): void;
14
+ detectAndWarn(node: import('postcss').Node): void;
15
+ resolve(): void;
16
+ warn(): void;
17
+ };
3
18
  } | {
4
- new (result?: import('postcss').Result | undefined): trailingSlashComma;
19
+ new (result?: import('postcss').Result | undefined): {
20
+ nodes: import("../plugin.js").NodeWithInfo[];
21
+ targets: Set<string>;
22
+ nodeTypes: Set<string>;
23
+ result: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined;
24
+ detect(rule: import('postcss').Rule): void;
25
+ push(node: import('postcss').Node, metadata: {
26
+ identifier: string;
27
+ hack: string;
28
+ }): void;
29
+ any(node: import('postcss').Node): boolean;
30
+ detectAndResolve(node: import('postcss').Node): void;
31
+ detectAndWarn(node: import('postcss').Node): void;
32
+ resolve(): void;
33
+ warn(): void;
34
+ };
5
35
  })[];
6
- export = _exports;
7
- import important = require('./important');
8
- import trailingSlashComma = require('./trailingSlashComma');
36
+ /**
37
+ * Detectors grouped by the PostCSS node types they accept. `detect()` uses
38
+ * this to avoid constructing detectors that cannot inspect the given node.
39
+ *
40
+ * @type {Record<string, (typeof plugins)[number][]>}
41
+ */
42
+ export declare const pluginsByNodeType: Record<string, (typeof plugins)[number][]>;
43
+ export default plugins;
9
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.js"],"names":[],"mappings":";;;;;;OAIM,SAAS,WAAW,aAAa;OAQjC,kBAAkB,WAAW,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.js"],"names":[],"mappings":"AAaA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaZ,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAFpB,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,CAYlD,CAAC;eAEa,OAAO"}
@@ -1,4 +1,6 @@
1
- export = LeadingStar;
1
+ import BasePlugin from '../plugin.js';
2
+ import type { Declaration, AtRule } from 'postcss';
3
+ export default LeadingStar;
2
4
  declare class LeadingStar extends BasePlugin {
3
5
  /** @param {import('postcss').Result=} result */
4
6
  constructor(result?: import('postcss').Result | undefined);
@@ -8,6 +10,4 @@ declare class LeadingStar extends BasePlugin {
8
10
  */
9
11
  detect(node: Declaration | AtRule): void;
10
12
  }
11
- import BasePlugin = require('../plugin');
12
- import type { Declaration, AtRule } from 'postcss';
13
13
  //# sourceMappingURL=leadingStar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leadingStar.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingStar.js"],"names":[],"mappings":";yBAUmC,SAAQ,UAAU;IACnD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,WAAW,GAAG,MAGd,GAFC,IAAI,CAqCf;;OAtDG,UAAU,WAAW,WAAW;AAKlC,OAAQ,KAAA,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,SAAS,CAAE"}
1
+ {"version":3,"file":"leadingStar.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingStar.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAKlC,OAAQ,KAAA,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,SAAS,CAAE;;yBAGhB,SAAQ,UAAU;IAClD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,WAAW,GAAG,MAGd,GAFC,IAAI,CAqCf"}
@@ -1,4 +1,5 @@
1
- export = LeadingUnderscore;
1
+ import BasePlugin from '../plugin.js';
2
+ export default LeadingUnderscore;
2
3
  declare class LeadingUnderscore extends BasePlugin {
3
4
  /** @param {import('postcss').Result=} result */
4
5
  constructor(result?: import('postcss').Result | undefined);
@@ -8,5 +9,4 @@ declare class LeadingUnderscore extends BasePlugin {
8
9
  */
9
10
  detect(decl: import('postcss').Declaration): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=leadingUnderscore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leadingUnderscore.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingUnderscore.js"],"names":[],"mappings":";+BAoByC,SAAQ,UAAU;IACzD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAsBf;;OAjDG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"leadingUnderscore.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingUnderscore.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;+BAkBE,SAAQ,UAAU;IACxD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAsBf"}
@@ -1,4 +1,5 @@
1
- export = MediaSlash0;
1
+ import BasePlugin from '../plugin.js';
2
+ export default MediaSlash0;
2
3
  declare class MediaSlash0 extends BasePlugin {
3
4
  /** @param {import('postcss').Result} result */
4
5
  constructor(result: import('postcss').Result);
@@ -8,5 +9,4 @@ declare class MediaSlash0 extends BasePlugin {
8
9
  */
9
10
  detect(rule: import('postcss').AtRule): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=mediaSlash0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mediaSlash0.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0.js"],"names":[],"mappings":";yBAMmC,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAvBG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"mediaSlash0.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;yBAKJ,SAAQ,UAAU;IAClD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf"}
@@ -1,4 +1,5 @@
1
- export = MediaSlash0Slash9;
1
+ import BasePlugin from '../plugin.js';
2
+ export default MediaSlash0Slash9;
2
3
  declare class MediaSlash0Slash9 extends BasePlugin {
3
4
  /** @param {import('postcss').Result} result */
4
5
  constructor(result: import('postcss').Result);
@@ -8,5 +9,4 @@ declare class MediaSlash0Slash9 extends BasePlugin {
8
9
  */
9
10
  detect(rule: import('postcss').AtRule): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=mediaSlash0Slash9.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mediaSlash0Slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0Slash9.js"],"names":[],"mappings":";+BAMyC,SAAQ,UAAU;IACzD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAxBG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"mediaSlash0Slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0Slash9.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;+BAKE,SAAQ,UAAU;IACxD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf"}
@@ -1,4 +1,5 @@
1
- export = MediaSlash9;
1
+ import BasePlugin from '../plugin.js';
2
+ export default MediaSlash9;
2
3
  declare class MediaSlash9 extends BasePlugin {
3
4
  /** @param {import('postcss').Result=} result */
4
5
  constructor(result?: import('postcss').Result | undefined);
@@ -8,5 +9,4 @@ declare class MediaSlash9 extends BasePlugin {
8
9
  */
9
10
  detect(rule: import('postcss').AtRule): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=mediaSlash9.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mediaSlash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash9.js"],"names":[],"mappings":";yBAMmC,SAAQ,UAAU;IACnD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAxBG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"mediaSlash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash9.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;yBAKJ,SAAQ,UAAU;IAClD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf"}
@@ -1,4 +1,5 @@
1
- export = Slash9;
1
+ import BasePlugin from '../plugin.js';
2
+ export default Slash9;
2
3
  declare class Slash9 extends BasePlugin {
3
4
  /** @param {import('postcss').Result=} result */
4
5
  constructor(result?: import('postcss').Result | undefined);
@@ -8,5 +9,4 @@ declare class Slash9 extends BasePlugin {
8
9
  */
9
10
  detect(decl: import('postcss').Declaration): void;
10
11
  }
11
- import BasePlugin = require('../plugin.js');
12
12
  //# sourceMappingURL=slash9.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/slash9.js"],"names":[],"mappings":";oBAM8B,SAAQ,UAAU;IAC9C,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAUf;;OAvBG,UAAU,WAAW,cAAc"}
1
+ {"version":3,"file":"slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/slash9.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;oBAKT,SAAQ,UAAU;IAC7C,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAUf"}
@@ -1,4 +1,6 @@
1
- export = StarHtml;
1
+ import parser from 'postcss-selector-parser';
2
+ import BasePlugin from '../plugin.js';
3
+ export default StarHtml;
2
4
  declare class StarHtml extends BasePlugin {
3
5
  /** @param {import('postcss').Result=} result */
4
6
  constructor(result?: import('postcss').Result | undefined);
@@ -13,6 +15,4 @@ declare class StarHtml extends BasePlugin {
13
15
  */
14
16
  analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
15
17
  }
16
- import parser = require('postcss-selector-parser');
17
- import BasePlugin = require('../plugin');
18
18
  //# sourceMappingURL=starHtml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"starHtml.d.ts","sourceRoot":"","sources":["../../src/plugins/starHtml.js"],"names":[],"mappings":";sBAUgC,SAAQ,UAAU;IAChD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAmBrC;;OA/CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"starHtml.d.ts","sourceRoot":"","sources":["../../src/plugins/starHtml.js"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAG7C,OAAO,UAAU,MAAM,cAAc,CAAC;;sBAMP,SAAQ,UAAU;IAC/C,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAmBrC"}
@@ -1,4 +1,5 @@
1
- export = TrailingSlashComma;
1
+ import BasePlugin from '../plugin.js';
2
+ export default TrailingSlashComma;
2
3
  declare class TrailingSlashComma extends BasePlugin {
3
4
  /** @param {import('postcss').Result=} result */
4
5
  constructor(result?: import('postcss').Result | undefined);
@@ -8,5 +9,4 @@ declare class TrailingSlashComma extends BasePlugin {
8
9
  */
9
10
  detect(rule: import('postcss').Rule): void;
10
11
  }
11
- import BasePlugin = require('../plugin');
12
12
  //# sourceMappingURL=trailingSlashComma.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trailingSlashComma.d.ts","sourceRoot":"","sources":["../../src/plugins/trailingSlashComma.js"],"names":[],"mappings":";gCAO0C,SAAQ,UAAU;IAC1D,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAmBf;;OAjCG,UAAU,WAAW,WAAW"}
1
+ {"version":3,"file":"trailingSlashComma.d.ts","sourceRoot":"","sources":["../../src/plugins/trailingSlashComma.js"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;;gCAMG,SAAQ,UAAU;IACzD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAmBf"}