@powerhousedao/connect 1.0.22-dev.4 → 1.0.22-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-DZfkpUSg.js → app--8GR1s1F.js} +2102 -5095
- package/dist/assets/app--8GR1s1F.js.map +1 -0
- package/dist/assets/{app-CmlD3Pwe.css → app-D5gNm0Gn.css} +67 -26
- package/dist/assets/{app-loader-DWy8SQ7o.js → app-loader-Cpxc-Z4r.js} +71 -50
- package/dist/assets/app-loader-Cpxc-Z4r.js.map +1 -0
- package/dist/assets/{app-loader-DaCxVT0x.css → app-loader-NDVZu4bS.css} +28 -34
- package/dist/assets/{browser-B_zTOFuJ.js → browser-BGmqqWzj.js} +38 -48
- package/dist/assets/browser-BGmqqWzj.js.map +1 -0
- package/dist/assets/{ccip-Br7QabLv.js → ccip-DZrXuUSd.js} +5 -5
- package/dist/assets/ccip-DZrXuUSd.js.map +1 -0
- package/dist/assets/{content-Ch_VzBZ4.js → content-CXAqFfWn.js} +74 -114
- package/dist/assets/content-CXAqFfWn.js.map +1 -0
- package/dist/assets/{index--JP0V-_i.js → index-BAHj408N.js} +5 -5
- package/dist/assets/{index--JP0V-_i.js.map → index-BAHj408N.js.map} +1 -1
- package/dist/assets/{index-Dkmlt_Sd.js → index-COIGG6Yu.js} +4 -4
- package/dist/assets/{index-Dkmlt_Sd.js.map → index-COIGG6Yu.js.map} +1 -1
- package/dist/assets/{index-CVuue1Uq.js → index-Ceg4Qzmm.js} +4 -4
- package/dist/assets/index-Ceg4Qzmm.js.map +1 -0
- package/dist/assets/{index-BW2kpwdQ.js → index-zXVVFMCB.js} +551 -748
- package/dist/assets/index-zXVVFMCB.js.map +1 -0
- package/dist/assets/{main.DjHkckQe.js → main.BHiq8UNn.js} +2 -2
- package/dist/assets/{main.DjHkckQe.js.map → main.BHiq8UNn.js.map} +1 -1
- package/dist/assets/{reactor-analytics-U0uwNQ_2.js → reactor-analytics-CXkzgfQJ.js} +6 -6
- package/dist/assets/{reactor-analytics-U0uwNQ_2.js.map → reactor-analytics-CXkzgfQJ.js.map} +1 -1
- package/dist/assets/{router-D0FWn4U0.js → router-BvNO_jKf.js} +12 -12
- package/dist/assets/router-BvNO_jKf.js.map +1 -0
- package/dist/assets/{style-BPUyhu8E.css → style-CdxGKc2g.css} +36 -25
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +10 -10
- package/dist/assets/app-DZfkpUSg.js.map +0 -1
- package/dist/assets/app-loader-DWy8SQ7o.js.map +0 -1
- package/dist/assets/browser-B_zTOFuJ.js.map +0 -1
- package/dist/assets/ccip-Br7QabLv.js.map +0 -1
- package/dist/assets/content-Ch_VzBZ4.js.map +0 -1
- package/dist/assets/index-BW2kpwdQ.js.map +0 -1
- package/dist/assets/index-CVuue1Uq.js.map +0 -1
- package/dist/assets/router-D0FWn4U0.js.map +0 -1
|
@@ -93,7 +93,17 @@
|
|
|
93
93
|
--default-transition-duration: 150ms;
|
|
94
94
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
95
95
|
--default-font-family: var(--font-sans);
|
|
96
|
+
--default-font-feature-settings: var(--font-sans--font-feature-settings);
|
|
97
|
+
--default-font-variation-settings: var(
|
|
98
|
+
--font-sans--font-variation-settings
|
|
99
|
+
);
|
|
96
100
|
--default-mono-font-family: var(--font-mono);
|
|
101
|
+
--default-mono-font-feature-settings: var(
|
|
102
|
+
--font-mono--font-feature-settings
|
|
103
|
+
);
|
|
104
|
+
--default-mono-font-variation-settings: var(
|
|
105
|
+
--font-mono--font-variation-settings
|
|
106
|
+
);
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
109
|
@layer base {
|
|
@@ -107,11 +117,14 @@
|
|
|
107
117
|
line-height: 1.5;
|
|
108
118
|
-webkit-text-size-adjust: 100%;
|
|
109
119
|
tab-size: 4;
|
|
110
|
-
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
120
|
+
font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" );
|
|
111
121
|
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
112
|
-
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
122
|
+
font-variation-settings: var( --default-font-variation-settings, normal );
|
|
113
123
|
-webkit-tap-highlight-color: transparent;
|
|
114
124
|
}
|
|
125
|
+
body {
|
|
126
|
+
line-height: inherit;
|
|
127
|
+
}
|
|
115
128
|
hr {
|
|
116
129
|
height: 0;
|
|
117
130
|
color: inherit;
|
|
@@ -134,9 +147,9 @@
|
|
|
134
147
|
font-weight: bolder;
|
|
135
148
|
}
|
|
136
149
|
code, kbd, samp, pre {
|
|
137
|
-
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
138
|
-
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
139
|
-
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
150
|
+
font-family: var( --default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace );
|
|
151
|
+
font-feature-settings: var( --default-mono-font-feature-settings, normal );
|
|
152
|
+
font-variation-settings: var( --default-mono-font-variation-settings, normal );
|
|
140
153
|
font-size: 1em;
|
|
141
154
|
}
|
|
142
155
|
small {
|
|
@@ -200,13 +213,9 @@
|
|
|
200
213
|
}
|
|
201
214
|
::placeholder {
|
|
202
215
|
opacity: 1;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
color: currentColor;
|
|
207
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
208
|
-
color: color-mix(in oklab, currentColor 50%, transparent);
|
|
209
|
-
}
|
|
216
|
+
color: currentColor;
|
|
217
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
218
|
+
color: color-mix(in oklab, currentColor 50%, transparent);
|
|
210
219
|
}
|
|
211
220
|
}
|
|
212
221
|
textarea {
|
|
@@ -400,7 +409,7 @@
|
|
|
400
409
|
color: var(--color-gray-600);
|
|
401
410
|
}
|
|
402
411
|
}
|
|
403
|
-
/*! tailwindcss v4.0.
|
|
412
|
+
/*! tailwindcss v4.0.14 | MIT License | https://tailwindcss.com */
|
|
404
413
|
:root {
|
|
405
414
|
--toastify-color-light: #fff;
|
|
406
415
|
--toastify-color-dark: #121212;
|
|
@@ -1088,6 +1097,8 @@
|
|
|
1088
1097
|
@layer theme {
|
|
1089
1098
|
:root, :host {
|
|
1090
1099
|
--font-sans: "Inter", sans-serif;
|
|
1100
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
1101
|
+
"Courier New", monospace;
|
|
1091
1102
|
--color-red-100: hsl(3 82% 96%);
|
|
1092
1103
|
--color-red-400: hsl(5 82% 83%);
|
|
1093
1104
|
--color-red-500: hsl(5 80% 78%);
|
|
@@ -1174,6 +1185,18 @@
|
|
|
1174
1185
|
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
1175
1186
|
--default-transition-duration: 150ms;
|
|
1176
1187
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1188
|
+
--default-font-family: var(--font-sans);
|
|
1189
|
+
--default-font-feature-settings: var(--font-sans--font-feature-settings);
|
|
1190
|
+
--default-font-variation-settings: var(
|
|
1191
|
+
--font-sans--font-variation-settings
|
|
1192
|
+
);
|
|
1193
|
+
--default-mono-font-family: var(--font-mono);
|
|
1194
|
+
--default-mono-font-feature-settings: var(
|
|
1195
|
+
--font-mono--font-feature-settings
|
|
1196
|
+
);
|
|
1197
|
+
--default-mono-font-variation-settings: var(
|
|
1198
|
+
--font-mono--font-variation-settings
|
|
1199
|
+
);
|
|
1177
1200
|
--color-charcoal-300: hsl(221 17% 67%);
|
|
1178
1201
|
--color-charcoal-700: hsl(219 17% 34%);
|
|
1179
1202
|
--color-charcoal-800: hsl(221 17% 26%);
|
|
@@ -1199,11 +1222,14 @@
|
|
|
1199
1222
|
line-height: 1.5;
|
|
1200
1223
|
-webkit-text-size-adjust: 100%;
|
|
1201
1224
|
tab-size: 4;
|
|
1202
|
-
font-family:
|
|
1203
|
-
font-feature-settings:
|
|
1204
|
-
font-variation-settings:
|
|
1225
|
+
font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" );
|
|
1226
|
+
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
1227
|
+
font-variation-settings: var( --default-font-variation-settings, normal );
|
|
1205
1228
|
-webkit-tap-highlight-color: transparent;
|
|
1206
1229
|
}
|
|
1230
|
+
body {
|
|
1231
|
+
line-height: inherit;
|
|
1232
|
+
}
|
|
1207
1233
|
hr {
|
|
1208
1234
|
height: 0;
|
|
1209
1235
|
color: inherit;
|
|
@@ -1226,9 +1252,9 @@
|
|
|
1226
1252
|
font-weight: bolder;
|
|
1227
1253
|
}
|
|
1228
1254
|
code, kbd, samp, pre {
|
|
1229
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
1230
|
-
font-feature-settings:
|
|
1231
|
-
font-variation-settings:
|
|
1255
|
+
font-family: var( --default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace );
|
|
1256
|
+
font-feature-settings: var( --default-mono-font-feature-settings, normal );
|
|
1257
|
+
font-variation-settings: var( --default-mono-font-variation-settings, normal );
|
|
1232
1258
|
font-size: 1em;
|
|
1233
1259
|
}
|
|
1234
1260
|
small {
|
|
@@ -1292,13 +1318,9 @@
|
|
|
1292
1318
|
}
|
|
1293
1319
|
::placeholder {
|
|
1294
1320
|
opacity: 1;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
color: currentColor;
|
|
1299
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1300
|
-
color: color-mix(in oklab, currentColor 50%, transparent);
|
|
1301
|
-
}
|
|
1321
|
+
color: currentColor;
|
|
1322
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1323
|
+
color: color-mix(in oklab, currentColor 50%, transparent);
|
|
1302
1324
|
}
|
|
1303
1325
|
}
|
|
1304
1326
|
textarea {
|
|
@@ -2665,6 +2687,12 @@
|
|
|
2665
2687
|
.bg-green-600 {
|
|
2666
2688
|
background-color: var(--color-green-600);
|
|
2667
2689
|
}
|
|
2690
|
+
.bg-green-600\/30 {
|
|
2691
|
+
background-color: color-mix(in srgb, oklch(0.627 0.194 149.214) 30%, transparent);
|
|
2692
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2693
|
+
background-color: color-mix(in oklab, var(--color-green-600) 30%, transparent);
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2668
2696
|
.bg-green-900 {
|
|
2669
2697
|
background-color: var(--color-green-900);
|
|
2670
2698
|
}
|
|
@@ -2680,6 +2708,12 @@
|
|
|
2680
2708
|
.bg-red-600 {
|
|
2681
2709
|
background-color: var(--color-red-600);
|
|
2682
2710
|
}
|
|
2711
|
+
.bg-red-600\/30 {
|
|
2712
|
+
background-color: color-mix(in srgb, oklch(0.577 0.245 27.325) 30%, transparent);
|
|
2713
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2714
|
+
background-color: color-mix(in oklab, var(--color-red-600) 30%, transparent);
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2683
2717
|
.bg-red-900 {
|
|
2684
2718
|
background-color: var(--color-red-900);
|
|
2685
2719
|
}
|
|
@@ -5533,6 +5567,13 @@
|
|
|
5533
5567
|
}
|
|
5534
5568
|
}
|
|
5535
5569
|
}
|
|
5570
|
+
.\[\&\>span\]\:truncate {
|
|
5571
|
+
&>span {
|
|
5572
|
+
overflow: hidden;
|
|
5573
|
+
text-overflow: ellipsis;
|
|
5574
|
+
white-space: nowrap;
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5536
5577
|
.\[\&\>svg\]\:size-4 {
|
|
5537
5578
|
&>svg {
|
|
5538
5579
|
width: calc(var(--spacing) * 4);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app--8GR1s1F.js","assets/main.BHiq8UNn.js","assets/app-D5gNm0Gn.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.
|
|
14
|
+
import { _ as __vitePreload } from "./main.BHiq8UNn.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) {
|
|
@@ -177,7 +177,7 @@ class InMemoryCache {
|
|
|
177
177
|
return this.idToDrive.delete(driveId);
|
|
178
178
|
}
|
|
179
179
|
async setDriveBySlug(slug, drive) {
|
|
180
|
-
const driveId = drive.
|
|
180
|
+
const driveId = drive.id;
|
|
181
181
|
this.slugToDriveId.set(slug, driveId);
|
|
182
182
|
this.setDrive(driveId, drive);
|
|
183
183
|
}
|
|
@@ -6977,6 +6977,7 @@ function processSkipOperation(document, action, customReducer, skipValue, reuseO
|
|
|
6977
6977
|
scopeState = resultingStateParser(lastRemainingOperation.resultingState);
|
|
6978
6978
|
} else {
|
|
6979
6979
|
const { state } = replayOperations(document.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
6980
|
+
reuseHash: true,
|
|
6980
6981
|
reuseOperationResultingState,
|
|
6981
6982
|
operationResultingStateParser: resultingStateParser
|
|
6982
6983
|
});
|
|
@@ -7003,6 +7004,7 @@ function processUndoOperation(document, scope, customReducer, reuseOperationResu
|
|
|
7003
7004
|
const clearedOperations = [...documentOperations[scope]];
|
|
7004
7005
|
const diff = diffOperations(garbageCollect(sortedOperations), clearedOperations);
|
|
7005
7006
|
const doc = replayOperations(document.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
7007
|
+
reuseHash: true,
|
|
7006
7008
|
reuseOperationResultingState,
|
|
7007
7009
|
operationResultingStateParser: resultingStateParser
|
|
7008
7010
|
});
|
|
@@ -7152,9 +7154,11 @@ function createReducer(stateReducer2, documentReducer = baseReducer) {
|
|
|
7152
7154
|
return reducer2;
|
|
7153
7155
|
}
|
|
7154
7156
|
function baseCreateExtendedState(initialState, createState2) {
|
|
7157
|
+
const id = generateUUID();
|
|
7155
7158
|
return {
|
|
7159
|
+
id,
|
|
7160
|
+
slug: id,
|
|
7156
7161
|
name: "",
|
|
7157
|
-
slug: "",
|
|
7158
7162
|
documentType: "",
|
|
7159
7163
|
revision: {
|
|
7160
7164
|
global: 0,
|
|
@@ -10525,10 +10529,11 @@ function validateOperations(operations) {
|
|
|
10525
10529
|
}
|
|
10526
10530
|
function createZip(document) {
|
|
10527
10531
|
const zip = new JSZip();
|
|
10528
|
-
const { name: name2,
|
|
10532
|
+
const { id, slug, name: name2, revision, documentType: documentType2, created, lastModified } = document;
|
|
10529
10533
|
const header = {
|
|
10530
|
-
|
|
10534
|
+
id,
|
|
10531
10535
|
slug,
|
|
10536
|
+
name: name2,
|
|
10532
10537
|
revision,
|
|
10533
10538
|
documentType: documentType2,
|
|
10534
10539
|
created,
|
|
@@ -11381,7 +11386,6 @@ const fileExtension = "phdd";
|
|
|
11381
11386
|
const documentType = "powerhouse/document-drive";
|
|
11382
11387
|
const documentModelName = "DocumentDrive";
|
|
11383
11388
|
const initialGlobalState = {
|
|
11384
|
-
id: "",
|
|
11385
11389
|
name: "",
|
|
11386
11390
|
nodes: [],
|
|
11387
11391
|
icon: null
|
|
@@ -22340,14 +22344,18 @@ async function fetchDocument(url, documentId, documentModelModule) {
|
|
|
22340
22344
|
local: []
|
|
22341
22345
|
},
|
|
22342
22346
|
attachments: {},
|
|
22343
|
-
initialState:
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22347
|
+
initialState: {
|
|
22348
|
+
...utils.createExtendedState({
|
|
22349
|
+
// TODO: getDocument should return all the initial state fields
|
|
22350
|
+
created: result.document.created,
|
|
22351
|
+
lastModified: result.document.created,
|
|
22352
|
+
state: utils.createState({
|
|
22353
|
+
global: result.document.initialState.state.global
|
|
22354
|
+
})
|
|
22355
|
+
}),
|
|
22356
|
+
id: result.document.id,
|
|
22357
|
+
slug: result.document.slug
|
|
22358
|
+
},
|
|
22351
22359
|
clipboard: []
|
|
22352
22360
|
} : null;
|
|
22353
22361
|
return {
|
|
@@ -22402,7 +22410,13 @@ class ReadModeService {
|
|
|
22402
22410
|
return document;
|
|
22403
22411
|
}
|
|
22404
22412
|
async addReadDrive(url, options) {
|
|
22405
|
-
|
|
22413
|
+
let id;
|
|
22414
|
+
if (options == null ? void 0 : options.expectedDriveInfo) {
|
|
22415
|
+
id = options.expectedDriveInfo.id;
|
|
22416
|
+
} else {
|
|
22417
|
+
const drive = await requestPublicDrive(url);
|
|
22418
|
+
id = drive.id;
|
|
22419
|
+
}
|
|
22406
22420
|
const result = await __privateMethod(this, _ReadModeService_instances, fetchDrive_fn).call(this, id, url);
|
|
22407
22421
|
if (result instanceof Error) {
|
|
22408
22422
|
throw result;
|
|
@@ -22564,8 +22578,8 @@ class DefaultDrivesManager {
|
|
|
22564
22578
|
}
|
|
22565
22579
|
async preserveDrivesById(driveIdsToPreserve, drives, removeStrategy = "detach") {
|
|
22566
22580
|
const getAllDrives = drives.map((driveId) => this.server.getDrive(driveId));
|
|
22567
|
-
const drivesToRemove = (await Promise.all(getAllDrives)).filter((drive) => drive.state.local.listeners.length > 0 || drive.state.local.triggers.length > 0).filter((drive) => !driveIdsToPreserve.includes(drive.
|
|
22568
|
-
const driveIds = drivesToRemove.map((drive) => drive.
|
|
22581
|
+
const drivesToRemove = (await Promise.all(getAllDrives)).filter((drive) => drive.state.local.listeners.length > 0 || drive.state.local.triggers.length > 0).filter((drive) => !driveIdsToPreserve.includes(drive.id));
|
|
22582
|
+
const driveIds = drivesToRemove.map((drive) => drive.id);
|
|
22569
22583
|
if (removeStrategy === "detach") {
|
|
22570
22584
|
await this.detachDrivesById(driveIds);
|
|
22571
22585
|
} else {
|
|
@@ -22613,7 +22627,7 @@ class DefaultDrivesManager {
|
|
|
22613
22627
|
case "remove-all": {
|
|
22614
22628
|
const getDrives = driveids.map((driveId) => this.server.getDrive(driveId));
|
|
22615
22629
|
const drives = await Promise.all(getDrives);
|
|
22616
|
-
const drivesToRemove = drives.filter((drive) => drive.state.local.listeners.length > 0 || drive.state.local.triggers.length > 0).map((drive) => drive.
|
|
22630
|
+
const drivesToRemove = drives.filter((drive) => drive.state.local.listeners.length > 0 || drive.state.local.triggers.length > 0).map((drive) => drive.id);
|
|
22617
22631
|
await this.removeDrivesById(drivesToRemove);
|
|
22618
22632
|
break;
|
|
22619
22633
|
}
|
|
@@ -23501,7 +23515,7 @@ class BaseDocumentDriveServer {
|
|
|
23501
23515
|
this.logger.verbose(`[SYNC DEBUG] Created SwitchboardPush transmitter with URL: ${zodListener.callInfo.data || "none"}`);
|
|
23502
23516
|
await this.listenerManager.setListener(driveId, {
|
|
23503
23517
|
block: zodListener.block,
|
|
23504
|
-
driveId: drive.
|
|
23518
|
+
driveId: drive.id,
|
|
23505
23519
|
filter: {
|
|
23506
23520
|
branch: zodListener.filter.branch ?? [],
|
|
23507
23521
|
documentId: zodListener.filter.documentId ?? [],
|
|
@@ -23563,24 +23577,24 @@ class BaseDocumentDriveServer {
|
|
|
23563
23577
|
return [...this.documentModelModules];
|
|
23564
23578
|
}
|
|
23565
23579
|
async addDrive(input, preferredEditor) {
|
|
23566
|
-
const id = input.global.id || generateId();
|
|
23567
|
-
if (!id) {
|
|
23568
|
-
throw new Error("Invalid Drive Id");
|
|
23569
|
-
}
|
|
23570
23580
|
const document = createDocument({
|
|
23571
23581
|
state: input
|
|
23572
23582
|
});
|
|
23583
|
+
if (input.id && input.id.length > 0) {
|
|
23584
|
+
document.id = document.initialState.id = input.id;
|
|
23585
|
+
document.slug = document.initialState.slug = input.id;
|
|
23586
|
+
}
|
|
23573
23587
|
if (input.slug && input.slug.length > 0) {
|
|
23574
|
-
document.slug = input.slug;
|
|
23588
|
+
document.slug = document.initialState.slug = input.slug;
|
|
23575
23589
|
}
|
|
23576
23590
|
document.meta = {
|
|
23577
23591
|
preferredEditor
|
|
23578
23592
|
};
|
|
23579
|
-
await this.documentStorage.create(
|
|
23593
|
+
await this.documentStorage.create(document);
|
|
23580
23594
|
if (input.slug && input.slug.length > 0) {
|
|
23581
23595
|
await this.cache.deleteDriveBySlug(input.slug);
|
|
23582
23596
|
}
|
|
23583
|
-
await this._initializeDrive(id);
|
|
23597
|
+
await this._initializeDrive(document.id);
|
|
23584
23598
|
this.eventEmitter.emit("driveAdded", document);
|
|
23585
23599
|
return document;
|
|
23586
23600
|
}
|
|
@@ -23592,9 +23606,9 @@ class BaseDocumentDriveServer {
|
|
|
23592
23606
|
pullInterval
|
|
23593
23607
|
});
|
|
23594
23608
|
return await this.addDrive({
|
|
23609
|
+
id,
|
|
23595
23610
|
slug,
|
|
23596
23611
|
global: {
|
|
23597
|
-
id,
|
|
23598
23612
|
name: name2,
|
|
23599
23613
|
icon: icon ?? null
|
|
23600
23614
|
},
|
|
@@ -23703,7 +23717,11 @@ class BaseDocumentDriveServer {
|
|
|
23703
23717
|
state = doc.state;
|
|
23704
23718
|
}
|
|
23705
23719
|
const document = input.document ?? this.getDocumentModelModule(input.documentType).utils.createDocument();
|
|
23720
|
+
if (input.id && input.id.length > 0) {
|
|
23721
|
+
document.id = input.id;
|
|
23722
|
+
}
|
|
23706
23723
|
const documentStorage = {
|
|
23724
|
+
id: document.id,
|
|
23707
23725
|
name: document.name,
|
|
23708
23726
|
slug: document.slug,
|
|
23709
23727
|
revision: document.revision,
|
|
@@ -23715,7 +23733,7 @@ class BaseDocumentDriveServer {
|
|
|
23715
23733
|
clipboard: [],
|
|
23716
23734
|
state: state ?? document.state
|
|
23717
23735
|
};
|
|
23718
|
-
await this.documentStorage.create(
|
|
23736
|
+
await this.documentStorage.create(documentStorage);
|
|
23719
23737
|
try {
|
|
23720
23738
|
await this.documentStorage.addChild(driveId, input.id);
|
|
23721
23739
|
} catch (e) {
|
|
@@ -24396,7 +24414,8 @@ class MemoryStorage {
|
|
|
24396
24414
|
exists(documentId) {
|
|
24397
24415
|
return Promise.resolve(!!this.documents[documentId]);
|
|
24398
24416
|
}
|
|
24399
|
-
create(
|
|
24417
|
+
create(document) {
|
|
24418
|
+
const documentId = document.id;
|
|
24400
24419
|
if (!isValidDocumentId(documentId)) {
|
|
24401
24420
|
throw new DocumentIdValidationError(documentId);
|
|
24402
24421
|
}
|
|
@@ -26054,7 +26073,7 @@ const nodeOptionsMap = {
|
|
|
26054
26073
|
};
|
|
26055
26074
|
const name = "@powerhousedao/connect";
|
|
26056
26075
|
const productName = "Powerhouse-Connect";
|
|
26057
|
-
const version$1 = "1.0.22-dev.
|
|
26076
|
+
const version$1 = "1.0.22-dev.6";
|
|
26058
26077
|
const description = "Powerhouse Connect";
|
|
26059
26078
|
const main = "./dist/index.html";
|
|
26060
26079
|
const type = "module";
|
|
@@ -26066,7 +26085,7 @@ const author = "acaldas@powerhouse.inc";
|
|
|
26066
26085
|
const repository = { "type": "git", "url": "git+https://github.com/powerhouse-inc/document-model-electron.git" };
|
|
26067
26086
|
const bugs = { "url": "https://github.com/powerhouse-inc/document-model-electron/issues" };
|
|
26068
26087
|
const homepage = "https://github.com/powerhouse-inc/document-model-electron#readme";
|
|
26069
|
-
const scripts = { "build:tsc": "tsc --build", "start": "electron-forge start", "package": "electron-forge package", "make": "PH_CONNECT_BASE_HREF=./ electron-forge make", "make:mac": "PH_CONNECT_BASE_HREF=./ electron-forge make -p darwin", "make:linux": "PH_CONNECT_BASE_HREF=./ electron-forge make -p linux", "make:windows": "PH_CONNECT_BASE_HREF=./ electron-forge make -p win32", "publish:electron": "electron-forge publish", "prepublishOnly": "npm run build", "lint": "eslint .", "lint:fix": "eslint --fix .", "lint:nx": "eslint --quiet --fix .", "format": 'prettier --write "**/*.+(js|ts|jsx|tsx|json)"', "dev": "vite -c vite.renderer.config.mts", "dev:nocache": "rm -rf node_modules/.vite && rm -rf node_modules/.cache && npm run dev", "prebuild": "tsc --build --noEmit", "build": "NODE_OPTIONS=--max-old-space-size=6144 vite build -c vite.renderer.config.mts", "preview:web": "vite preview -c vite.renderer.config.mts", "e2e": "playwright test", "cy:open": "cypress open", "build:service-worker": "tsc --build ./tsconfig.sw.json", "clean": "rimraf dist", "clean:node_modules": "rimraf node_modules" };
|
|
26088
|
+
const scripts = { "build:tsc": "tsc --build", "start": "electron-forge start", "package": "electron-forge package", "make": "PH_CONNECT_BASE_HREF=./ electron-forge make", "make:mac": "PH_CONNECT_BASE_HREF=./ electron-forge make -p darwin", "make:linux": "PH_CONNECT_BASE_HREF=./ electron-forge make -p linux", "make:windows": "PH_CONNECT_BASE_HREF=./ electron-forge make -p win32", "publish:electron": "electron-forge publish", "prepublishOnly": "npm run build", "lint": "eslint .", "lint:fix": "eslint --fix .", "lint:nx": "eslint --quiet --fix .", "format": 'prettier --write "**/*.+(js|ts|jsx|tsx|json)"', "dev": "vite -c vite.renderer.config.mts", "dev:nocache": "rm -rf node_modules/.vite && rm -rf node_modules/.cache && npm run dev", "prebuild": "npm run clean && tsc --build --noEmit", "build": "NODE_OPTIONS=--max-old-space-size=6144 vite build -c vite.renderer.config.mts", "preview:web": "vite preview -c vite.renderer.config.mts", "e2e": "playwright test", "cy:open": "cypress open", "build:service-worker": "tsc --build ./tsconfig.sw.json", "clean": "rimraf dist", "clean:node_modules": "rimraf node_modules" };
|
|
26070
26089
|
const devDependencies = { "@electron-forge/cli": "^6.1.1", "@electron-forge/maker-deb": "^6.1.1", "@electron-forge/maker-rpm": "^6.1.1", "@electron-forge/maker-squirrel": "^6.1.1", "@electron-forge/maker-zip": "^6.1.1", "@electron-forge/plugin-vite": "^6.1.1", "@electron-forge/publisher-electron-release-server": "^6.2.1", "@electron-forge/publisher-github": "^7.2.0", "@electron-forge/shared-types": "^7.7.0", "@playwright/test": "^1.41.2", "@powerhousedao/builder-tools": "workspace:*", "@powerhousedao/common": "workspace:*", "@powerhousedao/config": "workspace:*", "@powerhousedao/design-system": "workspace:*", "@powerhousedao/diff-analyzer": "^0.0.0-dev.4", "@powerhousedao/reactor-browser": "workspace:*", "@powerhousedao/scalars": "workspace:*", "@rollup/plugin-node-resolve": "^15.2.3", "@sentry/browser": "^9.1.0", "@sentry/react": "^7.109.0", "@sentry/vite-plugin": "^2.22.2", "@tailwindcss/vite": "^4.0.9", "@tanstack/react-virtual": "^3.8.1", "@types/node": "^22.13.10", "@types/react": "^18.2.79", "@types/react-dom": "^18.2.18", "@types/uuid": "^9.0.7", "@types/wicg-file-system-access": "^2020.9.6", "@vitejs/plugin-basic-ssl": "^1.2.0", "@vitejs/plugin-react": "^4.2.1", "asar": "^3.2.0", "did-key-creator": "^1.2.0", "document-drive": "workspace:*", "document-model": "workspace:*", "electron": "30.0.0", "electron-is-dev": "^3.0.1", "electron-playwright-helpers": "^1.7.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", "esbuild": "^0.24.0", "graphql": "^16.8.1", "graphql-request": "^6.1.0", "i18next": "^23.7.6", "jotai": "^2.1.0", "jotai-effect": "^1.1.6", "localforage": "^1.10.0", "lz-string": "^1.5.0", "playwright": "^1.41.2", "playwright-core": "^1.41.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-error-boundary": "^4.0.11", "react-hotkeys-hook": "^4.5.0", "react-i18next": "^13.5.0", "react-router-dom": "^6.11.2", "tailwind-merge": "^3.0.2", "tailwindcss": "^4.0.9", "uuid": "^9.0.1", "viem": "^2.8.13", "vite": "^6.2.2", "vite-envs": "^4.4.11", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-svgr": "^4.2.0", "vite-tsconfig-paths": "^4.3.2", "xvfb-maybe": "^0.2.1" };
|
|
26071
26090
|
const optionalDependencies = { "@esbuild/linux-x64": "^0.21.4", "@rollup/rollup-linux-x64-musl": "4.14.3" };
|
|
26072
26091
|
const dependencies = { "serve": "^14.2.4" };
|
|
@@ -26213,6 +26232,7 @@ DriveSections.filter(
|
|
|
26213
26232
|
};
|
|
26214
26233
|
});
|
|
26215
26234
|
var lzString = { exports: {} };
|
|
26235
|
+
lzString.exports;
|
|
26216
26236
|
var hasRequiredLzString;
|
|
26217
26237
|
function requireLzString() {
|
|
26218
26238
|
if (hasRequiredLzString) return lzString.exports;
|
|
@@ -28868,7 +28888,8 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28868
28888
|
const document = await db.getItem(this.buildDocumentKey(documentId));
|
|
28869
28889
|
return !!document;
|
|
28870
28890
|
}
|
|
28871
|
-
async create(
|
|
28891
|
+
async create(document) {
|
|
28892
|
+
const documentId = document.id;
|
|
28872
28893
|
if (!isValidDocumentId(documentId)) {
|
|
28873
28894
|
throw new DocumentIdValidationError(documentId);
|
|
28874
28895
|
}
|
|
@@ -31750,7 +31771,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31750
31771
|
} else {
|
|
31751
31772
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31752
31773
|
}
|
|
31753
|
-
const App = lazy(() => __vitePreload(() => import("./app
|
|
31774
|
+
const App = lazy(() => __vitePreload(() => import("./app--8GR1s1F.js").then((n) => n.bs), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31754
31775
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31755
31776
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31756
31777
|
__proto__: null,
|
|
@@ -31786,17 +31807,17 @@ export {
|
|
|
31786
31807
|
pascalCase as Z,
|
|
31787
31808
|
logger$1 as _,
|
|
31788
31809
|
createReducer as a,
|
|
31789
|
-
|
|
31810
|
+
getNamedType as a$,
|
|
31790
31811
|
getDefaultExportFromCjs as a0,
|
|
31791
31812
|
LOCAL as a1,
|
|
31792
31813
|
commonjsGlobal as a2,
|
|
31793
|
-
|
|
31794
|
-
|
|
31814
|
+
SWITCHBOARD as a3,
|
|
31815
|
+
PUBLIC as a4,
|
|
31795
31816
|
locationInfoByLocation as a5,
|
|
31796
31817
|
sharingTypeOptions as a6,
|
|
31797
31818
|
objectType as a7,
|
|
31798
|
-
|
|
31799
|
-
|
|
31819
|
+
stringType as a8,
|
|
31820
|
+
recordType as a9,
|
|
31800
31821
|
updateNode as aA,
|
|
31801
31822
|
FILE as aB,
|
|
31802
31823
|
moveNode as aC,
|
|
@@ -31823,14 +31844,14 @@ export {
|
|
|
31823
31844
|
request as aX,
|
|
31824
31845
|
inspect as aY,
|
|
31825
31846
|
GraphQLError as aZ,
|
|
31826
|
-
|
|
31847
|
+
invariant as a_,
|
|
31827
31848
|
capitalCase as aa,
|
|
31828
31849
|
CLOUD as ab,
|
|
31829
31850
|
createZip as ac,
|
|
31830
31851
|
LZString as ad,
|
|
31831
31852
|
buildSignedOperation as ae,
|
|
31832
|
-
|
|
31833
|
-
|
|
31853
|
+
getDefaults as af,
|
|
31854
|
+
getI18n as ag,
|
|
31834
31855
|
connectConfig as ah,
|
|
31835
31856
|
hashDocumentStateForScope as ai,
|
|
31836
31857
|
getAugmentedNamespace as aj,
|
|
@@ -31851,17 +31872,17 @@ export {
|
|
|
31851
31872
|
isFolderNode as ay,
|
|
31852
31873
|
deleteNode as az,
|
|
31853
31874
|
SetStateSchemaInputSchema as b,
|
|
31854
|
-
|
|
31875
|
+
DUPLICATE as b$,
|
|
31855
31876
|
isInputObjectType as b0,
|
|
31856
31877
|
isScalarType as b1,
|
|
31857
31878
|
isObjectType as b2,
|
|
31858
31879
|
isInterfaceType as b3,
|
|
31859
31880
|
isUnionType as b4,
|
|
31860
31881
|
isEnumType as b5,
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31864
|
-
|
|
31882
|
+
astFromValue as b6,
|
|
31883
|
+
print as b7,
|
|
31884
|
+
DEFAULT_DEPRECATION_REASON as b8,
|
|
31885
|
+
Kind as b9,
|
|
31865
31886
|
isInputType as bA,
|
|
31866
31887
|
GraphQLBoolean as bB,
|
|
31867
31888
|
assertAbstractType as bC,
|
|
@@ -31889,7 +31910,7 @@ export {
|
|
|
31889
31910
|
READ as bY,
|
|
31890
31911
|
nodeOptionsMap as bZ,
|
|
31891
31912
|
defaultFileOptions as b_,
|
|
31892
|
-
|
|
31913
|
+
isPrintableAsBlockString as ba,
|
|
31893
31914
|
isSpecifiedDirective as bb,
|
|
31894
31915
|
isSpecifiedScalarType as bc,
|
|
31895
31916
|
isIntrospectionType as bd,
|
|
@@ -31918,7 +31939,7 @@ export {
|
|
|
31918
31939
|
createAction as c,
|
|
31919
31940
|
RENAME as c0,
|
|
31920
31941
|
WRITE as c1,
|
|
31921
|
-
|
|
31942
|
+
DELETE as c2,
|
|
31922
31943
|
defaultFolderOptions as c3,
|
|
31923
31944
|
garbageCollect as c4,
|
|
31924
31945
|
sortOperations as c5,
|
|
@@ -31951,4 +31972,4 @@ export {
|
|
|
31951
31972
|
ReorderModulesInputSchema as y,
|
|
31952
31973
|
DeleteModuleInputSchema as z
|
|
31953
31974
|
};
|
|
31954
|
-
//# sourceMappingURL=app-loader-
|
|
31975
|
+
//# sourceMappingURL=app-loader-Cpxc-Z4r.js.map
|