polytypo 1.17.4 → 1.18.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 (60) hide show
  1. package/dist/{chunk-HOVHQ7FV.js → chunk-4PNVRVFN.js} +3 -3
  2. package/dist/{chunk-MTB7GEW4.cjs → chunk-5BMZQ3LM.cjs} +3 -3
  3. package/dist/{chunk-MTB7GEW4.cjs.map → chunk-5BMZQ3LM.cjs.map} +1 -1
  4. package/dist/{chunk-4C6Q4VWE.js → chunk-6OAQCO3S.js} +2 -2
  5. package/dist/chunk-AQEQJFY7.cjs +34 -0
  6. package/dist/{chunk-3LFCYGJ2.cjs.map → chunk-AQEQJFY7.cjs.map} +1 -1
  7. package/dist/{chunk-PJMNCAM6.js → chunk-ATPMHQ6B.js} +3 -3
  8. package/dist/chunk-C6AMXPGN.cjs +36 -0
  9. package/dist/{chunk-SUDJFZXB.cjs.map → chunk-C6AMXPGN.cjs.map} +1 -1
  10. package/dist/{chunk-KFRNMKKO.cjs → chunk-D4KBXHBS.cjs} +4 -4
  11. package/dist/{chunk-KFRNMKKO.cjs.map → chunk-D4KBXHBS.cjs.map} +1 -1
  12. package/dist/{chunk-GQKLJ73E.cjs → chunk-DHBLFEQ4.cjs} +6 -6
  13. package/dist/{chunk-GQKLJ73E.cjs.map → chunk-DHBLFEQ4.cjs.map} +1 -1
  14. package/dist/{chunk-ZTHGDNKA.cjs → chunk-HQI62OQ3.cjs} +159 -10
  15. package/dist/chunk-HQI62OQ3.cjs.map +1 -0
  16. package/dist/{chunk-7ZKTX4XN.js → chunk-IVMLFKWH.js} +2 -2
  17. package/dist/chunk-JBLZF6GT.cjs +38 -0
  18. package/dist/{chunk-DKIKUSWJ.cjs.map → chunk-JBLZF6GT.cjs.map} +1 -1
  19. package/dist/{chunk-SFAHXSBP.cjs → chunk-KD55CPW7.cjs} +23 -23
  20. package/dist/{chunk-SFAHXSBP.cjs.map → chunk-KD55CPW7.cjs.map} +1 -1
  21. package/dist/{chunk-67JPAOD6.js → chunk-MKX74SBT.js} +2 -2
  22. package/dist/{chunk-CBZVCWYE.js → chunk-P2EMJLVF.js} +159 -10
  23. package/dist/chunk-P2EMJLVF.js.map +1 -0
  24. package/dist/{chunk-3B7OFB3Z.js → chunk-Q3W7ZJXS.js} +2 -2
  25. package/dist/{chunk-3YFHGJLX.js → chunk-VIOCUESF.js} +4 -4
  26. package/dist/{errors-DrNAlWLt.d.cts → errors-CQz5lyjD.d.cts} +1 -1
  27. package/dist/{errors-DrNAlWLt.d.ts → errors-CQz5lyjD.d.ts} +1 -1
  28. package/dist/html.cjs +9 -9
  29. package/dist/html.d.cts +2 -2
  30. package/dist/html.d.ts +2 -2
  31. package/dist/html.js +4 -4
  32. package/dist/index.cjs +17 -17
  33. package/dist/index.d.cts +2 -2
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +7 -7
  36. package/dist/markdown.cjs +10 -10
  37. package/dist/markdown.d.cts +2 -2
  38. package/dist/markdown.d.ts +2 -2
  39. package/dist/markdown.js +5 -5
  40. package/dist/text.cjs +8 -8
  41. package/dist/text.d.cts +2 -2
  42. package/dist/text.d.ts +2 -2
  43. package/dist/text.js +3 -3
  44. package/dist/yaml.cjs +9 -9
  45. package/dist/yaml.d.cts +2 -2
  46. package/dist/yaml.d.ts +2 -2
  47. package/dist/yaml.js +4 -4
  48. package/package.json +1 -1
  49. package/dist/chunk-3LFCYGJ2.cjs +0 -34
  50. package/dist/chunk-CBZVCWYE.js.map +0 -1
  51. package/dist/chunk-DKIKUSWJ.cjs +0 -38
  52. package/dist/chunk-SUDJFZXB.cjs +0 -36
  53. package/dist/chunk-ZTHGDNKA.cjs.map +0 -1
  54. /package/dist/{chunk-HOVHQ7FV.js.map → chunk-4PNVRVFN.js.map} +0 -0
  55. /package/dist/{chunk-4C6Q4VWE.js.map → chunk-6OAQCO3S.js.map} +0 -0
  56. /package/dist/{chunk-PJMNCAM6.js.map → chunk-ATPMHQ6B.js.map} +0 -0
  57. /package/dist/{chunk-7ZKTX4XN.js.map → chunk-IVMLFKWH.js.map} +0 -0
  58. /package/dist/{chunk-67JPAOD6.js.map → chunk-MKX74SBT.js.map} +0 -0
  59. /package/dist/{chunk-3B7OFB3Z.js.map → chunk-Q3W7ZJXS.js.map} +0 -0
  60. /package/dist/{chunk-3YFHGJLX.js.map → chunk-VIOCUESF.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PolytypoError
3
- } from "./chunk-CBZVCWYE.js";
3
+ } from "./chunk-P2EMJLVF.js";
4
4
 
5
5
  // src/modes/html.ts
6
6
  import { parse, parseFragment } from "parse5";
@@ -144,4 +144,4 @@ export {
144
144
  htmlSpans,
145
145
  htmlFragmentSpans
146
146
  };
147
- //# sourceMappingURL=chunk-3B7OFB3Z.js.map
147
+ //# sourceMappingURL=chunk-Q3W7ZJXS.js.map
@@ -2,11 +2,11 @@ import {
2
2
  htmlFragmentSpans,
3
3
  isSkippedElement,
4
4
  wrapParserErrors
5
- } from "./chunk-3B7OFB3Z.js";
5
+ } from "./chunk-Q3W7ZJXS.js";
6
6
  import {
7
7
  resolveFrontmatterKeys,
8
8
  yamlSpans
9
- } from "./chunk-4C6Q4VWE.js";
9
+ } from "./chunk-6OAQCO3S.js";
10
10
  import {
11
11
  PolytypoError,
12
12
  analyzeOverUnits,
@@ -16,7 +16,7 @@ import {
16
16
  planRules,
17
17
  resolveNarrowTarget,
18
18
  runOverUnits
19
- } from "./chunk-CBZVCWYE.js";
19
+ } from "./chunk-P2EMJLVF.js";
20
20
 
21
21
  // src/modes/markdown.ts
22
22
  import { parse, postprocess, preprocess } from "micromark";
@@ -394,4 +394,4 @@ export {
394
394
  runMarkdownPipeline,
395
395
  analyzeMarkdownPipeline
396
396
  };
397
- //# sourceMappingURL=chunk-3YFHGJLX.js.map
397
+ //# sourceMappingURL=chunk-VIOCUESF.js.map
@@ -110,7 +110,7 @@ interface LocaleData {
110
110
  readonly elisionClitics: ElisionClitics;
111
111
  };
112
112
  readonly dash: {
113
- readonly parenthetical: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
113
+ readonly parenthetical: "em-tight" | "em-spaced" | "em-paired" | "en-tight" | "en-spaced" | "none";
114
114
  readonly range: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
115
115
  };
116
116
  readonly ellipsis: {
@@ -110,7 +110,7 @@ interface LocaleData {
110
110
  readonly elisionClitics: ElisionClitics;
111
111
  };
112
112
  readonly dash: {
113
- readonly parenthetical: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
113
+ readonly parenthetical: "em-tight" | "em-spaced" | "em-paired" | "en-tight" | "en-spaced" | "none";
114
114
  readonly range: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
115
115
  };
116
116
  readonly ellipsis: {
package/dist/html.cjs CHANGED
@@ -1,29 +1,29 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunk3LFCYGJ2cjs = require('./chunk-3LFCYGJ2.cjs');
5
- require('./chunk-KFRNMKKO.cjs');
4
+ var _chunkAQEQJFY7cjs = require('./chunk-AQEQJFY7.cjs');
5
+ require('./chunk-D4KBXHBS.cjs');
6
6
 
7
7
 
8
- var _chunkMTB7GEW4cjs = require('./chunk-MTB7GEW4.cjs');
8
+ var _chunk5BMZQ3LMcjs = require('./chunk-5BMZQ3LM.cjs');
9
9
 
10
10
 
11
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
11
+ var _chunkHQI62OQ3cjs = require('./chunk-HQI62OQ3.cjs');
12
12
 
13
13
  // src/index.html.ts
14
14
  function transform(input, options) {
15
15
  const given = _nullishCoalesce(options, () => ( {}));
16
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
17
- return _chunk3LFCYGJ2cjs.runHtmlPipeline.call(void 0, input, given);
16
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
17
+ return _chunkAQEQJFY7cjs.runHtmlPipeline.call(void 0, input, given);
18
18
  }
19
19
  function analyze(input, options) {
20
20
  const given = _nullishCoalesce(options, () => ( {}));
21
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
22
- return _chunk3LFCYGJ2cjs.analyzeHtmlPipeline.call(void 0, input, given);
21
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
22
+ return _chunkAQEQJFY7cjs.analyzeHtmlPipeline.call(void 0, input, given);
23
23
  }
24
24
 
25
25
 
26
26
 
27
27
 
28
- exports.PolytypoError = _chunkZTHGDNKAcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
+ exports.PolytypoError = _chunkHQI62OQ3cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
29
  //# sourceMappingURL=html.cjs.map
package/dist/html.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.cjs';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.cjs';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.cjs';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.cjs';
3
3
 
4
4
  /**
5
5
  * `polytypo/html` — HTML-only entry point. Its module graph includes `parse5` but excludes the
package/dist/html.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.js';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.js';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.js';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.js';
3
3
 
4
4
  /**
5
5
  * `polytypo/html` — HTML-only entry point. Its module graph includes `parse5` but excludes the
package/dist/html.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  analyzeHtmlPipeline,
3
3
  runHtmlPipeline
4
- } from "./chunk-PJMNCAM6.js";
5
- import "./chunk-3B7OFB3Z.js";
4
+ } from "./chunk-ATPMHQ6B.js";
5
+ import "./chunk-Q3W7ZJXS.js";
6
6
  import {
7
7
  assertFixedMode
8
- } from "./chunk-67JPAOD6.js";
8
+ } from "./chunk-MKX74SBT.js";
9
9
  import {
10
10
  PolytypoError
11
- } from "./chunk-CBZVCWYE.js";
11
+ } from "./chunk-P2EMJLVF.js";
12
12
 
13
13
  // src/index.html.ts
14
14
  function transform(input, options) {
package/dist/index.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkDKIKUSWJcjs = require('./chunk-DKIKUSWJ.cjs');
4
+ var _chunkJBLZF6GTcjs = require('./chunk-JBLZF6GT.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunk3LFCYGJ2cjs = require('./chunk-3LFCYGJ2.cjs');
8
+ var _chunkAQEQJFY7cjs = require('./chunk-AQEQJFY7.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkSFAHXSBPcjs = require('./chunk-SFAHXSBP.cjs');
13
- require('./chunk-KFRNMKKO.cjs');
12
+ var _chunkKD55CPW7cjs = require('./chunk-KD55CPW7.cjs');
13
+ require('./chunk-D4KBXHBS.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkSUDJFZXBcjs = require('./chunk-SUDJFZXB.cjs');
18
- require('./chunk-GQKLJ73E.cjs');
17
+ var _chunkC6AMXPGNcjs = require('./chunk-C6AMXPGN.cjs');
18
+ require('./chunk-DHBLFEQ4.cjs');
19
19
 
20
20
 
21
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
21
+ var _chunkHQI62OQ3cjs = require('./chunk-HQI62OQ3.cjs');
22
22
 
23
23
  // src/engine/pipeline.ts
24
24
  function resolveMode(mode) {
25
25
  if (mode === void 0 || mode === "text") return "text";
26
26
  if (mode === "html" || mode === "markdown" || mode === "yaml") return mode;
27
- throw new (0, _chunkZTHGDNKAcjs.PolytypoError)(
27
+ throw new (0, _chunkHQI62OQ3cjs.PolytypoError)(
28
28
  "POLYTYPO_INVALID_MODE",
29
29
  `Unknown mode "${String(mode)}". Expected "text", "html", "markdown" or "yaml".`
30
30
  );
@@ -32,18 +32,18 @@ function resolveMode(mode) {
32
32
  function runPipeline(input, options) {
33
33
  const given = _nullishCoalesce(options, () => ( {}));
34
34
  const mode = resolveMode(given.mode);
35
- if (mode === "text") return _chunkDKIKUSWJcjs.runTextPipeline.call(void 0, input, given);
36
- if (mode === "html") return _chunk3LFCYGJ2cjs.runHtmlPipeline.call(void 0, input, given);
37
- if (mode === "yaml") return _chunkSUDJFZXBcjs.runYamlPipeline.call(void 0, input, given);
38
- return _chunkSFAHXSBPcjs.runMarkdownPipeline.call(void 0, input, given);
35
+ if (mode === "text") return _chunkJBLZF6GTcjs.runTextPipeline.call(void 0, input, given);
36
+ if (mode === "html") return _chunkAQEQJFY7cjs.runHtmlPipeline.call(void 0, input, given);
37
+ if (mode === "yaml") return _chunkC6AMXPGNcjs.runYamlPipeline.call(void 0, input, given);
38
+ return _chunkKD55CPW7cjs.runMarkdownPipeline.call(void 0, input, given);
39
39
  }
40
40
  function runAnalyze(input, options) {
41
41
  const given = _nullishCoalesce(options, () => ( {}));
42
42
  const mode = resolveMode(given.mode);
43
- if (mode === "text") return _chunkDKIKUSWJcjs.analyzeTextPipeline.call(void 0, input, given);
44
- if (mode === "html") return _chunk3LFCYGJ2cjs.analyzeHtmlPipeline.call(void 0, input, given);
45
- if (mode === "yaml") return _chunkSUDJFZXBcjs.analyzeYamlPipeline.call(void 0, input, given);
46
- return _chunkSFAHXSBPcjs.analyzeMarkdownPipeline.call(void 0, input, given);
43
+ if (mode === "text") return _chunkJBLZF6GTcjs.analyzeTextPipeline.call(void 0, input, given);
44
+ if (mode === "html") return _chunkAQEQJFY7cjs.analyzeHtmlPipeline.call(void 0, input, given);
45
+ if (mode === "yaml") return _chunkC6AMXPGNcjs.analyzeYamlPipeline.call(void 0, input, given);
46
+ return _chunkKD55CPW7cjs.analyzeMarkdownPipeline.call(void 0, input, given);
47
47
  }
48
48
 
49
49
  // src/index.ts
@@ -57,5 +57,5 @@ function analyze(input, options) {
57
57
 
58
58
 
59
59
 
60
- exports.PolytypoError = _chunkZTHGDNKAcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
60
+ exports.PolytypoError = _chunkHQI62OQ3cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
61
61
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.cjs';
2
- export { D as Dialect, E as Edit, L as LocaleData, a as LocaleSource, M as Mode, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.cjs';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.cjs';
2
+ export { D as Dialect, E as Edit, L as LocaleData, a as LocaleSource, M as Mode, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.cjs';
3
3
 
4
4
  declare function transform(input: string, options: Options): string;
5
5
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.js';
2
- export { D as Dialect, E as Edit, L as LocaleData, a as LocaleSource, M as Mode, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.js';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.js';
2
+ export { D as Dialect, E as Edit, L as LocaleData, a as LocaleSource, M as Mode, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.js';
3
3
 
4
4
  declare function transform(input: string, options: Options): string;
5
5
  /**
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  analyzeTextPipeline,
3
3
  runTextPipeline
4
- } from "./chunk-7ZKTX4XN.js";
4
+ } from "./chunk-IVMLFKWH.js";
5
5
  import {
6
6
  analyzeHtmlPipeline,
7
7
  runHtmlPipeline
8
- } from "./chunk-PJMNCAM6.js";
8
+ } from "./chunk-ATPMHQ6B.js";
9
9
  import {
10
10
  analyzeMarkdownPipeline,
11
11
  runMarkdownPipeline
12
- } from "./chunk-3YFHGJLX.js";
13
- import "./chunk-3B7OFB3Z.js";
12
+ } from "./chunk-VIOCUESF.js";
13
+ import "./chunk-Q3W7ZJXS.js";
14
14
  import {
15
15
  analyzeYamlPipeline,
16
16
  runYamlPipeline
17
- } from "./chunk-HOVHQ7FV.js";
18
- import "./chunk-4C6Q4VWE.js";
17
+ } from "./chunk-4PNVRVFN.js";
18
+ import "./chunk-6OAQCO3S.js";
19
19
  import {
20
20
  PolytypoError
21
- } from "./chunk-CBZVCWYE.js";
21
+ } from "./chunk-P2EMJLVF.js";
22
22
 
23
23
  // src/engine/pipeline.ts
24
24
  function resolveMode(mode) {
package/dist/markdown.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkSFAHXSBPcjs = require('./chunk-SFAHXSBP.cjs');
5
- require('./chunk-KFRNMKKO.cjs');
6
- require('./chunk-GQKLJ73E.cjs');
4
+ var _chunkKD55CPW7cjs = require('./chunk-KD55CPW7.cjs');
5
+ require('./chunk-D4KBXHBS.cjs');
6
+ require('./chunk-DHBLFEQ4.cjs');
7
7
 
8
8
 
9
- var _chunkMTB7GEW4cjs = require('./chunk-MTB7GEW4.cjs');
9
+ var _chunk5BMZQ3LMcjs = require('./chunk-5BMZQ3LM.cjs');
10
10
 
11
11
 
12
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
12
+ var _chunkHQI62OQ3cjs = require('./chunk-HQI62OQ3.cjs');
13
13
 
14
14
  // src/index.markdown.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
- return _chunkSFAHXSBPcjs.runMarkdownPipeline.call(void 0, input, given);
17
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
+ return _chunkKD55CPW7cjs.runMarkdownPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
- return _chunkSFAHXSBPcjs.analyzeMarkdownPipeline.call(void 0, input, given);
22
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
+ return _chunkKD55CPW7cjs.analyzeMarkdownPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkZTHGDNKAcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkHQI62OQ3cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
30
  //# sourceMappingURL=markdown.cjs.map
@@ -1,5 +1,5 @@
1
- import { O as Options, D as Dialect, C as Change } from './errors-DrNAlWLt.cjs';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.cjs';
1
+ import { O as Options, D as Dialect, C as Change } from './errors-CQz5lyjD.cjs';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.cjs';
3
3
 
4
4
  /**
5
5
  * `polytypo/markdown` — Markdown-only entry point. Its module graph includes the Micromark/MDX
@@ -1,5 +1,5 @@
1
- import { O as Options, D as Dialect, C as Change } from './errors-DrNAlWLt.js';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.js';
1
+ import { O as Options, D as Dialect, C as Change } from './errors-CQz5lyjD.js';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.js';
3
3
 
4
4
  /**
5
5
  * `polytypo/markdown` — Markdown-only entry point. Its module graph includes the Micromark/MDX
package/dist/markdown.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  analyzeMarkdownPipeline,
3
3
  runMarkdownPipeline
4
- } from "./chunk-3YFHGJLX.js";
5
- import "./chunk-3B7OFB3Z.js";
6
- import "./chunk-4C6Q4VWE.js";
4
+ } from "./chunk-VIOCUESF.js";
5
+ import "./chunk-Q3W7ZJXS.js";
6
+ import "./chunk-6OAQCO3S.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-67JPAOD6.js";
9
+ } from "./chunk-MKX74SBT.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-CBZVCWYE.js";
12
+ } from "./chunk-P2EMJLVF.js";
13
13
 
14
14
  // src/index.markdown.ts
15
15
  function transform(input, options) {
package/dist/text.cjs CHANGED
@@ -1,28 +1,28 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkDKIKUSWJcjs = require('./chunk-DKIKUSWJ.cjs');
4
+ var _chunkJBLZF6GTcjs = require('./chunk-JBLZF6GT.cjs');
5
5
 
6
6
 
7
- var _chunkMTB7GEW4cjs = require('./chunk-MTB7GEW4.cjs');
7
+ var _chunk5BMZQ3LMcjs = require('./chunk-5BMZQ3LM.cjs');
8
8
 
9
9
 
10
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
10
+ var _chunkHQI62OQ3cjs = require('./chunk-HQI62OQ3.cjs');
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
14
14
  const given = _nullishCoalesce(options, () => ( {}));
15
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
- return _chunkDKIKUSWJcjs.runTextPipeline.call(void 0, input, given);
15
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
+ return _chunkJBLZF6GTcjs.runTextPipeline.call(void 0, input, given);
17
17
  }
18
18
  function analyze(input, options) {
19
19
  const given = _nullishCoalesce(options, () => ( {}));
20
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
- return _chunkDKIKUSWJcjs.analyzeTextPipeline.call(void 0, input, given);
20
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
+ return _chunkJBLZF6GTcjs.analyzeTextPipeline.call(void 0, input, given);
22
22
  }
23
23
 
24
24
 
25
25
 
26
26
 
27
- exports.PolytypoError = _chunkZTHGDNKAcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
27
+ exports.PolytypoError = _chunkHQI62OQ3cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
28
  //# sourceMappingURL=text.cjs.map
package/dist/text.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.cjs';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.cjs';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.cjs';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.cjs';
3
3
 
4
4
  /**
5
5
  * `polytypo/text` — text-only entry point. Its module graph excludes `parse5` and the
package/dist/text.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.js';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.js';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.js';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, e as ProtectRange, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.js';
3
3
 
4
4
  /**
5
5
  * `polytypo/text` — text-only entry point. Its module graph excludes `parse5` and the
package/dist/text.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  analyzeTextPipeline,
3
3
  runTextPipeline
4
- } from "./chunk-7ZKTX4XN.js";
4
+ } from "./chunk-IVMLFKWH.js";
5
5
  import {
6
6
  assertFixedMode
7
- } from "./chunk-67JPAOD6.js";
7
+ } from "./chunk-MKX74SBT.js";
8
8
  import {
9
9
  PolytypoError
10
- } from "./chunk-CBZVCWYE.js";
10
+ } from "./chunk-P2EMJLVF.js";
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
package/dist/yaml.cjs CHANGED
@@ -1,29 +1,29 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkSUDJFZXBcjs = require('./chunk-SUDJFZXB.cjs');
5
- require('./chunk-GQKLJ73E.cjs');
4
+ var _chunkC6AMXPGNcjs = require('./chunk-C6AMXPGN.cjs');
5
+ require('./chunk-DHBLFEQ4.cjs');
6
6
 
7
7
 
8
- var _chunkMTB7GEW4cjs = require('./chunk-MTB7GEW4.cjs');
8
+ var _chunk5BMZQ3LMcjs = require('./chunk-5BMZQ3LM.cjs');
9
9
 
10
10
 
11
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
11
+ var _chunkHQI62OQ3cjs = require('./chunk-HQI62OQ3.cjs');
12
12
 
13
13
  // src/index.yaml.ts
14
14
  function transform(input, options) {
15
15
  const given = _nullishCoalesce(options, () => ( {}));
16
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
- return _chunkSUDJFZXBcjs.runYamlPipeline.call(void 0, input, given);
16
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
+ return _chunkC6AMXPGNcjs.runYamlPipeline.call(void 0, input, given);
18
18
  }
19
19
  function analyze(input, options) {
20
20
  const given = _nullishCoalesce(options, () => ( {}));
21
- _chunkMTB7GEW4cjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
- return _chunkSUDJFZXBcjs.analyzeYamlPipeline.call(void 0, input, given);
21
+ _chunk5BMZQ3LMcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
+ return _chunkC6AMXPGNcjs.analyzeYamlPipeline.call(void 0, input, given);
23
23
  }
24
24
 
25
25
 
26
26
 
27
27
 
28
- exports.PolytypoError = _chunkZTHGDNKAcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
+ exports.PolytypoError = _chunkHQI62OQ3cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
29
  //# sourceMappingURL=yaml.cjs.map
package/dist/yaml.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.cjs';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.cjs';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.cjs';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.cjs';
3
3
 
4
4
  /**
5
5
  * `polytypo/yaml` — YAML-only entry point, and the lightest of the four: `yaml` mode uses no
package/dist/yaml.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-DrNAlWLt.js';
2
- export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DrNAlWLt.js';
1
+ import { O as Options, C as Change } from './errors-CQz5lyjD.js';
2
+ export { L as LocaleData, a as LocaleSource, N as NarrowNbsp, P as PolytypoError, b as PolytypoErrorCode, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CQz5lyjD.js';
3
3
 
4
4
  /**
5
5
  * `polytypo/yaml` — YAML-only entry point, and the lightest of the four: `yaml` mode uses no
package/dist/yaml.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  analyzeYamlPipeline,
3
3
  runYamlPipeline
4
- } from "./chunk-HOVHQ7FV.js";
5
- import "./chunk-4C6Q4VWE.js";
4
+ } from "./chunk-4PNVRVFN.js";
5
+ import "./chunk-6OAQCO3S.js";
6
6
  import {
7
7
  assertFixedMode
8
- } from "./chunk-67JPAOD6.js";
8
+ } from "./chunk-MKX74SBT.js";
9
9
  import {
10
10
  PolytypoError
11
- } from "./chunk-CBZVCWYE.js";
11
+ } from "./chunk-P2EMJLVF.js";
12
12
 
13
13
  // src/index.yaml.ts
14
14
  function transform(input, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytypo",
3
- "version": "1.17.4",
3
+ "version": "1.18.0",
4
4
  "description": "Normalize typography across languages: locale-correct quotes, dashes, ellipses and no-break spaces.",
5
5
  "keywords": [
6
6
  "typography",
@@ -1,34 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkKFRNMKKOcjs = require('./chunk-KFRNMKKO.cjs');
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
- var _chunkZTHGDNKAcjs = require('./chunk-ZTHGDNKA.cjs');
12
-
13
- // src/engine/html-pipeline.ts
14
- function runHtmlPipeline(input, options) {
15
- const narrowTarget = _chunkZTHGDNKAcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
16
- const planned = _chunkZTHGDNKAcjs.planRules.call(void 0, options.rules);
17
- const locale = _chunkZTHGDNKAcjs.getLocaleData.call(void 0, options.locale);
18
- _chunkZTHGDNKAcjs.assertNoProtect.call(void 0, options.protect, "html");
19
- const spans = _chunkKFRNMKKOcjs.htmlSpans.call(void 0, input);
20
- return _chunkZTHGDNKAcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
21
- }
22
- function analyzeHtmlPipeline(input, options) {
23
- const narrowTarget = _chunkZTHGDNKAcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
24
- const planned = _chunkZTHGDNKAcjs.planRules.call(void 0, options.rules);
25
- const locale = _chunkZTHGDNKAcjs.getLocaleData.call(void 0, options.locale);
26
- _chunkZTHGDNKAcjs.assertNoProtect.call(void 0, options.protect, "html");
27
- return _chunkZTHGDNKAcjs.analyzeOverSpans.call(void 0, input, _chunkKFRNMKKOcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
28
- }
29
-
30
-
31
-
32
-
33
- exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
34
- //# sourceMappingURL=chunk-3LFCYGJ2.cjs.map