polytypo 1.3.0 → 1.4.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 (61) hide show
  1. package/dist/chunk-25RYOB5K.js +5828 -0
  2. package/dist/chunk-25RYOB5K.js.map +1 -0
  3. package/dist/{chunk-W3XMTX7Q.js → chunk-47QVJOT4.js} +2 -2
  4. package/dist/{chunk-M7YWQ47K.cjs → chunk-6PQMYL2O.cjs} +3 -3
  5. package/dist/{chunk-M7YWQ47K.cjs.map → chunk-6PQMYL2O.cjs.map} +1 -1
  6. package/dist/{chunk-NT2RADO3.js → chunk-BGTMX6VS.js} +2 -2
  7. package/dist/{chunk-B3I7VL5E.js → chunk-D3QQYGKW.js} +2 -2
  8. package/dist/{chunk-7S5PZ7T5.cjs → chunk-DCC5OQET.cjs} +16 -16
  9. package/dist/{chunk-7S5PZ7T5.cjs.map → chunk-DCC5OQET.cjs.map} +1 -1
  10. package/dist/{chunk-KRY73ZPE.cjs → chunk-FZ6YRCGR.cjs} +17 -17
  11. package/dist/{chunk-KRY73ZPE.cjs.map → chunk-FZ6YRCGR.cjs.map} +1 -1
  12. package/dist/{chunk-72GQS2N7.cjs → chunk-GJJNGBRH.cjs} +4 -4
  13. package/dist/{chunk-72GQS2N7.cjs.map → chunk-GJJNGBRH.cjs.map} +1 -1
  14. package/dist/{chunk-DAUTLRFG.js → chunk-GPOCFMTF.js} +4 -4
  15. package/dist/{chunk-PNX4XW5I.js → chunk-HTWCCPWI.js} +4 -4
  16. package/dist/chunk-JYHDIVON.cjs +33 -0
  17. package/dist/{chunk-QLV5EWGF.cjs.map → chunk-JYHDIVON.cjs.map} +1 -1
  18. package/dist/{chunk-A3VCFDVL.cjs → chunk-MOXBMEZB.cjs} +13 -13
  19. package/dist/{chunk-A3VCFDVL.cjs.map → chunk-MOXBMEZB.cjs.map} +1 -1
  20. package/dist/{chunk-PLWW5KPC.js → chunk-NLMP3JVF.js} +2 -2
  21. package/dist/chunk-PJ6HB77G.cjs +5828 -0
  22. package/dist/chunk-PJ6HB77G.cjs.map +1 -0
  23. package/dist/chunk-QLIPSKVZ.cjs +31 -0
  24. package/dist/{chunk-442V6TKI.cjs.map → chunk-QLIPSKVZ.cjs.map} +1 -1
  25. package/dist/{chunk-7ZJ7YYTQ.js → chunk-UL7KCRXN.js} +3 -3
  26. package/dist/{errors-CGFOVO3h.d.cts → errors-DMxY1LlK.d.cts} +20 -0
  27. package/dist/{errors-CGFOVO3h.d.ts → errors-DMxY1LlK.d.ts} +20 -0
  28. package/dist/html.cjs +10 -10
  29. package/dist/html.d.cts +2 -2
  30. package/dist/html.d.ts +2 -2
  31. package/dist/html.js +5 -5
  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-442V6TKI.cjs +0 -31
  50. package/dist/chunk-GLQQOA6T.js +0 -5778
  51. package/dist/chunk-GLQQOA6T.js.map +0 -1
  52. package/dist/chunk-QLV5EWGF.cjs +0 -33
  53. package/dist/chunk-YX6QTWOV.cjs +0 -5778
  54. package/dist/chunk-YX6QTWOV.cjs.map +0 -1
  55. /package/dist/{chunk-W3XMTX7Q.js.map → chunk-47QVJOT4.js.map} +0 -0
  56. /package/dist/{chunk-NT2RADO3.js.map → chunk-BGTMX6VS.js.map} +0 -0
  57. /package/dist/{chunk-B3I7VL5E.js.map → chunk-D3QQYGKW.js.map} +0 -0
  58. /package/dist/{chunk-DAUTLRFG.js.map → chunk-GPOCFMTF.js.map} +0 -0
  59. /package/dist/{chunk-PNX4XW5I.js.map → chunk-HTWCCPWI.js.map} +0 -0
  60. /package/dist/{chunk-PLWW5KPC.js.map → chunk-NLMP3JVF.js.map} +0 -0
  61. /package/dist/{chunk-7ZJ7YYTQ.js.map → chunk-UL7KCRXN.js.map} +0 -0
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.cjs');
10
+
11
+ // src/engine/text-pipeline.ts
12
+ function runTextPipeline(input, options) {
13
+ const narrowTarget = _chunkPJ6HB77Gcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
14
+ const planned = _chunkPJ6HB77Gcjs.planRules.call(void 0, options.rules);
15
+ const locale = _chunkPJ6HB77Gcjs.getLocaleData.call(void 0, options.locale);
16
+ return _chunkPJ6HB77Gcjs.fromCodePoints.call(void 0, _chunkPJ6HB77Gcjs.runRules.call(void 0, _chunkPJ6HB77Gcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
17
+ }
18
+ function analyzeTextPipeline(input, options) {
19
+ const narrowTarget = _chunkPJ6HB77Gcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
20
+ const planned = _chunkPJ6HB77Gcjs.planRules.call(void 0, options.rules);
21
+ const locale = _chunkPJ6HB77Gcjs.getLocaleData.call(void 0, options.locale);
22
+ const cp = _chunkPJ6HB77Gcjs.toCodePoints.call(void 0, input);
23
+ const origin = cp.map((_value, index) => index);
24
+ return _chunkPJ6HB77Gcjs.runRulesRecording.call(void 0, cp, planned, locale, "text", narrowTarget, origin, cp.length);
25
+ }
26
+
27
+
28
+
29
+
30
+ exports.runTextPipeline = runTextPipeline; exports.analyzeTextPipeline = analyzeTextPipeline;
31
+ //# sourceMappingURL=chunk-QLIPSKVZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-442V6TKI.cjs","../src/engine/text-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACQO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,8CAAA,wCAAe,4CAAS,KAAkB,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAC,CAAA;AAC5F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,GAAA,EAAK,4CAAA,KAAkB,CAAA;AAC7B,EAAA,MAAM,OAAA,EAAS,EAAA,CAAG,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,EAAA,GAAU,KAAK,CAAA;AAC9C,EAAA,OAAO,iDAAA,EAAkB,EAAI,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,EAAA,CAAG,MAAM,CAAA;AACvF;ADRA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-442V6TKI.cjs","sourcesContent":[null,"import type { Options } from \"../types.js\";\nimport { fromCodePoints, toCodePoints } from \"./codepoints.js\";\nimport type { Change } from \"./origin.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules, runRules, runRulesRecording } from \"./rule-runner.js\";\n\n/**\n * `text` mode only. Deliberately imports nothing from `../modes/html.js` or\n * `../modes/markdown.js` (or their parser dependencies) — this is what makes `polytypo/text`'s\n * module graph exclude `parse5` and the Micromark stack (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md\n * 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` — mirrors the pre-Stage-5 aggregate\n * `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error when both\n * are present, since that is public, tested behaviour, not an implementation detail this\n * refactor was authorised to change).\n */\nexport function runTextPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return fromCodePoints(runRules(toCodePoints(input), planned, locale, \"text\", narrowTarget));\n}\n\n/** analyze.md §1: the same pipeline as `runTextPipeline`, reporting instead of applying. */\nexport function analyzeTextPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const cp = toCodePoints(input);\n const origin = cp.map((_value, index) => index);\n return runRulesRecording(cp, planned, locale, \"text\", narrowTarget, origin, cp.length);\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-QLIPSKVZ.cjs","../src/engine/text-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACQO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,8CAAA,wCAAe,4CAAS,KAAkB,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAC,CAAA;AAC5F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,GAAA,EAAK,4CAAA,KAAkB,CAAA;AAC7B,EAAA,MAAM,OAAA,EAAS,EAAA,CAAG,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,EAAA,GAAU,KAAK,CAAA;AAC9C,EAAA,OAAO,iDAAA,EAAkB,EAAI,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,EAAA,CAAG,MAAM,CAAA;AACvF;ADRA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-QLIPSKVZ.cjs","sourcesContent":[null,"import type { Options } from \"../types.js\";\nimport { fromCodePoints, toCodePoints } from \"./codepoints.js\";\nimport type { Change } from \"./origin.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules, runRules, runRulesRecording } from \"./rule-runner.js\";\n\n/**\n * `text` mode only. Deliberately imports nothing from `../modes/html.js` or\n * `../modes/markdown.js` (or their parser dependencies) — this is what makes `polytypo/text`'s\n * module graph exclude `parse5` and the Micromark stack (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md\n * 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` — mirrors the pre-Stage-5 aggregate\n * `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error when both\n * are present, since that is public, tested behaviour, not an implementation detail this\n * refactor was authorised to change).\n */\nexport function runTextPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return fromCodePoints(runRules(toCodePoints(input), planned, locale, \"text\", narrowTarget));\n}\n\n/** analyze.md §1: the same pipeline as `runTextPipeline`, reporting instead of applying. */\nexport function analyzeTextPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const cp = toCodePoints(input);\n const origin = cp.map((_value, index) => index);\n return runRulesRecording(cp, planned, locale, \"text\", narrowTarget, origin, cp.length);\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  analyzeOverSpans,
3
3
  runOverSpans
4
- } from "./chunk-PLWW5KPC.js";
4
+ } from "./chunk-NLMP3JVF.js";
5
5
  import {
6
6
  PolytypoError,
7
7
  getLocaleData,
8
8
  planRules,
9
9
  resolveNarrowTarget
10
- } from "./chunk-GLQQOA6T.js";
10
+ } from "./chunk-25RYOB5K.js";
11
11
 
12
12
  // src/modes/yaml.ts
13
13
  var TAB = 9;
@@ -261,4 +261,4 @@ export {
261
261
  runYamlPipeline,
262
262
  analyzeYamlPipeline
263
263
  };
264
- //# sourceMappingURL=chunk-7ZJ7YYTQ.js.map
264
+ //# sourceMappingURL=chunk-UL7KCRXN.js.map
@@ -42,6 +42,20 @@ interface QuotePair {
42
42
  readonly close: string;
43
43
  readonly innerSpace: "none" | "nbsp" | "narrow-nbsp";
44
44
  }
45
+ /**
46
+ * The word fragments that attach across an elision or possessive apostrophe, read only when the
47
+ * mark is flush against modes.md §3.2's inline boundary marker (quotes.md §3.2, spec 1.4.0).
48
+ * Both lists are POSITIONAL, not attachment claims: `before` is matched against the maximal
49
+ * LETTER run ending before the mark (French `l'`, `d'`, `qu'`, `jusqu'`), `after` against the run
50
+ * beginning after it (English `x's`, Dutch `'s morgens`). The word a fragment attaches to may lie
51
+ * on the far side of the boundary and so be absent from the rule's input, which is the whole
52
+ * reason this veto exists. Entries are lowercase, LETTER-only, and cited in the locale's
53
+ * `sources`.
54
+ */
55
+ interface ElisionClitics {
56
+ readonly before: readonly string[];
57
+ readonly after: readonly string[];
58
+ }
45
59
  /**
46
60
  * A closed-set elision idiom — quotes.md 3.2's listed elision veto. Matching `elided` alone
47
61
  * cannot distinguish an idiom (`rock 'n' roll`) from an arbitrary quoted word
@@ -69,6 +83,12 @@ interface LocaleData {
69
83
  readonly secondary: QuotePair;
70
84
  /** May be empty. Empty means no verified idiom of this shape for this locale. */
71
85
  readonly elisionIdioms: readonly ElisionIdiom[];
86
+ /**
87
+ * `quotes.elisionClitics` — spec/rules/quotes.md §3.2's span-boundary elision veto (spec
88
+ * 1.4.0). Both lists may be empty, and empty is a total no-op: a locale with no citable
89
+ * closed set of attaching fragments is classified exactly as spec 1.3.1 classified it.
90
+ */
91
+ readonly elisionClitics: ElisionClitics;
72
92
  };
73
93
  readonly dash: {
74
94
  readonly parenthetical: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
@@ -42,6 +42,20 @@ interface QuotePair {
42
42
  readonly close: string;
43
43
  readonly innerSpace: "none" | "nbsp" | "narrow-nbsp";
44
44
  }
45
+ /**
46
+ * The word fragments that attach across an elision or possessive apostrophe, read only when the
47
+ * mark is flush against modes.md §3.2's inline boundary marker (quotes.md §3.2, spec 1.4.0).
48
+ * Both lists are POSITIONAL, not attachment claims: `before` is matched against the maximal
49
+ * LETTER run ending before the mark (French `l'`, `d'`, `qu'`, `jusqu'`), `after` against the run
50
+ * beginning after it (English `x's`, Dutch `'s morgens`). The word a fragment attaches to may lie
51
+ * on the far side of the boundary and so be absent from the rule's input, which is the whole
52
+ * reason this veto exists. Entries are lowercase, LETTER-only, and cited in the locale's
53
+ * `sources`.
54
+ */
55
+ interface ElisionClitics {
56
+ readonly before: readonly string[];
57
+ readonly after: readonly string[];
58
+ }
45
59
  /**
46
60
  * A closed-set elision idiom — quotes.md 3.2's listed elision veto. Matching `elided` alone
47
61
  * cannot distinguish an idiom (`rock 'n' roll`) from an arbitrary quoted word
@@ -69,6 +83,12 @@ interface LocaleData {
69
83
  readonly secondary: QuotePair;
70
84
  /** May be empty. Empty means no verified idiom of this shape for this locale. */
71
85
  readonly elisionIdioms: readonly ElisionIdiom[];
86
+ /**
87
+ * `quotes.elisionClitics` — spec/rules/quotes.md §3.2's span-boundary elision veto (spec
88
+ * 1.4.0). Both lists may be empty, and empty is a total no-op: a locale with no citable
89
+ * closed set of attaching fragments is classified exactly as spec 1.3.1 classified it.
90
+ */
91
+ readonly elisionClitics: ElisionClitics;
72
92
  };
73
93
  readonly dash: {
74
94
  readonly parenthetical: "em-tight" | "em-spaced" | "en-tight" | "en-spaced" | "none";
package/dist/html.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 _chunkQLV5EWGFcjs = require('./chunk-QLV5EWGF.cjs');
5
- require('./chunk-72GQS2N7.cjs');
6
- require('./chunk-7S5PZ7T5.cjs');
4
+ var _chunkJYHDIVONcjs = require('./chunk-JYHDIVON.cjs');
5
+ require('./chunk-GJJNGBRH.cjs');
6
+ require('./chunk-DCC5OQET.cjs');
7
7
 
8
8
 
9
- var _chunkM7YWQ47Kcjs = require('./chunk-M7YWQ47K.cjs');
9
+ var _chunk6PQMYL2Ocjs = require('./chunk-6PQMYL2O.cjs');
10
10
 
11
11
 
12
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
12
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.cjs');
13
13
 
14
14
  // src/index.html.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
18
- return _chunkQLV5EWGFcjs.runHtmlPipeline.call(void 0, input, given);
17
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
18
+ return _chunkJYHDIVONcjs.runHtmlPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
23
- return _chunkQLV5EWGFcjs.analyzeHtmlPipeline.call(void 0, input, given);
22
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
23
+ return _chunkJYHDIVONcjs.analyzeHtmlPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkYX6QTWOVcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkPJ6HB77Gcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
30
  //# sourceMappingURL=html.cjs.map
package/dist/html.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as Options, C as Change } from './errors-CGFOVO3h.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-CGFOVO3h.cjs';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-CGFOVO3h.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-CGFOVO3h.js';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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,15 +1,15 @@
1
1
  import {
2
2
  analyzeHtmlPipeline,
3
3
  runHtmlPipeline
4
- } from "./chunk-DAUTLRFG.js";
5
- import "./chunk-NT2RADO3.js";
6
- import "./chunk-PLWW5KPC.js";
4
+ } from "./chunk-GPOCFMTF.js";
5
+ import "./chunk-BGTMX6VS.js";
6
+ import "./chunk-NLMP3JVF.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-B3I7VL5E.js";
9
+ } from "./chunk-D3QQYGKW.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-GLQQOA6T.js";
12
+ } from "./chunk-25RYOB5K.js";
13
13
 
14
14
  // src/index.html.ts
15
15
  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 _chunk442V6TKIcjs = require('./chunk-442V6TKI.cjs');
4
+ var _chunkQLIPSKVZcjs = require('./chunk-QLIPSKVZ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkQLV5EWGFcjs = require('./chunk-QLV5EWGF.cjs');
8
+ var _chunkJYHDIVONcjs = require('./chunk-JYHDIVON.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkKRY73ZPEcjs = require('./chunk-KRY73ZPE.cjs');
13
- require('./chunk-72GQS2N7.cjs');
12
+ var _chunkFZ6YRCGRcjs = require('./chunk-FZ6YRCGR.cjs');
13
+ require('./chunk-GJJNGBRH.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkA3VCFDVLcjs = require('./chunk-A3VCFDVL.cjs');
18
- require('./chunk-7S5PZ7T5.cjs');
17
+ var _chunkMOXBMEZBcjs = require('./chunk-MOXBMEZB.cjs');
18
+ require('./chunk-DCC5OQET.cjs');
19
19
 
20
20
 
21
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
21
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.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, _chunkYX6QTWOVcjs.PolytypoError)(
27
+ throw new (0, _chunkPJ6HB77Gcjs.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 _chunk442V6TKIcjs.runTextPipeline.call(void 0, input, given);
36
- if (mode === "html") return _chunkQLV5EWGFcjs.runHtmlPipeline.call(void 0, input, given);
37
- if (mode === "yaml") return _chunkA3VCFDVLcjs.runYamlPipeline.call(void 0, input, given);
38
- return _chunkKRY73ZPEcjs.runMarkdownPipeline.call(void 0, input, given);
35
+ if (mode === "text") return _chunkQLIPSKVZcjs.runTextPipeline.call(void 0, input, given);
36
+ if (mode === "html") return _chunkJYHDIVONcjs.runHtmlPipeline.call(void 0, input, given);
37
+ if (mode === "yaml") return _chunkMOXBMEZBcjs.runYamlPipeline.call(void 0, input, given);
38
+ return _chunkFZ6YRCGRcjs.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 _chunk442V6TKIcjs.analyzeTextPipeline.call(void 0, input, given);
44
- if (mode === "html") return _chunkQLV5EWGFcjs.analyzeHtmlPipeline.call(void 0, input, given);
45
- if (mode === "yaml") return _chunkA3VCFDVLcjs.analyzeYamlPipeline.call(void 0, input, given);
46
- return _chunkKRY73ZPEcjs.analyzeMarkdownPipeline.call(void 0, input, given);
43
+ if (mode === "text") return _chunkQLIPSKVZcjs.analyzeTextPipeline.call(void 0, input, given);
44
+ if (mode === "html") return _chunkJYHDIVONcjs.analyzeHtmlPipeline.call(void 0, input, given);
45
+ if (mode === "yaml") return _chunkMOXBMEZBcjs.analyzeYamlPipeline.call(void 0, input, given);
46
+ return _chunkFZ6YRCGRcjs.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 = _chunkYX6QTWOVcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
60
+ exports.PolytypoError = _chunkPJ6HB77Gcjs.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-CGFOVO3h.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, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CGFOVO3h.cjs';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DMxY1LlK.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-CGFOVO3h.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, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-CGFOVO3h.js';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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, Q as QuotePair, R as Rule, c as RuleContext, d as RuleId } from './errors-DMxY1LlK.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-W3XMTX7Q.js";
4
+ } from "./chunk-47QVJOT4.js";
5
5
  import {
6
6
  analyzeHtmlPipeline,
7
7
  runHtmlPipeline
8
- } from "./chunk-DAUTLRFG.js";
8
+ } from "./chunk-GPOCFMTF.js";
9
9
  import {
10
10
  analyzeMarkdownPipeline,
11
11
  runMarkdownPipeline
12
- } from "./chunk-PNX4XW5I.js";
13
- import "./chunk-NT2RADO3.js";
12
+ } from "./chunk-HTWCCPWI.js";
13
+ import "./chunk-BGTMX6VS.js";
14
14
  import {
15
15
  analyzeYamlPipeline,
16
16
  runYamlPipeline
17
- } from "./chunk-7ZJ7YYTQ.js";
18
- import "./chunk-PLWW5KPC.js";
17
+ } from "./chunk-UL7KCRXN.js";
18
+ import "./chunk-NLMP3JVF.js";
19
19
  import {
20
20
  PolytypoError
21
- } from "./chunk-GLQQOA6T.js";
21
+ } from "./chunk-25RYOB5K.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 _chunkKRY73ZPEcjs = require('./chunk-KRY73ZPE.cjs');
5
- require('./chunk-72GQS2N7.cjs');
6
- require('./chunk-7S5PZ7T5.cjs');
4
+ var _chunkFZ6YRCGRcjs = require('./chunk-FZ6YRCGR.cjs');
5
+ require('./chunk-GJJNGBRH.cjs');
6
+ require('./chunk-DCC5OQET.cjs');
7
7
 
8
8
 
9
- var _chunkM7YWQ47Kcjs = require('./chunk-M7YWQ47K.cjs');
9
+ var _chunk6PQMYL2Ocjs = require('./chunk-6PQMYL2O.cjs');
10
10
 
11
11
 
12
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
12
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.cjs');
13
13
 
14
14
  // src/index.markdown.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
- return _chunkKRY73ZPEcjs.runMarkdownPipeline.call(void 0, input, given);
17
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
+ return _chunkFZ6YRCGRcjs.runMarkdownPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
- return _chunkKRY73ZPEcjs.analyzeMarkdownPipeline.call(void 0, input, given);
22
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
+ return _chunkFZ6YRCGRcjs.analyzeMarkdownPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkYX6QTWOVcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkPJ6HB77Gcjs.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-CGFOVO3h.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-CGFOVO3h.cjs';
1
+ import { O as Options, D as Dialect, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-CGFOVO3h.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-CGFOVO3h.js';
1
+ import { O as Options, D as Dialect, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-PNX4XW5I.js";
5
- import "./chunk-NT2RADO3.js";
6
- import "./chunk-PLWW5KPC.js";
4
+ } from "./chunk-HTWCCPWI.js";
5
+ import "./chunk-BGTMX6VS.js";
6
+ import "./chunk-NLMP3JVF.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-B3I7VL5E.js";
9
+ } from "./chunk-D3QQYGKW.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-GLQQOA6T.js";
12
+ } from "./chunk-25RYOB5K.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 _chunk442V6TKIcjs = require('./chunk-442V6TKI.cjs');
4
+ var _chunkQLIPSKVZcjs = require('./chunk-QLIPSKVZ.cjs');
5
5
 
6
6
 
7
- var _chunkM7YWQ47Kcjs = require('./chunk-M7YWQ47K.cjs');
7
+ var _chunk6PQMYL2Ocjs = require('./chunk-6PQMYL2O.cjs');
8
8
 
9
9
 
10
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
10
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.cjs');
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
14
14
  const given = _nullishCoalesce(options, () => ( {}));
15
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
- return _chunk442V6TKIcjs.runTextPipeline.call(void 0, input, given);
15
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
+ return _chunkQLIPSKVZcjs.runTextPipeline.call(void 0, input, given);
17
17
  }
18
18
  function analyze(input, options) {
19
19
  const given = _nullishCoalesce(options, () => ( {}));
20
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
- return _chunk442V6TKIcjs.analyzeTextPipeline.call(void 0, input, given);
20
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
+ return _chunkQLIPSKVZcjs.analyzeTextPipeline.call(void 0, input, given);
22
22
  }
23
23
 
24
24
 
25
25
 
26
26
 
27
- exports.PolytypoError = _chunkYX6QTWOVcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
27
+ exports.PolytypoError = _chunkPJ6HB77Gcjs.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-CGFOVO3h.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-CGFOVO3h.cjs';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-CGFOVO3h.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-CGFOVO3h.js';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-W3XMTX7Q.js";
4
+ } from "./chunk-47QVJOT4.js";
5
5
  import {
6
6
  assertFixedMode
7
- } from "./chunk-B3I7VL5E.js";
7
+ } from "./chunk-D3QQYGKW.js";
8
8
  import {
9
9
  PolytypoError
10
- } from "./chunk-GLQQOA6T.js";
10
+ } from "./chunk-25RYOB5K.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 _chunkA3VCFDVLcjs = require('./chunk-A3VCFDVL.cjs');
5
- require('./chunk-7S5PZ7T5.cjs');
4
+ var _chunkMOXBMEZBcjs = require('./chunk-MOXBMEZB.cjs');
5
+ require('./chunk-DCC5OQET.cjs');
6
6
 
7
7
 
8
- var _chunkM7YWQ47Kcjs = require('./chunk-M7YWQ47K.cjs');
8
+ var _chunk6PQMYL2Ocjs = require('./chunk-6PQMYL2O.cjs');
9
9
 
10
10
 
11
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
11
+ var _chunkPJ6HB77Gcjs = require('./chunk-PJ6HB77G.cjs');
12
12
 
13
13
  // src/index.yaml.ts
14
14
  function transform(input, options) {
15
15
  const given = _nullishCoalesce(options, () => ( {}));
16
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
- return _chunkA3VCFDVLcjs.runYamlPipeline.call(void 0, input, given);
16
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
+ return _chunkMOXBMEZBcjs.runYamlPipeline.call(void 0, input, given);
18
18
  }
19
19
  function analyze(input, options) {
20
20
  const given = _nullishCoalesce(options, () => ( {}));
21
- _chunkM7YWQ47Kcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
- return _chunkA3VCFDVLcjs.analyzeYamlPipeline.call(void 0, input, given);
21
+ _chunk6PQMYL2Ocjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
+ return _chunkMOXBMEZBcjs.analyzeYamlPipeline.call(void 0, input, given);
23
23
  }
24
24
 
25
25
 
26
26
 
27
27
 
28
- exports.PolytypoError = _chunkYX6QTWOVcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
+ exports.PolytypoError = _chunkPJ6HB77Gcjs.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-CGFOVO3h.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-CGFOVO3h.cjs';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-CGFOVO3h.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-CGFOVO3h.js';
1
+ import { O as Options, C as Change } from './errors-DMxY1LlK.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-DMxY1LlK.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-7ZJ7YYTQ.js";
5
- import "./chunk-PLWW5KPC.js";
4
+ } from "./chunk-UL7KCRXN.js";
5
+ import "./chunk-NLMP3JVF.js";
6
6
  import {
7
7
  assertFixedMode
8
- } from "./chunk-B3I7VL5E.js";
8
+ } from "./chunk-D3QQYGKW.js";
9
9
  import {
10
10
  PolytypoError
11
- } from "./chunk-GLQQOA6T.js";
11
+ } from "./chunk-25RYOB5K.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.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Normalize typography across languages: locale-correct quotes, dashes, ellipses and no-break spaces.",
5
5
  "keywords": [
6
6
  "typography",
@@ -1,31 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
- var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
10
-
11
- // src/engine/text-pipeline.ts
12
- function runTextPipeline(input, options) {
13
- const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
14
- const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
15
- const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
16
- return _chunkYX6QTWOVcjs.fromCodePoints.call(void 0, _chunkYX6QTWOVcjs.runRules.call(void 0, _chunkYX6QTWOVcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
17
- }
18
- function analyzeTextPipeline(input, options) {
19
- const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
20
- const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
21
- const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
22
- const cp = _chunkYX6QTWOVcjs.toCodePoints.call(void 0, input);
23
- const origin = cp.map((_value, index) => index);
24
- return _chunkYX6QTWOVcjs.runRulesRecording.call(void 0, cp, planned, locale, "text", narrowTarget, origin, cp.length);
25
- }
26
-
27
-
28
-
29
-
30
- exports.runTextPipeline = runTextPipeline; exports.analyzeTextPipeline = analyzeTextPipeline;
31
- //# sourceMappingURL=chunk-442V6TKI.cjs.map