@graphiql/plugin-doc-explorer 1.0.0-beta.0 → 1.0.0-beta.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/LICENSE +21 -0
- package/dist/components/argument.js +88 -92
- package/dist/components/argument.js.map +1 -1
- package/dist/components/arguments-list.js +226 -237
- package/dist/components/arguments-list.js.map +1 -1
- package/dist/components/breadcrumb.js +59 -52
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/default-value.js +63 -74
- package/dist/components/default-value.js.map +1 -1
- package/dist/components/deprecation-reason.js +27 -21
- package/dist/components/deprecation-reason.js.map +1 -1
- package/dist/components/directive.js +20 -23
- package/dist/components/directive.js.map +1 -1
- package/dist/components/doc-explorer.js +219 -259
- package/dist/components/doc-explorer.js.map +1 -1
- package/dist/components/field-card.js +103 -97
- package/dist/components/field-card.js.map +1 -1
- package/dist/components/field-documentation.js +118 -135
- package/dist/components/field-documentation.js.map +1 -1
- package/dist/components/field-link.js +37 -39
- package/dist/components/field-link.js.map +1 -1
- package/dist/components/fields-list.js +216 -226
- package/dist/components/fields-list.js.map +1 -1
- package/dist/components/schema-documentation.js +263 -224
- package/dist/components/schema-documentation.js.map +1 -1
- package/dist/components/search-row.js +287 -268
- package/dist/components/search-row.js.map +1 -1
- package/dist/components/search.js +342 -345
- package/dist/components/search.js.map +1 -1
- package/dist/components/section.js +59 -69
- package/dist/components/section.js.map +1 -1
- package/dist/components/type-card.js +104 -107
- package/dist/components/type-card.js.map +1 -1
- package/dist/components/type-documentation.js +340 -363
- package/dist/components/type-documentation.js.map +1 -1
- package/dist/components/type-link.js +38 -39
- package/dist/components/type-link.js.map +1 -1
- package/dist/components/utils.js +15 -20
- package/dist/components/utils.js.map +1 -1
- package/dist/context.js +205 -285
- package/dist/context.js.map +1 -1
- package/dist/index.js +7 -31
- package/dist/schema-reference.js +48 -54
- package/dist/schema-reference.js.map +1 -1
- package/dist/style.css +24 -28
- package/package.json +25 -19
- package/dist/index.js.map +0 -1
package/dist/schema-reference.js
CHANGED
|
@@ -1,69 +1,63 @@
|
|
|
1
1
|
import { getNamedType } from "graphql";
|
|
2
|
+
//#region src/schema-reference.ts
|
|
3
|
+
/**
|
|
4
|
+
* Copied from packages/codemirror-graphql/src/jump.ts
|
|
5
|
+
*/
|
|
2
6
|
function getSchemaReference(kind, typeInfo) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
if (kind === "Argument" && typeInfo.argDef) {
|
|
10
|
-
return getArgumentReference(typeInfo);
|
|
11
|
-
}
|
|
12
|
-
if (kind === "EnumValue" && typeInfo.enumValue) {
|
|
13
|
-
return getEnumValueReference(typeInfo);
|
|
14
|
-
}
|
|
15
|
-
if (kind === "NamedType" && typeInfo.type) {
|
|
16
|
-
return getTypeReference(typeInfo);
|
|
17
|
-
}
|
|
7
|
+
if (kind === "Field" && typeInfo.fieldDef || kind === "AliasedField" && typeInfo.fieldDef || kind === "ObjectField" && typeInfo.fieldDef) return getFieldReference(typeInfo, kind === "ObjectField");
|
|
8
|
+
if (kind === "Directive" && typeInfo.directiveDef) return getDirectiveReference(typeInfo);
|
|
9
|
+
if (kind === "Argument" && typeInfo.argDef) return getArgumentReference(typeInfo);
|
|
10
|
+
if (kind === "EnumValue" && typeInfo.enumValue) return getEnumValueReference(typeInfo);
|
|
11
|
+
if (kind === "NamedType" && typeInfo.type) return getTypeReference(typeInfo);
|
|
18
12
|
}
|
|
19
13
|
function getArgumentReference(typeInfo) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
return typeInfo.directiveDef ? {
|
|
15
|
+
kind: "Argument",
|
|
16
|
+
schema: typeInfo.schema,
|
|
17
|
+
argument: typeInfo.argDef,
|
|
18
|
+
directive: typeInfo.directiveDef
|
|
19
|
+
} : {
|
|
20
|
+
kind: "Argument",
|
|
21
|
+
schema: typeInfo.schema,
|
|
22
|
+
argument: typeInfo.argDef,
|
|
23
|
+
field: typeInfo.fieldDef,
|
|
24
|
+
type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType
|
|
25
|
+
};
|
|
32
26
|
}
|
|
33
27
|
function getDirectiveReference(typeInfo) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
return {
|
|
29
|
+
kind: "Directive",
|
|
30
|
+
schema: typeInfo.schema,
|
|
31
|
+
directive: typeInfo.directiveDef
|
|
32
|
+
};
|
|
39
33
|
}
|
|
40
34
|
function getFieldReference(typeInfo, isObjectField = false) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
const type = isObjectField ? typeInfo.inputObjectType : typeInfo.parentType;
|
|
36
|
+
return {
|
|
37
|
+
kind: "Field",
|
|
38
|
+
schema: typeInfo.schema,
|
|
39
|
+
field: typeInfo.fieldDef,
|
|
40
|
+
type: isMetaField(typeInfo.fieldDef) ? null : type
|
|
41
|
+
};
|
|
48
42
|
}
|
|
49
43
|
function getTypeReference(typeInfo, type) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
return {
|
|
45
|
+
kind: "Type",
|
|
46
|
+
schema: typeInfo.schema,
|
|
47
|
+
type: type || typeInfo.type
|
|
48
|
+
};
|
|
55
49
|
}
|
|
56
50
|
function getEnumValueReference(typeInfo) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
return {
|
|
52
|
+
kind: "EnumValue",
|
|
53
|
+
value: typeInfo.enumValue || void 0,
|
|
54
|
+
type: typeInfo.inputType ? getNamedType(typeInfo.inputType) : void 0
|
|
55
|
+
};
|
|
62
56
|
}
|
|
63
57
|
function isMetaField(fieldDef) {
|
|
64
|
-
|
|
58
|
+
return fieldDef.name.slice(0, 2) === "__";
|
|
65
59
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
//# sourceMappingURL=schema-reference.js.map
|
|
60
|
+
//#endregion
|
|
61
|
+
export { getSchemaReference };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=schema-reference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-reference.js","sources":["../src/schema-reference.ts"],"sourcesContent":["import { getNamedType } from 'graphql';\nimport type {\n GraphQLEnumType,\n GraphQLNamedType,\n GraphQLField,\n GraphQLInputField,\n GraphQLInputObjectType,\n GraphQLArgument,\n GraphQLDirective,\n GraphQLSchema,\n GraphQLEnumValue,\n GraphQLInputFieldMap,\n GraphQLInputType,\n GraphQLType,\n} from 'graphql';\nimport type { Maybe } from 'graphql/jsutils/Maybe';\n\n/**\n * Copied from packages/codemirror-graphql/src/jump.ts\n */\nexport function getSchemaReference(kind: string, typeInfo: any) {\n if (\n (kind === 'Field' && typeInfo.fieldDef) ||\n (kind === 'AliasedField' && typeInfo.fieldDef) ||\n (kind === 'ObjectField' && typeInfo.fieldDef)\n ) {\n return getFieldReference(typeInfo, kind === 'ObjectField');\n }\n if (kind === 'Directive' && typeInfo.directiveDef) {\n return getDirectiveReference(typeInfo);\n }\n if (kind === 'Argument' && typeInfo.argDef) {\n return getArgumentReference(typeInfo);\n }\n if (kind === 'EnumValue' && typeInfo.enumValue) {\n return getEnumValueReference(typeInfo);\n }\n if (kind === 'NamedType' && typeInfo.type) {\n return getTypeReference(typeInfo);\n }\n}\n\nfunction getArgumentReference(typeInfo: any): ArgumentReference {\n return typeInfo.directiveDef\n ? {\n kind: 'Argument',\n schema: typeInfo.schema,\n argument: typeInfo.argDef,\n directive: typeInfo.directiveDef,\n }\n : {\n kind: 'Argument',\n schema: typeInfo.schema,\n argument: typeInfo.argDef,\n field: typeInfo.fieldDef,\n type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType,\n };\n}\n\nfunction getDirectiveReference(typeInfo: any): DirectiveReference {\n return {\n kind: 'Directive',\n schema: typeInfo.schema,\n directive: typeInfo.directiveDef,\n };\n}\n\nfunction getFieldReference(\n typeInfo: any,\n isObjectField = false,\n): FieldReference {\n const type = isObjectField ? typeInfo.inputObjectType : typeInfo.parentType;\n\n return {\n kind: 'Field',\n schema: typeInfo.schema,\n field: typeInfo.fieldDef,\n type: isMetaField(typeInfo.fieldDef) ? null : type,\n };\n}\n\n// Note: for reusability, getTypeReference can produce a reference to any type,\n// though it defaults to the current type.\nfunction getTypeReference(\n typeInfo: any,\n type?: Maybe<GraphQLNamedType>,\n): TypeReference {\n return {\n kind: 'Type',\n schema: typeInfo.schema,\n type: type || typeInfo.type,\n };\n}\n\nfunction getEnumValueReference(typeInfo: TypeInfo): EnumValueReference {\n return {\n kind: 'EnumValue',\n value: typeInfo.enumValue || undefined,\n type: typeInfo.inputType\n ? (getNamedType(typeInfo.inputType) as GraphQLEnumType)\n : undefined,\n };\n}\n\nfunction isMetaField(\n fieldDef: GraphQLField<unknown, unknown> | GraphQLInputField,\n) {\n return fieldDef.name.slice(0, 2) === '__';\n}\n\ntype ArgumentReference = {\n kind: 'Argument';\n argument: GraphQLArgument;\n field?: GraphQLField<unknown, unknown>;\n type?: GraphQLNamedType;\n directive?: GraphQLDirective;\n schema?: GraphQLSchema;\n};\n\ntype DirectiveReference = {\n kind: 'Directive';\n directive: GraphQLDirective;\n schema?: GraphQLSchema;\n};\n\ntype EnumValueReference = {\n kind: 'EnumValue';\n value?: GraphQLEnumValue;\n type?: GraphQLEnumType;\n schema?: GraphQLSchema;\n};\n\ntype FieldReference = {\n kind: 'Field';\n field: GraphQLField<unknown, unknown> | GraphQLInputField;\n type: Maybe<GraphQLNamedType>;\n schema?: GraphQLSchema;\n};\n\ntype TypeReference = {\n kind: 'Type';\n type: GraphQLNamedType;\n schema?: GraphQLSchema;\n};\n\ninterface TypeInfo {\n schema: GraphQLSchema;\n type?: Maybe<GraphQLType>;\n parentType?: Maybe<GraphQLType>;\n inputType?: Maybe<GraphQLInputType>;\n inputObjectType?: Maybe<GraphQLInputObjectType>;\n directiveDef?: Maybe<GraphQLDirective>;\n fieldDef?: Maybe<GraphQLField<unknown, unknown> | GraphQLInputField>;\n argDef?: Maybe<GraphQLArgument>;\n argDefs?: Maybe<GraphQLArgument[]>;\n enumValue?: Maybe<GraphQLEnumValue>;\n objectFieldDefs?: Maybe<GraphQLInputFieldMap>;\n}\n"],"
|
|
1
|
+
{"version":3,"file":"schema-reference.js","names":["getNamedType","GraphQLEnumType","GraphQLNamedType","GraphQLField","GraphQLInputField","GraphQLInputObjectType","GraphQLArgument","GraphQLDirective","GraphQLSchema","GraphQLEnumValue","GraphQLInputFieldMap","GraphQLInputType","GraphQLType","Maybe","getSchemaReference","kind","typeInfo","fieldDef","getFieldReference","directiveDef","getDirectiveReference","argDef","getArgumentReference","enumValue","getEnumValueReference","type","getTypeReference","ArgumentReference","schema","argument","directive","field","isMetaField","parentType","DirectiveReference","isObjectField","FieldReference","inputObjectType","TypeReference","TypeInfo","EnumValueReference","value","undefined","inputType","name","slice","argDefs","objectFieldDefs"],"sources":["../src/schema-reference.ts"],"sourcesContent":["import { getNamedType } from 'graphql';\nimport type {\n GraphQLEnumType,\n GraphQLNamedType,\n GraphQLField,\n GraphQLInputField,\n GraphQLInputObjectType,\n GraphQLArgument,\n GraphQLDirective,\n GraphQLSchema,\n GraphQLEnumValue,\n GraphQLInputFieldMap,\n GraphQLInputType,\n GraphQLType,\n} from 'graphql';\nimport type { Maybe } from 'graphql/jsutils/Maybe';\n\n/**\n * Copied from packages/codemirror-graphql/src/jump.ts\n */\nexport function getSchemaReference(kind: string, typeInfo: any) {\n if (\n (kind === 'Field' && typeInfo.fieldDef) ||\n (kind === 'AliasedField' && typeInfo.fieldDef) ||\n (kind === 'ObjectField' && typeInfo.fieldDef)\n ) {\n return getFieldReference(typeInfo, kind === 'ObjectField');\n }\n if (kind === 'Directive' && typeInfo.directiveDef) {\n return getDirectiveReference(typeInfo);\n }\n if (kind === 'Argument' && typeInfo.argDef) {\n return getArgumentReference(typeInfo);\n }\n if (kind === 'EnumValue' && typeInfo.enumValue) {\n return getEnumValueReference(typeInfo);\n }\n if (kind === 'NamedType' && typeInfo.type) {\n return getTypeReference(typeInfo);\n }\n}\n\nfunction getArgumentReference(typeInfo: any): ArgumentReference {\n return typeInfo.directiveDef\n ? {\n kind: 'Argument',\n schema: typeInfo.schema,\n argument: typeInfo.argDef,\n directive: typeInfo.directiveDef,\n }\n : {\n kind: 'Argument',\n schema: typeInfo.schema,\n argument: typeInfo.argDef,\n field: typeInfo.fieldDef,\n type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType,\n };\n}\n\nfunction getDirectiveReference(typeInfo: any): DirectiveReference {\n return {\n kind: 'Directive',\n schema: typeInfo.schema,\n directive: typeInfo.directiveDef,\n };\n}\n\nfunction getFieldReference(\n typeInfo: any,\n isObjectField = false,\n): FieldReference {\n const type = isObjectField ? typeInfo.inputObjectType : typeInfo.parentType;\n\n return {\n kind: 'Field',\n schema: typeInfo.schema,\n field: typeInfo.fieldDef,\n type: isMetaField(typeInfo.fieldDef) ? null : type,\n };\n}\n\n// Note: for reusability, getTypeReference can produce a reference to any type,\n// though it defaults to the current type.\nfunction getTypeReference(\n typeInfo: any,\n type?: Maybe<GraphQLNamedType>,\n): TypeReference {\n return {\n kind: 'Type',\n schema: typeInfo.schema,\n type: type || typeInfo.type,\n };\n}\n\nfunction getEnumValueReference(typeInfo: TypeInfo): EnumValueReference {\n return {\n kind: 'EnumValue',\n value: typeInfo.enumValue || undefined,\n type: typeInfo.inputType\n ? (getNamedType(typeInfo.inputType) as GraphQLEnumType)\n : undefined,\n };\n}\n\nfunction isMetaField(\n fieldDef: GraphQLField<unknown, unknown> | GraphQLInputField,\n) {\n return fieldDef.name.slice(0, 2) === '__';\n}\n\ntype ArgumentReference = {\n kind: 'Argument';\n argument: GraphQLArgument;\n field?: GraphQLField<unknown, unknown>;\n type?: GraphQLNamedType;\n directive?: GraphQLDirective;\n schema?: GraphQLSchema;\n};\n\ntype DirectiveReference = {\n kind: 'Directive';\n directive: GraphQLDirective;\n schema?: GraphQLSchema;\n};\n\ntype EnumValueReference = {\n kind: 'EnumValue';\n value?: GraphQLEnumValue;\n type?: GraphQLEnumType;\n schema?: GraphQLSchema;\n};\n\ntype FieldReference = {\n kind: 'Field';\n field: GraphQLField<unknown, unknown> | GraphQLInputField;\n type: Maybe<GraphQLNamedType>;\n schema?: GraphQLSchema;\n};\n\ntype TypeReference = {\n kind: 'Type';\n type: GraphQLNamedType;\n schema?: GraphQLSchema;\n};\n\ninterface TypeInfo {\n schema: GraphQLSchema;\n type?: Maybe<GraphQLType>;\n parentType?: Maybe<GraphQLType>;\n inputType?: Maybe<GraphQLInputType>;\n inputObjectType?: Maybe<GraphQLInputObjectType>;\n directiveDef?: Maybe<GraphQLDirective>;\n fieldDef?: Maybe<GraphQLField<unknown, unknown> | GraphQLInputField>;\n argDef?: Maybe<GraphQLArgument>;\n argDefs?: Maybe<GraphQLArgument[]>;\n enumValue?: Maybe<GraphQLEnumValue>;\n objectFieldDefs?: Maybe<GraphQLInputFieldMap>;\n}\n"],"mappings":";;;;;AAoBA,SAAgBc,mBAAmBC,MAAcC,UAAe;CAC9D,IACGD,SAAS,WAAWC,SAASC,YAC7BF,SAAS,kBAAkBC,SAASC,YACpCF,SAAS,iBAAiBC,SAASC,UAEpC,OAAOC,kBAAkBF,UAAUD,SAAS,aAAa;CAE3D,IAAIA,SAAS,eAAeC,SAASG,cACnC,OAAOC,sBAAsBJ,QAAQ;CAEvC,IAAID,SAAS,cAAcC,SAASK,QAClC,OAAOC,qBAAqBN,QAAQ;CAEtC,IAAID,SAAS,eAAeC,SAASO,WACnC,OAAOC,sBAAsBR,QAAQ;CAEvC,IAAID,SAAS,eAAeC,SAASS,MACnC,OAAOC,iBAAiBV,QAAQ;AAEpC;AAEA,SAASM,qBAAqBN,UAAkC;CAC9D,OAAOA,SAASG,eACZ;EACEJ,MAAM;EACNa,QAAQZ,SAASY;EACjBC,UAAUb,SAASK;EACnBS,WAAWd,SAASG;CACtB,IACA;EACEJ,MAAM;EACNa,QAAQZ,SAASY;EACjBC,UAAUb,SAASK;EACnBU,OAAOf,SAASC;EAChBQ,MAAMO,YAAYhB,SAASC,QAAQ,IAAI,OAAOD,SAASiB;CACzD;AACN;AAEA,SAASb,sBAAsBJ,UAAmC;CAChE,OAAO;EACLD,MAAM;EACNa,QAAQZ,SAASY;EACjBE,WAAWd,SAASG;CACtB;AACF;AAEA,SAASD,kBACPF,UACAmB,gBAAgB,OACA;CAChB,MAAMV,OAAOU,gBAAgBnB,SAASqB,kBAAkBrB,SAASiB;CAEjE,OAAO;EACLlB,MAAM;EACNa,QAAQZ,SAASY;EACjBG,OAAOf,SAASC;EAChBQ,MAAMO,YAAYhB,SAASC,QAAQ,IAAI,OAAOQ;CAChD;AACF;AAIA,SAASC,iBACPV,UACAS,MACe;CACf,OAAO;EACLV,MAAM;EACNa,QAAQZ,SAASY;EACjBH,MAAMA,QAAQT,SAASS;CACzB;AACF;AAEA,SAASD,sBAAsBR,UAAwC;CACrE,OAAO;EACLD,MAAM;EACN0B,OAAOzB,SAASO,aAAamB,KAAAA;EAC7BjB,MAAMT,SAAS2B,YACV3C,aAAagB,SAAS2B,SAAS,IAChCD,KAAAA;CACN;AACF;AAEA,SAASV,YACPf,UACA;CACA,OAAOA,SAAS2B,KAAKC,MAAM,GAAG,CAAC,MAAM;AACvC"}
|
package/dist/style.css
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
.graphiql-doc-explorer-default-value {
|
|
2
|
+
color: oklch(var(--accent-green));
|
|
3
|
+
}
|
|
1
4
|
.graphiql-doc-explorer-breadcrumb {
|
|
2
5
|
padding: var(--px-6) var(--px-16) 0;
|
|
3
6
|
font-family: var(--font-family-mono);
|
|
@@ -43,18 +46,6 @@ a.graphiql-doc-explorer-breadcrumb-intermediate:hover {
|
|
|
43
46
|
span.graphiql-doc-explorer-breadcrumb-current {
|
|
44
47
|
color: oklch(var(--fg-strong));
|
|
45
48
|
}
|
|
46
|
-
.graphiql-doc-explorer-deprecation {
|
|
47
|
-
background-color: oklch(var(--accent-orange) / .1);
|
|
48
|
-
border: 1px solid oklch(var(--accent-orange));
|
|
49
|
-
border-radius: var(--px-4);
|
|
50
|
-
color: oklch(var(--accent-orange));
|
|
51
|
-
padding: var(--px-8);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.graphiql-doc-explorer-deprecation-label {
|
|
55
|
-
font-size: var(--font-size-eyebrow);
|
|
56
|
-
font-weight: var(--font-weight-medium);
|
|
57
|
-
}
|
|
58
49
|
a.graphiql-doc-explorer-type-name {
|
|
59
50
|
color: oklch(var(--type-composite));
|
|
60
51
|
text-decoration: none;
|
|
@@ -79,6 +70,18 @@ a.graphiql-doc-explorer-type-name[data-type-kind="enum"] {
|
|
|
79
70
|
a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
|
|
80
71
|
color: oklch(var(--type-input));
|
|
81
72
|
}
|
|
73
|
+
.graphiql-doc-explorer-deprecation {
|
|
74
|
+
background-color: oklch(var(--accent-orange) / .1);
|
|
75
|
+
border: 1px solid oklch(var(--accent-orange));
|
|
76
|
+
border-radius: var(--px-4);
|
|
77
|
+
color: oklch(var(--accent-orange));
|
|
78
|
+
padding: var(--px-8);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.graphiql-doc-explorer-deprecation-label {
|
|
82
|
+
font-size: var(--font-size-eyebrow);
|
|
83
|
+
font-weight: var(--font-weight-medium);
|
|
84
|
+
}
|
|
82
85
|
.graphiql-doc-explorer-arguments-list {
|
|
83
86
|
padding: var(--px-4) 0;
|
|
84
87
|
flex-direction: column;
|
|
@@ -467,10 +470,8 @@ a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
|
|
|
467
470
|
.graphiql-doc-explorer-search-input {
|
|
468
471
|
background-color: oklch(var(--fg-default) / .08);
|
|
469
472
|
border-radius: var(--border-radius-4);
|
|
470
|
-
align-items: center;
|
|
471
|
-
gap: var(--px-8);
|
|
472
|
-
padding: var(--px-4) var(--px-8);
|
|
473
473
|
flex: 1;
|
|
474
|
+
align-items: center;
|
|
474
475
|
display: flex;
|
|
475
476
|
}
|
|
476
477
|
|
|
@@ -479,6 +480,11 @@ a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
|
|
|
479
480
|
outline-offset: 2px;
|
|
480
481
|
}
|
|
481
482
|
|
|
483
|
+
.graphiql-doc-explorer-search-input {
|
|
484
|
+
gap: var(--px-8);
|
|
485
|
+
padding: var(--px-4) var(--px-8);
|
|
486
|
+
}
|
|
487
|
+
|
|
482
488
|
.graphiql-doc-explorer-search [role="combobox"] {
|
|
483
489
|
background-color: #0000;
|
|
484
490
|
border: none;
|
|
@@ -522,11 +528,7 @@ a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
|
|
|
522
528
|
overflow-x: hidden;
|
|
523
529
|
}
|
|
524
530
|
|
|
525
|
-
.graphiql-doc-explorer-search [role="option"][data-headlessui-state="active"] {
|
|
526
|
-
background-color: oklch(var(--bg-subtle));
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.graphiql-doc-explorer-search [role="option"]:hover {
|
|
531
|
+
.graphiql-doc-explorer-search [role="option"][data-headlessui-state="active"], .graphiql-doc-explorer-search [role="option"]:hover {
|
|
530
532
|
background-color: oklch(var(--bg-subtle));
|
|
531
533
|
}
|
|
532
534
|
|
|
@@ -643,11 +645,7 @@ a.graphiql-doc-explorer-type-name[data-type-kind="input"] {
|
|
|
643
645
|
overflow-x: hidden;
|
|
644
646
|
}
|
|
645
647
|
|
|
646
|
-
.graphiql-doc-explorer-search-row-listbox [role="option"][data-headlessui-state="active"] {
|
|
647
|
-
background-color: oklch(var(--bg-subtle));
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.graphiql-doc-explorer-search-row-listbox [role="option"]:hover {
|
|
648
|
+
.graphiql-doc-explorer-search-row-listbox [role="option"][data-headlessui-state="active"], .graphiql-doc-explorer-search-row-listbox [role="option"]:hover {
|
|
651
649
|
background-color: oklch(var(--bg-subtle));
|
|
652
650
|
}
|
|
653
651
|
|
|
@@ -728,9 +726,6 @@ a.graphiql-doc-explorer-type-card-implements-link {
|
|
|
728
726
|
a.graphiql-doc-explorer-type-card-implements-link:hover {
|
|
729
727
|
text-decoration: underline;
|
|
730
728
|
}
|
|
731
|
-
.graphiql-doc-explorer-default-value {
|
|
732
|
-
color: oklch(var(--accent-green));
|
|
733
|
-
}
|
|
734
729
|
.graphiql-doc-explorer-argument > * + * {
|
|
735
730
|
margin-top: var(--px-12);
|
|
736
731
|
}
|
|
@@ -843,3 +838,4 @@ a.graphiql-doc-explorer-field-name:focus {
|
|
|
843
838
|
a.graphiql-doc-explorer-back, .graphiql-doc-explorer-title {
|
|
844
839
|
display: none;
|
|
845
840
|
}
|
|
841
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphiql/plugin-doc-explorer",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,40 +31,46 @@
|
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"types:check": "tsgo --noEmit",
|
|
36
|
-
"dev": "vite build --watch --emptyOutDir=false",
|
|
37
|
-
"build": "vite build",
|
|
38
|
-
"build-storybook": "storybook build",
|
|
39
|
-
"storybook": "storybook dev -p 6007",
|
|
40
|
-
"test": "vitest run"
|
|
41
|
-
},
|
|
42
34
|
"peerDependencies": {
|
|
43
|
-
"@graphiql/react": "
|
|
44
|
-
"graphql": "^
|
|
35
|
+
"@graphiql/react": "1.0.0-beta.2",
|
|
36
|
+
"graphql": "^16.11.0 || ^17.0.0",
|
|
45
37
|
"react": "^18 || ^19",
|
|
46
38
|
"react-dom": "^18 || ^19"
|
|
47
39
|
},
|
|
48
40
|
"dependencies": {
|
|
49
41
|
"@headlessui/react": "^2.2",
|
|
50
|
-
"react-compiler-runtime": "19.1.0-rc.
|
|
42
|
+
"react-compiler-runtime": "19.1.0-rc.3",
|
|
51
43
|
"zustand": "^5"
|
|
52
44
|
},
|
|
53
45
|
"devDependencies": {
|
|
54
|
-
"@graphiql/react": "
|
|
46
|
+
"@graphiql/react": "1.0.0-beta.2",
|
|
55
47
|
"@storybook/addon-a11y": "^10.3.6",
|
|
56
48
|
"@storybook/addon-vitest": "^10.3.6",
|
|
57
49
|
"@storybook/react-vite": "^10.3.6",
|
|
58
50
|
"@testing-library/dom": "^10.4.0",
|
|
59
|
-
"@testing-library/jest-dom": "^
|
|
51
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
60
52
|
"@testing-library/react": "^16.3.0",
|
|
61
|
-
"@
|
|
53
|
+
"@types/react": "^19",
|
|
54
|
+
"@types/react-dom": "^19",
|
|
55
|
+
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
56
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
57
|
+
"@vitest/web-worker": "^4.1.6",
|
|
62
58
|
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
63
|
-
"graphql": "^16.
|
|
59
|
+
"graphql": "^16.14.2",
|
|
60
|
+
"monaco-editor": ">=0.56.0 <0.58.0",
|
|
64
61
|
"react": "^19.1.0",
|
|
65
62
|
"react-dom": "^19.1.0",
|
|
66
63
|
"storybook": "^10.3.6",
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vite-plugin-dts": "^4.5.3"
|
|
64
|
+
"vite": "^8.2.2",
|
|
65
|
+
"vite-plugin-dts": "^4.5.3",
|
|
66
|
+
"vitest-canvas-mock": "^1.1.4"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"types:check": "tsgo --noEmit",
|
|
70
|
+
"dev": "vite build --watch --emptyOutDir=false",
|
|
71
|
+
"build": "pnpm types:check && vite build",
|
|
72
|
+
"build-storybook": "storybook build",
|
|
73
|
+
"storybook": "storybook dev -p 6007",
|
|
74
|
+
"test": "vitest run"
|
|
69
75
|
}
|
|
70
|
-
}
|
|
76
|
+
}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|