ruru-components 2.0.0-beta.8 → 2.0.0-rc.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +571 -0
  2. package/README.md +38 -4
  3. package/dist/components/Copy.d.ts +1 -1
  4. package/dist/components/Copy.d.ts.map +1 -1
  5. package/dist/components/Copy.js.map +1 -1
  6. package/dist/components/Explain.d.ts +0 -5
  7. package/dist/components/Explain.d.ts.map +1 -1
  8. package/dist/components/Explain.js +33 -29
  9. package/dist/components/Explain.js.map +1 -1
  10. package/dist/components/Footer.js +1 -1
  11. package/dist/components/Footer.js.map +1 -1
  12. package/dist/components/FormatSQL.d.ts.map +1 -1
  13. package/dist/components/FormatSQL.js +2 -2
  14. package/dist/components/FormatSQL.js.map +1 -1
  15. package/dist/components/Mermaid.d.ts +1 -1
  16. package/dist/components/Mermaid.d.ts.map +1 -1
  17. package/dist/components/Mermaid.js +3 -24
  18. package/dist/components/Mermaid.js.map +1 -1
  19. package/dist/components/MermaidReal.d.ts +7 -0
  20. package/dist/components/MermaidReal.d.ts.map +1 -0
  21. package/dist/components/MermaidReal.js +24 -0
  22. package/dist/components/MermaidReal.js.map +1 -0
  23. package/dist/hooks/useExplain.d.ts +0 -1
  24. package/dist/hooks/useExplain.d.ts.map +1 -1
  25. package/dist/hooks/useExplain.js.map +1 -1
  26. package/dist/hooks/useFetcher.d.ts.map +1 -1
  27. package/dist/hooks/useFetcher.js +32 -28
  28. package/dist/hooks/useFetcher.js.map +1 -1
  29. package/dist/hooks/useGraphQLChangeStream.d.ts.map +1 -1
  30. package/dist/hooks/useGraphQLChangeStream.js +5 -3
  31. package/dist/hooks/useGraphQLChangeStream.js.map +1 -1
  32. package/dist/hooks/usePrettify.d.ts +0 -6
  33. package/dist/hooks/usePrettify.d.ts.map +1 -1
  34. package/dist/hooks/usePrettify.js +80 -18
  35. package/dist/hooks/usePrettify.js.map +1 -1
  36. package/dist/hooks/useStorage.d.ts +7 -2
  37. package/dist/hooks/useStorage.d.ts.map +1 -1
  38. package/dist/hooks/useStorage.js +9 -4
  39. package/dist/hooks/useStorage.js.map +1 -1
  40. package/dist/interfaces.d.ts +16 -28
  41. package/dist/interfaces.d.ts.map +1 -1
  42. package/dist/ruru.d.ts +15 -5
  43. package/dist/ruru.d.ts.map +1 -1
  44. package/dist/ruru.js +47 -43
  45. package/dist/ruru.js.map +1 -1
  46. package/package.json +26 -28
  47. package/ruru.css +165 -0
  48. package/dist/hooks/useSchema.d.ts +0 -8
  49. package/dist/hooks/useSchema.d.ts.map +0 -1
  50. package/dist/hooks/useSchema.js +0 -70
  51. package/dist/hooks/useSchema.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,576 @@
1
1
  # ruru-components
2
2
 
3
+ ## 2.0.0-rc.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
8
+ Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
9
+
10
+ - Updated dependencies
11
+ [[`abb623d`](https://github.com/graphile/crystal/commit/abb623d59e517c0949f0fef5440b817103c685bf),
12
+ [`7b86454`](https://github.com/graphile/crystal/commit/7b864546fa81803ce0e573a2efa2e7f0905b2040),
13
+ [`42a0785`](https://github.com/graphile/crystal/commit/42a0785ddabf58812a22d764eeddfde9362974e5),
14
+ [`d196d60`](https://github.com/graphile/crystal/commit/d196d60664fbc9ffd410c11645db27554b22ac0b),
15
+ [`c6cbe61`](https://github.com/graphile/crystal/commit/c6cbe6175b0f1f034db59d42cbe594e7d329aba6),
16
+ [`d4ac603`](https://github.com/graphile/crystal/commit/d4ac603da7df6ea01aaa483a7cb29b1e514a90cd),
17
+ [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327),
18
+ [`ea0135f`](https://github.com/graphile/crystal/commit/ea0135fac3f43850b65828f2ff2b01a34cfdff15),
19
+ [`b6821f5`](https://github.com/graphile/crystal/commit/b6821f5f4dc13abd0b605be7396c1b3c36e66177)]:
20
+ - grafast@1.0.0-rc.1
21
+
22
+ ## 2.0.0-beta.37
23
+
24
+ ### Patch Changes
25
+
26
+ - [#2730](https://github.com/graphile/crystal/pull/2730)
27
+ [`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b)
28
+ Thanks [@benjie](https://github.com/benjie)! - Update `graphql` version range
29
+
30
+ - Updated dependencies
31
+ [[`4c3cf22`](https://github.com/graphile/crystal/commit/4c3cf22592f44cb28e399434474ca5fcef0e1a3b),
32
+ [`71e0af2`](https://github.com/graphile/crystal/commit/71e0af265c90e9d9d0dc764cc552f7470e860251),
33
+ [`ab96e5f`](https://github.com/graphile/crystal/commit/ab96e5f58aa3315db9b85b452b048f600cb8353e),
34
+ [`278b4d3`](https://github.com/graphile/crystal/commit/278b4d398eb7db1935caba4155e1d1727284a370),
35
+ [`eaa771b`](https://github.com/graphile/crystal/commit/eaa771b34dbdac1c4d701faa8fb5947e9cf1d1be),
36
+ [`d0c15cc`](https://github.com/graphile/crystal/commit/d0c15ccc32ed8dec19ff068f851529132dc93302),
37
+ [`bffbb77`](https://github.com/graphile/crystal/commit/bffbb775ea76d1add85422866a6b7e904d2311af),
38
+ [`c48ca48`](https://github.com/graphile/crystal/commit/c48ca4840227b8e5e6a1dc198a189cfd911a602b)]:
39
+ - grafast@0.1.1-beta.27
40
+
41
+ ## 2.0.0-beta.36
42
+
43
+ ### Patch Changes
44
+
45
+ - [#2694](https://github.com/graphile/crystal/pull/2694)
46
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca)
47
+ Thanks [@benjie](https://github.com/benjie)! - Add support for `onError` RFC
48
+ with `PROPAGATE`, `NULL` and `HALT` behaviors implemented.
49
+
50
+ - [#2678](https://github.com/graphile/crystal/pull/2678)
51
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98)
52
+ Thanks [@benjie](https://github.com/benjie)! - Remove peer dependency
53
+ optionality in an attempt to satisfy pnpm's installation algorithms
54
+
55
+ - [#2676](https://github.com/graphile/crystal/pull/2676)
56
+ [`34efed0`](https://github.com/graphile/crystal/commit/34efed09892d4b6533f40026de4a6b0a8a35035d)
57
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump mermaid from
58
+ 11.8.1 to 11.10.0
59
+
60
+ - Updated dependencies
61
+ [[`c3f9c38`](https://github.com/graphile/crystal/commit/c3f9c38cb00ad4553e4bc3c04e16a7c77bd16142),
62
+ [`13513dd`](https://github.com/graphile/crystal/commit/13513ddaea15ad9498a77de7c4e92679498f99ca),
63
+ [`bc2b188`](https://github.com/graphile/crystal/commit/bc2b188a50e00f153dc68df6955399c5917130bd),
64
+ [`c13813e`](https://github.com/graphile/crystal/commit/c13813eecb42c0d9a6703540c022e318e18c5751),
65
+ [`4a9072b`](https://github.com/graphile/crystal/commit/4a9072bfa3d3e86c6013caf2b89a31e87f2bb421),
66
+ [`6dafac1`](https://github.com/graphile/crystal/commit/6dafac162955291e5147c21e57734b44e30acb98),
67
+ [`34efed0`](https://github.com/graphile/crystal/commit/34efed09892d4b6533f40026de4a6b0a8a35035d),
68
+ [`185d449`](https://github.com/graphile/crystal/commit/185d449ed30d29c9134cc898b50a1473ab2910a2)]:
69
+ - grafast@0.1.1-beta.26
70
+
71
+ ## 2.0.0-beta.35
72
+
73
+ ### Patch Changes
74
+
75
+ - [`ce9dd46`](https://github.com/graphile/crystal/commit/ce9dd46bd0625ab23ee0f728baec0479149ef895)
76
+ Thanks [@benjie](https://github.com/benjie)! - Fix the sidebar border in
77
+ collapsed mode
78
+
79
+ ## 2.0.0-beta.34
80
+
81
+ ### Patch Changes
82
+
83
+ - [#2646](https://github.com/graphile/crystal/pull/2646)
84
+ [`59adcd5`](https://github.com/graphile/crystal/commit/59adcd52d3fd465c8d6afdcefaa41c82c9a77319)
85
+ Thanks [@benjie](https://github.com/benjie)! - Add condensed mode for Ruru,
86
+ enabled by default. (To disable, use the settings cog in the editor view and
87
+ uncheck condensed.)
88
+
89
+ - [#2645](https://github.com/graphile/crystal/pull/2645)
90
+ [`f941cfd`](https://github.com/graphile/crystal/commit/f941cfdcc8235e34716d3595745a05e49267de12)
91
+ Thanks [@benjie](https://github.com/benjie)! - Upgrade GraphiQL to latest
92
+ release
93
+
94
+ - Updated dependencies
95
+ [[`2adfd6e`](https://github.com/graphile/crystal/commit/2adfd6efedd1ab6831605526a515c683a7e95c2c),
96
+ [`6113518`](https://github.com/graphile/crystal/commit/61135188900c39d0cb6bd2f9c0033f0954cd0e6a)]:
97
+ - grafast@0.1.1-beta.25
98
+
99
+ ## 2.0.0-beta.33
100
+
101
+ ### Patch Changes
102
+
103
+ - [#2578](https://github.com/graphile/crystal/pull/2578)
104
+ [`1d76d2f`](https://github.com/graphile/crystal/commit/1d76d2f0d19b4d56895ee9988440a35d2c60f9f9)
105
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 **Ruru has been "rebuilt"!
106
+ The loading methods and APIs have changed!**
107
+
108
+ Ruru is now built on top of GraphiQL v5, which moves to using the Monaco
109
+ editor (the same editor used in VSCode) enabling more familiar keybindings and
110
+ more features (e.g. press F1 in the editor to see the command palette, and you
111
+ can now add comments in the variables JSON). This has required a
112
+ rearchitecture to Ruru's previously "single file" approach since Monaco uses
113
+ workers which require additional files.
114
+
115
+ In this release we have embraced the bundle splitting approach. We now bundle
116
+ both `prettier` and `mermaid`, and they are now loaded on-demand.
117
+
118
+ Usage instructions for all environments have had to change since we can no
119
+ longer serve Ruru as a single HTML file. We now include helpers for serving
120
+ Ruru's static files from whatever JS-based webserver you are using.
121
+
122
+ We've also added some additional improvements:
123
+ - Formatting with prettier now maintains the cursor position
124
+ (`Ctrl-Shift-P`/`Meta-Shift-P`/`Cmd-Shift-P` depending on platform)
125
+ - All editors are now formatted, not just the GraphQL editor
126
+ - Prettier and mermaid should now work offline
127
+ - Even more GraphiQL props are now passed through, including
128
+ `inputValueDeprecation` and `schemaDeprecation` which you can set to false
129
+ if your GraphQL server is, _ahem_, a little behind the GraphQL spec draft.
130
+
131
+ 🚨 **Changes you need to make:** 🚨
132
+ - If you are using Ruru directly (i.e. importing from `ruru/server`), please
133
+ see the new Ruru README for setup instructions, you'll want to switch out
134
+ your previous setup. In particular, `ruru/bundle` no longer exists and you
135
+ now need to serve the static files (via `ruru/static`).
136
+ - `defaultHTMLParts` is no more; instead `config.htmlParts` (also
137
+ `preset.ruru.htmlParts` for Graphile Config users) now allows the entries to
138
+ be callback functions reducing boilerplate:
139
+ ```diff
140
+ -import { defaultHTMLParts } from "ruru/server";
141
+ const config = {
142
+ htmlParts: {
143
+ - metaTags: defaultHTMLParts.metaTags + "<!-- local override -->",
144
+ + metaTags: (base) => base + "<!-- local override -->",
145
+ }
146
+ }
147
+ ```
148
+ (alternatively you can use `makeHTMLParts(config)`)
149
+ - Grafserv users: `plugin.grafserv.middleware.ruruHTMLParts` is renamed to
150
+ `ruruHTML` and wraps the generation of the HTML - simply trim `Parts` from
151
+ the name and be sure calling `next()` is the final line of the function
152
+ ```diff
153
+ const plugin = {
154
+ grafserv: {
155
+ middleware: {
156
+ - ruruHTMLParts(next, event) {
157
+ + ruruHTML(next, event) {
158
+ const { htmlParts, request } = event;
159
+ htmlParts.titleTag = `<title>${escapeHTML(
160
+ "Ruru | " + request.getHeader("host"),
161
+ )}</title>`;
162
+ return next();
163
+ },
164
+ },
165
+ },
166
+ };
167
+ ```
168
+
169
+ Additional changes:
170
+ - `RuruConfig.clientConfig` has been added for props to explicitly pass to
171
+ Ruru making it explicit that these will be sent to the client
172
+ - `RuruServerConfig` has deprecated the client options `editorTheme`,
173
+ `debugTools` and `eventSourceInit` at the top level; instead these should be
174
+ passed via `RuruServerConfig.clientConfig` making it explicit these will be
175
+ sent to the client and expanding to cover more props
176
+ ```diff
177
+ const config = {
178
+ endpoint: "/graphql",
179
+ + clientConfig: {
180
+ editorTheme: "dark",
181
+ + },
182
+ }
183
+ ```
184
+
185
+ - [#2605](https://github.com/graphile/crystal/pull/2605)
186
+ [`24d379a`](https://github.com/graphile/crystal/commit/24d379ae4b8a3c0afe3f1a309d87806a05e8d00d)
187
+ Thanks [@benjie](https://github.com/benjie)! - Add defaultTheme and
188
+ forcedTheme props to Ruru (passed through to GraphiQL)
189
+
190
+ - Updated dependencies
191
+ [[`c54c6db`](https://github.com/graphile/crystal/commit/c54c6db320b3967ab16784a504770c9b5ef24494),
192
+ [`ad588ec`](https://github.com/graphile/crystal/commit/ad588ecde230359f56800e414b7c5fa1aed14957)]:
193
+ - grafast@0.1.1-beta.24
194
+
195
+ ## 2.0.0-beta.32
196
+
197
+ ### Patch Changes
198
+
199
+ - [#2584](https://github.com/graphile/crystal/pull/2584)
200
+ [`00b3b8b`](https://github.com/graphile/crystal/commit/00b3b8baea55f0f8cb90c769baf63b408a593182)
201
+ Thanks [@benjie](https://github.com/benjie)! - Upgrade to GraphiQL v4. 🚨
202
+ Change `graphiql/graphiql.css` to `graphiql/style.css` and
203
+ `@graphiql/plugin-explorer/dist/style.css` to
204
+ `@graphiql/plugin-explorer/style.css`
205
+
206
+ - [#2577](https://github.com/graphile/crystal/pull/2577)
207
+ [`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47)
208
+ Thanks [@benjie](https://github.com/benjie)! - Update dependencies
209
+
210
+ - [#2582](https://github.com/graphile/crystal/pull/2582)
211
+ [`826f2cb`](https://github.com/graphile/crystal/commit/826f2cbff651273098d6b0d8c343aefeacfb5a14)
212
+ Thanks [@benjie](https://github.com/benjie)! - Fix button-in-button warning
213
+ from ToolbarMenu
214
+
215
+ - [#2585](https://github.com/graphile/crystal/pull/2585)
216
+ [`5311f9c`](https://github.com/graphile/crystal/commit/5311f9c8206fb3287b6aae6c4e7668ae920a4441)
217
+ Thanks [@benjie](https://github.com/benjie)! - Upgrade to React 19
218
+
219
+ - [#2583](https://github.com/graphile/crystal/pull/2583)
220
+ [`faee38b`](https://github.com/graphile/crystal/commit/faee38bbff0421bbccfaa77c0dffa5c2d44e2b92)
221
+ Thanks [@benjie](https://github.com/benjie)! - 🚨 Upgrade to graphql-ws v6
222
+
223
+ - Updated dependencies
224
+ [[`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47)]:
225
+ - grafast@0.1.1-beta.23
226
+
227
+ ## 2.0.0-beta.31
228
+
229
+ ### Patch Changes
230
+
231
+ - [#2444](https://github.com/graphile/crystal/pull/2444)
232
+ [`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3)
233
+ Thanks [@benjie](https://github.com/benjie)! - Upgrade to Mermaid 11, and
234
+ reduce verbosity of polymorphism in plan diagrams.
235
+
236
+ - [#2546](https://github.com/graphile/crystal/pull/2546)
237
+ [`997c49648b62a93e5b915c65c49cdad1654bef3e`](https://github.com/graphile/crystal/commit/997c49648b62a93e5b915c65c49cdad1654bef3e)
238
+ Thanks [@benjie](https://github.com/benjie)! - Fix issue where ruru wasn't
239
+ hiding explain output in incremental delivery results.
240
+ - Updated dependencies
241
+ [[`0e36cb9077c76710d2e407830323f86c5038126e`](https://github.com/graphile/crystal/commit/0e36cb9077c76710d2e407830323f86c5038126e),
242
+ [`c0c3f48fa9f60cb9a4436ea135979b779ecc71ec`](https://github.com/graphile/crystal/commit/c0c3f48fa9f60cb9a4436ea135979b779ecc71ec),
243
+ [`cef9a37f846b4af105ac20960530d65c9f44afa9`](https://github.com/graphile/crystal/commit/cef9a37f846b4af105ac20960530d65c9f44afa9),
244
+ [`56ce94a847c6a4094643665cbf5d3712f56140b6`](https://github.com/graphile/crystal/commit/56ce94a847c6a4094643665cbf5d3712f56140b6),
245
+ [`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3),
246
+ [`6ef6abce15936a896156d5316020df55cf7d18e3`](https://github.com/graphile/crystal/commit/6ef6abce15936a896156d5316020df55cf7d18e3),
247
+ [`0239c2d519300a72f545e0db7c371adae4ade2a9`](https://github.com/graphile/crystal/commit/0239c2d519300a72f545e0db7c371adae4ade2a9),
248
+ [`0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d`](https://github.com/graphile/crystal/commit/0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d),
249
+ [`8034614d1078b1bd177b6e7fcc949420614e3245`](https://github.com/graphile/crystal/commit/8034614d1078b1bd177b6e7fcc949420614e3245),
250
+ [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37),
251
+ [`c350e49e372ec12a4cbf04fb6b4260e01832d12b`](https://github.com/graphile/crystal/commit/c350e49e372ec12a4cbf04fb6b4260e01832d12b),
252
+ [`3176ea3e57d626b39613a73117ef97627370ec83`](https://github.com/graphile/crystal/commit/3176ea3e57d626b39613a73117ef97627370ec83),
253
+ [`46a42f5547c041289aa98657ebc6815f4b6c8539`](https://github.com/graphile/crystal/commit/46a42f5547c041289aa98657ebc6815f4b6c8539),
254
+ [`be3f174c5aae8fe78a240e1bc4e1de7f18644b43`](https://github.com/graphile/crystal/commit/be3f174c5aae8fe78a240e1bc4e1de7f18644b43),
255
+ [`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a),
256
+ [`9f459101fa4428aa4bac71531e75f99e33da8e17`](https://github.com/graphile/crystal/commit/9f459101fa4428aa4bac71531e75f99e33da8e17),
257
+ [`921665df8babe2651ab3b5886ab68bb518f2125b`](https://github.com/graphile/crystal/commit/921665df8babe2651ab3b5886ab68bb518f2125b),
258
+ [`78bb1a615754d772a5fda000e96073c91fa9eba7`](https://github.com/graphile/crystal/commit/78bb1a615754d772a5fda000e96073c91fa9eba7),
259
+ [`ab0bcda5fc3c136eea09493a7d9ed4542975858e`](https://github.com/graphile/crystal/commit/ab0bcda5fc3c136eea09493a7d9ed4542975858e),
260
+ [`455f4811d37ad8fff91183c7a88621bcf9d79acf`](https://github.com/graphile/crystal/commit/455f4811d37ad8fff91183c7a88621bcf9d79acf),
261
+ [`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8)]:
262
+ - grafast@0.1.1-beta.22
263
+ - tamedevil@0.0.0-beta.8
264
+
265
+ ## 2.0.0-beta.30
266
+
267
+ ### Patch Changes
268
+
269
+ - [#2426](https://github.com/graphile/crystal/pull/2426)
270
+ [`658d46c9a5b246e3beb4ba2a004334278f7bb24d`](https://github.com/graphile/crystal/commit/658d46c9a5b246e3beb4ba2a004334278f7bb24d)
271
+ Thanks [@benjie](https://github.com/benjie)! - Upgrade GraphiQL and fix
272
+ duplicate module issue
273
+
274
+ ## 2.0.0-beta.29
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies
279
+ [[`d34014a9a3c469154cc796086ba13719954731e5`](https://github.com/graphile/crystal/commit/d34014a9a3c469154cc796086ba13719954731e5),
280
+ [`98516379ac355a0833a64e002f3717cc3a1d6473`](https://github.com/graphile/crystal/commit/98516379ac355a0833a64e002f3717cc3a1d6473),
281
+ [`f8602d05eed3247c90b87c55d7af580d1698effc`](https://github.com/graphile/crystal/commit/f8602d05eed3247c90b87c55d7af580d1698effc),
282
+ [`65df25534fa3f787ba2ab7fd9547d295ff2b1288`](https://github.com/graphile/crystal/commit/65df25534fa3f787ba2ab7fd9547d295ff2b1288),
283
+ [`1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a`](https://github.com/graphile/crystal/commit/1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a),
284
+ [`3c0a925f26f10cae627a23c49c75ccd8d76b60c8`](https://github.com/graphile/crystal/commit/3c0a925f26f10cae627a23c49c75ccd8d76b60c8),
285
+ [`fcaeb48844156e258a037f420ea1505edb50c52a`](https://github.com/graphile/crystal/commit/fcaeb48844156e258a037f420ea1505edb50c52a),
286
+ [`68926abc31c32ce527327ffbb1ede4b0b7be446b`](https://github.com/graphile/crystal/commit/68926abc31c32ce527327ffbb1ede4b0b7be446b),
287
+ [`4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b`](https://github.com/graphile/crystal/commit/4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b),
288
+ [`d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48`](https://github.com/graphile/crystal/commit/d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48),
289
+ [`c8f1971ea4198633ec97f72f82abf65089f71a88`](https://github.com/graphile/crystal/commit/c8f1971ea4198633ec97f72f82abf65089f71a88),
290
+ [`dd3d22eab73a8554715bf1111e30586251f69a88`](https://github.com/graphile/crystal/commit/dd3d22eab73a8554715bf1111e30586251f69a88),
291
+ [`a120a8e43b24dfc174950cdbb69e481272a0b45e`](https://github.com/graphile/crystal/commit/a120a8e43b24dfc174950cdbb69e481272a0b45e),
292
+ [`84f06eafa051e907a3050237ac6ee5aefb184652`](https://github.com/graphile/crystal/commit/84f06eafa051e907a3050237ac6ee5aefb184652),
293
+ [`4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf`](https://github.com/graphile/crystal/commit/4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf),
294
+ [`0fc2db95d90df918cf5c59ef85f22ac78d8000d3`](https://github.com/graphile/crystal/commit/0fc2db95d90df918cf5c59ef85f22ac78d8000d3),
295
+ [`90e81a5deeae554a8be2dd55dcd01489860e96e6`](https://github.com/graphile/crystal/commit/90e81a5deeae554a8be2dd55dcd01489860e96e6),
296
+ [`c59132eb7a93bc82493d2f1ca050db8aaea9f4d1`](https://github.com/graphile/crystal/commit/c59132eb7a93bc82493d2f1ca050db8aaea9f4d1),
297
+ [`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7),
298
+ [`728888b28fcd2a6fc481e0ccdfe20d41181a091f`](https://github.com/graphile/crystal/commit/728888b28fcd2a6fc481e0ccdfe20d41181a091f),
299
+ [`f4f39092d7a51517668384945895d3b450237cce`](https://github.com/graphile/crystal/commit/f4f39092d7a51517668384945895d3b450237cce),
300
+ [`5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e`](https://github.com/graphile/crystal/commit/5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e),
301
+ [`83d3b533e702cc875b46ba2ca02bf3642b421be8`](https://github.com/graphile/crystal/commit/83d3b533e702cc875b46ba2ca02bf3642b421be8),
302
+ [`7001138c38e09822ad13db1018c62d2cac37941e`](https://github.com/graphile/crystal/commit/7001138c38e09822ad13db1018c62d2cac37941e),
303
+ [`e9e7e33665e22ec397e9ead054d2e4aad3eadc8c`](https://github.com/graphile/crystal/commit/e9e7e33665e22ec397e9ead054d2e4aad3eadc8c),
304
+ [`bb6ec8d834e3e630e28316196246f514114a2296`](https://github.com/graphile/crystal/commit/bb6ec8d834e3e630e28316196246f514114a2296),
305
+ [`2b1918d053f590cdc534c8cb81f7e74e96c1bbe6`](https://github.com/graphile/crystal/commit/2b1918d053f590cdc534c8cb81f7e74e96c1bbe6),
306
+ [`d1ecb39693a341f85762b27012ec4ea013857b0c`](https://github.com/graphile/crystal/commit/d1ecb39693a341f85762b27012ec4ea013857b0c),
307
+ [`042ebafe11fcf7e2ecac9b131265a55dddd42a6d`](https://github.com/graphile/crystal/commit/042ebafe11fcf7e2ecac9b131265a55dddd42a6d),
308
+ [`fa005eb0783c58a2476add984fbdd462e0e91dbe`](https://github.com/graphile/crystal/commit/fa005eb0783c58a2476add984fbdd462e0e91dbe),
309
+ [`df0e5a0f968cf6f9ae97b68745a9a2f391324bf5`](https://github.com/graphile/crystal/commit/df0e5a0f968cf6f9ae97b68745a9a2f391324bf5),
310
+ [`ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f`](https://github.com/graphile/crystal/commit/ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f),
311
+ [`c041fd250372c57601188b65a6411c8f440afab6`](https://github.com/graphile/crystal/commit/c041fd250372c57601188b65a6411c8f440afab6),
312
+ [`629b45aab49151810f6efc18ac18f7d735626433`](https://github.com/graphile/crystal/commit/629b45aab49151810f6efc18ac18f7d735626433),
313
+ [`6d19724330d50d076aab9442660fa8abddd095cb`](https://github.com/graphile/crystal/commit/6d19724330d50d076aab9442660fa8abddd095cb),
314
+ [`ca5bc1a834df7b894088fb8602a12f9fcff55b38`](https://github.com/graphile/crystal/commit/ca5bc1a834df7b894088fb8602a12f9fcff55b38),
315
+ [`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322),
316
+ [`f0bc64b71914dfdd3612f4b65370401fd85b97bc`](https://github.com/graphile/crystal/commit/f0bc64b71914dfdd3612f4b65370401fd85b97bc)]:
317
+ - grafast@0.1.1-beta.21
318
+
319
+ ## 2.0.0-beta.28
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies
324
+ [[`fc9d64eb8`](https://github.com/graphile/crystal/commit/fc9d64eb8002d3b72625bc505ed76c07f4296d68),
325
+ [`a2dbad945`](https://github.com/graphile/crystal/commit/a2dbad9457195bec797d72e4e6d45f45278f9f69),
326
+ [`31078842a`](https://github.com/graphile/crystal/commit/31078842ad0eeaa7111491fa9eb5e3bd026fb38a),
327
+ [`5a0ec31de`](https://github.com/graphile/crystal/commit/5a0ec31deae91f1dd17a77a4bb7c1a911a27e26a)]:
328
+ - grafast@0.1.1-beta.20
329
+
330
+ ## 2.0.0-beta.27
331
+
332
+ ### Patch Changes
333
+
334
+ - Updated dependencies []:
335
+ - grafast@0.1.1-beta.19
336
+
337
+ ## 2.0.0-beta.26
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies
342
+ [[`b336a5829`](https://github.com/graphile/crystal/commit/b336a58291cfec7aef884d3843172d408abfaf3c)]:
343
+ - grafast@0.1.1-beta.18
344
+
345
+ ## 2.0.0-beta.25
346
+
347
+ ### Patch Changes
348
+
349
+ - [#2266](https://github.com/graphile/crystal/pull/2266)
350
+ [`38163c86a`](https://github.com/graphile/crystal/commit/38163c86ae628fed84cf38fc6a1cc76a7bc7932a)
351
+ Thanks [@hos](https://github.com/hos)! - Fix white-screen-of-death caused by
352
+ EventSource disconnection. Instead, handle errors gracefully. Also, allow
353
+ overriding of the EventSource configuration options.
354
+ - Updated dependencies
355
+ [[`69ab227b5`](https://github.com/graphile/crystal/commit/69ab227b5e1c057a6fc8ebba87bde80d5aa7f3c8)]:
356
+ - grafast@0.1.1-beta.17
357
+
358
+ ## 2.0.0-beta.24
359
+
360
+ ### Patch Changes
361
+
362
+ - Updated dependencies
363
+ [[`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
364
+ - grafast@0.1.1-beta.16
365
+
366
+ ## 2.0.0-beta.23
367
+
368
+ ### Patch Changes
369
+
370
+ - Updated dependencies
371
+ [[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
372
+ [`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
373
+ [`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
374
+ [`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
375
+ [`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81)]:
376
+ - grafast@0.1.1-beta.15
377
+
378
+ ## 2.0.0-beta.22
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies
383
+ [[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
384
+ [`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
385
+ [`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
386
+ - grafast@0.1.1-beta.14
387
+
388
+ ## 2.0.0-beta.21
389
+
390
+ ### Patch Changes
391
+
392
+ - Updated dependencies
393
+ [[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
394
+ - grafast@0.1.1-beta.13
395
+
396
+ ## 2.0.0-beta.20
397
+
398
+ ### Patch Changes
399
+
400
+ - [#2125](https://github.com/graphile/crystal/pull/2125)
401
+ [`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443)
402
+ Thanks [@benjie](https://github.com/benjie)! - Change how unary steps are
403
+ rendered to plan diagrams, fixing the rendering of side-effect steps.
404
+
405
+ - [#2124](https://github.com/graphile/crystal/pull/2124)
406
+ [`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03)
407
+ Thanks [@benjie](https://github.com/benjie)! - Render implicit side effects as
408
+ dependencies on plan diagram
409
+
410
+ - Updated dependencies
411
+ [[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
412
+ [`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
413
+ [`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
414
+ [`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
415
+ [`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
416
+ [`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
417
+ [`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
418
+ [`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
419
+ [`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
420
+ [`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
421
+ [`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
422
+ [`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
423
+ - grafast@0.1.1-beta.12
424
+
425
+ ## 2.0.0-beta.19
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies
430
+ [[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
431
+ - grafast@0.1.1-beta.11
432
+
433
+ ## 2.0.0-beta.18
434
+
435
+ ### Patch Changes
436
+
437
+ - Updated dependencies
438
+ [[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
439
+ [`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
440
+ [`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
441
+ - grafast@0.1.1-beta.10
442
+
443
+ ## 2.0.0-beta.17
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies
448
+ [[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
449
+ - grafast@0.1.1-beta.9
450
+
451
+ ## 2.0.0-beta.16
452
+
453
+ ### Patch Changes
454
+
455
+ - Updated dependencies
456
+ [[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
457
+ - grafast@0.1.1-beta.8
458
+
459
+ ## 2.0.0-beta.15
460
+
461
+ ### Patch Changes
462
+
463
+ - Updated dependencies
464
+ [[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
465
+ [`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
466
+ [`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
467
+ [`b788dd868`](https://github.com/graphile/crystal/commit/b788dd86849e703cc3aa863fd9190c36a087b865),
468
+ [`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
469
+ [`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
470
+ [`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
471
+ [`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
472
+ [`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
473
+ [`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
474
+ [`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
475
+ [`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
476
+ [`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
477
+ [`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
478
+ [`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
479
+ [`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
480
+ [`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
481
+ [`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
482
+ [`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
483
+ [`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
484
+ [`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
485
+ [`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
486
+ [`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
487
+ [`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
488
+ [`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
489
+ - grafast@0.1.1-beta.7
490
+ - tamedevil@0.0.0-beta.7
491
+
492
+ ## 2.0.0-beta.14
493
+
494
+ ### Patch Changes
495
+
496
+ - Updated dependencies
497
+ [[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
498
+ [`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
499
+ [`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
500
+ - grafast@0.1.1-beta.6
501
+ - tamedevil@0.0.0-beta.6
502
+
503
+ ## 2.0.0-beta.13
504
+
505
+ ### Patch Changes
506
+
507
+ - [#1931](https://github.com/graphile/crystal/pull/1931)
508
+ [`dfac3f790`](https://github.com/graphile/crystal/commit/dfac3f790ec5c446c132202dde624aeeb75b5a6d)
509
+ Thanks [@benjie](https://github.com/benjie)! - Fix issue where headers weren't
510
+ sent via websocket connectionParams
511
+
512
+ - [#1931](https://github.com/graphile/crystal/pull/1931)
513
+ [`941e28003`](https://github.com/graphile/crystal/commit/941e280038a735014a9fe4e24fc534a197fac0f2)
514
+ Thanks [@benjie](https://github.com/benjie)! - Add support for deprecated
515
+ arguments to Ruru.
516
+
517
+ - [#1931](https://github.com/graphile/crystal/pull/1931)
518
+ [`068be2f51`](https://github.com/graphile/crystal/commit/068be2f51d7a9c17311f26c6c9451985397c9e1f)
519
+ Thanks [@benjie](https://github.com/benjie)! - Fix issue typing into Ruru
520
+ explorer plugin - characters no longer overwritten.
521
+
522
+ - Updated dependencies
523
+ [[`49fd8afed`](https://github.com/graphile/crystal/commit/49fd8afed1afe573ea76a2a7a821dfa5d6288e2d),
524
+ [`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
525
+ [`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
526
+ [`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195),
527
+ [`8ea67f891`](https://github.com/graphile/crystal/commit/8ea67f8910693edaf70daa9952e35d8396166f38)]:
528
+ - tamedevil@0.0.0-beta.5
529
+ - grafast@0.1.1-beta.5
530
+
531
+ ## 2.0.0-beta.12
532
+
533
+ ### Patch Changes
534
+
535
+ - Updated dependencies
536
+ [[`1b6c2f636`](https://github.com/graphile/crystal/commit/1b6c2f6360a316a8dc550c60e28c61deea538f19),
537
+ [`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
538
+ [`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
539
+ - tamedevil@0.0.0-beta.4
540
+ - grafast@0.1.1-beta.4
541
+
542
+ ## 2.0.0-beta.11
543
+
544
+ ### Patch Changes
545
+
546
+ - Updated dependencies []:
547
+ - grafast@0.1.1-beta.3
548
+
549
+ ## 2.0.0-beta.10
550
+
551
+ ### Patch Changes
552
+
553
+ - Updated dependencies
554
+ [[`3fdc2bce4`](https://github.com/graphile/crystal/commit/3fdc2bce42418773f808c5b8309dfb361cd95ce9),
555
+ [`aeef362b5`](https://github.com/graphile/crystal/commit/aeef362b5744816f01e4a6f714bbd77f92332bc5),
556
+ [`8a76db07f`](https://github.com/graphile/crystal/commit/8a76db07f4c110cecc6225504f9a05ccbcbc7b92),
557
+ [`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f),
558
+ [`1c9f1c0ed`](https://github.com/graphile/crystal/commit/1c9f1c0edf4e621a5b6345d3a41527a18143c6ae)]:
559
+ - grafast@0.1.1-beta.2
560
+
561
+ ## 2.0.0-beta.9
562
+
563
+ ### Patch Changes
564
+
565
+ - [#1833](https://github.com/graphile/crystal/pull/1833)
566
+ [`11ceb1753`](https://github.com/graphile/crystal/commit/11ceb1753ee42ee6d991e618dedc670a6f238fab)
567
+ Thanks [@benjie](https://github.com/benjie)! - Rework how schema fetching
568
+ works to solve issue with headers not being sent. Thanks @JoviDeCroock for the
569
+ inspiration.
570
+ - Updated dependencies
571
+ [[`49fcb0d58`](https://github.com/graphile/crystal/commit/49fcb0d585b31b291c9072c339d6f5b550eefc9f)]:
572
+ - grafast@0.1.1-beta.1
573
+
3
574
  ## 2.0.0-beta.8
4
575
 
5
576
  ### Patch Changes
package/README.md CHANGED
@@ -12,15 +12,49 @@ documentation.
12
12
 
13
13
  For other usage patterns, please see the main [ruru][] package.
14
14
 
15
- ```js
16
- import { Ruru } from "ruru-components";
17
- import "graphiql/graphiql.css";
18
- import "@graphiql/plugin-explorer/dist/style.css";
15
+ ```jsx
16
+ import "graphiql/style.css";
17
+ import "@graphiql/plugin-explorer/style.css";
19
18
  import "ruru-components/ruru.css";
20
19
 
20
+ // Have Webpack include the Monaco workers
21
+ import "graphiql/setup-workers/webpack";
22
+ // Or: import "graphiql/setup-workers/vite";
23
+ // Or: see "Monaco workers" below
24
+
25
+ import { Ruru } from "ruru-components";
26
+
21
27
  React.render(<Ruru endpoint="/graphql" />);
22
28
  ```
23
29
 
30
+ ### Monaco workers
31
+
32
+ If you can't use `graphiql/setup-workers/webpack` (or
33
+ `graphiql/setup-workers/vite` for Vite) to set up the Monaco workers for you,
34
+ then instead add this `<script>` block to your HTML above your Ruru import:
35
+
36
+ ```html
37
+ <script type="module">
38
+ /* Set up monaco workers */
39
+ import createJSONWorker from "https://esm.sh/monaco-editor/esm/vs/language/json/json.worker.js?worker";
40
+ import createGraphQLWorker from "https://esm.sh/monaco-graphql/esm/graphql.worker.js?worker";
41
+ import createEditorWorker from "https://esm.sh/monaco-editor/esm/vs/editor/editor.worker.js?worker";
42
+
43
+ globalThis.MonacoEnvironment = {
44
+ getWorker(_workerId, label) {
45
+ switch (label) {
46
+ case "json":
47
+ return createJSONWorker();
48
+ case "graphql":
49
+ return createGraphQLWorker();
50
+ default:
51
+ return createEditorWorker();
52
+ }
53
+ },
54
+ };
55
+ </script>
56
+ ```
57
+
24
58
  [GNU Terry Pratchett](http://www.gnuterrypratchett.com/)
25
59
 
26
60
  [ruru]: https://www.npmjs.com/package/ruru
@@ -1,4 +1,4 @@
1
- import type { FC } from "react";
1
+ import type { FC, JSX } from "react";
2
2
  export declare const Copy: FC<{
3
3
  text?: string;
4
4
  json?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Copy.d.ts","sourceRoot":"","sources":["../../src/components/Copy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CAChD,CA8BA,CAAC"}
1
+ {"version":3,"file":"Copy.d.ts","sourceRoot":"","sources":["../../src/components/Copy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGrC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CAChD,CA8BA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Copy.js","sourceRoot":"","sources":["../../src/components/Copy.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,CAAC,MAAM,IAAI,GAIZ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE,CAAC,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACxE,CAAC,OAAO,EAAE,IAAI,CAAC,CAChB,CAAC;IACF,MAAM,GAAG,GAAG,MAAM,CAA6B,IAAI,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,EAAE,EAAE;YACN,2BAA2B;YAC3B,EAAE,CAAC,MAAM,EAAE,CAAC;YACZ,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,wBAAwB;YAExD,yCAAyC;YACzC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;SACzC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,mBACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;oBACV,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC;gBACnB,CAAC,EACD,KAAK,EAAE,IAAI,EACX,QAAQ,QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAC1B,EACF,iBAAQ,OAAO,EAAE,IAAI,YAAG,QAAQ,GAAU,IACzC,CACJ,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"Copy.js","sourceRoot":"","sources":["../../src/components/Copy.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,CAAC,MAAM,IAAI,GAIZ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE,CAAC,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACxE,CAAC,OAAO,EAAE,IAAI,CAAC,CAChB,CAAC;IACF,MAAM,GAAG,GAAG,MAAM,CAA6B,IAAI,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,EAAE,EAAE,CAAC;YACP,2BAA2B;YAC3B,EAAE,CAAC,MAAM,EAAE,CAAC;YACZ,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,wBAAwB;YAExD,yCAAyC;YACzC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,mBACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;oBACV,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC;gBACnB,CAAC,EACD,KAAK,EAAE,IAAI,EACX,QAAQ,QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAC1B,EACF,iBAAQ,OAAO,EAAE,IAAI,YAAG,QAAQ,GAAU,IACzC,CACJ,CAAC;AACJ,CAAC,CAAC"}