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