elasticgraph-rack 0.19.2.1 → 1.0.0.rc1

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: 3927bbeeaa05401a2b125d05e3f8168bde3062a407a998ac925980ef7517fcd6
4
+ data.tar.gz: ce284ff9e429471e48ee05032eea74050a163302406497b489d005c9c5118e6f
5
5
  SHA512:
6
- metadata.gz: 51af36d2174628e5a545eb6f424dab62bb3b51732f0fed110b00fe105f1e4c84a975b282fe308408cb03c129d87275b12c2bfcd5546c39221048e806b47805ab
7
- data.tar.gz: '028321cc72f5bd1e124a2cfebaf213d386daf7aba7e24fd7eabc0cc29823259ded0d2a0c7c881f813ee7b18a712f959fe057cedf37b9d5b3ccc57d11b54e1d5b'
6
+ metadata.gz: 5918411f1577def6508eb4bff44a07b4b45d6442124556d191acfa3fec29861fb3db404b58b6adfa3c6b662eca56e9e25a2125cf12e8f1294e951ec610f08c09
7
+ data.tar.gz: 99fab934df2e9b433761513b8e93948d8bf6d61fcac091a817ba68d1192c8f75e15d72b135747319a0d93ca91385a2ca03a8c2c7877d442f88767ff698f00242
@@ -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: 1.0.0.rc1
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: 1980-01-02 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: 1.0.0.rc1
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: 1.0.0.rc1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rack
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '3.1'
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 3.1.13
37
+ version: 3.1.14
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,63 +44,63 @@ dependencies:
44
44
  version: '3.1'
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 3.1.13
47
+ version: 3.1.14
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: elasticgraph-admin
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.19.2.1
54
+ version: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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: 1.0.0.rc1
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/v1.0.0.rc1
137
+ documentation_uri: https://block.github.io/elasticgraph/api-docs/v1.0.0.rc1/
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/v1.0.0.rc1/elasticgraph-rack
140
140
  gem_category: local
141
141
  rdoc_options: []
142
142
  require_paths:
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
- version: '3.2'
148
+ version: '3.4'
149
149
  - - "<"
150
150
  - !ruby/object:Gem::Version
151
151
  version: '3.5'
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.6.2
158
+ rubygems_version: 3.6.7
159
159
  specification_version: 4
160
160
  summary: ElasticGraph gem for serving an ElasticGraph GraphQL endpoint using rack.
161
161
  test_files: []