storybook 10.1.0-alpha.9 → 10.1.0-beta.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 (198) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-SM3UWERX.js → builder-manager-BDAQHXFI.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3C7DZZPX.js +37 -0
  41. package/dist/_node-chunks/chunk-2IIQTGNE.js +6024 -0
  42. package/dist/_node-chunks/chunk-56U5LEMP.js +3043 -0
  43. package/dist/_node-chunks/chunk-7LIRCAQE.js +20 -0
  44. package/dist/_node-chunks/chunk-7RN6TXKP.js +603 -0
  45. package/dist/_node-chunks/chunk-7SJ7PZNL.js +4523 -0
  46. package/dist/_node-chunks/{chunk-HHSTA6QS.js → chunk-BG4RDXG7.js} +8 -10
  47. package/dist/_node-chunks/chunk-CBQKMXLQ.js +18 -0
  48. package/dist/_node-chunks/chunk-CN2IW2KQ.js +1564 -0
  49. package/dist/_node-chunks/chunk-CQMAU6UQ.js +943 -0
  50. package/dist/_node-chunks/{chunk-EBUEXRH5.js → chunk-D6ND3TVY.js} +116 -276
  51. package/dist/_node-chunks/chunk-DC355CYB.js +61 -0
  52. package/dist/_node-chunks/{chunk-SGM3ZCCT.js → chunk-EVK2SBW5.js} +292 -688
  53. package/dist/_node-chunks/chunk-IXWEUXJ2.js +119 -0
  54. package/dist/_node-chunks/{chunk-F6EFOEC7.js → chunk-KVRF22SH.js} +469 -983
  55. package/dist/_node-chunks/chunk-LEDP4QQW.js +919 -0
  56. package/dist/_node-chunks/{chunk-GHIBZRKD.js → chunk-MMVV6DGG.js} +8133 -8887
  57. package/dist/_node-chunks/chunk-O5CGEVRI.js +29 -0
  58. package/dist/_node-chunks/chunk-OZZO56XN.js +299 -0
  59. package/dist/_node-chunks/chunk-POT2EVGD.js +78 -0
  60. package/dist/_node-chunks/chunk-R5YGFSTV.js +3781 -0
  61. package/dist/_node-chunks/chunk-SQCTM2OS.js +23 -0
  62. package/dist/_node-chunks/chunk-UFOFO5H7.js +54 -0
  63. package/dist/_node-chunks/chunk-VBF7ALJF.js +72 -0
  64. package/dist/_node-chunks/chunk-W6MAMTUF.js +70 -0
  65. package/dist/_node-chunks/chunk-WURL4XOT.js +46662 -0
  66. package/dist/_node-chunks/chunk-XGK6MVKR.js +61 -0
  67. package/dist/_node-chunks/chunk-YV3GDSDT.js +765 -0
  68. package/dist/_node-chunks/{chunk-ATDHMMIZ.js → chunk-YWV55YW3.js} +15 -24
  69. package/dist/_node-chunks/dist-KEP4IFRN.js +121 -0
  70. package/dist/_node-chunks/globby-4WUBTDCN.js +3452 -0
  71. package/dist/_node-chunks/lib-JVOEKTYM.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-C5WFYYXR.js +14329 -0
  73. package/dist/_node-chunks/p-limit-LDY632RS.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +601 -1548
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2908 -8518
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11511 -10953
  106. package/dist/manager-api/index.d.ts +1811 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +68 -69
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-H5QSGQLK.js +0 -18
  161. package/dist/_node-chunks/chunk-3THWHQOC.js +0 -61
  162. package/dist/_node-chunks/chunk-45YUOLTU.js +0 -69
  163. package/dist/_node-chunks/chunk-4QSNCPAU.js +0 -64656
  164. package/dist/_node-chunks/chunk-744PQSOU.js +0 -79
  165. package/dist/_node-chunks/chunk-74Z2U7QG.js +0 -1544
  166. package/dist/_node-chunks/chunk-7MB7TFPO.js +0 -1198
  167. package/dist/_node-chunks/chunk-A7GS4RFT.js +0 -697
  168. package/dist/_node-chunks/chunk-BIA3A5UM.js +0 -61
  169. package/dist/_node-chunks/chunk-C5G7CLWX.js +0 -1657
  170. package/dist/_node-chunks/chunk-DLFUKMYJ.js +0 -1531
  171. package/dist/_node-chunks/chunk-EMRGRXKT.js +0 -111
  172. package/dist/_node-chunks/chunk-EX46EHHY.js +0 -420
  173. package/dist/_node-chunks/chunk-F76QKNOJ.js +0 -304
  174. package/dist/_node-chunks/chunk-HDCRUTEF.js +0 -220
  175. package/dist/_node-chunks/chunk-HUYAOIPH.js +0 -90
  176. package/dist/_node-chunks/chunk-IBJZQZJC.js +0 -101
  177. package/dist/_node-chunks/chunk-KZN2RDDT.js +0 -6712
  178. package/dist/_node-chunks/chunk-LYUNFU3F.js +0 -4741
  179. package/dist/_node-chunks/chunk-N44SIS6K.js +0 -28
  180. package/dist/_node-chunks/chunk-NILZM6KR.js +0 -18
  181. package/dist/_node-chunks/chunk-PC4ZRP6W.js +0 -34
  182. package/dist/_node-chunks/chunk-TJNGOQUH.js +0 -4272
  183. package/dist/_node-chunks/chunk-UBSYLHIL.js +0 -1250
  184. package/dist/_node-chunks/chunk-UTCLXPOC.js +0 -1518
  185. package/dist/_node-chunks/chunk-WOXXODXP.js +0 -5029
  186. package/dist/_node-chunks/chunk-XC4MEUA6.js +0 -1586
  187. package/dist/_node-chunks/chunk-YRXXMKRR.js +0 -2256
  188. package/dist/_node-chunks/dist-SL73W244.js +0 -175
  189. package/dist/_node-chunks/globby-ZSHAUQZ5.js +0 -5222
  190. package/dist/_node-chunks/lib-U2VIPUTI.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-ZLHD33JK.js +0 -22017
  192. package/dist/_node-chunks/p-limit-K5BS5MSV.js +0 -168
  193. package/dist/_node-chunks/plugin-5PD4YIUH.js +0 -129
  194. package/dist/_node-chunks/plugin-MONDT2WL.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-EUZJRG3W.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-T4LDXEHE.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -1,8 +1,32 @@
1
1
  /// <reference types="node" />
2
+ import { Readable, Writable } from 'node:stream';
2
3
  import { EventEmitter } from 'events';
3
4
  import { Buffer } from 'node:buffer';
4
5
  import { ChildProcess } from 'node:child_process';
5
- import { Readable, Writable } from 'node:stream';
6
+
7
+ interface CommonOptions {
8
+ input?: Readable;
9
+ output?: Writable;
10
+ signal?: AbortSignal;
11
+ }
12
+
13
+ type BoxAlignment = 'left' | 'center' | 'right';
14
+ interface BoxOptions extends CommonOptions {
15
+ contentAlign?: BoxAlignment;
16
+ titleAlign?: BoxAlignment;
17
+ width?: number | 'auto';
18
+ titlePadding?: number;
19
+ contentPadding?: number;
20
+ rounded?: boolean;
21
+ includePrefix?: boolean;
22
+ formatBorder?: (text: string) => string;
23
+ }
24
+
25
+ interface LogMessageOptions extends CommonOptions {
26
+ symbol?: string;
27
+ spacing?: number;
28
+ secondarySymbol?: string;
29
+ }
6
30
 
7
31
  declare namespace npmlog {
8
32
  // TODO: newStream, newGroup, setGaugeTemplate and setGaugeTemplateSet need to be added
@@ -144,6 +168,11 @@ interface TaskLogInstance {
144
168
  showLog?: boolean;
145
169
  }) => void;
146
170
  error: (message: string) => void;
171
+ group: (title: string) => {
172
+ message: (text: string, options?: any) => void;
173
+ success: (message: string) => void;
174
+ error: (message: string) => void;
175
+ };
147
176
  }
148
177
  interface SpinnerOptions {
149
178
  /** The id of the task, to be used by the log tracker. */
@@ -371,24 +400,23 @@ ExecaChildPromise<StdoutStderrType> &
371
400
  Promise<ExecaReturnValue<StdoutStderrType>>;
372
401
 
373
402
  declare const prompt: {
374
- executeTask: (childProcessFactories: (() => ExecaChildProcess) | (() => ExecaChildProcess)[], { id, intro, error, success, limitLines, }: {
375
- id: string;
403
+ executeTask: (childProcessFactories: ((signal?: AbortSignal) => ExecaChildProcess) | ((signal?: AbortSignal) => ExecaChildProcess)[], { intro, error, success, abortable, }: {
376
404
  intro: string;
377
405
  error: string;
378
406
  success: string;
379
- limitLines?: number;
407
+ abortable?: boolean;
380
408
  }) => Promise<void>;
381
- executeTaskWithSpinner: (childProcessFactories: (() => ExecaChildProcess) | (() => ExecaChildProcess)[], { id, intro, error, success }: {
409
+ executeTaskWithSpinner: (childProcessFactories: ((signal?: AbortSignal) => ExecaChildProcess) | ((signal?: AbortSignal) => ExecaChildProcess)[], { id, intro, error, success, abortable, }: {
382
410
  id: string;
383
411
  intro: string;
384
412
  error: string;
385
413
  success: string;
414
+ abortable?: boolean;
386
415
  }) => Promise<void>;
387
- setPromptLibrary: (library: "clack" | "prompts") => void;
388
- getPromptLibrary: () => "clack" | "prompts";
416
+ setPromptLibrary: (library: "clack") => void;
417
+ getPromptLibrary: () => "clack";
389
418
  getPromptProvider: () => PromptProvider;
390
419
  isClackEnabled: () => boolean;
391
- isPromptsEnabled: () => boolean;
392
420
  getPreferredStdio: () => "inherit" | "pipe";
393
421
  text: (options: TextPromptOptions, promptOptions?: PromptOptions) => Promise<string>;
394
422
  confirm: (options: ConfirmPromptOptions, promptOptions?: PromptOptions) => Promise<boolean>;
@@ -411,13 +439,10 @@ interface LogEntry {
411
439
  */
412
440
  declare class LogTracker {
413
441
  #private;
414
- constructor();
415
442
  /** Enables writing logs to file. */
416
443
  enableLogWriting(): void;
417
444
  /** Returns whether logs should be written to file. */
418
445
  get shouldWriteLogsToFile(): boolean;
419
- /** Returns the configured log file path. */
420
- get logFilePath(): string;
421
446
  /** Returns a copy of all stored logs. */
422
447
  get logs(): LogEntry[];
423
448
  /**
@@ -437,7 +462,7 @@ declare class LogTracker {
437
462
  * @returns The path where logs were written, by default is debug-storybook.log in current working
438
463
  * directory
439
464
  */
440
- writeToFile(filePath?: string): Promise<string>;
465
+ writeToFile(filePath: string | boolean | undefined): Promise<string>;
441
466
  }
442
467
  declare const logTracker: LogTracker;
443
468
 
@@ -450,8 +475,156 @@ declare const CLI_COLORS: {
450
475
  info: Formatter;
451
476
  debug: Formatter;
452
477
  cta: Formatter;
478
+ muted: Formatter;
479
+ storybook: (text: string) => string;
453
480
  };
454
481
 
482
+ interface ConsoleLoggerOptions {
483
+ prefix: string;
484
+ color: 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite' | 'bgBlackBright' | 'bgRedBright' | 'bgGreenBright' | 'bgYellowBright' | 'bgBlueBright' | 'bgMagentaBright' | 'bgCyanBright' | 'bgWhiteBright';
485
+ }
486
+ declare class ConsoleLogger implements Console {
487
+ Console: typeof ConsoleLogger;
488
+ protected timers: Map<string, number>;
489
+ protected counters: Map<string, number>;
490
+ protected lastStatusLine: string | null;
491
+ protected statusLineCount: number;
492
+ protected get prefix(): string;
493
+ protected get color(): (text: string) => string;
494
+ protected formatMessage(...data: any[]): string;
495
+ assert(condition?: boolean, ...data: any[]): void;
496
+ /**
497
+ * The **`console.clear()`** static method clears the console if possible.
498
+ *
499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
500
+ */
501
+ clear(): void;
502
+ /**
503
+ * The **`console.count()`** static method logs the number of times that this particular call to
504
+ * `count()` has been called.
505
+ *
506
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
507
+ */
508
+ count(label?: string): void;
509
+ /**
510
+ * The **`console.countReset()`** static method resets counter used with console/count_static.
511
+ *
512
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
513
+ */
514
+ countReset(label?: string): void;
515
+ /**
516
+ * The **`console.debug()`** static method outputs a message to the console at the 'debug' log
517
+ * level.
518
+ *
519
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
520
+ */
521
+ debug(...data: any[]): void;
522
+ /**
523
+ * The **`console.dir()`** static method displays a list of the properties of the specified
524
+ * JavaScript object.
525
+ *
526
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
527
+ */
528
+ dir(item?: any, options?: any): void;
529
+ /**
530
+ * The **`console.dirxml()`** static method displays an interactive tree of the descendant
531
+ * elements of the specified XML/HTML element.
532
+ *
533
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
534
+ */
535
+ dirxml(...data: any[]): void;
536
+ /**
537
+ * The **`console.error()`** static method outputs a message to the console at the 'error' log
538
+ * level.
539
+ *
540
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
541
+ */
542
+ error(...data: any[]): void;
543
+ /**
544
+ * The **`console.group()`** static method creates a new inline group in the Web console log,
545
+ * causing any subsequent console messages to be indented by an additional level, until
546
+ * console/groupEnd_static is called.
547
+ *
548
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
549
+ */
550
+ group(...data: any[]): void;
551
+ /**
552
+ * The **`console.groupCollapsed()`** static method creates a new inline group in the console.
553
+ *
554
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
555
+ */
556
+ groupCollapsed(...data: any[]): void;
557
+ /**
558
+ * The **`console.groupEnd()`** static method exits the current inline group in the console.
559
+ *
560
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
561
+ */
562
+ groupEnd(): void;
563
+ /**
564
+ * The **`console.info()`** static method outputs a message to the console at the 'info' log
565
+ * level.
566
+ *
567
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
568
+ */
569
+ info(...data: any[]): void;
570
+ /**
571
+ * The **`console.log()`** static method outputs a message to the console.
572
+ *
573
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
574
+ */
575
+ log(...data: any[]): void;
576
+ /**
577
+ * The **`console.table()`** static method displays tabular data as a table.
578
+ *
579
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
580
+ */
581
+ table(tabularData?: any, properties?: string[]): void;
582
+ /**
583
+ * The **`console.time()`** static method starts a timer you can use to track how long an
584
+ * operation takes.
585
+ *
586
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
587
+ */
588
+ time(label?: string): void;
589
+ /**
590
+ * The **`console.timeEnd()`** static method stops a timer that was previously started by calling
591
+ * console/time_static.
592
+ *
593
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
594
+ */
595
+ timeEnd(label?: string): void;
596
+ /**
597
+ * The **`console.timeLog()`** static method logs the current value of a timer that was previously
598
+ * started by calling console/time_static.
599
+ *
600
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
601
+ */
602
+ timeLog(label?: string, ...data: any[]): void;
603
+ timeStamp(label?: string): void;
604
+ /**
605
+ * The **`console.trace()`** static method outputs a stack trace to the console.
606
+ *
607
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
608
+ */
609
+ trace(...data: any[]): void;
610
+ /**
611
+ * The **`console.warn()`** static method outputs a warning message to the console at the
612
+ * 'warning' log level.
613
+ *
614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
615
+ */
616
+ warn(...data: any[]): void;
617
+ profile(label?: string): void;
618
+ profileEnd(label?: string): void;
619
+ }
620
+ declare class StyledConsoleLogger extends ConsoleLogger {
621
+ private _prefix;
622
+ private _color;
623
+ constructor(options: ConsoleLoggerOptions);
624
+ protected get prefix(): string;
625
+ protected get color(): Formatter;
626
+ }
627
+
455
628
  /** @deprecated Use CLI_COLORS instead */
456
629
  declare const colors: {
457
630
  pink: (text: string) => string;
@@ -464,9 +637,8 @@ declare const colors: {
464
637
  };
465
638
  declare const logger: {
466
639
  verbose: (message: string) => void;
467
- info: (message: string) => void;
468
- plain: (message: string) => void;
469
640
  line: (count?: number) => void;
641
+ /** For non-critical issues or warnings */
470
642
  warn: (message: string) => void;
471
643
  trace: ({ message, time }: {
472
644
  message: string;
@@ -477,16 +649,12 @@ declare const logger: {
477
649
  setLogLevel: (level: LogLevel) => void;
478
650
  getLogLevel: () => LogLevel;
479
651
  shouldLog: (level: LogLevel) => boolean;
480
- debug: (...args: any[]) => void;
481
- log: (...args: any[]) => void;
482
- logBox: (message: string, options?: {
483
- borderStyle?: "round" | "none";
484
- padding?: number;
652
+ debug: (message: any) => void;
653
+ log: (message?: string | string[] | undefined, args_1?: LogMessageOptions | undefined) => void;
654
+ info: (message: string, opts?: LogMessageOptions | undefined) => void;
655
+ logBox: (message: string, { title, ...options }?: {
485
656
  title?: string;
486
- titleAlignment?: "left" | "center" | "right";
487
- borderColor?: string;
488
- backgroundColor?: string;
489
- }) => void;
657
+ } & BoxOptions) => void;
490
658
  intro: (message: string) => void;
491
659
  outro: (message: string) => void;
492
660
  step: (message: string) => void;
@@ -507,4 +675,4 @@ declare const once: {
507
675
  };
508
676
  declare const deprecate: (message: string) => void;
509
677
 
510
- export { CLI_COLORS, type SpinnerInstance, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
678
+ export { CLI_COLORS, ConsoleLogger, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };