@instantdb/components 0.0.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/.env +2 -0
- package/.turbo/turbo-build.log +18 -0
- package/README.md +78 -0
- package/app/App.css +38 -0
- package/app/App.tsx +61 -0
- package/app/index.css +18 -0
- package/app/main.tsx +10 -0
- package/dist/components/StyleMe.d.ts +15 -0
- package/dist/components/StyleMe.d.ts.map +1 -0
- package/dist/components/error-boundary.d.ts +17 -0
- package/dist/components/error-boundary.d.ts.map +1 -0
- package/dist/components/explorer/edit-namespace-dialog.d.ts +14 -0
- package/dist/components/explorer/edit-namespace-dialog.d.ts.map +1 -0
- package/dist/components/explorer/edit-row-dialog.d.ts +10 -0
- package/dist/components/explorer/edit-row-dialog.d.ts.map +1 -0
- package/dist/components/explorer/expandable-deleted-attr.d.ts +15 -0
- package/dist/components/explorer/expandable-deleted-attr.d.ts.map +1 -0
- package/dist/components/explorer/explorer-layout.d.ts +8 -0
- package/dist/components/explorer/explorer-layout.d.ts.map +1 -0
- package/dist/components/explorer/index.d.ts +44 -0
- package/dist/components/explorer/index.d.ts.map +1 -0
- package/dist/components/explorer/inner-explorer.d.ts +16 -0
- package/dist/components/explorer/inner-explorer.d.ts.map +1 -0
- package/dist/components/explorer/new-namespace-dialog.d.ts +10 -0
- package/dist/components/explorer/new-namespace-dialog.d.ts.map +1 -0
- package/dist/components/explorer/query-inspector.d.ts +11 -0
- package/dist/components/explorer/query-inspector.d.ts.map +1 -0
- package/dist/components/explorer/recently-deleted.d.ts +36 -0
- package/dist/components/explorer/recently-deleted.d.ts.map +1 -0
- package/dist/components/explorer/search-input.d.ts +9 -0
- package/dist/components/explorer/search-input.d.ts.map +1 -0
- package/dist/components/explorer/table-components.d.ts +16 -0
- package/dist/components/explorer/table-components.d.ts.map +1 -0
- package/dist/components/explorer/view-settings.d.ts +10 -0
- package/dist/components/explorer/view-settings.d.ts.map +1 -0
- package/dist/components/rosePineDawnTheme.d.ts +13 -0
- package/dist/components/rosePineDawnTheme.d.ts.map +1 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/toast.d.ts +4 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/ui.d.ts +336 -0
- package/dist/components/ui.d.ts.map +1 -0
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/hooks/explorer.d.ts +29 -0
- package/dist/hooks/explorer.d.ts.map +1 -0
- package/dist/hooks/useAttrNotes.d.ts +10 -0
- package/dist/hooks/useAttrNotes.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useColumnVisibility.d.ts +12 -0
- package/dist/hooks/useColumnVisibility.d.ts.map +1 -0
- package/dist/hooks/useEditBlobConstraints.d.ts +32 -0
- package/dist/hooks/useEditBlobConstraints.d.ts.map +1 -0
- package/dist/hooks/useExplorerHistory.d.ts +1 -0
- package/dist/hooks/useExplorerHistory.d.ts.map +1 -0
- package/dist/hooks/useIsOverflow.d.ts +6 -0
- package/dist/hooks/useIsOverflow.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage.d.ts +2 -0
- package/dist/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useMonacoJSONSchema.d.ts +3 -0
- package/dist/hooks/useMonacoJSONSchema.d.ts.map +1 -0
- package/dist/hooks/useStableDB.d.ts +7 -0
- package/dist/hooks/useStableDB.d.ts.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9270 -0
- package/dist/schema.d.ts +5 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +241 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/indexingJobs.d.ts +24 -0
- package/dist/utils/indexingJobs.d.ts.map +1 -0
- package/dist/utils/parsePermsJSON.d.ts +11 -0
- package/dist/utils/parsePermsJSON.d.ts.map +1 -0
- package/dist/utils/renames.d.ts +3 -0
- package/dist/utils/renames.d.ts.map +1 -0
- package/dist/utils/tableWidthSize.d.ts +9 -0
- package/dist/utils/tableWidthSize.d.ts.map +1 -0
- package/index.html +13 -0
- package/package.json +109 -0
- package/src/components/StyleMe.tsx +97 -0
- package/src/components/error-boundary.tsx +76 -0
- package/src/components/explorer/edit-namespace-dialog.tsx +1886 -0
- package/src/components/explorer/edit-row-dialog.tsx +1151 -0
- package/src/components/explorer/expandable-deleted-attr.tsx +170 -0
- package/src/components/explorer/explorer-layout.tsx +156 -0
- package/src/components/explorer/index.tsx +217 -0
- package/src/components/explorer/inner-explorer.tsx +1341 -0
- package/src/components/explorer/new-namespace-dialog.tsx +54 -0
- package/src/components/explorer/query-inspector.tsx +394 -0
- package/src/components/explorer/recently-deleted.tsx +344 -0
- package/src/components/explorer/search-input.tsx +358 -0
- package/src/components/explorer/table-components.tsx +341 -0
- package/src/components/explorer/view-settings.tsx +75 -0
- package/src/components/rosePineDawnTheme.ts +45 -0
- package/src/components/select.tsx +198 -0
- package/src/components/toast.tsx +18 -0
- package/src/components/ui.tsx +1561 -0
- package/src/config.ts +61 -0
- package/src/hooks/explorer.tsx +125 -0
- package/src/hooks/useAttrNotes.ts +27 -0
- package/src/hooks/useClickOutside.ts +23 -0
- package/src/hooks/useColumnVisibility.ts +39 -0
- package/src/hooks/useEditBlobConstraints.ts +185 -0
- package/src/hooks/useExplorerHistory.ts +0 -0
- package/src/hooks/useIsOverflow.ts +24 -0
- package/src/hooks/useLocalStorage.ts +51 -0
- package/src/hooks/useMonacoJSONSchema.ts +41 -0
- package/src/hooks/useStableDB.ts +30 -0
- package/src/index.tsx +8 -0
- package/src/schema.ts +285 -0
- package/src/style.css +5 -0
- package/src/types.ts +359 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/indexingJobs.ts +126 -0
- package/src/utils/parsePermsJSON.ts +35 -0
- package/src/utils/renames.ts +42 -0
- package/src/utils/tableWidthSize.ts +62 -0
- package/tailwind.config.cjs +42 -0
- package/tsconfig.json +22 -0
- package/vite-env.d.ts +1 -0
- package/vite.config.ts +49 -0
package/.env
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> @instantdb/components@0.0.0 build /Users/drew/programs/instant/client/packages/components
|
|
3
|
+
> vite build
|
|
4
|
+
|
|
5
|
+
vite v5.4.14 building for production...
|
|
6
|
+
transforming...
|
|
7
|
+
✓ 40 modules transformed.
|
|
8
|
+
rendering chunks...
|
|
9
|
+
|
|
10
|
+
[unplugin:dts] Start generate declaration files...
|
|
11
|
+
computing gzip size...
|
|
12
|
+
dist/style.css 58.51 kB │ gzip: 10.08 kB
|
|
13
|
+
dist/index.js 368.85 kB │ gzip: 90.75 kB
|
|
14
|
+
[unplugin:dts] Declaration files built in 6688ms.
|
|
15
|
+
|
|
16
|
+
dist/style.css 58.51 kB │ gzip: 10.08 kB
|
|
17
|
+
dist/index.cjs 253.31 kB │ gzip: 71.68 kB
|
|
18
|
+
✓ built in 7.25s
|
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# InstantDB Component Library
|
|
2
|
+
|
|
3
|
+
## Using the Explorer component
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import './App.css';
|
|
7
|
+
import { Explorer, Toaster } from '../src/index';
|
|
8
|
+
|
|
9
|
+
function App() {
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<Explorer
|
|
13
|
+
className="h-full"
|
|
14
|
+
useShadowDOM
|
|
15
|
+
darkMode={false}
|
|
16
|
+
appId={import.meta.env.VITE_INSTANT_APP_ID}
|
|
17
|
+
adminToken={import.meta.env.VITE_INSTANT_ADMIN_TOKEN}
|
|
18
|
+
/>
|
|
19
|
+
<Toaster position="top-right" />
|
|
20
|
+
</>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default App;
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
# Styles
|
|
28
|
+
|
|
29
|
+
### In www/
|
|
30
|
+
|
|
31
|
+
The tailwind installation in www/ already scans `./node_modules/@instantdb/components/src/**/*.{js,ts,jsx,tsx,md}'`, so all styles should work out of the box.
|
|
32
|
+
|
|
33
|
+
Most components are rexported in client/www/components/ui.tsx .
|
|
34
|
+
|
|
35
|
+
### In projects that use tailwind
|
|
36
|
+
|
|
37
|
+
Make sure you add `./node_modules/@instantdb/components/src/**/*.{js,ts,jsx,tsx,md}'` to the content field in your tailwind config.
|
|
38
|
+
|
|
39
|
+
### In projects that don't use Tailwind
|
|
40
|
+
|
|
41
|
+
To use the Explorer
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
<Explorer
|
|
45
|
+
className="h-full"
|
|
46
|
+
useShadowDOM // this scopes and applies all styles with a shadow dom and script tag
|
|
47
|
+
darkMode={false}
|
|
48
|
+
apiURI={'http://localhost:8888'}
|
|
49
|
+
websocketURI={'ws://localhost:8888/runtime/session'}
|
|
50
|
+
appId="<your-app-id>"
|
|
51
|
+
adminToken="<your-admin-token>"
|
|
52
|
+
/>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To use other components, you can wrap them in a <StyleMe> tag to mount them into a ShadowDOM.
|
|
56
|
+
However, doing this for most components is not practical so you can also import the styles separately.
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import '@instantdb/components/style.css';
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
In projects that don't use Tailwind it's recommended to just use the Explorer component with ShadowDOM and none of the other components.
|
|
63
|
+
|
|
64
|
+
# Development
|
|
65
|
+
|
|
66
|
+
Running the Vite Demo
|
|
67
|
+
`pnpm run dev:demo`
|
|
68
|
+
|
|
69
|
+
Runs on port 5173
|
|
70
|
+
|
|
71
|
+
## Environment Variables
|
|
72
|
+
|
|
73
|
+
Create a `.env` file in client/packages/components/.env
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
VITE_INSTANT_APP_ID=<your app id>
|
|
77
|
+
VITE_INSTANT_ADMIN_TOKEN=<your app id>
|
|
78
|
+
```
|
package/app/App.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#root {
|
|
2
|
+
}
|
|
3
|
+
|
|
4
|
+
.logo {
|
|
5
|
+
height: 6em;
|
|
6
|
+
padding: 1.5em;
|
|
7
|
+
will-change: filter;
|
|
8
|
+
transition: filter 300ms;
|
|
9
|
+
}
|
|
10
|
+
.logo:hover {
|
|
11
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
|
12
|
+
}
|
|
13
|
+
.logo.react:hover {
|
|
14
|
+
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes logo-spin {
|
|
18
|
+
from {
|
|
19
|
+
transform: rotate(0deg);
|
|
20
|
+
}
|
|
21
|
+
to {
|
|
22
|
+
transform: rotate(360deg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
27
|
+
a:nth-of-type(2) .logo {
|
|
28
|
+
animation: logo-spin infinite 20s linear;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.card {
|
|
33
|
+
padding: 2em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.read-the-docs {
|
|
37
|
+
color: #888;
|
|
38
|
+
}
|
package/app/App.tsx
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import './App.css';
|
|
3
|
+
import { Explorer, Toaster } from '../src/index';
|
|
4
|
+
|
|
5
|
+
function App() {
|
|
6
|
+
const [count, setCount] = useState(0);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<>
|
|
10
|
+
<div
|
|
11
|
+
style={{
|
|
12
|
+
minHeight: '40vh',
|
|
13
|
+
height: '40vh',
|
|
14
|
+
}}
|
|
15
|
+
className="min-h-[30vh] w-full"
|
|
16
|
+
>
|
|
17
|
+
<Explorer
|
|
18
|
+
className="h-full"
|
|
19
|
+
useShadowDOM
|
|
20
|
+
darkMode={false}
|
|
21
|
+
apiURI={'http://localhost:8888'}
|
|
22
|
+
websocketURI={'ws://localhost:8888/runtime/session'}
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
appId={import.meta.env.VITE_INSTANT_APP_ID}
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
adminToken={import.meta.env.VITE_INSTANT_ADMIN_TOKEN}
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
<div
|
|
30
|
+
style={{
|
|
31
|
+
minHeight: '40vh',
|
|
32
|
+
height: '40vh',
|
|
33
|
+
}}
|
|
34
|
+
className="dark min-h-[30vh] w-full"
|
|
35
|
+
>
|
|
36
|
+
<Explorer
|
|
37
|
+
className="h-full"
|
|
38
|
+
useShadowDOM
|
|
39
|
+
darkMode={true}
|
|
40
|
+
apiURI={'http://localhost:8888'}
|
|
41
|
+
websocketURI={'ws://localhost:8888/runtime/session'}
|
|
42
|
+
appId="5696faa0-af6b-4562-ade9-47ffb3b2b87b"
|
|
43
|
+
adminToken="59cb9109-0e5c-4735-8775-4369d0486d0b"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
<h1>Vite + React</h1>
|
|
47
|
+
<div className="bg-blue-500">this should not be blue</div>
|
|
48
|
+
<div className="card">
|
|
49
|
+
<button onClick={() => setCount((count) => count + 1)}>
|
|
50
|
+
count is {count}
|
|
51
|
+
</button>
|
|
52
|
+
<p>
|
|
53
|
+
Edit <code>src/App.tsx</code> and save to test HMR
|
|
54
|
+
</p>
|
|
55
|
+
</div>
|
|
56
|
+
<Toaster position="top-right" />
|
|
57
|
+
</>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default App;
|
package/app/index.css
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
button {
|
|
2
|
+
border-radius: 8px;
|
|
3
|
+
border: 1px solid transparent;
|
|
4
|
+
padding: 0.6em 1.2em;
|
|
5
|
+
font-size: 1em;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
background-color: red;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: border-color 0.25s;
|
|
11
|
+
}
|
|
12
|
+
button:hover {
|
|
13
|
+
border-color: #646cff;
|
|
14
|
+
}
|
|
15
|
+
button:focus,
|
|
16
|
+
button:focus-visible {
|
|
17
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
18
|
+
}
|
package/app/main.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the shadow root container element for portaling components.
|
|
4
|
+
* This is the container div inside the shadow root that has the dark class applied.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useShadowRoot(): HTMLDivElement | null;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the dark mode state from the shadow root context.
|
|
9
|
+
* Used by portaled components to apply dark mode styles.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useShadowDarkMode(): boolean;
|
|
12
|
+
export declare const StyleMe: ({ children }: {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=StyleMe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleMe.d.ts","sourceRoot":"","sources":["../../src/components/StyleMe.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B;;;GAGG;AACH,wBAAgB,aAAa,IAAI,cAAc,GAAG,IAAI,CAErD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED,eAAO,MAAM,OAAO,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAoD5D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React, Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface State {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
}
|
|
9
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
10
|
+
state: State;
|
|
11
|
+
static getDerivedStateFromError(error: Error): State;
|
|
12
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
13
|
+
private handleRetry;
|
|
14
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
15
|
+
}
|
|
16
|
+
export default ErrorBoundary;
|
|
17
|
+
//# sourceMappingURL=error-boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../src/components/error-boundary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG/D,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,cAAM,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAC1C,KAAK,EAAE,KAAK,CAGjB;WAEY,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAKpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAI3D,OAAO,CAAC,WAAW,CAEjB;IAEK,MAAM;CAwCd;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InstantReactWebDatabase } from '@instantdb/react';
|
|
3
|
+
import { SchemaNamespace } from '../../types';
|
|
4
|
+
export declare function EditNamespaceDialog({ db, namespace, namespaces, onClose, isSystemCatalogNs, }: {
|
|
5
|
+
db: InstantReactWebDatabase<any>;
|
|
6
|
+
namespace: SchemaNamespace;
|
|
7
|
+
namespaces: SchemaNamespace[];
|
|
8
|
+
onClose: (p?: {
|
|
9
|
+
ok: boolean;
|
|
10
|
+
}) => void;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
isSystemCatalogNs: boolean;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=edit-namespace-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-namespace-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/edit-namespace-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAsC3D,OAAO,EAML,eAAe,EAChB,MAAM,YAAY,CAAC;AAkBpB,wBAAgB,mBAAmB,CAAC,EAClC,EAAE,EACF,SAAS,EACT,UAAU,EACV,OAAO,EACP,iBAAiB,GAClB,EAAE;IACD,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE;QAAE,EAAE,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,qBAoOA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InstantReactWebDatabase } from '@instantdb/react';
|
|
3
|
+
import { SchemaNamespace } from '../../types';
|
|
4
|
+
export declare function EditRowDialog({ db, namespace, item, onClose, }: {
|
|
5
|
+
db: InstantReactWebDatabase<any>;
|
|
6
|
+
namespace: SchemaNamespace;
|
|
7
|
+
item: Record<string, any>;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=edit-row-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-row-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/edit-row-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,uBAAuB,EAAM,MAAM,kBAAkB,CAAC;AAkBnE,OAAO,EAAc,eAAe,EAAsB,MAAM,YAAY,CAAC;AAyjB7E,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,SAAS,EACT,IAAI,EACJ,OAAO,GACR,EAAE;IACD,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,SAAS,EAAE,eAAe,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,qBAwiBA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DBAttr } from '../../types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type SoftDeletedAttr = DBAttr & {
|
|
4
|
+
'deletion-marked-at': string;
|
|
5
|
+
};
|
|
6
|
+
interface ExpandableDeletedAttrProps {
|
|
7
|
+
attr: SoftDeletedAttr;
|
|
8
|
+
gracePeriodDays: number;
|
|
9
|
+
onRestore: (attrId: string) => void;
|
|
10
|
+
isExpanded: boolean;
|
|
11
|
+
setIsExpanded: (state: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ExpandableDeletedAttr: React.FC<ExpandableDeletedAttrProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=expandable-deleted-attr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandable-deleted-attr.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/expandable-deleted-attr.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,EAGP,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,KAAK,eAAe,GAAG,MAAM,GAAG;IAC9B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,UAAU,0BAA0B;IAClC,IAAI,EAAE,eAAe,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA+ItE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SchemaNamespace } from '../../types';
|
|
3
|
+
import { useStableDB } from '../../hooks/useStableDB';
|
|
4
|
+
export declare const ExplorerLayout: ({ namespaces, db, }: {
|
|
5
|
+
namespaces: SchemaNamespace[];
|
|
6
|
+
db: ReturnType<typeof useStableDB>;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=explorer-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explorer-layout.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/explorer-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAWrD,eAAO,MAAM,cAAc,GAAI,qBAG5B;IACD,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,EAAE,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;CACpC,sBAkIA,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { HasDefault, WithDefaults, WithOptional } from '../../types';
|
|
3
|
+
interface ExplorerProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
adminToken: string;
|
|
6
|
+
apiURI: HasDefault<string>;
|
|
7
|
+
websocketURI: HasDefault<string>;
|
|
8
|
+
darkMode: HasDefault<boolean>;
|
|
9
|
+
className?: string;
|
|
10
|
+
explorerState: HasDefault<ExplorerNav | null | undefined>;
|
|
11
|
+
setExplorerState: HasDefault<React.Dispatch<React.SetStateAction<ExplorerNav | null>>>;
|
|
12
|
+
useShadowDOM: HasDefault<boolean>;
|
|
13
|
+
}
|
|
14
|
+
export declare const useExplorerProps: () => WithDefaults<ExplorerProps>;
|
|
15
|
+
export declare const useExplorerState: () => {
|
|
16
|
+
explorerState: {
|
|
17
|
+
namespace: string;
|
|
18
|
+
where?: [string, any] | undefined;
|
|
19
|
+
sortAttr?: string | undefined;
|
|
20
|
+
sortAsc?: boolean | undefined;
|
|
21
|
+
filters?: [string, SearchFilterOp, any][] | undefined;
|
|
22
|
+
limit?: number | undefined;
|
|
23
|
+
page?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
history: {
|
|
26
|
+
push: (filter: React.SetStateAction<ExplorerNav>, replace?: boolean) => void;
|
|
27
|
+
pop: () => void;
|
|
28
|
+
items: ExplorerNav[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type SearchFilterOp = '=' | '$ilike' | '$like' | '$gt' | '$lt' | '$isNull';
|
|
32
|
+
export type SearchFilter = [string, SearchFilterOp, any];
|
|
33
|
+
export interface ExplorerNav {
|
|
34
|
+
namespace: string;
|
|
35
|
+
where?: [string, any];
|
|
36
|
+
sortAttr?: string;
|
|
37
|
+
sortAsc?: boolean;
|
|
38
|
+
filters?: SearchFilter[];
|
|
39
|
+
limit?: number;
|
|
40
|
+
page?: number;
|
|
41
|
+
}
|
|
42
|
+
export declare const Explorer: (_props: WithOptional<ExplorerProps>) => React.JSX.Element;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAOzE,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACjC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAE9B,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,aAAa,EAAE,UAAU,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC1D,gBAAgB,EAAE,UAAU,CAC1B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CACzD,CAAC;IACF,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CACnC;AAcD,eAAO,MAAM,gBAAgB,QAAO,YAAY,CAAC,aAAa,CAQ7D,CAAC;AAEF,eAAO,MAAM,gBAAgB;;mBAgDhB,MAAM;gBACT,CAAC,MAAM,EAAE,GAAG,CAAC;mBACV,MAAM;kBACP,OAAO;;gBAET,MAAM;eACP,MAAM;;;cAzEL,CACJ,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACzC,OAAO,CAAC,EAAE,OAAO,KACd,IAAI;aACJ,MAAM,IAAI;eACR,WAAW,EAAE;;CAsBvB,CAAC;AA6BF,MAAM,MAAM,cAAc,GACtB,GAAG,GACH,QAAQ,GACR,OAAO,GACP,KAAK,GACL,KAAK,GACL,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ,GAAI,QAAQ,YAAY,CAAC,aAAa,CAAC,sBAmG3D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InstantReactAbstractDatabase } from '@instantdb/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { SchemaAttr, SchemaNamespace } from '../../types';
|
|
4
|
+
export type TableColMeta = {
|
|
5
|
+
sortable?: boolean;
|
|
6
|
+
disablePadding: boolean;
|
|
7
|
+
isLink?: boolean;
|
|
8
|
+
attr: SchemaAttr;
|
|
9
|
+
copyable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const InnerExplorer: React.FC<{
|
|
12
|
+
db: InstantReactAbstractDatabase<any, any>;
|
|
13
|
+
namespaces: SchemaNamespace[];
|
|
14
|
+
}>;
|
|
15
|
+
export declare function jsonFetch(input: RequestInfo, init: RequestInit | undefined): Promise<any>;
|
|
16
|
+
//# sourceMappingURL=inner-explorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inner-explorer.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/inner-explorer.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAehE,OAAO,KAMN,MAAM,OAAO,CAAC;AAyBf,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAazD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,EAAE,EAAE,4BAA4B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAopCA,CAAC;AAsBF,wBAAsB,SAAS,CAC7B,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,WAAW,GAAG,SAAS,GAC5B,OAAO,CAAC,GAAG,CAAC,CAMd"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InstantReactWebDatabase } from '@instantdb/react';
|
|
3
|
+
export declare function NewNamespaceDialog({ db, onClose, }: {
|
|
4
|
+
db: InstantReactWebDatabase<any>;
|
|
5
|
+
onClose: (p?: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=new-namespace-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-namespace-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/new-namespace-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAK/D,wBAAgB,kBAAkB,CAAC,EACjC,EAAE,EACF,OAAO,GACR,EAAE;IACD,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACrD,qBAyCA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InstantReactWebDatabase } from '@instantdb/react';
|
|
3
|
+
import { DBAttr, SchemaNamespace } from '../../types';
|
|
4
|
+
export declare function QueryInspector({ className, appId, db: baseDb, namespaces, attrs, }: {
|
|
5
|
+
className?: string;
|
|
6
|
+
appId: string;
|
|
7
|
+
db: InstantReactWebDatabase<any>;
|
|
8
|
+
namespaces: SchemaNamespace[] | null;
|
|
9
|
+
attrs: Record<string, DBAttr> | null;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=query-inspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-inspector.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/query-inspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAQ,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmErD,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,EAAE,EAAE,MAAM,EACV,UAAU,EACV,KAAK,GACN,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,UAAU,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CACtC,qBAgTA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SchemaNamespace, DBAttr } from '../../types';
|
|
3
|
+
import { InstantReactWebDatabase } from '@instantdb/react';
|
|
4
|
+
import { useAttrNotes } from '../../hooks/useAttrNotes';
|
|
5
|
+
export type SoftDeletedAttr = Omit<DBAttr, 'metadata'> & {
|
|
6
|
+
'deletion-marked-at': string;
|
|
7
|
+
metadata: {
|
|
8
|
+
soft_delete_snapshot?: {
|
|
9
|
+
is_indexed: boolean;
|
|
10
|
+
is_required: boolean;
|
|
11
|
+
id_attr_id: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type DeletedNamespace = {
|
|
16
|
+
idAttr: SoftDeletedAttr;
|
|
17
|
+
remainingCols: SoftDeletedAttr[];
|
|
18
|
+
};
|
|
19
|
+
export declare const useRecentlyDeletedAttrs: (appId: string) => import('swr').SWRResponse<{
|
|
20
|
+
attrs: SoftDeletedAttr[];
|
|
21
|
+
'grace-period-days': number;
|
|
22
|
+
}, any, any>;
|
|
23
|
+
export declare const useRecentlyDeletedNamespaces: (appId: string) => DeletedNamespace[];
|
|
24
|
+
export declare function RecentlyDeletedNamespaces({ appId, db, }: {
|
|
25
|
+
db: InstantReactWebDatabase<any>;
|
|
26
|
+
appId: string;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
export declare const RecentlyDeletedAttrs: React.FC<{
|
|
29
|
+
namespace: SchemaNamespace;
|
|
30
|
+
appId: string;
|
|
31
|
+
db: InstantReactWebDatabase<any>;
|
|
32
|
+
notes: ReturnType<typeof useAttrNotes>;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const removeDeletedMarker: (s: string) => string;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=recently-deleted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recently-deleted.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/recently-deleted.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQvD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG;IACvD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE;QACR,oBAAoB,CAAC,EAAE;YACrB,UAAU,EAAE,OAAO,CAAC;YACpB,WAAW,EAAE,OAAO,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,aAAa,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;AAKF,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM;WA2BxC,eAAe,EAAE;yBACH,MAAM;YAOhC,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,OAAO,MAAM,KACZ,gBAAgB,EAkBlB,CAAC;AAKF,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,EAAE,GACH,EAAE;IACD,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACf,qBA2FA;AAKD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1C,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACjC,KAAK,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACxC,CAoFA,CAAC;AA6BF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,MAI/C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SearchFilter } from '../../hooks/explorer';
|
|
2
|
+
import { SchemaAttr } from '../../types';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export declare function SearchInput({ onSearchChange, attrs, initialFilters, }: {
|
|
5
|
+
onSearchChange: (filters: SearchFilter[]) => void;
|
|
6
|
+
attrs?: SchemaAttr[];
|
|
7
|
+
initialFilters?: SearchFilter[];
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/search-input.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,KAMN,MAAM,OAAO,CAAC;AAqLf,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,KAAK,EACL,cAAmB,GACpB,EAAE;IACD,cAAc,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAClD,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;CACjC,qBAyJA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Cell, Header, HeaderGroup, Table } from '@tanstack/react-table';
|
|
3
|
+
export declare const TableHeader: ({ header, table, headerGroup, index, setMinViableColWidth, onSort, currentSortAttr, currentSortAsc, }: {
|
|
4
|
+
header: Header<any, any>;
|
|
5
|
+
table: Table<any>;
|
|
6
|
+
headerGroup: HeaderGroup<any>;
|
|
7
|
+
index: number;
|
|
8
|
+
setMinViableColWidth: (columnId: string) => void;
|
|
9
|
+
onSort?: (attrName: string, currentAttr: string | undefined, currentAsc?: boolean) => void;
|
|
10
|
+
currentSortAttr?: string;
|
|
11
|
+
currentSortAsc?: boolean;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
export declare const TableCell: ({ cell }: {
|
|
14
|
+
cell: Cell<any, unknown>;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=table-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-components.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/table-components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EACL,IAAI,EAEJ,MAAM,EACN,WAAW,EACX,KAAK,EACN,MAAM,uBAAuB,CAAC;AAiB/B,eAAO,MAAM,WAAW,GAAI,uGASzB;IACD,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,CACP,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,UAAU,CAAC,EAAE,OAAO,KACjB,IAAI,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,sBAgJA,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,UAAU;IAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;CAAE,sBAoH/D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { useColumnVisibility } from '../../hooks/useColumnVisibility';
|
|
3
|
+
interface ViewSettingsProps {
|
|
4
|
+
visiblity: ReturnType<typeof useColumnVisibility>;
|
|
5
|
+
localDates: boolean;
|
|
6
|
+
setLocalDates: (v: boolean | undefined) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ViewSettings: ({ visiblity, localDates, setLocalDates, }: ViewSettingsProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=view-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-settings.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/view-settings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,UAAU,iBAAiB;IACzB,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,YAAY,GAAI,2CAI1B,iBAAiB,sBAyDnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rosePineDawnTheme.d.ts","sourceRoot":"","sources":["../../src/components/rosePineDawnTheme.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB;;;;;;;;;;;CA2C7B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAS1D,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAEnD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAEpD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAQpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,qBAiBA;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBA+BtD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAQpD;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAkBnD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,qBAQxD;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,qBAa7D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,qBAa/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,QAErC;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAIxC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,QAKrD"}
|