@instantdb/components 0.22.89-experimental.drewh-dialog-titles.20280021373.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/inner-explorer.d.ts.map +1 -1
- package/dist/components/explorer/view-settings.d.ts.map +1 -1
- package/dist/components/ui.d.ts +2 -3
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +796 -807
- package/package.json +6 -7
- package/src/components/explorer/explorer-layout.tsx +2 -2
- package/src/components/explorer/inner-explorer.tsx +0 -4
- package/src/components/explorer/view-settings.tsx +0 -1
- package/src/components/ui.tsx +0 -9
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",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"@radix-ui/react-switch": "^1.2.6",
|
|
75
75
|
"@radix-ui/react-toggle-group": "^1.0.4",
|
|
76
76
|
"@radix-ui/react-tooltip": "^1.1.7",
|
|
77
|
-
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
78
77
|
"@tanstack/react-table": "^8.21.3",
|
|
79
78
|
"clsx": "^2.1.0",
|
|
80
79
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -93,11 +92,11 @@
|
|
|
93
92
|
"swr": "^2.2.4",
|
|
94
93
|
"tailwind-merge": "^2.2.1",
|
|
95
94
|
"uuid": "^11.1.0",
|
|
96
|
-
"@instantdb/
|
|
97
|
-
"@instantdb/
|
|
98
|
-
"@instantdb/react": "0.22.89-experimental.drewh-
|
|
99
|
-
"@instantdb/
|
|
100
|
-
"@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"
|
|
101
100
|
},
|
|
102
101
|
"scripts": {
|
|
103
102
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -55,10 +55,10 @@ export const ExplorerLayout = ({
|
|
|
55
55
|
props.className,
|
|
56
56
|
)}
|
|
57
57
|
>
|
|
58
|
-
<Dialog
|
|
58
|
+
<Dialog {...recentlyDeletedNsDialog}>
|
|
59
59
|
<RecentlyDeletedNamespaces appId={props.appId} db={db} />
|
|
60
60
|
</Dialog>
|
|
61
|
-
<Dialog
|
|
61
|
+
<Dialog {...newNsDialog}>
|
|
62
62
|
<NewNamespaceDialog
|
|
63
63
|
db={db}
|
|
64
64
|
onClose={(p) => {
|
|
@@ -830,7 +830,6 @@ export const InnerExplorer: React.FC<{
|
|
|
830
830
|
return (
|
|
831
831
|
<>
|
|
832
832
|
<Dialog
|
|
833
|
-
title="Delete Rows"
|
|
834
833
|
open={deleteDataConfirmationOpen}
|
|
835
834
|
onClose={() => setDeleteDataConfirmationOpen(false)}
|
|
836
835
|
>
|
|
@@ -901,7 +900,6 @@ export const InnerExplorer: React.FC<{
|
|
|
901
900
|
) : null}
|
|
902
901
|
</Dialog>
|
|
903
902
|
<Dialog
|
|
904
|
-
title="Edit Row"
|
|
905
903
|
open={addItemDialogOpen}
|
|
906
904
|
onClose={() => setAddItemDialogOpen(false)}
|
|
907
905
|
>
|
|
@@ -915,7 +913,6 @@ export const InnerExplorer: React.FC<{
|
|
|
915
913
|
) : null}
|
|
916
914
|
</Dialog>
|
|
917
915
|
<Dialog
|
|
918
|
-
title="Edit Row"
|
|
919
916
|
open={!!selectedEditableItem}
|
|
920
917
|
onClose={() => setEditableRowId(null)}
|
|
921
918
|
>
|
|
@@ -929,7 +926,6 @@ export const InnerExplorer: React.FC<{
|
|
|
929
926
|
) : null}
|
|
930
927
|
</Dialog>
|
|
931
928
|
<Dialog
|
|
932
|
-
title="Edit Namespace"
|
|
933
929
|
stopFocusPropagation={true}
|
|
934
930
|
open={Boolean(editNs)}
|
|
935
931
|
onClose={() => setEditNs(null)}
|
package/src/components/ui.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Toaster, toast } from 'sonner';
|
|
3
|
-
import { VisuallyHidden } from '@radix-ui/react-visually-hidden';
|
|
4
3
|
import { Editor, Monaco, OnMount } from '@monaco-editor/react';
|
|
5
4
|
import type { ClassValue } from 'clsx';
|
|
6
5
|
import clsx from 'clsx';
|
|
@@ -636,7 +635,6 @@ function DialogContent({
|
|
|
636
635
|
className,
|
|
637
636
|
children,
|
|
638
637
|
showCloseButton = false,
|
|
639
|
-
title,
|
|
640
638
|
...props
|
|
641
639
|
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
642
640
|
showCloseButton?: boolean;
|
|
@@ -656,9 +654,6 @@ function DialogContent({
|
|
|
656
654
|
)}
|
|
657
655
|
{...props}
|
|
658
656
|
>
|
|
659
|
-
<VisuallyHidden>
|
|
660
|
-
<DialogTitle>{title}</DialogTitle>
|
|
661
|
-
</VisuallyHidden>
|
|
662
657
|
{children}
|
|
663
658
|
{showCloseButton && (
|
|
664
659
|
<DialogPrimitive.Close
|
|
@@ -682,13 +677,11 @@ export function Dialog({
|
|
|
682
677
|
children,
|
|
683
678
|
onClose,
|
|
684
679
|
className,
|
|
685
|
-
title,
|
|
686
680
|
stopFocusPropagation = false,
|
|
687
681
|
hideCloseButton = false,
|
|
688
682
|
}: {
|
|
689
683
|
open: boolean;
|
|
690
684
|
children: React.ReactNode;
|
|
691
|
-
title: string;
|
|
692
685
|
onClose: () => void;
|
|
693
686
|
className?: string;
|
|
694
687
|
stopFocusPropagation?: boolean;
|
|
@@ -704,7 +697,6 @@ export function Dialog({
|
|
|
704
697
|
open={open}
|
|
705
698
|
>
|
|
706
699
|
<DialogContent
|
|
707
|
-
title={title}
|
|
708
700
|
onFocusCapture={(e) => {
|
|
709
701
|
if (stopFocusPropagation) {
|
|
710
702
|
e.stopPropagation();
|
|
@@ -1541,7 +1533,6 @@ export function Fence({
|
|
|
1541
1533
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
1542
1534
|
import { rosePineDawnTheme } from './rosePineDawnTheme';
|
|
1543
1535
|
import { useShadowRoot, useShadowDarkMode } from './StyleMe';
|
|
1544
|
-
import { DialogTitle } from '@radix-ui/react-dialog';
|
|
1545
1536
|
function Switch({
|
|
1546
1537
|
className,
|
|
1547
1538
|
...props
|