@shell-shock/preset-cli 0.9.13 → 0.9.14

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 (40) hide show
  1. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +8 -0
  2. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +8 -0
  3. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +1 -0
  4. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +14 -0
  5. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +15 -0
  6. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +1 -0
  7. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +655 -0
  8. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +651 -0
  9. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +1 -0
  10. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +48 -0
  11. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +47 -0
  12. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +1 -0
  13. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +24 -0
  14. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +24 -0
  15. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +1 -0
  16. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +65 -0
  17. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +66 -0
  18. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +1 -0
  19. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +12 -0
  20. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +13 -0
  21. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +290 -3
  23. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +287 -1
  24. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -1
  25. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +4 -4
  26. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -4
  27. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  28. package/dist/packages/unified/dist/html-Dw6VvFHa.cjs +612 -0
  29. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs +613 -0
  30. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs.map +1 -0
  31. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  32. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  33. package/dist/packages/unified/dist/{markdown-BiaU4FQg.cjs → markdown-BGGlzivq.cjs} +14 -50
  34. package/dist/packages/unified/dist/{markdown-BiaU4FQg.mjs → markdown-BGGlzivq.mjs} +16 -52
  35. package/dist/packages/unified/dist/markdown-BGGlzivq.mjs.map +1 -0
  36. package/package.json +19 -15
  37. package/dist/packages/unified/dist/html-DzncQodH.cjs +0 -156
  38. package/dist/packages/unified/dist/html-DzncQodH.mjs +0 -157
  39. package/dist/packages/unified/dist/html-DzncQodH.mjs.map +0 -1
  40. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
- const require_html_DzncQodH = require('./html-DzncQodH.cjs');
2
+ const require_html_Dw6VvFHa = require('./html-Dw6VvFHa.cjs');
3
3
  const require_index = require('../../../node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs');
4
4
  const require_index$1 = require('../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs');
5
5
  require('../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs');
@@ -12,71 +12,35 @@ const require_index$8 = require('../../../node_modules/.pnpm/markdown-it-mark@4.
12
12
  const require_index$9 = require('../../../node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs');
13
13
  const require_index$10 = require('../../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs');
14
14
  const require_index$11 = require('../../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs');
15
+ let _shell_shock_plugin_theme_helpers_constants = require("@shell-shock/plugin-theme/helpers/constants");
15
16
  let _stryke_string_format = require("@stryke/string-format");
16
17
 
17
- //#region ../unified/dist/markdown-BiaU4FQg.mjs
18
+ //#region ../unified/dist/markdown-BGGlzivq.mjs
18
19
  var import_markdown_it_task_lists = /* @__PURE__ */ require_runtime.__toESM(require_index$11.default, 1);
19
- const p = () => {
20
+ const m = () => {
20
21
  let e = require_index$1.default({
21
22
  html: !0,
22
23
  langPrefix: `language-`,
23
24
  linkify: !0
24
25
  }).use(require_index$6.default).use(require_index$7.default).use(require_index$8.default).use(require_index$5.default).use(require_index$3.default).use(require_index$4.default).use(require_index$10.default).use(require_index$9.default).use(import_markdown_it_task_lists.default).use(require_index.t, {
25
26
  deep: !1,
26
- openRender(e, t) {
27
- let n = e[t], r = null;
28
- switch (n?.markup) {
29
- case `important`:
30
- r = `red`;
31
- break;
32
- case `note`:
33
- r = `blue`;
34
- break;
35
- case `tip`:
36
- r = `green`;
37
- break;
38
- case `warning`:
39
- r = `yellow`;
40
- break;
41
- case `caution`:
42
- r = `magenta`;
43
- break;
44
- default: r = `blue`;
45
- }
46
- return `<blockquote data-cli-color="${r}">`;
27
+ openRender(e, n) {
28
+ let r = e[n], i = `info`;
29
+ return _shell_shock_plugin_theme_helpers_constants.THEME_MESSAGE_VARIANTS.includes(r?.markup) && (i = r?.markup), `<message class="message-type-${i}">`;
47
30
  },
48
31
  closeRender() {
49
- return `</blockquote>`;
32
+ return `</message>`;
50
33
  },
51
34
  titleRender(e, t) {
52
- let r = e[t], i = null;
53
- switch (r?.markup) {
54
- case `important`:
55
- i = `red`;
56
- break;
57
- case `note`:
58
- i = `blue`;
59
- break;
60
- case `tip`:
61
- i = `green`;
62
- break;
63
- case `warning`:
64
- i = `yellow`;
65
- break;
66
- case `caution`:
67
- i = `magenta`;
68
- break;
69
- default: i = `blue`;
70
- }
71
- return `<p><span data-cli-color="${i}"><b>${(0, _stryke_string_format.upperCaseFirst)(r?.content || ``)}
72
- }</b></span></p>`;
35
+ let n = e[t];
36
+ return `<message-header>${(0, _stryke_string_format.titleCase)(n?.content || ``)}</message-header>`;
73
37
  }
74
38
  });
75
39
  return e.renderer.rules.footnote_anchor = () => ``, e;
76
- }, m = (e) => p().render(e);
77
- function h(t, n) {
78
- return require_html_DzncQodH.y(m(t), n);
40
+ }, h = (e) => m().render(e);
41
+ function g(t, n = {}) {
42
+ return require_html_Dw6VvFHa.Kt(h(t), n);
79
43
  }
80
44
 
81
45
  //#endregion
82
- exports.h = h;
46
+ exports.g = g;
@@ -1,5 +1,5 @@
1
1
  import { __toESM } from "../../../_virtual/_rolldown/runtime.mjs";
2
- import { y } from "./html-DzncQodH.mjs";
2
+ import { Kt } from "./html-Dw6VvFHa.mjs";
3
3
  import { t } from "../../../node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs";
4
4
  import MarkdownIt from "../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs";
5
5
  import "../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs";
@@ -12,72 +12,36 @@ import ins_plugin$1 from "../../../node_modules/.pnpm/markdown-it-mark@4.0.0/nod
12
12
  import sub_plugin from "../../../node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs";
13
13
  import sup_plugin from "../../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs";
14
14
  import { require_markdown_it_task_lists } from "../../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs";
15
- import { upperCaseFirst } from "@stryke/string-format";
15
+ import { THEME_MESSAGE_VARIANTS } from "@shell-shock/plugin-theme/helpers/constants";
16
+ import { titleCase } from "@stryke/string-format";
16
17
 
17
- //#region ../unified/dist/markdown-BiaU4FQg.mjs
18
+ //#region ../unified/dist/markdown-BGGlzivq.mjs
18
19
  var import_markdown_it_task_lists = /* @__PURE__ */ __toESM(require_markdown_it_task_lists(), 1);
19
- const p = () => {
20
+ const m = () => {
20
21
  let e = MarkdownIt({
21
22
  html: !0,
22
23
  langPrefix: `language-`,
23
24
  linkify: !0
24
25
  }).use(footnote_plugin).use(ins_plugin).use(ins_plugin$1).use(deflist_plugin).use(abbr_plugin).use(container_plugin).use(sup_plugin).use(sub_plugin).use(import_markdown_it_task_lists.default).use(t, {
25
26
  deep: !1,
26
- openRender(e, t) {
27
- let n = e[t], r = null;
28
- switch (n?.markup) {
29
- case `important`:
30
- r = `red`;
31
- break;
32
- case `note`:
33
- r = `blue`;
34
- break;
35
- case `tip`:
36
- r = `green`;
37
- break;
38
- case `warning`:
39
- r = `yellow`;
40
- break;
41
- case `caution`:
42
- r = `magenta`;
43
- break;
44
- default: r = `blue`;
45
- }
46
- return `<blockquote data-cli-color="${r}">`;
27
+ openRender(e, n) {
28
+ let r = e[n], i = `info`;
29
+ return THEME_MESSAGE_VARIANTS.includes(r?.markup) && (i = r?.markup), `<message class="message-type-${i}">`;
47
30
  },
48
31
  closeRender() {
49
- return `</blockquote>`;
32
+ return `</message>`;
50
33
  },
51
34
  titleRender(e, t) {
52
- let r = e[t], i = null;
53
- switch (r?.markup) {
54
- case `important`:
55
- i = `red`;
56
- break;
57
- case `note`:
58
- i = `blue`;
59
- break;
60
- case `tip`:
61
- i = `green`;
62
- break;
63
- case `warning`:
64
- i = `yellow`;
65
- break;
66
- case `caution`:
67
- i = `magenta`;
68
- break;
69
- default: i = `blue`;
70
- }
71
- return `<p><span data-cli-color="${i}"><b>${upperCaseFirst(r?.content || ``)}
72
- }</b></span></p>`;
35
+ let n = e[t];
36
+ return `<message-header>${titleCase(n?.content || ``)}</message-header>`;
73
37
  }
74
38
  });
75
39
  return e.renderer.rules.footnote_anchor = () => ``, e;
76
- }, m = (e) => p().render(e);
77
- function h(t, n) {
78
- return y(m(t), n);
40
+ }, h = (e) => m().render(e);
41
+ function g(t, n = {}) {
42
+ return Kt(h(t), n);
79
43
  }
80
44
 
81
45
  //#endregion
82
- export { h };
83
- //# sourceMappingURL=markdown-BiaU4FQg.mjs.map
46
+ export { g };
47
+ //# sourceMappingURL=markdown-BGGlzivq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-BGGlzivq.mjs","names":["i","c","l","u","s","a","o","f","d","p","n","t","r","e"],"sources":["../../../../../unified/dist/markdown-BGGlzivq.mjs"],"sourcesContent":["import{t as e}from\"./html-Dw6VvFHa.mjs\";import{THEME_MESSAGE_VARIANTS as t}from\"@shell-shock/plugin-theme/helpers/constants\";import{alert as n}from\"@mdit/plugin-alert\";import{titleCase as r}from\"@stryke/string-format\";import i from\"markdown-it\";import a from\"markdown-it-abbr\";import o from\"markdown-it-container\";import s from\"markdown-it-deflist\";import c from\"markdown-it-footnote\";import l from\"markdown-it-ins\";import u from\"markdown-it-mark\";import d from\"markdown-it-sub\";import f from\"markdown-it-sup\";import p from\"markdown-it-task-lists\";const m=()=>{let e=i({html:!0,langPrefix:`language-`,linkify:!0}).use(c).use(l).use(u).use(s).use(a).use(o).use(f).use(d).use(p).use(n,{deep:!1,openRender(e,n){let r=e[n],i=`info`;return t.includes(r?.markup)&&(i=r?.markup),`<message class=\"message-type-${i}\">`},closeRender(){return`</message>`},titleRender(e,t){let n=e[t];return`<message-header>${r(n?.content||``)}</message-header>`}});return e.renderer.rules.footnote_anchor=()=>``,e},h=e=>m().render(e);function g(t,n={}){return e(h(t),n)}export{g as t};\n//# sourceMappingURL=markdown-BGGlzivq.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAAoiB,MAAM,UAAM;CAAC,IAAI,IAAEA,WAAE;EAAC,MAAK,CAAC;EAAE,YAAW;EAAY,SAAQ,CAAC;EAAE,CAAC,CAAC,IAAIC,gBAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,aAAE,CAAC,IAAIC,eAAE,CAAC,IAAIC,YAAE,CAAC,IAAIC,iBAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,sCAAE,CAAC,IAAIC,GAAE;EAAC,MAAK,CAAC;EAAE,WAAW,GAAE,GAAE;GAAC,IAAI,IAAE,EAAE,IAAG,IAAE;AAAO,UAAOC,uBAAE,SAAS,GAAG,OAAO,KAAG,IAAE,GAAG,SAAQ,gCAAgC,EAAE;;EAAK,cAAa;AAAC,UAAM;;EAAc,YAAY,GAAE,GAAE;GAAC,IAAI,IAAE,EAAE;AAAG,UAAM,mBAAmBC,UAAE,GAAG,WAAS,GAAG,CAAC;;EAAoB,CAAC;AAAC,QAAO,EAAE,SAAS,MAAM,wBAAoB,IAAG;GAAG,KAAE,MAAG,GAAG,CAAC,OAAO,EAAE;AAAC,SAAS,EAAE,GAAE,IAAE,EAAE,EAAC;AAAC,QAAOC,GAAE,EAAE,EAAE,EAAC,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/preset-cli",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
6
6
  "keywords": [
@@ -182,27 +182,27 @@
182
182
  "@alloy-js/core": "0.23.0-dev.8",
183
183
  "@alloy-js/typescript": "0.23.0-dev.4",
184
184
  "@powerlines/deepkit": "^0.6.167",
185
- "@powerlines/plugin-alloy": "^0.26.9",
186
- "@powerlines/plugin-plugin": "^0.12.343",
187
- "@shell-shock/core": "^0.17.1",
188
- "@shell-shock/plugin-banner": "^0.1.28",
189
- "@shell-shock/plugin-completions": "^0.4.9",
190
- "@shell-shock/plugin-console": "^0.2.5",
191
- "@shell-shock/plugin-help": "^0.2.19",
192
- "@shell-shock/plugin-prompts": "^0.3.42",
193
- "@shell-shock/plugin-theme": "^0.4.14",
194
- "@shell-shock/plugin-upgrade": "^0.1.46",
195
- "@shell-shock/preset-script": "^0.6.56",
185
+ "@powerlines/plugin-alloy": "^0.26.10",
186
+ "@powerlines/plugin-plugin": "^0.12.344",
187
+ "@shell-shock/core": "^0.17.2",
188
+ "@shell-shock/plugin-banner": "^0.1.29",
189
+ "@shell-shock/plugin-completions": "^0.4.10",
190
+ "@shell-shock/plugin-console": "^0.2.6",
191
+ "@shell-shock/plugin-help": "^0.2.20",
192
+ "@shell-shock/plugin-prompts": "^0.3.43",
193
+ "@shell-shock/plugin-theme": "^0.4.15",
194
+ "@shell-shock/plugin-upgrade": "^0.1.47",
195
+ "@shell-shock/preset-script": "^0.6.57",
196
196
  "@stryke/path": "^0.27.4",
197
197
  "@stryke/string-format": "^0.17.9",
198
198
  "@stryke/type-checks": "^0.6.1",
199
199
  "cfonts": "^3.3.1",
200
200
  "defu": "^6.1.7",
201
- "powerlines": "^0.42.33"
201
+ "powerlines": "^0.42.34"
202
202
  },
203
203
  "devDependencies": {
204
204
  "@stryke/types": "^0.11.3",
205
- "@types/node": "^25.5.2",
205
+ "@types/node": "^25.6.0",
206
206
  "@types/react": "^19.2.14"
207
207
  },
208
208
  "publishConfig": {
@@ -231,8 +231,10 @@
231
231
  "inlinedDependencies": {
232
232
  "@mdit/plugin-alert": "0.23.2",
233
233
  "@stryke/types": "0.11.3",
234
+ "ansi-regex": "6.2.2",
234
235
  "ansi-styles": "6.2.3",
235
236
  "entities": ["4.5.0", "6.0.1"],
237
+ "get-east-asian-width": "1.5.0",
236
238
  "he": "1.2.0",
237
239
  "linkify-it": "5.0.0",
238
240
  "markdown-it": "14.1.1",
@@ -249,8 +251,10 @@
249
251
  "normalize-html-whitespace": "1.0.0",
250
252
  "parse5": "8.0.0",
251
253
  "punycode.js": "2.3.1",
254
+ "string-width": "8.2.0",
255
+ "strip-ansi": "7.2.0",
252
256
  "uc.micro": "2.1.0",
253
257
  "wrap-ansi": "10.0.0"
254
258
  },
255
- "gitHead": "0a96451134431381e1d79f85dceaaafd5cf94cfe"
259
+ "gitHead": "38e2393cfc876607226b05a59cc9bd62e3b59960"
256
260
  }
@@ -1,156 +0,0 @@
1
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
- const require_index = require('../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs');
3
- const require_he$1 = require('../../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs');
4
- const require_index$1 = require('../../../node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs');
5
- require('../../../node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs');
6
-
7
- //#region ../unified/dist/html-DzncQodH.mjs
8
- var import_he = /* @__PURE__ */ require_runtime.__toESM(require_he$1.default, 1);
9
- var import_normalize_html_whitespace = /* @__PURE__ */ require_runtime.__toESM(require_index$1.default, 1);
10
- const r = (e) => ({
11
- pre: !1,
12
- lineWidth: 120,
13
- fontAttrs: !0,
14
- depth: 0,
15
- asciiMode: !1,
16
- ...e
17
- }), i = (e, t) => e == null && t == null ? null : e == null ? t : t == null ? e : t.value == null ? {
18
- pre: e.pre,
19
- value: e.value,
20
- post: e.post == null ? t.pre == null ? t.post == null ? `` : t.post : t.pre : e.post
21
- } : e.value == null ? {
22
- pre: e.pre == null ? e.post == null ? t.pre == null ? `` : t.pre : e.post : e.pre,
23
- value: t.value,
24
- post: t.post
25
- } : e.post == null ? t.pre == null ? {
26
- pre: e.pre,
27
- value: `${e.value}${t.value}`,
28
- post: t.post
29
- } : {
30
- pre: e.pre,
31
- value: `${e.value}${t.pre}${t.value}`,
32
- post: t.post
33
- } : {
34
- pre: e.pre,
35
- value: `${e.value}${e.post}${t.value}`,
36
- post: t.post
37
- }, a = /* @__PURE__ */ new WeakMap(), o = (e, t, n = null) => {
38
- if (!e || typeof e != `object` || !t || typeof t != `string`) return n;
39
- let r = a.get(e);
40
- if (r) {
41
- let e = r.get(t);
42
- if (e !== void 0) return e ?? n;
43
- }
44
- if (!e.attrs || !Array.isArray(e.attrs) || e.attrs.length === 0) return r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), r.set(t, null), n;
45
- let i = e.attrs.find((e) => e && typeof e == `object` && e.name === t);
46
- if (r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), !i || i.value === void 0) return r.set(t, null), n;
47
- let o = i.value;
48
- return r.set(t, o), o;
49
- }, s = import_he.default.decode, c = import_normalize_html_whitespace.default, l = (e, t) => {
50
- let n = String(e.value ?? ``);
51
- if (t.pre) return {
52
- pre: null,
53
- value: s(n),
54
- post: null,
55
- type: `inline`,
56
- nodeName: `#text`
57
- };
58
- let r = [...(c(n) || ``).replaceAll(`
59
- `, ` `)], i = [` `, `
60
- `].includes(r[0] ?? ``) ? r.shift() ?? null : null, a = [` `, `
61
- `].includes(r.at(-1) ?? ``) ? r.pop() ?? null : null;
62
- return {
63
- pre: i,
64
- value: r.length > 0 ? `${s(r.join(``))}` : null,
65
- post: a,
66
- type: `inline`,
67
- nodeName: `#text`
68
- };
69
- }, u = (e) => (t, n) => {
70
- let r = e ?? ((e) => e ?? null), a = p.span;
71
- if (!t || !t.childNodes) return null;
72
- let o = t.childNodes.reduce((e, r) => {
73
- let o = v(r, n, a);
74
- return o ? {
75
- ...i(e, o),
76
- type: `inline`,
77
- nodeName: t.nodeName
78
- } : e;
79
- }, null);
80
- return {
81
- pre: o?.pre ? r(o.pre, t, n) : null,
82
- value: r(o?.value, t, n),
83
- post: o?.post ? r(o.post, t, n) : null,
84
- type: `inline`,
85
- nodeName: t.nodeName
86
- };
87
- }, d = u((e, t, n) => {
88
- let r = o(t, `href`, null), i = o(t, `title`, null), a = !r || [
89
- `file://`,
90
- `http://`,
91
- `https://`,
92
- `mailto:`,
93
- `ftp://`,
94
- `ftps://`,
95
- `sftp://`,
96
- `ssh://`,
97
- `dav://`,
98
- `tel:`,
99
- `git://`
100
- ].some((e) => r.startsWith(e)) ? r : null;
101
- return a ? `link("${a}", ${i ? `"${i}", ` : ``}${a && (a.startsWith(`http://`) || a.startsWith(`https://`)) ? `true` : `false`})` : i ? `"${i}"` : ``;
102
- }), f = u((e, t) => {
103
- let n = o(t, `title`, null);
104
- return e ? n ? `${e} (${n})` : e : ``;
105
- });
106
- var p = {
107
- "#text": l,
108
- a: d,
109
- abbr: f
110
- };
111
- const m = process.env.CACHE_RENDER !== `false`, h = /* @__PURE__ */ new WeakMap(), g = (e, t) => {
112
- if (!m || !e || typeof e != `object`) return;
113
- let n = h.get(e);
114
- if (n) return n.get(JSON.stringify({
115
- lineWidth: t.lineWidth,
116
- pre: t.pre,
117
- listDepth: t.listDepth,
118
- listType: t.listType,
119
- depth: t.depth
120
- }));
121
- }, _ = (e, t, n) => {
122
- if (!m || !e || typeof e != `object`) return;
123
- let r = h.get(e);
124
- if (r || (r = /* @__PURE__ */ new Map(), h.set(e, r)), r.set(JSON.stringify({
125
- lineWidth: t.lineWidth,
126
- pre: t.pre,
127
- listDepth: t.listDepth,
128
- listType: t.listType,
129
- depth: t.depth
130
- }), n), r.size > 10) {
131
- let e = r.keys().next().value;
132
- r.delete(e);
133
- }
134
- }, v = (e, t, n = p.div) => {
135
- if (!e) return null;
136
- let r = t.depth === void 0 ? 0 : t.depth;
137
- if (r >= 100) return null;
138
- let i = {
139
- ...t,
140
- depth: r + 1
141
- }, a = g(e, i);
142
- if (a !== void 0) return a;
143
- let o = null;
144
- try {
145
- o = (p[e.nodeName || `#text`] || n)(e, i), _(e, i, o);
146
- } catch {
147
- o = null;
148
- }
149
- return o;
150
- };
151
- function y(t, n) {
152
- return `${(v(require_index.parse(t, { sourceCodeLocationInfo: !0 }), r(n)) || { value: `` }).value}\n`;
153
- }
154
-
155
- //#endregion
156
- exports.y = y;
@@ -1,157 +0,0 @@
1
- import { __toESM } from "../../../_virtual/_rolldown/runtime.mjs";
2
- import { parse } from "../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs";
3
- import { require_he } from "../../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs";
4
- import { require_normalize_html_whitespace } from "../../../node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs";
5
- import "../../../node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs";
6
-
7
- //#region ../unified/dist/html-DzncQodH.mjs
8
- var import_he = /* @__PURE__ */ __toESM(require_he(), 1);
9
- var import_normalize_html_whitespace = /* @__PURE__ */ __toESM(require_normalize_html_whitespace(), 1);
10
- const r = (e) => ({
11
- pre: !1,
12
- lineWidth: 120,
13
- fontAttrs: !0,
14
- depth: 0,
15
- asciiMode: !1,
16
- ...e
17
- }), i = (e, t) => e == null && t == null ? null : e == null ? t : t == null ? e : t.value == null ? {
18
- pre: e.pre,
19
- value: e.value,
20
- post: e.post == null ? t.pre == null ? t.post == null ? `` : t.post : t.pre : e.post
21
- } : e.value == null ? {
22
- pre: e.pre == null ? e.post == null ? t.pre == null ? `` : t.pre : e.post : e.pre,
23
- value: t.value,
24
- post: t.post
25
- } : e.post == null ? t.pre == null ? {
26
- pre: e.pre,
27
- value: `${e.value}${t.value}`,
28
- post: t.post
29
- } : {
30
- pre: e.pre,
31
- value: `${e.value}${t.pre}${t.value}`,
32
- post: t.post
33
- } : {
34
- pre: e.pre,
35
- value: `${e.value}${e.post}${t.value}`,
36
- post: t.post
37
- }, a = /* @__PURE__ */ new WeakMap(), o = (e, t, n = null) => {
38
- if (!e || typeof e != `object` || !t || typeof t != `string`) return n;
39
- let r = a.get(e);
40
- if (r) {
41
- let e = r.get(t);
42
- if (e !== void 0) return e ?? n;
43
- }
44
- if (!e.attrs || !Array.isArray(e.attrs) || e.attrs.length === 0) return r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), r.set(t, null), n;
45
- let i = e.attrs.find((e) => e && typeof e == `object` && e.name === t);
46
- if (r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), !i || i.value === void 0) return r.set(t, null), n;
47
- let o = i.value;
48
- return r.set(t, o), o;
49
- }, s = import_he.default.decode, c = import_normalize_html_whitespace.default, l = (e, t) => {
50
- let n = String(e.value ?? ``);
51
- if (t.pre) return {
52
- pre: null,
53
- value: s(n),
54
- post: null,
55
- type: `inline`,
56
- nodeName: `#text`
57
- };
58
- let r = [...(c(n) || ``).replaceAll(`
59
- `, ` `)], i = [` `, `
60
- `].includes(r[0] ?? ``) ? r.shift() ?? null : null, a = [` `, `
61
- `].includes(r.at(-1) ?? ``) ? r.pop() ?? null : null;
62
- return {
63
- pre: i,
64
- value: r.length > 0 ? `${s(r.join(``))}` : null,
65
- post: a,
66
- type: `inline`,
67
- nodeName: `#text`
68
- };
69
- }, u = (e) => (t, n) => {
70
- let r = e ?? ((e) => e ?? null), a = p.span;
71
- if (!t || !t.childNodes) return null;
72
- let o = t.childNodes.reduce((e, r) => {
73
- let o = v(r, n, a);
74
- return o ? {
75
- ...i(e, o),
76
- type: `inline`,
77
- nodeName: t.nodeName
78
- } : e;
79
- }, null);
80
- return {
81
- pre: o?.pre ? r(o.pre, t, n) : null,
82
- value: r(o?.value, t, n),
83
- post: o?.post ? r(o.post, t, n) : null,
84
- type: `inline`,
85
- nodeName: t.nodeName
86
- };
87
- }, d = u((e, t, n) => {
88
- let r = o(t, `href`, null), i = o(t, `title`, null), a = !r || [
89
- `file://`,
90
- `http://`,
91
- `https://`,
92
- `mailto:`,
93
- `ftp://`,
94
- `ftps://`,
95
- `sftp://`,
96
- `ssh://`,
97
- `dav://`,
98
- `tel:`,
99
- `git://`
100
- ].some((e) => r.startsWith(e)) ? r : null;
101
- return a ? `link("${a}", ${i ? `"${i}", ` : ``}${a && (a.startsWith(`http://`) || a.startsWith(`https://`)) ? `true` : `false`})` : i ? `"${i}"` : ``;
102
- }), f = u((e, t) => {
103
- let n = o(t, `title`, null);
104
- return e ? n ? `${e} (${n})` : e : ``;
105
- });
106
- var p = {
107
- "#text": l,
108
- a: d,
109
- abbr: f
110
- };
111
- const m = process.env.CACHE_RENDER !== `false`, h = /* @__PURE__ */ new WeakMap(), g = (e, t) => {
112
- if (!m || !e || typeof e != `object`) return;
113
- let n = h.get(e);
114
- if (n) return n.get(JSON.stringify({
115
- lineWidth: t.lineWidth,
116
- pre: t.pre,
117
- listDepth: t.listDepth,
118
- listType: t.listType,
119
- depth: t.depth
120
- }));
121
- }, _ = (e, t, n) => {
122
- if (!m || !e || typeof e != `object`) return;
123
- let r = h.get(e);
124
- if (r || (r = /* @__PURE__ */ new Map(), h.set(e, r)), r.set(JSON.stringify({
125
- lineWidth: t.lineWidth,
126
- pre: t.pre,
127
- listDepth: t.listDepth,
128
- listType: t.listType,
129
- depth: t.depth
130
- }), n), r.size > 10) {
131
- let e = r.keys().next().value;
132
- r.delete(e);
133
- }
134
- }, v = (e, t, n = p.div) => {
135
- if (!e) return null;
136
- let r = t.depth === void 0 ? 0 : t.depth;
137
- if (r >= 100) return null;
138
- let i = {
139
- ...t,
140
- depth: r + 1
141
- }, a = g(e, i);
142
- if (a !== void 0) return a;
143
- let o = null;
144
- try {
145
- o = (p[e.nodeName || `#text`] || n)(e, i), _(e, i, o);
146
- } catch {
147
- o = null;
148
- }
149
- return o;
150
- };
151
- function y(t, n) {
152
- return `${(v(parse(t, { sourceCodeLocationInfo: !0 }), r(n)) || { value: `` }).value}\n`;
153
- }
154
-
155
- //#endregion
156
- export { y };
157
- //# sourceMappingURL=html-DzncQodH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"html-DzncQodH.mjs","names":["t","n","e"],"sources":["../../../../../unified/dist/html-DzncQodH.mjs"],"sourcesContent":["import{parse as e}from\"parse5\";import t from\"he\";import n from\"normalize-html-whitespace\";import\"wrap-ansi\";const r=e=>({pre:!1,lineWidth:120,fontAttrs:!0,depth:0,asciiMode:!1,...e}),i=(e,t)=>e==null&&t==null?null:e==null?t:t==null?e:t.value==null?{pre:e.pre,value:e.value,post:e.post==null?t.pre==null?t.post==null?``:t.post:t.pre:e.post}:e.value==null?{pre:e.pre==null?e.post==null?t.pre==null?``:t.pre:e.post:e.pre,value:t.value,post:t.post}:e.post==null?t.pre==null?{pre:e.pre,value:`${e.value}${t.value}`,post:t.post}:{pre:e.pre,value:`${e.value}${t.pre}${t.value}`,post:t.post}:{pre:e.pre,value:`${e.value}${e.post}${t.value}`,post:t.post},a=new WeakMap,o=(e,t,n=null)=>{if(!e||typeof e!=`object`||!t||typeof t!=`string`)return n;let r=a.get(e);if(r){let e=r.get(t);if(e!==void 0)return e??n}if(!e.attrs||!Array.isArray(e.attrs)||e.attrs.length===0)return r||(r=new Map,a.set(e,r)),r.set(t,null),n;let i=e.attrs.find(e=>e&&typeof e==`object`&&e.name===t);if(r||(r=new Map,a.set(e,r)),!i||i.value===void 0)return r.set(t,null),n;let o=i.value;return r.set(t,o),o},s=t.decode,c=n,l=(e,t)=>{let n=String(e.value??``);if(t.pre)return{pre:null,value:s(n),post:null,type:`inline`,nodeName:`#text`};let r=[...(c(n)||``).replaceAll(`\n`,` `)],i=[` `,`\n`].includes(r[0]??``)?r.shift()??null:null,a=[` `,`\n`].includes(r.at(-1)??``)?r.pop()??null:null;return{pre:i,value:r.length>0?`${s(r.join(``))}`:null,post:a,type:`inline`,nodeName:`#text`}},u=e=>(t,n)=>{let r=e??(e=>e??null),a=p.span;if(!t||!t.childNodes)return null;let o=t.childNodes.reduce((e,r)=>{let o=v(r,n,a);return o?{...i(e,o),type:`inline`,nodeName:t.nodeName}:e},null);return{pre:o?.pre?r(o.pre,t,n):null,value:r(o?.value,t,n),post:o?.post?r(o.post,t,n):null,type:`inline`,nodeName:t.nodeName}},d=u((e,t,n)=>{let r=o(t,`href`,null),i=o(t,`title`,null),a=!r||[`file://`,`http://`,`https://`,`mailto:`,`ftp://`,`ftps://`,`sftp://`,`ssh://`,`dav://`,`tel:`,`git://`].some(e=>r.startsWith(e))?r:null;return a?`link(\"${a}\", ${i?`\"${i}\", `:``}${a&&(a.startsWith(`http://`)||a.startsWith(`https://`))?`true`:`false`})`:i?`\"${i}\"`:``}),f=u((e,t)=>{let n=o(t,`title`,null);return e?n?`${e} (${n})`:e:``});var p={\"#text\":l,a:d,abbr:f};const m=process.env.CACHE_RENDER!==`false`,h=new WeakMap,g=(e,t)=>{if(!m||!e||typeof e!=`object`)return;let n=h.get(e);if(n)return n.get(JSON.stringify({lineWidth:t.lineWidth,pre:t.pre,listDepth:t.listDepth,listType:t.listType,depth:t.depth}))},_=(e,t,n)=>{if(!m||!e||typeof e!=`object`)return;let r=h.get(e);if(r||(r=new Map,h.set(e,r)),r.set(JSON.stringify({lineWidth:t.lineWidth,pre:t.pre,listDepth:t.listDepth,listType:t.listType,depth:t.depth}),n),r.size>10){let e=r.keys().next().value;r.delete(e)}},v=(e,t,n=p.div)=>{if(!e)return null;let r=t.depth===void 0?0:t.depth;if(r>=100)return null;let i={...t,depth:r+1},a=g(e,i);if(a!==void 0)return a;let o=null;try{o=(p[e.nodeName||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}
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-BiaU4FQg.mjs","names":["r","s","c","l","o","i","a","d","u","f","n","e"],"sources":["../../../../../unified/dist/markdown-BiaU4FQg.mjs"],"sourcesContent":["import{t as e}from\"./html-DzncQodH.mjs\";import{alert as t}from\"@mdit/plugin-alert\";import{upperCaseFirst as n}from\"@stryke/string-format\";import r from\"markdown-it\";import i from\"markdown-it-abbr\";import a from\"markdown-it-container\";import o from\"markdown-it-deflist\";import s from\"markdown-it-footnote\";import c from\"markdown-it-ins\";import l from\"markdown-it-mark\";import u from\"markdown-it-sub\";import d from\"markdown-it-sup\";import f from\"markdown-it-task-lists\";const p=()=>{let e=r({html:!0,langPrefix:`language-`,linkify:!0}).use(s).use(c).use(l).use(o).use(i).use(a).use(d).use(u).use(f).use(t,{deep:!1,openRender(e,t){let n=e[t],r=null;switch(n?.markup){case`important`:r=`red`;break;case`note`:r=`blue`;break;case`tip`:r=`green`;break;case`warning`:r=`yellow`;break;case`caution`:r=`magenta`;break;default:r=`blue`}return`<blockquote data-cli-color=\"${r}\">`},closeRender(){return`</blockquote>`},titleRender(e,t){let r=e[t],i=null;switch(r?.markup){case`important`:i=`red`;break;case`note`:i=`blue`;break;case`tip`:i=`green`;break;case`warning`:i=`yellow`;break;case`caution`:i=`magenta`;break;default:i=`blue`}return`<p><span data-cli-color=\"${i}\"><b>${n(r?.content||``)}\n }</b></span></p>`}});return e.renderer.rules.footnote_anchor=()=>``,e},m=e=>p().render(e);function h(t,n){return e(m(t),n)}export{h as t};\n//# sourceMappingURL=markdown-BiaU4FQg.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAAod,MAAM,UAAM;CAAC,IAAI,IAAEA,WAAE;EAAC,MAAK,CAAC;EAAE,YAAW;EAAY,SAAQ,CAAC;EAAE,CAAC,CAAC,IAAIC,gBAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,aAAE,CAAC,IAAIC,eAAE,CAAC,IAAIC,YAAE,CAAC,IAAIC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