@graffy/explore 0.16.10-alpha.2 → 0.16.11
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/index.cjs +4 -4
- package/index.mjs +4 -4
- package/package.json +6 -6
package/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const GraffyClient = require("@graffy/client");
|
|
3
|
+
const common = require("@graffy/common");
|
|
3
4
|
const Graffy = require("@graffy/core");
|
|
4
5
|
const GraffyFill = require("@graffy/fill");
|
|
5
|
-
const GraffyClient = require("@graffy/client");
|
|
6
6
|
const react = require("@graffy/react");
|
|
7
|
-
const
|
|
7
|
+
const React = require("react");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
10
|
if (e) {
|
|
@@ -146,7 +146,7 @@ function ExploreContainer({
|
|
|
146
146
|
setStore(store2);
|
|
147
147
|
window.store = store2;
|
|
148
148
|
window.graffy = common__namespace;
|
|
149
|
-
}, [baseUrl]);
|
|
149
|
+
}, [baseUrl, getOptions]);
|
|
150
150
|
return store ? /* @__PURE__ */ React.createElement(react.GraffyProvider, { store }, /* @__PURE__ */ React.createElement(Explore, { ...options })) : null;
|
|
151
151
|
}
|
|
152
152
|
module.exports = ExploreContainer;
|
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import GraffyClient from "@graffy/client";
|
|
2
|
+
import * as common from "@graffy/common";
|
|
2
3
|
import Graffy from "@graffy/core";
|
|
3
4
|
import GraffyFill from "@graffy/fill";
|
|
4
|
-
import GraffyClient from "@graffy/client";
|
|
5
5
|
import { useStore, Query, GraffyProvider } from "@graffy/react";
|
|
6
|
-
import
|
|
6
|
+
import React, { useState, useCallback, useEffect } from "react";
|
|
7
7
|
function Result({ result, loading, error }) {
|
|
8
8
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, loading ? /* @__PURE__ */ React.createElement("div", { className: "status" }, "Loading...") : error ? /* @__PURE__ */ React.createElement("div", { className: "error" }, error.toString()) : result ? /* @__PURE__ */ React.createElement("pre", null, JSON.stringify(result, null, 2)) : /* @__PURE__ */ React.createElement("div", { className: "status" }, "No results"), /* @__PURE__ */ React.createElement("style", { jsx: true }, `
|
|
9
9
|
.error {
|
|
@@ -128,7 +128,7 @@ function ExploreContainer({
|
|
|
128
128
|
setStore(store2);
|
|
129
129
|
window.store = store2;
|
|
130
130
|
window.graffy = common;
|
|
131
|
-
}, [baseUrl]);
|
|
131
|
+
}, [baseUrl, getOptions]);
|
|
132
132
|
return store ? /* @__PURE__ */ React.createElement(GraffyProvider, { store }, /* @__PURE__ */ React.createElement(Explore, { ...options })) : null;
|
|
133
133
|
}
|
|
134
134
|
export {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/explore",
|
|
3
3
|
"description": "Graffy client library for the browser.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.16.
|
|
5
|
+
"version": "0.16.11",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/
|
|
20
|
-
"@graffy/
|
|
21
|
-
"@graffy/
|
|
22
|
-
"@graffy/
|
|
23
|
-
"@graffy/
|
|
19
|
+
"@graffy/client": "0.16.11",
|
|
20
|
+
"@graffy/common": "0.16.11",
|
|
21
|
+
"@graffy/core": "0.16.11",
|
|
22
|
+
"@graffy/fill": "0.16.11",
|
|
23
|
+
"@graffy/react": "0.16.11"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|