@powerhousedao/design-system 6.2.2-dev.4 → 6.2.2-dev.40
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/{command-tFzjgzge.d.ts → command-C_iXJ_6a.d.ts} +8 -8
- package/dist/{command-tFzjgzge.d.ts.map → command-C_iXJ_6a.d.ts.map} +1 -1
- package/dist/connect/index.d.ts +202 -40
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +721 -381
- package/dist/connect/index.js.map +1 -1
- package/dist/{enum-field-CwZVs3Ux.d.ts → enum-field-UxIet5Lp.d.ts} +2 -2
- package/dist/{enum-field-CwZVs3Ux.d.ts.map → enum-field-UxIet5Lp.d.ts.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DpUTb0dJ.js → src-CVV6HzQZ.js} +2 -2
- package/dist/src-CVV6HzQZ.js.map +1 -0
- package/dist/ui/components/command/command.d.ts +1 -1
- package/dist/ui/components/enum-field/enum-field.d.ts +1 -1
- package/dist/ui/components/index.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/package.json +4 -4
- package/theme.css +9 -0
- package/dist/src-DpUTb0dJ.js.map +0 -1
|
@@ -7,7 +7,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean;
|
|
10
|
-
}, "
|
|
10
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
11
11
|
label?: string;
|
|
12
12
|
shouldFilter?: boolean;
|
|
13
13
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
22
22
|
ref?: React.Ref<HTMLInputElement>;
|
|
23
23
|
} & {
|
|
24
24
|
asChild?: boolean;
|
|
25
|
-
}, "
|
|
25
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
26
26
|
value?: string;
|
|
27
27
|
onValueChange?: (search: string) => void;
|
|
28
28
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
@@ -34,7 +34,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
34
34
|
ref?: React.Ref<HTMLDivElement>;
|
|
35
35
|
} & {
|
|
36
36
|
asChild?: boolean;
|
|
37
|
-
}, "
|
|
37
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
38
38
|
label?: string;
|
|
39
39
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -43,7 +43,7 @@ declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
|
43
43
|
ref?: React.Ref<HTMLDivElement>;
|
|
44
44
|
} & {
|
|
45
45
|
asChild?: boolean;
|
|
46
|
-
}, "
|
|
46
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
47
47
|
progress?: number;
|
|
48
48
|
label?: string;
|
|
49
49
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -53,14 +53,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
53
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
54
54
|
} & {
|
|
55
55
|
asChild?: boolean;
|
|
56
|
-
}, "
|
|
56
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
57
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
58
58
|
children?: React.ReactNode;
|
|
59
59
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
60
60
|
ref?: React.Ref<HTMLDivElement>;
|
|
61
61
|
} & {
|
|
62
62
|
asChild?: boolean;
|
|
63
|
-
}, "
|
|
63
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
64
64
|
heading?: React.ReactNode;
|
|
65
65
|
value?: string;
|
|
66
66
|
forceMount?: boolean;
|
|
@@ -71,7 +71,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
71
71
|
ref?: React.Ref<HTMLDivElement>;
|
|
72
72
|
} & {
|
|
73
73
|
asChild?: boolean;
|
|
74
|
-
}, "
|
|
74
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
onSelect?: (value: string) => void;
|
|
77
77
|
value?: string;
|
|
@@ -80,4 +80,4 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
80
80
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { CommandItem as a, CommandInput as i, CommandEmpty as n, CommandList as o, CommandGroup as r, CommandLoading as s, Command as t };
|
|
83
|
-
//# sourceMappingURL=command-
|
|
83
|
+
//# sourceMappingURL=command-C_iXJ_6a.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-
|
|
1
|
+
{"version":3,"file":"command-C_iXJ_6a.d.ts","names":[],"sources":["../src/ui/components/command/command.tsx"],"mappings":";;;cAKM,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;cAeP,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,KAAA,CAAA,iBAAA,CAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA,GAAA,gBAAA,iBAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA;;;;;;;;;;cAyCZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;cAoBX,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;cAMd,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;cAMZ,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;cAgBZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA"}
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as Size, F as SidebarHeader, P as SidebarFooter, S as SelectOption, T as DivProps, X as Icon, Y as Modal, _t as SUCCESS, et as IconName, ft as AppOptions, gt as MISSING, ht as INITIAL_SYNC, mt as ERROR, pt as CONFLICT, ut as SyncStatus$1, vt as SYNCING, yt as syncStatuses } from "../index--hDSfvJT.js";
|
|
2
2
|
import * as react from "react";
|
|
3
|
-
import React$1, { CSSProperties, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
3
|
+
import React$1, { CSSProperties, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, FC, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as _radix_ui_react_tooltip0 from "@radix-ui/react-tooltip";
|
|
6
6
|
import { TooltipProps } from "@radix-ui/react-tooltip";
|
|
@@ -17,17 +17,42 @@ import { RegistryPackage, RegistryPackageList } from "@powerhousedao/shared/regi
|
|
|
17
17
|
interface AccountPopoverProps {
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
content: ReactNode;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
22
|
}
|
|
21
23
|
declare const AccountPopover: ({
|
|
22
24
|
children,
|
|
23
|
-
content
|
|
25
|
+
content,
|
|
26
|
+
open,
|
|
27
|
+
onOpenChange
|
|
24
28
|
}: AccountPopoverProps) => react_jsx_runtime0.JSX.Element;
|
|
25
29
|
//#endregion
|
|
30
|
+
//#region src/connect/components/account-popover/account-popover-login.d.ts
|
|
31
|
+
interface AccountPopoverLoginProps {
|
|
32
|
+
onLogin: (() => void) | undefined;
|
|
33
|
+
}
|
|
34
|
+
declare const AccountPopoverLogin: FC<AccountPopoverLoginProps>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/connect/components/renown-login/renown-login-methods.d.ts
|
|
37
|
+
interface RenownLoginOption {
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
onSelect: () => void;
|
|
41
|
+
lastUsed?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface RenownLoginMethodsProps {
|
|
44
|
+
methods: RenownLoginOption[];
|
|
45
|
+
loading?: boolean;
|
|
46
|
+
error?: string | null;
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
declare const RenownLoginMethods: FC<RenownLoginMethodsProps>;
|
|
50
|
+
//#endregion
|
|
26
51
|
//#region src/connect/components/animated-loader/animated-loader.d.ts
|
|
27
|
-
type Props$
|
|
52
|
+
type Props$11 = ComponentPropsWithoutRef<"video"> & {
|
|
28
53
|
readonly size?: Size;
|
|
29
54
|
};
|
|
30
|
-
declare function AnimatedLoader(props: Props$
|
|
55
|
+
declare function AnimatedLoader(props: Props$11): react_jsx_runtime0.JSX.Element;
|
|
31
56
|
//#endregion
|
|
32
57
|
//#region src/connect/components/breadcrumbs/breadcrumbs.d.ts
|
|
33
58
|
declare function Breadcrumbs(): react_jsx_runtime0.JSX.Element;
|
|
@@ -41,13 +66,13 @@ declare function Breadcrumb(props: BreadcrumbProps): react_jsx_runtime0.JSX.Elem
|
|
|
41
66
|
//#endregion
|
|
42
67
|
//#region src/connect/components/combobox/combobox.d.ts
|
|
43
68
|
type SelectProps = ComponentPropsWithoutRef<typeof Select>;
|
|
44
|
-
type Props$
|
|
69
|
+
type Props$10 = Omit<SelectProps, "components" | "styles" | "theme"> & {
|
|
45
70
|
readonly addItemButtonProps?: {
|
|
46
71
|
label?: ReactNode;
|
|
47
72
|
onClick?: () => void;
|
|
48
73
|
};
|
|
49
74
|
};
|
|
50
|
-
declare function Combobox(props: Props$
|
|
75
|
+
declare function Combobox(props: Props$10): react_jsx_runtime0.JSX.Element;
|
|
51
76
|
//#endregion
|
|
52
77
|
//#region src/connect/components/cookie-banner/cookie-banner.d.ts
|
|
53
78
|
type CookieInput = {
|
|
@@ -587,17 +612,12 @@ declare function ToolbarName(props: {
|
|
|
587
612
|
interface DriveAuthGateProps {
|
|
588
613
|
/** Visual state — `"login"` (anonymous) or `"unauthorized"` (already signed in, not the owner). Defaults to `"login"`. */
|
|
589
614
|
readonly mode?: "login" | "unauthorized";
|
|
590
|
-
/**
|
|
615
|
+
/** Opens the login flow (e.g. `showPHModal({ type: "login" })`); the login methods live in that modal, not here. */
|
|
591
616
|
readonly onLogin?: () => void;
|
|
592
617
|
/** Logout action used in `"unauthorized"` mode. */
|
|
593
618
|
readonly onLogout?: () => void;
|
|
594
619
|
readonly className?: string;
|
|
595
620
|
}
|
|
596
|
-
/**
|
|
597
|
-
* Reusable "log in to access this drive" card. Used both as the content of the
|
|
598
|
-
* drive-add auth modal and as the full-page gate shown when the user logs out
|
|
599
|
-
* while inside a protected drive — so the two stay visually identical.
|
|
600
|
-
*/
|
|
601
621
|
declare function DriveAuthGate(props: DriveAuthGateProps): react_jsx_runtime0.JSX.Element;
|
|
602
622
|
//#endregion
|
|
603
623
|
//#region src/connect/components/drop-zone/drop-zone-wrapper.d.ts
|
|
@@ -648,6 +668,10 @@ type UploadTracker = {
|
|
|
648
668
|
duplicateType?: "id" | "name";
|
|
649
669
|
};
|
|
650
670
|
type OnAddFileWithProgress = (file: File, parent: Node | undefined, onProgress?: (progress: FileUploadProgress) => void, resolveConflict?: ConflictResolution) => Promise<Node | undefined> | Node | undefined;
|
|
671
|
+
declare function generateId(): string;
|
|
672
|
+
declare function formatFileSize(bytes: number): string;
|
|
673
|
+
declare function mapProgressStageToStatus(stage: FileUploadProgress["stage"]): UploadTracker["status"];
|
|
674
|
+
declare function mapUploadsToFileItems(uploadsArray: (UploadTracker | undefined)[], removeUpload: (uploadId: string) => void, setSelectedNodeFn?: (nodeOrNodeSlug: Node | string | undefined) => void, onConflictResolution?: (uploadId: string) => void): UploadFileItemProps[];
|
|
651
675
|
//#endregion
|
|
652
676
|
//#region src/connect/components/drop-zone/drop-zone.d.ts
|
|
653
677
|
type DropZoneProps = ComponentPropsWithoutRef<"div"> & {
|
|
@@ -712,21 +736,21 @@ type EditorUndoRedoButtonsProps = {
|
|
|
712
736
|
declare function EditorUndoRedoButtons(props: EditorUndoRedoButtonsProps): react_jsx_runtime0.JSX.Element;
|
|
713
737
|
//#endregion
|
|
714
738
|
//#region src/connect/components/ens-avatar/ens-avatar.d.ts
|
|
715
|
-
type Props$
|
|
739
|
+
type Props$9 = {
|
|
716
740
|
readonly address: `0x${string}`;
|
|
717
741
|
readonly chainId?: number;
|
|
718
742
|
readonly avatarUrl?: string;
|
|
719
743
|
readonly size?: CSSProperties["width"];
|
|
720
744
|
};
|
|
721
|
-
declare function ENSAvatar(props: Props$
|
|
745
|
+
declare function ENSAvatar(props: Props$9): react_jsx_runtime0.JSX.Element;
|
|
722
746
|
//#endregion
|
|
723
747
|
//#region src/connect/components/file-item/file-item.d.ts
|
|
724
|
-
type Props$
|
|
748
|
+
type Props$8 = {
|
|
725
749
|
fileNode: FileNode;
|
|
726
750
|
className?: string;
|
|
727
751
|
customDocumentIconSrc?: string;
|
|
728
752
|
};
|
|
729
|
-
declare function FileItem(props: Props$
|
|
753
|
+
declare function FileItem(props: Props$8): react_jsx_runtime0.JSX.Element;
|
|
730
754
|
//#endregion
|
|
731
755
|
//#region src/connect/components/folder-item/folder-item.d.ts
|
|
732
756
|
declare function FolderItem(props: {
|
|
@@ -895,6 +919,24 @@ type CreateDocumentModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
|
895
919
|
};
|
|
896
920
|
declare function CreateDocumentModal(props: CreateDocumentModalProps): react_jsx_runtime0.JSX.Element;
|
|
897
921
|
//#endregion
|
|
922
|
+
//#region src/connect/components/modal/create-document-with-type-modal.d.ts
|
|
923
|
+
type DocumentTypeOption = {
|
|
924
|
+
readonly documentType: string;
|
|
925
|
+
readonly name: string;
|
|
926
|
+
readonly version?: number;
|
|
927
|
+
readonly description?: string;
|
|
928
|
+
};
|
|
929
|
+
type CreateDocumentWithTypeModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
930
|
+
readonly documentTypes: readonly DocumentTypeOption[];
|
|
931
|
+
readonly onCreate: (input: {
|
|
932
|
+
name: string;
|
|
933
|
+
documentType: string;
|
|
934
|
+
version?: number;
|
|
935
|
+
}) => void;
|
|
936
|
+
readonly onTypeSelected?: (documentType: string) => void;
|
|
937
|
+
};
|
|
938
|
+
declare function CreateDocumentWithTypeModal(props: CreateDocumentWithTypeModalProps): react_jsx_runtime0.JSX.Element;
|
|
939
|
+
//#endregion
|
|
898
940
|
//#region src/connect/components/modal/delete-drive-modal.d.ts
|
|
899
941
|
interface ConnectDeleteDriveModalProps extends ConfirmationModalProps {
|
|
900
942
|
readonly inputPlaceholder: string;
|
|
@@ -1079,6 +1121,11 @@ type PackageInstallModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
|
1079
1121
|
};
|
|
1080
1122
|
declare function PackageInstallModal(props: PackageInstallModalProps): react_jsx_runtime0.JSX.Element | null;
|
|
1081
1123
|
//#endregion
|
|
1124
|
+
//#region src/connect/components/modal/modal-button.d.ts
|
|
1125
|
+
declare function ModalButton(props: ComponentProps<"button"> & {
|
|
1126
|
+
variant: "confirm" | "cancel";
|
|
1127
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
1128
|
+
//#endregion
|
|
1082
1129
|
//#region src/connect/components/modal/read-required-modal.d.ts
|
|
1083
1130
|
type ModalProps$1 = ComponentPropsWithoutRef<typeof Modal>;
|
|
1084
1131
|
type ReadRequiredModalProps = {
|
|
@@ -1110,11 +1157,11 @@ type ConnectReplaceDuplicateModalProps = {
|
|
|
1110
1157
|
declare function ConnectReplaceDuplicateModal(props: ConnectReplaceDuplicateModalProps): react_jsx_runtime0.JSX.Element;
|
|
1111
1158
|
//#endregion
|
|
1112
1159
|
//#region src/connect/components/modal/settings-modal-v2/about.d.ts
|
|
1113
|
-
type Props$
|
|
1160
|
+
type Props$7 = {
|
|
1114
1161
|
packageJson: unknown;
|
|
1115
1162
|
phCliVersion?: string;
|
|
1116
1163
|
};
|
|
1117
|
-
declare function About(props: Props$
|
|
1164
|
+
declare function About(props: Props$7): react_jsx_runtime0.JSX.Element;
|
|
1118
1165
|
//#endregion
|
|
1119
1166
|
//#region src/connect/components/modal/settings-modal-v2/danger-zone.d.ts
|
|
1120
1167
|
type ModifyDrivesProps = {
|
|
@@ -1126,57 +1173,161 @@ type LocalStorageProps = {
|
|
|
1126
1173
|
onClearStorage: () => void | Promise<void>;
|
|
1127
1174
|
className?: string;
|
|
1128
1175
|
};
|
|
1129
|
-
type Props$
|
|
1130
|
-
declare function DangerZone(props: Props$
|
|
1176
|
+
type Props$6 = ModifyDrivesProps & LocalStorageProps;
|
|
1177
|
+
declare function DangerZone(props: Props$6): react_jsx_runtime0.JSX.Element;
|
|
1131
1178
|
//#endregion
|
|
1132
1179
|
//#region src/connect/components/modal/settings-modal-v2/default-editor.d.ts
|
|
1133
|
-
type Props$
|
|
1180
|
+
type Props$5 = {
|
|
1134
1181
|
documentModelEditor: string;
|
|
1135
1182
|
setDocumentModelEditor: (value: string) => void;
|
|
1136
1183
|
documentModelEditorOptions: SelectOption[];
|
|
1137
1184
|
className?: string;
|
|
1138
1185
|
};
|
|
1139
|
-
declare function DefaultEditor(props: Props$
|
|
1140
|
-
declare function DefaultEditorSelect(props: Props$
|
|
1186
|
+
declare function DefaultEditor(props: Props$5): react_jsx_runtime0.JSX.Element;
|
|
1187
|
+
declare function DefaultEditorSelect(props: Props$5): react_jsx_runtime0.JSX.Element;
|
|
1188
|
+
//#endregion
|
|
1189
|
+
//#region src/connect/components/modal/settings-modal-v2/package-manager/available-packages-panel.d.ts
|
|
1190
|
+
type AvailablePackagesPanelProps = {
|
|
1191
|
+
/**
|
|
1192
|
+
* status: available | dismissed. In server-search mode these are already
|
|
1193
|
+
* filtered by the registry; otherwise they're filtered client-side here.
|
|
1194
|
+
*/
|
|
1195
|
+
packages: RegistryPackageList;
|
|
1196
|
+
/**
|
|
1197
|
+
* Bare names of installed packages — suppresses the npm-fallback row for
|
|
1198
|
+
* packages the user already has (they live on the Installed tab).
|
|
1199
|
+
*/
|
|
1200
|
+
installedNames: string[];
|
|
1201
|
+
query: string;
|
|
1202
|
+
onQueryChange: (query: string) => void;
|
|
1203
|
+
/**
|
|
1204
|
+
* When true, `packages` is already server-filtered for `query` — skip the
|
|
1205
|
+
* client-side `filterPackages`. Set by the connect layer once the paginated
|
|
1206
|
+
* search endpoint is wired.
|
|
1207
|
+
*/
|
|
1208
|
+
serverSearch?: boolean; /** true while the first page / a new search is loading. */
|
|
1209
|
+
isLoading?: boolean; /** true while an additional page is being appended (infinite scroll). */
|
|
1210
|
+
isLoadingMore?: boolean; /** more pages exist on the server. */
|
|
1211
|
+
hasMore?: boolean; /** request the next page (infinite scroll). */
|
|
1212
|
+
onLoadMore?: () => void;
|
|
1213
|
+
/**
|
|
1214
|
+
* Registry fetch failed. Presence-only — the panel never surfaces raw API
|
|
1215
|
+
* messages; see `PackageRegistryError` for the user-facing copy.
|
|
1216
|
+
*/
|
|
1217
|
+
error?: boolean; /** retry the current fetch after an error. */
|
|
1218
|
+
onRetry?: () => void;
|
|
1219
|
+
mutable: boolean;
|
|
1220
|
+
onInstall: (packageSpec: string) => Promise<void>;
|
|
1221
|
+
onUninstall: (packageName: string) => void;
|
|
1222
|
+
disabled?: boolean;
|
|
1223
|
+
};
|
|
1224
|
+
declare const AvailablePackagesPanel: React.FC<AvailablePackagesPanelProps>;
|
|
1141
1225
|
//#endregion
|
|
1142
|
-
//#region src/connect/components/modal/settings-modal-v2/package-manager/
|
|
1143
|
-
type
|
|
1144
|
-
|
|
1226
|
+
//#region src/connect/components/modal/settings-modal-v2/package-manager/installed-packages-panel.d.ts
|
|
1227
|
+
type InstalledPackagesPanelProps = {
|
|
1228
|
+
/** status: local-install | registry-install */packages: RegistryPackageList;
|
|
1229
|
+
query: string;
|
|
1230
|
+
onQueryChange: (query: string) => void;
|
|
1145
1231
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1232
|
+
onUninstall: (packageName: string) => void;
|
|
1146
1233
|
disabled?: boolean;
|
|
1147
|
-
className?: string;
|
|
1148
1234
|
};
|
|
1149
|
-
declare const
|
|
1235
|
+
declare const InstalledPackagesPanel: React.FC<InstalledPackagesPanelProps>;
|
|
1150
1236
|
//#endregion
|
|
1151
1237
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.d.ts
|
|
1152
1238
|
declare const PackageManagerListItem: (props: {
|
|
1153
1239
|
registryPackage: RegistryPackage;
|
|
1154
1240
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1155
1241
|
onUninstall: (packageName: string) => void;
|
|
1242
|
+
/**
|
|
1243
|
+
* Tag/version typed in the search query (`pkg@dev`) — preselects the
|
|
1244
|
+
* matching entry in the version picker.
|
|
1245
|
+
*/
|
|
1246
|
+
preferredTag?: string;
|
|
1156
1247
|
className?: string;
|
|
1157
1248
|
}) => react_jsx_runtime0.JSX.Element;
|
|
1158
|
-
|
|
1159
|
-
|
|
1249
|
+
/**
|
|
1250
|
+
* Scroll region shared by both Package Manager tab panels. Fills the space
|
|
1251
|
+
* the panel gives it and scrolls its overflow. This works because the tab
|
|
1252
|
+
* panel sits inside the settings content card, which has a bounded height
|
|
1253
|
+
* (`m-6 ... h-full flex-1 overflow-hidden`); the flex chain down to here is
|
|
1254
|
+
* unbroken (`min-h-0` + `flex-1`/`h-full` at every level), so no
|
|
1255
|
+
* viewport-measuring hack is needed.
|
|
1256
|
+
*/
|
|
1257
|
+
declare const PackagePanelScrollArea: React.FC<{
|
|
1258
|
+
children: ReactNode;
|
|
1259
|
+
className?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Called when the bottom sentinel scrolls into view (infinite scroll). Only
|
|
1262
|
+
* observed while a handler is provided — pass `undefined` to stop paging.
|
|
1263
|
+
*/
|
|
1264
|
+
onReachEnd?: () => void;
|
|
1265
|
+
}>;
|
|
1266
|
+
declare const PackageSubSection: React.FC<{
|
|
1267
|
+
title: string;
|
|
1268
|
+
count: number;
|
|
1269
|
+
children: ReactNode;
|
|
1270
|
+
}>;
|
|
1271
|
+
declare const PackageList: React.FC<{
|
|
1272
|
+
packages: RegistryPackageList;
|
|
1160
1273
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1161
1274
|
onUninstall: (packageName: string) => void;
|
|
1162
|
-
|
|
1163
|
-
}
|
|
1275
|
+
preferredTag?: string;
|
|
1276
|
+
}>;
|
|
1164
1277
|
//#endregion
|
|
1165
1278
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-manager.d.ts
|
|
1166
|
-
type
|
|
1167
|
-
|
|
1279
|
+
type PackageManagerProps = {
|
|
1280
|
+
/** status: local-install | registry-install */installedPackages: RegistryPackageList; /** status: available | dismissed (dismissed grouped at the bottom) */
|
|
1281
|
+
availablePackages: RegistryPackageList; /** true while the first page / a new search is loading. */
|
|
1282
|
+
isAvailableLoading?: boolean; /** true while an additional page is being appended (infinite scroll). */
|
|
1283
|
+
isLoadingMoreAvailable?: boolean; /** more Available pages exist on the server. */
|
|
1284
|
+
hasMoreAvailable?: boolean; /** request the next Available page (infinite scroll). */
|
|
1285
|
+
onLoadMoreAvailable?: () => void;
|
|
1286
|
+
/**
|
|
1287
|
+
* Registry Available fetch failed. Presence-only — never pass raw API
|
|
1288
|
+
* messages; the panel renders friendly copy via `PackageRegistryError`.
|
|
1289
|
+
*/
|
|
1290
|
+
availableError?: boolean; /** retry the Available fetch after an error. */
|
|
1291
|
+
onAvailableRetry?: () => void;
|
|
1292
|
+
/**
|
|
1293
|
+
* When provided, Available search is delegated to the server (the panel
|
|
1294
|
+
* skips client-side filtering). Called with the query on every keystroke.
|
|
1295
|
+
*/
|
|
1296
|
+
onAvailableSearchChange?: (query: string) => void;
|
|
1168
1297
|
mutable: boolean;
|
|
1169
1298
|
/**
|
|
1170
1299
|
* Install handler. The argument is the full spec the user chose — either
|
|
1171
1300
|
* the bare package name, or `name@tag` / `name@version` when they typed
|
|
1172
|
-
* a suffix in the search input or picked one via the
|
|
1301
|
+
* a suffix in the search input or picked one via the version picker.
|
|
1173
1302
|
*/
|
|
1174
1303
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1175
1304
|
onUninstall: (packageName: string) => void;
|
|
1305
|
+
/**
|
|
1306
|
+
* Fired on every activation of the Available tab (including an initial
|
|
1307
|
+
* `initialTab="available"` mount). The caller dedupes — this is what
|
|
1308
|
+
* makes the registry fetch lazy.
|
|
1309
|
+
*/
|
|
1310
|
+
onAvailableTabOpen?: () => void; /** default "installed"; used by stories/tests */
|
|
1311
|
+
initialTab?: "installed" | "available";
|
|
1176
1312
|
disabled?: boolean;
|
|
1177
1313
|
className?: string;
|
|
1178
1314
|
};
|
|
1179
|
-
declare const PackageManager: React.FC<
|
|
1315
|
+
declare const PackageManager: React.FC<PackageManagerProps>;
|
|
1316
|
+
//#endregion
|
|
1317
|
+
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-registry-error.d.ts
|
|
1318
|
+
type PackageRegistryErrorProps = {
|
|
1319
|
+
/**
|
|
1320
|
+
* `empty` — first load / search failed with nothing to show.
|
|
1321
|
+
* `refresh` — a later fetch failed but previously loaded packages remain.
|
|
1322
|
+
*/
|
|
1323
|
+
variant: "empty" | "refresh";
|
|
1324
|
+
onRetry?: () => void;
|
|
1325
|
+
};
|
|
1326
|
+
/**
|
|
1327
|
+
* Friendly registry-error banner. Never surfaces raw API / network messages —
|
|
1328
|
+
* those stay in the console for debugging.
|
|
1329
|
+
*/
|
|
1330
|
+
declare const PackageRegistryError: React.FC<PackageRegistryErrorProps>;
|
|
1180
1331
|
//#endregion
|
|
1181
1332
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/types.d.ts
|
|
1182
1333
|
interface RegistryOption {
|
|
@@ -1302,7 +1453,8 @@ type ConnectSelectProps<TValue extends string> = {
|
|
|
1302
1453
|
menuClassName?: string;
|
|
1303
1454
|
itemClassName?: string;
|
|
1304
1455
|
borderRadius?: CSSProperties["borderRadius"];
|
|
1305
|
-
absolutePositionMenu?: boolean;
|
|
1456
|
+
absolutePositionMenu?: boolean; /** Applied to the expanded options list, e.g. to cap its height and make it scrollable. */
|
|
1457
|
+
listClassName?: string;
|
|
1306
1458
|
};
|
|
1307
1459
|
declare const ConnectSelect: <TValue extends string>(props: ConnectSelectProps<TValue> & RefAttributes<HTMLDivElement>) => ReactNode;
|
|
1308
1460
|
//#endregion
|
|
@@ -1382,7 +1534,13 @@ declare function SyncStatusIcon(props: SyncStatusIconProps): react_jsx_runtime0.
|
|
|
1382
1534
|
//#region src/connect/components/tabs/tab-content.d.ts
|
|
1383
1535
|
type TabContentProps = {
|
|
1384
1536
|
readonly label: ReactNode;
|
|
1385
|
-
|
|
1537
|
+
/**
|
|
1538
|
+
* Stable tab value. Required when `label` is not a plain string (e.g. it
|
|
1539
|
+
* embeds a changing count) — Radix derives aria ids from it. Falls back to
|
|
1540
|
+
* the slugified label.
|
|
1541
|
+
*/
|
|
1542
|
+
readonly value?: string;
|
|
1543
|
+
readonly description?: ReactNode;
|
|
1386
1544
|
readonly children: ReactNode;
|
|
1387
1545
|
readonly disabled?: boolean;
|
|
1388
1546
|
};
|
|
@@ -1391,10 +1549,14 @@ declare function TabContent(props: TabContentProps): react_jsx_runtime0.JSX.Elem
|
|
|
1391
1549
|
//#region src/connect/components/tabs/tabs.d.ts
|
|
1392
1550
|
declare function Tabs({
|
|
1393
1551
|
children,
|
|
1394
|
-
defaultValue
|
|
1552
|
+
defaultValue,
|
|
1553
|
+
onValueChange,
|
|
1554
|
+
listClassName
|
|
1395
1555
|
}: {
|
|
1396
1556
|
children: React$1.ReactNode;
|
|
1397
1557
|
defaultValue: string;
|
|
1558
|
+
onValueChange?: (value: string) => void; /** Applied to the tab list row (not the panel content). */
|
|
1559
|
+
listClassName?: string;
|
|
1398
1560
|
}): react_jsx_runtime0.JSX.Element;
|
|
1399
1561
|
//#endregion
|
|
1400
1562
|
//#region src/connect/components/theme-switch.d.ts
|
|
@@ -1579,5 +1741,5 @@ declare const sortFilesByStatus: (files: FileStatus[]) => FileStatus[];
|
|
|
1579
1741
|
*/
|
|
1580
1742
|
declare const removeSuccessFiles: (files: FileStatus[]) => FileStatus[];
|
|
1581
1743
|
//#endregion
|
|
1582
|
-
export { About, AccountPopover, AccountPopoverProps, AddDriveModal, AddDriveModalProps, AddLocalDriveForm, AddPublicDriveFormProps, AddRemoteDriveForm, AddRemoteDriveInput, AnimatedLoader, AppOptions, Breadcrumb, BreadcrumbProps, Breadcrumbs, CONFLICT, ChannelInspector, ChannelInspectorProps, type ColumnInfo, Combobox, ConfirmationModalProps, ConnectConfirmationModal, ConnectDeleteDriveModal, ConnectDeleteDriveModalProps, ConnectDeleteItemModal, ConnectDeleteItemModalProps, ConnectDropdownMenu, ConnectDropdownMenuItem, ConnectDropdownMenuProps, ConnectReplaceDuplicateModal, ConnectReplaceDuplicateModalProps, ConnectSearchBar, ConnectSearchBarProps, ConnectSelect, ConnectSelectItem, ConnectSelectProps, ConnectSidebar, ConnectSidebarFooter, ConnectSidebarFooterProps, ConnectSidebarHeader, ConnectSidebarHeaderProps, ConnectSidebarProps, ConnectTooltip, ConnectTooltipProvider, ConnectUpgradeDriveModal, ConnectUpgradeDriveModalProps, ConnectionStateBadge, ConnectionStateBadgeProps, ConnectionStateSummary, type ContainerComponent, type ControlPosition, type ControlSlot, CookieBanner, CookieBannerProps, CookieInput, CreateDocumentModal, CreateDocumentModalProps, type CustomToolbarControl, type CustomToolbarControlList, type CustomToolbarControls, DBExplorer, DBExplorerProps, DangerZone, DbClient, DebugInspector, DebugInspectorProps, DefaultEditor, DefaultEditorLoader, DefaultEditorSelect, DependencyVersions, Disclosure, Divider, DocumentStateViewer, DocumentTimeline, DocumentTimelineProps, DocumentToolbar, type DocumentToolbarControlName, type DocumentToolbarProps, type DocumentToolbarWithChildrenProps, type DocumentToolbarWithCustomControlsProps, DriveAuthGate, DriveAuthGateProps, DriveSettingsModal, DriveSettingsModalProps, DropZone, DropZoneProps, DropZoneWrapper, ENSAvatar, ERROR, EditorActionButtons, EditorActionButtonsProps, EditorUndoRedoButtons, EditorUndoRedoButtonsProps, FileItem, FileStatus, type FilterClause, type FilterGroup, type FilterOperator, FolderItem, Footer, FooterLink, FormInput, FormattedJsonViewer, GetTableRowsOptions, HomeBackgroundImage, HomeScreen, HomeScreenAddDriveItem, HomeScreenItem, INITIAL_SYNC, InspectorModal, InspectorModalProps, InspectorTab, InspectorUnavailableTabs, IntegrityInspector, IntegrityInspectorProps, LoadingScreen, LoadingScreenProps, LogoAnimation, MISSING, NodeInput, ObjectInspectorModal, ObjectInspectorModalProps, PackageInstallModal, PackageInstallModalProps, PackageManager,
|
|
1744
|
+
export { About, AccountPopover, AccountPopoverLogin, AccountPopoverLoginProps, AccountPopoverProps, AddDriveModal, AddDriveModalProps, AddLocalDriveForm, AddPublicDriveFormProps, AddRemoteDriveForm, AddRemoteDriveInput, AnimatedLoader, AppOptions, AvailablePackagesPanel, AvailablePackagesPanelProps, Breadcrumb, BreadcrumbProps, Breadcrumbs, CONFLICT, ChannelInspector, ChannelInspectorProps, type ColumnInfo, Combobox, ConfirmationModalProps, ConnectConfirmationModal, ConnectDeleteDriveModal, ConnectDeleteDriveModalProps, ConnectDeleteItemModal, ConnectDeleteItemModalProps, ConnectDropdownMenu, ConnectDropdownMenuItem, ConnectDropdownMenuProps, ConnectReplaceDuplicateModal, ConnectReplaceDuplicateModalProps, ConnectSearchBar, ConnectSearchBarProps, ConnectSelect, ConnectSelectItem, ConnectSelectProps, ConnectSidebar, ConnectSidebarFooter, ConnectSidebarFooterProps, ConnectSidebarHeader, ConnectSidebarHeaderProps, ConnectSidebarProps, ConnectTooltip, ConnectTooltipProvider, ConnectUpgradeDriveModal, ConnectUpgradeDriveModalProps, ConnectionStateBadge, ConnectionStateBadgeProps, ConnectionStateSummary, type ContainerComponent, type ControlPosition, type ControlSlot, CookieBanner, CookieBannerProps, CookieInput, CreateDocumentModal, CreateDocumentModalProps, CreateDocumentWithTypeModal, CreateDocumentWithTypeModalProps, type CustomToolbarControl, type CustomToolbarControlList, type CustomToolbarControls, DBExplorer, DBExplorerProps, DangerZone, DbClient, DebugInspector, DebugInspectorProps, DefaultEditor, DefaultEditorLoader, DefaultEditorSelect, DependencyVersions, Disclosure, Divider, DocumentStateViewer, DocumentTimeline, DocumentTimelineProps, DocumentToolbar, type DocumentToolbarControlName, type DocumentToolbarProps, type DocumentToolbarWithChildrenProps, type DocumentToolbarWithCustomControlsProps, DocumentTypeOption, DriveAuthGate, DriveAuthGateProps, DriveSettingsModal, DriveSettingsModalProps, DropZone, DropZoneProps, DropZoneWrapper, ENSAvatar, ERROR, EditorActionButtons, EditorActionButtonsProps, EditorUndoRedoButtons, EditorUndoRedoButtonsProps, FileItem, FileStatus, type FilterClause, type FilterGroup, type FilterOperator, FolderItem, Footer, FooterLink, FormInput, FormattedJsonViewer, GetTableRowsOptions, HomeBackgroundImage, HomeScreen, HomeScreenAddDriveItem, HomeScreenItem, INITIAL_SYNC, InspectorModal, InspectorModalProps, InspectorTab, InspectorUnavailableTabs, InstalledPackagesPanel, InstalledPackagesPanelProps, IntegrityInspector, IntegrityInspectorProps, LoadingScreen, LoadingScreenProps, LogoAnimation, MISSING, ModalButton, NodeInput, ObjectInspectorModal, ObjectInspectorModalProps, OnAddFileWithProgress, PackageInstallModal, PackageInstallModalProps, PackageList, PackageManager, PackageManagerListItem, PackageManagerProps, PackagePanelScrollArea, PackageRegistryError, PackageRegistryErrorProps, PackageSubSection, PendingPackageInstallation, PgVersionControl, ProcessorInfo, ProcessorsInspector, ProcessorsInspectorProps, QueueInspector, QueueInspectorProps, QueueState, ReadRequiredModal, ReadRequiredModalProps, RegistryOption, RegistryStatus, RemotesInspector, RemotesInspectorProps, RenownLoginMethods, RenownLoginMethodsProps, RenownLoginOption, RevisionHistory, SUCCESS, SYNCING, SettingsModal, SettingsTab, SidebarAddDriveItem, SidebarItem, SidebarLogin, SidebarLoginProps, SidebarUser, SidebarUserProps, type SortOptions, SyncStatusIcon, SyncStatusIconProps, TabContent, TabContentProps, type TableInfo, TablePage, Tabs, ThemeSwitch, TimelineBarItem, TimelineDividerItem, TimelineItem, Toggle, ToolbarButton, type ToolbarButtonClickHandler, type ToolbarButtonProps, ToolbarCloseButton, ToolbarContainer, type ToolbarControlComponent, type ToolbarControlComponents, ToolbarControlsContainer, ToolbarDownloadButton, ToolbarHistoryButton, ToolbarInput, ToolbarName, ToolbarRedoButton, ToolbarSwitchboardButton, ToolbarUndoButton, UploadFileItem, UploadFileItemProps, UploadFileItemStatus, UploadFileList, UploadFileListContainer, UploadFileListContainerProps, UploadFileListProps, UploadTracker, WorkerInfo, WorkerInspector, WorkerInspectorProps, debugNodeOptions, debugNodeOptionsMap, defaultDriveOptions, defaultNodeOptions, fileNodeDropdownOptions, folderNodeDropdownOptions, formatEthAddress, formatFileSize, generateId, getFolderStatus, locationInfoByLocation, mapProgressStageToStatus, mapUploadsToFileItems, nodeOptions, normalNodeOptions, removeSuccessFiles, sharingTypeOptions, sortFilesByStatus, syncStatuses, useEns, verifyPackageJsonFields };
|
|
1583
1745
|
//# sourceMappingURL=index.d.ts.map
|