@foal/graphiql 4.4.0 → 4.5.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.
|
@@ -61064,7 +61064,7 @@ D.CodeMirror.registerHelper("info", "graphql", (a, e) => {
|
|
|
61064
61064
|
}
|
|
61065
61065
|
});
|
|
61066
61066
|
function E(a, e, c) {
|
|
61067
|
-
N(a, e, c),
|
|
61067
|
+
N(a, e, c), p(a, e, c, e.type);
|
|
61068
61068
|
}
|
|
61069
61069
|
l(E, "renderField");
|
|
61070
61070
|
function N(a, e, c) {
|
|
@@ -61082,7 +61082,7 @@ l(h, "renderDirective");
|
|
|
61082
61082
|
function T(a, e, c) {
|
|
61083
61083
|
var n;
|
|
61084
61084
|
const r = ((n = e.argDef) === null || n === void 0 ? void 0 : n.name) || "";
|
|
61085
|
-
t(a, r, "arg-name", c, m.getArgumentReference(e)),
|
|
61085
|
+
t(a, r, "arg-name", c, m.getArgumentReference(e)), p(a, e, c, e.inputType);
|
|
61086
61086
|
}
|
|
61087
61087
|
l(T, "renderArg");
|
|
61088
61088
|
function g(a, e, c) {
|
|
@@ -61091,11 +61091,11 @@ function g(a, e, c) {
|
|
|
61091
61091
|
u(a, e, c, e.inputType), t(a, "."), t(a, r, "enum-value", c, m.getEnumValueReference(e));
|
|
61092
61092
|
}
|
|
61093
61093
|
l(g, "renderEnumValue");
|
|
61094
|
-
function
|
|
61094
|
+
function p(a, e, c, n) {
|
|
61095
61095
|
const r = document.createElement("span");
|
|
61096
61096
|
r.className = "type-name-pill", n instanceof s.GraphQLNonNull ? (u(r, e, c, n.ofType), t(r, "!")) : n instanceof s.GraphQLList ? (t(r, "["), u(r, e, c, n.ofType), t(r, "]")) : t(r, (n == null ? void 0 : n.name) || "", "type-name", c, m.getTypeReference(e, n)), a.append(r);
|
|
61097
61097
|
}
|
|
61098
|
-
l(
|
|
61098
|
+
l(p, "renderTypeAnnotation");
|
|
61099
61099
|
function u(a, e, c, n) {
|
|
61100
61100
|
n instanceof s.GraphQLNonNull ? (u(a, e, c, n.ofType), t(a, "!")) : n instanceof s.GraphQLList ? (t(a, "["), u(a, e, c, n.ofType), t(a, "]")) : t(a, (n == null ? void 0 : n.name) || "", "type-name", c, m.getTypeReference(e, n));
|
|
61101
61101
|
}
|
|
@@ -61134,8 +61134,8 @@ function t(a, e) {
|
|
|
61134
61134
|
onClick: i
|
|
61135
61135
|
} = n;
|
|
61136
61136
|
let d;
|
|
61137
|
-
i ? (d = document.createElement("a"), d.href = "javascript:void 0", d.addEventListener("click",
|
|
61138
|
-
i(r,
|
|
61137
|
+
i ? (d = document.createElement("a"), d.href = "javascript:void 0", d.addEventListener("click", f => {
|
|
61138
|
+
f.preventDefault(), i(r, f);
|
|
61139
61139
|
})) : d = document.createElement("span"), d.className = c, d.append(document.createTextNode(e)), a.append(d);
|
|
61140
61140
|
} else a.append(document.createTextNode(e));
|
|
61141
61141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foal/graphiql",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "GraphiQL integration for FoalTS",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"lib/"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@foal/core": "^4.
|
|
43
|
+
"@foal/core": "^4.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/mocha": "10.0.
|
|
46
|
+
"@types/mocha": "10.0.7",
|
|
47
47
|
"@types/node": "18.18.6",
|
|
48
48
|
"graphiql": "~3.1.1",
|
|
49
|
-
"mocha": "~10.
|
|
49
|
+
"mocha": "~10.7.2",
|
|
50
50
|
"react": "~18.2.0",
|
|
51
51
|
"react-dom": "~18.2.0",
|
|
52
52
|
"rimraf": "~5.0.5",
|
|
53
53
|
"ts-node": "~10.9.2",
|
|
54
54
|
"typescript": "~4.9.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "076e40b6fec52ccddbd47165002cf8b65fad5b36"
|
|
57
57
|
}
|