@instantdb/components 0.22.89-experimental.drewh-dialog-titles.20280021373.1 → 0.22.89-experimental.drewh-ssr.20280366757.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.
package/dist/index.js
CHANGED
|
@@ -4694,7 +4694,12 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4694
4694
|
e,
|
|
4695
4695
|
t,
|
|
4696
4696
|
a
|
|
4697
|
-
)
|
|
4697
|
+
);
|
|
4698
|
+
if (!n.adminToken)
|
|
4699
|
+
throw new Error("adminToken is required for explorer");
|
|
4700
|
+
if (!n.appId)
|
|
4701
|
+
throw new Error("appId is required for explorer");
|
|
4702
|
+
const { explorerState: o, setExplorerState: l } = n, [i, g] = C([]), c = at(
|
|
4698
4703
|
(w, v = !1) => {
|
|
4699
4704
|
g((k) => !v && o ? [...k, o] : k), l(w);
|
|
4700
4705
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instantdb/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.22.89-experimental.drewh-
|
|
4
|
+
"version": "0.22.89-experimental.drewh-ssr.20280366757.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Instant's UI components",
|
|
7
7
|
"homepage": "https://github.com/instantdb/instant/tree/main/client/packages/components",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vitest": "^1.6.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"react": "^18.3.1",
|
|
58
|
-
"react-dom": "^18.3.1"
|
|
57
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
58
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/parser": "^8.0.0-beta.0",
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
"swr": "^2.2.4",
|
|
94
94
|
"tailwind-merge": "^2.2.1",
|
|
95
95
|
"uuid": "^11.1.0",
|
|
96
|
-
"@instantdb/
|
|
97
|
-
"@instantdb/
|
|
98
|
-
"@instantdb/react": "0.22.89-experimental.drewh-
|
|
99
|
-
"@instantdb/
|
|
100
|
-
"@instantdb/version": "0.22.89-experimental.drewh-
|
|
96
|
+
"@instantdb/admin": "0.22.89-experimental.drewh-ssr.20280366757.1",
|
|
97
|
+
"@instantdb/core": "0.22.89-experimental.drewh-ssr.20280366757.1",
|
|
98
|
+
"@instantdb/react": "0.22.89-experimental.drewh-ssr.20280366757.1",
|
|
99
|
+
"@instantdb/platform": "0.22.89-experimental.drewh-ssr.20280366757.1",
|
|
100
|
+
"@instantdb/version": "0.22.89-experimental.drewh-ssr.20280366757.1"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
103
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -120,12 +120,20 @@ export const Explorer = (_props: WithOptional<ExplorerProps>) => {
|
|
|
120
120
|
const [_explorerState, _setExplorerState] = useState<ExplorerNav | null>(
|
|
121
121
|
null,
|
|
122
122
|
);
|
|
123
|
+
|
|
123
124
|
const props: WithDefaults<ExplorerProps> = fillPropsWithDefaults(
|
|
124
125
|
_props,
|
|
125
126
|
_explorerState,
|
|
126
127
|
_setExplorerState,
|
|
127
128
|
);
|
|
128
129
|
|
|
130
|
+
if (!props.adminToken) {
|
|
131
|
+
throw new Error('adminToken is required for explorer');
|
|
132
|
+
}
|
|
133
|
+
if (!props.appId) {
|
|
134
|
+
throw new Error('appId is required for explorer');
|
|
135
|
+
}
|
|
136
|
+
|
|
129
137
|
// inside the component avoid setting explorer state directly
|
|
130
138
|
// if change could be useful for history
|
|
131
139
|
const { explorerState, setExplorerState } = props;
|