@powerhousedao/connect 6.2.3-dev.70 → 6.2.3-dev.71
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/RUNTIME-CONFIG.md +29 -20
- package/dist/{ClearStorageModal-BwGVIuLX.js → ClearStorageModal-DxBXLSmH.js} +4 -4
- package/dist/{ClearStorageModal-BwGVIuLX.js.map → ClearStorageModal-DxBXLSmH.js.map} +1 -1
- package/dist/{DebugSettingsModal-DfOnR4iY.js → DebugSettingsModal-D1I-K2Gf.js} +4 -4
- package/dist/{DebugSettingsModal-DfOnR4iY.js.map → DebugSettingsModal-D1I-K2Gf.js.map} +1 -1
- package/dist/{InspectorModal-BVqRNFfP.js → InspectorModal-D85U4oKJ.js} +4 -4
- package/dist/{InspectorModal-BVqRNFfP.js.map → InspectorModal-D85U4oKJ.js.map} +1 -1
- package/dist/{OpenFileDocumentsModal-BNHD0vg9.js → OpenFileDocumentsModal-B9c-CsKT.js} +4 -4
- package/dist/{OpenFileDocumentsModal-BNHD0vg9.js.map → OpenFileDocumentsModal-B9c-CsKT.js.map} +1 -1
- package/dist/app-loader-D5GEwpML.js +4 -0
- package/dist/{app-loader-DtH6v5CE.js → app-loader-casiq2T2.js} +36 -27
- package/dist/{app-loader-DtH6v5CE.js.map → app-loader-casiq2T2.js.map} +1 -1
- package/dist/{app-skeleton-DFg65Rxa.js → app-skeleton-BHgmbYld.js} +3 -3
- package/dist/{app-skeleton-BFjvlTWd.js → app-skeleton-ClRUYLE_.js} +14 -5
- package/dist/app-skeleton-ClRUYLE_.js.map +1 -0
- package/dist/{boot-N7f3RrY_.js → boot-CFPdHSqB.js} +5 -5
- package/dist/{boot-N7f3RrY_.js.map → boot-CFPdHSqB.js.map} +1 -1
- package/dist/{build-info-TgBEqTq1.js → build-info-Cn2f6llN.js} +5 -5
- package/dist/{build-info-TgBEqTq1.js.map → build-info-Cn2f6llN.js.map} +1 -1
- package/dist/{components-B_wpF5Is.js → components-C4K5xyad.js} +7 -7
- package/dist/{components-B_wpF5Is.js.map → components-C4K5xyad.js.map} +1 -1
- package/dist/{drive-icon-BiVP8yJc.js → drive-icon-BIpd8edR.js} +14 -3
- package/dist/drive-icon-BIpd8edR.js.map +1 -0
- package/dist/generic.js +1 -1
- package/dist/{load-CkbGF6wB.js → load-DcDV9hi4.js} +6 -6
- package/dist/{load-CkbGF6wB.js.map → load-DcDV9hi4.js.map} +1 -1
- package/dist/{load-runtime-config-DXswYA71.js → load-runtime-config-Deq75NYr.js} +4 -4
- package/dist/{load-runtime-config-DXswYA71.js.map → load-runtime-config-Deq75NYr.js.map} +1 -1
- package/dist/main.js +2 -2
- package/dist/{package-manager-CPqbVSd8.js → package-manager-CzBsaUUd.js} +6 -6
- package/dist/{package-manager-CPqbVSd8.js.map → package-manager-CzBsaUUd.js.map} +1 -1
- package/dist/plugin-configs.d.ts +242 -0
- package/dist/plugin-configs.d.ts.map +1 -0
- package/dist/plugin-configs.js +26 -0
- package/dist/plugin-configs.js.map +1 -0
- package/dist/plugins-CegSox2x.js +263 -0
- package/dist/plugins-CegSox2x.js.map +1 -0
- package/dist/prerender.js +9 -5
- package/dist/prerender.js.map +1 -1
- package/dist/{reactor-DLCl-WHi.js → reactor-BGYR1N7Z.js} +5 -5
- package/dist/{reactor-DLCl-WHi.js.map → reactor-BGYR1N7Z.js.map} +1 -1
- package/dist/route-tree.js +1 -1
- package/dist/{route-views-CTARvT5N.js → route-views-2aB1ZZPP.js} +6 -6
- package/dist/route-views-2aB1ZZPP.js.map +1 -0
- package/dist/{route-views-BF0p-4Fi.js → route-views-CDVZytw4.js} +4 -4
- package/dist/{route-views-BF0p-4Fi.js.map → route-views-CDVZytw4.js.map} +1 -1
- package/dist/route-views-D_873yb_.js +4 -0
- package/dist/route-views.js +3 -3
- package/dist/router-B0OQvO11.js +4 -0
- package/dist/{router-L9X9U-97.js → router-Cu0PH6sh.js} +5 -5
- package/dist/router-Cu0PH6sh.js.map +1 -0
- package/dist/{settings-B-apZN_f.js → settings-CFn4TA0g.js} +13 -7
- package/dist/{settings-B-apZN_f.js.map → settings-CFn4TA0g.js.map} +1 -1
- package/dist/{settings-tabs-CRgiuZcb.js → settings-tabs-BC8gAacB.js} +31 -6
- package/dist/settings-tabs-BC8gAacB.js.map +1 -0
- package/dist/shell-core.html +1 -1
- package/dist/shell.html +1 -1
- package/dist/start-connect.js +2 -2
- package/dist/style.css +27 -4
- package/dist/{ui-CwbE23ra.js → ui-BOTsJPoc.js} +7 -7
- package/dist/{ui-CwbE23ra.js.map → ui-BOTsJPoc.js.map} +1 -1
- package/dist/workflows-C3qEvx1R.js +63 -0
- package/dist/workflows-C3qEvx1R.js.map +1 -0
- package/docs/customizing/styles-and-branding.md +1 -1
- package/package.json +23 -17
- package/scripts/assert-plugin-configs.mjs +47 -0
- package/dist/app-loader-BjAXSJQ6.js +0 -4
- package/dist/app-skeleton-BFjvlTWd.js.map +0 -1
- package/dist/drive-icon-BiVP8yJc.js.map +0 -1
- package/dist/plugins-CWbr0n_Q.js +0 -246
- package/dist/plugins-CWbr0n_Q.js.map +0 -1
- package/dist/route-views-CTARvT5N.js.map +0 -1
- package/dist/route-views-D8I-1PWU.js +0 -4
- package/dist/router-BguOMBUh.js +0 -4
- package/dist/router-L9X9U-97.js.map +0 -1
- package/dist/settings-tabs-CRgiuZcb.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-tabs-BC8gAacB.js","sources":["../src/generic/pages/use-drive-auth-gate.ts","../src/generic/layout/sidebar.tsx","../src/generic/layout/app-layout.tsx","../src/generic/layout/route-views.tsx","../src/generic/editors/app-container.tsx","../src/generic/pages/content.tsx","../src/generic/settings/tabs.ts","../src/generic/settings-tabs.ts"],"sourcesContent":["import {\n setSelectedDrive,\n useConnectionStates,\n useDrives,\n useSelectedDriveId,\n useSync,\n useUser,\n type ConnectionStateSnapshot,\n} from \"@powerhousedao/reactor-browser\";\nimport type { DocumentDriveDocument } from \"@powerhousedao/shared/document-drive\";\nimport { useCallback, useEffect, useMemo, useSyncExternalStore } from \"react\";\n\n/** Return code for the auth gate decision:\n * - `\"login\"` : anonymous user, the selected drive's channel rejected with `requiresAuth`.\n * - `\"unauthorized\"` : signed in, but the selected drive's channel was rejected — they aren't the owner.\n * - `null` : no auth barrier on the selected drive, carry on. */\nexport type AuthGate = \"login\" | \"unauthorized\" | null;\n\n/** A remote, reduced to the two fields the gate decision needs. */\nexport type AuthGateRemote = {\n readonly name: string;\n readonly driveId: string;\n};\n\nexport type AuthGateSelection = {\n readonly selectedDriveId: string | undefined;\n readonly remotes: readonly AuthGateRemote[];\n};\n\n/**\n * Decides the gate for the drive the user selected, and only that drive. A\n * refusal on any other drive must not hide the rest of Connect.\n *\n * Connection states are keyed by remote name, which is a random uuid, so the\n * caller supplies the remote -> drive mapping.\n */\nexport function computeAuthGate(\n isAuthenticated: boolean,\n connectionStates: ReadonlyMap<string, ConnectionStateSnapshot>,\n selection: AuthGateSelection,\n): AuthGate {\n const { selectedDriveId, remotes } = selection;\n if (!selectedDriveId) return null;\n\n let refused = false;\n for (const remote of remotes) {\n if (remote.driveId !== selectedDriveId) continue;\n const snapshot = connectionStates.get(remote.name);\n if (snapshot?.state === \"error\" && snapshot.requiresAuth) {\n refused = true;\n break;\n }\n }\n if (!refused) return null;\n return isAuthenticated ? \"unauthorized\" : \"login\";\n}\n\n// Drives dismissed from the auth gate. Deliberately in memory and session\n// scoped: the reactor keeps a refused drive's storage record, so a reload while\n// signed in must bring the drive back rather than fight that recovery.\nconst hiddenDriveIds = new Set<string>();\nlet hiddenDriveIdsSnapshot: readonly string[] = [];\nconst hiddenDriveListeners = new Set<() => void>();\n\nfunction publishHiddenDrives(): void {\n hiddenDriveIdsSnapshot = [...hiddenDriveIds];\n for (const listener of [...hiddenDriveListeners]) {\n listener();\n }\n}\n\nfunction subscribeHiddenDrives(listener: () => void): () => void {\n hiddenDriveListeners.add(listener);\n return () => {\n hiddenDriveListeners.delete(listener);\n };\n}\n\nfunction getHiddenDriveIds(): readonly string[] {\n return hiddenDriveIdsSnapshot;\n}\n\n/** Hides a drive from Connect's drive lists until the page reloads. */\nexport function hideDriveForSession(driveId: string): void {\n if (hiddenDriveIds.has(driveId)) return;\n hiddenDriveIds.add(driveId);\n publishHiddenDrives();\n}\n\n/** Restores every drive hidden this session. */\nexport function clearHiddenDrives(): void {\n if (hiddenDriveIds.size === 0) return;\n hiddenDriveIds.clear();\n publishHiddenDrives();\n}\n\nexport function useHiddenDriveIds(): readonly string[] {\n return useSyncExternalStore(\n subscribeHiddenDrives,\n getHiddenDriveIds,\n getHiddenDriveIds,\n );\n}\n\n/** `useDrives()` minus the drives dismissed from the auth gate this session. */\nexport function useVisibleDrives(): DocumentDriveDocument[] | undefined {\n const drives = useDrives();\n const hidden = useHiddenDriveIds();\n return useMemo(() => {\n if (!drives || hidden.length === 0) return drives;\n return drives.filter((drive) => !hidden.includes(drive.header.id));\n }, [drives, hidden]);\n}\n\n/** Live wrapper over {@link computeAuthGate}, plus the dismiss action. */\nexport function useDriveAuthGate(): { gate: AuthGate; dismiss: () => void } {\n const user = useUser();\n const connectionStates = useConnectionStates();\n const syncManager = useSync();\n const selectedDriveId = useSelectedDriveId();\n\n // Remote names are random uuids; `meta.collectionId.driveId` is the only link\n // from a connection state back to the drive it belongs to. Recomputed\n // alongside `connectionStates`, which also refreshes as remotes come and go.\n const remotes = useMemo<AuthGateRemote[]>(\n () =>\n (syncManager?.list() ?? []).map((remote) => ({\n name: remote.meta.name,\n driveId: remote.meta.collectionId.driveId,\n })),\n [syncManager, connectionStates],\n );\n\n // A change of identity changes who the drive would be fetched as, so give the\n // dismissed drives another chance instead of waiting for a reload.\n const address = user?.address;\n useEffect(() => {\n clearHiddenDrives();\n }, [address]);\n\n const dismiss = useCallback(() => {\n if (selectedDriveId) {\n hideDriveForSession(selectedDriveId);\n }\n setSelectedDrive(undefined);\n }, [selectedDriveId]);\n\n const gate = computeAuthGate(Boolean(user), connectionStates, {\n selectedDriveId,\n remotes,\n });\n return { gate, dismiss };\n}\n","import {\n ConnectSidebar,\n ConnectTooltipProvider,\n SidebarAddDriveItem,\n SidebarItem,\n useEns,\n} from \"@powerhousedao/design-system/connect\";\n\nimport {\n isPlainClick,\n logout,\n makeDriveSlug,\n preloadDrive,\n setSelectedDrive,\n showPHModal,\n useIsAddDriveEnabled,\n useLinkProps,\n useSelectedDriveSafe,\n useUser,\n getDriveName,\n} from \"@powerhousedao/reactor-browser\";\nimport type { DocumentDriveDocument } from \"@powerhousedao/shared/document-drive\";\nimport type { AnyRouter } from \"@tanstack/react-router\";\nimport { useRouter, useRouterState } from \"@tanstack/react-router\";\nimport type { ReactNode } from \"react\";\nimport { useOpenRenownLogin } from \"../hooks/use-renown-login.js\";\nimport type { NavRouteEntry } from \"@powerhousedao/connect-core/router\";\nimport { useNavRoutes } from \"@powerhousedao/connect-core/router\";\nimport { DriveIcon } from \"@powerhousedao/connect/components/shared\";\nimport { ErrorBoundary } from \"@powerhousedao/connect/components/shared\";\nimport { useVisibleDrives } from \"../pages/use-drive-auth-gate.js\";\n\nfunction DriveSidebarItem(props: {\n drive: DocumentDriveDocument;\n active: boolean;\n}) {\n const { drive, active } = props;\n const link = useLinkProps({ driveSlug: makeDriveSlug(drive) }, () =>\n setSelectedDrive(drive),\n );\n return (\n <SidebarItem\n title={getDriveName(drive)}\n href={link.href}\n aria-current={link[\"aria-current\"]}\n onClick={link.onClick}\n onPreload={() => preloadDrive(drive)}\n active={active}\n icon={<DriveIcon drive={drive} />}\n />\n );\n}\n\n/** The drives the user may open, and the add-drive item when enabled. */\nexport function SidebarDriveItems() {\n const drives = useVisibleDrives();\n const isAddDriveEnabled = useIsAddDriveEnabled();\n const [selectedDrive] = useSelectedDriveSafe();\n return (\n <>\n {drives?.map((drive) => (\n <DriveSidebarItem\n key={drive.header.id}\n drive={drive}\n active={selectedDrive?.header.id === drive.header.id}\n />\n ))}\n {isAddDriveEnabled && (\n <SidebarAddDriveItem\n onClick={() => showPHModal({ type: \"addDrive\" })}\n />\n )}\n </>\n );\n}\n\nfunction NavSidebarItem({ item }: { item: NavRouteEntry }) {\n // Nav routes can come from a project's tree, unknown to Connect's types.\n const router = useRouter() as unknown as AnyRouter;\n // A boolean select: loading state changes don't re-render the item.\n const current = useRouterState({\n select: () => !!router.matchRoute({ to: item.to }, { fuzzy: true }),\n });\n const Icon = item.icon;\n return (\n <SidebarItem\n title={item.label}\n href={router.buildLocation({ to: item.to }).publicHref}\n aria-current={current ? \"page\" : undefined}\n onClick={(event) => {\n if (!isPlainClick(event)) return;\n event.preventDefault();\n void router.navigate({ to: item.to });\n }}\n onPreload={() => {\n router.preloadRoute({ to: item.to }).catch(() => undefined);\n }}\n icon={Icon ? <Icon size={24} /> : undefined}\n />\n );\n}\n\n/** Links to the routes that declare `staticData.nav`, in order. */\nexport function SidebarNavItems() {\n const items = useNavRoutes();\n return (\n <>\n {items.map((item) => (\n <NavSidebarItem key={item.routeId} item={item} />\n ))}\n </>\n );\n}\n\nexport type SidebarProps = {\n /** Items after the drives and nav routes, e.g. a custom layout's links. */\n extraItems?: ReactNode;\n /** Header and footer only, no items. */\n collapsed?: boolean;\n};\n\n/** Connect's sidebar: drives, nav routes, settings and the user. */\nexport function Sidebar({ extraItems, collapsed }: SidebarProps = {}) {\n const user = useUser();\n const openLogin = useOpenRenownLogin();\n const connectDebug =\n typeof localStorage !== \"undefined\" &&\n localStorage.getItem(\"CONNECT_DEBUG\") === \"true\";\n\n const ensName = user?.ens?.name || user?.profile?.username || undefined;\n const avatarUrl =\n user?.ens?.avatarUrl || user?.profile?.userImage || undefined;\n\n const ensInfo = useEns(!avatarUrl ? user?.address : undefined);\n\n const settingsLink = useLinkProps({ settings: true });\n\n const etherscanUrl = user?.address\n ? `https://etherscan.io/address/${user.address}`\n : \"\";\n\n return (\n <ConnectTooltipProvider>\n <ConnectSidebar\n id=\"sidebar\"\n data-collapsed={collapsed ? \"\" : undefined}\n onClick={() => setSelectedDrive(undefined)}\n onClickSettings={settingsLink.onClick}\n settingsHref={settingsLink.href}\n settingsCurrent={settingsLink[\"aria-current\"]}\n address={user?.address}\n onLogin={openLogin}\n onDisconnect={() => {\n void logout();\n }}\n ensName={ensName || ensInfo.data?.ens}\n avatarUrl={\n avatarUrl ||\n ensInfo.data?.avatar_small ||\n ensInfo.data?.avatar_url ||\n undefined\n }\n etherscanUrl={etherscanUrl}\n showDebug={connectDebug}\n onDebugClick={() => showPHModal({ type: \"debugSettings\" })}\n >\n {!collapsed && (\n <ErrorBoundary\n variant=\"text\"\n fallbackMessage=\"There was an error loading drives\"\n loggerContext={[\"Connect\", \"Sidebar\"]}\n >\n <SidebarDriveItems />\n <SidebarNavItems />\n {extraItems}\n </ErrorBoundary>\n )}\n </ConnectSidebar>\n </ConnectTooltipProvider>\n );\n}\n","import { useIsEmbedded } from \"@powerhousedao/connect-core/embedded\";\nimport type { ReactNode } from \"react\";\nimport {\n ContentOutlet,\n useSidebarMode,\n} from \"@powerhousedao/connect-core/router\";\nimport { Sidebar } from \"./sidebar.js\";\n\nexport type AppLayoutProps = {\n /** Replaces Connect's sidebar, e.g. `<ConnectSidebar extraItems={...} />`. */\n sidebar?: ReactNode;\n};\n\n/** The `_app` layout: the sidebar beside the matched route. Embedded mode and\n * `staticData.sidebar: \"hidden\"` drop the sidebar. */\nexport function AppLayout({ sidebar }: AppLayoutProps = {}) {\n const isEmbedded = useIsEmbedded();\n const mode = useSidebarMode();\n const showSidebar = !isEmbedded && mode !== \"hidden\";\n return (\n <div\n className=\"flex h-full items-stretch overflow-auto\"\n role=\"presentation\"\n tabIndex={0}\n >\n {showSidebar && (sidebar ?? <Sidebar collapsed={mode === \"collapsed\"} />)}\n <ContentOutlet className=\"relative flex flex-1 flex-col overflow-auto\" />\n </div>\n );\n}\n","import { CenteredErrorMessage } from \"@powerhousedao/connect/components/shared\";\nimport { useIsColdStart } from \"@powerhousedao/connect-core/router\";\nimport { DefaultEditorLoader } from \"@powerhousedao/design-system/connect\";\nimport type { ErrorComponentProps } from \"@tanstack/react-router\";\n\n// Fades the cold-start loader in, so a load ending just past pendingMs doesn't flash.\nconst DRIVE_PENDING_FADE = \"ph-drive-pending-in 200ms ease-in 100ms both\";\n\n/** A loader on a cold start; otherwise the open view stays while loading. */\nexport function DrivePending() {\n const isColdStart = useIsColdStart();\n if (!isColdStart) return null;\n return (\n <div\n className=\"flex size-full items-center justify-center\"\n style={{ animation: DRIVE_PENDING_FADE }}\n >\n <style>\n {`@keyframes ph-drive-pending-in{from{opacity:0}to{opacity:1}}`}\n </style>\n <DefaultEditorLoader message=\"Loading drive\" />\n </div>\n );\n}\n\n/** A route's loader or render error, as Connect's error boundaries show it. */\nexport function RouteError({ error, reset }: ErrorComponentProps) {\n return <CenteredErrorMessage error={error} resetErrorBoundary={reset} />;\n}\n","import { DropZoneWrapper } from \"@powerhousedao/design-system/connect\";\nimport { GenericDriveExplorer } from \"@powerhousedao/powerhouse-vetra-packages/editors\";\nimport {\n DriveProvider,\n useAppModuleById,\n useDefaultAppModule,\n useDispatch,\n} from \"@powerhousedao/reactor-browser\";\nimport { useDriveRouteData } from \"@powerhousedao/connect-core/router\";\nimport type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useMemo } from \"react\";\nimport { EditorLoader } from \"./editor-loader.js\";\nimport { ErrorBoundary } from \"@powerhousedao/connect/components/shared\";\n\n/** Packages load progressively, so a missing drive app is only a finding once\n * it stays missing; the warning fires once per drive. */\nconst MISSING_APP_GRACE_MS = 3000;\nconst warnedDrives = new Set<string>();\n\n/**\n * A drive that names a preferred editor no installed package provides falls\n * back to the generic explorer silently otherwise — which reads as \"the drive\n * ignores its editor\" when the cause is a package that is not composed in\n * (e.g. Workflow Studio without `@powerhousedao/connect/plugins/workflows`).\n */\nfunction useWarnOnMissingDriveApp(\n driveId: string | undefined,\n preferredEditor: string | undefined,\n found: boolean,\n): void {\n useEffect(() => {\n if (!driveId || !preferredEditor || found || warnedDrives.has(driveId)) {\n return;\n }\n const timer = setTimeout(() => {\n warnedDrives.add(driveId);\n console.warn(\n `[Connect] Drive \"${driveId}\" prefers the drive app \"${preferredEditor}\", but no installed package provides it; showing the generic drive explorer. ` +\n \"Install or compose in the package that registers that app (for Workflow Studio: the @powerhousedao/connect/plugins/workflows plugin).\",\n );\n }, MISSING_APP_GRACE_MS);\n return () => clearTimeout(timer);\n }, [driveId, preferredEditor, found]);\n}\n\n/** The route's drive's app around `children`, the open document's view;\n * drive apps show their own view while `children` is null. */\nexport function AppContainer({ children = null }: { children?: ReactNode }) {\n const { drive: selectedDrive, folder, documentId } = useDriveRouteData();\n\n const app = useAppModuleById(selectedDrive?.header.meta?.preferredEditor);\n const defaultApp = useDefaultAppModule();\n useWarnOnMissingDriveApp(\n selectedDrive?.header.id,\n selectedDrive?.header.meta?.preferredEditor,\n app !== undefined,\n );\n const [, dispatch] = useDispatch(selectedDrive);\n const nodeId = documentId ?? folder?.id;\n // The drive app's useSelected* read this; opening goes through the router.\n const context = useMemo(\n () => selectedDrive && { drive: selectedDrive, dispatch, folder, nodeId },\n [selectedDrive, dispatch, folder, nodeId],\n );\n\n if (!selectedDrive || !context) {\n return <EditorLoader />;\n }\n\n const AppComponent =\n app?.Component ?? defaultApp?.Component ?? GenericDriveExplorer.Component;\n return (\n <ErrorBoundary\n variant=\"detailed\"\n resetKeys={[selectedDrive.header.id]}\n loggerContext={[\"Connect\", \"App\"]}\n >\n <Suspense fallback={<EditorLoader />}>\n <DriveProvider value={context}>\n <DropZoneWrapper className=\"flex h-full flex-col overflow-auto\">\n <AppComponent document={selectedDrive} dispatch={dispatch}>\n {children}\n </AppComponent>\n </DropZoneWrapper>\n </DriveProvider>\n </Suspense>\n </ErrorBoundary>\n );\n}\n","import { AppContainer } from \"../editors/app-container.js\";\nimport { DocumentEditorContainer } from \"../editors/document-editor-container.js\";\nimport { DriveIcon } from \"@powerhousedao/connect/components/shared\";\nimport {\n DriveAuthGate,\n HomeScreen,\n HomeScreenAddDriveItem,\n HomeScreenItem,\n} from \"@powerhousedao/design-system/connect\";\nimport {\n logout,\n makeDriveSlug,\n preloadDrive,\n setSelectedDrive,\n useAppModuleById,\n useIsAddDriveEnabled,\n useLinkProps,\n getDriveName,\n} from \"@powerhousedao/reactor-browser\";\nimport type { DocumentDriveDocument } from \"@powerhousedao/shared/document-drive\";\nimport { Outlet } from \"@tanstack/react-router\";\nimport { useDriveRouteData } from \"@powerhousedao/connect-core/router\";\nimport { getRuntimeConfig } from \"@powerhousedao/connect-core/runtime-config\";\nimport { useDriveAuthGate, useVisibleDrives } from \"./use-drive-auth-gate.js\";\nimport { useOpenRenownLogin } from \"../hooks/use-renown-login.js\";\n\n/** Connect's home: the drives, and adding one. */\nexport function Home() {\n const drives = useVisibleDrives();\n const isAddDriveEnabled = useIsAddDriveEnabled();\n const runtimeConfig = getRuntimeConfig();\n const homeBackground = runtimeConfig.connect.home?.background;\n return (\n <HomeScreen homeBackground={homeBackground}>\n {drives?.map((drive) => {\n return <DriveItem key={drive.header.id} drive={drive} />;\n })}\n {isAddDriveEnabled && <HomeScreenAddDriveItem />}\n </HomeScreen>\n );\n}\n\n/** Connect's drive layout: the drive app around the open document, or the\n * sign-in gate when the drive's remote refuses the user. */\nexport function DriveLayout() {\n const { gate, dismiss } = useDriveAuthGate();\n const openLogin = useOpenRenownLogin();\n const { documentId } = useDriveRouteData();\n if (gate) {\n return (\n <div className=\"flex h-full items-center justify-center p-4\">\n <DriveAuthGate\n mode={gate}\n onLogin={openLogin}\n onLogout={() => void logout()}\n onClose={dismiss}\n />\n </div>\n );\n }\n return <AppContainer>{documentId ? <Outlet /> : null}</AppContainer>;\n}\n\n/** Connect's node route: the open document's editor. */\nexport function NodeView() {\n const { documentId } = useDriveRouteData();\n return documentId ? (\n <DocumentEditorContainer documentId={documentId} />\n ) : null;\n}\n\nfunction DriveItem({ drive }: { drive: DocumentDriveDocument }) {\n const editorModule = useAppModuleById(drive.header.meta?.preferredEditor);\n const description = editorModule?.config.name || \"Drive Explorer App\";\n const link = useLinkProps({ driveSlug: makeDriveSlug(drive) }, () =>\n setSelectedDrive(drive),\n );\n return (\n <HomeScreenItem\n key={drive.header.id}\n title={getDriveName(drive)}\n description={description}\n icon={<DriveIcon drive={drive} />}\n href={link.href}\n aria-current={link[\"aria-current\"]}\n onClick={link.onClick}\n onPreload={() => preloadDrive(drive)}\n />\n );\n}\n","import { connectConfig } from \"@powerhousedao/connect/config\";\nimport { lazyRouteComponent } from \"@tanstack/react-router\";\nimport type * as SettingsModule from \"./index.js\";\n\n/** Whether the AI assistant is configured. */\nexport const aiAssistantEnabled = () => connectConfig.aiAssistantEnabled;\n\n// Loaded with the settings page, not with the app; the router preloads it on intent.\nconst settings = () => import(\"./index.js\");\n\n/** Connect's settings page around the shown tab. */\nexport const SettingsPage = lazyRouteComponent(settings, \"SettingsPage\");\n\n/** One of Connect's settings tabs. */\nexport function settingsTab(\n name: Exclude<keyof typeof SettingsModule, \"SettingsPage\">,\n) {\n return lazyRouteComponent(settings, name);\n}\n","import type {\n ConnectRoutes,\n ConnectSettingsTab,\n} from \"@powerhousedao/connect-core/router\";\nimport type { AnyRoute } from \"@tanstack/react-router\";\nimport { createRoute } from \"@tanstack/react-router\";\nimport { Bot, CircleHelp, Package, PenLine, TriangleAlert } from \"lucide-react\";\nimport { aiAssistantEnabled, settingsTab } from \"./settings/tabs.js\";\n\nconst tab = (settings: ConnectSettingsTab) => ({ staticData: { settings } });\n\n/** The generic plugin's settings tabs by path: each tab's route options, which a\n * project file at that path spreads to replace the tab's view. */\nexport const genericSettingsTabs = {\n \"ai-assistant\": tab({\n label: \"AI Assistant\",\n order: 0,\n icon: Bot,\n enabled: aiAssistantEnabled,\n }),\n \"package-manager\": tab({\n label: \"Package Manager\",\n order: 10,\n icon: Package,\n }),\n \"default-editors\": tab({\n label: \"Default Editors\",\n order: 20,\n icon: PenLine,\n }),\n \"danger-zone\": tab({\n label: \"Danger Zone\",\n order: 80,\n icon: TriangleAlert,\n destructive: true,\n }),\n about: tab({ label: \"About\", order: 90, icon: CircleHelp }),\n};\n\ntype GenericSettingsTab = keyof typeof genericSettingsTabs;\n\nconst VIEWS: Record<GenericSettingsTab, Parameters<typeof settingsTab>[0]> = {\n \"ai-assistant\": \"AiAssistant\",\n \"package-manager\": \"ConnectPackageManager\",\n \"default-editors\": \"DefaultEditor\",\n \"danger-zone\": \"DangerZone\",\n about: \"About\",\n};\n\n/** The generic settings tabs, under the settings route. */\nexport function settingsTabRoutes({ settingsRoute }: ConnectRoutes) {\n return Object.entries(genericSettingsTabs).map(([path, options]) =>\n createRoute({\n getParentRoute: () => settingsRoute,\n path,\n ...options,\n component: settingsTab(VIEWS[path as GenericSettingsTab]),\n }),\n ) as AnyRoute[];\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,gBACd,iBACA,kBACA,WACU;CACV,MAAM,EAAE,iBAAiB,YAAY;CACrC,IAAI,CAAC,iBAAiB,OAAO;CAE7B,IAAI,UAAU;CACd,KAAK,MAAM,UAAU,SAAS;EAC5B,IAAI,OAAO,YAAY,iBAAiB;EACxC,MAAM,WAAW,iBAAiB,IAAI,OAAO,IAAI;EACjD,IAAI,UAAU,UAAU,WAAW,SAAS,cAAc;GACxD,UAAU;GACV;EACF;CACF;CACA,IAAI,CAAC,SAAS,OAAO;CACrB,OAAO,kBAAkB,iBAAiB;AAC5C;AAKA,MAAM,iCAAiB,IAAI,IAAY;AACvC,IAAI,yBAA4C,CAAC;AACjD,MAAM,uCAAuB,IAAI,IAAgB;AAEjD,SAAS,sBAA4B;CACnC,yBAAyB,CAAC,GAAG,cAAc;CAC3C,KAAK,MAAM,YAAY,CAAC,GAAG,oBAAoB,GAC7C,SAAS;AAEb;AAEA,SAAS,sBAAsB,UAAkC;CAC/D,qBAAqB,IAAI,QAAQ;CACjC,aAAa;EACX,qBAAqB,OAAO,QAAQ;CACtC;AACF;AAEA,SAAS,oBAAuC;CAC9C,OAAO;AACT;;AAGA,SAAgB,oBAAoB,SAAuB;C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O;EACP,MAAM;EACN,aAAa;CACf,CAAC;CACD,OAAO,IAAI;EAAE,OAAO;EAAS,OAAO;EAAI,MAAM;CAAW,CAAC;AAC5D;AAIA,MAAM,QAAuE;CAC3E,gBAAgB;CAChB,mBAAmB;CACnB,mBAAmB;CACnB,eAAe;CACf,OAAO;AACT;;AAGA,SAAgB,kBAAkB,EAAE,iBAAgC;CAClE,OAAO,OAAO,QAAQ,mBAAmB,CAAC,CAAC,KAAK,CAAC,MAAM,aACrD,YAAY;EACV,sBAAsB;EACtB;EACA,GAAG;EACH,WAAW,YAAY,MAAM,KAA2B;CAC1D,CAAC,CACH;AACF","debug_id":"fc385467-4889-5974-a544-a201e73969a2"}
|
package/dist/shell-core.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<div data-ph-shell="core" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full flex-col"><header class="flex items-center gap-4 border-b border-core-border px-4 py-2 text-sm"><a href="/" aria-current="page" class="font-semibold text-core-fg"><!--ph-shell:app-name-->Connect<!--/ph-shell:app-name--></a><nav aria-label="Pages" class="flex gap-3"></nav><div class="ml-auto flex items-center gap-2"><a href="/settings/appearance" class="text-core-link underline-offset-2 hover:underline">Settings</a><button type="button" aria-label="Switch to dark theme" title="Switch to dark theme" class="rounded px-2 py-1 text-core-muted hover:bg-core-hover hover:text-core-fg">☀</button></div></header><main class="relative min-h-0 flex-1"><div class="flex h-full flex-col overflow-auto" id="content-view" data-scroll-restoration-id="content-view"></div></main></div><!--/$--><!--/$--></div><!--/$--><div role="status" aria-label="Starting" class="ph-shell-loader pointer-events-none fixed inset-0 z-10 flex items-center justify-center"><div class="size-5 animate-spin rounded-full border-2 border-core-border border-t-core-muted motion-reduce:animate-none"></div></div></div><script data-ph-shell="core">(function(){if(!document.documentElement.classList.contains('ph-shell-route'))return;document.querySelectorAll('[data-ph-shell] [aria-current]').forEach(function(e){e.removeAttribute('aria-current');e.classList.remove('active')})})();</script>
|
|
1
|
+
<div data-ph-shell="core" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full flex-col"><header class="flex items-center gap-4 border-b border-core-border px-4 py-2 text-sm"><a href="/" aria-current="page" class="font-semibold text-core-fg"><!--ph-shell:app-name-->Connect<!--/ph-shell:app-name--></a><nav aria-label="Pages" class="flex gap-3"></nav><div class="ml-auto flex items-center gap-2"><a href="/settings/appearance" class="text-core-link underline-offset-2 hover:underline">Settings</a><button type="button" aria-label="Switch to dark theme" title="Switch to dark theme" class="rounded px-2 py-1 text-core-muted hover:bg-core-hover hover:text-core-fg">☀</button></div></header><main class="relative min-h-0 flex-1"><div class="flex h-full flex-col overflow-auto" id="content-view" data-scroll-restoration-id="content-view"></div></main></div><!--/$--><!--/$--></div><!--/$--><div role="status" aria-label="Starting" class="ph-shell-loader pointer-events-none fixed inset-0 z-10 flex items-center justify-center"><div data-ph-loader-slot="" class="size-5 animate-spin rounded-full border-2 border-core-border border-t-core-muted motion-reduce:animate-none"></div></div></div><script data-ph-shell="core">(function(){if(!document.documentElement.classList.contains('ph-shell-route'))return;document.querySelectorAll('[data-ph-shell] [aria-current]').forEach(function(e){e.removeAttribute('aria-current');e.classList.remove('active')})})();</script>
|
package/dist/shell.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<div data-ph-shell="generic" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full items-stretch overflow-auto" role="presentation" tabindex="0"><div id="sidebar" class="group z-1 flex h-full flex-col bg-sidebar text-sidebar-foreground" style="width:58px"><div class="scrollbar-none flex-1 overflow-auto text-foreground transition-shadow"><div class="flex flex-col"></div></div><div class="shrink-0 flex flex-col items-center gap-3 border-t border-sidebar-border px-2 py-4 dark:border-none"><button aria-label="Home" type="button" class="cursor-pointer"><!--$--><svg class="text-muted-foreground" style="width:24px;height:24px" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z" fill="currentColor"></path></svg><!--/$--></button><div class="mt-3"><button type="button" aria-label="Open Account" class="cursor-pointer" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_75j9_" data-state="closed"><div class="group/sidebar-footer flex w-full items-baseline justify-start text-sm/10 font-semibold text-foreground cursor-pointer"><span style="display:inline-block;width:42px;height:42px;"></span></div></button></div><a aria-label="Settings" href="/settings/package-manager" class="cursor-pointer rounded-md aria-[current=page]:bg-sidebar-accent"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings text-foreground" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="hidden text-sm/6 font-semibold text-foreground">Settings</span></a></div></div><div class="relative flex flex-1 flex-col overflow-auto" id="content-view" data-scroll-restoration-id="content-view"><div class="relative container mx-auto flex h-full flex-col"><div class="m-8 flex flex-wrap justify-center gap-4 bg-background
|
|
1
|
+
<div data-ph-shell="generic" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full items-stretch overflow-auto" role="presentation" tabindex="0"><div id="sidebar" class="group z-1 flex h-full flex-col bg-sidebar text-sidebar-foreground" style="width:58px"><div class="scrollbar-none flex-1 overflow-auto text-foreground transition-shadow"><div class="flex flex-col"></div></div><div class="shrink-0 flex flex-col items-center gap-3 border-t border-sidebar-border px-2 py-4 dark:border-none"><button aria-label="Home" type="button" class="cursor-pointer"><!--$--><svg class="text-muted-foreground" style="width:24px;height:24px" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z" fill="currentColor"></path></svg><!--/$--></button><div class="mt-3"><button type="button" aria-label="Open Account" class="cursor-pointer" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_75j9_" data-state="closed"><div class="group/sidebar-footer flex w-full items-baseline justify-start text-sm/10 font-semibold text-foreground cursor-pointer"><span style="display:inline-block;width:42px;height:42px;"></span></div></button></div><a aria-label="Settings" href="/settings/package-manager" class="cursor-pointer rounded-md aria-[current=page]:bg-sidebar-accent"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings text-foreground" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="hidden text-sm/6 font-semibold text-foreground">Settings</span></a></div></div><div class="relative flex flex-1 flex-col overflow-auto" id="content-view" data-scroll-restoration-id="content-view"><div class="relative container mx-auto flex h-full flex-col"><div class="m-8 flex flex-wrap justify-center gap-4 pt-12 bg-background"><div class="pointer-events-none fixed top-0 z-0 size-full bg-background"><svg width="1858" height="1256" viewBox="0 0 1858 1256" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_4090_11134)"><ellipse opacity="0.3" cx="478.092" cy="523.885" rx="983.498" ry="480.668" transform="rotate(36.3289 478.092 523.885)" fill="url(#paint0_radial_4090_11134)" fill-opacity="0.3"></ellipse><g opacity="0.3"><ellipse cx="1385.68" cy="503.347" rx="759.956" ry="331.584" transform="rotate(36.3289 1385.68 503.347)" fill="url(#paint1_radial_4090_11134)" fill-opacity="0.2" style="mix-blend-mode:screen"></ellipse></g></g><defs><radialGradient id="paint0_radial_4090_11134" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(500.331 508.304) rotate(89.0086) scale(508.666 1077.08)"><stop stop-color="white" stop-opacity="0"></stop><stop stop-color="#FF3FAC"></stop><stop offset="0.363434" stop-color="#9D25FC" stop-opacity="0.41"></stop><stop offset="0.745192" stop-color="#141718" stop-opacity="0"></stop></radialGradient><radialGradient id="paint1_radial_4090_11134" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1385.68 503.347) rotate(90) scale(331.584 759.956)"><stop stop-color="#0084FF"></stop><stop offset="0.802885" stop-color="#141718" stop-opacity="0"></stop></radialGradient><clipPath id="clip0_4090_11134"><rect width="1858" height="1256" fill="white"></rect></clipPath></defs></svg></div></div></div></div></div><!--/$--><!--/$--></div><!--/$--><div role="status" aria-label="Starting Connect" class="ph-shell-loader pointer-events-none fixed inset-0 z-10 flex items-center justify-center"><div data-ph-loader-slot="" class="animate-pulse rounded-full bg-background p-4 text-foreground shadow-lg motion-reduce:animate-none"><!--$--><svg style="width:40px;height:40px" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z" fill="currentColor"></path></svg><!--/$--></div></div></div><script data-ph-shell="generic">(function(){if(!document.documentElement.classList.contains('ph-shell-route'))return;document.querySelectorAll('[data-ph-shell] [aria-current]').forEach(function(e){e.removeAttribute('aria-current');e.classList.remove('active')})})();</script>
|
package/dist/start-connect.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bd2ed01c-26b1-55fa-bd5b-f1ef0b991a1e")}catch(e){}}();
|
|
3
|
-
import { t as bootConnect } from "./boot-
|
|
3
|
+
import { t as bootConnect } from "./boot-CFPdHSqB.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region start-connect.tsx
|
|
6
6
|
const root = await bootConnect();
|
|
7
|
-
const components = root ? await import("./components-
|
|
7
|
+
const components = root ? await import("./components-C4K5xyad.js") : null;
|
|
8
8
|
function updateLocalPackage(pkg) {
|
|
9
9
|
window.ph?.vetraPackageManager?.updateLocalPackage(pkg);
|
|
10
10
|
}
|
package/dist/style.css
CHANGED
|
@@ -948,10 +948,6 @@
|
|
|
948
948
|
width: 3px;
|
|
949
949
|
height: 3px;
|
|
950
950
|
}
|
|
951
|
-
.size-\[calc\(100\%-32px\)\] {
|
|
952
|
-
width: calc(100% - 32px);
|
|
953
|
-
height: calc(100% - 32px);
|
|
954
|
-
}
|
|
955
951
|
.size-fit {
|
|
956
952
|
width: fit-content;
|
|
957
953
|
height: fit-content;
|
|
@@ -2327,6 +2323,9 @@
|
|
|
2327
2323
|
.border-b-border {
|
|
2328
2324
|
border-bottom-color: var(--border);
|
|
2329
2325
|
}
|
|
2326
|
+
.bg-\(--ph-pane-bg\) {
|
|
2327
|
+
background-color: var(--ph-pane-bg);
|
|
2328
|
+
}
|
|
2330
2329
|
.bg-\[\#3b82f6\] {
|
|
2331
2330
|
background-color: #3b82f6;
|
|
2332
2331
|
}
|
|
@@ -2342,6 +2341,12 @@
|
|
|
2342
2341
|
background-color: color-mix(in oklab, var(--background) 50%, transparent);
|
|
2343
2342
|
}
|
|
2344
2343
|
}
|
|
2344
|
+
.bg-background\/75 {
|
|
2345
|
+
background-color: var(--background);
|
|
2346
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2347
|
+
background-color: color-mix(in oklab, var(--background) 75%, transparent);
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2345
2350
|
.bg-border {
|
|
2346
2351
|
background-color: var(--border);
|
|
2347
2352
|
}
|
|
@@ -2837,6 +2842,9 @@
|
|
|
2837
2842
|
.pb-4 {
|
|
2838
2843
|
padding-bottom: calc(var(--spacing) * 4);
|
|
2839
2844
|
}
|
|
2845
|
+
.pb-6 {
|
|
2846
|
+
padding-bottom: calc(var(--spacing) * 6);
|
|
2847
|
+
}
|
|
2840
2848
|
.pb-8 {
|
|
2841
2849
|
padding-bottom: calc(var(--spacing) * 8);
|
|
2842
2850
|
}
|
|
@@ -5211,6 +5219,16 @@
|
|
|
5211
5219
|
grid-template-columns: minmax(10rem,1fr) minmax(0,2fr) minmax(0,10rem) auto;
|
|
5212
5220
|
}
|
|
5213
5221
|
}
|
|
5222
|
+
.dark\:block {
|
|
5223
|
+
&:where(.dark, .dark *) {
|
|
5224
|
+
display: block;
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
.dark\:hidden {
|
|
5228
|
+
&:where(.dark, .dark *) {
|
|
5229
|
+
display: none;
|
|
5230
|
+
}
|
|
5231
|
+
}
|
|
5214
5232
|
.dark\:rounded-\[22\%\] {
|
|
5215
5233
|
&:where(.dark, .dark *) {
|
|
5216
5234
|
border-radius: 22%;
|
|
@@ -5222,6 +5240,11 @@
|
|
|
5222
5240
|
border-style: none;
|
|
5223
5241
|
}
|
|
5224
5242
|
}
|
|
5243
|
+
.dark\:bg-\(--ph-pane-bg-dark\) {
|
|
5244
|
+
&:where(.dark, .dark *) {
|
|
5245
|
+
background-color: var(--ph-pane-bg-dark);
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5225
5248
|
.dark\:bg-foreground\/30 {
|
|
5226
5249
|
&:where(.dark, .dark *) {
|
|
5227
5250
|
background-color: var(--foreground);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { c as NodeView, d as AppLayout, l as DrivePending, n as settingsTabRoutes, o as DriveLayout, r as SettingsPage, s as Home, u as RouteError } from "./settings-tabs-
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f80b8260-a226-5d19-8354-5186b3a6ce85")}catch(e){}}();
|
|
3
|
+
import { c as NodeView, d as AppLayout, l as DrivePending, n as settingsTabRoutes, o as DriveLayout, r as SettingsPage, s as Home, u as RouteError } from "./settings-tabs-BC8gAacB.js";
|
|
4
4
|
import { lazy } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/generic/modals.ts
|
|
7
7
|
const AddDriveModal = lazy(() => import("./AddDriveModal-BjgmiHJr.js").then((m) => ({ default: m.AddDriveModal })));
|
|
8
|
-
const ClearStorageModal = lazy(() => import("./ClearStorageModal-
|
|
8
|
+
const ClearStorageModal = lazy(() => import("./ClearStorageModal-DxBXLSmH.js").then((m) => ({ default: m.ClearStorageModal })));
|
|
9
9
|
const CreateDocumentModal = lazy(() => import("./CreateDocumentModal-B-cXzeOA.js").then((m) => ({ default: m.CreateDocumentModal })));
|
|
10
|
-
const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-
|
|
10
|
+
const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-D1I-K2Gf.js").then((m) => ({ default: m.DebugSettingsModal })));
|
|
11
11
|
const DeleteDriveModal = lazy(() => import("./DeleteDriveModal-1pAIayG_.js").then((m) => ({ default: m.DeleteDriveModal })));
|
|
12
12
|
const DeleteItemModal = lazy(() => import("./DeleteItemModal-BUpqmFxS.js").then((m) => ({ default: m.DeleteItemModal })));
|
|
13
13
|
const DisclaimerModal = lazy(() => import("./DisclaimerModal-TIJXRYLF.js").then((m) => ({ default: m.DisclaimerModal })));
|
|
@@ -30,7 +30,7 @@ const genericModals = {
|
|
|
30
30
|
downloadDocumentWithErrors: DownloadDocumentWithErrorsModal,
|
|
31
31
|
documentVersionUnsupported: DocumentVersionUnsupportedModal,
|
|
32
32
|
confirmDocumentUpgrade: ConfirmDocumentUpgradeModal,
|
|
33
|
-
inspector: lazy(() => import("./InspectorModal-
|
|
33
|
+
inspector: lazy(() => import("./InspectorModal-D85U4oKJ.js").then((m) => ({ default: m.InspectorModal }))),
|
|
34
34
|
upgradeDrive: UpgradeDriveModal,
|
|
35
35
|
driveAuthRequired: lazy(() => import("./DriveAuthRequiredModal-XTcoJKvj.js").then((m) => ({ default: m.DriveAuthRequiredModal }))),
|
|
36
36
|
login: lazy(() => import("./LoginModal-O06ZvWFI.js").then((m) => ({ default: m.LoginModal })))
|
|
@@ -62,5 +62,5 @@ const genericUi = {
|
|
|
62
62
|
//#endregion
|
|
63
63
|
export { genericUi as default };
|
|
64
64
|
|
|
65
|
-
//# sourceMappingURL=ui-
|
|
66
|
-
//# debugId=
|
|
65
|
+
//# sourceMappingURL=ui-BOTsJPoc.js.map
|
|
66
|
+
//# debugId=f80b8260-a226-5d19-8354-5186b3a6ce85
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-
|
|
1
|
+
{"version":3,"file":"ui-BOTsJPoc.js","sources":["../src/generic/modals.ts","../src/generic/ui.tsx"],"sourcesContent":["import type { ConnectModals } from \"@powerhousedao/connect-core/router\";\nimport { lazy } from \"react\";\n\nconst AddDriveModal = lazy(() =>\n import(\"./modals/AddDriveModal.js\").then((m) => ({\n default: m.AddDriveModal,\n })),\n);\nconst ClearStorageModal = lazy(() =>\n import(\"./modals/ClearStorageModal.js\").then((m) => ({\n default: m.ClearStorageModal,\n })),\n);\nconst CreateDocumentModal = lazy(() =>\n import(\"./modals/CreateDocumentModal.js\").then((m) => ({\n default: m.CreateDocumentModal,\n })),\n);\nconst DebugSettingsModal = lazy(() =>\n import(\"./modals/DebugSettingsModal.js\").then((m) => ({\n default: m.DebugSettingsModal,\n })),\n);\nconst DeleteDriveModal = lazy(() =>\n import(\"./modals/DeleteDriveModal.js\").then((m) => ({\n default: m.DeleteDriveModal,\n })),\n);\nconst DeleteItemModal = lazy(() =>\n import(\"./modals/DeleteItemModal.js\").then((m) => ({\n default: m.DeleteItemModal,\n })),\n);\nconst DisclaimerModal = lazy(() =>\n import(\"./modals/DisclaimerModal.js\").then((m) => ({\n default: m.DisclaimerModal,\n })),\n);\nconst DriveSettingsModal = lazy(() =>\n import(\"./modals/DriveSettingsModal.js\").then((m) => ({\n default: m.DriveSettingsModal,\n })),\n);\nconst DownloadDocumentWithErrorsModal = lazy(() =>\n import(\"./modals/DownloadDocumentWithErrorsModal.js\").then((m) => ({\n default: m.DownloadDocumentWithErrorsModal,\n })),\n);\nconst DocumentVersionUnsupportedModal = lazy(() =>\n import(\"./modals/DocumentVersionUnsupportedModal.js\").then((m) => ({\n default: m.DocumentVersionUnsupportedModal,\n })),\n);\nconst ConfirmDocumentUpgradeModal = lazy(() =>\n import(\"./modals/ConfirmDocumentUpgradeModal.js\").then((m) => ({\n default: m.ConfirmDocumentUpgradeModal,\n })),\n);\nconst UpgradeDriveModal = lazy(() =>\n import(\"./modals/UpgradeDriveModal.js\").then((m) => ({\n default: m.UpgradeDriveModal,\n })),\n);\nconst InspectorModal = lazy(() =>\n import(\"./modals/InspectorModal/index.js\").then((m) => ({\n default: m.InspectorModal,\n })),\n);\nconst DriveAuthRequiredModal = lazy(() =>\n import(\"./modals/DriveAuthRequiredModal.js\").then((m) => ({\n default: m.DriveAuthRequiredModal,\n })),\n);\nconst LoginModal = lazy(() =>\n import(\"./modals/LoginModal.js\").then((m) => ({\n default: m.LoginModal,\n })),\n);\n\n/** The generic plugin's modals: its chrome's, and core's in its style.\n * \"settings\" is a page; showPHModal navigates to it. */\nexport const genericModals: ConnectModals = {\n addDrive: AddDriveModal,\n clearStorage: ClearStorageModal,\n createDocument: CreateDocumentModal,\n debugSettings: DebugSettingsModal,\n deleteDrive: DeleteDriveModal,\n deleteItem: DeleteItemModal,\n disclaimer: DisclaimerModal,\n driveSettings: DriveSettingsModal,\n downloadDocumentWithErrors: DownloadDocumentWithErrorsModal,\n documentVersionUnsupported: DocumentVersionUnsupportedModal,\n confirmDocumentUpgrade: ConfirmDocumentUpgradeModal,\n inspector: InspectorModal,\n upgradeDrive: UpgradeDriveModal,\n driveAuthRequired: DriveAuthRequiredModal,\n login: LoginModal,\n};\n","// The generic plugin's UI: Connect's sidebar, drives, editors, settings and\n// modals over core's routes. Loaded only while the plugin is active.\nimport type { ConnectPluginUi } from \"@powerhousedao/connect-core/plugins\";\nimport { AppLayout } from \"./layout/app-layout.js\";\nimport { DrivePending, RouteError } from \"./layout/route-views.js\";\nimport { genericModals } from \"./modals.js\";\nimport { DriveLayout, Home, NodeView } from \"./pages/content.js\";\nimport { SettingsPage } from \"./settings/tabs.js\";\nimport { settingsTabRoutes } from \"./settings-tabs.js\";\n\nconst GenericLayout = () => <AppLayout />;\n\nconst genericUi: ConnectPluginUi = {\n routes: {\n \"/_app\": { component: GenericLayout },\n \"/_app/\": { component: Home },\n \"/_app/d/$driveSlug\": {\n component: DriveLayout,\n pendingComponent: DrivePending,\n },\n \"/_app/d/$driveSlug/{-$nodeSlug}\": {\n component: NodeView,\n pendingComponent: DrivePending,\n },\n \"/_app/settings\": { component: SettingsPage },\n // Core's tabs; the package manager and the theme toggle replace them.\n \"/_app/settings/appearance\": { staticData: { settings: undefined } },\n \"/_app/settings/packages\": { staticData: { settings: undefined } },\n },\n addRoutes: settingsTabRoutes,\n modals: genericModals,\n errorComponent: RouteError,\n commonEditors: true,\n};\n\nexport default genericUi;\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,gBAAgB,WACpB,OAAO,8BAA4B,CAAC,MAAM,OAAO,EAC/C,SAAS,EAAE,cACb,EAAE,CACJ;AACA,MAAM,oBAAoB,WACxB,OAAO,kCAAgC,CAAC,MAAM,OAAO,EACnD,SAAS,EAAE,kBACb,EAAE,CACJ;AACA,MAAM,sBAAsB,WAC1B,OAAO,oCAAkC,CAAC,MAAM,OAAO,EACrD,SAAS,EAAE,oBACb,EAAE,CACJ;AACA,MAAM,qBAAqB,WACzB,OAAO,mCAAiC,CAAC,MAAM,OAAO,EACpD,SAAS,EAAE,mBACb,EAAE,CACJ;AACA,MAAM,mBAAmB,WACvB,OAAO,iCAA+B,CAAC,MAAM,OAAO,EAClD,SAAS,EAAE,iBACb,EAAE,CACJ;AACA,MAAM,kBAAkB,WACtB,OAAO,gCAA8B,CAAC,MA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X,kBAAkB;EACpB;EACA,mCAAmC;GACjC,WAAW;GACX,kBAAkB;EACpB;EACA,kBAAkB,EAAE,WAAW,aAAa;EAE5C,6BAA6B,EAAE,YAAY,EAAE,UAAU,KAAA,EAAU,EAAE;EACnE,2BAA2B,EAAE,YAAY,EAAE,UAAU,KAAA,EAAU,EAAE;CACnE;CACA,WAAW;CACX,QAAQ;CACR,gBAAgB;CAChB,eAAe;AACjB","debug_id":"f80b8260-a226-5d19-8354-5186b3a6ce85"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e6638d7f-de22-586b-ade3-9df63b508326")}catch(e){}}();
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { connectDriveSectionsSchema, connectDrivesSchema, connectHomeSchema, connectOpenPanelSchema, connectSentrySchema } from "@powerhousedao/shared/connect/connect-config-schema";
|
|
5
|
+
import { ref } from "@powerhousedao/shared/host-tokens";
|
|
6
|
+
//#region src/plugin-configs/assistant.ts
|
|
7
|
+
/** `@powerhousedao/connect/plugins/assistant` takes no entry config: presence
|
|
8
|
+
* is the `ai.assistantEnabled` switch. */
|
|
9
|
+
const assistantConfigSchema = z.strictObject({});
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/plugin-configs/generic.ts
|
|
12
|
+
const genericConfigSchema = z.strictObject({
|
|
13
|
+
allowAddDrive: connectDrivesSchema.shape.allowAddDrive,
|
|
14
|
+
sections: connectDriveSectionsSchema.optional(),
|
|
15
|
+
icons: connectDrivesSchema.shape.icons,
|
|
16
|
+
homeBackground: connectHomeSchema.shape.background
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/plugin-configs/openpanel.ts
|
|
20
|
+
/** The `@powerhousedao/connect/plugins/openpanel` entry config IS the
|
|
21
|
+
* `connect.openPanel` slice, typed and validated by that slice's
|
|
22
|
+
* single-source schema (a typo'd key fails). */
|
|
23
|
+
const openPanelConfigSchema = connectOpenPanelSchema;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/plugin-configs/sentry.ts
|
|
26
|
+
/** The `@powerhousedao/connect/plugins/sentry` entry config IS the
|
|
27
|
+
* `connect.sentry` slice, typed and validated by that slice's single-source
|
|
28
|
+
* schema (a typo'd key fails). */
|
|
29
|
+
const sentryConfigSchema = connectSentrySchema;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/plugin-configs/vetra-studio.ts
|
|
32
|
+
/** `@powerhousedao/vetra-studio/connect` takes no entry config: presence is
|
|
33
|
+
* the studio-mode switch. */
|
|
34
|
+
const vetraStudioConfigSchema = z.strictObject({});
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/plugin-configs/workflows.ts
|
|
37
|
+
/** The token form that replaced `{ from, slug }` drive references. */
|
|
38
|
+
const DRIVE_TOKEN_HINT = "use switchboard.drives.workflows.url from ../switchboard/outputs.js, or { $output: { host: \"switchboard\", path: [\"drives\", \"workflows\", \"url\"] } }";
|
|
39
|
+
/** `{ from, slug }`: the compound drive reference output tokens replaced.
|
|
40
|
+
* (A schema, not an `in` check: the import-allowlist scans read a quoted
|
|
41
|
+
* `from` as an import specifier.) */
|
|
42
|
+
const removedDriveReferenceSchema = z.looseObject({
|
|
43
|
+
from: z.string(),
|
|
44
|
+
slug: z.string()
|
|
45
|
+
});
|
|
46
|
+
/** `drive` as `ref(z.url())`, with the removed `{ from, slug }` form named
|
|
47
|
+
* in its error instead of zod's generic union message. */
|
|
48
|
+
const driveSchema = z.union(ref(z.url()).options, { error: (issue) => removedDriveReferenceSchema.safeParse(issue.input).success ? `drive: { from, slug } was removed; ${DRIVE_TOKEN_HINT}` : void 0 });
|
|
49
|
+
/** The `@powerhousedao/connect/plugins/workflows` entry config. `drive` is
|
|
50
|
+
* the switchboard's Workflows drive URL; a host file usually writes it as an
|
|
51
|
+
* output token, which `ph run` resolves before the config reaches the
|
|
52
|
+
* browser. */
|
|
53
|
+
const workflowsConnectConfigSchema = z.strictObject({
|
|
54
|
+
drive: driveSchema.optional(),
|
|
55
|
+
/** Display name for the attached drive entry (the drive's own name wins
|
|
56
|
+
* once it syncs). */
|
|
57
|
+
name: z.string().min(1).optional()
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { genericConfigSchema as a, openPanelConfigSchema as i, vetraStudioConfigSchema as n, assistantConfigSchema as o, sentryConfigSchema as r, workflowsConnectConfigSchema as t };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=workflows-C3qEvx1R.js.map
|
|
63
|
+
//# debugId=e6638d7f-de22-586b-ade3-9df63b508326
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows-C3qEvx1R.js","sources":["../src/plugin-configs/assistant.ts","../src/plugin-configs/generic.ts","../src/plugin-configs/openpanel.ts","../src/plugin-configs/sentry.ts","../src/plugin-configs/vetra-studio.ts","../src/plugin-configs/workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/** `@powerhousedao/connect/plugins/assistant` takes no entry config: presence\n * is the `ai.assistantEnabled` switch. */\nexport const assistantConfigSchema = z.strictObject({});\n\n/** What a host.js entry writes (a type alias, so it stays assignable to the\n * runtime `PluginEntryData` config record). */\nexport type AssistantConfigInput = z.input<typeof assistantConfigSchema>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/connect/plugins/assistant\": AssistantConfigInput;\n }\n}\n","import {\n connectDriveSectionsSchema,\n connectDrivesSchema,\n connectHomeSchema,\n} from \"@powerhousedao/shared/connect/connect-config-schema\";\nimport { z } from \"zod\";\n\n// The `@powerhousedao/connect/plugins/generic` entry config is the owned\n// slices themselves, typed by the single-source Connect config schemas\n// (typed-host-configs 1.6): `allowAddDrive`, `sections` and `icons` are\n// `connect.drives.*`, `homeBackground` is `connect.home.background`. Strict,\n// so a typo'd key fails instead of being ignored. The build's image\n// resolution keeps the shape, so the same schema holds before and after it.\nexport const genericConfigSchema = z.strictObject({\n allowAddDrive: connectDrivesSchema.shape.allowAddDrive,\n sections: connectDriveSectionsSchema.optional(),\n icons: connectDrivesSchema.shape.icons,\n homeBackground: connectHomeSchema.shape.background,\n});\n\nexport type GenericConfig = z.output<typeof genericConfigSchema>;\n\n/** What a host.js entry writes. A type alias, not an interface, so it stays\n * assignable to the runtime `PluginEntryData` config record. */\nexport type GenericConfigInput = z.input<typeof genericConfigSchema>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/connect/plugins/generic\": GenericConfigInput;\n }\n}\n","import { connectOpenPanelSchema } from \"@powerhousedao/shared/connect/connect-config-schema\";\nimport type { z } from \"zod\";\n\n/** The `@powerhousedao/connect/plugins/openpanel` entry config IS the\n * `connect.openPanel` slice, typed and validated by that slice's\n * single-source schema (a typo'd key fails). */\nexport const openPanelConfigSchema = connectOpenPanelSchema;\n\n/** What a host.js entry writes (a type alias, so it stays assignable to the\n * runtime `PluginEntryData` config record). */\nexport type OpenPanelConfigInput = z.input<typeof openPanelConfigSchema>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/connect/plugins/openpanel\": OpenPanelConfigInput;\n }\n}\n","import { connectSentrySchema } from \"@powerhousedao/shared/connect/connect-config-schema\";\nimport type { z } from \"zod\";\n\n/** The `@powerhousedao/connect/plugins/sentry` entry config IS the\n * `connect.sentry` slice, typed and validated by that slice's single-source\n * schema (a typo'd key fails). */\nexport const sentryConfigSchema = connectSentrySchema;\n\n/** What a host.js entry writes (a type alias, so it stays assignable to the\n * runtime `PluginEntryData` config record). */\nexport type SentryConfigInput = z.input<typeof sentryConfigSchema>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/connect/plugins/sentry\": SentryConfigInput;\n }\n}\n","import { z } from \"zod\";\n\n/** `@powerhousedao/vetra-studio/connect` takes no entry config: presence is\n * the studio-mode switch. */\nexport const vetraStudioConfigSchema = z.strictObject({});\n\n/** What a host.js entry writes (a type alias, so it stays assignable to the\n * runtime `PluginEntryData` config record). */\nexport type VetraStudioConfigInput = z.input<typeof vetraStudioConfigSchema>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/vetra-studio/connect\": VetraStudioConfigInput;\n }\n}\n","import { ref } from \"@powerhousedao/shared/host-tokens\";\nimport { z } from \"zod\";\n\n/** The token form that replaced `{ from, slug }` drive references. */\nconst DRIVE_TOKEN_HINT =\n 'use switchboard.drives.workflows.url from ../switchboard/outputs.js, or { $output: { host: \"switchboard\", path: [\"drives\", \"workflows\", \"url\"] } }';\n\n/** `{ from, slug }`: the compound drive reference output tokens replaced.\n * (A schema, not an `in` check: the import-allowlist scans read a quoted\n * `from` as an import specifier.) */\nconst removedDriveReferenceSchema = z.looseObject({\n from: z.string(),\n slug: z.string(),\n});\n\n/** `drive` as `ref(z.url())`, with the removed `{ from, slug }` form named\n * in its error instead of zod's generic union message. */\nconst driveSchema = z.union(ref(z.url()).options, {\n error: (issue) =>\n removedDriveReferenceSchema.safeParse(issue.input).success\n ? `drive: { from, slug } was removed; ${DRIVE_TOKEN_HINT}`\n : undefined,\n});\n\n/** The `@powerhousedao/connect/plugins/workflows` entry config. `drive` is\n * the switchboard's Workflows drive URL; a host file usually writes it as an\n * output token, which `ph run` resolves before the config reaches the\n * browser. */\nexport const workflowsConnectConfigSchema = z.strictObject({\n drive: driveSchema.optional(),\n /** Display name for the attached drive entry (the drive's own name wins\n * once it syncs). */\n name: z.string().min(1).optional(),\n});\n\nexport type WorkflowsConnectConfig = z.infer<\n typeof workflowsConnectConfigSchema\n>;\n\n/** What a host.js entry writes: `drive` is a URL or an output token. A type\n * alias, not an interface, so it stays assignable to the runtime\n * `PluginEntryData` config record. */\nexport type WorkflowsConnectConfigInput = z.input<\n typeof workflowsConnectConfigSchema\n>;\n\ndeclare global {\n interface PHPluginConfigs {\n \"@powerhousedao/connect/plugins/workflows\": WorkflowsConnectConfigInput;\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAIA,MAAa,wBAAwB,EAAE,aAAa,CAAC,CAAC;;;ACStD,MAAa,sBAAsB,EAAE,aAAa;CAChD,eAAe,oBAAoB,MAAM;CACzC,UAAU,2BAA2B,SAAS;CAC9C,OAAO,oBAAoB,MAAM;CACjC,gBAAgB,kBAAkB,MAAM;AAC1C,CAAC;;;;;;ACZD,MAAa,wBAAwB;;;;;;ACArC,MAAa,qBAAqB;;;;;ACFlC,MAAa,0BAA0B,EAAE,aAAa,CAAC,CAAC;;;;ACAxD,MAAM,mBACJ;;;;AAKF,MAAM,8BAA8B,EAAE,YAAY;CAChD,MAAM,EAAE,OAAO;CACf,MAAM,EAAE,OAAO;AACjB,CAAC;;;AAID,MAAM,cAAc,EAAE,MAAM,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,EAChD,QAAQ,UACN,4BAA4B,UAAU,MAAM,KAAK,CAAC,CAAC,UAC/C,sCAAsC,qBACtC,KAAA,EACR,CAAC;;;;;AAMD,MAAa,+BAA+B,EAAE,aAAa;CACzD,OAAO,YAAY,SAAS;;;CAG5B,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACnC,CAAC","debug_id":"e6638d7f-de22-586b-ade3-9df63b508326"}
|
|
@@ -64,6 +64,6 @@ export default {
|
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
- A host's `config` merges over the project's `connect` block field by field, so a host inherits what it doesn't set.
|
|
67
|
-
- `branding.favicon` is a file (`.ico`, `.svg` or `.png`) relative to the project. `ph run lab dev` serves it and `ph run lab build` builds it as `icon.ico`; the built `powerhouse.config.json` leaves the path out. `ph connect build --favicon` wins over it.
|
|
67
|
+
- `branding.favicon` is a file (`.ico`, `.svg` or `.png`) relative to the project. `ph run lab dev` serves it and `ph run lab build` builds it as `icon.ico`; the built `powerhouse.config.json` leaves the path out. `ph connect build --favicon` wins over it, and either wins over the `_16x16`…`_64x64` favicons taken from `branding.icon` (whose app icons still apply).
|
|
68
68
|
- `ph run lab build` bakes the host's `config` into the build, over `powerhouse.config.json`: the `<title>` and the loading screen take its `branding.appName`, and the build uses its `app.basePath` and `pwa`.
|
|
69
69
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/connect",
|
|
3
3
|
"productName": "Powerhouse-Connect",
|
|
4
|
-
"version": "6.2.3-dev.
|
|
4
|
+
"version": "6.2.3-dev.71",
|
|
5
5
|
"description": "Powerhouse Connect",
|
|
6
6
|
"main": "dist/index.html",
|
|
7
7
|
"type": "module",
|
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
"types": "./dist/route-views.d.ts",
|
|
72
72
|
"import": "./dist/route-views.js"
|
|
73
73
|
},
|
|
74
|
+
"./plugin-configs": {
|
|
75
|
+
"source": "./src/plugin-configs/index.ts",
|
|
76
|
+
"types": "./dist/plugin-configs.d.ts",
|
|
77
|
+
"import": "./dist/plugin-configs.js",
|
|
78
|
+
"default": "./dist/plugin-configs.js"
|
|
79
|
+
},
|
|
74
80
|
"./routes/*": "./src/routes/*.tsx",
|
|
75
81
|
"./assets/*": "./assets/*",
|
|
76
82
|
"./style.css": "./dist/style.css",
|
|
@@ -104,28 +110,28 @@
|
|
|
104
110
|
"@openfeature/core": "1.9.1",
|
|
105
111
|
"@openfeature/web-sdk": "1.6.2",
|
|
106
112
|
"@openpanel/web": "^1.4.1",
|
|
107
|
-
"@powerhousedao/config": "6.2.3-dev.
|
|
108
|
-
"@powerhousedao/connect-core": "6.2.3-dev.
|
|
109
|
-
"@powerhousedao/design-system": "6.2.3-dev.
|
|
113
|
+
"@powerhousedao/config": "6.2.3-dev.71",
|
|
114
|
+
"@powerhousedao/connect-core": "6.2.3-dev.71",
|
|
115
|
+
"@powerhousedao/design-system": "6.2.3-dev.71",
|
|
110
116
|
"@powerhousedao/document-engineering": "1.40.5",
|
|
111
|
-
"@powerhousedao/host-core": "6.2.3-dev.
|
|
112
|
-
"@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.
|
|
113
|
-
"@powerhousedao/reactor": "6.2.3-dev.
|
|
114
|
-
"@powerhousedao/reactor-attachments": "6.2.3-dev.
|
|
115
|
-
"@powerhousedao/reactor-browser": "6.2.3-dev.
|
|
116
|
-
"@powerhousedao/reactor-mcp": "6.2.3-dev.
|
|
117
|
-
"@powerhousedao/reactor-router": "6.2.3-dev.
|
|
118
|
-
"@powerhousedao/shared": "6.2.3-dev.
|
|
119
|
-
"@powerhousedao/vetra": "6.2.3-dev.
|
|
120
|
-
"@powerhousedao/workflow": "6.2.3-dev.
|
|
117
|
+
"@powerhousedao/host-core": "6.2.3-dev.71",
|
|
118
|
+
"@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.71",
|
|
119
|
+
"@powerhousedao/reactor": "6.2.3-dev.71",
|
|
120
|
+
"@powerhousedao/reactor-attachments": "6.2.3-dev.71",
|
|
121
|
+
"@powerhousedao/reactor-browser": "6.2.3-dev.71",
|
|
122
|
+
"@powerhousedao/reactor-mcp": "6.2.3-dev.71",
|
|
123
|
+
"@powerhousedao/reactor-router": "6.2.3-dev.71",
|
|
124
|
+
"@powerhousedao/shared": "6.2.3-dev.71",
|
|
125
|
+
"@powerhousedao/vetra": "6.2.3-dev.71",
|
|
126
|
+
"@powerhousedao/workflow": "6.2.3-dev.71",
|
|
121
127
|
"@privy-io/react-auth": "3.35.0",
|
|
122
128
|
"@rainbow-me/rainbowkit": "^2.2.11",
|
|
123
|
-
"@renown/sdk": "6.2.3-dev.
|
|
129
|
+
"@renown/sdk": "6.2.3-dev.71",
|
|
124
130
|
"@sentry/react": "^10.17.0",
|
|
125
131
|
"@tailwindcss/node": "4.2.2",
|
|
126
132
|
"@tanstack/react-query": "^5.90.2",
|
|
127
133
|
"@tanstack/react-router": "^1.170.41",
|
|
128
|
-
"document-model": "6.2.3-dev.
|
|
134
|
+
"document-model": "6.2.3-dev.71",
|
|
129
135
|
"i18next": "^25.5.3",
|
|
130
136
|
"kysely": "0.28.16",
|
|
131
137
|
"kysely-pglite-dialect": "1.2.0",
|
|
@@ -174,7 +180,7 @@
|
|
|
174
180
|
"test": "vitest --run",
|
|
175
181
|
"dev": "vite dev",
|
|
176
182
|
"build": "pnpm run build:bundle && pnpm run build:css && pnpm run build:shell",
|
|
177
|
-
"build:bundle": "tsdown",
|
|
183
|
+
"build:bundle": "tsdown && node scripts/assert-plugin-configs.mjs",
|
|
178
184
|
"build:css": "pnpm exec tailwindcss -i style.css -o dist/style.css",
|
|
179
185
|
"build:shell": "vite build --config vite.prerender.config.ts --logLevel warn && node scripts/prerender-shell.ts",
|
|
180
186
|
"build:debug": "cross-env PH_DEBUG_BUILD=true vite build",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Fails the build when dist/plugin-configs.js (or any chunk it imports)
|
|
2
|
+
// imports anything beyond its zod-only allowlist: the entry must load in
|
|
3
|
+
// Node (`ph run` validates plugin entry configs with it) and in a browser,
|
|
4
|
+
// so it may not reach React, the DOM app, or a Node built-in.
|
|
5
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
|
|
9
|
+
const dist = path.join(
|
|
10
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
11
|
+
"..",
|
|
12
|
+
"dist",
|
|
13
|
+
);
|
|
14
|
+
const ENTRY = "plugin-configs.js";
|
|
15
|
+
const ALLOWED = new Set([
|
|
16
|
+
"zod",
|
|
17
|
+
"@powerhousedao/shared/connect/connect-config-schema",
|
|
18
|
+
"@powerhousedao/shared/host-tokens",
|
|
19
|
+
]);
|
|
20
|
+
const IMPORT = /(?:\bfrom\s*|\bimport\s*\(?\s*)["']([^"']+)["']/g;
|
|
21
|
+
|
|
22
|
+
const failures = [];
|
|
23
|
+
const seen = new Set();
|
|
24
|
+
const queue = [ENTRY];
|
|
25
|
+
while (queue.length > 0) {
|
|
26
|
+
const file = queue.shift();
|
|
27
|
+
if (seen.has(file)) continue;
|
|
28
|
+
seen.add(file);
|
|
29
|
+
const full = path.join(dist, file);
|
|
30
|
+
if (!existsSync(full)) {
|
|
31
|
+
failures.push(`${file} is missing from dist/`);
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
for (const [, specifier] of readFileSync(full, "utf8").matchAll(IMPORT)) {
|
|
35
|
+
if (specifier.startsWith(".")) {
|
|
36
|
+
queue.push(path.posix.join(path.posix.dirname(file), specifier));
|
|
37
|
+
} else if (!ALLOWED.has(specifier)) {
|
|
38
|
+
failures.push(`${file} imports "${specifier}"`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (failures.length > 0) {
|
|
44
|
+
console.error(`${ENTRY} must stay zod-only:\n ${failures.join("\n ")}`);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
47
|
+
console.log(`${ENTRY} is zod-only (${seen.size} file(s))`);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { t as AppLoader } from "./app-loader-DtH6v5CE.js";
|
|
2
|
-
export { AppLoader };
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0f348b5b-50a4-5272-906c-9d850785f98f")}catch(e){}}();
|
|
4
|
-
//# debugId=0f348b5b-50a4-5272-906c-9d850785f98f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-skeleton-BFjvlTWd.js","sources":["../src/components/migration-status.ts","../src/utils/browser.ts","../src/components/app-skeleton.tsx"],"sourcesContent":["export type MigrationPhase = \"clone\" | \"dump\" | \"restore\";\n\nexport type MigrationStatus = {\n idbName: string;\n phase: MigrationPhase;\n};\n\nlet current: MigrationStatus | null = null;\nconst listeners = new Set<() => void>();\n\nexport function setMigrationStatus(status: MigrationStatus | null): void {\n current = status;\n for (const l of listeners) l();\n}\n\nexport function getMigrationStatus(): MigrationStatus | null {\n return current;\n}\n\nexport function subscribeMigrationStatus(cb: () => void): () => void {\n listeners.add(cb);\n return () => {\n listeners.delete(cb);\n };\n}\n","export function getBasePath() {\n if (typeof document === \"undefined\") {\n return \"/\";\n }\n\n const baseEl = document.querySelector(\"base\");\n const href = baseEl?.getAttribute(\"href\");\n return href || \"/\";\n}\n","// Leaf imports, not the `@powerhousedao/connect/{utils,hooks}` barrels: this\n// is the first contentful paint and main.tsx loads it BEFORE the runtime\n// config is fetched. The barrels re-export modules that read the config at\n// module-evaluation (which throws if the config cache isn't warm), so they\n// must stay out of this graph.\nimport { getBasePath } from \"../utils/browser.js\";\nimport { getIsEmbedded } from \"@powerhousedao/connect-core/embedded\";\nimport {\n ConnectSidebar,\n HomeScreen,\n LogoAnimation,\n} from \"@powerhousedao/design-system/connect\";\nimport { initTheme } from \"@powerhousedao/reactor-browser\";\nimport {\n useEffect,\n useState,\n useSyncExternalStore,\n type PropsWithChildren,\n} from \"react\";\nimport {\n getMigrationStatus,\n subscribeMigrationStatus,\n type MigrationPhase,\n} from \"./migration-status.js\";\nconst LOADER_DELAY = 250;\n\nconst PHASE_LABEL: Record<MigrationPhase, string> = {\n clone: \"Backing up local database…\",\n dump: \"Exporting data from previous version…\",\n restore: \"Restoring data into the new database…\",\n};\n\nconst MigrationOverlay = () => {\n const status = useSyncExternalStore(\n subscribeMigrationStatus,\n getMigrationStatus,\n () => null,\n );\n if (!status) return null;\n return (\n <div className=\"absolute inset-0 z-20 flex items-center justify-center\">\n <div className=\"rounded-lg bg-card/90 px-6 py-4 text-sm text-foreground shadow-lg\">\n <div className=\"font-medium\">Upgrading local database…</div>\n <div className=\"text-foreground\">{PHASE_LABEL[status.phase]}</div>\n </div>\n </div>\n );\n};\n\nconst Loader = ({ delay = LOADER_DELAY }: { delay?: number }) => {\n const isSSR = typeof window === \"undefined\";\n const showInitialLoader =\n typeof document !== \"undefined\" &&\n document.body.getAttribute(\"data-show-loader\") === \"true\";\n if (!isSSR) {\n initTheme();\n }\n\n const [showLoading, setShowLoading] = useState(!delay || showInitialLoader);\n\n useEffect(() => {\n const id = setTimeout(() => {\n setShowLoading(true);\n // Latch it on the body — the same flag the SSR branch below sets, and\n // the one `showInitialLoader` reads on mount. The bootstrap renders this\n // skeleton, then swaps in the config-dependent app whose Suspense\n // fallback is this same component, which remounts it. Without the latch\n // the delay re-arms and the logo blinks out for another `delay` ms at\n // exactly the moment the app is loading.\n document.body.setAttribute(\"data-show-loader\", \"true\");\n }, delay);\n\n return () => clearTimeout(id);\n }, []);\n\n return (\n <div\n className={`skeleton-loader absolute inset-0 z-10 flex items-center justify-center ${showLoading ? \"\" : \"hidden\"}`}\n >\n <div className=\"animate-pulse overflow-hidden rounded-full shadow-lg motion-reduce:animate-none\">\n <LogoAnimation />\n </div>\n {isSSR ? (\n <script\n dangerouslySetInnerHTML={{\n __html: `setTimeout(() => {\n document.querySelector('.skeleton-loader')?.classList.remove('hidden');\n document.body.setAttribute('data-show-loader', 'true');\n }, ${delay})`,\n }}\n />\n ) : null}\n </div>\n );\n};\n\nexport const AppSkeleton: React.FC<PropsWithChildren> = (props) => {\n const isSSR = typeof window === \"undefined\";\n const isHomeScreen = !isSSR && window.location.pathname === getBasePath();\n /* Match Root's behavior: when Connect is rendered inside an embed (e.g. the\n * vetra-studio BUILD iframe), suppress the sidebar during the Suspense\n * fallback so the loading state matches the loaded state. */\n const isEmbedded = !isSSR && getIsEmbedded();\n return (\n <div className=\"flex h-screen overflow-hidden bg-background\">\n {!isEmbedded && (\n <ConnectSidebar\n className=\"animate-pulse motion-reduce:animate-none\"\n onLogin={undefined}\n onDisconnect={undefined}\n onClickSettings={undefined}\n address={undefined}\n />\n )}\n <HomeScreen\n containerClassName={\n isSSR || !isHomeScreen ? \"home-screen hidden\" : undefined\n }\n children={props.children ?? null}\n />\n {isSSR ? (\n <script\n dangerouslySetInnerHTML={{\n __html: `\n const baseEl = document.querySelector('base');\n const href = baseEl?.getAttribute('href');\n const basePath = href || '/';\n if (window.location.pathname === basePath) {\n document.querySelector('.home-screen')?.classList.remove('hidden')\n }`,\n }}\n />\n ) : null}\n {!props.children ? <Loader /> : null}\n <MigrationOverlay />\n </div>\n );\n};\n\nexport default AppSkeleton;\n"],"names":[],"mappings":";;;;;;;;AAOA,IAAI,UAAkC;AACtC,MAAM,4BAAY,IAAI,IAAgB;AAEtC,SAAgB,mBAAmB,QAAsC;CACvE,UAAU;CACV,KAAK,MAAM,KAAK,WAAW,EAAE;AAC/B;AAEA,SAAgB,qBAA6C;CAC3D,OAAO;AACT;AAEA,SAAgB,yBAAyB,IAA4B;CACnE,UAAU,IAAI,EAAE;CAChB,aAAa;EACX,UAAU,OAAO,EAAE;CACrB;AACF;;;ACxBA,SAAgB,cAAc;CAC5B,IAAI,OAAO,aAAa,aACtB,OAAO;CAKT,OAFe,SAAS,cAAc,MACpB,CAAC,EAAE,aAAa,MAAM,KACzB;AACjB;;;ACgBA,MAAM,eAAe;AAErB,MAAM,cAA8C;CAClD,OAAO;CACP,MAAM;CACN,SAAS;AACX;AAEA,MAAM,yBAAyB;CAC7B,MAAM,SAAS,qBACb,0BACA,0BACM,IACR;CACA,IAAI,CAAC,QAAQ,OAAO;CACpB,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,oBAAC,OAAD;IAAK,WAAU;IAAc,UAAA;GAA8B,CAAA,GAC3D,oBAAC,OAAD;IAAK,WAAU;IAAmB,UAAA,YAAY,OAAO;GAAY,CAAA,CAC9D;;CACF,CAAA;AAET;AAEA,MAAM,UAAU,EAAE,QAAQ,mBAAuC;CAC/D,MAAM,QAAQ,OAAO,WAAW;CAChC,MAAM,oBACJ,OAAO,aAAa,eACpB,SAAS,KAAK,aAAa,kBAAkB,MAAM;CAC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"sourcesContent":["import { Icon } from \"@powerhousedao/design-system\";\nimport {\n DriveCollectionId,\n useSyncList,\n useTheme,\n} from \"@powerhousedao/reactor-browser\";\nimport type { DocumentDriveDocument } from \"@powerhousedao/shared/document-drive\";\nimport { useMemo, useState } from \"react\";\n\nexport function DriveIcon({\n drive,\n}: {\n drive: DocumentDriveDocument | undefined;\n}) {\n const remotes = useSyncList();\n const { theme } = useTheme();\n const isRemoteDrive = useMemo(() => {\n if (!drive) return false;\n\n return remotes.some((remote) =>\n remote.meta.collectionId.equals(\n DriveCollectionId.forDrive(drive.header.id),\n ),\n );\n }, [remotes, drive]);\n\n const driveIconSrc = drive?.state.global.icon;\n // A drive's icon is an arbitrary URL stored in its state, so it can rot:\n // the host goes away, the gateway starts refusing, the CID is unpinned.\n // Rendering the <img> anyway leaves a browser's broken-image glyph in the\n // sidebar forever, because the dead URL is baked into the document and no\n // later fix to whoever wrote it can reach the drives already created.\n //\n // The failure is remembered as the src that failed rather than a flag, so a\n // drive whose icon later changes retries on its own - no effect needed to\n // reset it.\n const [failedSrc, setFailedSrc] = useState<string | null>(null);\n\n if (driveIconSrc && driveIconSrc !== failedSrc) {\n // An icon is its own document once the browser renders it, so it cannot\n // see the `.dark` class the theme toggles on the host page. Propagating\n // the resolved theme as a color scheme is what lets an icon drawn against\n // `prefers-color-scheme` follow an explicit in-app choice rather than only\n // the OS preference.\n return (\n <img\n src={driveIconSrc}\n alt={drive.header.name}\n height={32}\n width={32}\n style={{ colorScheme: theme }}\n onError={() => setFailedSrc(driveIconSrc)}\n />\n );\n }\n\n if (!isRemoteDrive) {\n return <Icon name=\"Hdd\" size={32} />;\n }\n\n return <Icon name=\"Server\" size={32} />;\n}\n"],"names":[],"mappings":";;;;;;;AASA,SAAgB,UAAU,EACxB,SAGC;CACD,MAAM,UAAU,YAAY;CAC5B,MAAM,EAAE,UAAU,SAAS;CAC3B,MAAM,gBAAgB,cAAc;EAClC,IAAI,CAAC,OAAO,OAAO;EAEnB,OAAO,QAAQ,MAAM,WACnB,OAAO,KAAK,aAAa,OACvB,kBAAkB,SAAS,MAAM,OAAO,EAAE,CAC5C,CACF;CACF,GAAG,CAAC,SAAS,KAAK,CAAC;CAEnB,MAAM,eAAe,OAAO,MAAM,OAAO;CAUzC,MAAM,CAAC,WAAW,gBAAgB,SAAwB,IAAI;CAE9D,IAAI,gBAAgB,iBAAiB,WAMnC,OACE,oBAAC,OAAD;EACE,KAAK;EACL,KAAK,MAAM,OAAO;EAClB,QAAQ;EACR,OAAO;EACP,OAAO,EAAE,aAAa,MAAM;EAC5B,eAAe,aAAa,YAAY;CACzC,CAAA;CAIL,IAAI,CAAC,eACH,OAAO,oBAAC,MAAD;EAAM,MAAK;EAAM,MAAM;CAAK,CAAA;CAGrC,OAAO,oBAAC,MAAD;EAAM,MAAK;EAAS,MAAM;CAAK,CAAA;AACxC","debug_id":"ead78b3b-f177-590e-81d1-cfaa7f5325f5"}
|