@instantdb/components 0.22.89-experimental.drewh-require-app-and-admin.20279445710.1 → 0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.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/.turbo/turbo-build.log +5 -5
- package/app/App.tsx +4 -2
- package/dist/components/explorer/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +143 -148
- package/package.json +6 -6
- package/src/components/explorer/index.tsx +0 -8
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-use-env-for-explorer-demo.20280152775.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",
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"swr": "^2.2.4",
|
|
93
93
|
"tailwind-merge": "^2.2.1",
|
|
94
94
|
"uuid": "^11.1.0",
|
|
95
|
-
"@instantdb/core": "0.22.89-experimental.drewh-
|
|
96
|
-
"@instantdb/
|
|
97
|
-
"@instantdb/
|
|
98
|
-
"@instantdb/
|
|
99
|
-
"@instantdb/
|
|
95
|
+
"@instantdb/core": "0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1",
|
|
96
|
+
"@instantdb/version": "0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1",
|
|
97
|
+
"@instantdb/react": "0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1",
|
|
98
|
+
"@instantdb/admin": "0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1",
|
|
99
|
+
"@instantdb/platform": "0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1"
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
102
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -120,20 +120,12 @@ export const Explorer = (_props: WithOptional<ExplorerProps>) => {
|
|
|
120
120
|
const [_explorerState, _setExplorerState] = useState<ExplorerNav | null>(
|
|
121
121
|
null,
|
|
122
122
|
);
|
|
123
|
-
|
|
124
123
|
const props: WithDefaults<ExplorerProps> = fillPropsWithDefaults(
|
|
125
124
|
_props,
|
|
126
125
|
_explorerState,
|
|
127
126
|
_setExplorerState,
|
|
128
127
|
);
|
|
129
128
|
|
|
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
|
-
|
|
137
129
|
// inside the component avoid setting explorer state directly
|
|
138
130
|
// if change could be useful for history
|
|
139
131
|
const { explorerState, setExplorerState } = props;
|