polytypo 1.6.1 → 1.6.2
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.
- package/dist/chunk-7SX4K4MI.cjs +33 -0
- package/dist/{chunk-MDESZMU2.cjs.map → chunk-7SX4K4MI.cjs.map} +1 -1
- package/dist/{chunk-W77K6K6G.js → chunk-CW3GAIYQ.js} +1 -1
- package/dist/{chunk-W77K6K6G.js.map → chunk-CW3GAIYQ.js.map} +1 -1
- package/dist/{chunk-FICUT4OU.js → chunk-EU6OXPQ4.js} +2 -2
- package/dist/chunk-F2TYEIR6.cjs +31 -0
- package/dist/{chunk-VSONV4W4.cjs.map → chunk-F2TYEIR6.cjs.map} +1 -1
- package/dist/{chunk-VBZAV63L.js → chunk-HBAWMBV7.js} +2 -2
- package/dist/{chunk-PGHLZCGV.cjs → chunk-J32K2ENU.cjs} +17 -17
- package/dist/{chunk-PGHLZCGV.cjs.map → chunk-J32K2ENU.cjs.map} +1 -1
- package/dist/{chunk-VCD45VZH.cjs → chunk-T6DOGDDS.cjs} +1 -1
- package/dist/{chunk-VCD45VZH.cjs.map → chunk-T6DOGDDS.cjs.map} +1 -1
- package/dist/{chunk-IN32R4AX.js → chunk-TIYWNQJT.js} +4 -4
- package/dist/{chunk-LDXWXCGL.js → chunk-UNG66DF3.js} +2 -2
- package/dist/{chunk-URE2U73R.js → chunk-V5MA5FVX.js} +3 -3
- package/dist/{chunk-DKUR763G.cjs → chunk-XEWXDNYN.cjs} +16 -16
- package/dist/{chunk-DKUR763G.cjs.map → chunk-XEWXDNYN.cjs.map} +1 -1
- package/dist/{chunk-V6SSSZLP.cjs → chunk-XKLNVHLQ.cjs} +4 -4
- package/dist/{chunk-V6SSSZLP.cjs.map → chunk-XKLNVHLQ.cjs.map} +1 -1
- package/dist/{chunk-M4PJNXRU.cjs → chunk-XO74OCDD.cjs} +13 -13
- package/dist/{chunk-M4PJNXRU.cjs.map → chunk-XO74OCDD.cjs.map} +1 -1
- package/dist/{chunk-P6IBHZL6.cjs → chunk-XRBVOVKA.cjs} +3 -3
- package/dist/{chunk-P6IBHZL6.cjs.map → chunk-XRBVOVKA.cjs.map} +1 -1
- package/dist/{chunk-YD5JMNLT.js → chunk-XSQWMQXM.js} +4 -4
- package/dist/{chunk-VST7L77N.js → chunk-YF4HZDOF.js} +2 -2
- package/dist/html.cjs +10 -10
- package/dist/html.js +5 -5
- package/dist/index.cjs +17 -17
- package/dist/index.js +7 -7
- package/dist/markdown.cjs +10 -10
- package/dist/markdown.js +5 -5
- package/dist/text.cjs +8 -8
- package/dist/text.js +3 -3
- package/dist/yaml.cjs +9 -9
- package/dist/yaml.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-MDESZMU2.cjs +0 -33
- package/dist/chunk-VSONV4W4.cjs +0 -31
- /package/dist/{chunk-FICUT4OU.js.map → chunk-EU6OXPQ4.js.map} +0 -0
- /package/dist/{chunk-VBZAV63L.js.map → chunk-HBAWMBV7.js.map} +0 -0
- /package/dist/{chunk-IN32R4AX.js.map → chunk-TIYWNQJT.js.map} +0 -0
- /package/dist/{chunk-LDXWXCGL.js.map → chunk-UNG66DF3.js.map} +0 -0
- /package/dist/{chunk-URE2U73R.js.map → chunk-V5MA5FVX.js.map} +0 -0
- /package/dist/{chunk-YD5JMNLT.js.map → chunk-XSQWMQXM.js.map} +0 -0
- /package/dist/{chunk-VST7L77N.js.map → chunk-YF4HZDOF.js.map} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkXKLNVHLQcjs = require('./chunk-XKLNVHLQ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkXEWXDNYNcjs = require('./chunk-XEWXDNYN.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkT6DOGDDScjs = require('./chunk-T6DOGDDS.cjs');
|
|
13
|
+
|
|
14
|
+
// src/engine/html-pipeline.ts
|
|
15
|
+
function runHtmlPipeline(input, options) {
|
|
16
|
+
const narrowTarget = _chunkT6DOGDDScjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
+
const planned = _chunkT6DOGDDScjs.planRules.call(void 0, options.rules);
|
|
18
|
+
const locale = _chunkT6DOGDDScjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
+
const spans = _chunkXKLNVHLQcjs.htmlSpans.call(void 0, input);
|
|
20
|
+
return _chunkXEWXDNYNcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
+
}
|
|
22
|
+
function analyzeHtmlPipeline(input, options) {
|
|
23
|
+
const narrowTarget = _chunkT6DOGDDScjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
+
const planned = _chunkT6DOGDDScjs.planRules.call(void 0, options.rules);
|
|
25
|
+
const locale = _chunkT6DOGDDScjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
+
return _chunkXEWXDNYNcjs.analyzeOverSpans.call(void 0, input, _chunkXKLNVHLQcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
33
|
+
//# sourceMappingURL=chunk-7SX4K4MI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-7SX4K4MI.cjs","../src/engine/html-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACIO,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,MAAM,MAAA,EAAQ,yCAAA,KAAe,CAAA;AAC7B,EAAA,OAAO,4CAAA,KAAa,EAAO,KAAA,EAAO,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACzE;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,OAAO,gDAAA,KAAiB,EAAO,yCAAA,KAAe,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACxF;ADJA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-7SX4K4MI.cjs","sourcesContent":[null,"import { htmlSpans } from \"../modes/html.js\";\nimport type { Options } from \"../types.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules } from \"./rule-runner.js\";\nimport { analyzeOverSpans, runOverSpans } from \"./span-runner.js\";\nimport type { Change } from \"./origin.js\";\n\n/**\n * `html` mode only. Imports `parse5` (via `../modes/html.js`) and nothing from\n * `../modes/markdown.js` or the Micromark/MDX stack — this is what makes `polytypo/html`'s\n * module graph exclude the Markdown parser (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` before parsing — mirrors the pre-Stage-5\n * aggregate `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error,\n * and both must win over a parse failure, since that is public, tested behaviour).\n */\nexport function runHtmlPipeline(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 const spans = htmlSpans(input);\n return runOverSpans(input, spans, planned, locale, \"html\", narrowTarget);\n}\n\n/** analyze.md §1, `html` mode: offsets are into the document, not into a span (analyze.md §6). */\nexport function analyzeHtmlPipeline(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 return analyzeOverSpans(input, htmlSpans(input), planned, locale, \"html\", narrowTarget);\n}\n"]}
|