@powerhousedao/powerhouse-vetra-packages 6.2.0-dev.2 → 6.2.0-dev.21
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/browser/assets/{entry-Bzani6_n.js → entry-BzMQu_A8.js} +2 -2
- package/dist/browser/assets/{projection-entry-Bpu-8SnI.js → projection-entry-CQb9a2Bz.js} +2 -2
- package/dist/browser/{connect-ZnLjvmRt.js → connect-Bo3FDnsW.js} +45 -45
- package/dist/browser/connect-Bo3FDnsW.js.map +1 -0
- package/dist/browser/{dist-C1nRM9t2.js → dist-8DwGBjee.js} +72 -58
- package/dist/browser/dist-8DwGBjee.js.map +1 -0
- package/dist/browser/{dist-DLFI75Zd.js → dist-DXM8ccKa.js} +46 -7
- package/dist/browser/dist-DXM8ccKa.js.map +1 -0
- package/dist/browser/{document-drive-oqv68jDU.js → document-drive-sTKoi6L4.js} +314 -9
- package/dist/browser/document-drive-sTKoi6L4.js.map +1 -0
- package/dist/browser/document-models/index.js +1 -1
- package/dist/browser/{editor-CoTq6fqT.js → editor-B4oNCwiL.js} +21 -21
- package/dist/browser/editor-B4oNCwiL.js.map +1 -0
- package/dist/browser/{editor-DC3bigBu.js → editor-IU5iuNBj.js} +5 -5
- package/dist/browser/{editor-DC3bigBu.js.map → editor-IU5iuNBj.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +5 -5
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-DmYBf2pP.js → folder-view-BhY9Mjgv.js} +7 -7
- package/dist/browser/folder-view-BhY9Mjgv.js.map +1 -0
- package/dist/browser/{graphql-editor-CiGd_Li7.js → graphql-editor-Cz-MK2uE.js} +3 -3
- package/dist/browser/{graphql-editor-CiGd_Li7.js.map → graphql-editor-Cz-MK2uE.js.map} +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/{json-editor-sEqd5piI.js → json-editor-BoQLblBv.js} +3 -3
- package/dist/browser/{json-editor-sEqd5piI.js.map → json-editor-BoQLblBv.js.map} +1 -1
- package/dist/browser/{state-schemas-DJmzG_M8.js → state-schemas-C5GjGnKu.js} +12 -12
- package/dist/browser/state-schemas-C5GjGnKu.js.map +1 -0
- package/dist/node/{connect-BLC4PXD9.mjs → connect-CTnyQiGd.mjs} +45 -45
- package/dist/node/connect-CTnyQiGd.mjs.map +1 -0
- package/dist/node/{dist-Cn3iExnV.mjs → dist-C88eUERe.mjs} +46 -7
- package/dist/node/dist-C88eUERe.mjs.map +1 -0
- package/dist/node/{dist-Bm05eoTg.mjs → dist-DUNKfQX4.mjs} +72 -58
- package/dist/node/dist-DUNKfQX4.mjs.map +1 -0
- package/dist/node/{document-drive-sM33juXr.mjs → document-drive-DjL9iikf.mjs} +314 -9
- package/dist/node/document-drive-DjL9iikf.mjs.map +1 -0
- package/dist/node/document-models/index.mjs +1 -1
- package/dist/node/{editor-BFBa9nsO.mjs → editor-BckQifh7.mjs} +21 -21
- package/dist/node/editor-BckQifh7.mjs.map +1 -0
- package/dist/node/{editor-BrS98lEH.mjs → editor-m0rY3A7P.mjs} +5 -5
- package/dist/node/{editor-BrS98lEH.mjs.map → editor-m0rY3A7P.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +5 -5
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-DHph3Yuu.mjs → folder-view-ClopFdxe.mjs} +7 -7
- package/dist/node/folder-view-ClopFdxe.mjs.map +1 -0
- package/dist/node/{graphql-editor-CPq7oIbf.mjs → graphql-editor-DXkhnv8j.mjs} +3 -3
- package/dist/node/{graphql-editor-CPq7oIbf.mjs.map → graphql-editor-DXkhnv8j.mjs.map} +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/{json-editor-L32CP7TS.mjs → json-editor-Dr57NX3w.mjs} +3 -3
- package/dist/node/{json-editor-L32CP7TS.mjs.map → json-editor-Dr57NX3w.mjs.map} +1 -1
- package/dist/node/{state-schemas-XTTjQZOe.mjs → state-schemas-D6aPAH4x.mjs} +12 -12
- package/dist/node/state-schemas-D6aPAH4x.mjs.map +1 -0
- package/package.json +6 -6
- package/dist/browser/connect-ZnLjvmRt.js.map +0 -1
- package/dist/browser/dist-C1nRM9t2.js.map +0 -1
- package/dist/browser/dist-DLFI75Zd.js.map +0 -1
- package/dist/browser/document-drive-oqv68jDU.js.map +0 -1
- package/dist/browser/editor-CoTq6fqT.js.map +0 -1
- package/dist/browser/folder-view-DmYBf2pP.js.map +0 -1
- package/dist/browser/state-schemas-DJmzG_M8.js.map +0 -1
- package/dist/node/connect-BLC4PXD9.mjs.map +0 -1
- package/dist/node/dist-Bm05eoTg.mjs.map +0 -1
- package/dist/node/dist-Cn3iExnV.mjs.map +0 -1
- package/dist/node/document-drive-sM33juXr.mjs.map +0 -1
- package/dist/node/editor-BFBa9nsO.mjs.map +0 -1
- package/dist/node/folder-view-DHph3Yuu.mjs.map +0 -1
- package/dist/node/state-schemas-XTTjQZOe.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as instrumentPgPool } from "./drive-container-types-
|
|
1
|
+
import { o as instrumentPgPool } from "./drive-container-types-BxnXaOAp.js";
|
|
2
2
|
import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
|
|
3
|
-
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-
|
|
3
|
+
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-DeJ2DW16.js";
|
|
4
4
|
import { ConsoleLogger } from "document-model";
|
|
5
5
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
6
6
|
//#region src/executor/worker/run-worker.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as CollectionMembershipCache, _ as KyselyWriteCache, d as KyselyKeyframeStore, f as DocumentModelRegistry, g as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as KyselyOperationIndex, y as DocumentMetaCache } from "./drive-container-types-
|
|
1
|
+
import { S as CollectionMembershipCache, _ as KyselyWriteCache, d as KyselyKeyframeStore, f as DocumentModelRegistry, g as EventBus, n as REACTOR_SCHEMA, o as instrumentPgPool, s as KyselyOperationStore, v as KyselyOperationIndex, y as DocumentMetaCache } from "./drive-container-types-BxnXaOAp.js";
|
|
2
2
|
import { n as ReactorEventTypes } from "./types-CxSpmNGK.js";
|
|
3
3
|
import { a as ReadModelCoordinator, i as KyselyDocumentView, n as ConsistencyTracker, t as KyselyDocumentIndexer } from "./document-indexer-B2iLRB0o.js";
|
|
4
4
|
import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
|
|
5
|
-
import { n as defaultLoadFactory } from "./build-worker-executor-
|
|
5
|
+
import { n as defaultLoadFactory } from "./build-worker-executor-DeJ2DW16.js";
|
|
6
6
|
import { ConsoleLogger } from "document-model";
|
|
7
7
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
8
8
|
//#region src/projection/projection-worker/build-projection-stack.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as __commonJSMin } from "./dist-CXoKspdx.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as __spreadArray, i as __rest, r as __assign } from "./dist-
|
|
2
|
+
import { A as redo, K as undo } from "./document-drive-sTKoi6L4.js";
|
|
3
|
+
import { a as __spreadArray, i as __rest, r as __assign } from "./dist-DXM8ccKa.js";
|
|
4
4
|
import { C as twMerge, S as twJoin, _ as useLayoutEffect2, a as Item, b as useComposedRefs, c as Presence, d as useDirection, f as createCollection, g as useControllableState, h as createSlot, l as useId$1, m as dispatchDiscreteCustomEvent, o as Root$1, p as Primitive, s as createRovingFocusGroupScope, u as useCallbackRef$1, v as createContextScope, x as composeEventHandlers, y as composeRefs } from "./dist-D8H48e8N.js";
|
|
5
|
-
import { A as e$5, C as useSelectedDriveSafe, M as t$9, N as useDocumentById, O as useUserPermissions, S as useSelectedDriveId, _ as useNodeParentFolderById, a as setSelectedDrive, c as showDeleteNodeModal, d as useDownloadDocument, f as useDragNode, g as useNodeById, h as useNodeActions, j as t$10, k as e$4, l as showRevisionHistory, m as useGetSwitchboardLink, n as getSyncStatusSync, o as setSelectedNode, p as useDropNode, t as addFolder, w as useSelectedNodePath, x as useSelectedDocumentSafe } from "./dist-
|
|
5
|
+
import { A as e$5, C as useSelectedDriveSafe, M as t$9, N as useDocumentById, O as useUserPermissions, S as useSelectedDriveId, _ as useNodeParentFolderById, a as setSelectedDrive, c as showDeleteNodeModal, d as useDownloadDocument, f as useDragNode, g as useNodeById, h as useNodeActions, j as t$10, k as e$4, l as showRevisionHistory, m as useGetSwitchboardLink, n as getSyncStatusSync, o as setSelectedNode, p as useDropNode, t as addFolder, w as useSelectedNodePath, x as useSelectedDocumentSafe } from "./dist-8DwGBjee.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import React, { Fragment, Suspense, createContext, createElement, forwardRef, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7607,15 +7607,15 @@ var Portal2 = DropdownMenuPortal;
|
|
|
7607
7607
|
var Content2 = DropdownMenuContent$1;
|
|
7608
7608
|
var Item2 = DropdownMenuItem$1;
|
|
7609
7609
|
//#endregion
|
|
7610
|
-
//#region ../design-system/dist/src-
|
|
7610
|
+
//#region ../design-system/dist/src-CfIIbIOi.js
|
|
7611
7611
|
const PowerhouseButton = /* @__PURE__ */ forwardRef(function PowerhouseButton(props, ref) {
|
|
7612
7612
|
const { color = "dark", size = "medium", className = "", children, icon, iconPosition = "left", ...delegatedProps } = props;
|
|
7613
7613
|
return /* @__PURE__ */ jsxs("button", {
|
|
7614
|
-
className: twMerge("flex items-center justify-center gap-2 border border-none transition outline-none disabled:
|
|
7615
|
-
light: "bg-
|
|
7616
|
-
dark: "bg-
|
|
7617
|
-
red: "bg-
|
|
7618
|
-
blue: "bg-
|
|
7614
|
+
className: twMerge("flex items-center justify-center gap-2 border border-none transition outline-none disabled:disabled-effect", twJoin({
|
|
7615
|
+
light: "bg-secondary text-foreground hover:hover-effect active:active-effect disabled:disabled-effect",
|
|
7616
|
+
dark: "bg-primary text-primary-foreground hover:hover-effect active:active-effect disabled:disabled-effect",
|
|
7617
|
+
red: "bg-destructive text-destructive-foreground hover:hover-effect active:active-effect disabled:disabled-effect disabled:opacity-100",
|
|
7618
|
+
blue: "bg-info text-info-foreground hover:hover-effect active:active-effect disabled:disabled-effect disabled:opacity-100"
|
|
7619
7619
|
}[color], {
|
|
7620
7620
|
small: "px-2 py-1.5 text-xs rounded-md font-medium",
|
|
7621
7621
|
medium: "px-6 py-3 text-base rounded-xl font-semibold tracking-wide"
|
|
@@ -12559,14 +12559,14 @@ function Breadcrumbs() {
|
|
|
12559
12559
|
const hasSelectedDrive = !!selectedDrive;
|
|
12560
12560
|
const hasNodePath = !!selectedNodePath.length;
|
|
12561
12561
|
return /* @__PURE__ */ jsxs("div", {
|
|
12562
|
-
className: "flex h-9 flex-row items-center gap-2 p-6 text-
|
|
12562
|
+
className: "flex h-9 flex-row items-center gap-2 p-6 text-muted-foreground",
|
|
12563
12563
|
children: [
|
|
12564
12564
|
hasSelectedDrive && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
12565
12565
|
/* @__PURE__ */ jsx("button", {
|
|
12566
12566
|
type: "button",
|
|
12567
12567
|
"aria-label": "Back to home",
|
|
12568
12568
|
title: "Back to home",
|
|
12569
|
-
className: "flex items-center justify-center rounded-md p-1 text-
|
|
12569
|
+
className: "flex items-center justify-center rounded-md p-1 text-foreground transition-colors hover:hover-effect",
|
|
12570
12570
|
onClick: () => setSelectedDrive(void 0),
|
|
12571
12571
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
12572
12572
|
name: "ArrowLeft",
|
|
@@ -12588,14 +12588,14 @@ function Breadcrumbs() {
|
|
|
12588
12588
|
onClick: () => setSelectedNode(node)
|
|
12589
12589
|
}), /* @__PURE__ */ jsx("span", { children: "/" })] }, node.id)),
|
|
12590
12590
|
isAllowedToCreateDocuments && (isCreating ? /* @__PURE__ */ jsx(NodeInput, {
|
|
12591
|
-
className: "text-
|
|
12591
|
+
className: "text-foreground",
|
|
12592
12592
|
defaultValue: "New Folder",
|
|
12593
12593
|
onCancel,
|
|
12594
12594
|
onSubmit,
|
|
12595
12595
|
placeholder: "New Folder"
|
|
12596
12596
|
}) : /* @__PURE__ */ jsxs("button", {
|
|
12597
12597
|
type: "button",
|
|
12598
|
-
className: "ml-1 flex items-center justify-center gap-2 rounded-md bg-
|
|
12598
|
+
className: "ml-1 flex items-center justify-center gap-2 rounded-md bg-background px-2 py-1.5 text-foreground transition-colors hover:hover-effect",
|
|
12599
12599
|
onClick: onAddNew,
|
|
12600
12600
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
12601
12601
|
name: "Plus",
|
|
@@ -12612,7 +12612,7 @@ function Breadcrumb(props) {
|
|
|
12612
12612
|
parentId: parentId ?? void 0
|
|
12613
12613
|
});
|
|
12614
12614
|
const { isDropTarget, ...dropProps } = useDropNode(id);
|
|
12615
|
-
const containerStyles = twMerge("cursor-pointer transition-colors last-of-type:text-
|
|
12615
|
+
const containerStyles = twMerge("cursor-pointer transition-colors last-of-type:text-foreground hover:hover-effect", isDragging ? "opacity-60" : isDropTarget ? "bg-info/10" : "");
|
|
12616
12616
|
return /* @__PURE__ */ jsx("div", {
|
|
12617
12617
|
...dragProps,
|
|
12618
12618
|
...dropProps,
|
|
@@ -12637,7 +12637,7 @@ function ToolbarContainer(props) {
|
|
|
12637
12637
|
const { children, className, ...rest } = props;
|
|
12638
12638
|
return /* @__PURE__ */ jsx("div", {
|
|
12639
12639
|
...rest,
|
|
12640
|
-
className: twMerge("flex h-12 w-full items-center justify-between rounded-xl border border-
|
|
12640
|
+
className: twMerge("flex h-12 w-full items-center justify-between rounded-xl border border-border bg-background px-4", className),
|
|
12641
12641
|
children
|
|
12642
12642
|
});
|
|
12643
12643
|
}
|
|
@@ -12703,7 +12703,7 @@ function ToolbarButton(props) {
|
|
|
12703
12703
|
return /* @__PURE__ */ jsx("button", {
|
|
12704
12704
|
...rest,
|
|
12705
12705
|
disabled,
|
|
12706
|
-
className: twMerge("grid size-fit place-items-center rounded-lg border border-
|
|
12706
|
+
className: twMerge("grid size-fit place-items-center rounded-lg border border-border bg-background p-1 text-foreground hover:hover-effect active:active-effect disabled:disabled-effect", className),
|
|
12707
12707
|
children
|
|
12708
12708
|
});
|
|
12709
12709
|
}
|
|
@@ -12861,7 +12861,7 @@ function ToolbarInput(props) {
|
|
|
12861
12861
|
const { defaultValue, className, onSubmit, onCancel, "aria-label": ariaLabel } = props;
|
|
12862
12862
|
return /* @__PURE__ */ jsx(NodeInput, {
|
|
12863
12863
|
defaultValue,
|
|
12864
|
-
className: twMerge("text-center text-sm font-medium text-
|
|
12864
|
+
className: twMerge("text-center text-sm font-medium text-muted-foreground", className),
|
|
12865
12865
|
"aria-label": ariaLabel,
|
|
12866
12866
|
onCancel,
|
|
12867
12867
|
onSubmit
|
|
@@ -12897,7 +12897,7 @@ function ToolbarName(props) {
|
|
|
12897
12897
|
"aria-label": "Document name"
|
|
12898
12898
|
});
|
|
12899
12899
|
return /* @__PURE__ */ jsx("h1", {
|
|
12900
|
-
className: twMerge("cursor-pointer text-sm font-medium text-
|
|
12900
|
+
className: twMerge("cursor-pointer text-sm font-medium text-muted-foreground hover:hover-effect", titleClassName),
|
|
12901
12901
|
onClick: activateEditing,
|
|
12902
12902
|
title: "Click to edit",
|
|
12903
12903
|
children: documentName
|
|
@@ -13092,9 +13092,9 @@ function ConnectDropdownMenu(props) {
|
|
|
13092
13092
|
className: "outline-none",
|
|
13093
13093
|
children
|
|
13094
13094
|
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
13095
|
-
className: twMerge("cursor-pointer rounded-2xl border border-
|
|
13095
|
+
className: twMerge("cursor-pointer rounded-2xl border border-border bg-popover text-sm font-medium text-muted-foreground shadow-lg", menuClassName),
|
|
13096
13096
|
children: items.map(({ id, label, icon, className }) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
13097
|
-
className: twMerge("flex items-center px-5 py-2 outline-none first-of-type:rounded-t-2xl first-of-type:pt-3 last-of-type:rounded-b-2xl last-of-type:pb-3 hover:
|
|
13097
|
+
className: twMerge("flex items-center px-5 py-2 outline-none first-of-type:rounded-t-2xl first-of-type:pt-3 last-of-type:rounded-b-2xl last-of-type:pb-3 hover:hover-effect", className),
|
|
13098
13098
|
onClick: (e) => e.stopPropagation(),
|
|
13099
13099
|
onSelect: () => onItemClick(id),
|
|
13100
13100
|
children: [icon ? /* @__PURE__ */ jsx("span", {
|
|
@@ -13138,7 +13138,7 @@ const folderNodeDropdownOptions = {
|
|
|
13138
13138
|
name: "Trash",
|
|
13139
13139
|
size: 16
|
|
13140
13140
|
}),
|
|
13141
|
-
className: "text-
|
|
13141
|
+
className: "text-destructive"
|
|
13142
13142
|
}
|
|
13143
13143
|
};
|
|
13144
13144
|
const fileNodeDropdownOptions = {
|
|
@@ -13175,37 +13175,37 @@ function SyncStatusIcon(props) {
|
|
|
13175
13175
|
[INITIAL_SYNC]: /* @__PURE__ */ jsx(Icon, {
|
|
13176
13176
|
size: 16,
|
|
13177
13177
|
...iconProps,
|
|
13178
|
-
className: twMerge("text-
|
|
13178
|
+
className: twMerge("text-info", className),
|
|
13179
13179
|
name: icons[INITIAL_SYNC]
|
|
13180
13180
|
}),
|
|
13181
13181
|
[SYNCING]: /* @__PURE__ */ jsx(Icon, {
|
|
13182
13182
|
size: 16,
|
|
13183
13183
|
...iconProps,
|
|
13184
|
-
className: twMerge("text-
|
|
13184
|
+
className: twMerge("text-info", className),
|
|
13185
13185
|
name: icons[SYNCING]
|
|
13186
13186
|
}),
|
|
13187
13187
|
[SUCCESS]: /* @__PURE__ */ jsx(Icon, {
|
|
13188
13188
|
size: 16,
|
|
13189
13189
|
...iconProps,
|
|
13190
|
-
className: twMerge("text-
|
|
13190
|
+
className: twMerge("text-success", className),
|
|
13191
13191
|
name: icons[SUCCESS]
|
|
13192
13192
|
}),
|
|
13193
13193
|
[CONFLICT]: /* @__PURE__ */ jsx(Icon, {
|
|
13194
13194
|
size: 16,
|
|
13195
13195
|
...iconProps,
|
|
13196
|
-
className: twMerge("text-
|
|
13196
|
+
className: twMerge("text-warning", className),
|
|
13197
13197
|
name: icons[CONFLICT]
|
|
13198
13198
|
}),
|
|
13199
13199
|
[MISSING]: /* @__PURE__ */ jsx(Icon, {
|
|
13200
13200
|
size: 16,
|
|
13201
13201
|
...iconProps,
|
|
13202
|
-
className: twMerge("text-
|
|
13202
|
+
className: twMerge("text-destructive", className),
|
|
13203
13203
|
name: icons[MISSING]
|
|
13204
13204
|
}),
|
|
13205
13205
|
[ERROR]: /* @__PURE__ */ jsx(Icon, {
|
|
13206
13206
|
size: 16,
|
|
13207
13207
|
...iconProps,
|
|
13208
|
-
className: twMerge("text-
|
|
13208
|
+
className: twMerge("text-destructive", className),
|
|
13209
13209
|
name: icons[ERROR]
|
|
13210
13210
|
})
|
|
13211
13211
|
}[syncStatus];
|
|
@@ -13271,7 +13271,7 @@ function FileItem(props) {
|
|
|
13271
13271
|
width: 32,
|
|
13272
13272
|
draggable: false
|
|
13273
13273
|
}) : /* @__PURE__ */ jsx(DefaultFileIcon, {}), isReadMode && syncStatus && /* @__PURE__ */ jsx("div", {
|
|
13274
|
-
className: "absolute right-0 bottom-[-2px] size-3 rounded-full bg-
|
|
13274
|
+
className: "absolute right-0 bottom-[-2px] size-3 rounded-full bg-background",
|
|
13275
13275
|
children: /* @__PURE__ */ jsx("div", {
|
|
13276
13276
|
className: "absolute top-[-2px] left-[-2px]",
|
|
13277
13277
|
children: /* @__PURE__ */ jsx(SyncStatusIcon, {
|
|
@@ -13281,16 +13281,16 @@ function FileItem(props) {
|
|
|
13281
13281
|
})
|
|
13282
13282
|
})]
|
|
13283
13283
|
});
|
|
13284
|
-
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-
|
|
13284
|
+
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-muted px-2 text-foreground select-none hover:hover-effect", isDragging ? "opacity-60" : "", className);
|
|
13285
13285
|
const content = isReadMode ? /* @__PURE__ */ jsxs("div", {
|
|
13286
13286
|
className: "flex w-52 items-center justify-between",
|
|
13287
13287
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
13288
13288
|
className: "mr-2 truncate group-hover:mr-0",
|
|
13289
13289
|
children: [/* @__PURE__ */ jsx("div", {
|
|
13290
|
-
className: "max-h-6 truncate text-sm font-medium text-
|
|
13290
|
+
className: "max-h-6 truncate text-sm font-medium text-foreground group-hover:hover-effect",
|
|
13291
13291
|
children: fileNode.name
|
|
13292
13292
|
}), /* @__PURE__ */ jsx("div", {
|
|
13293
|
-
className: "max-h-6 truncate text-xs font-medium text-
|
|
13293
|
+
className: "max-h-6 truncate text-xs font-medium text-muted-foreground group-hover:hover-effect",
|
|
13294
13294
|
children: fileNode.documentType
|
|
13295
13295
|
})]
|
|
13296
13296
|
}), isAllowedToCreateDocuments ? /* @__PURE__ */ jsx(ConnectDropdownMenu, {
|
|
@@ -13305,7 +13305,7 @@ function FileItem(props) {
|
|
|
13305
13305
|
setIsDropdownMenuOpen(true);
|
|
13306
13306
|
},
|
|
13307
13307
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
13308
|
-
className: "text-
|
|
13308
|
+
className: "text-foreground",
|
|
13309
13309
|
name: "VerticalDots"
|
|
13310
13310
|
})
|
|
13311
13311
|
})
|
|
@@ -13334,7 +13334,7 @@ function FileItem(props) {
|
|
|
13334
13334
|
}
|
|
13335
13335
|
function DefaultFileIcon() {
|
|
13336
13336
|
return /* @__PURE__ */ jsx("div", {
|
|
13337
|
-
className: "text-
|
|
13337
|
+
className: "text-primary-foreground",
|
|
13338
13338
|
children: /* @__PURE__ */ jsxs("svg", {
|
|
13339
13339
|
width: "32",
|
|
13340
13340
|
height: "40",
|
|
@@ -13478,7 +13478,7 @@ function FolderItem(props) {
|
|
|
13478
13478
|
setIsDropdownMenuOpen(false);
|
|
13479
13479
|
}
|
|
13480
13480
|
const content = isReadMode || !isAllowedToCreateDocuments ? /* @__PURE__ */ jsx("div", {
|
|
13481
|
-
className: "ml-3 max-h-6 truncate font-medium text-
|
|
13481
|
+
className: "ml-3 max-h-6 truncate font-medium text-foreground group-hover:hover-effect",
|
|
13482
13482
|
children: folderNode.name
|
|
13483
13483
|
}) : /* @__PURE__ */ jsx(NodeInput, {
|
|
13484
13484
|
className: "ml-3 font-medium",
|
|
@@ -13486,9 +13486,9 @@ function FolderItem(props) {
|
|
|
13486
13486
|
onCancel,
|
|
13487
13487
|
onSubmit
|
|
13488
13488
|
});
|
|
13489
|
-
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-
|
|
13489
|
+
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-muted px-2 select-none", isDragging ? "opacity-60" : isDropTarget ? "bg-info/10" : "", className);
|
|
13490
13490
|
return /* @__PURE__ */ jsx("div", {
|
|
13491
|
-
className: "relative w-64",
|
|
13491
|
+
className: "relative w-64 hover:hover-effect",
|
|
13492
13492
|
onClick: isReadMode ? () => setSelectedNode(folderNode) : void 0,
|
|
13493
13493
|
children: /* @__PURE__ */ jsxs("div", {
|
|
13494
13494
|
...dragProps,
|
|
@@ -13499,7 +13499,7 @@ function FolderItem(props) {
|
|
|
13499
13499
|
children: [/* @__PURE__ */ jsx("div", {
|
|
13500
13500
|
className: "p-1",
|
|
13501
13501
|
children: /* @__PURE__ */ jsx("div", {
|
|
13502
|
-
className: "relative text-
|
|
13502
|
+
className: "relative text-foreground",
|
|
13503
13503
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
13504
13504
|
name: "FolderClose",
|
|
13505
13505
|
size: 24
|
|
@@ -13518,7 +13518,7 @@ function FolderItem(props) {
|
|
|
13518
13518
|
setIsDropdownMenuOpen(true);
|
|
13519
13519
|
},
|
|
13520
13520
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
13521
|
-
className: "text-
|
|
13521
|
+
className: "text-foreground",
|
|
13522
13522
|
name: "VerticalDots"
|
|
13523
13523
|
})
|
|
13524
13524
|
})
|
|
@@ -13532,7 +13532,7 @@ const FilterItem = (props) => {
|
|
|
13532
13532
|
className: twMerge("flex h-full flex-row items-center justify-between gap-x-4 px-2", typeof className === "string" && className),
|
|
13533
13533
|
...containerProps,
|
|
13534
13534
|
children: [item.icon, /* @__PURE__ */ jsx("div", {
|
|
13535
|
-
className: "text-sm font-semibold text-
|
|
13535
|
+
className: "text-sm font-semibold text-foreground",
|
|
13536
13536
|
children: item.label
|
|
13537
13537
|
})]
|
|
13538
13538
|
});
|
|
@@ -13548,7 +13548,7 @@ const ConnectSearchBar = (props) => {
|
|
|
13548
13548
|
className: "gap-x-1",
|
|
13549
13549
|
item: selectedItemFilter
|
|
13550
13550
|
}) : filterLabel && /* @__PURE__ */ jsx("div", {
|
|
13551
|
-
className: "mr-2 text-sm font-semibold text-
|
|
13551
|
+
className: "mr-2 text-sm font-semibold text-foreground",
|
|
13552
13552
|
children: filterLabel
|
|
13553
13553
|
});
|
|
13554
13554
|
function handleChange(event) {
|
|
@@ -13558,11 +13558,11 @@ const ConnectSearchBar = (props) => {
|
|
|
13558
13558
|
className: twMerge("flex items-center", className),
|
|
13559
13559
|
children: [
|
|
13560
13560
|
/* @__PURE__ */ jsx(Icon, {
|
|
13561
|
-
className: "mr-3 text-
|
|
13561
|
+
className: "mr-3 text-foreground",
|
|
13562
13562
|
name: "Search"
|
|
13563
13563
|
}),
|
|
13564
13564
|
/* @__PURE__ */ jsx("input", {
|
|
13565
|
-
className: twMerge("flex h-[52px] min-w-0 flex-1 items-center rounded-xl border border-
|
|
13565
|
+
className: twMerge("flex h-[52px] min-w-0 flex-1 items-center rounded-xl border border-border bg-background px-4 text-sm text-foreground outline-none"),
|
|
13566
13566
|
onChange: handleChange,
|
|
13567
13567
|
placeholder,
|
|
13568
13568
|
value
|
|
@@ -13575,9 +13575,9 @@ const ConnectSearchBar = (props) => {
|
|
|
13575
13575
|
/* @__PURE__ */ jsx(Icon, { name: "ChevronDown" })
|
|
13576
13576
|
]
|
|
13577
13577
|
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
13578
|
-
className: "rounded-xl border border-
|
|
13578
|
+
className: "rounded-xl border border-border bg-background p-2",
|
|
13579
13579
|
children: items.map((item) => /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
13580
|
-
className: "h-10 cursor-pointer overflow-hidden rounded-lg hover:
|
|
13580
|
+
className: "h-10 cursor-pointer overflow-hidden rounded-lg hover:hover-effect",
|
|
13581
13581
|
id: item.id,
|
|
13582
13582
|
onSelect: () => onFilterSelect(item.id),
|
|
13583
13583
|
children: item.content
|
|
@@ -13589,4 +13589,4 @@ const ConnectSearchBar = (props) => {
|
|
|
13589
13589
|
//#endregion
|
|
13590
13590
|
export { FolderItem as a, FormProvider as c, set as d, useForm as f, Icon as g, useWindowSize as h, FileItem as i, appendErrors as l, PowerhouseButton as m, ConnectSearchBar as n, useVirtualizer as o, useFormContext as p, DocumentToolbar as r, Controller as s, Breadcrumbs as t, get as u };
|
|
13591
13591
|
|
|
13592
|
-
//# sourceMappingURL=connect-
|
|
13592
|
+
//# sourceMappingURL=connect-Bo3FDnsW.js.map
|