@forge/cli-shared 10.0.0-next.12 → 10.0.0-next.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 (227) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/out/app-logs/graphql-client.d.ts +2 -2
  3. package/out/app-logs/graphql-client.d.ts.map +1 -1
  4. package/out/app-logs/graphql-client.js +9 -17
  5. package/out/app-logs/index.d.ts +2 -2
  6. package/out/app-logs/index.d.ts.map +1 -1
  7. package/out/app-logs/index.js +2 -5
  8. package/out/app-logs/view-logs.d.ts +4 -4
  9. package/out/app-logs/view-logs.d.ts.map +1 -1
  10. package/out/app-logs/view-logs.js +8 -12
  11. package/out/apps/app-config.d.ts +2 -2
  12. package/out/apps/app-config.d.ts.map +1 -1
  13. package/out/apps/app-config.js +13 -20
  14. package/out/apps/create-an-app.d.ts +4 -4
  15. package/out/apps/create-an-app.d.ts.map +1 -1
  16. package/out/apps/create-an-app.js +6 -11
  17. package/out/apps/create-app-graphql-client.d.ts +2 -2
  18. package/out/apps/create-app-graphql-client.d.ts.map +1 -1
  19. package/out/apps/create-app-graphql-client.js +9 -14
  20. package/out/apps/get-app-owner.d.ts +4 -4
  21. package/out/apps/get-app-owner.d.ts.map +1 -1
  22. package/out/apps/get-app-owner.js +8 -13
  23. package/out/apps/index.d.ts +9 -9
  24. package/out/apps/index.d.ts.map +1 -1
  25. package/out/apps/index.js +9 -12
  26. package/out/apps/package-installer.d.ts +1 -1
  27. package/out/apps/package-installer.d.ts.map +1 -1
  28. package/out/apps/package-installer.js +9 -14
  29. package/out/apps/register-app.d.ts +4 -4
  30. package/out/apps/register-app.d.ts.map +1 -1
  31. package/out/apps/register-app.js +9 -13
  32. package/out/apps/sites.js +1 -4
  33. package/out/apps/template-module.js +27 -33
  34. package/out/apps/template.d.ts +3 -3
  35. package/out/apps/template.d.ts.map +1 -1
  36. package/out/apps/template.js +36 -47
  37. package/out/ari/ari.js +48 -63
  38. package/out/ari/index.d.ts +1 -1
  39. package/out/ari/index.d.ts.map +1 -1
  40. package/out/ari/index.js +1 -4
  41. package/out/auth/authenticator.js +2 -6
  42. package/out/auth/index.d.ts +3 -3
  43. package/out/auth/index.d.ts.map +1 -1
  44. package/out/auth/index.js +3 -6
  45. package/out/auth/instruction.js +3 -6
  46. package/out/auth/personal/credential-store.d.ts +20 -26
  47. package/out/auth/personal/credential-store.d.ts.map +1 -1
  48. package/out/auth/personal/credential-store.js +219 -141
  49. package/out/auth/personal/index.d.ts +6 -6
  50. package/out/auth/personal/index.d.ts.map +1 -1
  51. package/out/auth/personal/index.js +6 -9
  52. package/out/auth/personal/login.d.ts +3 -3
  53. package/out/auth/personal/login.d.ts.map +1 -1
  54. package/out/auth/personal/login.js +1 -5
  55. package/out/auth/personal/logout.d.ts +1 -1
  56. package/out/auth/personal/logout.d.ts.map +1 -1
  57. package/out/auth/personal/logout.js +1 -5
  58. package/out/auth/personal/me-graphql-client.d.ts +3 -3
  59. package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
  60. package/out/auth/personal/me-graphql-client.js +7 -12
  61. package/out/auth/personal/token-authenticator.d.ts +3 -3
  62. package/out/auth/personal/token-authenticator.d.ts.map +1 -1
  63. package/out/auth/personal/token-authenticator.js +10 -14
  64. package/out/auth/personal/user-repository.d.ts +4 -4
  65. package/out/auth/personal/user-repository.d.ts.map +1 -1
  66. package/out/auth/personal/user-repository.js +5 -9
  67. package/out/cache/cached-conf.d.ts.map +1 -1
  68. package/out/cache/cached-conf.js +5 -10
  69. package/out/cache/index.d.ts +1 -1
  70. package/out/cache/index.d.ts.map +1 -1
  71. package/out/cache/index.js +1 -4
  72. package/out/config/config-codec-types.js +1 -2
  73. package/out/config/config-file-section-reader.d.ts +3 -3
  74. package/out/config/config-file-section-reader.d.ts.map +1 -1
  75. package/out/config/config-file-section-reader.js +4 -10
  76. package/out/config/config-file-section-writer.d.ts +3 -3
  77. package/out/config/config-file-section-writer.d.ts.map +1 -1
  78. package/out/config/config-file-section-writer.js +2 -7
  79. package/out/config/config-file.d.ts +3 -3
  80. package/out/config/config-file.d.ts.map +1 -1
  81. package/out/config/config-file.js +40 -49
  82. package/out/config/config-section.js +4 -11
  83. package/out/config/config.d.ts +1 -1
  84. package/out/config/config.d.ts.map +1 -1
  85. package/out/config/config.js +7 -13
  86. package/out/config/index.d.ts +6 -6
  87. package/out/config/index.d.ts.map +1 -1
  88. package/out/config/index.js +6 -9
  89. package/out/file-system/archiver.d.ts +2 -2
  90. package/out/file-system/archiver.d.ts.map +1 -1
  91. package/out/file-system/archiver.js +20 -29
  92. package/out/file-system/file-system-reader.d.ts.map +1 -1
  93. package/out/file-system/file-system-reader.js +21 -26
  94. package/out/file-system/file-system-writer.js +5 -10
  95. package/out/file-system/index.d.ts +5 -5
  96. package/out/file-system/index.d.ts.map +1 -1
  97. package/out/file-system/index.js +5 -8
  98. package/out/file-system/util.js +1 -4
  99. package/out/file-system/zip-accessor.js +3 -8
  100. package/out/graphql/app-environment-graphql-client.d.ts +2 -2
  101. package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
  102. package/out/graphql/app-environment-graphql-client.js +10 -16
  103. package/out/graphql/app-oauth-client-id-graphql-client.d.ts +1 -1
  104. package/out/graphql/app-oauth-client-id-graphql-client.d.ts.map +1 -1
  105. package/out/graphql/app-oauth-client-id-graphql-client.js +6 -10
  106. package/out/graphql/debugging-graphql-runner.d.ts +2 -2
  107. package/out/graphql/debugging-graphql-runner.d.ts.map +1 -1
  108. package/out/graphql/debugging-graphql-runner.js +5 -10
  109. package/out/graphql/gateway.js +15 -23
  110. package/out/graphql/get-mutation-error.js +4 -8
  111. package/out/graphql/gql/gql.d.ts +82 -82
  112. package/out/graphql/gql/gql.d.ts.map +1 -1
  113. package/out/graphql/gql/gql.js +2 -6
  114. package/out/graphql/gql/graphql.d.ts +4 -0
  115. package/out/graphql/gql/graphql.d.ts.map +1 -1
  116. package/out/graphql/gql/graphql.js +83 -88
  117. package/out/graphql/gql/index.d.ts +1 -1
  118. package/out/graphql/gql/index.d.ts.map +1 -1
  119. package/out/graphql/gql/index.js +1 -4
  120. package/out/graphql/graphql-client.js +1 -2
  121. package/out/graphql/graphql-domain-types.d.ts +1 -1
  122. package/out/graphql/graphql-domain-types.d.ts.map +1 -1
  123. package/out/graphql/graphql-domain-types.js +1 -2
  124. package/out/graphql/graphql-runtime-enums.js +16 -19
  125. package/out/graphql/index.d.ts +12 -12
  126. package/out/graphql/index.d.ts.map +1 -1
  127. package/out/graphql/index.js +12 -17
  128. package/out/graphql/minimal-graphql-runner.d.ts +4 -4
  129. package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
  130. package/out/graphql/minimal-graphql-runner.js +31 -40
  131. package/out/graphql/mutation-aware-graphql-client.d.ts +2 -2
  132. package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
  133. package/out/graphql/mutation-aware-graphql-client.js +4 -10
  134. package/out/graphql/path-based-graphql-client-resolver.d.ts +1 -1
  135. package/out/graphql/path-based-graphql-client-resolver.d.ts.map +1 -1
  136. package/out/graphql/path-based-graphql-client-resolver.js +3 -7
  137. package/out/http-client/feedback-post-client.js +1 -5
  138. package/out/http-client/file-uploader.d.ts +1 -1
  139. package/out/http-client/file-uploader.d.ts.map +1 -1
  140. package/out/http-client/file-uploader.js +11 -18
  141. package/out/http-client/global-edge-http-client.js +8 -14
  142. package/out/http-client/index.d.ts +5 -5
  143. package/out/http-client/index.d.ts.map +1 -1
  144. package/out/http-client/index.js +5 -8
  145. package/out/http-client/node-request.js +10 -16
  146. package/out/http-client/trace.js +1 -4
  147. package/out/index.d.ts +13 -13
  148. package/out/index.d.ts.map +1 -1
  149. package/out/index.js +13 -16
  150. package/out/service/bridge-script-service.js +5 -9
  151. package/out/service/i18n-resource-bundling-service.js +24 -30
  152. package/out/service/iframe-resizer-script-service.js +5 -9
  153. package/out/service/index.d.ts +5 -5
  154. package/out/service/index.d.ts.map +1 -1
  155. package/out/service/index.js +5 -8
  156. package/out/service/statsig-service.d.ts +1 -1
  157. package/out/service/statsig-service.d.ts.map +1 -1
  158. package/out/service/statsig-service.js +9 -15
  159. package/out/service/supported-products-service.d.ts +2 -2
  160. package/out/service/supported-products-service.d.ts.map +1 -1
  161. package/out/service/supported-products-service.js +13 -18
  162. package/out/shared/assertUnreachable.js +1 -4
  163. package/out/shared/assistant-cli.d.ts +1 -1
  164. package/out/shared/assistant-cli.d.ts.map +1 -1
  165. package/out/shared/assistant-cli.js +15 -24
  166. package/out/shared/cli-details.js +6 -11
  167. package/out/shared/developer-console.js +12 -18
  168. package/out/shared/directories.js +4 -8
  169. package/out/shared/environment.d.ts +1 -1
  170. package/out/shared/environment.d.ts.map +1 -1
  171. package/out/shared/environment.js +19 -25
  172. package/out/shared/error-handling.d.ts +1 -1
  173. package/out/shared/error-handling.d.ts.map +1 -1
  174. package/out/shared/error-handling.js +24 -44
  175. package/out/shared/forge-cli-attribution.js +6 -11
  176. package/out/shared/index.d.ts +13 -13
  177. package/out/shared/index.d.ts.map +1 -1
  178. package/out/shared/index.js +13 -16
  179. package/out/shared/installations.js +1 -4
  180. package/out/shared/pause.js +1 -5
  181. package/out/shared/product.d.ts.map +1 -1
  182. package/out/shared/product.js +5 -10
  183. package/out/shared/read-app-config-files.d.ts +1 -1
  184. package/out/shared/read-app-config-files.d.ts.map +1 -1
  185. package/out/shared/read-app-config-files.js +6 -12
  186. package/out/shared/runner-signals.js +1 -5
  187. package/out/shared/test.d.ts +1 -1
  188. package/out/shared/test.d.ts.map +1 -1
  189. package/out/shared/test.js +24 -29
  190. package/out/tunnel/docker-compose-lifecycle.d.ts +3 -3
  191. package/out/tunnel/docker-compose-lifecycle.d.ts.map +1 -1
  192. package/out/tunnel/docker-compose-lifecycle.js +53 -70
  193. package/out/tunnel/index.d.ts +2 -2
  194. package/out/tunnel/index.d.ts.map +1 -1
  195. package/out/tunnel/index.js +2 -5
  196. package/out/tunnel/tunnel-options.js +13 -18
  197. package/out/ui/command-line-ui.d.ts +2 -2
  198. package/out/ui/command-line-ui.d.ts.map +1 -1
  199. package/out/ui/command-line-ui.js +53 -58
  200. package/out/ui/hint-rotation.d.ts +2 -2
  201. package/out/ui/hint-rotation.d.ts.map +1 -1
  202. package/out/ui/hint-rotation.js +2 -6
  203. package/out/ui/index.d.ts +8 -8
  204. package/out/ui/index.d.ts.map +1 -1
  205. package/out/ui/index.js +8 -11
  206. package/out/ui/log-color.js +16 -20
  207. package/out/ui/log-symbols.js +10 -13
  208. package/out/ui/logger.js +2 -6
  209. package/out/ui/multiple-table-prompt.d.ts +1 -1
  210. package/out/ui/multiple-table-prompt.d.ts.map +1 -1
  211. package/out/ui/multiple-table-prompt.js +13 -20
  212. package/out/ui/runtime-log.js +12 -16
  213. package/out/ui/single-table-prompt.d.ts +1 -1
  214. package/out/ui/single-table-prompt.d.ts.map +1 -1
  215. package/out/ui/single-table-prompt.js +12 -19
  216. package/out/ui/table-prompt.d.ts +1 -1
  217. package/out/ui/table-prompt.d.ts.map +1 -1
  218. package/out/ui/table-prompt.js +11 -16
  219. package/out/ui/table.d.ts.map +1 -1
  220. package/out/ui/table.js +4 -7
  221. package/out/ui/text.d.ts +4 -13
  222. package/out/ui/text.d.ts.map +1 -1
  223. package/out/ui/text.js +213 -242
  224. package/out/ui/ui.d.ts +2 -2
  225. package/out/ui/ui.d.ts.map +1 -1
  226. package/out/ui/ui.js +1 -2
  227. package/package.json +2 -2
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommandLineUI = void 0;
4
- const tslib_1 = require("tslib");
5
- const fs = tslib_1.__importStar(require("fs"));
6
- const tty = tslib_1.__importStar(require("tty"));
7
- const table_1 = require("./table");
8
- const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
9
- const inquirer_autocomplete_prompt_1 = tslib_1.__importDefault(require("inquirer-autocomplete-prompt"));
10
- const ora_1 = tslib_1.__importDefault(require("ora"));
11
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
12
- const yaml_1 = tslib_1.__importDefault(require("yaml"));
13
- const log_color_1 = require("./log-color");
14
- const log_symbols_1 = tslib_1.__importDefault(require("./log-symbols"));
15
- const logger_1 = require("./logger");
16
- const text_1 = require("./text");
17
- const multiple_table_prompt_1 = require("./multiple-table-prompt");
18
- const single_table_prompt_1 = require("./single-table-prompt");
19
- const shared_1 = require("../shared");
20
- const hint_rotation_1 = require("./hint-rotation");
1
+ import * as fs from 'fs';
2
+ import * as tty from 'tty';
3
+ import { ForgeTable as Table } from './table.js';
4
+ import inquirer from 'inquirer';
5
+ import autocompletePrompt from 'inquirer-autocomplete-prompt';
6
+ import ora from 'ora';
7
+ import chalk from 'chalk';
8
+ import YAML from 'yaml';
9
+ import { LogColor, TableStyle } from './log-color.js';
10
+ import logSymbols from './log-symbols.js';
11
+ import { errorMessage } from './logger.js';
12
+ import { Text, itemList } from './text.js';
13
+ import { MultipleChoiceTablePrompt } from './multiple-table-prompt.js';
14
+ import { SingleChoiceTablePrompt } from './single-table-prompt.js';
15
+ import { MissingInputError, UIPromptError } from '../shared/index.js';
16
+ import { createHintRotation, selectHintsForCategory } from './hint-rotation.js';
21
17
  var ProgressLogType;
22
18
  (function (ProgressLogType) {
23
19
  ProgressLogType[ProgressLogType["startText"] = 0] = "startText";
@@ -29,7 +25,7 @@ function wait(timeMs) {
29
25
  }
30
26
  const ELLIPSIS_FRAMES = ['.', '..', '...'];
31
27
  const ELLIPSIS_INTERVAL_MS = 400;
32
- class CommandLineUI {
28
+ export class CommandLineUI {
33
29
  verbose;
34
30
  customEffectsEnabled;
35
31
  nonInteractive;
@@ -54,7 +50,7 @@ class CommandLineUI {
54
50
  this.verbose = verbose;
55
51
  this.customEffectsEnabled = customEffectsEnabled;
56
52
  this.nonInteractive = nonInteractive;
57
- this.spinner = spinner || (0, ora_1.default)({ discardStdin: false });
53
+ this.spinner = spinner || ora({ discardStdin: false });
58
54
  this.logger = logger || console;
59
55
  this.promptInternal = this.createPromptModule();
60
56
  this.statsigService = statsigService || null;
@@ -84,20 +80,20 @@ class CommandLineUI {
84
80
  this.cachedSpinnerConfig = { interval: 300, frames };
85
81
  }
86
82
  })
87
- .catch(() => this.debug(text_1.Text.settings.customEffects.setupError));
83
+ .catch(() => this.debug(Text.settings.customEffects.setupError));
88
84
  }
89
85
  getSpinner() {
90
86
  return this.cachedSpinnerConfig;
91
87
  }
92
88
  async prompt(questions, initialAnswers) {
93
89
  if (this.nonInteractive?.()) {
94
- throw new shared_1.MissingInputError(text_1.Text.nonInteractive.error.promptReached(CommandLineUI.questionMessage(questions)));
90
+ throw new MissingInputError(Text.nonInteractive.error.promptReached(CommandLineUI.questionMessage(questions)));
95
91
  }
96
92
  try {
97
93
  return await this.promptInternal(questions, initialAnswers);
98
94
  }
99
95
  catch (e) {
100
- throw new shared_1.UIPromptError(e.message, e.isTtyError ?? false);
96
+ throw new UIPromptError(e.message, e.isTtyError ?? false);
101
97
  }
102
98
  }
103
99
  static questionMessage(questions) {
@@ -152,13 +148,13 @@ class CommandLineUI {
152
148
  this.statsigService
153
149
  ?.getHints()
154
150
  .then((hints) => this.rotateHints(hints ?? [], generation, category))
155
- .catch(() => this.debug(text_1.Text.hints.loadError));
151
+ .catch(() => this.debug(Text.hints.loadError));
156
152
  }
157
153
  rotateHints(hints, generation, category) {
158
154
  if (generation !== this.hintGeneration) {
159
155
  return;
160
156
  }
161
- const nextHint = (0, hint_rotation_1.createHintRotation)((0, hint_rotation_1.selectHintsForCategory)(hints, category));
157
+ const nextHint = createHintRotation(selectHintsForCategory(hints, category));
162
158
  let renderedHint = false;
163
159
  const showNextHint = () => {
164
160
  const text = nextHint();
@@ -167,7 +163,7 @@ class CommandLineUI {
167
163
  return;
168
164
  }
169
165
  this.stripHintLine();
170
- this.hintLine = '\n ' + chalk_1.default.dim('💡 ' + text);
166
+ this.hintLine = '\n ' + chalk.dim('💡 ' + text);
171
167
  this.spinner.text += this.hintLine;
172
168
  renderedHint = true;
173
169
  };
@@ -243,7 +239,7 @@ class CommandLineUI {
243
239
  if (!this.traceEnabled) {
244
240
  return;
245
241
  }
246
- const color = log_color_1.LogColor.trace(message);
242
+ const color = LogColor.trace(message);
247
243
  const msg = this.insideProgress ? ' ' + color : color;
248
244
  this.log(msg);
249
245
  }
@@ -251,23 +247,23 @@ class CommandLineUI {
251
247
  if (!this.debugEnabled) {
252
248
  return;
253
249
  }
254
- const color = log_color_1.LogColor.debug(message);
250
+ const color = LogColor.debug(message);
255
251
  const msg = this.insideProgress ? ' ' + color : color;
256
252
  this.log(msg);
257
253
  }
258
254
  info(message) {
259
- const msg = this.insideProgress ? log_symbols_1.default.info + ' ' + message : message;
255
+ const msg = this.insideProgress ? logSymbols.info + ' ' + message : message;
260
256
  this.log(msg);
261
257
  }
262
258
  warn(message) {
263
- const color = log_color_1.LogColor.warn(message);
264
- const msg = this.insideProgress ? log_symbols_1.default.warning + ' ' + color : color;
259
+ const color = LogColor.warn(message);
260
+ const msg = this.insideProgress ? logSymbols.warning + ' ' + color : color;
265
261
  this.write('warn', msg);
266
262
  }
267
263
  error(error, { pad = true } = {}) {
268
- const message = (0, logger_1.errorMessage)(error);
269
- const color = log_color_1.LogColor.error(message);
270
- let msg = '\n' + log_color_1.LogColor.errorPrefix + color + '\n';
264
+ const message = errorMessage(error);
265
+ const color = LogColor.error(message);
266
+ let msg = '\n' + LogColor.errorPrefix + color + '\n';
271
267
  if (!pad) {
272
268
  msg = msg.trim();
273
269
  }
@@ -323,7 +319,7 @@ class CommandLineUI {
323
319
  catch (err) {
324
320
  if (err.code === 'EAGAIN') {
325
321
  if (Date.now() >= deadline) {
326
- throw new Error(text_1.Text.secretInput.stdinTimedOut);
322
+ throw new Error(Text.secretInput.stdinTimedOut);
327
323
  }
328
324
  CommandLineUI.sleepSync(CommandLineUI.STDIN_RETRY_MS);
329
325
  continue;
@@ -434,11 +430,11 @@ class CommandLineUI {
434
430
  const interrupt = () => {
435
431
  interrupted = true;
436
432
  this.emptyLine();
437
- this.info(text_1.Text.dynamicTable.exiting);
433
+ this.info(Text.dynamicTable.exiting);
438
434
  process.off('SIGINT', interrupt);
439
435
  };
440
436
  process.on('SIGINT', interrupt);
441
- this.info(text_1.Text.ctrlC);
437
+ this.info(Text.ctrlC);
442
438
  this.emptyLine();
443
439
  let data = await getData();
444
440
  while (!interrupted) {
@@ -519,8 +515,8 @@ class CommandLineUI {
519
515
  .join('\n\n');
520
516
  }
521
517
  getSingleTable(head, data, { format, groupRows, groupKey }) {
522
- const table = new table_1.ForgeTable({
523
- ...log_color_1.TableStyle.default,
518
+ const table = new Table({
519
+ ...TableStyle.default,
524
520
  head: head.map(([, heading]) => heading)
525
521
  });
526
522
  if (data) {
@@ -577,7 +573,7 @@ class CommandLineUI {
577
573
  }
578
574
  logSuccess(successText) {
579
575
  if (this.addedProgressPadding) {
580
- this.log(log_symbols_1.default.success + ' ' + successText, ProgressLogType.successText);
576
+ this.log(logSymbols.success + ' ' + successText, ProgressLogType.successText);
581
577
  }
582
578
  else {
583
579
  this.replaceStartTextOnSuccess(successText);
@@ -588,7 +584,7 @@ class CommandLineUI {
588
584
  this.spinner.text = errorText;
589
585
  }
590
586
  else {
591
- this.log(log_symbols_1.default.error + ' ' + errorText, ProgressLogType.other);
587
+ this.log(logSymbols.error + ' ' + errorText, ProgressLogType.other);
592
588
  }
593
589
  }
594
590
  stopProgressSpinner(success) {
@@ -599,7 +595,7 @@ class CommandLineUI {
599
595
  if (this.spinner.text.endsWith('\n')) {
600
596
  this.spinner.text = this.spinner.text.substring(0, this.spinner.text.length - 1);
601
597
  }
602
- const symbol = success ? log_symbols_1.default.success : log_symbols_1.default.error;
598
+ const symbol = success ? logSymbols.success : logSymbols.error;
603
599
  this.spinner.stopAndPersist({ symbol });
604
600
  }
605
601
  replaceStartTextOnSuccess(successText) {
@@ -607,7 +603,7 @@ class CommandLineUI {
607
603
  this.spinner.text = successText;
608
604
  }
609
605
  else {
610
- this.log(log_symbols_1.default.success + ' ' + successText, ProgressLogType.successText);
606
+ this.log(logSymbols.success + ' ' + successText, ProgressLogType.successText);
611
607
  }
612
608
  }
613
609
  stopWaitSpinner(success) {
@@ -632,14 +628,14 @@ class CommandLineUI {
632
628
  name: 'text',
633
629
  message,
634
630
  default: defaultValue,
635
- validate: (input) => (input.length === 0 ? text_1.Text.error.promptInputRequired : true)
631
+ validate: (input) => (input.length === 0 ? Text.error.promptInputRequired : true)
636
632
  }
637
633
  ]);
638
634
  return text;
639
635
  }
640
636
  createPromptModule() {
641
637
  if (process.stdin.isTTY) {
642
- return inquirer_1.default.createPromptModule({ skipTTYChecks: false });
638
+ return inquirer.createPromptModule({ skipTTYChecks: false });
643
639
  }
644
640
  return this.createTtyBackedPromptModule();
645
641
  }
@@ -652,7 +648,7 @@ class CommandLineUI {
652
648
  this.registerCustomUIElements(resolvedPromptModule);
653
649
  return resolvedPromptModule;
654
650
  };
655
- return Object.assign((questions, initialAnswers) => getOrCreatePromptModule()(questions, initialAnswers), inquirer_1.default.createPromptModule({ skipTTYChecks: true }));
651
+ return Object.assign((questions, initialAnswers) => getOrCreatePromptModule()(questions, initialAnswers), inquirer.createPromptModule({ skipTTYChecks: true }));
656
652
  }
657
653
  openTtyPromptModule() {
658
654
  let ttyFd;
@@ -662,7 +658,7 @@ class CommandLineUI {
662
658
  catch {
663
659
  }
664
660
  if (ttyFd === undefined) {
665
- return inquirer_1.default.createPromptModule({ skipTTYChecks: false });
661
+ return inquirer.createPromptModule({ skipTTYChecks: false });
666
662
  }
667
663
  let ttyInput;
668
664
  try {
@@ -676,7 +672,7 @@ class CommandLineUI {
676
672
  }
677
673
  throw err;
678
674
  }
679
- const ttyPromptModule = inquirer_1.default.createPromptModule({ input: ttyInput, skipTTYChecks: true });
675
+ const ttyPromptModule = inquirer.createPromptModule({ input: ttyInput, skipTTYChecks: true });
680
676
  return Object.assign((questions, initialAnswers) => {
681
677
  ttyInput.ref();
682
678
  return ttyPromptModule(questions, initialAnswers).then((answers) => {
@@ -689,20 +685,19 @@ class CommandLineUI {
689
685
  }, ttyPromptModule);
690
686
  }
691
687
  registerCustomUIElements(target = this.promptInternal) {
692
- target.registerPrompt('multiple-choice-table', multiple_table_prompt_1.MultipleChoiceTablePrompt);
693
- target.registerPrompt('single-choice-table', single_table_prompt_1.SingleChoiceTablePrompt);
694
- this.promptInternal.registerPrompt('autocomplete', inquirer_autocomplete_prompt_1.default);
688
+ target.registerPrompt('multiple-choice-table', MultipleChoiceTablePrompt);
689
+ target.registerPrompt('single-choice-table', SingleChoiceTablePrompt);
690
+ this.promptInternal.registerPrompt('autocomplete', autocompletePrompt);
695
691
  }
696
692
  formatKeyValueList(items, indent, addNewLine) {
697
693
  const formattedItems = items.map(({ key, value }) => {
698
694
  const newLineOrSpace = addNewLine ? '\n ' : ' ';
699
- return `[${chalk_1.default.cyan(key)}]:${newLineOrSpace}${value}`;
695
+ return `[${chalk.cyan(key)}]:${newLineOrSpace}${value}`;
700
696
  });
701
- return (0, text_1.itemList)(formattedItems, indent);
697
+ return itemList(formattedItems, indent);
702
698
  }
703
699
  formatYamlProperties(properties, key, showMessage = true) {
704
- const yamlString = yaml_1.default.stringify(properties, undefined, ' ').replaceAll('\n', '\n ');
705
- return `[${chalk_1.default.cyan(key)}]: ${showMessage ? 'is configured with the following properties:' : ''}\n ${yamlString}`;
700
+ const yamlString = YAML.stringify(properties, undefined, ' ').replaceAll('\n', '\n ');
701
+ return `[${chalk.cyan(key)}]: ${showMessage ? 'is configured with the following properties:' : ''}\n ${yamlString}`;
706
702
  }
707
703
  }
708
- exports.CommandLineUI = CommandLineUI;
@@ -1,5 +1,5 @@
1
- import { CliHint } from '../service/statsig-service';
2
- import { HintCategory } from './ui';
1
+ import { CliHint } from '../service/statsig-service.js';
2
+ import { HintCategory } from './ui.js';
3
3
  export declare function selectHintsForCategory(hints: CliHint[], category: HintCategory): CliHint[];
4
4
  export declare function createHintRotation(hints: CliHint[], random?: () => number): () => string | undefined;
5
5
  //# sourceMappingURL=hint-rotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hint-rotation.d.ts","sourceRoot":"","sources":["../../src/ui/hint-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAOpC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,EAAE,CAK1F;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,GAAE,MAAM,MAAoB,GAAG,MAAM,MAAM,GAAG,SAAS,CAsBjH"}
1
+ {"version":3,"file":"hint-rotation.d.ts","sourceRoot":"","sources":["../../src/ui/hint-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,EAAE,CAK1F;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,GAAE,MAAM,MAAoB,GAAG,MAAM,MAAM,GAAG,SAAS,CAsBjH"}
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.selectHintsForCategory = selectHintsForCategory;
4
- exports.createHintRotation = createHintRotation;
5
1
  const HINT_CATEGORY_ALL = 'all';
6
- function selectHintsForCategory(hints, category) {
2
+ export function selectHintsForCategory(hints, category) {
7
3
  return hints.filter(({ categories }) => category === HINT_CATEGORY_ALL || categories.includes(category) || categories.includes(HINT_CATEGORY_ALL));
8
4
  }
9
- function createHintRotation(hints, random = Math.random) {
5
+ export function createHintRotation(hints, random = Math.random) {
10
6
  const remaining = [...hints];
11
7
  return () => {
12
8
  const total = remaining.reduce((sum, { weight }) => sum + weight, 0);
package/out/ui/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from './command-line-ui';
2
- export * from './log-color';
3
- export * from './log-symbols';
4
- export * from './logger';
5
- export * from './runtime-log';
6
- export * from './text';
7
- export * from './ui';
8
- export * from './table';
1
+ export * from './command-line-ui.js';
2
+ export * from './log-color.js';
3
+ export * from './log-symbols.js';
4
+ export * from './logger.js';
5
+ export * from './runtime-log.js';
6
+ export * from './text.js';
7
+ export * from './ui.js';
8
+ export * from './table.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAEA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
package/out/ui/index.js CHANGED
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./command-line-ui"), exports);
5
- tslib_1.__exportStar(require("./log-color"), exports);
6
- tslib_1.__exportStar(require("./log-symbols"), exports);
7
- tslib_1.__exportStar(require("./logger"), exports);
8
- tslib_1.__exportStar(require("./runtime-log"), exports);
9
- tslib_1.__exportStar(require("./text"), exports);
10
- tslib_1.__exportStar(require("./ui"), exports);
11
- tslib_1.__exportStar(require("./table"), exports);
1
+ export * from './command-line-ui.js';
2
+ export * from './log-color.js';
3
+ export * from './log-symbols.js';
4
+ export * from './logger.js';
5
+ export * from './runtime-log.js';
6
+ export * from './text.js';
7
+ export * from './ui.js';
8
+ export * from './table.js';
@@ -1,26 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TableStyle = exports.RuntimeLogLevel = exports.LogColor = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- exports.LogColor = {
7
- trace: (message) => chalk_1.default.dim(message),
8
- debug: (message) => chalk_1.default.gray(message),
9
- warn: (message) => chalk_1.default.yellow(message),
10
- error: (message) => chalk_1.default.red(message),
11
- approval: (message) => chalk_1.default.cyan(message),
12
- errorPrefix: chalk_1.default.red.bold('Error: ')
1
+ import chalk from 'chalk';
2
+ export const LogColor = {
3
+ trace: (message) => chalk.dim(message),
4
+ debug: (message) => chalk.gray(message),
5
+ warn: (message) => chalk.yellow(message),
6
+ error: (message) => chalk.red(message),
7
+ approval: (message) => chalk.cyan(message),
8
+ errorPrefix: chalk.red.bold('Error: ')
13
9
  };
14
10
  const withPadding = (input) => input.padEnd(7);
15
- exports.RuntimeLogLevel = {
16
- trace: chalk_1.default.dim(withPadding('TRACE')),
17
- debug: chalk_1.default.magenta(withPadding('DEBUG')),
18
- info: chalk_1.default.cyan(withPadding('INFO')),
19
- warn: chalk_1.default.yellow(withPadding('WARN')),
20
- error: chalk_1.default.red(withPadding('ERROR')),
21
- fatal: chalk_1.default.bgRedBright.bold.hex('#fff')(withPadding('FATAL'))
11
+ export const RuntimeLogLevel = {
12
+ trace: chalk.dim(withPadding('TRACE')),
13
+ debug: chalk.magenta(withPadding('DEBUG')),
14
+ info: chalk.cyan(withPadding('INFO')),
15
+ warn: chalk.yellow(withPadding('WARN')),
16
+ error: chalk.red(withPadding('ERROR')),
17
+ fatal: chalk.bgRedBright.bold.hex('#fff')(withPadding('FATAL'))
22
18
  };
23
- exports.TableStyle = {
19
+ export const TableStyle = {
24
20
  default: {
25
21
  style: { head: [] }
26
22
  },
@@ -1,19 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
1
+ import chalk from 'chalk';
5
2
  const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color';
6
3
  const main = {
7
- info: chalk_1.default.cyan('ℹ'),
8
- success: chalk_1.default.green('✔'),
9
- warning: chalk_1.default.yellow('⚠'),
10
- error: chalk_1.default.red('✕')
4
+ info: chalk.cyan('ℹ'),
5
+ success: chalk.green('✔'),
6
+ warning: chalk.yellow('⚠'),
7
+ error: chalk.red('✕')
11
8
  };
12
9
  const fallbacks = {
13
- info: chalk_1.default.cyan('i'),
14
- success: chalk_1.default.green('√'),
15
- warning: chalk_1.default.yellow('‼'),
16
- error: chalk_1.default.red('×')
10
+ info: chalk.cyan('i'),
11
+ success: chalk.green('√'),
12
+ warning: chalk.yellow('‼'),
13
+ error: chalk.red('×')
17
14
  };
18
15
  const logSymbols = isSupported ? main : fallbacks;
19
- exports.default = logSymbols;
16
+ export default logSymbols;
package/out/ui/logger.js CHANGED
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NullLogger = void 0;
4
- exports.errorMessage = errorMessage;
5
- exports.NullLogger = {
1
+ export const NullLogger = {
6
2
  traceEnabled: false,
7
3
  debugEnabled: false,
8
4
  trace() {
@@ -16,6 +12,6 @@ exports.NullLogger = {
16
12
  error() {
17
13
  }
18
14
  };
19
- function errorMessage(error) {
15
+ export function errorMessage(error) {
20
16
  return error.message ? error.message : error.constructor.name;
21
17
  }
@@ -1,4 +1,4 @@
1
- import { TablePrompt, TableRenderProps, TablePromptState, getRowSymbolType, getRowFormatFnType } from './table-prompt';
1
+ import { TablePrompt, TableRenderProps, TablePromptState, getRowSymbolType, getRowFormatFnType } from './table-prompt.js';
2
2
  export declare const getRowSymbol: getRowSymbolType;
3
3
  export declare const getRowFormatFn: getRowFormatFnType;
4
4
  export declare class MultipleChoiceTablePrompt extends TablePrompt {
@@ -1 +1 @@
1
- {"version":3,"file":"multiple-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/multiple-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAM5B,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,OAAO,CAAC,eAAe,CAAkC;gBAE7C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,gBAAgB,GAAG,IAAI;IA4BjF,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,wBAAwB;IAMhC,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAOjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAgBhD"}
1
+ {"version":3,"file":"multiple-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/multiple-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,YAAY,EAAE,gBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAM5B,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,OAAO,CAAC,eAAe,CAAkC;gBAE7C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,gBAAgB,GAAG,IAAI;IA4BjF,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,wBAAwB;IAMhC,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAOjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAgBhD"}
@@ -1,30 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MultipleChoiceTablePrompt = exports.getRowFormatFn = exports.getRowSymbol = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- const figures_1 = tslib_1.__importDefault(require("figures"));
7
- const text_1 = require("./text");
8
- const table_prompt_1 = require("./table-prompt");
9
- const getRowSymbol = (isDone, isHover, isSelected) => {
1
+ import chalk from 'chalk';
2
+ import figures from 'figures';
3
+ import { Text } from './text.js';
4
+ import { TablePrompt } from './table-prompt.js';
5
+ export const getRowSymbol = (isDone, isHover, isSelected) => {
10
6
  if (isDone) {
11
- return isSelected ? figures_1.default.circleFilled : figures_1.default.circle;
7
+ return isSelected ? figures.circleFilled : figures.circle;
12
8
  }
13
9
  else {
14
- return isHover ? figures_1.default.pointer : isSelected ? figures_1.default.circleFilled : figures_1.default.circle;
10
+ return isHover ? figures.pointer : isSelected ? figures.circleFilled : figures.circle;
15
11
  }
16
12
  };
17
- exports.getRowSymbol = getRowSymbol;
18
- const getRowFormatFn = (isDone, isHover, isSelected) => {
13
+ export const getRowFormatFn = (isDone, isHover, isSelected) => {
19
14
  if (isDone) {
20
- return isSelected ? chalk_1.default.cyan : chalk_1.default.white;
15
+ return isSelected ? chalk.cyan : chalk.white;
21
16
  }
22
17
  else {
23
- return isHover || isSelected ? chalk_1.default.cyan : chalk_1.default.white;
18
+ return isHover || isSelected ? chalk.cyan : chalk.white;
24
19
  }
25
20
  };
26
- exports.getRowFormatFn = getRowFormatFn;
27
- class MultipleChoiceTablePrompt extends table_prompt_1.TablePrompt {
21
+ export class MultipleChoiceTablePrompt extends TablePrompt {
28
22
  selectedIndexes = new Set();
29
23
  constructor(questions, readline, answers) {
30
24
  super(questions, readline, answers);
@@ -82,15 +76,14 @@ class MultipleChoiceTablePrompt extends table_prompt_1.TablePrompt {
82
76
  done(selectedIndexesArray);
83
77
  }
84
78
  render(props) {
85
- const table = this.renderTable(props, exports.getRowSymbol, exports.getRowFormatFn, (rowIndex) => this.selectedIndexes.has(rowIndex));
79
+ const table = this.renderTable(props, getRowSymbol, getRowFormatFn, (rowIndex) => this.selectedIndexes.has(rowIndex));
86
80
  const { infoMessage, promptMessage, hasMultipleChoices } = props;
87
81
  let header = infoMessage;
88
82
  header += '\r\n';
89
- header += text_1.Text.customPrompts.table.headerMessage(promptMessage, !hasMultipleChoices);
83
+ header += Text.customPrompts.table.headerMessage(promptMessage, !hasMultipleChoices);
90
84
  let renderOutput = '';
91
85
  renderOutput += table.toString();
92
86
  renderOutput += '\r\n';
93
87
  this.screen.render(header, renderOutput);
94
88
  }
95
89
  }
96
- exports.MultipleChoiceTablePrompt = MultipleChoiceTablePrompt;
@@ -1,38 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatRuntimeLogLevel = formatRuntimeLogLevel;
4
- exports.formatRuntimeLogArgs = formatRuntimeLogArgs;
5
- const log_color_1 = require("./log-color");
6
- const util_1 = require("util");
7
- function formatRuntimeLogLevel(level) {
1
+ import { RuntimeLogLevel } from './log-color.js';
2
+ import { format } from 'util';
3
+ export function formatRuntimeLogLevel(level) {
8
4
  switch (level) {
9
5
  case 10:
10
6
  case '10':
11
7
  case 'TRACE':
12
- return log_color_1.RuntimeLogLevel.trace;
8
+ return RuntimeLogLevel.trace;
13
9
  case 20:
14
10
  case '20':
15
11
  case 'DEBUG':
16
- return log_color_1.RuntimeLogLevel.debug;
12
+ return RuntimeLogLevel.debug;
17
13
  case 30:
18
14
  case '30':
19
15
  case 'INFO':
20
- return log_color_1.RuntimeLogLevel.info;
16
+ return RuntimeLogLevel.info;
21
17
  case 40:
22
18
  case '40':
23
19
  case 'WARN':
24
20
  case 'WARNING':
25
- return log_color_1.RuntimeLogLevel.warn;
21
+ return RuntimeLogLevel.warn;
26
22
  case 50:
27
23
  case '50':
28
24
  case 'ERROR':
29
- return log_color_1.RuntimeLogLevel.error;
25
+ return RuntimeLogLevel.error;
30
26
  case 60:
31
27
  case '60':
32
28
  case 'FATAL':
33
- return log_color_1.RuntimeLogLevel.fatal;
29
+ return RuntimeLogLevel.fatal;
34
30
  default:
35
- return log_color_1.RuntimeLogLevel.info;
31
+ return RuntimeLogLevel.info;
36
32
  }
37
33
  }
38
34
  function formatIfFunctionError(arg) {
@@ -49,8 +45,8 @@ function formatIfFunctionError(arg) {
49
45
  }
50
46
  return arg;
51
47
  }
52
- function formatRuntimeLogArgs(args) {
53
- const string = (0, util_1.format)(...args.map(formatIfFunctionError));
48
+ export function formatRuntimeLogArgs(args) {
49
+ const string = format(...args.map(formatIfFunctionError));
54
50
  const formattedString = `${string.match(/[{[]]\n.+/) ? '\n' : ''}${string}`;
55
51
  return formattedString;
56
52
  }
@@ -1,4 +1,4 @@
1
- import { getRowSymbolType, getRowFormatFnType, TablePrompt, TableRenderProps, TablePromptState } from './table-prompt';
1
+ import { getRowSymbolType, getRowFormatFnType, TablePrompt, TableRenderProps, TablePromptState } from './table-prompt.js';
2
2
  export declare const getRowSymbol: getRowSymbolType;
3
3
  export declare const getRowFormatFn: getRowFormatFnType;
4
4
  export declare class SingleChoiceTablePrompt extends TablePrompt {
@@ -1 +1 @@
1
- {"version":3,"file":"single-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/single-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAE5B,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,WAAW;gBAC1C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAIvD,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAoBhD"}
1
+ {"version":3,"file":"single-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/single-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,YAAY,EAAE,gBAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAE5B,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,WAAW;gBAC1C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAIvD,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAoBhD"}