@shell-shock/preset-cli 0.9.12 → 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 (77) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -4
  2. package/dist/components/banner-builtin.cjs +3 -3
  3. package/dist/components/banner-builtin.mjs +3 -3
  4. package/dist/components/banner-builtin.mjs.map +1 -1
  5. package/dist/components/command-entry.cjs +1 -0
  6. package/dist/components/command-entry.mjs +1 -0
  7. package/dist/components/command-entry.mjs.map +1 -1
  8. package/dist/components/virtual-command-entry.cjs +1 -0
  9. package/dist/components/virtual-command-entry.mjs +1 -0
  10. package/dist/components/virtual-command-entry.mjs.map +1 -1
  11. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +8 -0
  12. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +8 -0
  13. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +14 -0
  15. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +15 -0
  16. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +1 -0
  17. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +655 -0
  18. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +651 -0
  19. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +1 -0
  20. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +48 -0
  21. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +47 -0
  22. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +1 -0
  23. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +24 -0
  24. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +24 -0
  25. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +1 -0
  26. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +65 -0
  27. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +66 -0
  28. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +1 -0
  29. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +12 -0
  30. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +13 -0
  31. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +1 -0
  32. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +290 -3
  33. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +287 -1
  34. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -1
  35. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +4 -4
  36. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -4
  37. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  38. package/dist/packages/unified/dist/html-Dw6VvFHa.cjs +612 -0
  39. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs +613 -0
  40. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs.map +1 -0
  41. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  42. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  43. package/dist/packages/unified/dist/{markdown-OuY_JOk0.cjs → markdown-BGGlzivq.cjs} +14 -50
  44. package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs → markdown-BGGlzivq.mjs} +16 -52
  45. package/dist/packages/unified/dist/markdown-BGGlzivq.mjs.map +1 -0
  46. package/package.json +19 -19
  47. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +0 -36
  48. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +0 -36
  49. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +0 -1
  50. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +0 -32
  51. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +0 -33
  52. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +0 -133
  54. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +0 -134
  55. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +0 -1
  56. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +0 -32
  57. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +0 -31
  58. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +0 -169
  60. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +0 -167
  61. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +0 -1
  62. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +0 -98
  63. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +0 -95
  64. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +0 -23
  66. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +0 -23
  67. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +0 -1
  68. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +0 -36
  69. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +0 -36
  70. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +0 -10
  72. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +0 -10
  73. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +0 -1
  74. package/dist/packages/unified/dist/html-Di3_LwV3.cjs +0 -337
  75. package/dist/packages/unified/dist/html-Di3_LwV3.mjs +0 -338
  76. package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +0 -1
  77. package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
- const require_html_Di3_LwV3 = require('./html-Di3_LwV3.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-OuY_JOk0.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_Di3_LwV3.N(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 { N } from "./html-Di3_LwV3.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-OuY_JOk0.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 N(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-OuY_JOk0.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.12",
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.0",
188
- "@shell-shock/plugin-banner": "^0.1.27",
189
- "@shell-shock/plugin-completions": "^0.4.8",
190
- "@shell-shock/plugin-console": "^0.2.4",
191
- "@shell-shock/plugin-help": "^0.2.18",
192
- "@shell-shock/plugin-prompts": "^0.3.41",
193
- "@shell-shock/plugin-theme": "^0.4.13",
194
- "@shell-shock/plugin-upgrade": "^0.1.45",
195
- "@shell-shock/preset-script": "^0.6.55",
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,13 +231,11 @@
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
- "chalk": "5.6.2",
236
- "chalk-string": "4.0.0",
237
- "colors-option": "6.1.2",
238
236
  "entities": ["4.5.0", "6.0.1"],
237
+ "get-east-asian-width": "1.5.0",
239
238
  "he": "1.2.0",
240
- "is-plain-obj": "4.1.0",
241
239
  "linkify-it": "5.0.0",
242
240
  "markdown-it": "14.1.1",
243
241
  "markdown-it-abbr": "2.0.0",
@@ -253,8 +251,10 @@
253
251
  "normalize-html-whitespace": "1.0.0",
254
252
  "parse5": "8.0.0",
255
253
  "punycode.js": "2.3.1",
254
+ "string-width": "8.2.0",
255
+ "strip-ansi": "7.2.0",
256
256
  "uc.micro": "2.1.0",
257
257
  "wrap-ansi": "10.0.0"
258
258
  },
259
- "gitHead": "8ca409c1453d9722650670c3df4f4da72abdc308"
259
+ "gitHead": "38e2393cfc876607226b05a59cc9bd62e3b59960"
260
260
  }
@@ -1,36 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js
3
- const normalizeRgbArgs = (args, method) => {
4
- if (args.length !== 3) throw new TypeError(`There must be 3 arguments with "${method}", not ${args.length}`);
5
- const argsA = args.map(Number);
6
- argsA.forEach((arg, index) => {
7
- validateRgbArg(arg, args[index], method);
8
- });
9
- return argsA;
10
- };
11
- const validateRgbArg = (arg, input, method) => {
12
- if (!Number.isInteger(arg) || String(arg) !== input) throw new TypeError(`Argument "${arg}" must be an integer with "${method}"`);
13
- if (arg > MAX_RGB) throw new TypeError(`Argument "${arg}" must be less than ${MAX_RGB} with "${method}"`);
14
- };
15
- const MAX_RGB = 255;
16
- const normalizeHexArgs = (args, method) => {
17
- if (args.length !== 1) throw new TypeError(`There must be exactly one argument with "${method}", not ${args.length}`);
18
- validateHexArg(args[0], method);
19
- return args;
20
- };
21
- const validateHexArg = (arg, method) => {
22
- if (arg.includes("#")) throw new TypeError(`Argument "${arg}" must not include # with "${method}"`);
23
- if (!HEX_LENGTH.has(arg.length)) throw new TypeError(`Argument "${arg}" must have 3 or 6 characters with "${method}"`);
24
- if (!HEX_REGEXP.test(arg)) throw new TypeError(`Argument "${arg}" must be an hexadecimal string with "${method}"`);
25
- };
26
- const HEX_LENGTH = new Set([3, 6]);
27
- const HEX_REGEXP = /^[a-f\d]{3,6}$/iu;
28
- const ARGS_METHODS = {
29
- rgb: normalizeRgbArgs,
30
- bgRgb: normalizeRgbArgs,
31
- hex: normalizeHexArgs,
32
- bgHex: normalizeHexArgs
33
- };
34
-
35
- //#endregion
36
- exports.ARGS_METHODS = ARGS_METHODS;
@@ -1,36 +0,0 @@
1
- //#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js
2
- const normalizeRgbArgs = (args, method) => {
3
- if (args.length !== 3) throw new TypeError(`There must be 3 arguments with "${method}", not ${args.length}`);
4
- const argsA = args.map(Number);
5
- argsA.forEach((arg, index) => {
6
- validateRgbArg(arg, args[index], method);
7
- });
8
- return argsA;
9
- };
10
- const validateRgbArg = (arg, input, method) => {
11
- if (!Number.isInteger(arg) || String(arg) !== input) throw new TypeError(`Argument "${arg}" must be an integer with "${method}"`);
12
- if (arg > MAX_RGB) throw new TypeError(`Argument "${arg}" must be less than ${MAX_RGB} with "${method}"`);
13
- };
14
- const MAX_RGB = 255;
15
- const normalizeHexArgs = (args, method) => {
16
- if (args.length !== 1) throw new TypeError(`There must be exactly one argument with "${method}", not ${args.length}`);
17
- validateHexArg(args[0], method);
18
- return args;
19
- };
20
- const validateHexArg = (arg, method) => {
21
- if (arg.includes("#")) throw new TypeError(`Argument "${arg}" must not include # with "${method}"`);
22
- if (!HEX_LENGTH.has(arg.length)) throw new TypeError(`Argument "${arg}" must have 3 or 6 characters with "${method}"`);
23
- if (!HEX_REGEXP.test(arg)) throw new TypeError(`Argument "${arg}" must be an hexadecimal string with "${method}"`);
24
- };
25
- const HEX_LENGTH = new Set([3, 6]);
26
- const HEX_REGEXP = /^[a-f\d]{3,6}$/iu;
27
- const ARGS_METHODS = {
28
- rgb: normalizeRgbArgs,
29
- bgRgb: normalizeRgbArgs,
30
- hex: normalizeHexArgs,
31
- bgHex: normalizeHexArgs
32
- };
33
-
34
- //#endregion
35
- export { ARGS_METHODS };
36
- //# sourceMappingURL=args.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"args.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js"],"sourcesContent":["\nconst normalizeRgbArgs=(args,method)=>{\nif(args.length!==3){\nthrow new TypeError(\n`There must be 3 arguments with \"${method}\", not ${args.length}`\n)\n}\n\nconst argsA=args.map(Number);\nargsA.forEach((arg,index)=>{\nvalidateRgbArg(arg,args[index],method)\n});\nreturn argsA\n};\n\nconst validateRgbArg=(arg,input,method)=>{\nif(!Number.isInteger(arg)||String(arg)!==input){\nthrow new TypeError(`Argument \"${arg}\" must be an integer with \"${method}\"`)\n}\n\nif(arg>MAX_RGB){\nthrow new TypeError(\n`Argument \"${arg}\" must be less than ${MAX_RGB} with \"${method}\"`\n)\n}\n};\n\nconst MAX_RGB=255;\n\n\nconst normalizeHexArgs=(args,method)=>{\nif(args.length!==1){\nthrow new TypeError(\n`There must be exactly one argument with \"${method}\", not ${args.length}`\n)\n}\n\nvalidateHexArg(args[0],method);\nreturn args\n};\n\nconst validateHexArg=(arg,method)=>{\nif(arg.includes(\"#\")){\nthrow new TypeError(`Argument \"${arg}\" must not include # with \"${method}\"`)\n}\n\nif(!HEX_LENGTH.has(arg.length)){\nthrow new TypeError(\n`Argument \"${arg}\" must have 3 or 6 characters with \"${method}\"`\n)\n}\n\nif(!HEX_REGEXP.test(arg)){\nthrow new TypeError(\n`Argument \"${arg}\" must be an hexadecimal string with \"${method}\"`\n)\n}\n};\n\n\nconst HEX_LENGTH=new Set([3,6]);\nconst HEX_REGEXP=/^[a-f\\d]{3,6}$/iu;\n\n\nexport const ARGS_METHODS={\nrgb:normalizeRgbArgs,\nbgRgb:normalizeRgbArgs,\nhex:normalizeHexArgs,\nbgHex:normalizeHexArgs\n};"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,oBAAkB,MAAK,WAAS;AACtC,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UACV,mCAAmC,OAAO,SAAS,KAAK,SACvD;CAGD,MAAM,QAAM,KAAK,IAAI,OAAO;AAC5B,OAAM,SAAS,KAAI,UAAQ;AAC3B,iBAAe,KAAI,KAAK,QAAO,OAAO;GACpC;AACF,QAAO;;AAGP,MAAM,kBAAgB,KAAI,OAAM,WAAS;AACzC,KAAG,CAAC,OAAO,UAAU,IAAI,IAAE,OAAO,IAAI,KAAG,MACzC,OAAM,IAAI,UAAU,aAAa,IAAI,6BAA6B,OAAO,GAAG;AAG5E,KAAG,MAAI,QACP,OAAM,IAAI,UACV,aAAa,IAAI,sBAAsB,QAAQ,SAAS,OAAO,GAC9D;;AAID,MAAM,UAAQ;AAGd,MAAM,oBAAkB,MAAK,WAAS;AACtC,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UACV,4CAA4C,OAAO,SAAS,KAAK,SAChE;AAGD,gBAAe,KAAK,IAAG,OAAO;AAC9B,QAAO;;AAGP,MAAM,kBAAgB,KAAI,WAAS;AACnC,KAAG,IAAI,SAAS,IAAI,CACpB,OAAM,IAAI,UAAU,aAAa,IAAI,6BAA6B,OAAO,GAAG;AAG5E,KAAG,CAAC,WAAW,IAAI,IAAI,OAAO,CAC9B,OAAM,IAAI,UACV,aAAa,IAAI,sCAAsC,OAAO,GAC7D;AAGD,KAAG,CAAC,WAAW,KAAK,IAAI,CACxB,OAAM,IAAI,UACV,aAAa,IAAI,wCAAwC,OAAO,GAC/D;;AAKD,MAAM,aAAW,IAAI,IAAI,CAAC,GAAE,EAAE,CAAC;AAC/B,MAAM,aAAW;AAGjB,MAAa,eAAa;CAC1B,KAAI;CACJ,OAAM;CACN,KAAI;CACJ,OAAM;CACL"}
@@ -1,32 +0,0 @@
1
- const require_main = require('../../../../../colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs');
2
- const require_args = require('./args.cjs');
3
-
4
- //#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js
5
- const chalkString = (styles, opts) => {
6
- if (typeof styles !== "string") throw new TypeError(`Styles must be a string, not: ${styles}`);
7
- const chalk = require_main.default(opts);
8
- const chalkMethod = styles.trim().split(STYLE_SEPARATOR).reduce(useChalkMethod, chalk);
9
- return addStyles.bind(void 0, chalkMethod);
10
- };
11
- const STYLE_SEPARATOR = /\s+/u;
12
- const useChalkMethod = (chalk, style) => {
13
- const [method, ...args] = style.split(ARGS_SEPARATOR);
14
- if (typeof chalk[method] !== "function") throw new TypeError(`Style "${style}" is unknown.`);
15
- return method in require_args.ARGS_METHODS ? getArgsChalkMethod(chalk, method, args) : getNoArgsChalkMethod(chalk, method, args);
16
- };
17
- const ARGS_SEPARATOR = "-";
18
- const getArgsChalkMethod = (chalk, method, args) => {
19
- const argsA = require_args.ARGS_METHODS[method](args, method);
20
- return chalk[method](...argsA);
21
- };
22
- const getNoArgsChalkMethod = (chalk, method, args) => {
23
- if (args.length !== 0) throw new TypeError(`No arguments "${args[0]}" allowed with "${method}"`);
24
- return chalk[method];
25
- };
26
- const addStyles = (chalkMethod, string) => {
27
- if (typeof string !== "string") throw new TypeError(`Argument must be a string, not: ${string}`);
28
- return chalkMethod(string);
29
- };
30
-
31
- //#endregion
32
- exports.default = chalkString;
@@ -1,33 +0,0 @@
1
- import colorsOption from "../../../../../colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs";
2
- import { ARGS_METHODS } from "./args.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js
5
- const chalkString = (styles, opts) => {
6
- if (typeof styles !== "string") throw new TypeError(`Styles must be a string, not: ${styles}`);
7
- const chalk = colorsOption(opts);
8
- const chalkMethod = styles.trim().split(STYLE_SEPARATOR).reduce(useChalkMethod, chalk);
9
- return addStyles.bind(void 0, chalkMethod);
10
- };
11
- const STYLE_SEPARATOR = /\s+/u;
12
- const useChalkMethod = (chalk, style) => {
13
- const [method, ...args] = style.split(ARGS_SEPARATOR);
14
- if (typeof chalk[method] !== "function") throw new TypeError(`Style "${style}" is unknown.`);
15
- return method in ARGS_METHODS ? getArgsChalkMethod(chalk, method, args) : getNoArgsChalkMethod(chalk, method, args);
16
- };
17
- const ARGS_SEPARATOR = "-";
18
- const getArgsChalkMethod = (chalk, method, args) => {
19
- const argsA = ARGS_METHODS[method](args, method);
20
- return chalk[method](...argsA);
21
- };
22
- const getNoArgsChalkMethod = (chalk, method, args) => {
23
- if (args.length !== 0) throw new TypeError(`No arguments "${args[0]}" allowed with "${method}"`);
24
- return chalk[method];
25
- };
26
- const addStyles = (chalkMethod, string) => {
27
- if (typeof string !== "string") throw new TypeError(`Argument must be a string, not: ${string}`);
28
- return chalkMethod(string);
29
- };
30
-
31
- //#endregion
32
- export { chalkString as default };
33
- //# sourceMappingURL=main.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js"],"sourcesContent":["import colorsOption from\"colors-option\";\n\nimport{ARGS_METHODS}from\"./args.js\";\n\n\n\nconst chalkString=(styles,opts)=>{\nif(typeof styles!==\"string\"){\nthrow new TypeError(`Styles must be a string, not: ${styles}`)\n}\n\nconst chalk=colorsOption(opts);\nconst chalkMethod=styles.\ntrim().\nsplit(STYLE_SEPARATOR).\nreduce(useChalkMethod,chalk);\nreturn addStyles.bind(undefined,chalkMethod)\n};\n\nexport default chalkString;\n\nconst STYLE_SEPARATOR=/\\s+/u;\n\n\n\nconst useChalkMethod=(chalk,style)=>{\nconst[method,...args]=style.split(ARGS_SEPARATOR);\n\nif(typeof chalk[method]!==\"function\"){\nthrow new TypeError(`Style \"${style}\" is unknown.`)\n}\n\nreturn method in ARGS_METHODS?\ngetArgsChalkMethod(chalk,method,args):\ngetNoArgsChalkMethod(chalk,method,args)\n};\n\nconst ARGS_SEPARATOR=\"-\";\n\n\n\nconst getArgsChalkMethod=(chalk,method,args)=>{\nconst argsA=ARGS_METHODS[method](args,method);\nreturn chalk[method](...argsA)\n};\n\n\nconst getNoArgsChalkMethod=(chalk,method,args)=>{\nif(args.length!==0){\nthrow new TypeError(`No arguments \"${args[0]}\" allowed with \"${method}\"`)\n}\n\nreturn chalk[method]\n};\n\nconst addStyles=(chalkMethod,string)=>{\nif(typeof string!==\"string\"){\nthrow new TypeError(`Argument must be a string, not: ${string}`)\n}\n\nreturn chalkMethod(string)\n};"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,MAAM,eAAa,QAAO,SAAO;AACjC,KAAG,OAAO,WAAS,SACnB,OAAM,IAAI,UAAU,iCAAiC,SAAS;CAG9D,MAAM,QAAM,aAAa,KAAK;CAC9B,MAAM,cAAY,OAClB,MAAM,CACN,MAAM,gBAAgB,CACtB,OAAO,gBAAe,MAAM;AAC5B,QAAO,UAAU,KAAK,QAAU,YAAY;;AAK5C,MAAM,kBAAgB;AAItB,MAAM,kBAAgB,OAAM,UAAQ;CACpC,MAAK,CAAC,QAAO,GAAG,QAAM,MAAM,MAAM,eAAe;AAEjD,KAAG,OAAO,MAAM,YAAU,WAC1B,OAAM,IAAI,UAAU,UAAU,MAAM,eAAe;AAGnD,QAAO,UAAU,eACjB,mBAAmB,OAAM,QAAO,KAAK,GACrC,qBAAqB,OAAM,QAAO,KAAK;;AAGvC,MAAM,iBAAe;AAIrB,MAAM,sBAAoB,OAAM,QAAO,SAAO;CAC9C,MAAM,QAAM,aAAa,QAAQ,MAAK,OAAO;AAC7C,QAAO,MAAM,QAAQ,GAAG,MAAM;;AAI9B,MAAM,wBAAsB,OAAM,QAAO,SAAO;AAChD,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UAAU,iBAAiB,KAAK,GAAG,kBAAkB,OAAO,GAAG;AAGzE,QAAO,MAAM;;AAGb,MAAM,aAAW,aAAY,WAAS;AACtC,KAAG,OAAO,WAAS,SACnB,OAAM,IAAI,UAAU,mCAAmC,SAAS;AAGhE,QAAO,YAAY,OAAO"}
@@ -1,133 +0,0 @@
1
- const require_index = require('./vendor/ansi-styles/index.cjs');
2
- const require_index$1 = require('./vendor/supports-color/index.cjs');
3
- const require_utilities = require('./utilities.cjs');
4
-
5
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
6
- const { stdout: stdoutColor, stderr: stderrColor } = require_index$1.default;
7
- const GENERATOR = Symbol("GENERATOR");
8
- const STYLER = Symbol("STYLER");
9
- const IS_EMPTY = Symbol("IS_EMPTY");
10
- const levelMapping = [
11
- "ansi",
12
- "ansi",
13
- "ansi256",
14
- "ansi16m"
15
- ];
16
- const styles = Object.create(null);
17
- const applyOptions = (object, options = {}) => {
18
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
19
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
20
- object.level = options.level === void 0 ? colorLevel : options.level;
21
- };
22
- var Chalk = class {
23
- constructor(options) {
24
- return chalkFactory(options);
25
- }
26
- };
27
- const chalkFactory = (options) => {
28
- const chalk = (...strings) => strings.join(" ");
29
- applyOptions(chalk, options);
30
- Object.setPrototypeOf(chalk, createChalk.prototype);
31
- return chalk;
32
- };
33
- function createChalk(options) {
34
- return chalkFactory(options);
35
- }
36
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
37
- for (const [styleName, style] of Object.entries(require_index.default)) styles[styleName] = { get() {
38
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
39
- Object.defineProperty(this, styleName, { value: builder });
40
- return builder;
41
- } };
42
- styles.visible = { get() {
43
- const builder = createBuilder(this, this[STYLER], true);
44
- Object.defineProperty(this, "visible", { value: builder });
45
- return builder;
46
- } };
47
- const getModelAnsi = (model, level, type, ...arguments_) => {
48
- if (model === "rgb") {
49
- if (level === "ansi16m") return require_index.default[type].ansi16m(...arguments_);
50
- if (level === "ansi256") return require_index.default[type].ansi256(require_index.default.rgbToAnsi256(...arguments_));
51
- return require_index.default[type].ansi(require_index.default.rgbToAnsi(...arguments_));
52
- }
53
- if (model === "hex") return getModelAnsi("rgb", level, type, ...require_index.default.hexToRgb(...arguments_));
54
- return require_index.default[type][model](...arguments_);
55
- };
56
- for (const model of [
57
- "rgb",
58
- "hex",
59
- "ansi256"
60
- ]) {
61
- styles[model] = { get() {
62
- const { level } = this;
63
- return function(...arguments_) {
64
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), require_index.default.color.close, this[STYLER]);
65
- return createBuilder(this, styler, this[IS_EMPTY]);
66
- };
67
- } };
68
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
69
- styles[bgModel] = { get() {
70
- const { level } = this;
71
- return function(...arguments_) {
72
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), require_index.default.bgColor.close, this[STYLER]);
73
- return createBuilder(this, styler, this[IS_EMPTY]);
74
- };
75
- } };
76
- }
77
- const proto = Object.defineProperties(() => {}, {
78
- ...styles,
79
- level: {
80
- enumerable: true,
81
- get() {
82
- return this[GENERATOR].level;
83
- },
84
- set(level) {
85
- this[GENERATOR].level = level;
86
- }
87
- }
88
- });
89
- const createStyler = (open, close, parent) => {
90
- let openAll;
91
- let closeAll;
92
- if (parent === void 0) {
93
- openAll = open;
94
- closeAll = close;
95
- } else {
96
- openAll = parent.openAll + open;
97
- closeAll = close + parent.closeAll;
98
- }
99
- return {
100
- open,
101
- close,
102
- openAll,
103
- closeAll,
104
- parent
105
- };
106
- };
107
- const createBuilder = (self, _styler, _isEmpty) => {
108
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
109
- Object.setPrototypeOf(builder, proto);
110
- builder[GENERATOR] = self;
111
- builder[STYLER] = _styler;
112
- builder[IS_EMPTY] = _isEmpty;
113
- return builder;
114
- };
115
- const applyStyle = (self, string) => {
116
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
117
- let styler = self[STYLER];
118
- if (styler === void 0) return string;
119
- const { openAll, closeAll } = styler;
120
- if (string.includes("\x1B")) while (styler !== void 0) {
121
- string = require_utilities.stringReplaceAll(string, styler.close, styler.open);
122
- styler = styler.parent;
123
- }
124
- const lfIndex = string.indexOf("\n");
125
- if (lfIndex !== -1) string = require_utilities.stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
126
- return openAll + string + closeAll;
127
- };
128
- Object.defineProperties(createChalk.prototype, styles);
129
- const chalk = createChalk();
130
- const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
131
-
132
- //#endregion
133
- exports.Chalk = Chalk;