elasticgraph-rack 0.19.2.1 → 0.19.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ce06712108b7e6875e0a4e91fa4b1bb1758df43b13072ccf8b0ec08afc1e165
4
- data.tar.gz: d889ca6575b34eeb476bec587b8865a5a18998191c1f4cde3760e9457342d869
3
+ metadata.gz: a45074777da8f0b355c32051c11b3c454edcb32a7f577f21247ed5f594c0a253
4
+ data.tar.gz: d81ac291c0a457c3d87feebbb25761c3a03b95fafe72825b876e5d77812e6b3e
5
5
  SHA512:
6
- metadata.gz: 51af36d2174628e5a545eb6f424dab62bb3b51732f0fed110b00fe105f1e4c84a975b282fe308408cb03c129d87275b12c2bfcd5546c39221048e806b47805ab
7
- data.tar.gz: '028321cc72f5bd1e124a2cfebaf213d386daf7aba7e24fd7eabc0cc29823259ded0d2a0c7c881f813ee7b18a712f959fe057cedf37b9d5b3ccc57d11b54e1d5b'
6
+ metadata.gz: 5d6f7d7792a3dd42a96a04a28f8dd50ff27739841a6102b0ea2ea56e425bfb5ff25b8ab079d90e46e63dbb7d7b3f7b8e60fd7d3e5c53579a22f723c87dd4eb1c
7
+ data.tar.gz: a7bc34f0e9a2c5b8a5ac2a4c47bccc86d8c41a57e1afd5221a3a1f1e4ac1fd20b37068bf24b07f4c77191c78a20cbf4197b7d8bf66f3acd40a098b7cb79267b1
@@ -2,68 +2,89 @@
2
2
  * Copyright (c) 2021 GraphQL Contributors
3
3
  * All rights reserved.
4
4
  *
5
- * This source code is licensed under the license found in the
6
- * LICENSE file in the root directory of this source tree.
5
+ * This source code is licensed under the GraphiQL license found at:
6
+ * https://github.com/graphql/graphiql/blob/graphiql%404.0.0/LICENSE
7
7
  -->
8
- <!DOCTYPE html>
8
+ <!doctype html>
9
9
  <html lang="en">
10
10
  <head>
11
+ <meta charset="UTF-8" />
12
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
13
  <title>ElasticGraph GraphiQL</title>
12
14
  <style>
13
15
  body {
14
- height: 100%;
15
16
  margin: 0;
16
- width: 100%;
17
- overflow: hidden;
17
+ overflow: hidden; /* in Firefox */
18
18
  }
19
19
 
20
20
  #graphiql {
21
- height: 100vh;
21
+ height: 100dvh;
22
+ }
23
+
24
+ .loading {
25
+ height: 100%;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ font-size: 4rem;
22
30
  }
23
31
  </style>
32
+ <link
33
+ rel="stylesheet"
34
+ href="https://esm.sh/graphiql@4.0.0/dist/style.css"
35
+ />
36
+ <link
37
+ rel="stylesheet"
38
+ href="https://esm.sh/@graphiql/plugin-explorer@4.0.0/dist/style.css"
39
+ />
40
+ <!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
41
+ <script type="importmap">
42
+ {
43
+ "imports": {
44
+ "react": "https://esm.sh/react@19.1.0",
45
+ "react/jsx-runtime": "https://esm.sh/react@19.1.0/jsx-runtime",
24
46
 
25
- <!--
26
- This GraphiQL example depends on Promise and fetch, which are available in
27
- modern browsers, but can be "polyfilled" for older browsers.
28
- GraphiQL itself depends on React DOM.
29
- If you do not want to rely on a CDN, you can host these files locally or
30
- include them directly in your favored resource bundler.
31
- -->
32
- <script
33
- src="https://unpkg.com/react@17/umd/react.development.js"
34
- integrity="sha512-Vf2xGDzpqUOEIKO+X2rgTLWPY+65++WPwCHkX2nFMu9IcstumPsf/uKKRd5prX3wOu8Q0GBylRpsDB26R6ExOg=="
35
- crossorigin="anonymous"
36
- ></script>
37
- <script
38
- src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"
39
- integrity="sha512-Wr9OKCTtq1anK0hq5bY3X/AvDI5EflDSAh0mE9gma+4hl+kXdTJPKZ3TwLMBcrgUeoY0s3dq9JjhCQc7vddtFg=="
40
- crossorigin="anonymous"
41
- ></script>
47
+ "react-dom": "https://esm.sh/react-dom@19.1.0",
48
+ "react-dom/client": "https://esm.sh/react-dom@19.1.0/client",
42
49
 
43
- <!--
44
- These two files can be found in the npm module, however you may wish to
45
- copy them directly into your environment, or perhaps include them in your
46
- favored resource bundler.
47
- -->
48
- <link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
49
- </head>
50
+ "graphiql": "https://esm.sh/graphiql@4.0.0?standalone&external=react,react/jsx-runtime,react-dom,@graphiql/react",
51
+ "@graphiql/plugin-explorer": "https://esm.sh/@graphiql/plugin-explorer@4.0.0?standalone&external=react,react/jsx-runtime,react-dom,@graphiql/react,graphql",
52
+ "@graphiql/react": "https://esm.sh/@graphiql/react@0.30.0?standalone&external=react,react/jsx-runtime,react-dom,graphql,@graphiql/toolkit",
50
53
 
51
- <body>
52
- <div id="graphiql">Loading...</div>
53
- <script
54
- src="https://unpkg.com/graphiql/graphiql.min.js"
55
- type="application/javascript"
56
- ></script>
57
- <script>
58
- ReactDOM.render(
59
- React.createElement(GraphiQL, {
60
- fetcher: GraphiQL.createFetcher({
61
- url: '/graphql',
62
- }),
63
- defaultEditorToolsVisibility: true,
64
- }),
65
- document.getElementById('graphiql'),
66
- );
54
+ "@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit@0.11.2?standalone&external=graphql",
55
+ "graphql": "https://esm.sh/graphql@16.11.0"
56
+ }
57
+ }
67
58
  </script>
59
+ <script type="module">
60
+ // Import React and ReactDOM
61
+ import React from 'react';
62
+ import ReactDOM from 'react-dom/client';
63
+ // Import GraphiQL and the Explorer plugin
64
+ import { GraphiQL } from 'graphiql';
65
+ import { createGraphiQLFetcher } from '@graphiql/toolkit';
66
+ import { explorerPlugin } from '@graphiql/plugin-explorer';
67
+
68
+ const fetcher = createGraphiQLFetcher({
69
+ url: '/graphql',
70
+ });
71
+ const explorer = explorerPlugin();
72
+
73
+ function App() {
74
+ return React.createElement(GraphiQL, {
75
+ fetcher,
76
+ plugins: [explorer],
77
+ });
78
+ }
79
+
80
+ const container = document.getElementById('graphiql');
81
+ const root = ReactDOM.createRoot(container);
82
+ root.render(React.createElement(App));
83
+ </script>
84
+ </head>
85
+ <body>
86
+ <div id="graphiql">
87
+ <div class="loading">Loading…</div>
88
+ </div>
68
89
  </body>
69
90
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticgraph-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2.1
4
+ version: 0.19.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
@@ -9,7 +9,7 @@ authors:
9
9
  - Block Engineering
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-04-24 00:00:00.000000000 Z
12
+ date: 2025-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: elasticgraph-graphql
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.19.2.1
20
+ version: 0.19.2.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.19.2.1
27
+ version: 0.19.2.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rack
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -51,56 +51,56 @@ dependencies:
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.19.2.1
54
+ version: 0.19.2.2
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.19.2.1
61
+ version: 0.19.2.2
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: elasticgraph-elasticsearch
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.19.2.1
68
+ version: 0.19.2.2
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.19.2.1
75
+ version: 0.19.2.2
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: elasticgraph-opensearch
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.19.2.1
82
+ version: 0.19.2.2
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.19.2.1
89
+ version: 0.19.2.2
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: elasticgraph-indexer
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.19.2.1
96
+ version: 0.19.2.2
97
97
  type: :development
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.19.2.1
103
+ version: 0.19.2.2
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rack-test
106
106
  requirement: !ruby/object:Gem::Requirement
@@ -133,10 +133,10 @@ licenses:
133
133
  - MIT
134
134
  metadata:
135
135
  bug_tracker_uri: https://github.com/block/elasticgraph/issues
136
- changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.2.1
137
- documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.2.1/
136
+ changelog_uri: https://github.com/block/elasticgraph/releases/tag/v0.19.2.2
137
+ documentation_uri: https://block.github.io/elasticgraph/api-docs/v0.19.2.2/
138
138
  homepage_uri: https://block.github.io/elasticgraph/
139
- source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.2.1/elasticgraph-rack
139
+ source_code_uri: https://github.com/block/elasticgraph/tree/v0.19.2.2/elasticgraph-rack
140
140
  gem_category: local
141
141
  rdoc_options: []
142
142
  require_paths: