@powerhousedao/connect 1.0.0-dev.240 → 1.0.0-dev.242

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 (26) hide show
  1. package/dist/assets/{app-u2sXNO6J.js → app-BLkIfmVO.js} +5955 -5919
  2. package/dist/assets/{app-CSi6MS9b.css → app-BM-1MvIW.css} +49 -4
  3. package/dist/assets/{app-loader-CjqNjYIQ.js → app-loader-BGyOo0Bz.js} +109 -50
  4. package/dist/assets/{app-loader-9W65A3zy.css → app-loader-CjrEwupY.css} +50 -7
  5. package/dist/assets/{ccip-EnPhvdSB.js → ccip-DEZha79k.js} +3 -3
  6. package/dist/assets/{content-DHbSSY35.js → content-CDGpP4wk.js} +5 -5
  7. package/dist/assets/{index-ou8ACc-c.js → index-BwqI7XFt.js} +244 -7
  8. package/dist/assets/{index-BOztI_wl.js → index-DMGtXRep.js} +4 -4
  9. package/dist/assets/{index-CUvGaFeM.js → index-DNzCaCRw.js} +3 -3
  10. package/dist/assets/{main.DZVWLf7p.js → main.D8uj0g8b.js} +1 -1
  11. package/dist/assets/{style-ICX7vBg_.css → style-D4JhTt_m.css} +5 -4
  12. package/dist/index.html +1 -1
  13. package/dist/modules/@powerhousedao/reactor-browser/{chunk-2E6C3NB7.js → chunk-DO4ZK6HR.js} +70 -35
  14. package/dist/modules/@powerhousedao/reactor-browser/{chunk-F4K6ICY4.js → chunk-JEDWG5AH.js} +1 -1
  15. package/dist/modules/@powerhousedao/reactor-browser/{chunk-RSZCDZGH.js → chunk-SHKY62YH.js} +24 -12
  16. package/dist/modules/@powerhousedao/reactor-browser/{chunk-JWR2PSS2.js → chunk-UJU4RHH3.js} +1 -1
  17. package/dist/modules/@powerhousedao/reactor-browser/{chunk-NUW2A4R5.js → chunk-YEIWJWUR.js} +1 -1
  18. package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
  19. package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
  20. package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +3 -3
  21. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
  22. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
  23. package/dist/modules/@powerhousedao/reactor-browser/index.js +5 -5
  24. package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
  25. package/dist/vite-envs.sh +1 -1
  26. package/package.json +8 -8
@@ -1082,8 +1082,7 @@
1082
1082
  @layer theme, base, components, utilities;
1083
1083
  @layer theme {
1084
1084
  :root, :host {
1085
- --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
1086
- "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1085
+ --font-sans: "Inter", sans-serif;
1087
1086
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
1088
1087
  "Courier New", monospace;
1089
1088
  --color-red-100: hsl(3 82% 96%);
@@ -1766,6 +1765,9 @@
1766
1765
  .h-\[20px\] {
1767
1766
  height: 20px;
1768
1767
  }
1768
+ .h-\[22px\] {
1769
+ height: 22px;
1770
+ }
1769
1771
  .h-\[28px\] {
1770
1772
  height: 28px;
1771
1773
  }
@@ -1916,6 +1918,9 @@
1916
1918
  .w-\[68px\] {
1917
1919
  width: 68px;
1918
1920
  }
1921
+ .w-\[83px\] {
1922
+ width: 83px;
1923
+ }
1919
1924
  .w-\[114px\] {
1920
1925
  width: 114px;
1921
1926
  }
@@ -2248,6 +2253,20 @@
2248
2253
  .gap-y-\[15px\] {
2249
2254
  row-gap: 15px;
2250
2255
  }
2256
+ .divide-y {
2257
+ :where(& > :not(:last-child)) {
2258
+ --tw-divide-y-reverse: 0;
2259
+ border-bottom-style: var(--tw-border-style);
2260
+ border-top-style: var(--tw-border-style);
2261
+ border-top-width: calc(1px * var(--tw-divide-y-reverse));
2262
+ border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
2263
+ }
2264
+ }
2265
+ .divide-gray-200 {
2266
+ :where(& > :not(:last-child)) {
2267
+ border-color: var(--color-gray-200);
2268
+ }
2269
+ }
2251
2270
  .truncate {
2252
2271
  overflow: hidden;
2253
2272
  text-overflow: ellipsis;
@@ -2980,6 +2999,9 @@
2980
2999
  .opacity-80 {
2981
3000
  opacity: 80%;
2982
3001
  }
3002
+ .opacity-100 {
3003
+ opacity: 100%;
3004
+ }
2983
3005
  .shadow {
2984
3006
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2985
3007
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -3091,6 +3113,10 @@
3091
3113
  --tw-duration: 75ms;
3092
3114
  transition-duration: 75ms;
3093
3115
  }
3116
+ .duration-150 {
3117
+ --tw-duration: 150ms;
3118
+ transition-duration: 150ms;
3119
+ }
3094
3120
  .duration-200 {
3095
3121
  --tw-duration: 200ms;
3096
3122
  transition-duration: 200ms;
@@ -3843,6 +3869,13 @@
3843
3869
  }
3844
3870
  }
3845
3871
  }
3872
+ .hover\:text-red-700 {
3873
+ &:hover {
3874
+ @media (hover: hover) {
3875
+ color: var(--color-red-700);
3876
+ }
3877
+ }
3878
+ }
3846
3879
  .hover\:text-red-900 {
3847
3880
  &:hover {
3848
3881
  @media (hover: hover) {
@@ -4041,6 +4074,11 @@
4041
4074
  opacity: 50%;
4042
4075
  }
4043
4076
  }
4077
+ .active\:opacity-70 {
4078
+ &:active {
4079
+ opacity: 70%;
4080
+ }
4081
+ }
4044
4082
  .active\:opacity-75 {
4045
4083
  &:active {
4046
4084
  opacity: 75%;
@@ -5305,8 +5343,10 @@ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-o
5305
5343
  input[type="number"] {
5306
5344
  -moz-appearance: textfield;
5307
5345
  }
5308
- h1, h2, h3, h4, h5, h6, p {
5309
- color: var(--color-gray-900);
5346
+ @layer base {
5347
+ h1, h2, h3, h4, h5, h6, p {
5348
+ color: var(--color-gray-900);
5349
+ }
5310
5350
  }
5311
5351
  @property --tw-translate-x {
5312
5352
  syntax: "*";
@@ -5348,6 +5388,11 @@ h1, h2, h3, h4, h5, h6, p {
5348
5388
  inherits: false;
5349
5389
  initial-value: 0;
5350
5390
  }
5391
+ @property --tw-divide-y-reverse {
5392
+ syntax: "*";
5393
+ inherits: false;
5394
+ initial-value: 0;
5395
+ }
5351
5396
  @property --tw-leading {
5352
5397
  syntax: "*";
5353
5398
  inherits: false;
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-u2sXNO6J.js","assets/main.DZVWLf7p.js","assets/app-CSi6MS9b.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-BLkIfmVO.js","assets/main.D8uj0g8b.js","assets/app-BM-1MvIW.css"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -11,7 +11,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11
11
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
12
12
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
13
13
  var _tags, _levelString, _errorHandler, _ConsoleLogger_instances, levelValue_get, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _a, _ServiceWorkerManager_instances, handleServiceWorkerMessage_fn, handleServiceWorker_fn;
14
- import { _ as __vitePreload } from "./main.DZVWLf7p.js";
14
+ import { _ as __vitePreload } from "./main.D8uj0g8b.js";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  import { useState, useEffect, Suspense, lazy } from "react";
17
17
  function _mergeNamespaces(n, m) {
@@ -23791,57 +23791,56 @@ class MemoryStorage {
23791
23791
  constructor() {
23792
23792
  __publicField(this, "documents");
23793
23793
  __publicField(this, "drives");
23794
+ __publicField(this, "driveManifests");
23794
23795
  __publicField(this, "slugToDriveId", {});
23795
23796
  this.documents = {};
23796
23797
  this.drives = {};
23798
+ this.driveManifests = {};
23797
23799
  }
23798
- exists(id) {
23799
- for (const drive of Object.values(this.documents)) {
23800
- if (drive[id]) {
23801
- return Promise.resolve(true);
23802
- }
23803
- }
23804
- return Promise.resolve(false);
23800
+ ////////////////////////////////
23801
+ // IDocumentStorage
23802
+ ////////////////////////////////
23803
+ exists(documentId) {
23804
+ return Promise.resolve(!!this.documents[documentId]);
23805
+ }
23806
+ create(documentId, document) {
23807
+ this.documents[documentId] = document;
23808
+ return Promise.resolve();
23805
23809
  }
23810
+ ////////////////////////////////
23811
+ // IDriveStorage
23812
+ ////////////////////////////////
23806
23813
  checkDocumentExists(drive, id) {
23807
23814
  return this.exists(id);
23808
23815
  }
23809
- async getDocuments(drive) {
23810
- return Object.keys(this.documents[drive] ?? {});
23816
+ getDocuments(drive) {
23817
+ const manifest = this.getDriveManifest(drive);
23818
+ return Promise.resolve([...manifest.documentIds]);
23811
23819
  }
23812
23820
  async getDocument(driveId, id) {
23813
- const drive = this.documents[driveId];
23814
- if (!drive) {
23815
- throw new DriveNotFoundError(driveId);
23816
- }
23817
- const document = drive[id];
23821
+ const document = this.documents[id];
23818
23822
  if (!document) {
23819
23823
  throw new Error(`Document with id ${id} not found`);
23820
23824
  }
23821
23825
  return document;
23822
23826
  }
23823
23827
  async saveDocument(drive, id, document) {
23824
- this.documents[drive] = this.documents[drive] ?? {};
23825
- this.documents[drive][id] = document;
23828
+ this.documents[id] = document;
23829
+ const manifest = this.getDriveManifest(drive);
23830
+ manifest.documentIds.add(id);
23831
+ this.updateDriveManifest(drive, manifest);
23826
23832
  }
23827
23833
  async clearStorage() {
23828
23834
  this.documents = {};
23829
23835
  this.drives = {};
23836
+ this.driveManifests = {};
23837
+ this.slugToDriveId = {};
23830
23838
  }
23831
23839
  async createDocument(drive, id, document) {
23832
- this.documents[drive] = this.documents[drive] ?? {};
23833
- const { operations, initialState, name: name2, revision, documentType: documentType2, created, lastModified, clipboard, state } = document;
23834
- this.documents[drive][id] = {
23835
- operations,
23836
- initialState,
23837
- name: name2,
23838
- revision,
23839
- documentType: documentType2,
23840
- created,
23841
- lastModified,
23842
- clipboard,
23843
- state
23844
- };
23840
+ await this.create(id, document);
23841
+ const manifest = this.getDriveManifest(drive);
23842
+ manifest.documentIds.add(id);
23843
+ this.updateDriveManifest(drive, manifest);
23845
23844
  }
23846
23845
  async addDocumentOperations(drive, id, operations, header) {
23847
23846
  const document = await this.getDocument(drive, id);
@@ -23849,17 +23848,22 @@ class MemoryStorage {
23849
23848
  throw new Error(`Document with id ${id} not found`);
23850
23849
  }
23851
23850
  const mergedOperations = mergeOperations(document.operations, operations);
23852
- this.documents[drive][id] = {
23851
+ this.documents[id] = {
23853
23852
  ...document,
23854
23853
  ...header,
23855
23854
  operations: mergedOperations
23856
23855
  };
23857
23856
  }
23858
23857
  async deleteDocument(drive, id) {
23859
- if (!this.documents[drive]) {
23860
- throw new DriveNotFoundError(drive);
23858
+ const drives = await this.getDrives();
23859
+ for (const driveId of drives) {
23860
+ const manifest = this.getDriveManifest(driveId);
23861
+ if (manifest.documentIds.has(id)) {
23862
+ manifest.documentIds.delete(id);
23863
+ this.updateDriveManifest(driveId, manifest);
23864
+ }
23861
23865
  }
23862
- delete this.documents[drive][id];
23866
+ delete this.documents[id];
23863
23867
  }
23864
23868
  async getDrives() {
23865
23869
  return Object.keys(this.drives);
@@ -23880,7 +23884,7 @@ class MemoryStorage {
23880
23884
  }
23881
23885
  async createDrive(id, drive) {
23882
23886
  this.drives[id] = drive;
23883
- this.documents[id] = {};
23887
+ this.updateDriveManifest(id, { documentIds: /* @__PURE__ */ new Set() });
23884
23888
  const { slug } = drive.initialState.state.global;
23885
23889
  if (slug) {
23886
23890
  this.slugToDriveId[slug] = id;
@@ -23896,8 +23900,27 @@ class MemoryStorage {
23896
23900
  };
23897
23901
  }
23898
23902
  async deleteDrive(id) {
23899
- delete this.documents[id];
23903
+ const manifest = this.getDriveManifest(id);
23904
+ const drives = await this.getDrives();
23905
+ await Promise.all([...manifest.documentIds].map((docId) => {
23906
+ for (const driveId of drives) {
23907
+ if (driveId === id) {
23908
+ continue;
23909
+ }
23910
+ const manifest2 = this.getDriveManifest(driveId);
23911
+ if (manifest2.documentIds.has(docId)) {
23912
+ return;
23913
+ }
23914
+ }
23915
+ delete this.documents[docId];
23916
+ }));
23917
+ delete this.driveManifests[id];
23900
23918
  delete this.drives[id];
23919
+ for (const [slug, driveId] of Object.entries(this.slugToDriveId)) {
23920
+ if (driveId === id) {
23921
+ delete this.slugToDriveId[slug];
23922
+ }
23923
+ }
23901
23924
  }
23902
23925
  async getSynchronizationUnitsRevision(units) {
23903
23926
  const results = await Promise.allSettled(units.map(async (unit) => {
@@ -23928,6 +23951,18 @@ class MemoryStorage {
23928
23951
  return acc;
23929
23952
  }, []);
23930
23953
  }
23954
+ ////////////////////////////////
23955
+ // Private
23956
+ ////////////////////////////////
23957
+ getDriveManifest(driveId) {
23958
+ if (!this.driveManifests[driveId]) {
23959
+ this.driveManifests[driveId] = { documentIds: /* @__PURE__ */ new Set() };
23960
+ }
23961
+ return this.driveManifests[driveId];
23962
+ }
23963
+ updateDriveManifest(driveId, manifest) {
23964
+ this.driveManifests[driveId] = manifest;
23965
+ }
23931
23966
  }
23932
23967
  class DefaultEventEmitter {
23933
23968
  constructor() {
@@ -25040,6 +25075,9 @@ function Danger(props) {
25040
25075
  function DescendenceModified(props) {
25041
25076
  return jsxs("svg", { ...props, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "3.5", stroke: "currentcolor" }), jsx("rect", { x: "4", y: "7", width: "2", height: "2", rx: "1", fill: "currentcolor" }), jsx("rect", { x: "7", y: "7", width: "2", height: "2", rx: "1", fill: "currentcolor" }), jsx("rect", { x: "10", y: "7", width: "2", height: "2", rx: "1", fill: "currentcolor" })] });
25042
25077
  }
25078
+ function Disconnect(props) {
25079
+ return jsx("svg", { ...props, viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M12.6604 5.9939C12.6604 5.6259 12.3618 5.32723 11.9938 5.32723H5.99377V3.32723L3.32711 5.9939L5.99377 8.66056V6.66056H11.9938C12.3618 6.66056 12.6604 6.3619 12.6604 5.9939ZM10.6604 2.66056C10.6604 1.1879 9.46644 -0.00610352 7.99377 -0.00610352H2.66044C1.18777 -0.00610352 -0.00622559 1.1879 -0.00622559 2.66056V9.32723C-0.00622559 10.7999 1.18777 11.9939 2.66044 11.9939H7.99377C9.46644 11.9939 10.6604 10.7999 10.6604 9.32723C10.6604 8.95923 10.3618 8.66056 9.99377 8.66056C9.62577 8.66056 9.32711 8.95923 9.32711 9.32723C9.32711 10.0639 8.73044 10.6606 7.99377 10.6606H2.66044C1.92377 10.6606 1.32711 10.0639 1.32711 9.32723V2.66056C1.32711 1.9239 1.92377 1.32723 2.66044 1.32723H7.99377C8.73044 1.32723 9.32711 1.9239 9.32711 2.66056C9.32711 3.02856 9.62577 3.32723 9.99377 3.32723C10.3618 3.32723 10.6604 3.02856 10.6604 2.66056Z", fill: "currentcolor" }) });
25080
+ }
25043
25081
  function Discord(props) {
25044
25082
  return jsxs("svg", { ...props, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M6.646 7.31348C6.28467 7.31348 6 7.63014 6 8.01681C6 8.40214 6.29133 8.72014 6.646 8.72014C7.00667 8.72014 7.29133 8.40214 7.29133 8.01681C7.29867 7.62948 7.00667 7.31348 6.646 7.31348ZM8.958 7.31348C8.59667 7.31348 8.312 7.63014 8.312 8.01681C8.312 8.40214 8.60333 8.72014 8.958 8.72014C9.31867 8.72014 9.60333 8.40214 9.60333 8.01681C9.60267 7.62948 9.31867 7.31348 8.958 7.31348Z", fill: "currentcolor" }), jsx("path", { d: "M11.4978 2.99902H4.12721C3.97881 2.9994 3.83193 3.02901 3.69496 3.08615C3.558 3.1433 3.43363 3.22686 3.32896 3.33207C3.22428 3.43728 3.14136 3.56207 3.08492 3.69933C3.02848 3.83659 2.99962 3.98362 3 4.13202V11.568C3 12.195 3.506 12.701 4.12721 12.701H10.3642L10.0718 11.6827L10.7764 12.3374L11.4416 12.9534L12.625 13.999V4.13202C12.6254 3.98362 12.5965 3.83659 12.5401 3.69933C12.4836 3.56207 12.4007 3.43728 12.2961 3.33207C12.1914 3.22686 12.067 3.1433 11.93 3.08615C11.7931 3.02901 11.6462 2.9994 11.4978 2.99902ZM9.37421 10.182C9.37421 10.182 9.17621 9.94581 9.01179 9.73565C9.732 9.53187 10.007 9.08144 10.007 9.08144C9.78121 9.22965 9.567 9.33502 9.37421 9.40681C8.67235 9.70055 7.89942 9.78071 7.15221 9.63723C6.87612 9.583 6.60558 9.50354 6.344 9.39987C6.20605 9.34746 6.07198 9.28536 5.94279 9.21402C5.926 9.20187 5.90979 9.19723 5.89358 9.18623C5.88491 9.18211 5.87721 9.17619 5.871 9.16887C5.772 9.11444 5.717 9.07623 5.717 9.07623C5.717 9.07623 5.981 9.51623 6.67979 9.72523C6.51479 9.93365 6.311 10.182 6.311 10.182C5.09579 10.1432 4.63437 9.34602 4.63437 9.34602C4.63437 7.57502 5.42637 6.13981 5.42637 6.13981C6.21837 5.54523 6.97158 5.56202 6.97158 5.56202L7.02658 5.62802C6.03658 5.9146 5.57979 6.34881 5.57979 6.34881C5.57979 6.34881 5.70137 6.28281 5.90458 6.1896C6.49279 5.93139 6.96 5.8596 7.15279 5.84281C7.18579 5.8376 7.21358 5.83181 7.24658 5.83181C8.20023 5.7033 9.16994 5.88453 10.0128 6.34881C10.0128 6.34881 9.578 5.9366 8.643 5.6506L8.72 5.5626C8.72 5.5626 9.47379 5.54581 10.2652 6.14039C10.2652 6.14039 11.0572 7.5756 11.0572 9.3466C11.0572 9.34602 10.59 10.1432 9.37421 10.182Z", fill: "currentcolor" })] });
25045
25083
  }
@@ -25061,6 +25099,9 @@ function Ellipsis(props) {
25061
25099
  function Error$1(props) {
25062
25100
  return jsx("svg", { ...props, viewBox: "0 0 16 16", fill: "currentcolor", children: jsx("path", { d: "M8.00846 1.33203C4.32646 1.33203 1.3418 4.3167 1.3418 7.9987C1.3418 11.6807 4.32646 14.6654 8.00846 14.6654C11.6905 14.6654 14.6751 11.6807 14.6751 7.9987C14.6751 4.3167 11.6905 1.33203 8.00846 1.33203ZM8.00846 4.66536C8.37646 4.66536 8.67513 4.96403 8.67513 5.33203V8.66536C8.67513 9.03336 8.37646 9.33203 8.00846 9.33203C7.64046 9.33203 7.3418 9.03336 7.3418 8.66536V5.33203C7.3418 4.96403 7.64046 4.66536 8.00846 4.66536ZM8.00846 9.9987C8.37646 9.9987 8.67513 10.2974 8.67513 10.6654C8.67513 11.0334 8.37646 11.332 8.00846 11.332C7.64046 11.332 7.3418 11.0334 7.3418 10.6654C7.3418 10.2974 7.64046 9.9987 8.00846 9.9987Z" }) });
25063
25101
  }
25102
+ function Ethscan(props) {
25103
+ return jsxs("svg", { ...props, viewBox: "0 0 14 14", fill: "none", children: [jsx("path", { d: "M2.95373 6.63309C2.95374 6.55555 2.96907 6.47878 2.99884 6.40718C3.02861 6.33558 3.07222 6.27056 3.12719 6.21587C3.18215 6.16117 3.24737 6.11787 3.31912 6.08845C3.39086 6.05903 3.46771 6.04407 3.54525 6.04444L4.52593 6.04764C4.68229 6.04764 4.83225 6.10975 4.94282 6.22032C5.05338 6.33089 5.1155 6.48085 5.1155 6.63721V10.3457C5.22595 10.3129 5.36731 10.278 5.52286 10.2414C5.63062 10.216 5.72667 10.155 5.79541 10.0682C5.86416 9.98147 5.90158 9.87401 5.9016 9.7633V5.16356C5.9016 5.00719 5.96371 4.85721 6.07428 4.74663C6.18484 4.63605 6.3348 4.5739 6.49118 4.57387H7.47483C7.63121 4.5739 7.78117 4.63605 7.89173 4.74663C8.00229 4.85721 8.0644 5.00719 8.0644 5.16356V9.43286C8.0644 9.43286 8.31049 9.33328 8.55005 9.2321C8.63907 9.19445 8.71504 9.13142 8.76847 9.05088C8.8219 8.97033 8.85043 8.87584 8.8505 8.77919V3.68957C8.8505 3.53322 8.91261 3.38328 9.02315 3.27272C9.13369 3.16215 9.28362 3.10002 9.43997 3.09999H10.4226C10.5789 3.10015 10.7287 3.16233 10.8391 3.27288C10.9496 3.38343 11.0116 3.5333 11.0116 3.68957V7.88069C11.8635 7.2633 12.7269 6.52069 13.412 5.62781C13.5114 5.4982 13.5772 5.346 13.6035 5.18479C13.6298 5.02358 13.6157 4.85837 13.5626 4.7039C13.2455 3.79145 12.7413 2.95526 12.0825 2.24883C11.4236 1.5424 10.6245 0.981296 9.73636 0.601415C8.84819 0.221534 7.8905 0.0312452 6.92458 0.0427266C5.95865 0.054208 5.00576 0.267206 4.12687 0.668091C3.24799 1.06898 2.46247 1.64892 1.82058 2.37081C1.17869 3.0927 0.694563 3.94064 0.399186 4.86037C0.103809 5.78009 0.00368315 6.75136 0.105216 7.712C0.206748 8.67265 0.507703 9.60152 0.988822 10.4392C1.07264 10.5837 1.19596 10.7013 1.3443 10.7781C1.49263 10.8549 1.65981 10.8879 1.8262 10.873C2.01208 10.8566 2.24351 10.8335 2.51867 10.8012C2.63843 10.7876 2.74899 10.7304 2.8293 10.6405C2.90961 10.5506 2.95406 10.4344 2.95419 10.3138V6.63309", fill: "currentcolor" }), jsx("path", { d: "M2.93274 12.5804C3.9685 13.3339 5.19251 13.7862 6.46936 13.8872C7.74621 13.9882 9.02612 13.7341 10.1675 13.1528C11.3088 12.5716 12.2672 11.6859 12.9364 10.5938C13.6057 9.50176 13.9598 8.24582 13.9595 6.96498C13.9595 6.80474 13.9521 6.64701 13.9415 6.48975C11.4047 10.2732 6.72085 12.0419 2.93274 12.5804Z", fill: "currentcolor" })] });
25104
+ }
25064
25105
  function Exclamation(props) {
25065
25106
  return jsxs("svg", { ...props, viewBox: "0 0 16 16", fill: "currentcolor", children: [jsx("path", { d: "M9 4C9 3.448 8.552 3 8 3C7.448 3 7 3.448 7 4V9C7 9.552 7.448 10 8 10C8.552 10 9 9.552 9 9V4Z" }), jsx("path", { d: "M9 12C9 11.448 8.552 11 8 11C7.448 11 7 11.448 7 12C7 12.552 7.448 13 8 13C8.552 13 9 12.552 9 12Z" })] });
25066
25107
  }
@@ -25187,6 +25228,9 @@ function Removed(props) {
25187
25228
  function RenownHover(props) {
25188
25229
  return jsxs("svg", { ...props, viewBox: "0 0 71 19", fill: "currentcolor", children: [jsx("path", { d: "M53.6211 18.4887V9.0342H56.435V10.8096H56.4923C56.7377 10.181 57.1085 9.70244 57.6047 9.37398C58.101 9.03986 58.6981 8.8728 59.3962 8.8728C60.4105 8.8728 61.2039 9.1871 61.7765 9.8157C62.3546 10.4443 62.6436 11.3164 62.6436 12.432V18.4887H59.7397V13.0776C59.7397 12.5283 59.6007 12.1007 59.3225 11.7949C59.0499 11.4835 58.6654 11.3277 58.1692 11.3277C57.6784 11.3277 57.2803 11.4976 56.9749 11.8374C56.6695 12.1772 56.5168 12.6161 56.5168 13.1541V18.4887H53.6211Z" }), jsx("path", { d: "M53.097 9.03394L50.7412 18.4884H47.6164L46.1522 12.075H46.0949L44.6389 18.4884H41.5632L39.1992 9.03394H42.1195L43.3056 15.7532H43.3628L44.7861 9.03394H47.551L48.9906 15.7532H49.0479L50.234 9.03394H53.097Z" }), jsx("path", { d: "M37.8661 17.3926C37.0427 18.2591 35.9084 18.6923 34.4632 18.6923C33.0181 18.6923 31.8838 18.2591 31.0604 17.3926C30.2369 16.5205 29.8252 15.3086 29.8252 13.7569C29.8252 12.2336 30.2424 11.033 31.0767 10.1552C31.9111 9.2718 33.0399 8.83008 34.4632 8.83008C35.892 8.83008 37.0208 9.26896 37.8497 10.1467C38.6841 11.0188 39.1013 12.2222 39.1013 13.7569C39.1013 15.3143 38.6896 16.5262 37.8661 17.3926ZM33.2117 15.7702C33.5116 16.2402 33.9288 16.4752 34.4632 16.4752C34.9977 16.4752 35.4148 16.2402 35.7148 15.7702C36.0147 15.2945 36.1647 14.6234 36.1647 13.7569C36.1647 12.9131 36.012 12.2506 35.7066 11.7692C35.4012 11.2878 34.9868 11.0472 34.4632 11.0472C33.9343 11.0472 33.5171 11.2878 33.2117 11.7692C32.9118 12.2449 32.7618 12.9075 32.7618 13.7569C32.7618 14.6234 32.9118 15.2945 33.2117 15.7702Z" }), jsx("path", { d: "M20.0088 18.4887V9.0342H22.8227V10.8096H22.88C23.1254 10.181 23.4962 9.70244 23.9924 9.37398C24.4887 9.03986 25.0858 8.8728 25.7838 8.8728C26.7982 8.8728 27.5916 9.1871 28.1642 9.8157C28.7423 10.4443 29.0313 11.3164 29.0313 12.432V18.4887H26.1274V13.0776C26.1274 12.5283 25.9883 12.1007 25.7102 11.7949C25.4376 11.4835 25.0531 11.3277 24.5569 11.3277C24.0661 11.3277 23.668 11.4976 23.3626 11.8374C23.0572 12.1772 22.9045 12.6161 22.9045 13.1541V18.4887H20.0088Z" }), jsx("path", { d: "M14.7486 10.9707C14.2851 10.9707 13.8952 11.1321 13.5789 11.4549C13.2626 11.7777 13.0854 12.1911 13.0472 12.6951H16.4337C16.4064 12.1741 16.2374 11.7579 15.9265 11.4464C15.6212 11.1293 15.2285 10.9707 14.7486 10.9707ZM16.4991 15.5153H19.1167C18.9749 16.4837 18.5141 17.2567 17.7343 17.8343C16.9599 18.4063 15.9838 18.6923 14.8059 18.6923C13.3662 18.6923 12.2374 18.2591 11.4194 17.3926C10.6014 16.5262 10.1924 15.3313 10.1924 13.8079C10.1924 12.2845 10.5987 11.0755 11.4112 10.1807C12.2237 9.28029 13.3226 8.83008 14.7077 8.83008C16.0656 8.83008 17.1481 9.26047 17.9552 10.1213C18.7677 10.9764 19.174 12.1231 19.174 13.5616V14.4195H13.0145V14.6064C13.0145 15.184 13.1835 15.6541 13.5216 16.0165C13.8597 16.3733 14.3015 16.5517 14.8468 16.5517C15.2503 16.5517 15.5993 16.461 15.8938 16.2798C16.1883 16.0929 16.3901 15.8381 16.4991 15.5153Z" }), jsx("path", { d: "M3.00205 8.58396V12.0667H4.7771C5.32789 12.0667 5.7587 11.911 6.06954 11.5995C6.38038 11.2881 6.5358 10.8662 6.5358 10.3338C6.5358 9.80718 6.37492 9.38528 6.05318 9.06815C5.73143 8.74535 5.30335 8.58396 4.76892 8.58396H3.00205ZM3.00205 14.1989V18.4886H0V6.23096H5.07158C6.53307 6.23096 7.65373 6.5849 8.43355 7.29278C9.21337 8.00066 9.60328 8.99453 9.60328 10.2744C9.60328 11.0446 9.42605 11.7439 9.07159 12.3725C8.71712 12.9955 8.2236 13.4514 7.59101 13.7402L9.94684 18.4886H6.5767L4.55624 14.1989H3.00205Z" }), jsx("path", { d: "M65.7255 0.211478C65.0841 2.46724 63.3737 4.2455 61.2041 4.90969C60.932 4.99366 60.932 5.39096 61.2041 5.47492C63.3725 6.13912 65.0841 7.91738 65.7255 10.1731C65.8056 10.4551 66.1932 10.4551 66.2745 10.1731C66.9159 7.91738 68.6263 6.13912 70.7959 5.47492C71.068 5.39096 71.068 4.99366 70.7959 4.90969C68.6276 4.2455 66.9159 2.46724 66.2745 0.211478C66.1944 -0.0704925 65.8068 -0.0704925 65.7255 0.211478Z", fill: "#21FFB4" })] });
25189
25230
  }
25231
+ function RenownLight(props) {
25232
+ return jsxs("svg", { ...props, width: "83", height: "22", viewBox: "0 0 83 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M62.6841 21.7601V10.6326H65.9736V12.7221H66.0405C66.3274 11.9823 66.7609 11.4191 67.341 11.0325C67.9212 10.6393 68.6192 10.4426 69.4352 10.4426C70.621 10.4426 71.5486 10.8125 72.2179 11.5524C72.8937 12.2922 73.2316 13.3187 73.2316 14.6317V21.7601H69.8369V15.3915C69.8369 14.745 69.6743 14.2418 69.3492 13.8819C69.0304 13.5153 68.581 13.332 68.0009 13.332C67.4271 13.332 66.9617 13.5319 66.6047 13.9319C66.2477 14.3318 66.0692 14.8483 66.0692 15.4815V21.7601H62.6841Z", fill: "currentcolor" }), jsx("path", { d: "M62.0713 10.6328L59.3173 21.7603H55.6644L53.9527 14.212H53.8858L52.1837 21.7603H48.5882L45.8246 10.6328H49.2384L50.625 18.5411H50.6919L52.3558 10.6328H55.5879L57.2709 18.5411H57.3379L58.7245 10.6328H62.0713Z", fill: "currentcolor" }), jsx("path", { d: "M44.2662 20.4703C43.3036 21.4901 41.9775 22 40.2882 22C38.5988 22 37.2728 21.4901 36.3102 20.4703C35.3475 19.4439 34.8662 18.0176 34.8662 16.1913C34.8662 14.3984 35.3539 12.9853 36.3293 11.9522C37.3047 10.9125 38.6243 10.3926 40.2882 10.3926C41.9584 10.3926 43.2781 10.9091 44.2471 11.9422C45.2224 12.9687 45.7101 14.385 45.7101 16.1913C45.7101 18.0242 45.2288 19.4506 44.2662 20.4703ZM38.8251 18.5608C39.1757 19.114 39.6634 19.3906 40.2882 19.3906C40.9129 19.3906 41.4006 19.114 41.7512 18.5608C42.1019 18.0009 42.2772 17.2111 42.2772 16.1913C42.2772 15.1982 42.0987 14.4184 41.7417 13.8518C41.3847 13.2853 40.9002 13.002 40.2882 13.002C39.6698 13.002 39.1821 13.2853 38.8251 13.8518C38.4745 14.4117 38.2992 15.1915 38.2992 16.1913C38.2992 17.2111 38.4745 18.0009 38.8251 18.5608Z", fill: "currentcolor" }), jsx("path", { d: "M23.3906 21.7601V10.6326H26.6801V12.7221H26.7471C27.034 11.9823 27.4675 11.4191 28.0476 11.0325C28.6277 10.6393 29.3258 10.4426 30.1418 10.4426C31.3275 10.4426 32.2551 10.8125 32.9245 11.5524C33.6002 12.2922 33.9381 13.3187 33.9381 14.6317V21.7601H30.5434V15.3915C30.5434 14.745 30.3808 14.2418 30.0557 13.8819C29.737 13.5153 29.2875 13.332 28.7074 13.332C28.1336 13.332 27.6683 13.5319 27.3113 13.9319C26.9543 14.3318 26.7758 14.8483 26.7758 15.4815V21.7601H23.3906Z", fill: "currentcolor" }), jsx("path", { d: "M17.2414 12.912C16.6995 12.912 16.2437 13.102 15.8739 13.4819C15.5042 13.8618 15.297 14.3484 15.2524 14.9416H19.2113C19.1794 14.3284 18.9818 13.8385 18.6184 13.4719C18.2614 13.0986 17.8024 12.912 17.2414 12.912ZM19.2878 18.2608H22.3478C22.182 19.4006 21.6433 20.3104 20.7317 20.9902C19.8264 21.6634 18.6853 22 17.3083 22C15.6253 22 14.3057 21.4901 13.3494 20.4703C12.3932 19.4506 11.915 18.0442 11.915 16.2513C11.915 14.4583 12.39 13.0353 13.3399 11.9822C14.2897 10.9225 15.5743 10.3926 17.1936 10.3926C18.7809 10.3926 20.0464 10.8991 20.9899 11.9122C21.9398 12.9187 22.4147 14.2684 22.4147 15.9613V16.9711H15.2141V17.1911C15.2141 17.8709 15.4117 18.4241 15.807 18.8507C16.2022 19.2706 16.7186 19.4806 17.3561 19.4806C17.8279 19.4806 18.2359 19.3739 18.5801 19.1606C18.9244 18.9407 19.1603 18.6408 19.2878 18.2608Z", fill: "currentcolor" }), jsx("path", { d: "M3.50945 10.1029V14.202H5.58452C6.2284 14.202 6.73202 14.0187 7.0954 13.6521C7.45878 13.2855 7.64047 12.789 7.64047 12.1624C7.64047 11.5426 7.4524 11.046 7.07628 10.6728C6.70015 10.2928 6.19971 10.1029 5.57496 10.1029H3.50945ZM3.50945 16.7114V21.7603H0V7.3335H5.92877C7.63728 7.3335 8.94735 7.75007 9.85897 8.58322C10.7706 9.41637 11.2264 10.5861 11.2264 12.0924C11.2264 12.9989 11.0192 13.8221 10.6049 14.5619C10.1905 15.2951 9.61354 15.8316 8.87403 16.1715L11.628 21.7603H7.68828L5.32633 16.7114H3.50945Z", fill: "currentcolor" }), jsx("path", { d: "M76.834 0.248901C76.0842 2.90384 74.0847 4.99678 71.5484 5.77851C71.2303 5.87734 71.2303 6.34494 71.5484 6.44376C74.0833 7.22549 76.0842 9.31844 76.834 11.9734C76.9277 12.3052 77.3807 12.3052 77.4758 11.9734C78.2257 9.31844 80.2251 7.22549 82.7614 6.44376C83.0795 6.34494 83.0795 5.87734 82.7614 5.77851C80.2266 4.99678 78.2257 2.90384 77.4758 0.248901C77.3821 -0.0829669 76.9291 -0.0829669 76.834 0.248901Z", fill: "url(#paint0_linear_2120_7894)" }), jsx("defs", { children: jsxs("linearGradient", { id: "paint0_linear_2120_7894", x1: "77.1549", y1: "-0.768932", x2: "72.2552", y2: "11.3783", gradientUnits: "userSpaceOnUse", children: [jsx("stop", { stopColor: "#21FFB4" }), jsx("stop", { offset: "1", stopColor: "#0080FF" })] }) })] });
25233
+ }
25190
25234
  function Renown(props) {
25191
25235
  return jsxs("svg", { ...props, viewBox: "0 0 71 19", fill: "currentcolor", children: [jsx("path", { d: "M53.6211 18.4887V9.0342H56.435V10.8096H56.4923C56.7377 10.181 57.1085 9.70244 57.6047 9.37398C58.101 9.03986 58.6981 8.8728 59.3962 8.8728C60.4105 8.8728 61.2039 9.1871 61.7765 9.8157C62.3546 10.4443 62.6436 11.3164 62.6436 12.432V18.4887H59.7397V13.0776C59.7397 12.5283 59.6007 12.1007 59.3225 11.7949C59.0499 11.4835 58.6654 11.3277 58.1692 11.3277C57.6784 11.3277 57.2803 11.4976 56.9749 11.8374C56.6695 12.1772 56.5168 12.6161 56.5168 13.1541V18.4887H53.6211Z" }), jsx("path", { d: "M53.097 9.03394L50.7412 18.4884H47.6164L46.1522 12.075H46.0949L44.6389 18.4884H41.5632L39.1992 9.03394H42.1195L43.3056 15.7532H43.3628L44.7861 9.03394H47.551L48.9906 15.7532H49.0479L50.234 9.03394H53.097Z" }), jsx("path", { d: "M37.8661 17.3926C37.0427 18.2591 35.9084 18.6923 34.4632 18.6923C33.0181 18.6923 31.8838 18.2591 31.0604 17.3926C30.2369 16.5205 29.8252 15.3086 29.8252 13.7569C29.8252 12.2336 30.2424 11.033 31.0767 10.1552C31.9111 9.2718 33.0399 8.83008 34.4632 8.83008C35.892 8.83008 37.0208 9.26896 37.8497 10.1467C38.6841 11.0188 39.1013 12.2222 39.1013 13.7569C39.1013 15.3143 38.6896 16.5262 37.8661 17.3926ZM33.2117 15.7702C33.5116 16.2402 33.9288 16.4752 34.4632 16.4752C34.9977 16.4752 35.4148 16.2402 35.7148 15.7702C36.0147 15.2945 36.1647 14.6234 36.1647 13.7569C36.1647 12.9131 36.012 12.2506 35.7066 11.7692C35.4012 11.2878 34.9868 11.0472 34.4632 11.0472C33.9343 11.0472 33.5171 11.2878 33.2117 11.7692C32.9118 12.2449 32.7618 12.9075 32.7618 13.7569C32.7618 14.6234 32.9118 15.2945 33.2117 15.7702Z" }), jsx("path", { d: "M20.0088 18.4887V9.0342H22.8227V10.8096H22.88C23.1254 10.181 23.4962 9.70244 23.9924 9.37398C24.4887 9.03986 25.0858 8.8728 25.7838 8.8728C26.7982 8.8728 27.5916 9.1871 28.1642 9.8157C28.7423 10.4443 29.0313 11.3164 29.0313 12.432V18.4887H26.1274V13.0776C26.1274 12.5283 25.9883 12.1007 25.7102 11.7949C25.4376 11.4835 25.0531 11.3277 24.5569 11.3277C24.0661 11.3277 23.668 11.4976 23.3626 11.8374C23.0572 12.1772 22.9045 12.6161 22.9045 13.1541V18.4887H20.0088Z" }), jsx("path", { d: "M14.7486 10.9707C14.2851 10.9707 13.8952 11.1321 13.5789 11.4549C13.2626 11.7777 13.0854 12.1911 13.0472 12.6951H16.4337C16.4064 12.1741 16.2374 11.7579 15.9265 11.4464C15.6212 11.1293 15.2285 10.9707 14.7486 10.9707ZM16.4991 15.5153H19.1167C18.9749 16.4837 18.5141 17.2567 17.7343 17.8343C16.9599 18.4063 15.9838 18.6923 14.8059 18.6923C13.3662 18.6923 12.2374 18.2591 11.4194 17.3926C10.6014 16.5262 10.1924 15.3313 10.1924 13.8079C10.1924 12.2845 10.5987 11.0755 11.4112 10.1807C12.2237 9.28029 13.3226 8.83008 14.7077 8.83008C16.0656 8.83008 17.1481 9.26047 17.9552 10.1213C18.7677 10.9764 19.174 12.1231 19.174 13.5616V14.4195H13.0145V14.6064C13.0145 15.184 13.1835 15.6541 13.5216 16.0165C13.8597 16.3733 14.3015 16.5517 14.8468 16.5517C15.2503 16.5517 15.5993 16.461 15.8938 16.2798C16.1883 16.0929 16.3901 15.8381 16.4991 15.5153Z" }), jsx("path", { d: "M3.00205 8.58396V12.0667H4.7771C5.32789 12.0667 5.7587 11.911 6.06954 11.5995C6.38038 11.2881 6.5358 10.8662 6.5358 10.3338C6.5358 9.80718 6.37492 9.38528 6.05318 9.06815C5.73143 8.74535 5.30335 8.58396 4.76892 8.58396H3.00205ZM3.00205 14.1989V18.4886H0V6.23096H5.07158C6.53307 6.23096 7.65373 6.5849 8.43355 7.29278C9.21337 8.00066 9.60328 8.99453 9.60328 10.2744C9.60328 11.0446 9.42605 11.7439 9.07159 12.3725C8.71712 12.9955 8.2236 13.4514 7.59101 13.7402L9.94684 18.4886H6.5767L4.55624 14.1989H3.00205Z" }), jsx("path", { d: "M65.7255 0.211478C65.0841 2.46724 63.3737 4.2455 61.2041 4.90969C60.932 4.99366 60.932 5.39096 61.2041 5.47492C63.3725 6.13912 65.0841 7.91738 65.7255 10.1731C65.8056 10.4551 66.1932 10.4551 66.2745 10.1731C66.9159 7.91738 68.6263 6.13912 70.7959 5.47492C71.068 5.39096 71.068 4.99366 70.7959 4.90969C68.6276 4.2455 66.9159 2.46724 66.2745 0.211478C66.1944 -0.0704925 65.8068 -0.0704925 65.7255 0.211478Z" })] });
25192
25236
  }
@@ -25287,6 +25331,7 @@ const iconComponents = {
25287
25331
  CrossCircle,
25288
25332
  Danger,
25289
25333
  DescendenceModified,
25334
+ Disconnect,
25290
25335
  Discord,
25291
25336
  DownloadFile,
25292
25337
  Drive,
@@ -25294,6 +25339,7 @@ const iconComponents = {
25294
25339
  Edit,
25295
25340
  Ellipsis,
25296
25341
  Error: Error$1,
25342
+ Ethscan,
25297
25343
  Exclamation,
25298
25344
  ExportCsv,
25299
25345
  ExportJson,
@@ -25336,6 +25382,7 @@ const iconComponents = {
25336
25382
  Reload,
25337
25383
  Removed,
25338
25384
  RenownHover,
25385
+ RenownLight,
25339
25386
  Renown,
25340
25387
  Ring,
25341
25388
  Save,
@@ -25495,7 +25542,7 @@ const nodeOptionsMap = {
25495
25542
  };
25496
25543
  const name = "@powerhousedao/connect";
25497
25544
  const productName = "Powerhouse-Connect";
25498
- const version$1 = "1.0.0-dev.240";
25545
+ const version$1 = "1.0.0-dev.242";
25499
25546
  const description = "Powerhouse Connect";
25500
25547
  const main = "./dist/index.html";
25501
25548
  const type = "module";
@@ -28288,20 +28335,21 @@ const _BrowserStorage = class _BrowserStorage {
28288
28335
  name: namespace ? `${namespace}:${_BrowserStorage.DBName}` : _BrowserStorage.DBName
28289
28336
  }));
28290
28337
  }
28291
- buildDriveKey(driveId) {
28292
- return `${_BrowserStorage.DRIVES_KEY}${_BrowserStorage.SEP}${driveId}`;
28293
- }
28294
- buildDocumentKey(documentId) {
28295
- return `${_BrowserStorage.DOCUMENT_KEY}${_BrowserStorage.SEP}${documentId}`;
28296
- }
28297
- buildManifestKey(driveId) {
28298
- return `${_BrowserStorage.MANIFEST_KEY}${_BrowserStorage.SEP}${driveId}`;
28299
- }
28338
+ ////////////////////////////////
28339
+ // IDocumentStorage
28340
+ ////////////////////////////////
28300
28341
  async exists(documentId) {
28301
28342
  const db = await this.db;
28302
28343
  const document = await db.getItem(this.buildDocumentKey(documentId));
28303
28344
  return !!document;
28304
28345
  }
28346
+ async create(documentId, document) {
28347
+ const db = await this.db;
28348
+ await db.setItem(this.buildDocumentKey(documentId), document);
28349
+ }
28350
+ ////////////////////////////////
28351
+ // IDriveStorage
28352
+ ////////////////////////////////
28305
28353
  checkDocumentExists(drive, documentId) {
28306
28354
  return this.exists(documentId);
28307
28355
  }
@@ -28326,8 +28374,7 @@ const _BrowserStorage = class _BrowserStorage {
28326
28374
  return document;
28327
28375
  }
28328
28376
  async createDocument(drive, id, document) {
28329
- const db = await this.db;
28330
- await db.setItem(this.buildDocumentKey(id), document);
28377
+ await this.create(id, document);
28331
28378
  const manifest = await this.getDriveManifest(drive);
28332
28379
  if (!manifest.documentIds.includes(id)) {
28333
28380
  manifest.documentIds.push(id);
@@ -28456,6 +28503,18 @@ const _BrowserStorage = class _BrowserStorage {
28456
28503
  return (await this.db).setItem(this.buildDocumentKey(id), migratedDocument);
28457
28504
  }
28458
28505
  }
28506
+ ////////////////////////////////
28507
+ // Private methods
28508
+ ////////////////////////////////
28509
+ buildDriveKey(driveId) {
28510
+ return `${_BrowserStorage.DRIVES_KEY}${_BrowserStorage.SEP}${driveId}`;
28511
+ }
28512
+ buildDocumentKey(documentId) {
28513
+ return `${_BrowserStorage.DOCUMENT_KEY}${_BrowserStorage.SEP}${documentId}`;
28514
+ }
28515
+ buildManifestKey(driveId) {
28516
+ return `${_BrowserStorage.MANIFEST_KEY}${_BrowserStorage.SEP}${driveId}`;
28517
+ }
28459
28518
  };
28460
28519
  __publicField(_BrowserStorage, "DBName", "DOCUMENT_DRIVES");
28461
28520
  __publicField(_BrowserStorage, "SEP", ":");
@@ -31065,7 +31124,7 @@ if (window.__VITE_ENVS.MODE === "development") {
31065
31124
  } else {
31066
31125
  serviceWorkerManager.registerServiceWorker(false);
31067
31126
  }
31068
- const App = lazy(() => __vitePreload(() => import("./app-u2sXNO6J.js").then((n) => n.aN), true ? __vite__mapDeps([0,1,2]) : void 0));
31127
+ const App = lazy(() => __vitePreload(() => import("./app-BLkIfmVO.js").then((n) => n.aN), true ? __vite__mapDeps([0,1,2]) : void 0));
31069
31128
  const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
31070
31129
  const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31071
31130
  __proto__: null,
@@ -826,6 +826,10 @@
826
826
  }
827
827
  }
828
828
  @layer base {
829
+ h1, h2, h3, h4, h5, h6, p {
830
+ color: var(--color-gray-900);
831
+ }
832
+
829
833
  *, :after, :before, ::backdrop {
830
834
  box-sizing: border-box;
831
835
  border: 0 solid;
@@ -1489,6 +1493,10 @@
1489
1493
  height: 20px;
1490
1494
  }
1491
1495
 
1496
+ .h-\[22px\] {
1497
+ height: 22px;
1498
+ }
1499
+
1492
1500
  .h-\[28px\] {
1493
1501
  height: 28px;
1494
1502
  }
@@ -1677,6 +1685,10 @@
1677
1685
  width: 68px;
1678
1686
  }
1679
1687
 
1688
+ .w-\[83px\] {
1689
+ width: 83px;
1690
+ }
1691
+
1680
1692
  .w-\[114px\] {
1681
1693
  width: 114px;
1682
1694
  }
@@ -2019,16 +2031,24 @@
2019
2031
  row-gap: 15px;
2020
2032
  }
2021
2033
 
2034
+ :where(.divide-y > :not(:last-child)) {
2035
+ --tw-divide-y-reverse: 0;
2036
+ border-bottom-style: var(--tw-border-style);
2037
+ border-top-style: var(--tw-border-style);
2038
+ border-top-width: calc(1px * var(--tw-divide-y-reverse));
2039
+ border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
2040
+ }
2041
+
2042
+ :where(.divide-gray-200 > :not(:last-child)) {
2043
+ border-color: var(--color-gray-200);
2044
+ }
2045
+
2022
2046
  .truncate {
2023
2047
  text-overflow: ellipsis;
2024
2048
  white-space: nowrap;
2025
2049
  overflow: hidden;
2026
2050
  }
2027
2051
 
2028
- .overflow-hidden {
2029
- overflow: hidden;
2030
- }
2031
-
2032
2052
  .overflow-scroll {
2033
2053
  overflow: scroll;
2034
2054
  }
@@ -2772,6 +2792,10 @@
2772
2792
  opacity: .8;
2773
2793
  }
2774
2794
 
2795
+ .opacity-100 {
2796
+ opacity: 1;
2797
+ }
2798
+
2775
2799
  .shadow {
2776
2800
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
2777
2801
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -2889,6 +2913,11 @@
2889
2913
  transition-duration: 75ms;
2890
2914
  }
2891
2915
 
2916
+ .duration-150 {
2917
+ --tw-duration: .15s;
2918
+ transition-duration: .15s;
2919
+ }
2920
+
2892
2921
  .duration-200 {
2893
2922
  --tw-duration: .2s;
2894
2923
  transition-duration: .2s;
@@ -3433,6 +3462,10 @@
3433
3462
  color: var(--color-gray-900);
3434
3463
  }
3435
3464
 
3465
+ .hover\:text-red-700:hover {
3466
+ color: var(--color-red-700);
3467
+ }
3468
+
3436
3469
  .hover\:text-red-900:hover {
3437
3470
  color: var(--color-red-900);
3438
3471
  }
@@ -3577,6 +3610,10 @@
3577
3610
  opacity: .5;
3578
3611
  }
3579
3612
 
3613
+ .active\:opacity-70:active {
3614
+ opacity: .7;
3615
+ }
3616
+
3580
3617
  .active\:opacity-75:active {
3581
3618
  opacity: .75;
3582
3619
  }
@@ -4728,6 +4765,10 @@
4728
4765
  overflow: auto;
4729
4766
  }
4730
4767
 
4768
+ .overflow-hidden {
4769
+ overflow: hidden;
4770
+ }
4771
+
4731
4772
  .rounded-2xl {
4732
4773
  border-radius: var(--radius-2xl);
4733
4774
  }
@@ -5120,9 +5161,6 @@ input[type="number"]::-webkit-outer-spin-button {
5120
5161
  input[type="number"] {
5121
5162
  -moz-appearance: textfield;
5122
5163
  }
5123
- h1, h2, h3, h4, h5, h6, p {
5124
- color: var(--color-gray-900);
5125
- }
5126
5164
  @property --tw-translate-x {
5127
5165
  syntax: "*";
5128
5166
  inherits: false;
@@ -5188,6 +5226,11 @@ h1, h2, h3, h4, h5, h6, p {
5188
5226
  inherits: false;
5189
5227
  initial-value: 0;
5190
5228
  }
5229
+ @property --tw-divide-y-reverse {
5230
+ syntax: "*";
5231
+ inherits: false;
5232
+ initial-value: 0;
5233
+ }
5191
5234
  @property --tw-border-style {
5192
5235
  syntax: "*";
5193
5236
  inherits: false;
@@ -1,7 +1,7 @@
1
- import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-u2sXNO6J.js";
2
- import "./main.DZVWLf7p.js";
1
+ import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-BLkIfmVO.js";
2
+ import "./main.D8uj0g8b.js";
3
3
  import "react/jsx-runtime";
4
- import "./app-loader-CjqNjYIQ.js";
4
+ import "./app-loader-BGyOo0Bz.js";
5
5
  import "react";
6
6
  import "@powerhousedao/reactor-browser";
7
7
  import "react-dom";
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
- import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById } from "./app-u2sXNO6J.js";
2
+ import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById } from "./app-BLkIfmVO.js";
3
3
  import * as React from "react";
4
4
  import React__default, { useState, useCallback, useMemo, useEffect, Fragment, useRef, useLayoutEffect, memo as memo$1, createElement, useSyncExternalStore, Suspense } from "react";
5
- import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-CjqNjYIQ.js";
5
+ import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-BGyOo0Bz.js";
6
6
  import { useDocument, useDocumentEditorProps } from "@powerhousedao/reactor-browser";
7
7
  import { useUiNodesContext, FILE as FILE$1 } from "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
8
8
  import { useDriveActionsWithUiNodes } from "@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes";
@@ -10,8 +10,7 @@ import { useDriveContext, DriveContextProvider } from "@powerhousedao/reactor-br
10
10
  import "@powerhousedao/reactor-browser/uiNodes/constants";
11
11
  import { makeDriveDocumentStateHook } from "@powerhousedao/reactor-browser/hooks/document-state";
12
12
  import { flushSync } from "react-dom";
13
- import "./main.DZVWLf7p.js";
14
- const ConnectLoaderVideo = "/assets/connect-loader-CvOC68Ih.mp4";
13
+ import "./main.D8uj0g8b.js";
15
14
  const PaginationButton = ({ active = false, ...props }) => {
16
15
  const className = twMerge("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100", !active && "border-0");
17
16
  return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
@@ -98,6 +97,7 @@ const useWindowSize = () => {
98
97
  }, []);
99
98
  return windowSize;
100
99
  };
100
+ const ConnectLoaderVideo = "/assets/connect-loader-CvOC68Ih.mp4";
101
101
  function AnimatedLoader(props) {
102
102
  var _a, _b;
103
103
  const { style, size = 100, ...delegatedProps } = props;
@@ -3930,7 +3930,7 @@ function Content() {
3930
3930
  );
3931
3931
  });
3932
3932
  }, [selectedDriveNode, selectedNode, addFile]);
3933
- return /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col overflow-auto", id: "content-view", children: fileNodeDocument ? /* @__PURE__ */ jsx(DocumentEditorContainer, {}, fileNodeDocument.documentId) : selectedDriveNode ? /* @__PURE__ */ jsx(DriveEditorContainer, {}, selectedDriveNode.id) : null });
3933
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col overflow-hidden", id: "content-view", children: fileNodeDocument ? /* @__PURE__ */ jsx(DocumentEditorContainer, {}, fileNodeDocument.documentId) : selectedDriveNode ? /* @__PURE__ */ jsx(DriveEditorContainer, {}, selectedDriveNode.id) : null });
3934
3934
  }
3935
3935
  export {
3936
3936
  Content as default