@graphql-yoga/render-graphiql 5.18.0-alpha-20251218143057-24a3ef1966d47d15ddc753b0abe0afc3897393d5 → 5.18.1-alpha-20260116132159-d18a95d04a1e11d197fdf672a8be4836ceed0818

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/cjs/index.js DELETED
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderGraphiQL = void 0;
4
- const graphiql_js_1 = require("./graphiql.js");
5
- const renderGraphiQL = (opts) => /* HTML */ `
6
- <!doctype html>
7
- <html lang="en">
8
- <head>
9
- <meta charset="utf-8" />
10
- <title>${opts?.title || 'Yoga GraphiQL'}</title>
11
- <link rel="icon" href="${opts?.favicon || graphiql_js_1.favicon}" />
12
- <style>
13
- ${graphiql_js_1.css}
14
- </style>
15
- </head>
16
- <body id="body" class="no-focus-outline">
17
- <noscript>You need to enable JavaScript to run this app.</noscript>
18
- <div id="root"></div>
19
-
20
- <script>
21
- function prepareBlob(workerContent) {
22
- const blob = new Blob([workerContent], { type: 'application/javascript' });
23
- return URL.createObjectURL(blob);
24
- }
25
- const workers = {
26
- editorWorkerService: prepareBlob(${JSON.stringify(graphiql_js_1.editorWorkerService)}),
27
- json: prepareBlob(${JSON.stringify(graphiql_js_1.jsonWorker)}),
28
- graphql: prepareBlob(${JSON.stringify(graphiql_js_1.graphqlWorker)}),
29
- };
30
- self['MonacoEnvironment'] = {
31
- globalAPI: false,
32
- getWorkerUrl: function (moduleId, label) {
33
- return workers[label];
34
- },
35
- };
36
- ${graphiql_js_1.js};
37
- YogaGraphiQL.renderYogaGraphiQL(
38
- window.document.querySelector('#root'),
39
- ${JSON.stringify(opts ?? {})},
40
- );
41
- </script>
42
- </body>
43
- </html>
44
- `;
45
- exports.renderGraphiQL = renderGraphiQL;
package/cjs/package.json DELETED
@@ -1 +0,0 @@
1
- {"type":"commonjs"}