@operato/app 1.19.12 → 1.19.14
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.
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/app",
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "1.19.
|
|
5
|
+
"version": "1.19.14",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -138,20 +138,22 @@
|
|
|
138
138
|
"@codemirror/state": "^6.3.3",
|
|
139
139
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
140
140
|
"@codemirror/view": "^6.22.1",
|
|
141
|
-
"@graphql-tools/delegate": "^
|
|
142
|
-
"@graphql-tools/
|
|
141
|
+
"@graphql-tools/delegate": "^9.0.0",
|
|
142
|
+
"@graphql-tools/load": "^7.0.0",
|
|
143
|
+
"@graphql-tools/schema": "^9.0.0",
|
|
144
|
+
"@graphql-tools/url-loader": "^7.0.0",
|
|
143
145
|
"@material/mwc-button": "^0.27.0",
|
|
144
146
|
"@material/mwc-icon": "^0.27.0",
|
|
145
147
|
"@material/mwc-icon-button": "^0.27.0",
|
|
146
|
-
"@operato/attachment": "^1.19.
|
|
147
|
-
"@operato/data-grist": "^1.19.
|
|
148
|
-
"@operato/font": "^1.19.
|
|
148
|
+
"@operato/attachment": "^1.19.13",
|
|
149
|
+
"@operato/data-grist": "^1.19.13",
|
|
150
|
+
"@operato/font": "^1.19.13",
|
|
149
151
|
"@operato/form": "^1.19.10",
|
|
150
152
|
"@operato/graphql": "^1.19.10",
|
|
151
153
|
"@operato/i18n": "^1.19.10",
|
|
152
|
-
"@operato/input": "^1.19.
|
|
153
|
-
"@operato/layout": "^1.19.
|
|
154
|
-
"@operato/property-editor": "^1.19.
|
|
154
|
+
"@operato/input": "^1.19.13",
|
|
155
|
+
"@operato/layout": "^1.19.13",
|
|
156
|
+
"@operato/property-editor": "^1.19.13",
|
|
155
157
|
"@operato/shell": "^1.19.10",
|
|
156
158
|
"@operato/styles": "^1.19.10",
|
|
157
159
|
"@operato/utils": "^1.19.10",
|
|
@@ -160,7 +162,6 @@
|
|
|
160
162
|
"cronstrue": "^2.2.0",
|
|
161
163
|
"cross-fetch": "^3.1.5",
|
|
162
164
|
"graphql": "^16.5.0",
|
|
163
|
-
"graphql-config": "^5.0.2",
|
|
164
165
|
"graphql-tag": "^2.12.6",
|
|
165
166
|
"lit": "^2.5.0"
|
|
166
167
|
},
|
|
@@ -196,5 +197,5 @@
|
|
|
196
197
|
"prettier --write"
|
|
197
198
|
]
|
|
198
199
|
},
|
|
199
|
-
"gitHead": "
|
|
200
|
+
"gitHead": "5f122713ddd283b7e229d4b6ef42e06ea74ed7d9"
|
|
200
201
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { fetch } from 'cross-fetch'
|
|
6
|
-
import { print } from 'graphql'
|
|
7
5
|
import { css, html, PropertyValues } from 'lit'
|
|
8
6
|
import { customElement, property, query } from 'lit/decorators.js'
|
|
9
7
|
import { graphql } from 'cm6-graphql'
|
|
@@ -14,7 +12,9 @@ import { bracketMatching, syntaxHighlighting } from '@codemirror/language'
|
|
|
14
12
|
import { oneDarkHighlightStyle, oneDark } from '@codemirror/theme-one-dark'
|
|
15
13
|
import { EditorView, highlightActiveLine, keymap } from '@codemirror/view'
|
|
16
14
|
|
|
17
|
-
import {
|
|
15
|
+
import { makeExecutableSchema } from '@graphql-tools/schema'
|
|
16
|
+
import { loadSchema } from '@graphql-tools/load'
|
|
17
|
+
import { UrlLoader } from '@graphql-tools/url-loader'
|
|
18
18
|
import { GRAPHQL_URI } from '@operato/graphql'
|
|
19
19
|
import { OxFormField } from '@operato/input'
|
|
20
20
|
import { togglefullscreen } from '@operato/utils'
|
|
@@ -66,24 +66,16 @@ export default class OxInputGraphql extends OxFormField {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
async getSchema() {
|
|
69
|
-
const
|
|
70
|
-
const query = print(document)
|
|
71
|
-
const uri = this.link || GRAPHQL_URI
|
|
72
|
-
|
|
73
|
-
const fetchResult = await fetch(uri, {
|
|
74
|
-
method: 'POST',
|
|
75
|
-
headers: {
|
|
76
|
-
'Content-Type': 'application/json'
|
|
77
|
-
},
|
|
78
|
-
body: JSON.stringify({ query, variables })
|
|
79
|
-
})
|
|
80
|
-
return fetchResult.json()
|
|
81
|
-
}
|
|
69
|
+
const uri = this.link || GRAPHQL_URI
|
|
82
70
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
const schema = await loadSchema(uri, {
|
|
72
|
+
loaders: [new UrlLoader()],
|
|
73
|
+
headers: {
|
|
74
|
+
'Content-Type': 'application/json'
|
|
75
|
+
}
|
|
86
76
|
})
|
|
77
|
+
|
|
78
|
+
return makeExecutableSchema({ typeDefs: schema, resolvers: {} })
|
|
87
79
|
}
|
|
88
80
|
|
|
89
81
|
async getEditor() {
|