@shopify/cli-kit 3.44.1 → 3.45.0-pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -7
- package/assets/cli-ruby/lib/project_types/extension/messages/messages.rb +0 -2
- package/assets/cli-ruby/lib/project_types/theme/commands/pull.rb +6 -0
- package/assets/cli-ruby/lib/project_types/theme/commands/push.rb +6 -0
- package/assets/cli-ruby/lib/shopify_cli/constants.rb +1 -0
- package/assets/cli-ruby/lib/shopify_cli/environment.rb +4 -0
- package/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload.rb +1 -1
- package/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +3 -0
- package/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server.rb +3 -3
- package/assets/cli-ruby/lib/shopify_cli/theme/extension/host_theme.rb +4 -4
- package/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/extension_serve_job.rb +4 -6
- package/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_raw_progress_bar.rb +40 -0
- package/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress_plain.rb +50 -0
- package/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui.rb +15 -14
- package/dist/private/node/api/graphql.js +12 -23
- package/dist/private/node/api/graphql.js.map +1 -1
- package/dist/private/node/api.d.ts +1 -1
- package/dist/private/node/api.js +28 -9
- package/dist/private/node/api.js.map +1 -1
- package/dist/private/node/constants.d.ts +0 -1
- package/dist/private/node/constants.js +0 -1
- package/dist/private/node/constants.js.map +1 -1
- package/dist/private/node/session/redirect-listener.js +2 -3
- package/dist/private/node/session/redirect-listener.js.map +1 -1
- package/dist/private/node/session/schema.d.ts +28 -28
- package/dist/private/node/session/schema.js +12 -12
- package/dist/private/node/session/schema.js.map +1 -1
- package/dist/private/node/testing/ui.d.ts +11 -0
- package/dist/private/node/testing/ui.js +15 -1
- package/dist/private/node/testing/ui.js.map +1 -1
- package/dist/private/node/ui/alert.d.ts +5 -1
- package/dist/private/node/ui/alert.js +2 -2
- package/dist/private/node/ui/alert.js.map +1 -1
- package/dist/private/node/ui/components/AutocompletePrompt.js +38 -12
- package/dist/private/node/ui/components/AutocompletePrompt.js.map +1 -1
- package/dist/private/node/ui/components/AutocompletePrompt.test.js +56 -36
- package/dist/private/node/ui/components/AutocompletePrompt.test.js.map +1 -1
- package/dist/private/node/ui/components/ConcurrentOutput.d.ts +5 -1
- package/dist/private/node/ui/components/ConcurrentOutput.js +15 -13
- package/dist/private/node/ui/components/ConcurrentOutput.js.map +1 -1
- package/dist/private/node/ui/components/ConcurrentOutput.test.js +20 -11
- package/dist/private/node/ui/components/ConcurrentOutput.test.js.map +1 -1
- package/dist/private/node/ui/components/FullScreen.js +1 -1
- package/dist/private/node/ui/components/FullScreen.js.map +1 -1
- package/dist/private/node/ui/components/SelectInput.d.ts +7 -2
- package/dist/private/node/ui/components/SelectInput.js +73 -60
- package/dist/private/node/ui/components/SelectInput.js.map +1 -1
- package/dist/private/node/ui/components/SelectInput.test.js +72 -2
- package/dist/private/node/ui/components/SelectInput.test.js.map +1 -1
- package/dist/private/node/ui/components/SelectPrompt.js +38 -12
- package/dist/private/node/ui/components/SelectPrompt.js.map +1 -1
- package/dist/private/node/ui/components/SelectPrompt.test.js +52 -1
- package/dist/private/node/ui/components/SelectPrompt.test.js.map +1 -1
- package/dist/private/node/ui/components/Tasks.js +9 -1
- package/dist/private/node/ui/components/Tasks.js.map +1 -1
- package/dist/private/node/ui/components/TextAnimation.js +4 -4
- package/dist/private/node/ui/components/TextAnimation.js.map +1 -1
- package/dist/private/node/ui/components/TextPrompt.js +4 -4
- package/dist/private/node/ui/components/TextPrompt.js.map +1 -1
- package/dist/private/node/ui/hooks/use-layout.d.ts +6 -0
- package/dist/private/node/ui/hooks/use-layout.js +31 -12
- package/dist/private/node/ui/hooks/use-layout.js.map +1 -1
- package/dist/private/node/ui.d.ts +11 -3
- package/dist/private/node/ui.js +14 -10
- package/dist/private/node/ui.js.map +1 -1
- package/dist/public/common/object.d.ts +1 -1
- package/dist/public/common/object.js +1 -1
- package/dist/public/common/object.js.map +1 -1
- package/dist/public/common/version.d.ts +1 -1
- package/dist/public/common/version.js +1 -1
- package/dist/public/common/version.js.map +1 -1
- package/dist/public/node/base-command.d.ts +1 -4
- package/dist/public/node/base-command.js +17 -19
- package/dist/public/node/base-command.js.map +1 -1
- package/dist/public/node/context/local.d.ts +0 -7
- package/dist/public/node/context/local.js +0 -9
- package/dist/public/node/context/local.js.map +1 -1
- package/dist/public/node/environments.d.ts +7 -8
- package/dist/public/node/environments.js +23 -25
- package/dist/public/node/environments.js.map +1 -1
- package/dist/public/node/http.d.ts +0 -1
- package/dist/public/node/http.js +0 -1
- package/dist/public/node/http.js.map +1 -1
- package/dist/public/node/node-package-manager.d.ts +1 -1
- package/dist/public/node/node-package-manager.js.map +1 -1
- package/dist/public/node/output.d.ts +1 -1
- package/dist/public/node/output.js.map +1 -1
- package/dist/public/node/path.js +1 -1
- package/dist/public/node/path.js.map +1 -1
- package/dist/public/node/ruby.d.ts +1 -0
- package/dist/public/node/ruby.js +35 -15
- package/dist/public/node/ruby.js.map +1 -1
- package/dist/public/node/schema.d.ts +1 -1
- package/dist/public/node/schema.js +1 -1
- package/dist/public/node/schema.js.map +1 -1
- package/dist/public/node/themes/theme-manager.d.ts +1 -1
- package/dist/public/node/themes/theme-manager.js.map +1 -1
- package/dist/public/node/ui.d.ts +182 -121
- package/dist/public/node/ui.js +172 -120
- package/dist/public/node/ui.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -19
- package/dist/private/node/ui/components/TextWithBackground.d.ts +0 -12
- package/dist/private/node/ui/components/TextWithBackground.js +0 -39
- package/dist/private/node/ui/components/TextWithBackground.js.map +0 -1
package/dist/public/node/ui.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FatalError as Fatal } from './error.js';
|
|
2
2
|
import { Logger, LogLevel } from './output.js';
|
|
3
3
|
import { ConcurrentOutputProps } from '../../private/node/ui/components/ConcurrentOutput.js';
|
|
4
|
-
import {
|
|
4
|
+
import { AlertOptions } from '../../private/node/ui/alert.js';
|
|
5
|
+
import { CustomSection } from '../../private/node/ui/components/Alert.js';
|
|
5
6
|
import ScalarDict from '../../private/node/ui/components/Table/ScalarDict.js';
|
|
6
7
|
import { TableColumn, TableProps } from '../../private/node/ui/components/Table/Table.js';
|
|
7
8
|
import { SelectPromptProps } from '../../private/node/ui/components/SelectPrompt.js';
|
|
@@ -16,226 +17,286 @@ export interface RenderConcurrentOptions extends PartialBy<ConcurrentOutputProps
|
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Renders output from concurrent processes to the terminal with {@link ConcurrentOutput}.
|
|
20
|
+
* @example
|
|
21
|
+
* 0000-00-00 00:00:00 | backend | first backend message
|
|
22
|
+
* 0000-00-00 00:00:00 | backend | second backend message
|
|
23
|
+
* 0000-00-00 00:00:00 | backend | third backend message
|
|
24
|
+
* 0000-00-00 00:00:00 | frontend | first frontend message
|
|
25
|
+
* 0000-00-00 00:00:00 | frontend | second frontend message
|
|
26
|
+
* 0000-00-00 00:00:00 | frontend | third frontend message
|
|
27
|
+
*
|
|
28
|
+
* › Press p | open your browser
|
|
29
|
+
* › Press q | quit.
|
|
30
|
+
*
|
|
31
|
+
* Preview URL: https://shopify.com
|
|
32
|
+
*
|
|
19
33
|
*/
|
|
20
34
|
export declare function renderConcurrent({ renderOptions, ...props }: RenderConcurrentOptions): Promise<void>;
|
|
21
35
|
export type AlertCustomSection = CustomSection;
|
|
22
|
-
export type RenderAlertOptions = Omit<
|
|
36
|
+
export type RenderAlertOptions = Omit<AlertOptions, 'type'>;
|
|
23
37
|
/**
|
|
24
38
|
* Renders an information banner to the console.
|
|
25
|
-
*
|
|
26
|
-
* Basic:
|
|
27
|
-
*
|
|
28
|
-
* ```
|
|
39
|
+
* @example Basic
|
|
29
40
|
* ╭─ info ───────────────────────────────────────────────────╮
|
|
30
41
|
* │ │
|
|
31
|
-
* │
|
|
42
|
+
* │ CLI update available │
|
|
43
|
+
* │ │
|
|
44
|
+
* │ Run `npm run shopify upgrade`. │
|
|
32
45
|
* │ │
|
|
33
46
|
* ╰──────────────────────────────────────────────────────────╯
|
|
34
|
-
* ```
|
|
35
47
|
*
|
|
36
|
-
* Complete
|
|
37
|
-
* ```
|
|
48
|
+
* @example Complete
|
|
38
49
|
* ╭─ info ───────────────────────────────────────────────────╮
|
|
39
50
|
* │ │
|
|
40
|
-
* │
|
|
41
|
-
* │ │
|
|
42
|
-
* │ Body │
|
|
51
|
+
* │ my-app initialized and ready to build. │
|
|
43
52
|
* │ │
|
|
44
53
|
* │ Next steps │
|
|
45
|
-
* │ • Run `cd
|
|
54
|
+
* │ • Run `cd verification-app` │
|
|
46
55
|
* │ • To preview your project, run `npm app dev` │
|
|
47
56
|
* │ • To add extensions, run `npm generate extension` │
|
|
48
57
|
* │ │
|
|
49
58
|
* │ Reference │
|
|
50
59
|
* │ • Run `npm shopify help` │
|
|
51
|
-
* │ •
|
|
52
|
-
* │ https://shopify.dev │
|
|
60
|
+
* │ • Dev docs ( https://shopify.dev ) │
|
|
53
61
|
* │ │
|
|
54
|
-
* │
|
|
62
|
+
* │ Custom section │
|
|
63
|
+
* │ • Item 1 │
|
|
64
|
+
* │ • Item 2 │
|
|
65
|
+
* │ • Item 3 │
|
|
55
66
|
* │ │
|
|
56
67
|
* ╰──────────────────────────────────────────────────────────╯
|
|
57
|
-
*
|
|
68
|
+
*
|
|
58
69
|
*/
|
|
59
|
-
export declare function renderInfo(options: RenderAlertOptions):
|
|
70
|
+
export declare function renderInfo(options: RenderAlertOptions): string | undefined;
|
|
60
71
|
/**
|
|
61
72
|
* Renders a success banner to the console.
|
|
62
|
-
*
|
|
63
|
-
* Basic:
|
|
64
|
-
*
|
|
65
|
-
* ```
|
|
73
|
+
* @example Basic
|
|
66
74
|
* ╭─ success ────────────────────────────────────────────────╮
|
|
67
75
|
* │ │
|
|
68
|
-
* │
|
|
76
|
+
* │ CLI updated. │
|
|
77
|
+
* │ │
|
|
78
|
+
* │ You are now running version 3.47. │
|
|
69
79
|
* │ │
|
|
70
80
|
* ╰──────────────────────────────────────────────────────────╯
|
|
71
|
-
* ```
|
|
72
81
|
*
|
|
73
|
-
* Complete
|
|
74
|
-
* ```
|
|
82
|
+
* @example Complete
|
|
75
83
|
* ╭─ success ────────────────────────────────────────────────╮
|
|
76
84
|
* │ │
|
|
77
|
-
* │
|
|
85
|
+
* │ Deployment successful. │
|
|
78
86
|
* │ │
|
|
79
|
-
* │
|
|
87
|
+
* │ Your extensions have been uploaded to your Shopify │
|
|
88
|
+
* │ Partners Dashboard. │
|
|
80
89
|
* │ │
|
|
81
90
|
* │ Next steps │
|
|
82
|
-
* │ •
|
|
83
|
-
* │
|
|
84
|
-
* │
|
|
85
|
-
* │ │
|
|
86
|
-
* │ Reference │
|
|
87
|
-
* │ • Run `npm shopify help` │
|
|
88
|
-
* │ • Press 'return' to open the dev docs: │
|
|
89
|
-
* │ https://shopify.dev │
|
|
90
|
-
* │ │
|
|
91
|
-
* │ Link: https://shopify.com │
|
|
91
|
+
* │ • See your deployment and set it live ( https://part │
|
|
92
|
+
* │ ners.shopify.com/1797046/apps/4523695/deployments │
|
|
93
|
+
* │ ) │
|
|
92
94
|
* │ │
|
|
93
95
|
* ╰──────────────────────────────────────────────────────────╯
|
|
94
|
-
*
|
|
96
|
+
*
|
|
95
97
|
*/
|
|
96
|
-
export declare function renderSuccess(options: RenderAlertOptions):
|
|
98
|
+
export declare function renderSuccess(options: RenderAlertOptions): string | undefined;
|
|
97
99
|
/**
|
|
98
100
|
* Renders a warning banner to the console.
|
|
99
|
-
*
|
|
100
|
-
* Basic:
|
|
101
|
-
*
|
|
102
|
-
* ```
|
|
101
|
+
* @example Basic
|
|
103
102
|
* ╭─ warning ────────────────────────────────────────────────╮
|
|
104
103
|
* │ │
|
|
105
|
-
* │
|
|
104
|
+
* │ You have reached your limit of checkout extensions for │
|
|
105
|
+
* │ this app. │
|
|
106
|
+
* │ │
|
|
107
|
+
* │ You can free up space for a new one by deleting an │
|
|
108
|
+
* │ existing one. │
|
|
106
109
|
* │ │
|
|
107
110
|
* ╰──────────────────────────────────────────────────────────╯
|
|
108
|
-
* ```
|
|
109
111
|
*
|
|
110
|
-
* Complete
|
|
111
|
-
* ```
|
|
112
|
+
* @example Complete
|
|
112
113
|
* ╭─ warning ────────────────────────────────────────────────╮
|
|
113
114
|
* │ │
|
|
114
|
-
* │
|
|
115
|
+
* │ Required access scope update. │
|
|
115
116
|
* │ │
|
|
116
|
-
* │
|
|
117
|
-
* │
|
|
118
|
-
* │ Next steps │
|
|
119
|
-
* │ • Run `cd santorini-goods` │
|
|
120
|
-
* │ • To preview your project, run `npm app dev` │
|
|
121
|
-
* │ • To add extensions, run `npm generate extension` │
|
|
117
|
+
* │ The deadline for re-selecting your app scopes is May │
|
|
118
|
+
* │ 1, 2022. │
|
|
122
119
|
* │ │
|
|
123
120
|
* │ Reference │
|
|
124
|
-
* │ •
|
|
125
|
-
* │ • Press 'return' to open the dev docs: │
|
|
126
|
-
* │ https://shopify.dev │
|
|
127
|
-
* │ │
|
|
128
|
-
* │ Link: https://shopify.com │
|
|
121
|
+
* │ • Dev docs ( https://shopify.dev/app/scopes ) │
|
|
129
122
|
* │ │
|
|
130
123
|
* ╰──────────────────────────────────────────────────────────╯
|
|
131
|
-
*
|
|
124
|
+
*
|
|
132
125
|
*/
|
|
133
|
-
export declare function renderWarning(options: RenderAlertOptions):
|
|
126
|
+
export declare function renderWarning(options: RenderAlertOptions): string | undefined;
|
|
127
|
+
interface RenderFatalErrorOptions {
|
|
128
|
+
renderOptions?: RenderOptions;
|
|
129
|
+
}
|
|
134
130
|
/**
|
|
135
131
|
* Renders a Fatal error to the console inside a banner.
|
|
132
|
+
* @example Basic
|
|
133
|
+
* ╭─ error ──────────────────────────────────────────────────╮
|
|
134
|
+
* │ │
|
|
135
|
+
* │ Something went wrong. │
|
|
136
|
+
* │ │
|
|
137
|
+
* │ To investigate the issue, examine this stack trace: │
|
|
138
|
+
* │ at _compile (internal/modules/cjs/loader.js:1137) │
|
|
139
|
+
* │ at js (internal/modules/cjs/loader.js:1157) │
|
|
140
|
+
* │ at load (internal/modules/cjs/loader.js:985) │
|
|
141
|
+
* │ at _load (internal/modules/cjs/loader.js:878) │
|
|
142
|
+
* │ │
|
|
143
|
+
* ╰──────────────────────────────────────────────────────────╯
|
|
136
144
|
*
|
|
137
|
-
*
|
|
145
|
+
* @example Complete
|
|
138
146
|
* ╭─ error ──────────────────────────────────────────────────╮
|
|
139
147
|
* │ │
|
|
140
|
-
* │
|
|
148
|
+
* │ No Organization found │
|
|
141
149
|
* │ │
|
|
142
|
-
* │
|
|
150
|
+
* │ Next steps │
|
|
151
|
+
* │ • Have you created a Shopify Partners organization ( │
|
|
152
|
+
* │ https://partners.shopify.com/signup )? │
|
|
153
|
+
* │ • Have you confirmed your accounts from the emails │
|
|
154
|
+
* │ you received? │
|
|
155
|
+
* │ • Need to connect to a different App or │
|
|
156
|
+
* │ organization? Run the command again with `--reset` │
|
|
143
157
|
* │ │
|
|
144
158
|
* ╰──────────────────────────────────────────────────────────╯
|
|
145
|
-
*
|
|
159
|
+
*
|
|
146
160
|
*/
|
|
147
|
-
export declare function renderFatalError(error: Fatal):
|
|
161
|
+
export declare function renderFatalError(error: Fatal, { renderOptions }?: RenderFatalErrorOptions): string | undefined;
|
|
162
|
+
export interface RenderSeletPromptOptions<T> extends Omit<SelectPromptProps<T>, 'onSubmit'> {
|
|
163
|
+
renderOptions?: RenderOptions;
|
|
164
|
+
}
|
|
148
165
|
/**
|
|
149
166
|
* Renders a select prompt to the console.
|
|
150
|
-
*
|
|
151
|
-
* ```
|
|
167
|
+
* @example
|
|
152
168
|
* ? Associate your project with the org Castile Ventures?
|
|
153
169
|
*
|
|
154
|
-
*
|
|
170
|
+
* Add: • new-ext
|
|
155
171
|
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
172
|
+
* Remove: • integrated-demand-ext
|
|
173
|
+
* • order-discount
|
|
158
174
|
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* (4) fourth
|
|
163
|
-
* (5) seventh
|
|
164
|
-
* (6) tenth
|
|
175
|
+
* Automations
|
|
176
|
+
* > (a) fifth
|
|
177
|
+
* (2) sixth
|
|
165
178
|
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
179
|
+
* Merchant Admin
|
|
180
|
+
* (3) eighth
|
|
181
|
+
* (4) ninth
|
|
169
182
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
183
|
+
* Other
|
|
184
|
+
* (f) first
|
|
185
|
+
* (s) second
|
|
186
|
+
* (7) third
|
|
187
|
+
* (8) fourth
|
|
188
|
+
* (9) seventh
|
|
189
|
+
* (10) tenth
|
|
190
|
+
*
|
|
191
|
+
* Press ↑↓ arrows to select, enter to confirm
|
|
173
192
|
*
|
|
174
|
-
* Press ↑↓ arrows to select, enter to confirm
|
|
175
|
-
* ```
|
|
176
193
|
*/
|
|
177
|
-
export declare function renderSelectPrompt<T>(props:
|
|
194
|
+
export declare function renderSelectPrompt<T>({ renderOptions, ...props }: RenderSeletPromptOptions<T>): Promise<T>;
|
|
178
195
|
export interface RenderConfirmationPromptOptions extends Pick<SelectPromptProps<boolean>, 'message' | 'infoTable'> {
|
|
179
196
|
confirmationMessage?: string;
|
|
180
197
|
cancellationMessage?: string;
|
|
198
|
+
renderOptions?: RenderOptions;
|
|
181
199
|
}
|
|
182
200
|
/**
|
|
183
201
|
* Renders a confirmation prompt to the console.
|
|
202
|
+
* @example
|
|
203
|
+
* ? Delete the following themes from the store?
|
|
184
204
|
*
|
|
185
|
-
*
|
|
205
|
+
* • first theme (#1)
|
|
206
|
+
* • second theme (#2)
|
|
186
207
|
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
208
|
+
* > (y) Yes, confirm changes
|
|
209
|
+
* (n) Cancel
|
|
210
|
+
*
|
|
211
|
+
* Press ↑↓ arrows to select, enter or a shortcut to confirm
|
|
189
212
|
*
|
|
190
|
-
* Press ↑↓ arrows to select, enter to confirm
|
|
191
213
|
*/
|
|
192
|
-
export declare function renderConfirmationPrompt({ message, infoTable, confirmationMessage, cancellationMessage, }: RenderConfirmationPromptOptions): Promise<boolean>;
|
|
214
|
+
export declare function renderConfirmationPrompt({ message, infoTable, confirmationMessage, cancellationMessage, renderOptions, }: RenderConfirmationPromptOptions): Promise<boolean>;
|
|
215
|
+
export interface RenderAutocompleteOptions<T> extends PartialBy<Omit<AutocompletePromptProps<T>, 'onSubmit'>, 'search'> {
|
|
216
|
+
renderOptions?: RenderOptions;
|
|
217
|
+
}
|
|
193
218
|
/**
|
|
194
219
|
* Renders an autocomplete prompt to the console.
|
|
195
|
-
*
|
|
196
|
-
* ? Select a template
|
|
197
|
-
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
|
|
202
|
-
*
|
|
203
|
-
*
|
|
220
|
+
* @example
|
|
221
|
+
* ? Select a template: Type to search...
|
|
222
|
+
*
|
|
223
|
+
* > first
|
|
224
|
+
* second
|
|
225
|
+
* third
|
|
226
|
+
* fourth
|
|
227
|
+
* fifth
|
|
228
|
+
* sixth
|
|
229
|
+
* seventh
|
|
230
|
+
* eighth
|
|
231
|
+
* ninth
|
|
232
|
+
* tenth
|
|
233
|
+
* eleventh
|
|
234
|
+
* twelfth
|
|
235
|
+
* thirteenth
|
|
236
|
+
* fourteenth
|
|
237
|
+
* fifteenth
|
|
238
|
+
* sixteenth
|
|
239
|
+
* seventeenth
|
|
240
|
+
* eighteenth
|
|
241
|
+
* nineteenth
|
|
242
|
+
* twentieth
|
|
243
|
+
* twenty-first
|
|
244
|
+
* twenty-second
|
|
245
|
+
* twenty-third
|
|
246
|
+
* twenty-fourth
|
|
247
|
+
* twenty-fifth
|
|
248
|
+
*
|
|
249
|
+
* Press ↑↓ arrows to select, enter to confirm
|
|
250
|
+
*
|
|
204
251
|
*/
|
|
205
|
-
export declare function renderAutocompletePrompt<T>(props:
|
|
252
|
+
export declare function renderAutocompletePrompt<T>({ renderOptions, ...props }: RenderAutocompleteOptions<T>): Promise<T>;
|
|
253
|
+
interface RenderTableOptions<T extends ScalarDict> extends TableProps<T> {
|
|
254
|
+
renderOptions?: RenderOptions;
|
|
255
|
+
}
|
|
206
256
|
/**
|
|
207
257
|
* Renders a table to the console.
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* Debut [unpublished] #1374
|
|
215
|
-
* Development (1a23b4-MBP) [development] #1368
|
|
216
|
-
* ```
|
|
258
|
+
* @example
|
|
259
|
+
* ID Name email
|
|
260
|
+
* ── ────────── ─────────────
|
|
261
|
+
* 1 John Doe jon@doe.com
|
|
262
|
+
* 2 Jane Doe jane@doe.com
|
|
263
|
+
* 3 John Smith jon@smith.com
|
|
217
264
|
*/
|
|
218
|
-
export declare function renderTable<T extends ScalarDict>(props:
|
|
265
|
+
export declare function renderTable<T extends ScalarDict>({ renderOptions, ...props }: RenderTableOptions<T>): string | undefined;
|
|
266
|
+
interface RenderTasksOptions {
|
|
267
|
+
renderOptions?: RenderOptions;
|
|
268
|
+
}
|
|
219
269
|
/**
|
|
220
270
|
* Runs async tasks and displays their progress to the console.
|
|
271
|
+
* @example
|
|
272
|
+
* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
|
273
|
+
* Installing dependencies ...
|
|
221
274
|
*/
|
|
222
|
-
export declare function renderTasks<TContext>(tasks: Task<TContext>[]): Promise<void>;
|
|
275
|
+
export declare function renderTasks<TContext>(tasks: Task<TContext>[], { renderOptions }?: RenderTasksOptions): Promise<void>;
|
|
276
|
+
export interface RenderTextPromptOptions extends Omit<TextPromptProps, 'onSubmit'> {
|
|
277
|
+
renderOptions?: RenderOptions;
|
|
278
|
+
}
|
|
223
279
|
/**
|
|
224
280
|
* Renders a text prompt to the console.
|
|
225
|
-
*
|
|
226
|
-
* ?
|
|
227
|
-
*
|
|
228
|
-
*
|
|
281
|
+
* @example
|
|
282
|
+
* ? App project name (can be changed later):
|
|
283
|
+
* > expansive commerce app
|
|
284
|
+
* ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
|
|
285
|
+
*
|
|
229
286
|
*/
|
|
230
|
-
export declare function renderTextPrompt(props:
|
|
287
|
+
export declare function renderTextPrompt({ renderOptions, ...props }: RenderTextPromptOptions): Promise<string>;
|
|
231
288
|
interface RenderTextOptions {
|
|
232
289
|
text: string;
|
|
233
290
|
logLevel?: LogLevel;
|
|
234
291
|
logger?: Logger;
|
|
235
292
|
}
|
|
236
293
|
/** Renders a text string to the console.
|
|
237
|
-
* Using this function makes sure that correct spacing is applied among the various components.
|
|
238
|
-
|
|
294
|
+
* Using this function makes sure that correct spacing is applied among the various components.
|
|
295
|
+
* @example
|
|
296
|
+
* Hello world!
|
|
297
|
+
*
|
|
298
|
+
*/
|
|
299
|
+
export declare function renderText({ text, logLevel, logger }: RenderTextOptions): string;
|
|
239
300
|
/** Waits for any key to be pressed except Ctrl+C which will terminate the process. */
|
|
240
301
|
export declare const keypress: () => Promise<unknown>;
|
|
241
302
|
export type Key = InkKey;
|