@shopify/cli-kit 3.58.2 → 3.59.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.
- package/assets/cli-ruby/Gemfile +0 -2
- package/assets/cli-ruby/lib/project_types/theme/cli.rb +0 -2
- package/assets/cli-ruby/lib/shopify_cli/constants.rb +6 -0
- package/assets/cli-ruby/lib/shopify_cli/environment.rb +7 -0
- package/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +6 -1
- package/assets/cli-ruby/lib/shopify_cli/theme/repl/api.rb +1 -1
- package/assets/cli-ruby/lib/shopify_cli/theme/theme_access_api.rb +3 -3
- package/assets/cli-ruby/shopify-cli.gemspec +0 -8
- package/dist/private/common/ts/overloaded-parameters.d.ts +0 -1
- package/dist/private/common/ts/overloaded-parameters.js.map +1 -1
- package/dist/private/node/analytics.d.ts +1 -0
- package/dist/private/node/analytics.js +2 -0
- package/dist/private/node/analytics.js.map +1 -1
- package/dist/private/node/api/graphql.d.ts +1 -1
- package/dist/private/node/api/graphql.js.map +1 -1
- package/dist/private/node/api/headers.js +1 -1
- package/dist/private/node/api/headers.js.map +1 -1
- package/dist/private/node/api/rest.d.ts +2 -1
- package/dist/private/node/api/rest.js +4 -2
- package/dist/private/node/api/rest.js.map +1 -1
- package/dist/private/node/constants.d.ts +2 -3
- package/dist/private/node/constants.js +2 -3
- package/dist/private/node/constants.js.map +1 -1
- package/dist/private/node/session/authorize.js +1 -1
- package/dist/private/node/session/authorize.js.map +1 -1
- package/dist/private/node/session/device-authorization.js +1 -1
- package/dist/private/node/session/device-authorization.js.map +1 -1
- package/dist/private/node/session/exchange.d.ts +2 -1
- package/dist/private/node/session/exchange.js.map +1 -1
- package/dist/private/node/session/post-auth.d.ts +0 -3
- package/dist/private/node/session/post-auth.js +1 -2
- package/dist/private/node/session/post-auth.js.map +1 -1
- package/dist/private/node/session/store.d.ts +0 -4
- package/dist/private/node/session/store.js +0 -4
- package/dist/private/node/session/store.js.map +1 -1
- package/dist/private/node/ui/components/AutocompletePrompt.js +1 -1
- package/dist/private/node/ui/components/AutocompletePrompt.js.map +1 -1
- package/dist/private/node/ui/components/AutocompletePrompt.test.js.map +1 -1
- package/dist/private/node/ui/components/ConcurrentOutput.d.ts +0 -3
- package/dist/private/node/ui/components/ConcurrentOutput.js.map +1 -1
- package/dist/private/node/ui/components/FatalError.d.ts +1 -1
- package/dist/private/node/ui/components/FatalError.js.map +1 -1
- package/dist/private/node/ui/components/Prompts/PromptLayout.d.ts +1 -1
- package/dist/private/node/ui/components/Prompts/PromptLayout.js.map +1 -1
- package/dist/private/node/ui/components/Scrollbar.d.ts +1 -1
- package/dist/private/node/ui/components/Scrollbar.js.map +1 -1
- package/dist/private/node/ui/components/SelectPrompt.test.js +0 -2
- package/dist/private/node/ui/components/SelectPrompt.test.js.map +1 -1
- package/dist/private/node/ui/hooks/use-select-state.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/api/business-platform.d.ts +1 -1
- package/dist/public/node/api/business-platform.js +1 -1
- package/dist/public/node/api/business-platform.js.map +1 -1
- package/dist/public/node/cli.d.ts +1 -1
- package/dist/public/node/cli.js +5 -6
- package/dist/public/node/cli.js.map +1 -1
- package/dist/public/node/custom-oclif-loader.js +23 -0
- package/dist/public/node/custom-oclif-loader.js.map +1 -1
- package/dist/public/node/is-global.d.ts +31 -0
- package/dist/public/node/is-global.js +69 -0
- package/dist/public/node/is-global.js.map +1 -1
- package/dist/public/node/monorail.d.ts +2 -1
- package/dist/public/node/monorail.js +15 -2
- package/dist/public/node/monorail.js.map +1 -1
- package/dist/public/node/tcp.d.ts +8 -1
- package/dist/public/node/tcp.js +8 -2
- package/dist/public/node/tcp.js.map +1 -1
- package/dist/public/node/themes/utils.d.ts +1 -0
- package/dist/public/node/themes/utils.js +9 -0
- package/dist/public/node/themes/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -12
- package/assets/cli-ruby/lib/project_types/theme/commands/check.rb +0 -38
- package/assets/cli-ruby/lib/project_types/theme/commands/language_server.rb +0 -18
- package/dist/private/common/lodash.d.ts +0 -47
- package/dist/private/common/lodash.js +0 -2
- package/dist/private/common/lodash.js.map +0 -1
- package/dist/private/node/ui/components/FullScreen.d.ts +0 -8
- package/dist/private/node/ui/components/FullScreen.js +0 -33
- package/dist/private/node/ui/components/FullScreen.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.59.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A set of utilities, interfaces, and models that are common across all the platform features",
|
|
6
6
|
"keywords": [
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@bugsnag/js": "7.21.0",
|
|
86
86
|
"@iarna/toml": "2.2.5",
|
|
87
|
-
"@oclif/core": "3.
|
|
87
|
+
"@oclif/core": "3.23.0",
|
|
88
88
|
"@opentelemetry/api": "1.6.0",
|
|
89
89
|
"@opentelemetry/core": "1.17.1",
|
|
90
90
|
"@opentelemetry/exporter-metrics-otlp-http": "0.43.0",
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
"@opentelemetry/sdk-metrics": "1.17.1",
|
|
93
93
|
"@opentelemetry/semantic-conventions": "1.17.1",
|
|
94
94
|
"@types/archiver": "5.3.2",
|
|
95
|
-
"abort-controller": "3.0.0",
|
|
96
95
|
"ansi-escapes": "6.2.0",
|
|
97
96
|
"archiver": "5.3.2",
|
|
98
97
|
"bottleneck": "2.19.5",
|
|
@@ -101,7 +100,6 @@
|
|
|
101
100
|
"color-json": "3.0.5",
|
|
102
101
|
"commondir": "1.0.1",
|
|
103
102
|
"conf": "11.0.2",
|
|
104
|
-
"cross-zip": "4.0.0",
|
|
105
103
|
"deepmerge": "4.3.1",
|
|
106
104
|
"del": "6.1.1",
|
|
107
105
|
"dotenv": "16.4.5",
|
|
@@ -111,17 +109,14 @@
|
|
|
111
109
|
"figures": "5.0.0",
|
|
112
110
|
"find-process": "1.4.7",
|
|
113
111
|
"find-up": "6.3.0",
|
|
114
|
-
"find-versions": "5.1.0",
|
|
115
112
|
"form-data": "4.0.0",
|
|
116
113
|
"fs-extra": "11.1.0",
|
|
117
|
-
"fuzzy": "0.1.3",
|
|
118
114
|
"get-port-please": "3.0.1",
|
|
119
115
|
"gradient-string": "2.0.2",
|
|
120
116
|
"graphql": "16.8.1",
|
|
121
117
|
"graphql-request": "5.2.0",
|
|
122
118
|
"ink": "4.4.1",
|
|
123
119
|
"is-interactive": "2.0.0",
|
|
124
|
-
"js-yaml": "4.1.0",
|
|
125
120
|
"kill-port-process": "3.1.0",
|
|
126
121
|
"latest-version": "7.0.0",
|
|
127
122
|
"liquidjs": "10.9.2",
|
|
@@ -136,20 +131,16 @@
|
|
|
136
131
|
"react": "18.2.0",
|
|
137
132
|
"semver": "7.5.4",
|
|
138
133
|
"simple-git": "3.19.1",
|
|
139
|
-
"source-map-support": "0.5.21",
|
|
140
134
|
"stacktracey": "2.1.8",
|
|
141
135
|
"strip-ansi": "7.1.0",
|
|
142
136
|
"supports-hyperlinks": "3.0.0",
|
|
143
137
|
"tempy": "3.0.0",
|
|
144
|
-
"term-size": "3.0.2",
|
|
145
138
|
"terminal-link": "3.0.0",
|
|
146
139
|
"ts-error": "1.0.6",
|
|
147
|
-
"unique-string": "3.0.0",
|
|
148
140
|
"zod": "3.22.3"
|
|
149
141
|
},
|
|
150
142
|
"devDependencies": {
|
|
151
143
|
"@types/commondir": "^1.0.0",
|
|
152
|
-
"@types/cross-zip": "^4.0.0",
|
|
153
144
|
"@types/diff": "^5.0.3",
|
|
154
145
|
"@types/fs-extra": "9.0.13",
|
|
155
146
|
"@types/gradient-string": "^1.1.2",
|
|
@@ -162,7 +153,6 @@
|
|
|
162
153
|
"ts-morph": "^17.0.1",
|
|
163
154
|
"typedoc": "^0.25.7",
|
|
164
155
|
"typescript": "5.2.2",
|
|
165
|
-
"vite": "^4.4.9",
|
|
166
156
|
"vitest": "^0.34.3"
|
|
167
157
|
},
|
|
168
158
|
"engines": {
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "theme_check"
|
|
3
|
-
|
|
4
|
-
module Theme
|
|
5
|
-
class Command
|
|
6
|
-
class Check < ShopifyCLI::Command::SubCommand
|
|
7
|
-
recommend_default_ruby_range
|
|
8
|
-
|
|
9
|
-
class Options < ShopifyCLI::Options
|
|
10
|
-
def initialize(theme_check)
|
|
11
|
-
super()
|
|
12
|
-
@theme_check = theme_check
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def parse(_options_block, args)
|
|
16
|
-
@theme_check.parse(args)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def initialize(*)
|
|
21
|
-
super
|
|
22
|
-
@theme_check = ThemeCheck::Cli.new
|
|
23
|
-
self.options = Options.new(@theme_check)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def call(*)
|
|
27
|
-
@theme_check.run!
|
|
28
|
-
rescue ThemeCheck::Cli::Abort, ThemeCheck::ThemeCheckError => e
|
|
29
|
-
raise ShopifyCLI::Abort,
|
|
30
|
-
ShopifyCLI::Context.message("theme.check.error", e.full_message)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.help
|
|
34
|
-
ShopifyCLI::Context.message("theme.check.help", ShopifyCLI::TOOL_NAME)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "theme_check"
|
|
3
|
-
|
|
4
|
-
module Theme
|
|
5
|
-
class Command
|
|
6
|
-
class LanguageServer < ShopifyCLI::Command::SubCommand
|
|
7
|
-
recommend_default_ruby_range
|
|
8
|
-
|
|
9
|
-
def call(*)
|
|
10
|
-
ThemeCheck::LanguageServer.start
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def self.help
|
|
14
|
-
ShopifyCLI::Context.message("theme.language_server.help", ShopifyCLI::TOOL_NAME)
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export type PartialShallow<T> = {
|
|
2
|
-
[P in keyof T]?: T[P] extends object ? object : T[P];
|
|
3
|
-
};
|
|
4
|
-
export type PropertyName = string | number | symbol;
|
|
5
|
-
export type IterateeShorthand<T> = PropertyName | [PropertyName, unknown] | PartialShallow<T>;
|
|
6
|
-
export type ValueIteratee<T> = ((value: T) => unknown) | IterateeShorthand<T>;
|
|
7
|
-
export interface Dictionary<T> {
|
|
8
|
-
[index: string]: T;
|
|
9
|
-
}
|
|
10
|
-
export interface DebounceSettings {
|
|
11
|
-
/**
|
|
12
|
-
* @see _.leading
|
|
13
|
-
*/
|
|
14
|
-
leading?: boolean | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* @see _.maxWait
|
|
17
|
-
*/
|
|
18
|
-
maxWait?: number | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* @see _.trailing
|
|
21
|
-
*/
|
|
22
|
-
trailing?: boolean | undefined;
|
|
23
|
-
}
|
|
24
|
-
export interface DebouncedFunc<T extends (...args: unknown[]) => unknown> {
|
|
25
|
-
/**
|
|
26
|
-
* Call the original function, but applying the debounce rules.
|
|
27
|
-
*
|
|
28
|
-
* If the debounced function can be run immediately, this calls it and returns its return
|
|
29
|
-
* value.
|
|
30
|
-
*
|
|
31
|
-
* Otherwise, it returns the return value of the last invocation, or undefined if the debounced
|
|
32
|
-
* function was not invoked yet.
|
|
33
|
-
*/
|
|
34
|
-
(...args: Parameters<T>): ReturnType<T> | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Throw away any pending invocation of the debounced function.
|
|
37
|
-
*/
|
|
38
|
-
cancel(): void;
|
|
39
|
-
/**
|
|
40
|
-
* If there is a pending invocation of the debounced function, invoke it immediately and return
|
|
41
|
-
* its return value.
|
|
42
|
-
*
|
|
43
|
-
* Otherwise, return the value from the last invocation, or undefined if the debounced function
|
|
44
|
-
* was never invoked.
|
|
45
|
-
*/
|
|
46
|
-
flush(): ReturnType<T> | undefined;
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lodash.js","sourceRoot":"","sources":["../../../src/private/common/lodash.ts"],"names":[],"mappings":"","sourcesContent":["export type PartialShallow<T> = {\n [P in keyof T]?: T[P] extends object ? object : T[P]\n}\nexport type PropertyName = string | number | symbol\nexport type IterateeShorthand<T> = PropertyName | [PropertyName, unknown] | PartialShallow<T>\nexport type ValueIteratee<T> = ((value: T) => unknown) | IterateeShorthand<T>\nexport interface Dictionary<T> {\n [index: string]: T\n}\n\nexport interface DebounceSettings {\n /**\n * @see _.leading\n */\n leading?: boolean | undefined\n /**\n * @see _.maxWait\n */\n maxWait?: number | undefined\n /**\n * @see _.trailing\n */\n trailing?: boolean | undefined\n}\n\nexport interface DebouncedFunc<T extends (...args: unknown[]) => unknown> {\n /**\n * Call the original function, but applying the debounce rules.\n *\n * If the debounced function can be run immediately, this calls it and returns its return\n * value.\n *\n * Otherwise, it returns the return value of the last invocation, or undefined if the debounced\n * function was not invoked yet.\n */\n (...args: Parameters<T>): ReturnType<T> | undefined\n\n /**\n * Throw away any pending invocation of the debounced function.\n */\n cancel(): void\n\n /**\n * If there is a pending invocation of the debounced function, invoke it immediately and return\n * its return value.\n *\n * Otherwise, return the value from the last invocation, or undefined if the debounced function\n * was never invoked.\n */\n flush(): ReturnType<T> | undefined\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* `FullScreen` renders all output in a new buffer and makes it full screen. This is useful when:
|
|
4
|
-
* - You want to preserve terminal history. `ink` [normally clears the terminal history](https://github.com/vadimdemedes/ink/issues/382) if the rendered output is taller than the terminal window. By rendering in a separate buffer history will be preserved and will be visible after pressing `Ctrl+C`.
|
|
5
|
-
* - You want to respond to the resize event of the terminal. Whenever the user resizes their terminal window the output's height and width will be recalculated and re-rendered properly.
|
|
6
|
-
*/
|
|
7
|
-
declare const FullScreen: FunctionComponent;
|
|
8
|
-
export { FullScreen };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Box, useStdout } from 'ink';
|
|
2
|
-
import React, { useEffect, useState } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* `FullScreen` renders all output in a new buffer and makes it full screen. This is useful when:
|
|
5
|
-
* - You want to preserve terminal history. `ink` [normally clears the terminal history](https://github.com/vadimdemedes/ink/issues/382) if the rendered output is taller than the terminal window. By rendering in a separate buffer history will be preserved and will be visible after pressing `Ctrl+C`.
|
|
6
|
-
* - You want to respond to the resize event of the terminal. Whenever the user resizes their terminal window the output's height and width will be recalculated and re-rendered properly.
|
|
7
|
-
*/
|
|
8
|
-
const FullScreen = ({ children }) => {
|
|
9
|
-
const { stdout } = useStdout();
|
|
10
|
-
const [size, setSize] = useState({
|
|
11
|
-
columns: stdout.columns,
|
|
12
|
-
rows: stdout.rows,
|
|
13
|
-
});
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
function onResize() {
|
|
16
|
-
setSize({
|
|
17
|
-
columns: stdout.columns,
|
|
18
|
-
rows: stdout.rows,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
stdout.on('resize', onResize);
|
|
22
|
-
// switch to an alternate buffer
|
|
23
|
-
stdout.write('\u001B[?1049h');
|
|
24
|
-
return () => {
|
|
25
|
-
stdout.off('resize', onResize);
|
|
26
|
-
// switch back to the main buffer
|
|
27
|
-
stdout.write('\u001B[?1049l');
|
|
28
|
-
};
|
|
29
|
-
}, [stdout]);
|
|
30
|
-
return (React.createElement(Box, { width: size.columns, height: size.rows }, children));
|
|
31
|
-
};
|
|
32
|
-
export { FullScreen };
|
|
33
|
-
//# sourceMappingURL=FullScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreen.js","sourceRoot":"","sources":["../../../../../src/private/node/ui/components/FullScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,SAAS,EAAC,MAAM,KAAK,CAAA;AAClC,OAAO,KAAK,EAAE,EAAoB,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAA;AAEnE;;;;GAIG;AACH,MAAM,UAAU,GAAsB,CAAC,EAAC,QAAQ,EAAC,EAAe,EAAE;IAChE,MAAM,EAAC,MAAM,EAAC,GAAG,SAAS,EAAE,CAAA;IAE5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC;QAC/B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,QAAQ;YACf,OAAO,CAAC;gBACN,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAC7B,gCAAgC;QAChC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAC7B,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;YAC9B,iCAAiC;YACjC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAC/B,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,CACL,oBAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,IACxC,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA","sourcesContent":["import {Box, useStdout} from 'ink'\nimport React, {FunctionComponent, useEffect, useState} from 'react'\n\n/**\n * `FullScreen` renders all output in a new buffer and makes it full screen. This is useful when:\n * - You want to preserve terminal history. `ink` [normally clears the terminal history](https://github.com/vadimdemedes/ink/issues/382) if the rendered output is taller than the terminal window. By rendering in a separate buffer history will be preserved and will be visible after pressing `Ctrl+C`.\n * - You want to respond to the resize event of the terminal. Whenever the user resizes their terminal window the output's height and width will be recalculated and re-rendered properly.\n */\nconst FullScreen: FunctionComponent = ({children}): JSX.Element => {\n const {stdout} = useStdout()\n\n const [size, setSize] = useState({\n columns: stdout.columns,\n rows: stdout.rows,\n })\n\n useEffect(() => {\n function onResize() {\n setSize({\n columns: stdout.columns,\n rows: stdout.rows,\n })\n }\n\n stdout.on('resize', onResize)\n // switch to an alternate buffer\n stdout.write('\\u001B[?1049h')\n return () => {\n stdout.off('resize', onResize)\n // switch back to the main buffer\n stdout.write('\\u001B[?1049l')\n }\n }, [stdout])\n\n return (\n <Box width={size.columns} height={size.rows}>\n {children}\n </Box>\n )\n}\n\nexport {FullScreen}\n"]}
|