Skip to content

Commit c35d5d3

Browse files
committed
Regen
1 parent a9dd194 commit c35d5d3

File tree

1 file changed

+16
-28
lines changed

1 file changed

+16
-28
lines changed

juniper/src/http/graphiql.html

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,56 +28,44 @@
2828
font-size: 4rem;
2929
}
3030
</style>
31-
<link rel="stylesheet" href="https://esm.sh/graphiql@5.0.6/dist/style.css" />
31+
<link rel="stylesheet" href="https://esm.sh/graphiql@5.1.1/dist/style.css" />
3232
<link
3333
rel="stylesheet"
34-
href="https://esm.sh/@graphiql/plugin-explorer@5.0.0/dist/style.css"
34+
href="https://esm.sh/@graphiql/plugin-explorer@5.1.1/dist/style.css"
3535
/>
36-
<!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
36+
<!--
37+
* Note:
38+
* The ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file.
39+
* `@emotion/is-prop-valid` is a shim to remove the console error ` module "@emotion /is-prop-valid" not found`. Upstream issue: https://github.com/motiondivision/motion/issues/3126
40+
-->
3741
<script type="importmap">
3842
{
3943
"imports": {
4044
"react": "https://esm.sh/[email protected]",
41-
"react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
45+
"react/": "https://esm.sh/[email protected]/",
4246

4347
"react-dom": "https://esm.sh/[email protected]",
44-
"react-dom/client": "https://esm.sh/[email protected]/client",
48+
"react-dom/": "https://esm.sh/[email protected]/",
4549

46-
"graphiql": "https://esm.sh/[email protected]?standalone&external=react,react-dom,@graphiql/react,graphql",
47-
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,@graphiql/react,graphql",
48-
"@graphiql/react": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,react-dom,graphql",
50+
"graphiql": "https://esm.sh/[email protected]?standalone&external=react,react-dom,@graphiql/react,graphql",
51+
"graphiql/": "https://esm.sh/[email protected]/",
52+
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,@graphiql/react,graphql",
53+
"@graphiql/react": "https://esm.sh/@graphiql/[email protected]?standalone&external=react,react-dom,graphql,@graphiql/toolkit,@emotion/is-prop-valid",
4954

5055
"@graphiql/toolkit": "https://esm.sh/@graphiql/[email protected]?standalone&external=graphql",
51-
"graphql": "https://esm.sh/[email protected]"
56+
"graphql": "https://esm.sh/[email protected]",
57+
"@emotion/is-prop-valid": "data:text/javascript,"
5258
}
5359
}
5460
</script>
5561
<script type="module">
5662
<!-- inject -->
57-
// Import React and ReactDOM
5863
import React from 'react';
5964
import ReactDOM from 'react-dom/client';
60-
// Import GraphiQL and the Explorer plugin
6165
import { GraphiQL, HISTORY_PLUGIN } from 'graphiql';
6266
import { createGraphiQLFetcher } from '@graphiql/toolkit';
6367
import { explorerPlugin } from '@graphiql/plugin-explorer';
64-
65-
import createJSONWorker from 'https://esm.sh/monaco-editor/esm/vs/language/json/json.worker.js?worker';
66-
import createGraphQLWorker from 'https://esm.sh/monaco-graphql/esm/graphql.worker.js?worker';
67-
import createEditorWorker from 'https://esm.sh/monaco-editor/esm/vs/editor/editor.worker.js?worker';
68-
69-
globalThis.MonacoEnvironment = {
70-
getWorker(_workerId, label) {
71-
console.info('MonacoEnvironment.getWorker', { label });
72-
switch (label) {
73-
case 'json':
74-
return createJSONWorker();
75-
case 'graphql':
76-
return createGraphQLWorker();
77-
}
78-
return createEditorWorker();
79-
},
80-
};
68+
import 'graphiql/setup-workers/esm.sh';
8169

8270
const fetcher = createGraphiQLFetcher({
8371
url: JUNIPER_URL,

0 commit comments

Comments
 (0)