@tulip-systems/drive 0.8.2 → 0.8.3
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/components/content.d.mts +1 -2
- package/dist/components/content.mjs +1 -2
- package/dist/components/context.client.d.mts +1 -2
- package/dist/components/dnd.client.d.mts +1 -2
- package/dist/components/dnd.client.mjs +1 -2
- package/dist/components/grid-card.client.d.mts +5 -2
- package/dist/components/grid-card.client.mjs +15 -15
- package/dist/components/grid.client.d.mts +1 -2
- package/dist/components/grid.client.mjs +1 -2
- package/dist/components/navigation/breadcrumbs.client.d.mts +1 -2
- package/dist/components/navigation/breadcrumbs.client.mjs +1 -2
- package/dist/components/navigation/header.client.d.mts +1 -2
- package/dist/components/navigation/header.client.mjs +1 -2
- package/dist/components/navigation/toolbar.client.d.mts +1 -2
- package/dist/components/navigation/toolbar.client.mjs +1 -2
- package/dist/components/navigation/view-switcher.client.d.mts +1 -2
- package/dist/components/navigation/view-switcher.client.mjs +1 -2
- package/dist/components/selection.client.d.mts +2 -3
- package/dist/components/selection.client.mjs +2 -5
- package/dist/components/view.client.d.mts +1 -2
- package/dist/components/view.client.mjs +1 -2
- package/dist/config/filters.mjs +1 -2
- package/dist/config/types.mjs +1 -2
- package/dist/lib/constants.d.mts +1 -2
- package/dist/lib/constants.mjs +1 -2
- package/dist/lib/contracts.d.mts +1 -2
- package/dist/lib/dto.d.mts +1 -2
- package/dist/lib/dto.mjs +1 -2
- package/dist/lib/helpers.d.mts +1 -2
- package/dist/lib/helpers.mjs +1 -2
- package/dist/lib/helpers.server.d.mts +1 -2
- package/dist/lib/helpers.server.mjs +1 -2
- package/dist/lib/search-params.d.mts +1 -2
- package/dist/lib/search-params.mjs +1 -2
- package/dist/lib/validators.d.mts +1 -2
- package/dist/lib/validators.mjs +1 -2
- package/dist/providers/google/components/command-file-update.d.mts +1 -2
- package/dist/providers/google/components/command-file-update.mjs +3 -4
- package/dist/providers/google/components/command-folder-create.d.mts +1 -2
- package/dist/providers/google/components/command-folder-create.mjs +3 -4
- package/dist/providers/google/components/command-folder-update.d.mts +1 -2
- package/dist/providers/google/components/command-folder-update.mjs +3 -4
- package/dist/providers/google/components/content.client.d.mts +1 -2
- package/dist/providers/google/components/content.client.mjs +1 -2
- package/dist/providers/google/components/navigation.client.d.mts +1 -2
- package/dist/providers/google/components/navigation.client.mjs +1 -2
- package/dist/providers/google/components/provider.client.d.mts +1 -2
- package/dist/providers/google/components/provider.client.mjs +1 -2
- package/dist/providers/google/components/view.client.d.mts +1 -2
- package/dist/providers/google/components/view.client.mjs +2 -4
- package/dist/providers/google/config/columns-data.d.mts +1 -2
- package/dist/providers/google/config/columns-data.mjs +1 -2
- package/dist/providers/google/config/filters.d.mts +1 -2
- package/dist/providers/google/config/filters.mjs +1 -2
- package/dist/providers/google/lib/constants.mjs +1 -2
- package/dist/providers/google/lib/dto.d.mts +1 -2
- package/dist/providers/google/lib/dto.mjs +1 -2
- package/dist/providers/google/lib/helpers.mjs +1 -9
- package/dist/providers/google/lib/router.server.d.mts +3 -4
- package/dist/providers/google/lib/router.server.mjs +1 -2
- package/dist/providers/google/lib/search-params.d.mts +1 -2
- package/dist/providers/google/lib/search-params.mjs +1 -2
- package/dist/providers/google/lib/service.server.d.mts +1 -2
- package/dist/providers/google/lib/service.server.mjs +2 -5
- package/dist/providers/google/lib/validators.d.mts +1 -2
- package/dist/providers/google/lib/validators.mjs +1 -2
- package/dist/providers/local/components/command-file-update.d.mts +1 -2
- package/dist/providers/local/components/command-file-update.mjs +3 -4
- package/dist/providers/local/components/command-file-upload.d.mts +1 -2
- package/dist/providers/local/components/command-file-upload.mjs +1 -2
- package/dist/providers/local/components/command-folder-create.d.mts +1 -2
- package/dist/providers/local/components/command-folder-create.mjs +3 -4
- package/dist/providers/local/components/command-folder-update.d.mts +1 -2
- package/dist/providers/local/components/command-folder-update.mjs +3 -4
- package/dist/providers/local/components/content.client.d.mts +1 -2
- package/dist/providers/local/components/content.client.mjs +1 -2
- package/dist/providers/local/components/navigation.client.d.mts +1 -2
- package/dist/providers/local/components/navigation.client.mjs +1 -2
- package/dist/providers/local/components/provider.client.d.mts +1 -2
- package/dist/providers/local/components/provider.client.mjs +1 -2
- package/dist/providers/local/components/upload-zone-context.client.d.mts +1 -2
- package/dist/providers/local/components/upload-zone-context.client.mjs +1 -2
- package/dist/providers/local/components/upload-zone.client.d.mts +1 -2
- package/dist/providers/local/components/upload-zone.client.mjs +2 -3
- package/dist/providers/local/components/view.client.d.mts +1 -2
- package/dist/providers/local/components/view.client.mjs +1 -2
- package/dist/providers/local/config/columns-data.d.mts +1 -2
- package/dist/providers/local/config/columns-data.mjs +1 -2
- package/dist/providers/local/config/filters.d.mts +1 -2
- package/dist/providers/local/config/filters.mjs +1 -2
- package/dist/providers/local/lib/constants.d.mts +1 -2
- package/dist/providers/local/lib/constants.mjs +1 -2
- package/dist/providers/local/lib/helpers.d.mts +1 -2
- package/dist/providers/local/lib/helpers.mjs +1 -2
- package/dist/providers/local/lib/route-handler.server.d.mts +1 -2
- package/dist/providers/local/lib/route-handler.server.mjs +1 -2
- package/dist/providers/local/lib/router.server.d.mts +25 -26
- package/dist/providers/local/lib/router.server.mjs +1 -2
- package/dist/providers/local/lib/schema.d.mts +1 -2
- package/dist/providers/local/lib/schema.mjs +1 -2
- package/dist/providers/local/lib/search-params.d.mts +1 -2
- package/dist/providers/local/lib/search-params.mjs +1 -2
- package/dist/providers/local/lib/service.server.d.mts +13 -14
- package/dist/providers/local/lib/service.server.mjs +1 -2
- package/dist/providers/local/lib/upload.client.d.mts +1 -2
- package/dist/providers/local/lib/upload.client.mjs +1 -2
- package/dist/providers/local/lib/validators.d.mts +1 -2
- package/dist/providers/local/lib/validators.mjs +1 -2
- package/package.json +44 -46
- package/src/components/grid-card.client.tsx +17 -12
- package/src/components/selection.client.tsx +1 -2
- package/src/config/types.tsx +1 -1
- package/src/providers/google/components/command-file-update.tsx +2 -2
- package/src/providers/google/components/command-folder-create.tsx +2 -2
- package/src/providers/google/components/command-folder-update.tsx +2 -2
- package/src/providers/google/components/view.client.tsx +1 -7
- package/src/providers/google/lib/helpers.ts +0 -9
- package/src/providers/google/lib/service.server.ts +1 -3
- package/src/providers/local/components/command-file-update.tsx +2 -2
- package/src/providers/local/components/command-folder-create.tsx +2 -2
- package/src/providers/local/components/command-folder-update.tsx +2 -2
- package/src/providers/local/components/upload-zone.client.tsx +1 -1
- package/dist/components/content.d.mts.map +0 -1
- package/dist/components/content.mjs.map +0 -1
- package/dist/components/context.client.d.mts.map +0 -1
- package/dist/components/dnd.client.d.mts.map +0 -1
- package/dist/components/dnd.client.mjs.map +0 -1
- package/dist/components/grid-card.client.d.mts.map +0 -1
- package/dist/components/grid-card.client.mjs.map +0 -1
- package/dist/components/grid.client.d.mts.map +0 -1
- package/dist/components/grid.client.mjs.map +0 -1
- package/dist/components/navigation/breadcrumbs.client.d.mts.map +0 -1
- package/dist/components/navigation/breadcrumbs.client.mjs.map +0 -1
- package/dist/components/navigation/header.client.d.mts.map +0 -1
- package/dist/components/navigation/header.client.mjs.map +0 -1
- package/dist/components/navigation/toolbar.client.d.mts.map +0 -1
- package/dist/components/navigation/toolbar.client.mjs.map +0 -1
- package/dist/components/navigation/view-switcher.client.d.mts.map +0 -1
- package/dist/components/navigation/view-switcher.client.mjs.map +0 -1
- package/dist/components/selection.client.d.mts.map +0 -1
- package/dist/components/selection.client.mjs.map +0 -1
- package/dist/components/view.client.d.mts.map +0 -1
- package/dist/components/view.client.mjs.map +0 -1
- package/dist/config/filters.mjs.map +0 -1
- package/dist/config/types.mjs.map +0 -1
- package/dist/lib/constants.d.mts.map +0 -1
- package/dist/lib/constants.mjs.map +0 -1
- package/dist/lib/contracts.d.mts.map +0 -1
- package/dist/lib/dto.d.mts.map +0 -1
- package/dist/lib/dto.mjs.map +0 -1
- package/dist/lib/helpers.d.mts.map +0 -1
- package/dist/lib/helpers.mjs.map +0 -1
- package/dist/lib/helpers.server.d.mts.map +0 -1
- package/dist/lib/helpers.server.mjs.map +0 -1
- package/dist/lib/search-params.d.mts.map +0 -1
- package/dist/lib/search-params.mjs.map +0 -1
- package/dist/lib/validators.d.mts.map +0 -1
- package/dist/lib/validators.mjs.map +0 -1
- package/dist/providers/google/components/command-file-update.d.mts.map +0 -1
- package/dist/providers/google/components/command-file-update.mjs.map +0 -1
- package/dist/providers/google/components/command-folder-create.d.mts.map +0 -1
- package/dist/providers/google/components/command-folder-create.mjs.map +0 -1
- package/dist/providers/google/components/command-folder-update.d.mts.map +0 -1
- package/dist/providers/google/components/command-folder-update.mjs.map +0 -1
- package/dist/providers/google/components/content.client.d.mts.map +0 -1
- package/dist/providers/google/components/content.client.mjs.map +0 -1
- package/dist/providers/google/components/navigation.client.d.mts.map +0 -1
- package/dist/providers/google/components/navigation.client.mjs.map +0 -1
- package/dist/providers/google/components/provider.client.d.mts.map +0 -1
- package/dist/providers/google/components/provider.client.mjs.map +0 -1
- package/dist/providers/google/components/view.client.d.mts.map +0 -1
- package/dist/providers/google/components/view.client.mjs.map +0 -1
- package/dist/providers/google/config/columns-data.d.mts.map +0 -1
- package/dist/providers/google/config/columns-data.mjs.map +0 -1
- package/dist/providers/google/config/filters.d.mts.map +0 -1
- package/dist/providers/google/config/filters.mjs.map +0 -1
- package/dist/providers/google/lib/constants.mjs.map +0 -1
- package/dist/providers/google/lib/dto.d.mts.map +0 -1
- package/dist/providers/google/lib/dto.mjs.map +0 -1
- package/dist/providers/google/lib/helpers.mjs.map +0 -1
- package/dist/providers/google/lib/router.server.d.mts.map +0 -1
- package/dist/providers/google/lib/router.server.mjs.map +0 -1
- package/dist/providers/google/lib/search-params.d.mts.map +0 -1
- package/dist/providers/google/lib/search-params.mjs.map +0 -1
- package/dist/providers/google/lib/service.server.d.mts.map +0 -1
- package/dist/providers/google/lib/service.server.mjs.map +0 -1
- package/dist/providers/google/lib/validators.d.mts.map +0 -1
- package/dist/providers/google/lib/validators.mjs.map +0 -1
- package/dist/providers/local/components/command-file-update.d.mts.map +0 -1
- package/dist/providers/local/components/command-file-update.mjs.map +0 -1
- package/dist/providers/local/components/command-file-upload.d.mts.map +0 -1
- package/dist/providers/local/components/command-file-upload.mjs.map +0 -1
- package/dist/providers/local/components/command-folder-create.d.mts.map +0 -1
- package/dist/providers/local/components/command-folder-create.mjs.map +0 -1
- package/dist/providers/local/components/command-folder-update.d.mts.map +0 -1
- package/dist/providers/local/components/command-folder-update.mjs.map +0 -1
- package/dist/providers/local/components/content.client.d.mts.map +0 -1
- package/dist/providers/local/components/content.client.mjs.map +0 -1
- package/dist/providers/local/components/navigation.client.d.mts.map +0 -1
- package/dist/providers/local/components/navigation.client.mjs.map +0 -1
- package/dist/providers/local/components/provider.client.d.mts.map +0 -1
- package/dist/providers/local/components/provider.client.mjs.map +0 -1
- package/dist/providers/local/components/upload-zone-context.client.d.mts.map +0 -1
- package/dist/providers/local/components/upload-zone-context.client.mjs.map +0 -1
- package/dist/providers/local/components/upload-zone.client.d.mts.map +0 -1
- package/dist/providers/local/components/upload-zone.client.mjs.map +0 -1
- package/dist/providers/local/components/view.client.d.mts.map +0 -1
- package/dist/providers/local/components/view.client.mjs.map +0 -1
- package/dist/providers/local/config/columns-data.d.mts.map +0 -1
- package/dist/providers/local/config/columns-data.mjs.map +0 -1
- package/dist/providers/local/config/filters.d.mts.map +0 -1
- package/dist/providers/local/config/filters.mjs.map +0 -1
- package/dist/providers/local/lib/constants.d.mts.map +0 -1
- package/dist/providers/local/lib/constants.mjs.map +0 -1
- package/dist/providers/local/lib/helpers.d.mts.map +0 -1
- package/dist/providers/local/lib/helpers.mjs.map +0 -1
- package/dist/providers/local/lib/route-handler.server.d.mts.map +0 -1
- package/dist/providers/local/lib/route-handler.server.mjs.map +0 -1
- package/dist/providers/local/lib/router.server.d.mts.map +0 -1
- package/dist/providers/local/lib/router.server.mjs.map +0 -1
- package/dist/providers/local/lib/schema.d.mts.map +0 -1
- package/dist/providers/local/lib/schema.mjs.map +0 -1
- package/dist/providers/local/lib/search-params.d.mts.map +0 -1
- package/dist/providers/local/lib/search-params.mjs.map +0 -1
- package/dist/providers/local/lib/service.server.d.mts.map +0 -1
- package/dist/providers/local/lib/service.server.mjs.map +0 -1
- package/dist/providers/local/lib/upload.client.d.mts.map +0 -1
- package/dist/providers/local/lib/upload.client.mjs.map +0 -1
- package/dist/providers/local/lib/validators.d.mts.map +0 -1
- package/dist/providers/local/lib/validators.mjs.map +0 -1
|
@@ -12,6 +12,7 @@ type DriveGridCardProps<TData extends DriveNode> = ComponentProps<"div"> & {
|
|
|
12
12
|
node: TData;
|
|
13
13
|
commands?: CommandDef<TData>[];
|
|
14
14
|
imageLoader?: (props: ImageLoaderProps) => string;
|
|
15
|
+
unoptimized?: boolean;
|
|
15
16
|
};
|
|
16
17
|
declare function DriveGridCard<TData extends DriveNode>(props: DriveGridCardProps<TData>): react_jsx_runtime0.JSX.Element | null;
|
|
17
18
|
/**
|
|
@@ -21,6 +22,8 @@ declare function DriveGridFolderCard<TData extends DriveNode>({
|
|
|
21
22
|
node,
|
|
22
23
|
commands,
|
|
23
24
|
onDoubleClick,
|
|
25
|
+
imageLoader,
|
|
26
|
+
unoptimized,
|
|
24
27
|
className,
|
|
25
28
|
...props
|
|
26
29
|
}: DriveGridCardProps<TData>): react_jsx_runtime0.JSX.Element | null;
|
|
@@ -31,6 +34,7 @@ declare function DriveGridFileCard<TData extends DriveNode>({
|
|
|
31
34
|
node,
|
|
32
35
|
commands,
|
|
33
36
|
imageLoader,
|
|
37
|
+
unoptimized,
|
|
34
38
|
className,
|
|
35
39
|
...props
|
|
36
40
|
}: DriveGridCardProps<TData>): react_jsx_runtime0.JSX.Element | null;
|
|
@@ -39,5 +43,4 @@ declare function DriveGridFileCard<TData extends DriveNode>({
|
|
|
39
43
|
*/
|
|
40
44
|
declare function DriveGridCardSkeleton(): react_jsx_runtime0.JSX.Element;
|
|
41
45
|
//#endregion
|
|
42
|
-
export { DriveGridCard, DriveGridCardSkeleton, DriveGridFileCard, DriveGridFolderCard };
|
|
43
|
-
//# sourceMappingURL=grid-card.client.d.mts.map
|
|
46
|
+
export { DriveGridCard, DriveGridCardSkeleton, DriveGridFileCard, DriveGridFolderCard };
|
|
@@ -21,10 +21,10 @@ function DriveGridCard(props) {
|
|
|
21
21
|
/**
|
|
22
22
|
* Folder card
|
|
23
23
|
*/
|
|
24
|
-
function DriveGridFolderCard({ node, commands, onDoubleClick, className, ...props }) {
|
|
24
|
+
function DriveGridFolderCard({ node, commands, onDoubleClick, imageLoader, unoptimized, className, ...props }) {
|
|
25
25
|
const { id } = node;
|
|
26
26
|
const router = useRouter();
|
|
27
|
-
const
|
|
27
|
+
const selectionContext = useDriveSelectionContext();
|
|
28
28
|
const droppable = useDroppable({ id: node.id });
|
|
29
29
|
const draggable = useDraggable({ id: node.id });
|
|
30
30
|
if (node.hidden) return null;
|
|
@@ -34,19 +34,19 @@ function DriveGridFolderCard({ node, commands, onDoubleClick, className, ...prop
|
|
|
34
34
|
...props,
|
|
35
35
|
key: id,
|
|
36
36
|
ref: draggable.ref,
|
|
37
|
-
"data-selected": selection?.rowSelection?.[id],
|
|
37
|
+
"data-selected": selectionContext?.selection?.rowSelection?.[id],
|
|
38
38
|
"data-dragging": draggable.isDragging,
|
|
39
39
|
className: "group @container relative flex max-h-48 max-w-full cursor-pointer flex-col items-center gap-2 overflow-hidden bg-transparent p-2 hover:bg-muted/70 active:bg-muted data-[selected=true]:bg-primary/30 data-[dragging=true]:opacity-50",
|
|
40
40
|
onClick: () => {
|
|
41
|
-
const conditions = selectionConditions?.(node);
|
|
41
|
+
const conditions = selectionContext?.selectionConditions?.(node);
|
|
42
42
|
if (conditions !== void 0) {
|
|
43
43
|
if (!(Array.isArray(conditions) ? conditions.some((condition) => condition) : conditions)) return;
|
|
44
44
|
}
|
|
45
|
-
if (!selection?.rowSelection?.[id]) selection?.setRowSelection?.((old) => ({
|
|
45
|
+
if (!selectionContext?.selection?.rowSelection?.[id]) selectionContext?.selection?.setRowSelection?.((old) => ({
|
|
46
46
|
...old,
|
|
47
47
|
[id]: true
|
|
48
48
|
}));
|
|
49
|
-
else selection?.setRowSelection?.((old) => {
|
|
49
|
+
else selectionContext?.selection?.setRowSelection?.((old) => {
|
|
50
50
|
const newSelection = { ...old };
|
|
51
51
|
delete newSelection[id];
|
|
52
52
|
return newSelection;
|
|
@@ -86,10 +86,10 @@ function DriveGridFolderCard({ node, commands, onDoubleClick, className, ...prop
|
|
|
86
86
|
/**
|
|
87
87
|
* File card
|
|
88
88
|
*/
|
|
89
|
-
function DriveGridFileCard({ node, commands, imageLoader, className, ...props }) {
|
|
89
|
+
function DriveGridFileCard({ node, commands, imageLoader, unoptimized = false, className, ...props }) {
|
|
90
90
|
const { id } = node;
|
|
91
91
|
const { ref, isDragging } = useDraggable({ id });
|
|
92
|
-
const
|
|
92
|
+
const selectionContext = useDriveSelectionContext();
|
|
93
93
|
const Icon = findStatus(nodeSubtypeConfig, node.subtype)?.icon;
|
|
94
94
|
const fileUrl = node.links.view ?? node.links.download;
|
|
95
95
|
const imageUrl = node.links.thumbnail ?? node.links.preview;
|
|
@@ -100,19 +100,19 @@ function DriveGridFileCard({ node, commands, imageLoader, className, ...props })
|
|
|
100
100
|
...props,
|
|
101
101
|
key: id,
|
|
102
102
|
ref,
|
|
103
|
-
"data-selected": selection?.rowSelection?.[id],
|
|
103
|
+
"data-selected": selectionContext?.selection?.rowSelection?.[id],
|
|
104
104
|
"data-dragging": isDragging,
|
|
105
105
|
className: "@container flex max-h-48 max-w-full cursor-pointer flex-col items-center gap-2 overflow-hidden p-2 hover:bg-muted/70 active:bg-muted data-[selected=true]:bg-primary/30 data-[dragging=true]:opacity-50",
|
|
106
106
|
onClick: () => {
|
|
107
|
-
const conditions = selectionConditions?.(node);
|
|
107
|
+
const conditions = selectionContext?.selectionConditions?.(node);
|
|
108
108
|
if (conditions !== void 0) {
|
|
109
109
|
if (!(Array.isArray(conditions) ? conditions.some((condition) => condition) : conditions)) return;
|
|
110
110
|
}
|
|
111
|
-
if (!selection?.rowSelection?.[id]) selection?.setRowSelection?.((old) => ({
|
|
111
|
+
if (!selectionContext?.selection?.rowSelection?.[id]) selectionContext?.selection?.setRowSelection?.((old) => ({
|
|
112
112
|
...old,
|
|
113
113
|
[id]: true
|
|
114
114
|
}));
|
|
115
|
-
else selection?.setRowSelection?.((old) => {
|
|
115
|
+
else selectionContext?.selection?.setRowSelection?.((old) => {
|
|
116
116
|
const newSelection = { ...old };
|
|
117
117
|
delete newSelection[id];
|
|
118
118
|
return newSelection;
|
|
@@ -144,7 +144,8 @@ function DriveGridFileCard({ node, commands, imageLoader, className, ...props })
|
|
|
144
144
|
width: 200,
|
|
145
145
|
height: 200,
|
|
146
146
|
loader: imageLoader,
|
|
147
|
-
className: "h-full w-full object-cover"
|
|
147
|
+
className: "h-full w-full object-cover",
|
|
148
|
+
unoptimized
|
|
148
149
|
}) : /* @__PURE__ */ jsx("div", {
|
|
149
150
|
className: "flex h-full w-full items-center justify-center",
|
|
150
151
|
children: Icon && /* @__PURE__ */ jsx(Icon, { className: nodeSubtypeVariants({
|
|
@@ -169,5 +170,4 @@ function DriveGridCardSkeleton() {
|
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
//#endregion
|
|
172
|
-
export { DriveGridCard, DriveGridCardSkeleton, DriveGridFileCard, DriveGridFolderCard };
|
|
173
|
-
//# sourceMappingURL=grid-card.client.mjs.map
|
|
173
|
+
export { DriveGridCard, DriveGridCardSkeleton, DriveGridFileCard, DriveGridFolderCard };
|
|
@@ -50,5 +50,4 @@ declare function DriveGridBottombar({
|
|
|
50
50
|
...props
|
|
51
51
|
}: DriveGridBottombarProps): react_jsx_runtime0.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
|
-
export { DriveGrid, DriveGridBottombar, DriveGridEmpty, DriveGridEmptyProps, DriveGridLoading, DriveGridLoadingProps, DriveGridProps };
|
|
54
|
-
//# sourceMappingURL=grid.client.d.mts.map
|
|
53
|
+
export { DriveGrid, DriveGridBottombar, DriveGridEmpty, DriveGridEmptyProps, DriveGridLoading, DriveGridLoadingProps, DriveGridProps };
|
|
@@ -50,5 +50,4 @@ function DriveGridBottombar({ hasNextPage, fetchNextPage, isFetching, isFetching
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
|
-
export { DriveGrid, DriveGridBottombar, DriveGridEmpty, DriveGridLoading };
|
|
54
|
-
//# sourceMappingURL=grid.client.mjs.map
|
|
53
|
+
export { DriveGrid, DriveGridBottombar, DriveGridEmpty, DriveGridLoading };
|
|
@@ -22,5 +22,4 @@ declare function DriveBreadcrumbs({
|
|
|
22
22
|
breadcrumbs
|
|
23
23
|
}: DriveBreadCrumbsProps): react_jsx_runtime0.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { DriveBreadCrumbsProps, DriveBreadcrumb, DriveBreadcrumbs };
|
|
26
|
-
//# sourceMappingURL=breadcrumbs.client.d.mts.map
|
|
25
|
+
export { DriveBreadCrumbsProps, DriveBreadcrumb, DriveBreadcrumbs };
|
|
@@ -24,5 +24,4 @@ declare function DriveHeaderTools({
|
|
|
24
24
|
...props
|
|
25
25
|
}: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DriveHeader, DriveHeaderBreadcrumbs, DriveHeaderTools };
|
|
28
|
-
//# sourceMappingURL=header.client.d.mts.map
|
|
27
|
+
export { DriveHeader, DriveHeaderBreadcrumbs, DriveHeaderTools };
|
|
@@ -20,5 +20,4 @@ declare function DriveToolbarTools({
|
|
|
20
20
|
...props
|
|
21
21
|
}: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { DriveToolbar, DriveToolbarTools };
|
|
24
|
-
//# sourceMappingURL=toolbar.client.d.mts.map
|
|
23
|
+
export { DriveToolbar, DriveToolbarTools };
|
|
@@ -31,5 +31,4 @@ function DriveToolbarTools({ children, className, ...props }) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
export { DriveToolbar, DriveToolbarBreadcrumbs, DriveToolbarTools };
|
|
35
|
-
//# sourceMappingURL=toolbar.client.mjs.map
|
|
34
|
+
export { DriveToolbar, DriveToolbarBreadcrumbs, DriveToolbarTools };
|
|
@@ -14,7 +14,7 @@ type DriveSelectionContextValue = {
|
|
|
14
14
|
/**
|
|
15
15
|
* useDriveSelectionContext
|
|
16
16
|
*/
|
|
17
|
-
declare function useDriveSelectionContext(): DriveSelectionContextValue;
|
|
17
|
+
declare function useDriveSelectionContext(): DriveSelectionContextValue | null;
|
|
18
18
|
/**
|
|
19
19
|
* DriveSelectionProvider
|
|
20
20
|
*/
|
|
@@ -24,5 +24,4 @@ declare function DriveSelectionProvider({
|
|
|
24
24
|
children
|
|
25
25
|
}: PropsWithChildren<DriveSelectionContextValue>): react_jsx_runtime0.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DriveSelectionContextValue, DriveSelectionProvider, useDriveSelectionContext };
|
|
28
|
-
//# sourceMappingURL=selection.client.d.mts.map
|
|
27
|
+
export { DriveSelectionContextValue, DriveSelectionProvider, useDriveSelectionContext };
|
|
@@ -9,9 +9,7 @@ const DriveSelectionContext = createContext(null);
|
|
|
9
9
|
* useDriveSelectionContext
|
|
10
10
|
*/
|
|
11
11
|
function useDriveSelectionContext() {
|
|
12
|
-
|
|
13
|
-
if (!context) throw new Error("DriveSelectionContext not found!");
|
|
14
|
-
return context;
|
|
12
|
+
return use(DriveSelectionContext) ?? null;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
15
|
* DriveSelectionProvider
|
|
@@ -35,5 +33,4 @@ function DriveSelectionProvider({ selection, selectionConditions, children }) {
|
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
//#endregion
|
|
38
|
-
export { DriveSelectionProvider, useDriveSelectionContext };
|
|
39
|
-
//# sourceMappingURL=selection.client.mjs.map
|
|
36
|
+
export { DriveSelectionProvider, useDriveSelectionContext };
|
|
@@ -22,5 +22,4 @@ type DriveViewProviderProps = PropsWithChildren<Partial<DriveViewContextValue>>
|
|
|
22
22
|
};
|
|
23
23
|
declare function DriveViewProvider(props: DriveViewProviderProps): react_jsx_runtime0.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { DriveViewContextValue, DriveViewMode, DriveViewProvider, DriveViewProviderProps, useDriveViewContext };
|
|
26
|
-
//# sourceMappingURL=view.client.d.mts.map
|
|
25
|
+
export { DriveViewContextValue, DriveViewMode, DriveViewProvider, DriveViewProviderProps, useDriveViewContext };
|
package/dist/config/filters.mjs
CHANGED
package/dist/config/types.mjs
CHANGED
|
@@ -57,5 +57,4 @@ const nodeSubtypeConfig = createStatusConfig([
|
|
|
57
57
|
const nodeSubtypeVariants = cva("", { variants: { status: createStatusVariants(nodeSubtypeConfig) } });
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
|
-
export { nodeSubtypeConfig, nodeSubtypeVariants };
|
|
61
|
-
//# sourceMappingURL=types.mjs.map
|
|
60
|
+
export { nodeSubtypeConfig, nodeSubtypeVariants };
|
package/dist/lib/constants.d.mts
CHANGED
|
@@ -8,5 +8,4 @@ declare const DRIVE_NODE_SUBTYPES: readonly ["image", "document", "spreadsheet",
|
|
|
8
8
|
declare const DRIVE_VIEW_COOKIE: "tulip.drive_view_mode";
|
|
9
9
|
declare const DRIVE_VIEW_COOKIE_MAX_AGE: number;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { DRIVE_NODE_SUBTYPES, DRIVE_NODE_TYPES, DRIVE_PROVIDERS, DRIVE_VIEW_COOKIE, DRIVE_VIEW_COOKIE_MAX_AGE };
|
|
12
|
-
//# sourceMappingURL=constants.d.mts.map
|
|
11
|
+
export { DRIVE_NODE_SUBTYPES, DRIVE_NODE_TYPES, DRIVE_PROVIDERS, DRIVE_VIEW_COOKIE, DRIVE_VIEW_COOKIE_MAX_AGE };
|
package/dist/lib/constants.mjs
CHANGED
|
@@ -17,5 +17,4 @@ const DRIVE_VIEW_COOKIE = "tulip.drive_view_mode";
|
|
|
17
17
|
const DRIVE_VIEW_COOKIE_MAX_AGE = 3600 * 24 * 7;
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
export { DRIVE_NODE_SUBTYPES, DRIVE_NODE_TYPES, DRIVE_PROVIDERS, DRIVE_VIEW_COOKIE, DRIVE_VIEW_COOKIE_MAX_AGE };
|
|
21
|
-
//# sourceMappingURL=constants.mjs.map
|
|
20
|
+
export { DRIVE_NODE_SUBTYPES, DRIVE_NODE_TYPES, DRIVE_PROVIDERS, DRIVE_VIEW_COOKIE, DRIVE_VIEW_COOKIE_MAX_AGE };
|
package/dist/lib/contracts.d.mts
CHANGED
|
@@ -97,5 +97,4 @@ interface DriveArchive<TNode extends DriveNodeBase = DriveNodeBase> {
|
|
|
97
97
|
*/
|
|
98
98
|
type Drive<TNode extends DriveNodeBase = DriveNodeBase> = DriveReader<TNode>;
|
|
99
99
|
//#endregion
|
|
100
|
-
export { Drive, DriveArchive, DriveDirectUpload, DriveNodeMutations, DrivePresignedUpload, DrivePresignedUploadResult, DrivePreviewGenerator, DriveReader, DriveReadonly };
|
|
101
|
-
//# sourceMappingURL=contracts.d.mts.map
|
|
100
|
+
export { Drive, DriveArchive, DriveDirectUpload, DriveNodeMutations, DrivePresignedUpload, DrivePresignedUploadResult, DrivePreviewGenerator, DriveReader, DriveReadonly };
|
package/dist/lib/dto.d.mts
CHANGED
|
@@ -114,5 +114,4 @@ type DriveNodeChild<TNode extends DriveNodeBase = DriveNode> = TNode & {
|
|
|
114
114
|
depth: number;
|
|
115
115
|
};
|
|
116
116
|
//#endregion
|
|
117
|
-
export { DriveFolderParent, DriveNode, DriveNodeAvailability, DriveNodeBase, DriveNodeChild, DriveNodeLinks, DriveNodeProvider, DriveNodeSubtype, DriveNodeType, DriveNodeWithChildren, driveNodeAvailabilitySchema, driveNodeLinksSchema, driveNodeProviderSchema, driveNodeSchema, driveNodeSubtypeSchema, driveNodeTypeSchema };
|
|
118
|
-
//# sourceMappingURL=dto.d.mts.map
|
|
117
|
+
export { DriveFolderParent, DriveNode, DriveNodeAvailability, DriveNodeBase, DriveNodeChild, DriveNodeLinks, DriveNodeProvider, DriveNodeSubtype, DriveNodeType, DriveNodeWithChildren, driveNodeAvailabilitySchema, driveNodeLinksSchema, driveNodeProviderSchema, driveNodeSchema, driveNodeSubtypeSchema, driveNodeTypeSchema };
|
package/dist/lib/dto.mjs
CHANGED
|
@@ -54,5 +54,4 @@ const driveNodeSchema = z.object({
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
export { driveNodeAvailabilitySchema, driveNodeLinksSchema, driveNodeProviderSchema, driveNodeSchema, driveNodeSubtypeSchema, driveNodeTypeSchema };
|
|
58
|
-
//# sourceMappingURL=dto.mjs.map
|
|
57
|
+
export { driveNodeAvailabilitySchema, driveNodeLinksSchema, driveNodeProviderSchema, driveNodeSchema, driveNodeSubtypeSchema, driveNodeTypeSchema };
|
package/dist/lib/helpers.d.mts
CHANGED
|
@@ -14,5 +14,4 @@ declare function isFolder(node: Pick<DriveNode, "type">): node is DriveNode;
|
|
|
14
14
|
*/
|
|
15
15
|
declare function renderBytes(bytes: number): string;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { isFile, isFolder, renderBytes };
|
|
18
|
-
//# sourceMappingURL=helpers.d.mts.map
|
|
17
|
+
export { isFile, isFolder, renderBytes };
|
package/dist/lib/helpers.mjs
CHANGED
|
@@ -10,5 +10,4 @@ import { cookies } from "next/headers";
|
|
|
10
10
|
*/
|
|
11
11
|
declare function getDriveViewModeFromCookies(cookiesStore: Awaited<ReturnType<typeof cookies>>): DriveViewMode | undefined;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { getDriveViewModeFromCookies };
|
|
14
|
-
//# sourceMappingURL=helpers.server.d.mts.map
|
|
13
|
+
export { getDriveViewModeFromCookies };
|
|
@@ -154,5 +154,4 @@ declare const getNodesByParentIdInputSchema: z.ZodObject<{
|
|
|
154
154
|
type GetDriveNodesByParentIdInput = z.input<typeof getNodesByParentIdInputSchema>;
|
|
155
155
|
type GetDriveNodesByParentIdSchema = z.infer<typeof getNodesByParentIdInputSchema>;
|
|
156
156
|
//#endregion
|
|
157
|
-
export { CreateDriveFolderInput, CreateDriveFolderSchema, GetDriveNodesByParentIdInput, GetDriveNodesByParentIdSchema, ListDriveTreeInput, ListDriveTreeSchema, NodesTableFilters, PresignDriveFileInput, PresignDriveFileSchema, UpdateDriveNodeInput, UpdateDriveNodeSchema, UploadDriveFileInput, UploadDriveFileSchema, createDriveFolderInputSchema, driveTableFiltersSchema, getNodesByParentIdInputSchema, listDriveTreeInputSchema, presignDriveFileInputSchema, updateDriveNodeInputSchema, uploadDriveFileInputSchema };
|
|
158
|
-
//# sourceMappingURL=validators.d.mts.map
|
|
157
|
+
export { CreateDriveFolderInput, CreateDriveFolderSchema, GetDriveNodesByParentIdInput, GetDriveNodesByParentIdSchema, ListDriveTreeInput, ListDriveTreeSchema, NodesTableFilters, PresignDriveFileInput, PresignDriveFileSchema, UpdateDriveNodeInput, UpdateDriveNodeSchema, UploadDriveFileInput, UploadDriveFileSchema, createDriveFolderInputSchema, driveTableFiltersSchema, getNodesByParentIdInputSchema, listDriveTreeInputSchema, presignDriveFileInputSchema, updateDriveNodeInputSchema, uploadDriveFileInputSchema };
|
package/dist/lib/validators.mjs
CHANGED
|
@@ -62,5 +62,4 @@ const getNodesByParentIdInputSchema = tableQuerySchema.pick({
|
|
|
62
62
|
}).extend({ filters: driveTableFiltersSchema });
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
|
-
export { createDriveFolderInputSchema, driveTableFiltersSchema, getNodesByParentIdInputSchema, listDriveTreeInputSchema, presignDriveFileInputSchema, updateDriveNodeInputSchema, uploadDriveFileInputSchema };
|
|
66
|
-
//# sourceMappingURL=validators.mjs.map
|
|
65
|
+
export { createDriveFolderInputSchema, driveTableFiltersSchema, getNodesByParentIdInputSchema, listDriveTreeInputSchema, presignDriveFileInputSchema, updateDriveNodeInputSchema, uploadDriveFileInputSchema };
|
|
@@ -18,5 +18,4 @@ declare function GoogleDriveFileUpdateCommand<TData = unknown, TError = DefaultE
|
|
|
18
18
|
mutation
|
|
19
19
|
}: GoogleDriveFileUpdateCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { GoogleDriveFileUpdateCommand, GoogleDriveFileUpdateCommandProps };
|
|
22
|
-
//# sourceMappingURL=command-file-update.d.mts.map
|
|
21
|
+
export { GoogleDriveFileUpdateCommand, GoogleDriveFileUpdateCommandProps };
|
|
@@ -6,7 +6,7 @@ import { CommandFormDialog, CommandFormDialogCancel, CommandFormDialogContent, C
|
|
|
6
6
|
import { FilePen } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@tulip-systems/core/components/client";
|
|
9
|
-
import {
|
|
9
|
+
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
10
10
|
import { useForm } from "react-hook-form";
|
|
11
11
|
|
|
12
12
|
//#region src/providers/google/components/command-file-update.tsx
|
|
@@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
|
|
|
16
16
|
*/
|
|
17
17
|
function GoogleDriveFileUpdateCommand({ defaultValues, variables, mutation }) {
|
|
18
18
|
const form = useForm({
|
|
19
|
-
resolver:
|
|
19
|
+
resolver: standardSchemaResolver(updateGoogleDriveNodeInputSchema),
|
|
20
20
|
defaultValues
|
|
21
21
|
});
|
|
22
22
|
return /* @__PURE__ */ jsx(Form, {
|
|
@@ -48,5 +48,4 @@ function GoogleDriveFileUpdateCommand({ defaultValues, variables, mutation }) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
|
-
export { GoogleDriveFileUpdateCommand };
|
|
52
|
-
//# sourceMappingURL=command-file-update.mjs.map
|
|
51
|
+
export { GoogleDriveFileUpdateCommand };
|
|
@@ -18,5 +18,4 @@ declare function GoogleDriveFoldersCreateCommand<TData = unknown, TError = Defau
|
|
|
18
18
|
mutation
|
|
19
19
|
}: GoogleDriveFoldersCreateCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { GoogleDriveFoldersCreateCommand, GoogleDriveFoldersCreateCommandProps };
|
|
22
|
-
//# sourceMappingURL=command-folder-create.d.mts.map
|
|
21
|
+
export { GoogleDriveFoldersCreateCommand, GoogleDriveFoldersCreateCommandProps };
|
|
@@ -8,7 +8,7 @@ import { FolderPlus } from "lucide-react";
|
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@tulip-systems/core/components/client";
|
|
10
10
|
import { useQueryStates } from "nuqs";
|
|
11
|
-
import {
|
|
11
|
+
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
12
12
|
import { useForm } from "react-hook-form";
|
|
13
13
|
|
|
14
14
|
//#region src/providers/google/components/command-folder-create.tsx
|
|
@@ -19,7 +19,7 @@ import { useForm } from "react-hook-form";
|
|
|
19
19
|
function GoogleDriveFoldersCreateCommand({ defaultValues, variables, mutation }) {
|
|
20
20
|
const [{ parentId }] = useQueryStates(driveTreeSearchParams);
|
|
21
21
|
const form = useForm({
|
|
22
|
-
resolver:
|
|
22
|
+
resolver: standardSchemaResolver(createGoogleDriveFolderInputSchema),
|
|
23
23
|
defaultValues: {
|
|
24
24
|
...defaultValues,
|
|
25
25
|
parentId
|
|
@@ -55,5 +55,4 @@ function GoogleDriveFoldersCreateCommand({ defaultValues, variables, mutation })
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
//#endregion
|
|
58
|
-
export { GoogleDriveFoldersCreateCommand };
|
|
59
|
-
//# sourceMappingURL=command-folder-create.mjs.map
|
|
58
|
+
export { GoogleDriveFoldersCreateCommand };
|
|
@@ -18,5 +18,4 @@ declare function GoogleDriveFoldersUpdateCommand<TData = unknown, TError = Defau
|
|
|
18
18
|
mutation
|
|
19
19
|
}: GoogleDriveFoldersUpdateCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { GoogleDriveFoldersUpdateCommand, GoogleDriveFoldersUpdateCommandProps };
|
|
22
|
-
//# sourceMappingURL=command-folder-update.d.mts.map
|
|
21
|
+
export { GoogleDriveFoldersUpdateCommand, GoogleDriveFoldersUpdateCommandProps };
|
|
@@ -6,7 +6,7 @@ import { CommandFormDialog, CommandFormDialogCancel, CommandFormDialogContent, C
|
|
|
6
6
|
import { FolderPen } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@tulip-systems/core/components/client";
|
|
9
|
-
import {
|
|
9
|
+
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
10
10
|
import { useForm } from "react-hook-form";
|
|
11
11
|
|
|
12
12
|
//#region src/providers/google/components/command-folder-update.tsx
|
|
@@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
|
|
|
16
16
|
*/
|
|
17
17
|
function GoogleDriveFoldersUpdateCommand({ defaultValues, variables, mutation }) {
|
|
18
18
|
const form = useForm({
|
|
19
|
-
resolver:
|
|
19
|
+
resolver: standardSchemaResolver(updateGoogleDriveNodeInputSchema),
|
|
20
20
|
defaultValues
|
|
21
21
|
});
|
|
22
22
|
return /* @__PURE__ */ jsx(Form, {
|
|
@@ -48,5 +48,4 @@ function GoogleDriveFoldersUpdateCommand({ defaultValues, variables, mutation })
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
|
-
export { GoogleDriveFoldersUpdateCommand };
|
|
52
|
-
//# sourceMappingURL=command-folder-update.mjs.map
|
|
51
|
+
export { GoogleDriveFoldersUpdateCommand };
|
|
@@ -12,5 +12,4 @@ declare const GoogleDriveToolbarBreadcrumbs: typeof DriveBreadcrumbs;
|
|
|
12
12
|
declare const GoogleDriveToolbarTools: typeof DriveToolbarTools;
|
|
13
13
|
declare const GoogleDriveViewSwitcher: typeof DriveViewSwitcher;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { GoogleDriveHeader, GoogleDriveHeaderBreadcrumbs, GoogleDriveHeaderTools, GoogleDriveToolbar, GoogleDriveToolbarBreadcrumbs, GoogleDriveToolbarTools, GoogleDriveViewSwitcher };
|
|
16
|
-
//# sourceMappingURL=navigation.client.d.mts.map
|
|
15
|
+
export { GoogleDriveHeader, GoogleDriveHeaderBreadcrumbs, GoogleDriveHeaderTools, GoogleDriveToolbar, GoogleDriveToolbarBreadcrumbs, GoogleDriveToolbarTools, GoogleDriveViewSwitcher };
|
|
@@ -14,5 +14,4 @@ const GoogleDriveToolbarTools = DriveToolbarTools;
|
|
|
14
14
|
const GoogleDriveViewSwitcher = DriveViewSwitcher;
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export { GoogleDriveHeader, GoogleDriveHeaderBreadcrumbs, GoogleDriveHeaderTools, GoogleDriveToolbar, GoogleDriveToolbarBreadcrumbs, GoogleDriveToolbarTools, GoogleDriveViewSwitcher };
|
|
18
|
-
//# sourceMappingURL=navigation.client.mjs.map
|
|
17
|
+
export { GoogleDriveHeader, GoogleDriveHeaderBreadcrumbs, GoogleDriveHeaderTools, GoogleDriveToolbar, GoogleDriveToolbarBreadcrumbs, GoogleDriveToolbarTools, GoogleDriveViewSwitcher };
|
|
@@ -29,5 +29,4 @@ declare function GoogleDriveProvider({
|
|
|
29
29
|
children
|
|
30
30
|
}: GoogleDriveProviderProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { GoogleDriveContext, GoogleDriveContextValue, GoogleDriveProvider, useGoogleDriveContext };
|
|
33
|
-
//# sourceMappingURL=provider.client.d.mts.map
|
|
32
|
+
export { GoogleDriveContext, GoogleDriveContextValue, GoogleDriveProvider, useGoogleDriveContext };
|
|
@@ -39,5 +39,4 @@ function GoogleDriveProvider({ initialView = "grid", namespace, permission, meta
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
|
-
export { GoogleDriveContext, GoogleDriveProvider, useGoogleDriveContext };
|
|
43
|
-
//# sourceMappingURL=provider.client.mjs.map
|
|
42
|
+
export { GoogleDriveContext, GoogleDriveProvider, useGoogleDriveContext };
|
|
@@ -37,5 +37,4 @@ declare function GoogleDriveViewLoading({
|
|
|
37
37
|
...props
|
|
38
38
|
}: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { GoogleDriveView, GoogleDriveViewLoading, GoogleDriveViewProvider };
|
|
41
|
-
//# sourceMappingURL=view.client.d.mts.map
|
|
40
|
+
export { GoogleDriveView, GoogleDriveViewLoading, GoogleDriveViewProvider };
|
|
@@ -5,7 +5,6 @@ import { DriveGridCard, DriveGridCardSkeleton } from "../../../components/grid-c
|
|
|
5
5
|
import { DriveGrid, DriveGridBottombar, DriveGridEmpty, DriveGridLoading } from "../../../components/grid.client.mjs";
|
|
6
6
|
import { useDriveViewContext } from "../../../components/view.client.mjs";
|
|
7
7
|
import { googleDriveColumns } from "../config/columns-data.mjs";
|
|
8
|
-
import { googleDriveImageLoader } from "../lib/helpers.mjs";
|
|
9
8
|
import { useGoogleDriveContext } from "./provider.client.mjs";
|
|
10
9
|
import { TableLayout, TableSkeleton } from "@tulip-systems/core/data-tables";
|
|
11
10
|
import { useMemo } from "react";
|
|
@@ -57,7 +56,7 @@ function GoogleDriveGrid(props) {
|
|
|
57
56
|
queryData.length > 0 ? queryData.map((node) => /* @__PURE__ */ jsx(DriveGridCard, {
|
|
58
57
|
node,
|
|
59
58
|
commands,
|
|
60
|
-
|
|
59
|
+
unoptimized: true
|
|
61
60
|
}, node.id)) : /* @__PURE__ */ jsx(DriveGridEmpty, { title: "Geen resultaten gevonden" }),
|
|
62
61
|
isFetchingNextPage && Array.from({ length: paginationState?.pageSize ?? 0 }).map((_, index) => /* @__PURE__ */ jsx(DriveGridCardSkeleton, {}, index)),
|
|
63
62
|
/* @__PURE__ */ jsx(DriveGridBottombar, {
|
|
@@ -94,5 +93,4 @@ function GoogleDriveViewLoading({ ...props }) {
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
//#endregion
|
|
97
|
-
export { GoogleDriveView, GoogleDriveViewLoading, GoogleDriveViewProvider };
|
|
98
|
-
//# sourceMappingURL=view.client.mjs.map
|
|
96
|
+
export { GoogleDriveView, GoogleDriveViewLoading, GoogleDriveViewProvider };
|
|
@@ -4,5 +4,4 @@ import { TableColumnDef } from "@tulip-systems/core/data-tables";
|
|
|
4
4
|
//#region src/providers/google/config/columns-data.d.ts
|
|
5
5
|
declare const googleDriveColumns: TableColumnDef<GoogleDriveNode>[];
|
|
6
6
|
//#endregion
|
|
7
|
-
export { googleDriveColumns };
|
|
8
|
-
//# sourceMappingURL=columns-data.d.mts.map
|
|
7
|
+
export { googleDriveColumns };
|