@powerhousedao/connect 6.1.0-dev.12 → 6.1.0-dev.14

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.
Files changed (34) hide show
  1. package/dist/{ClearStorageModal-Dx_kY08P.js → ClearStorageModal-D2K3LkHV.js} +5 -6
  2. package/dist/ClearStorageModal-D2K3LkHV.js.map +1 -0
  3. package/dist/{CookiesPolicyModal-DiXQV82b.js → CookiesPolicyModal-4QzcllDR.js} +4 -4
  4. package/dist/{CookiesPolicyModal-DiXQV82b.js.map → CookiesPolicyModal-4QzcllDR.js.map} +1 -1
  5. package/dist/{DebugSettingsModal-DZcnTkMs.js → DebugSettingsModal-DPKKXMZt.js} +8 -8
  6. package/dist/DebugSettingsModal-DPKKXMZt.js.map +1 -0
  7. package/dist/{DownloadDocumentWithErrorsModal-5NDf6rH4.js → DownloadDocumentWithErrorsModal-CaAPGg04.js} +3 -4
  8. package/dist/DownloadDocumentWithErrorsModal-CaAPGg04.js.map +1 -0
  9. package/dist/{InspectorModal-Cm2GxgwK.js → InspectorModal-ywEL5GKA.js} +4 -4
  10. package/dist/{InspectorModal-Cm2GxgwK.js.map → InspectorModal-ywEL5GKA.js.map} +1 -1
  11. package/dist/{SettingsModal-BVesM-sY.js → SettingsModal-yuYEcU0F.js} +21 -21
  12. package/dist/SettingsModal-yuYEcU0F.js.map +1 -0
  13. package/dist/{build-info-BIaE1Kbx.js → build-info-qg2Alv_c.js} +4 -4
  14. package/dist/{build-info-BIaE1Kbx.js.map → build-info-qg2Alv_c.js.map} +1 -1
  15. package/dist/{load-Bf4Q8pUO.js → load-CHCKm1_A.js} +7 -6
  16. package/dist/{load-Bf4Q8pUO.js.map → load-CHCKm1_A.js.map} +1 -1
  17. package/dist/main.js +1 -1
  18. package/dist/{package-CbdoGL1x.js → package-CvGxQysn.js} +6 -5
  19. package/dist/package-CvGxQysn.js.map +1 -0
  20. package/dist/{reactor-BqTMQT3A.js → reactor-BixVsAMj.js} +10 -11
  21. package/dist/reactor-BixVsAMj.js.map +1 -0
  22. package/dist/{sidebar--SNGGkVA.js → sidebar-BG9ZKWVN.js} +45 -43
  23. package/dist/sidebar-BG9ZKWVN.js.map +1 -0
  24. package/dist/start-connect.js +1 -1
  25. package/dist/style.css +4872 -12777
  26. package/package.json +11 -10
  27. package/style.css +28 -0
  28. package/dist/ClearStorageModal-Dx_kY08P.js.map +0 -1
  29. package/dist/DebugSettingsModal-DZcnTkMs.js.map +0 -1
  30. package/dist/DownloadDocumentWithErrorsModal-5NDf6rH4.js.map +0 -1
  31. package/dist/SettingsModal-BVesM-sY.js.map +0 -1
  32. package/dist/package-CbdoGL1x.js.map +0 -1
  33. package/dist/reactor-BqTMQT3A.js.map +0 -1
  34. package/dist/sidebar--SNGGkVA.js.map +0 -1
@@ -1,11 +1,11 @@
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]="6595a537-debb-533b-99e8-b6c6379e11b4")}catch(e){}}();
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]="d8c9adb1-143b-5860-904f-b6af4153c2c2")}catch(e){}}();
3
3
  import { n as defaultPHAppConfig, r as defaultPHDocumentEditorConfig, t as connectConfig } from "./connect.config-B2xP5Iez.js";
4
4
  import { n as toast, t as ToastContainer } from "./toast-DnODOv28.js";
5
5
  import { t as i18n } from "./i18n-BuVT7wFQ.js";
6
6
  import { c as subscribeReactorPgMajor, d as createFileDataStore, f as idbError, l as IDB_STORE_NAME, m as readPgVersionFile, p as openIdb, r as getCachedReactorPgMajor, u as PRIMARY_IDB_NAMES } from "./pglite-runtime-Btp8ZXVH.js";
7
7
  import { t as serviceWorkerManager } from "./registerServiceWorker-BkUnxLqB.js";
8
- import { driveCollectionId, getRevisionFromDate, logout, openRenown, setPHAppConfig, setPHDocumentEditorConfig, setRevisionHistoryVisible, setSelectedDrive, setSelectedNode, showPHModal, useAppModuleById, useDefaultAppModule, useDocumentById, useDocumentModelModuleById, useDocumentOperations, useDrives, useEditorModuleById, useFallbackEditorModule, useNodeParentFolderById, usePHModal, usePackageDiscoveryService, useReactorClientModule, useRevisionHistoryVisible, useSelectedDocument, useSelectedDocumentId, useSelectedDriveSafe, useSelectedFolder, useSelectedTimelineItem, useSyncList, useUser, useVetraPackageManager, useVetraPackages } from "@powerhousedao/reactor-browser";
8
+ import { driveCollectionId, getRevisionFromDate, initTheme, logout, openRenown, setPHAppConfig, setPHDocumentEditorConfig, setRevisionHistoryVisible, setSelectedDrive, setSelectedNode, showPHModal, useAppModuleById, useDefaultAppModule, useDocumentById, useDocumentModelModuleById, useDocumentOperations, useDrives, useEditorModuleById, useFallbackEditorModule, useNodeParentFolderById, usePHModal, usePackageDiscoveryService, useReactorClientModule, useRevisionHistoryVisible, useSelectedDocument, useSelectedDocumentId, useSelectedDriveSafe, useSelectedFolder, useSelectedTimelineItem, useSyncList, useTheme, useUser, useVetraPackageManager, useVetraPackages } from "@powerhousedao/reactor-browser";
9
9
  import { childLogger } from "document-model";
10
10
  import React, { StrictMode, Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
11
11
  import { z } from "zod";
@@ -13,7 +13,7 @@ import { Trans, useTranslation } from "react-i18next";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
14
  import { Outlet, RouterProvider, createBrowserRouter, createRoutesFromChildren, matchRoutes, useLocation, useNavigationType } from "react-router-dom";
15
15
  import { useHotkeys } from "react-hotkeys-hook";
16
- import { AnimatedLoader, ConnectSidebar, ConnectTooltipProvider, CookieBanner, DefaultEditorLoader, DropZoneWrapper, HomeScreen, HomeScreenAddDriveItem, HomeScreenItem, PackageInstallModal, RevisionHistory, SidebarAddDriveItem, SidebarItem, useEns } from "@powerhousedao/design-system/connect";
16
+ import { ConnectSidebar, ConnectTooltipProvider, CookieBanner, DefaultEditorLoader, DropZoneWrapper, HomeScreen, HomeScreenAddDriveItem, HomeScreenItem, LogoAnimation, PackageInstallModal, RevisionHistory, SidebarAddDriveItem, SidebarItem, useEns } from "@powerhousedao/design-system/connect";
17
17
  import { GenericDriveExplorer } from "@powerhousedao/powerhouse-vetra-packages/editors";
18
18
  import { Icon, Modal, PowerhouseButton } from "@powerhousedao/design-system";
19
19
  import { ErrorBoundary } from "react-error-boundary";
@@ -648,7 +648,7 @@ function DetailedFallback({ error, resetErrorBoundary }) {
648
648
  return /* @__PURE__ */ jsx("div", {
649
649
  className: "z-10 mx-auto flex max-w-[80%] flex-1 items-center justify-center p-6",
650
650
  children: /* @__PURE__ */ jsxs("div", {
651
- className: "w-full max-w-lg rounded-lg border border-gray-500 bg-white p-6 shadow-sm",
651
+ className: "w-full max-w-lg rounded-lg border border-gray-500 bg-gray-50 p-6 shadow-sm dark:border-slate-400 dark:bg-slate-800",
652
652
  children: [
653
653
  /* @__PURE__ */ jsxs("div", {
654
654
  className: "mb-3 flex items-center gap-2",
@@ -661,16 +661,16 @@ function DetailedFallback({ error, resetErrorBoundary }) {
661
661
  })]
662
662
  }),
663
663
  /* @__PURE__ */ jsx("p", {
664
- className: "mb-4 text-sm text-gray-700",
664
+ className: "mb-4 text-sm text-gray-700 dark:text-slate-200",
665
665
  children: errorMessage
666
666
  }),
667
667
  errorDetails !== "{}" && /* @__PURE__ */ jsxs("details", {
668
668
  className: "group",
669
669
  children: [/* @__PURE__ */ jsx("summary", {
670
- className: "cursor-pointer text-sm font-medium text-gray-700 underline select-none hover:text-gray-700",
670
+ className: "cursor-pointer text-sm font-medium text-gray-700 underline select-none hover:text-gray-700 dark:text-slate-200 dark:hover:text-slate-200",
671
671
  children: "Show details"
672
672
  }), /* @__PURE__ */ jsx("pre", {
673
- className: "mt-2 max-h-48 overflow-auto rounded-sm bg-gray-100 p-3 text-xs",
673
+ className: "mt-2 max-h-48 overflow-auto rounded-sm bg-gray-100 p-3 text-xs dark:bg-slate-700",
674
674
  children: errorDetails
675
675
  })]
676
676
  }),
@@ -1099,12 +1099,12 @@ const MigrationOverlay = () => {
1099
1099
  return /* @__PURE__ */ jsx("div", {
1100
1100
  className: "absolute inset-0 z-20 flex items-center justify-center",
1101
1101
  children: /* @__PURE__ */ jsxs("div", {
1102
- className: "rounded-lg bg-white/90 px-6 py-4 text-sm text-gray-900 shadow-lg",
1102
+ className: "rounded-lg bg-white/90 px-6 py-4 text-sm text-gray-900 shadow-lg dark:bg-slate-900/90 dark:text-slate-50",
1103
1103
  children: [/* @__PURE__ */ jsx("div", {
1104
1104
  className: "font-medium",
1105
1105
  children: "Upgrading local database…"
1106
1106
  }), /* @__PURE__ */ jsx("div", {
1107
- className: "text-gray-600",
1107
+ className: "text-gray-700 dark:text-slate-200",
1108
1108
  children: PHASE_LABEL[status.phase]
1109
1109
  })]
1110
1110
  })
@@ -1113,6 +1113,7 @@ const MigrationOverlay = () => {
1113
1113
  const Loader = ({ delay = LOADER_DELAY }) => {
1114
1114
  const isSSR = typeof window === "undefined";
1115
1115
  const showInitialLoader = typeof document !== "undefined" && document.body.getAttribute("data-show-loader") === "true";
1116
+ if (!isSSR) initTheme();
1116
1117
  const [showLoading, setShowLoading] = useState(!delay || showInitialLoader);
1117
1118
  useEffect(() => {
1118
1119
  const id = setTimeout(() => {
@@ -1124,7 +1125,7 @@ const Loader = ({ delay = LOADER_DELAY }) => {
1124
1125
  className: `skeleton-loader absolute inset-0 z-10 flex items-center justify-center ${showLoading ? "" : "hidden"}`,
1125
1126
  children: [/* @__PURE__ */ jsx("div", {
1126
1127
  className: "animate-pulse overflow-hidden rounded-full shadow-lg",
1127
- children: /* @__PURE__ */ jsx(AnimatedLoader, {})
1128
+ children: /* @__PURE__ */ jsx(LogoAnimation, {})
1128
1129
  }), isSSR ? /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: `setTimeout(() => {
1129
1130
  document.querySelector('.skeleton-loader')?.classList.remove('hidden');
1130
1131
  document.body.setAttribute('data-show-loader', 'true');
@@ -1135,7 +1136,7 @@ const AppSkeleton = (props) => {
1135
1136
  const isSSR = typeof window === "undefined";
1136
1137
  const isHomeScreen = !isSSR && window.location.pathname === getBasePath();
1137
1138
  return /* @__PURE__ */ jsxs("div", {
1138
- className: "flex h-screen overflow-hidden",
1139
+ className: "flex h-screen overflow-hidden bg-gray-50 dark:bg-slate-700",
1139
1140
  children: [
1140
1141
  !(!isSSR && getIsEmbedded()) && /* @__PURE__ */ jsx(ConnectSidebar, {
1141
1142
  className: "animate-pulse",
@@ -1200,7 +1201,7 @@ const MigrationBanner = () => {
1200
1201
  return /* @__PURE__ */ jsx("div", {
1201
1202
  className: "absolute inset-x-0 top-0 z-30 flex justify-center p-3",
1202
1203
  children: /* @__PURE__ */ jsxs("div", {
1203
- className: "flex max-w-3xl items-center gap-3 rounded-lg border border-yellow-500 bg-yellow-400 px-4 py-3 text-sm text-gray-900 shadow-lg",
1204
+ className: "flex max-w-3xl items-center gap-3 rounded-lg border border-yellow-500 bg-yellow-400 px-4 py-3 text-sm text-gray-900 shadow-lg dark:border-yellow-400 dark:bg-yellow-500 dark:text-slate-50",
1204
1205
  children: [
1205
1206
  /* @__PURE__ */ jsxs("div", {
1206
1207
  className: "flex-1",
@@ -1214,7 +1215,7 @@ const MigrationBanner = () => {
1214
1215
  ]
1215
1216
  }),
1216
1217
  /* @__PURE__ */ jsxs("div", {
1217
- className: "text-gray-800",
1218
+ className: "text-gray-900 dark:text-slate-100",
1218
1219
  children: [
1219
1220
  "Migrate to Postgres ",
1220
1221
  17,
@@ -1222,7 +1223,7 @@ const MigrationBanner = () => {
1222
1223
  ]
1223
1224
  }),
1224
1225
  error && /* @__PURE__ */ jsxs("div", {
1225
- className: "mt-2 font-medium text-red-900",
1226
+ className: "mt-2 font-medium text-red-900 dark:text-red-400",
1226
1227
  children: ["Migration failed: ", error]
1227
1228
  })
1228
1229
  ]
@@ -1231,14 +1232,14 @@ const MigrationBanner = () => {
1231
1232
  type: "button",
1232
1233
  disabled: migrating,
1233
1234
  onClick: handleMigrate,
1234
- className: "rounded-sm bg-gray-900 px-3 py-1 text-sm font-medium text-white hover:bg-gray-800 disabled:opacity-50",
1235
+ className: "rounded-sm bg-gray-900 px-3 py-1 text-sm font-medium text-white hover:bg-gray-800 disabled:opacity-50 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-100",
1235
1236
  children: migrating ? "Migrating…" : "Migrate now"
1236
1237
  }),
1237
1238
  /* @__PURE__ */ jsx("button", {
1238
1239
  type: "button",
1239
1240
  disabled: migrating,
1240
1241
  onClick: dismiss,
1241
- className: "rounded-sm border border-gray-900 bg-transparent px-3 py-1 text-sm font-medium text-gray-900 hover:bg-gray-900/10 disabled:opacity-50",
1242
+ className: "rounded-sm border border-gray-900 bg-transparent px-3 py-1 text-sm font-medium text-gray-900 hover:bg-gray-900/10 disabled:opacity-50 dark:border-slate-50 dark:text-slate-50",
1242
1243
  children: "Dismiss"
1243
1244
  })
1244
1245
  ]
@@ -1248,16 +1249,16 @@ const MigrationBanner = () => {
1248
1249
  //#endregion
1249
1250
  //#region src/components/modal/modals-container.tsx
1250
1251
  const AddDriveModal$1 = lazy(() => import("./AddDriveModal-Cg2qcYp6.js").then((m) => ({ default: m.AddDriveModal })));
1251
- const ClearStorageModal = lazy(() => import("./ClearStorageModal-Dx_kY08P.js").then((m) => ({ default: m.ClearStorageModal })));
1252
- const CookiesPolicyModal = lazy(() => import("./CookiesPolicyModal-DiXQV82b.js").then((m) => ({ default: m.CookiesPolicyModal })));
1252
+ const ClearStorageModal = lazy(() => import("./ClearStorageModal-D2K3LkHV.js").then((m) => ({ default: m.ClearStorageModal })));
1253
+ const CookiesPolicyModal = lazy(() => import("./CookiesPolicyModal-4QzcllDR.js").then((m) => ({ default: m.CookiesPolicyModal })));
1253
1254
  const CreateDocumentModal$1 = lazy(() => import("./CreateDocumentModal-7vgZ8nbM.js").then((m) => ({ default: m.CreateDocumentModal })));
1254
- const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-DZcnTkMs.js").then((m) => ({ default: m.DebugSettingsModal })));
1255
+ const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-DPKKXMZt.js").then((m) => ({ default: m.DebugSettingsModal })));
1255
1256
  const DeleteDriveModal = lazy(() => import("./DeleteDriveModal-ABue_rOY.js").then((m) => ({ default: m.DeleteDriveModal })));
1256
1257
  const DeleteItemModal = lazy(() => import("./DeleteItemModal-B6aHnYPD.js").then((m) => ({ default: m.DeleteItemModal })));
1257
1258
  const DisclaimerModal = lazy(() => import("./DisclaimerModal-CfDeiBz8.js").then((m) => ({ default: m.DisclaimerModal })));
1258
1259
  const DriveSettingsModal$1 = lazy(() => import("./DriveSettingsModal-CNtCO4-y.js").then((m) => ({ default: m.DriveSettingsModal })));
1259
- const DownloadDocumentWithErrorsModal = lazy(() => import("./DownloadDocumentWithErrorsModal-5NDf6rH4.js").then((m) => ({ default: m.DownloadDocumentWithErrorsModal })));
1260
- const SettingsModal$1 = lazy(() => import("./SettingsModal-BVesM-sY.js").then((m) => ({ default: m.SettingsModal })));
1260
+ const DownloadDocumentWithErrorsModal = lazy(() => import("./DownloadDocumentWithErrorsModal-CaAPGg04.js").then((m) => ({ default: m.DownloadDocumentWithErrorsModal })));
1261
+ const SettingsModal$1 = lazy(() => import("./SettingsModal-yuYEcU0F.js").then((m) => ({ default: m.SettingsModal })));
1261
1262
  const UpgradeDriveModal = lazy(() => import("./UpgradeDriveModal-BwI5E5k3.js").then((m) => ({ default: m.UpgradeDriveModal })));
1262
1263
  const modalComponents = {
1263
1264
  addDrive: AddDriveModal$1,
@@ -1270,7 +1271,7 @@ const modalComponents = {
1270
1271
  disclaimer: DisclaimerModal,
1271
1272
  driveSettings: DriveSettingsModal$1,
1272
1273
  downloadDocumentWithErrors: DownloadDocumentWithErrorsModal,
1273
- inspector: lazy(() => import("./InspectorModal-Cm2GxgwK.js").then((m) => ({ default: m.InspectorModal }))),
1274
+ inspector: lazy(() => import("./InspectorModal-ywEL5GKA.js").then((m) => ({ default: m.InspectorModal }))),
1274
1275
  settings: SettingsModal$1,
1275
1276
  upgradeDrive: UpgradeDriveModal,
1276
1277
  missingPackage: lazy(() => import("./MissingPackageModal-CUdcDjSO.js").then((m) => ({ default: m.ConnectMissingPackageModal })))
@@ -1293,7 +1294,7 @@ const ModalsContainer = lazy(() => {
1293
1294
  //#endregion
1294
1295
  //#region src/components/app-loader.tsx
1295
1296
  const AppLoader = (props) => {
1296
- const Load = lazy(() => import("./load-Bf4Q8pUO.js").then((m) => m.loadComponent(props.localPackage)));
1297
+ const Load = lazy(() => import("./load-CHCKm1_A.js").then((m) => m.loadComponent(props.localPackage)));
1297
1298
  return /* @__PURE__ */ jsx(StrictMode, { children: /* @__PURE__ */ jsxs(ErrorBoundary$1, {
1298
1299
  fallbackRender: (props) => /* @__PURE__ */ jsx(AppSkeleton, { children: /* @__PURE__ */ jsx(DetailedFallback, { ...props }) }),
1299
1300
  resetKeys: [props.localPackage],
@@ -1342,11 +1343,11 @@ function MissingModelBanner() {
1342
1343
  const [open, setOpen] = useState(false);
1343
1344
  if (failed.length === 0) return null;
1344
1345
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
1345
- className: "flex items-center justify-between gap-3 bg-amber-100 px-4 py-2 text-sm text-amber-900",
1346
+ className: "flex items-center justify-between gap-3 bg-amber-100 px-4 py-2 text-sm text-amber-900 dark:bg-amber-800 dark:text-amber-100",
1346
1347
  children: [/* @__PURE__ */ jsx("span", { children: failed.length === 1 ? "1 document type couldn't load (missing model)." : `${failed.length} document types couldn't load (missing models).` }), /* @__PURE__ */ jsx("button", {
1347
1348
  type: "button",
1348
1349
  onClick: () => setOpen(true),
1349
- className: "rounded-md border border-amber-300 bg-white px-3 py-1 text-amber-900 hover:bg-amber-50",
1350
+ className: "rounded-md border border-amber-300 bg-gray-50 px-3 py-1 text-amber-900 hover:bg-amber-50 dark:border-amber-600 dark:bg-slate-800 dark:text-amber-100 dark:hover:bg-amber-900",
1350
1351
  children: "View"
1351
1352
  })]
1352
1353
  }), /* @__PURE__ */ jsx(MissingModelDetailsModal, {
@@ -1379,18 +1380,18 @@ function MissingModelDetailsModal(props) {
1379
1380
  },
1380
1381
  contentProps: { className: "rounded-3xl" },
1381
1382
  children: /* @__PURE__ */ jsxs("div", {
1382
- className: "w-[520px] max-w-[90vw] bg-white p-6",
1383
+ className: "w-[520px] max-w-[90vw] bg-gray-50 p-6 dark:bg-slate-800",
1383
1384
  children: [
1384
1385
  /* @__PURE__ */ jsx("div", {
1385
- className: "border-b border-slate-100 pb-2 text-2xl font-bold text-gray-800",
1386
+ className: "border-b border-gray-100 pb-2 text-2xl font-bold text-gray-900 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
1386
1387
  children: "Missing document models"
1387
1388
  }),
1388
1389
  /* @__PURE__ */ jsx("div", {
1389
- className: "my-4 text-sm text-gray-600",
1390
+ className: "my-4 text-sm text-gray-700 dark:text-slate-200",
1390
1391
  children: "The following document types couldn't be loaded. Documents using them won't display until the underlying package is installed."
1391
1392
  }),
1392
1393
  failed.length === 0 ? /* @__PURE__ */ jsx("div", {
1393
- className: "rounded-xl bg-slate-50 p-4 text-sm text-gray-600",
1394
+ className: "rounded-xl bg-gray-50 p-4 text-sm text-gray-700 dark:bg-slate-800 dark:text-slate-200",
1394
1395
  children: "No outstanding failures."
1395
1396
  }) : /* @__PURE__ */ jsx("div", {
1396
1397
  className: "flex max-h-[60vh] flex-col gap-3 overflow-y-auto",
@@ -1398,18 +1399,18 @@ function MissingModelDetailsModal(props) {
1398
1399
  const isRetrying = retrying.has(entry.documentType);
1399
1400
  const retryDisabled = !canRetry(entry.reason) || isRetrying;
1400
1401
  return /* @__PURE__ */ jsxs("div", {
1401
- className: "rounded-xl bg-slate-50 p-4",
1402
+ className: "rounded-xl bg-gray-50 p-4 dark:bg-slate-800",
1402
1403
  children: [
1403
1404
  /* @__PURE__ */ jsx("div", {
1404
- className: "mb-1 font-mono text-sm font-semibold text-gray-800",
1405
+ className: "mb-1 font-mono text-sm font-semibold text-gray-900 dark:text-slate-100",
1405
1406
  children: entry.documentType
1406
1407
  }),
1407
1408
  /* @__PURE__ */ jsx("div", {
1408
- className: "mb-2 text-xs text-gray-600",
1409
+ className: "mb-2 text-xs text-gray-700 dark:text-slate-200",
1409
1410
  children: reasonLabels[entry.reason]
1410
1411
  }),
1411
1412
  entry.packageNames.length > 0 ? /* @__PURE__ */ jsxs("div", {
1412
- className: "mb-2 text-xs text-gray-500",
1413
+ className: "mb-2 text-xs text-gray-500 dark:text-slate-400",
1413
1414
  children: [
1414
1415
  "Package",
1415
1416
  entry.packageNames.length > 1 ? "s" : "",
@@ -1419,7 +1420,7 @@ function MissingModelDetailsModal(props) {
1419
1420
  ]
1420
1421
  }) : null,
1421
1422
  entry.error ? /* @__PURE__ */ jsx("div", {
1422
- className: "mb-2 font-mono text-xs wrap-break-word text-red-700",
1423
+ className: "mb-2 font-mono text-xs wrap-break-word text-red-700 dark:text-red-100",
1423
1424
  children: entry.error.message
1424
1425
  }) : null,
1425
1426
  /* @__PURE__ */ jsx("div", {
@@ -1429,7 +1430,7 @@ function MissingModelDetailsModal(props) {
1429
1430
  onClick: () => void handleRetry(entry.documentType),
1430
1431
  disabled: retryDisabled,
1431
1432
  title: canRetry(entry.reason) ? void 0 : "No registry is configured; nothing to retry against.",
1432
- className: twMerge("min-h-[32px] rounded-xl px-3 py-1 text-sm font-semibold text-white transition-all hover:scale-105", retryDisabled ? "cursor-not-allowed bg-gray-300 hover:scale-100" : "bg-gray-800 active:opacity-75"),
1433
+ className: twMerge("min-h-[32px] rounded-xl px-3 py-1 text-sm font-semibold text-white transition-all hover:scale-105 dark:text-slate-900", retryDisabled ? "cursor-not-allowed bg-gray-300 hover:scale-100 dark:bg-slate-600 dark:text-slate-100" : "bg-gray-800 active:opacity-75 dark:bg-slate-100"),
1433
1434
  children: isRetrying ? "Retrying..." : "Try install again"
1434
1435
  })
1435
1436
  })
@@ -1442,7 +1443,7 @@ function MissingModelDetailsModal(props) {
1442
1443
  children: /* @__PURE__ */ jsx("button", {
1443
1444
  type: "button",
1444
1445
  onClick: onClose,
1445
- className: "min-h-[36px] rounded-xl border border-slate-200 bg-white px-4 py-2 text-sm font-semibold text-slate-800 hover:bg-slate-50",
1446
+ className: "min-h-[36px] rounded-xl border border-gray-200 bg-gray-50 px-4 py-2 text-sm font-semibold text-gray-800 hover:bg-gray-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100 dark:hover:bg-slate-800",
1446
1447
  children: "Close"
1447
1448
  })
1448
1449
  })
@@ -1468,6 +1469,7 @@ function PackageInstallPrompt() {
1468
1469
  //#endregion
1469
1470
  //#region src/components/app.tsx
1470
1471
  const App = () => {
1472
+ useTheme();
1471
1473
  useEffect(() => {
1472
1474
  const handlePreloadError = (event) => {
1473
1475
  const payload = event.payload;
@@ -1532,8 +1534,8 @@ const CookieBanner$1 = () => {
1532
1534
  if (!showBanner) return null;
1533
1535
  return /* @__PURE__ */ jsxs("div", {
1534
1536
  className: "absolute inset-0 z-10000 backdrop-blur-sm",
1535
- children: [/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black opacity-15" }), /* @__PURE__ */ jsx("div", {
1536
- className: "absolute inset-x-0 bottom-0 flex justify-center bg-white px-10 pt-10 pb-16 shadow-lg",
1537
+ children: [/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gray-900 opacity-15 dark:bg-slate-50" }), /* @__PURE__ */ jsx("div", {
1538
+ className: "absolute inset-x-0 bottom-0 flex justify-center bg-gray-50 px-10 pt-10 pb-16 shadow-lg dark:bg-slate-800",
1537
1539
  children: /* @__PURE__ */ jsx(CookieBanner, {
1538
1540
  className: "max-w-[1024px]",
1539
1541
  cookies: cookiesInput,
@@ -1542,12 +1544,12 @@ const CookieBanner$1 = () => {
1542
1544
  submitLabel: t("cookieBanner.accept"),
1543
1545
  rejectLabel: t("cookieBanner.reject"),
1544
1546
  children: /* @__PURE__ */ jsx("p", {
1545
- className: "font-semibold text-gray-500",
1547
+ className: "font-semibold text-gray-500 dark:text-slate-400",
1546
1548
  children: /* @__PURE__ */ jsx(Trans, {
1547
1549
  i18nKey: "cookieBanner.message",
1548
1550
  components: { a: /* @__PURE__ */ jsx("a", {
1549
1551
  onClick: () => showPHModal({ type: "cookiesPolicy" }),
1550
- className: "cursor-pointer text-gray-900 hover:underline"
1552
+ className: "cursor-pointer text-gray-900 hover:underline dark:text-slate-50"
1551
1553
  }, "cookieBanner.message-link") }
1552
1554
  }, "cookieBanner.message")
1553
1555
  })
@@ -1726,7 +1728,7 @@ const DocumentEditor = (props) => {
1726
1728
  //#region src/components/root.tsx
1727
1729
  function Root() {
1728
1730
  return /* @__PURE__ */ jsx("div", {
1729
- className: "h-screen",
1731
+ className: "h-screen bg-gray-50 dark:bg-slate-800",
1730
1732
  children: /* @__PURE__ */ jsx("div", {
1731
1733
  className: `flex h-screen items-stretch overflow-auto`,
1732
1734
  role: "presentation",
@@ -1857,5 +1859,5 @@ function Sidebar() {
1857
1859
  //#endregion
1858
1860
  export { AppLoader as t };
1859
1861
 
1860
- //# sourceMappingURL=sidebar--SNGGkVA.js.map
1861
- //# debugId=6595a537-debb-533b-99e8-b6c6379e11b4
1862
+ //# sourceMappingURL=sidebar-BG9ZKWVN.js.map
1863
+ //# debugId=d8c9adb1-143b-5860-904f-b6af4153c2c2