@graphql-yoga/render-graphiql 5.18.1-alpha-20260127131538-66c36e2fed5dae50d2fa29797772599af69094ae → 5.18.1-alpha-20260127154041-2b82606fad30bedc0248544c6ab47175798d7b8f

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 (83) hide show
  1. package/dist/graphiql.cjs +16 -0
  2. package/dist/graphiql.mjs +10 -0
  3. package/dist/index.cjs +46 -0
  4. package/dist/index.d.cts +7 -0
  5. package/dist/index.d.mts +7 -0
  6. package/dist/index.mjs +46 -0
  7. package/dist/node_modules/@graphql-tools/utils/typings/errors.d.cts +9 -0
  8. package/dist/node_modules/@graphql-tools/utils/typings/errors.d.mts +9 -0
  9. package/dist/node_modules/@graphql-tools/utils/typings/index.d.cts +1 -0
  10. package/dist/node_modules/@graphql-tools/utils/typings/index.d.mts +1 -0
  11. package/dist/node_modules/@whatwg-node/fetch/dist/index.d.cts +72 -0
  12. package/dist/node_modules/@whatwg-node/fetch/dist/index.d.mts +72 -0
  13. package/dist/node_modules/@whatwg-node/server/typings/createServerAdapter.d.cts +2 -0
  14. package/dist/node_modules/@whatwg-node/server/typings/createServerAdapter.d.mts +2 -0
  15. package/dist/node_modules/@whatwg-node/server/typings/index.d.cts +9 -0
  16. package/dist/node_modules/@whatwg-node/server/typings/index.d.mts +9 -0
  17. package/dist/node_modules/@whatwg-node/server/typings/plugins/types.d.cts +1 -0
  18. package/dist/node_modules/@whatwg-node/server/typings/plugins/types.d.mts +1 -0
  19. package/dist/node_modules/@whatwg-node/server/typings/plugins/useContentEncoding.d.cts +1 -0
  20. package/dist/node_modules/@whatwg-node/server/typings/plugins/useContentEncoding.d.mts +1 -0
  21. package/dist/node_modules/@whatwg-node/server/typings/plugins/useCors.d.cts +1 -0
  22. package/dist/node_modules/@whatwg-node/server/typings/plugins/useCors.d.mts +1 -0
  23. package/dist/node_modules/@whatwg-node/server/typings/plugins/useErrorHandling.d.cts +1 -0
  24. package/dist/node_modules/@whatwg-node/server/typings/plugins/useErrorHandling.d.mts +1 -0
  25. package/dist/node_modules/@whatwg-node/server/typings/types.d.cts +3 -0
  26. package/dist/node_modules/@whatwg-node/server/typings/types.d.mts +3 -0
  27. package/dist/node_modules/@whatwg-node/server/typings/utils.d.cts +1 -0
  28. package/dist/node_modules/@whatwg-node/server/typings/utils.d.mts +1 -0
  29. package/dist/node_modules/@whatwg-node/server/typings/uwebsockets.d.cts +1 -0
  30. package/dist/node_modules/@whatwg-node/server/typings/uwebsockets.d.mts +1 -0
  31. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils/typings/errors.d.cts +9 -0
  32. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils/typings/errors.d.mts +9 -0
  33. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils/typings/index.d.cts +1 -0
  34. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils/typings/index.d.mts +1 -0
  35. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.cts +1 -0
  36. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.mts +1 -0
  37. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.cts +1 -0
  38. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.mts +1 -0
  39. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/chainResolvers.d.cts +1 -0
  40. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/chainResolvers.d.mts +1 -0
  41. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.cts +1 -0
  42. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.mts +1 -0
  43. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.cts +1 -0
  44. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.mts +1 -0
  45. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/index.d.cts +9 -0
  46. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/index.d.mts +9 -0
  47. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.cts +1 -0
  48. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.mts +1 -0
  49. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/merge-schemas.d.cts +1 -0
  50. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/merge-schemas.d.mts +1 -0
  51. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/types.d.cts +1 -0
  52. package/dist/packages/graphql-yoga/node_modules/@graphql-tools/schema/typings/types.d.mts +1 -0
  53. package/dist/packages/graphql-yoga/src/index.d.cts +16 -0
  54. package/dist/packages/graphql-yoga/src/index.d.mts +16 -0
  55. package/dist/packages/graphql-yoga/src/plugins/result-processor/regular.d.cts +2 -0
  56. package/dist/packages/graphql-yoga/src/plugins/result-processor/regular.d.mts +2 -0
  57. package/dist/packages/graphql-yoga/src/plugins/result-processor/sse.d.cts +1 -0
  58. package/dist/packages/graphql-yoga/src/plugins/result-processor/sse.d.mts +1 -0
  59. package/dist/packages/graphql-yoga/src/plugins/types.d.cts +4 -0
  60. package/dist/packages/graphql-yoga/src/plugins/types.d.mts +4 -0
  61. package/dist/packages/graphql-yoga/src/plugins/use-error-coordinate.d.cts +1 -0
  62. package/dist/packages/graphql-yoga/src/plugins/use-error-coordinate.d.mts +1 -0
  63. package/dist/packages/graphql-yoga/src/plugins/use-execution-cancellation.d.cts +1 -0
  64. package/dist/packages/graphql-yoga/src/plugins/use-execution-cancellation.d.mts +1 -0
  65. package/dist/packages/graphql-yoga/src/plugins/use-graphiql.d.cts +132 -0
  66. package/dist/packages/graphql-yoga/src/plugins/use-graphiql.d.mts +132 -0
  67. package/dist/packages/graphql-yoga/src/plugins/use-parser-and-validation-cache.d.cts +1 -0
  68. package/dist/packages/graphql-yoga/src/plugins/use-parser-and-validation-cache.d.mts +1 -0
  69. package/dist/packages/graphql-yoga/src/plugins/use-readiness-check.d.cts +2 -0
  70. package/dist/packages/graphql-yoga/src/plugins/use-readiness-check.d.mts +2 -0
  71. package/dist/packages/graphql-yoga/src/plugins/use-schema.d.cts +2 -0
  72. package/dist/packages/graphql-yoga/src/plugins/use-schema.d.mts +2 -0
  73. package/dist/packages/graphql-yoga/src/plugins/use-unhandled-route.d.cts +2 -0
  74. package/dist/packages/graphql-yoga/src/plugins/use-unhandled-route.d.mts +2 -0
  75. package/dist/packages/graphql-yoga/src/schema.d.cts +2 -0
  76. package/dist/packages/graphql-yoga/src/schema.d.mts +2 -0
  77. package/dist/packages/graphql-yoga/src/server.d.cts +8 -0
  78. package/dist/packages/graphql-yoga/src/server.d.mts +8 -0
  79. package/dist/packages/graphql-yoga/src/types.d.cts +5 -0
  80. package/dist/packages/graphql-yoga/src/types.d.mts +5 -0
  81. package/dist/packages/graphql-yoga/src/utils/mask-error.d.cts +1 -0
  82. package/dist/packages/graphql-yoga/src/utils/mask-error.d.mts +1 -0
  83. package/package.json +2 -2
@@ -0,0 +1,132 @@
1
+ import "./types.cjs";
2
+
3
+ //#region ../graphql-yoga/src/plugins/use-graphiql.d.ts
4
+ type TabDefinition = {
5
+ headers?: string | null;
6
+ query: string | null;
7
+ variables?: string | null;
8
+ };
9
+ type GraphiQLOptions = {
10
+ /**
11
+ * Headers to be set when opening a new tab
12
+ */
13
+ defaultHeaders?: string;
14
+ /**
15
+ * An optional GraphQL string to use when no query is provided and no stored
16
+ * query exists from a previous session. If undefined is provided, GraphiQL
17
+ * will use its own default query.
18
+ */
19
+ defaultQuery?: string;
20
+ /**
21
+ * This prop can be used to define the default set of tabs, with their
22
+ * queries, variables, and headers. It will be used as default only if there
23
+ * is no tab state persisted in storage.
24
+ */
25
+ defaultTabs?: TabDefinition[];
26
+ /**
27
+ * The initial headers to render inside the header editor. Defaults to `"{}"`.
28
+ * The value should be a JSON encoded string, for example:
29
+ * `headers: JSON.stringify({Authorization: "Bearer your-auth-key"})`
30
+ */
31
+ headers?: string;
32
+ /**
33
+ * This prop toggles if the contents of the headers editor are persisted in
34
+ * storage.
35
+ */
36
+ shouldPersistHeaders?: boolean | undefined;
37
+ /**
38
+ * More info there: https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
39
+ */
40
+ credentials?: RequestCredentials;
41
+ /**
42
+ * The favicon URL to display for the page. Defaults to Yoga logo.
43
+ */
44
+ favicon?: string;
45
+ /**
46
+ * The title to display at the top of the page. Defaults to `"Yoga GraphiQL"`.
47
+ */
48
+ title?: string;
49
+ /**
50
+ * Logo to be displayed in the top right corner of GraphiQL.
51
+ */
52
+ logo?: string;
53
+ /**
54
+ * Protocol for subscriptions
55
+ */
56
+ subscriptionsProtocol?: 'SSE' | 'GRAPHQL_SSE' | 'WS' | 'LEGACY_WS';
57
+ /**
58
+ * Extra headers you always want to pass with users' headers input
59
+ */
60
+ additionalHeaders?: Record<string, string>;
61
+ /**
62
+ * HTTP method to use when querying the original schema.
63
+ */
64
+ method?: 'GET' | 'POST';
65
+ /**
66
+ * Whether to use the GET HTTP method for queries when querying the original schema
67
+ */
68
+ useGETForQueries?: boolean;
69
+ /**
70
+ * "external" fragments that will be included in the query document (depending on usage)
71
+ */
72
+ externalFragments?: string;
73
+ /**
74
+ * The maximum number of executed operations to store.
75
+ * @default 20
76
+ */
77
+ maxHistoryLength?: number;
78
+ /**
79
+ * Whether target GraphQL server support deprecation of input values.
80
+ * @default false
81
+ */
82
+ inputValueDeprecation?: boolean;
83
+ /**
84
+ * Custom operation name for the introspection query.
85
+ */
86
+ introspectionQueryName?: string;
87
+ /**
88
+ * Whether to include schema description in introspection query.
89
+ * @default false
90
+ */
91
+ schemaDescription?: boolean;
92
+ /**
93
+ * Editor theme
94
+ * @default "graphiql"
95
+ */
96
+ editorTheme?: string;
97
+ /**
98
+ * Sets the key map to use when using the editor.
99
+ * @default 'sublime'
100
+ */
101
+ keyMap?: 'sublime' | 'emacs' | 'vim';
102
+ defaultEditorToolsVisibility?: boolean | 'variables' | 'headers';
103
+ isHeadersEditorEnabled?: boolean;
104
+ disableTabs?: boolean;
105
+ /**
106
+ * Whether to include `isRepeatable` flag on directives.
107
+ * @default false
108
+ */
109
+ directiveIsRepeatable?: boolean;
110
+ experimentalFragmentVariables?: boolean;
111
+ /**
112
+ * Set to `true` in order to convert all GraphQL comments (marked with # sign) to descriptions (""")
113
+ * GraphQL has built-in support for transforming descriptions to comments (with `print`), but not while
114
+ * parsing. Turning the flag on will support the other way as well (`parse`)
115
+ */
116
+ commentDescriptions?: boolean;
117
+ /**
118
+ * Timeout in milliseconds
119
+ */
120
+ timeout?: number;
121
+ /**
122
+ * Retry attempts
123
+ */
124
+ retry?: number;
125
+ /**
126
+ * The endpoint requests should be sent.
127
+ * Defaults to the graphql endpoint ("/graphql" by default).
128
+ */
129
+ endpoint?: string;
130
+ };
131
+ //#endregion
132
+ export { GraphiQLOptions };
@@ -0,0 +1,132 @@
1
+ import "./types.mjs";
2
+
3
+ //#region ../graphql-yoga/src/plugins/use-graphiql.d.ts
4
+ type TabDefinition = {
5
+ headers?: string | null;
6
+ query: string | null;
7
+ variables?: string | null;
8
+ };
9
+ type GraphiQLOptions = {
10
+ /**
11
+ * Headers to be set when opening a new tab
12
+ */
13
+ defaultHeaders?: string;
14
+ /**
15
+ * An optional GraphQL string to use when no query is provided and no stored
16
+ * query exists from a previous session. If undefined is provided, GraphiQL
17
+ * will use its own default query.
18
+ */
19
+ defaultQuery?: string;
20
+ /**
21
+ * This prop can be used to define the default set of tabs, with their
22
+ * queries, variables, and headers. It will be used as default only if there
23
+ * is no tab state persisted in storage.
24
+ */
25
+ defaultTabs?: TabDefinition[];
26
+ /**
27
+ * The initial headers to render inside the header editor. Defaults to `"{}"`.
28
+ * The value should be a JSON encoded string, for example:
29
+ * `headers: JSON.stringify({Authorization: "Bearer your-auth-key"})`
30
+ */
31
+ headers?: string;
32
+ /**
33
+ * This prop toggles if the contents of the headers editor are persisted in
34
+ * storage.
35
+ */
36
+ shouldPersistHeaders?: boolean | undefined;
37
+ /**
38
+ * More info there: https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
39
+ */
40
+ credentials?: RequestCredentials;
41
+ /**
42
+ * The favicon URL to display for the page. Defaults to Yoga logo.
43
+ */
44
+ favicon?: string;
45
+ /**
46
+ * The title to display at the top of the page. Defaults to `"Yoga GraphiQL"`.
47
+ */
48
+ title?: string;
49
+ /**
50
+ * Logo to be displayed in the top right corner of GraphiQL.
51
+ */
52
+ logo?: string;
53
+ /**
54
+ * Protocol for subscriptions
55
+ */
56
+ subscriptionsProtocol?: 'SSE' | 'GRAPHQL_SSE' | 'WS' | 'LEGACY_WS';
57
+ /**
58
+ * Extra headers you always want to pass with users' headers input
59
+ */
60
+ additionalHeaders?: Record<string, string>;
61
+ /**
62
+ * HTTP method to use when querying the original schema.
63
+ */
64
+ method?: 'GET' | 'POST';
65
+ /**
66
+ * Whether to use the GET HTTP method for queries when querying the original schema
67
+ */
68
+ useGETForQueries?: boolean;
69
+ /**
70
+ * "external" fragments that will be included in the query document (depending on usage)
71
+ */
72
+ externalFragments?: string;
73
+ /**
74
+ * The maximum number of executed operations to store.
75
+ * @default 20
76
+ */
77
+ maxHistoryLength?: number;
78
+ /**
79
+ * Whether target GraphQL server support deprecation of input values.
80
+ * @default false
81
+ */
82
+ inputValueDeprecation?: boolean;
83
+ /**
84
+ * Custom operation name for the introspection query.
85
+ */
86
+ introspectionQueryName?: string;
87
+ /**
88
+ * Whether to include schema description in introspection query.
89
+ * @default false
90
+ */
91
+ schemaDescription?: boolean;
92
+ /**
93
+ * Editor theme
94
+ * @default "graphiql"
95
+ */
96
+ editorTheme?: string;
97
+ /**
98
+ * Sets the key map to use when using the editor.
99
+ * @default 'sublime'
100
+ */
101
+ keyMap?: 'sublime' | 'emacs' | 'vim';
102
+ defaultEditorToolsVisibility?: boolean | 'variables' | 'headers';
103
+ isHeadersEditorEnabled?: boolean;
104
+ disableTabs?: boolean;
105
+ /**
106
+ * Whether to include `isRepeatable` flag on directives.
107
+ * @default false
108
+ */
109
+ directiveIsRepeatable?: boolean;
110
+ experimentalFragmentVariables?: boolean;
111
+ /**
112
+ * Set to `true` in order to convert all GraphQL comments (marked with # sign) to descriptions (""")
113
+ * GraphQL has built-in support for transforming descriptions to comments (with `print`), but not while
114
+ * parsing. Turning the flag on will support the other way as well (`parse`)
115
+ */
116
+ commentDescriptions?: boolean;
117
+ /**
118
+ * Timeout in milliseconds
119
+ */
120
+ timeout?: number;
121
+ /**
122
+ * Retry attempts
123
+ */
124
+ retry?: number;
125
+ /**
126
+ * The endpoint requests should be sent.
127
+ * Defaults to the graphql endpoint ("/graphql" by default).
128
+ */
129
+ endpoint?: string;
130
+ };
131
+ //#endregion
132
+ export { GraphiQLOptions };
@@ -0,0 +1,2 @@
1
+ import "../types.cjs";
2
+ import "./types.cjs";
@@ -0,0 +1,2 @@
1
+ import "../types.mjs";
2
+ import "./types.mjs";
@@ -0,0 +1,2 @@
1
+ import "../types.cjs";
2
+ import "./types.cjs";
@@ -0,0 +1,2 @@
1
+ import "../types.mjs";
2
+ import "./types.mjs";
@@ -0,0 +1,2 @@
1
+ import "../types.cjs";
2
+ import "./types.cjs";
@@ -0,0 +1,2 @@
1
+ import "../types.mjs";
2
+ import "./types.mjs";
@@ -0,0 +1,2 @@
1
+ import "./types.cjs";
2
+ import "../node_modules/@graphql-tools/schema/typings/index.cjs";
@@ -0,0 +1,2 @@
1
+ import "./types.mjs";
2
+ import "../node_modules/@graphql-tools/schema/typings/index.mjs";
@@ -0,0 +1,8 @@
1
+ import "../../../node_modules/@graphql-tools/utils/typings/index.cjs";
2
+ import "../../../node_modules/@whatwg-node/server/typings/index.cjs";
3
+ import "./plugins/use-parser-and-validation-cache.cjs";
4
+ import "./types.cjs";
5
+ import "./plugins/use-schema.cjs";
6
+ import "./plugins/use-unhandled-route.cjs";
7
+ import "./plugins/types.cjs";
8
+ import "./plugins/use-graphiql.cjs";
@@ -0,0 +1,8 @@
1
+ import "../../../node_modules/@graphql-tools/utils/typings/index.mjs";
2
+ import "../../../node_modules/@whatwg-node/server/typings/index.mjs";
3
+ import "./plugins/use-parser-and-validation-cache.mjs";
4
+ import "./types.mjs";
5
+ import "./plugins/use-schema.mjs";
6
+ import "./plugins/use-unhandled-route.mjs";
7
+ import "./plugins/types.mjs";
8
+ import "./plugins/use-graphiql.mjs";
@@ -0,0 +1,5 @@
1
+ import "../../../node_modules/@whatwg-node/fetch/dist/index.cjs";
2
+ import "../../../node_modules/@whatwg-node/server/typings/index.cjs";
3
+
4
+ //#region ../graphql-yoga/src/types.d.ts
5
+ declare global {}
@@ -0,0 +1,5 @@
1
+ import "../../../node_modules/@whatwg-node/fetch/dist/index.mjs";
2
+ import "../../../node_modules/@whatwg-node/server/typings/index.mjs";
3
+
4
+ //#region ../graphql-yoga/src/types.d.ts
5
+ declare global {}
@@ -0,0 +1 @@
1
+ import "../types.cjs";
@@ -0,0 +1 @@
1
+ import "../types.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-yoga/render-graphiql",
3
- "version": "5.18.1-alpha-20260127131538-66c36e2fed5dae50d2fa29797772599af69094ae",
3
+ "version": "5.18.1-alpha-20260127154041-2b82606fad30bedc0248544c6ab47175798d7b8f",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "graphql-server"
58
58
  ],
59
59
  "scripts": {
60
- "build": "node scripts/yoga-bundle-string.mjs",
60
+ "build": "node scripts/yoga-bundle-string.mjs && tsdown",
61
61
  "check": "tsc --pretty --noEmit"
62
62
  },
63
63
  "devDependencies": {