@shopify/cli-kit 3.72.2 → 3.73.1
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/dist/cli/api/graphql/admin/generated/get_theme.d.ts +16 -0
- package/dist/cli/api/graphql/admin/generated/get_theme.js +44 -0
- package/dist/cli/api/graphql/admin/generated/get_theme.js.map +1 -0
- package/dist/cli/api/graphql/admin/generated/get_themes.d.ts +22 -0
- package/dist/cli/api/graphql/admin/generated/get_themes.js +67 -0
- package/dist/cli/api/graphql/admin/generated/get_themes.js.map +1 -0
- package/dist/cli/api/graphql/admin/generated/metafield_definitions_by_owner_type.d.ts +22 -0
- package/dist/cli/api/graphql/admin/generated/metafield_definitions_by_owner_type.js +67 -0
- package/dist/cli/api/graphql/admin/generated/metafield_definitions_by_owner_type.js.map +1 -0
- package/dist/private/node/request-ids.d.ts +24 -0
- package/dist/private/node/request-ids.js +38 -0
- package/dist/private/node/request-ids.js.map +1 -0
- package/dist/private/node/ui/components/AutocompletePrompt.test.js +76 -0
- package/dist/private/node/ui/components/AutocompletePrompt.test.js.map +1 -1
- package/dist/private/node/ui/components/SelectInput.js +9 -1
- package/dist/private/node/ui/components/SelectInput.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/analytics.js +2 -0
- package/dist/public/node/analytics.js.map +1 -1
- package/dist/public/node/api/graphql.js +34 -14
- package/dist/public/node/api/graphql.js.map +1 -1
- package/dist/public/node/error.js +3 -1
- package/dist/public/node/error.js.map +1 -1
- package/dist/public/node/fs.d.ts +8 -1
- package/dist/public/node/fs.js +12 -3
- package/dist/public/node/fs.js.map +1 -1
- package/dist/public/node/git.d.ts +7 -0
- package/dist/public/node/git.js +12 -1
- package/dist/public/node/git.js.map +1 -1
- package/dist/public/node/is-global.js +18 -12
- package/dist/public/node/is-global.js.map +1 -1
- package/dist/public/node/monorail.d.ts +1 -1
- package/dist/public/node/monorail.js +1 -1
- package/dist/public/node/monorail.js.map +1 -1
- package/dist/public/node/node-package-manager.d.ts +3 -0
- package/dist/public/node/node-package-manager.js +7 -0
- package/dist/public/node/node-package-manager.js.map +1 -1
- package/dist/public/node/themes/api.d.ts +11 -0
- package/dist/public/node/themes/api.js +67 -7
- package/dist/public/node/themes/api.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/public/node/api/http.d.ts +0 -1
- package/dist/public/node/api/http.js +0 -2
- package/dist/public/node/api/http.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Types from './types.js';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type GetThemeQueryVariables = Types.Exact<{
|
|
4
|
+
id: Types.Scalars['ID']['input'];
|
|
5
|
+
}>;
|
|
6
|
+
export type GetThemeQuery = {
|
|
7
|
+
theme?: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
role: Types.ThemeRole;
|
|
11
|
+
processing: boolean;
|
|
12
|
+
} | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const GetTheme: DocumentNode<GetThemeQuery, Types.Exact<{
|
|
15
|
+
id: Types.Scalars['ID']['input'];
|
|
16
|
+
}>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const GetTheme = {
|
|
2
|
+
kind: 'Document',
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: 'OperationDefinition',
|
|
6
|
+
operation: 'query',
|
|
7
|
+
name: { kind: 'Name', value: 'getTheme' },
|
|
8
|
+
variableDefinitions: [
|
|
9
|
+
{
|
|
10
|
+
kind: 'VariableDefinition',
|
|
11
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
12
|
+
type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } } },
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
selectionSet: {
|
|
16
|
+
kind: 'SelectionSet',
|
|
17
|
+
selections: [
|
|
18
|
+
{
|
|
19
|
+
kind: 'Field',
|
|
20
|
+
name: { kind: 'Name', value: 'theme' },
|
|
21
|
+
arguments: [
|
|
22
|
+
{
|
|
23
|
+
kind: 'Argument',
|
|
24
|
+
name: { kind: 'Name', value: 'id' },
|
|
25
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
selectionSet: {
|
|
29
|
+
kind: 'SelectionSet',
|
|
30
|
+
selections: [
|
|
31
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
32
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
33
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'role' } },
|
|
34
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'processing' } },
|
|
35
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=get_theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_theme.js","sourceRoot":"","sources":["../../../../../../src/cli/api/graphql/admin/generated/get_theme.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE;QACX;YACE,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,OAAO;YAClB,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAC;YACvC,mBAAmB,EAAE;gBACnB;oBACE,IAAI,EAAE,oBAAoB;oBAC1B,QAAQ,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,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E,MAAM,EAAE,KAAK,EAAE,YAAY,EAAC,EAAC;6BAC3D;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACgE,CAAA","sourcesContent":["/* eslint-disable @typescript-eslint/consistent-type-definitions */\nimport * as Types from './types.js'\n\nimport {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'\n\nexport type GetThemeQueryVariables = Types.Exact<{\n id: Types.Scalars['ID']['input']\n}>\n\nexport type GetThemeQuery = {theme?: {id: string; name: string; role: Types.ThemeRole; processing: boolean} | null}\n\nexport const GetTheme = {\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: {kind: 'Name', value: 'getTheme'},\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: {kind: 'Variable', name: {kind: 'Name', value: 'id'}},\n type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ID'}}},\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'theme'},\n arguments: [\n {\n kind: 'Argument',\n name: {kind: 'Name', value: 'id'},\n value: {kind: 'Variable', name: {kind: 'Name', value: 'id'}},\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {kind: 'Field', name: {kind: 'Name', value: 'id'}},\n {kind: 'Field', name: {kind: 'Name', value: 'name'}},\n {kind: 'Field', name: {kind: 'Name', value: 'role'}},\n {kind: 'Field', name: {kind: 'Name', value: 'processing'}},\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<GetThemeQuery, GetThemeQueryVariables>\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Types from './types.js';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type GetThemesQueryVariables = Types.Exact<{
|
|
4
|
+
after?: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetThemesQuery = {
|
|
7
|
+
themes?: {
|
|
8
|
+
nodes: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
role: Types.ThemeRole;
|
|
12
|
+
processing: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
pageInfo: {
|
|
15
|
+
hasNextPage: boolean;
|
|
16
|
+
endCursor?: string | null;
|
|
17
|
+
};
|
|
18
|
+
} | null;
|
|
19
|
+
};
|
|
20
|
+
export declare const GetThemes: DocumentNode<GetThemesQuery, Types.Exact<{
|
|
21
|
+
after?: Types.InputMaybe<string> | undefined;
|
|
22
|
+
}>>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export const GetThemes = {
|
|
2
|
+
kind: 'Document',
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: 'OperationDefinition',
|
|
6
|
+
operation: 'query',
|
|
7
|
+
name: { kind: 'Name', value: 'getThemes' },
|
|
8
|
+
variableDefinitions: [
|
|
9
|
+
{
|
|
10
|
+
kind: 'VariableDefinition',
|
|
11
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
12
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
selectionSet: {
|
|
16
|
+
kind: 'SelectionSet',
|
|
17
|
+
selections: [
|
|
18
|
+
{
|
|
19
|
+
kind: 'Field',
|
|
20
|
+
name: { kind: 'Name', value: 'themes' },
|
|
21
|
+
arguments: [
|
|
22
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'first' }, value: { kind: 'IntValue', value: '50' } },
|
|
23
|
+
{
|
|
24
|
+
kind: 'Argument',
|
|
25
|
+
name: { kind: 'Name', value: 'after' },
|
|
26
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
selectionSet: {
|
|
30
|
+
kind: 'SelectionSet',
|
|
31
|
+
selections: [
|
|
32
|
+
{
|
|
33
|
+
kind: 'Field',
|
|
34
|
+
name: { kind: 'Name', value: 'nodes' },
|
|
35
|
+
selectionSet: {
|
|
36
|
+
kind: 'SelectionSet',
|
|
37
|
+
selections: [
|
|
38
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
39
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
40
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'role' } },
|
|
41
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'processing' } },
|
|
42
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
kind: 'Field',
|
|
48
|
+
name: { kind: 'Name', value: 'pageInfo' },
|
|
49
|
+
selectionSet: {
|
|
50
|
+
kind: 'SelectionSet',
|
|
51
|
+
selections: [
|
|
52
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'hasNextPage' } },
|
|
53
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'endCursor' } },
|
|
54
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=get_themes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_themes.js","sourceRoot":"","sources":["../../../../../../src/cli/api/graphql/admin/generated/get_themes.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE;QACX;YACE,IAAI,EAAE,q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ACF;aACF;SACF;KACF;CACkE,CAAA","sourcesContent":["/* eslint-disable @typescript-eslint/consistent-type-definitions */\nimport * as Types from './types.js'\n\nimport {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'\n\nexport type GetThemesQueryVariables = Types.Exact<{\n after?: Types.InputMaybe<Types.Scalars['String']['input']>\n}>\n\nexport type GetThemesQuery = {\n themes?: {\n nodes: {id: string; name: string; role: Types.ThemeRole; processing: boolean}[]\n pageInfo: {hasNextPage: boolean; endCursor?: string | null}\n } | null\n}\n\nexport const GetThemes = {\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: {kind: 'Name', value: 'getThemes'},\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: {kind: 'Variable', name: {kind: 'Name', value: 'after'}},\n type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}},\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'themes'},\n arguments: [\n {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '50'}},\n {\n kind: 'Argument',\n name: {kind: 'Name', value: 'after'},\n value: {kind: 'Variable', name: {kind: 'Name', value: 'after'}},\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'nodes'},\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {kind: 'Field', name: {kind: 'Name', value: 'id'}},\n {kind: 'Field', name: {kind: 'Name', value: 'name'}},\n {kind: 'Field', name: {kind: 'Name', value: 'role'}},\n {kind: 'Field', name: {kind: 'Name', value: 'processing'}},\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'pageInfo'},\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {kind: 'Field', name: {kind: 'Name', value: 'hasNextPage'}},\n {kind: 'Field', name: {kind: 'Name', value: 'endCursor'}},\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<GetThemesQuery, GetThemesQueryVariables>\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Types from './types.js';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type MetafieldDefinitionsByOwnerTypeQueryVariables = Types.Exact<{
|
|
4
|
+
ownerType: Types.MetafieldOwnerType;
|
|
5
|
+
}>;
|
|
6
|
+
export type MetafieldDefinitionsByOwnerTypeQuery = {
|
|
7
|
+
metafieldDefinitions: {
|
|
8
|
+
nodes: {
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
namespace: string;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
type: {
|
|
14
|
+
category: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const MetafieldDefinitionsByOwnerType: DocumentNode<MetafieldDefinitionsByOwnerTypeQuery, Types.Exact<{
|
|
21
|
+
ownerType: Types.MetafieldOwnerType;
|
|
22
|
+
}>>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export const MetafieldDefinitionsByOwnerType = {
|
|
2
|
+
kind: 'Document',
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: 'OperationDefinition',
|
|
6
|
+
operation: 'query',
|
|
7
|
+
name: { kind: 'Name', value: 'metafieldDefinitionsByOwnerType' },
|
|
8
|
+
variableDefinitions: [
|
|
9
|
+
{
|
|
10
|
+
kind: 'VariableDefinition',
|
|
11
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'ownerType' } },
|
|
12
|
+
type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'MetafieldOwnerType' } } },
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
selectionSet: {
|
|
16
|
+
kind: 'SelectionSet',
|
|
17
|
+
selections: [
|
|
18
|
+
{
|
|
19
|
+
kind: 'Field',
|
|
20
|
+
name: { kind: 'Name', value: 'metafieldDefinitions' },
|
|
21
|
+
arguments: [
|
|
22
|
+
{
|
|
23
|
+
kind: 'Argument',
|
|
24
|
+
name: { kind: 'Name', value: 'ownerType' },
|
|
25
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'ownerType' } },
|
|
26
|
+
},
|
|
27
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'first' }, value: { kind: 'IntValue', value: '250' } },
|
|
28
|
+
],
|
|
29
|
+
selectionSet: {
|
|
30
|
+
kind: 'SelectionSet',
|
|
31
|
+
selections: [
|
|
32
|
+
{
|
|
33
|
+
kind: 'Field',
|
|
34
|
+
name: { kind: 'Name', value: 'nodes' },
|
|
35
|
+
selectionSet: {
|
|
36
|
+
kind: 'SelectionSet',
|
|
37
|
+
selections: [
|
|
38
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'key' } },
|
|
39
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
40
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'namespace' } },
|
|
41
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
42
|
+
{
|
|
43
|
+
kind: 'Field',
|
|
44
|
+
name: { kind: 'Name', value: 'type' },
|
|
45
|
+
selectionSet: {
|
|
46
|
+
kind: 'SelectionSet',
|
|
47
|
+
selections: [
|
|
48
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
49
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
50
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{ kind: 'Field', name: { kind: 'Name', value: '__typename' } },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=metafield_definitions_by_owner_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metafield_definitions_by_owner_type.js","sourceRoot":"","sources":["../../../../../../src/cli/api/graphql/admin/generated/metafield_definitions_by_owner_type.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE;QACX;YACE,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,OAAO;YAClB,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,iCAAiC,EAAC;YAC9D,mBAAmB,EAAE;gBACnB;oBACE,IAAI,EAAE,oBAAoB;oBAC1B,QAAQ,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAC,EAAC;oBACtE,IAAI,EAAE,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,EAAC,EAAC,EAAC;iBAC1G;aACF;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,cAAc;gBACpB,UAAU,EAAE;oBACV;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAC;wBACnD,SAAS,EAAE;4BACT;gCACE,IAAI,EAAE,UAAU;gCAChB,IAAI,EAAE,EAAC,IAAI,E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,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAC,EAAC;wDACxD,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAC,EAAC;wDACpD,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAC,EAAC;qDAC3D;iDACF;6CACF;4CACD,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAC,EAAC;yCAC3D;qCACF;iCACF;gCACD,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAC,EAAC;6BAC3D;yBACF;qBACF;iBACF;aACF;SACF;KACF;CAC8G,CAAA","sourcesContent":["/* eslint-disable @typescript-eslint/consistent-type-definitions */\nimport * as Types from './types.js'\n\nimport {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'\n\nexport type MetafieldDefinitionsByOwnerTypeQueryVariables = Types.Exact<{\n ownerType: Types.MetafieldOwnerType\n}>\n\nexport type MetafieldDefinitionsByOwnerTypeQuery = {\n metafieldDefinitions: {\n nodes: {\n key: string\n name: string\n namespace: string\n description?: string | null\n type: {category: string; name: string}\n }[]\n }\n}\n\nexport const MetafieldDefinitionsByOwnerType = {\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: {kind: 'Name', value: 'metafieldDefinitionsByOwnerType'},\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: {kind: 'Variable', name: {kind: 'Name', value: 'ownerType'}},\n type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'MetafieldOwnerType'}}},\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'metafieldDefinitions'},\n arguments: [\n {\n kind: 'Argument',\n name: {kind: 'Name', value: 'ownerType'},\n value: {kind: 'Variable', name: {kind: 'Name', value: 'ownerType'}},\n },\n {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '250'}},\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'nodes'},\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {kind: 'Field', name: {kind: 'Name', value: 'key'}},\n {kind: 'Field', name: {kind: 'Name', value: 'name'}},\n {kind: 'Field', name: {kind: 'Name', value: 'namespace'}},\n {kind: 'Field', name: {kind: 'Name', value: 'description'}},\n {\n kind: 'Field',\n name: {kind: 'Name', value: 'type'},\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {kind: 'Field', name: {kind: 'Name', value: 'category'}},\n {kind: 'Field', name: {kind: 'Name', value: 'name'}},\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n {kind: 'Field', name: {kind: 'Name', value: '__typename'}},\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<MetafieldDefinitionsByOwnerTypeQuery, MetafieldDefinitionsByOwnerTypeQueryVariables>\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const MAX_REQUEST_IDS = 100;
|
|
2
|
+
/**
|
|
3
|
+
* Manages collection of request IDs during command execution
|
|
4
|
+
*/
|
|
5
|
+
declare class RequestIDCollection {
|
|
6
|
+
private static instance;
|
|
7
|
+
static getInstance(): RequestIDCollection;
|
|
8
|
+
private requestIds;
|
|
9
|
+
/**
|
|
10
|
+
* Add a request ID to the collection
|
|
11
|
+
* We only report the first MAX_REQUEST_IDS request IDs.
|
|
12
|
+
*/
|
|
13
|
+
addRequestId(requestId: string | undefined | null): void;
|
|
14
|
+
/**
|
|
15
|
+
* Get all collected request IDs
|
|
16
|
+
*/
|
|
17
|
+
getRequestIds(): string[];
|
|
18
|
+
/**
|
|
19
|
+
* Clear all stored request IDs
|
|
20
|
+
*/
|
|
21
|
+
clear(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare const requestIdsCollection: RequestIDCollection;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const MAX_REQUEST_IDS = 100;
|
|
2
|
+
/**
|
|
3
|
+
* Manages collection of request IDs during command execution
|
|
4
|
+
*/
|
|
5
|
+
class RequestIDCollection {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.requestIds = [];
|
|
8
|
+
}
|
|
9
|
+
static getInstance() {
|
|
10
|
+
if (!RequestIDCollection.instance) {
|
|
11
|
+
RequestIDCollection.instance = new RequestIDCollection();
|
|
12
|
+
}
|
|
13
|
+
return RequestIDCollection.instance;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Add a request ID to the collection
|
|
17
|
+
* We only report the first MAX_REQUEST_IDS request IDs.
|
|
18
|
+
*/
|
|
19
|
+
addRequestId(requestId) {
|
|
20
|
+
if (requestId && this.requestIds.length < MAX_REQUEST_IDS) {
|
|
21
|
+
this.requestIds.push(requestId);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get all collected request IDs
|
|
26
|
+
*/
|
|
27
|
+
getRequestIds() {
|
|
28
|
+
return this.requestIds;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Clear all stored request IDs
|
|
32
|
+
*/
|
|
33
|
+
clear() {
|
|
34
|
+
this.requestIds = [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export const requestIdsCollection = RequestIDCollection.getInstance();
|
|
38
|
+
//# sourceMappingURL=request-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-ids.js","sourceRoot":"","sources":["../../../src/private/node/request-ids.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;AAElC;;GAEG;AACH,MAAM,mBAAmB;IAAzB;QAUU,eAAU,GAAa,EAAE,CAAA;IAyBnC,CAAC;IAhCC,MAAM,CAAC,WAAW;QAChB,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE;YACjC,mBAAmB,CAAC,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAA;SACzD;QACD,OAAO,mBAAmB,CAAC,QAAQ,CAAA;IACrC,CAAC;IAID;;;OAGG;IACH,YAAY,CAAC,SAAoC;QAC/C,IAAI,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,eAAe,EAAE;YACzD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;SAChC;IACH,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAA;IACxB,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;IACtB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,EAAE,CAAA","sourcesContent":["export const MAX_REQUEST_IDS = 100\n\n/**\n * Manages collection of request IDs during command execution\n */\nclass RequestIDCollection {\n private static instance: RequestIDCollection\n\n static getInstance(): RequestIDCollection {\n if (!RequestIDCollection.instance) {\n RequestIDCollection.instance = new RequestIDCollection()\n }\n return RequestIDCollection.instance\n }\n\n private requestIds: string[] = []\n\n /**\n * Add a request ID to the collection\n * We only report the first MAX_REQUEST_IDS request IDs.\n */\n addRequestId(requestId: string | undefined | null) {\n if (requestId && this.requestIds.length < MAX_REQUEST_IDS) {\n this.requestIds.push(requestId)\n }\n }\n\n /**\n * Get all collected request IDs\n */\n getRequestIds(): string[] {\n return this.requestIds\n }\n\n /**\n * Clear all stored request IDs\n */\n clear() {\n this.requestIds = []\n }\n}\n\nexport const requestIdsCollection = RequestIDCollection.getInstance()\n"]}
|
|
@@ -419,6 +419,82 @@ describe('AutocompletePrompt', async () => {
|
|
|
419
419
|
`);
|
|
420
420
|
expect(onEnter).toHaveBeenCalledWith('fifth');
|
|
421
421
|
});
|
|
422
|
+
test('allows searching with malformed regex', async () => {
|
|
423
|
+
const onEnter = vi.fn();
|
|
424
|
+
const db = [...DATABASE, { label: 'with\\slash', value: 'with\\slash' }];
|
|
425
|
+
const search = async (term) => {
|
|
426
|
+
return {
|
|
427
|
+
data: db.filter((item) => item.label.includes(term)),
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
const renderInstance = render(React.createElement(AutocompletePrompt, { message: "Associate your project with the org Castile Ventures?", choices: db, onSubmit: onEnter, search: search }));
|
|
431
|
+
expect(renderInstance.lastFrame()).toMatchInlineSnapshot(`
|
|
432
|
+
"? Associate your project with the org Castile Ventures? [36m[7mT[27m[2mype to search...[22m[39m
|
|
433
|
+
|
|
434
|
+
[36m>[39m [36mfirst[39m [46m [49m
|
|
435
|
+
second [46m [49m
|
|
436
|
+
third [46m [49m
|
|
437
|
+
fourth [46m [49m
|
|
438
|
+
fifth [46m [49m
|
|
439
|
+
sixth [46m [49m
|
|
440
|
+
seventh [46m [49m
|
|
441
|
+
eighth [46m [49m
|
|
442
|
+
ninth [46m [49m
|
|
443
|
+
tenth [46m [49m
|
|
444
|
+
eleventh [46m [49m
|
|
445
|
+
twelfth [46m [49m
|
|
446
|
+
thirteenth [46m [49m
|
|
447
|
+
fourteenth [100m [49m
|
|
448
|
+
fifteenth [100m [49m
|
|
449
|
+
sixteenth [100m [49m
|
|
450
|
+
seventeenth [100m [49m
|
|
451
|
+
eighteenth [100m [49m
|
|
452
|
+
nineteenth [100m [49m
|
|
453
|
+
twentieth [100m [49m
|
|
454
|
+
twenty-first [100m [49m
|
|
455
|
+
twenty-second [100m [49m
|
|
456
|
+
twenty-third [100m [49m
|
|
457
|
+
twenty-fourth [100m [49m
|
|
458
|
+
twenty-fifth [100m [49m
|
|
459
|
+
|
|
460
|
+
[2mPress ↑↓ arrows to select, enter to confirm.[22m
|
|
461
|
+
"
|
|
462
|
+
`);
|
|
463
|
+
await waitForInputsToBeReady();
|
|
464
|
+
await sendInputAndWaitForContent(renderInstance, 'slash', '\\');
|
|
465
|
+
expect(renderInstance.lastFrame()).toMatchInlineSnapshot(`
|
|
466
|
+
"? Associate your project with the org Castile Ventures? [36m\\\\[46m█[49m[39m
|
|
467
|
+
|
|
468
|
+
[36m>[39m [36mwith\\\\slash[39m
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
[2mPress ↑↓ arrows to select, enter to confirm.[22m
|
|
495
|
+
"
|
|
496
|
+
`);
|
|
497
|
+
});
|
|
422
498
|
test('displays an error message if the search fails', async () => {
|
|
423
499
|
const search = (_term) => {
|
|
424
500
|
return Promise.reject(new Error('Something went wrong'));
|