@powerhousedao/connect 1.0.24-dev.0 → 1.0.25-dev.1
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-B5yYl0zv.js → app-CiY06l6j.js} +31 -30
- package/dist/assets/app-CiY06l6j.js.map +1 -0
- package/dist/assets/{app-loader-CmEZOj3m.js → app-loader-B6MX3hYl.js} +227 -214
- package/dist/assets/app-loader-B6MX3hYl.js.map +1 -0
- package/dist/assets/{browser-D5LEpLBa.js → browser-DQWWdqgu.js} +4 -4
- package/dist/assets/{browser-D5LEpLBa.js.map → browser-DQWWdqgu.js.map} +1 -1
- package/dist/assets/{ccip-KtRjx9vh.js → ccip-DipfoCFp.js} +4 -4
- package/dist/assets/{ccip-KtRjx9vh.js.map → ccip-DipfoCFp.js.map} +1 -1
- package/dist/assets/{content-2lJzkjLx.js → content-CiveEDEX.js} +6 -6
- package/dist/assets/{content-2lJzkjLx.js.map → content-CiveEDEX.js.map} +1 -1
- package/dist/assets/{index-BhHOiwFw.js → index-BBK8njgo.js} +4 -4
- package/dist/assets/{index-BhHOiwFw.js.map → index-BBK8njgo.js.map} +1 -1
- package/dist/assets/{index-DZiF5od7.js → index-D7W0QQ4s.js} +4 -4
- package/dist/assets/{index-DZiF5od7.js.map → index-D7W0QQ4s.js.map} +1 -1
- package/dist/assets/{index-BVVRVlZN.js → index-DWxGWLYx.js} +4 -4
- package/dist/assets/{index-BVVRVlZN.js.map → index-DWxGWLYx.js.map} +1 -1
- package/dist/assets/{index-dSMCpjcQ.js → index-Dh6jI02p.js} +5 -5
- package/dist/assets/{index-dSMCpjcQ.js.map → index-Dh6jI02p.js.map} +1 -1
- package/dist/assets/{main.DA6nl4Ov.js → main.BhDxue4U.js} +2 -2
- package/dist/assets/{main.DA6nl4Ov.js.map → main.BhDxue4U.js.map} +1 -1
- package/dist/assets/{reactor-analytics-CF_JKt8H.js → reactor-analytics-yoaQVfIX.js} +6 -6
- package/dist/assets/{reactor-analytics-CF_JKt8H.js.map → reactor-analytics-yoaQVfIX.js.map} +1 -1
- package/dist/assets/{router-Ch1WZD-6.js → router-x_fvbODb.js} +6 -6
- package/dist/assets/{router-Ch1WZD-6.js.map → router-x_fvbODb.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +8 -8
- package/dist/assets/app-B5yYl0zv.js.map +0 -1
- package/dist/assets/app-loader-CmEZOj3m.js.map +0 -1
|
@@ -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-CiY06l6j.js","assets/main.BhDxue4U.js","assets/app-DWlDE8AF.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.BhDxue4U.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) {
|
|
@@ -491,7 +491,7 @@ var hasRequiredSafeStableStringify;
|
|
|
491
491
|
function requireSafeStableStringify() {
|
|
492
492
|
if (hasRequiredSafeStableStringify) return safeStableStringify.exports;
|
|
493
493
|
hasRequiredSafeStableStringify = 1;
|
|
494
|
-
(function(
|
|
494
|
+
(function(module2, exports) {
|
|
495
495
|
const { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
|
|
496
496
|
const stringify2 = configure();
|
|
497
497
|
stringify2.configure = configure;
|
|
@@ -499,7 +499,7 @@ function requireSafeStableStringify() {
|
|
|
499
499
|
stringify2.default = stringify2;
|
|
500
500
|
exports.stringify = stringify2;
|
|
501
501
|
exports.configure = configure;
|
|
502
|
-
|
|
502
|
+
module2.exports = stringify2;
|
|
503
503
|
const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
|
|
504
504
|
function strEscape(str) {
|
|
505
505
|
if (str.length < 5e3 && !strEscapeSequencesRegExp.test(str)) {
|
|
@@ -6703,10 +6703,20 @@ function UndoActionSchema() {
|
|
|
6703
6703
|
scope: OperationScopeSchema$1()
|
|
6704
6704
|
});
|
|
6705
6705
|
}
|
|
6706
|
+
const setName = (name2) => createAction("SET_NAME", name2, void 0, SetNameActionInputSchema, void 0);
|
|
6706
6707
|
const undo = (skip = 1, scope = "global") => createAction("UNDO", skip, void 0, UndoActionInputSchema, scope);
|
|
6707
6708
|
const redo = (count = 1, scope = "global") => createAction("REDO", count, void 0, RedoActionInputSchema, scope);
|
|
6709
|
+
const prune = (start, end, scope = "global") => createAction("PRUNE", { start, end }, void 0, PruneActionInputSchema, scope);
|
|
6708
6710
|
const loadState = (state, operations) => createAction("LOAD_STATE", { state, operations }, void 0, LoadStateActionInputSchema);
|
|
6709
6711
|
const noop$1 = (scope = "global") => createAction("NOOP", void 0, void 0, void 0, scope);
|
|
6712
|
+
const actions$1 = {
|
|
6713
|
+
setName,
|
|
6714
|
+
undo,
|
|
6715
|
+
redo,
|
|
6716
|
+
prune,
|
|
6717
|
+
loadState,
|
|
6718
|
+
noop: noop$1
|
|
6719
|
+
};
|
|
6710
6720
|
function setNameOperation(document, name2) {
|
|
6711
6721
|
return { ...document, name: name2 };
|
|
6712
6722
|
}
|
|
@@ -7153,7 +7163,7 @@ function createReducer(stateReducer2, documentReducer = baseReducer) {
|
|
|
7153
7163
|
};
|
|
7154
7164
|
return reducer2;
|
|
7155
7165
|
}
|
|
7156
|
-
function baseCreateExtendedState(initialState,
|
|
7166
|
+
function baseCreateExtendedState(initialState, createState) {
|
|
7157
7167
|
const id = (initialState == null ? void 0 : initialState.id) ?? generateUUID();
|
|
7158
7168
|
return {
|
|
7159
7169
|
name: "",
|
|
@@ -7168,14 +7178,14 @@ function baseCreateExtendedState(initialState, createState2) {
|
|
|
7168
7178
|
...initialState,
|
|
7169
7179
|
id,
|
|
7170
7180
|
slug: (initialState == null ? void 0 : initialState.slug) ?? id,
|
|
7171
|
-
state: (
|
|
7181
|
+
state: (createState == null ? void 0 : createState(initialState == null ? void 0 : initialState.state)) ?? ((initialState == null ? void 0 : initialState.state) ?? {
|
|
7172
7182
|
global: {},
|
|
7173
7183
|
local: {}
|
|
7174
7184
|
})
|
|
7175
7185
|
};
|
|
7176
7186
|
}
|
|
7177
|
-
function baseCreateDocument(initialState,
|
|
7178
|
-
const state = baseCreateExtendedState(initialState,
|
|
7187
|
+
function baseCreateDocument(initialState, createState) {
|
|
7188
|
+
const state = baseCreateExtendedState(initialState, createState);
|
|
7179
7189
|
return {
|
|
7180
7190
|
...state,
|
|
7181
7191
|
initialState: state,
|
|
@@ -7759,9 +7769,9 @@ var hasRequiredJszip_min;
|
|
|
7759
7769
|
function requireJszip_min() {
|
|
7760
7770
|
if (hasRequiredJszip_min) return jszip_min.exports;
|
|
7761
7771
|
hasRequiredJszip_min = 1;
|
|
7762
|
-
(function(
|
|
7772
|
+
(function(module2, exports) {
|
|
7763
7773
|
!function(e) {
|
|
7764
|
-
|
|
7774
|
+
module2.exports = e();
|
|
7765
7775
|
}(function() {
|
|
7766
7776
|
return function s(a, o, h) {
|
|
7767
7777
|
function u(r, e2) {
|
|
@@ -10529,13 +10539,13 @@ function validateOperations(operations) {
|
|
|
10529
10539
|
}
|
|
10530
10540
|
function createZip(document) {
|
|
10531
10541
|
const zip = new JSZip();
|
|
10532
|
-
const { id, slug, name: name2, revision, documentType
|
|
10542
|
+
const { id, slug, name: name2, revision, documentType, created, lastModified } = document;
|
|
10533
10543
|
const header = {
|
|
10534
10544
|
id,
|
|
10535
10545
|
slug,
|
|
10536
10546
|
name: name2,
|
|
10537
10547
|
revision,
|
|
10538
|
-
documentType
|
|
10548
|
+
documentType,
|
|
10539
10549
|
created,
|
|
10540
10550
|
lastModified
|
|
10541
10551
|
};
|
|
@@ -10566,8 +10576,8 @@ async function baseSaveToFile(document, path, extension, name2) {
|
|
|
10566
10576
|
streamFiles: true
|
|
10567
10577
|
});
|
|
10568
10578
|
const fileName = name2 ?? document.name;
|
|
10569
|
-
const
|
|
10570
|
-
return writeFile(path, fileName.endsWith(
|
|
10579
|
+
const fileExtension = `.${extension}.zip`;
|
|
10580
|
+
return writeFile(path, fileName.endsWith(fileExtension) ? fileName : `${fileName}${fileExtension}`);
|
|
10571
10581
|
}
|
|
10572
10582
|
async function baseSaveToFileHandle(document, input) {
|
|
10573
10583
|
const zip = createZip(document);
|
|
@@ -10883,39 +10893,6 @@ function UpdateNodeInputSchema() {
|
|
|
10883
10893
|
parentFolder: z.string().nullish()
|
|
10884
10894
|
});
|
|
10885
10895
|
}
|
|
10886
|
-
const setDriveName = (input) => createAction("SET_DRIVE_NAME", { ...input }, void 0, SetDriveNameInputSchema, "global");
|
|
10887
|
-
const setDriveIcon = (input) => createAction("SET_DRIVE_ICON", { ...input }, void 0, SetDriveIconInputSchema, "global");
|
|
10888
|
-
const setSharingType = (input) => createAction("SET_SHARING_TYPE", { ...input }, void 0, SetSharingTypeInputSchema, "local");
|
|
10889
|
-
const setAvailableOffline = (input) => createAction("SET_AVAILABLE_OFFLINE", { ...input }, void 0, SetAvailableOfflineInputSchema, "local");
|
|
10890
|
-
const addListener = (input) => createAction("ADD_LISTENER", { ...input }, void 0, AddListenerInputSchema, "local");
|
|
10891
|
-
const removeListener = (input) => createAction("REMOVE_LISTENER", { ...input }, void 0, RemoveListenerInputSchema, "local");
|
|
10892
|
-
const addTrigger = (input) => createAction("ADD_TRIGGER", { ...input }, void 0, AddTriggerInputSchema, "local");
|
|
10893
|
-
const removeTrigger = (input) => createAction("REMOVE_TRIGGER", { ...input }, void 0, RemoveTriggerInputSchema, "local");
|
|
10894
|
-
const addFile = (input) => createAction("ADD_FILE", { ...input }, void 0, AddFileInputSchema, "global");
|
|
10895
|
-
const addFolder = (input) => createAction("ADD_FOLDER", { ...input }, void 0, AddFolderInputSchema, "global");
|
|
10896
|
-
const deleteNode = (input) => createAction("DELETE_NODE", { ...input }, void 0, DeleteNodeInputSchema, "global");
|
|
10897
|
-
const updateFile = (input) => createAction("UPDATE_FILE", { ...input }, void 0, UpdateFileInputSchema, "global");
|
|
10898
|
-
const updateNode = (input) => createAction("UPDATE_NODE", { ...input }, void 0, UpdateNodeInputSchema, "global");
|
|
10899
|
-
const copyNode = (input) => createAction("COPY_NODE", { ...input }, void 0, CopyNodeInputSchema, "global");
|
|
10900
|
-
const moveNode = (input) => createAction("MOVE_NODE", { ...input }, void 0, MoveNodeInputSchema, "global");
|
|
10901
|
-
const creators = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10902
|
-
__proto__: null,
|
|
10903
|
-
addFile,
|
|
10904
|
-
addFolder,
|
|
10905
|
-
addListener,
|
|
10906
|
-
addTrigger,
|
|
10907
|
-
copyNode,
|
|
10908
|
-
deleteNode,
|
|
10909
|
-
moveNode,
|
|
10910
|
-
removeListener,
|
|
10911
|
-
removeTrigger,
|
|
10912
|
-
setAvailableOffline,
|
|
10913
|
-
setDriveIcon,
|
|
10914
|
-
setDriveName,
|
|
10915
|
-
setSharingType,
|
|
10916
|
-
updateFile,
|
|
10917
|
-
updateNode
|
|
10918
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
10919
10896
|
const reducer$2 = {
|
|
10920
10897
|
setDriveNameOperation(state, action, dispatch) {
|
|
10921
10898
|
state.name = action.input.name;
|
|
@@ -11002,6 +10979,13 @@ class SynchronizationUnitNotFoundError extends Error {
|
|
|
11002
10979
|
}
|
|
11003
10980
|
const isValidDocumentId = (id) => id && id.length > 0 && /^[a-zA-Z0-9_-]+$/.test(id);
|
|
11004
10981
|
const isValidSlug = (slug) => slug && slug.length > 0 && /^[a-zA-Z0-9_-]+$/.test(slug);
|
|
10982
|
+
const addFile = (input) => createAction("ADD_FILE", { ...input }, void 0, AddFileInputSchema, "global");
|
|
10983
|
+
const addFolder = (input) => createAction("ADD_FOLDER", { ...input }, void 0, AddFolderInputSchema, "global");
|
|
10984
|
+
const deleteNode = (input) => createAction("DELETE_NODE", { ...input }, void 0, DeleteNodeInputSchema, "global");
|
|
10985
|
+
const updateFile = (input) => createAction("UPDATE_FILE", { ...input }, void 0, UpdateFileInputSchema, "global");
|
|
10986
|
+
const updateNode = (input) => createAction("UPDATE_NODE", { ...input }, void 0, UpdateNodeInputSchema, "global");
|
|
10987
|
+
const copyNode = (input) => createAction("COPY_NODE", { ...input }, void 0, CopyNodeInputSchema, "global");
|
|
10988
|
+
const moveNode = (input) => createAction("MOVE_NODE", { ...input }, void 0, MoveNodeInputSchema, "global");
|
|
11005
10989
|
function isFileNode(node) {
|
|
11006
10990
|
return node.kind === "file";
|
|
11007
10991
|
}
|
|
@@ -11382,9 +11366,6 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
11382
11366
|
}
|
|
11383
11367
|
};
|
|
11384
11368
|
const reducer = createReducer(stateReducer);
|
|
11385
|
-
const fileExtension = "phdd";
|
|
11386
|
-
const documentType = "powerhouse/document-drive";
|
|
11387
|
-
const documentModelName = "DocumentDrive";
|
|
11388
11369
|
const initialGlobalState = {
|
|
11389
11370
|
name: "",
|
|
11390
11371
|
nodes: [],
|
|
@@ -11396,48 +11377,64 @@ const initialLocalState = {
|
|
|
11396
11377
|
sharingType: "private",
|
|
11397
11378
|
availableOffline: false
|
|
11398
11379
|
};
|
|
11399
|
-
const
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
}
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11380
|
+
const utils$1 = {
|
|
11381
|
+
fileExtension: "phdd",
|
|
11382
|
+
createState(state) {
|
|
11383
|
+
return {
|
|
11384
|
+
global: { ...initialGlobalState, ...state == null ? void 0 : state.global },
|
|
11385
|
+
local: { ...initialLocalState, ...state == null ? void 0 : state.local }
|
|
11386
|
+
};
|
|
11387
|
+
},
|
|
11388
|
+
createExtendedState(extendedState) {
|
|
11389
|
+
return baseCreateExtendedState({ ...extendedState, documentType: "powerhouse/document-drive" }, utils$1.createState);
|
|
11390
|
+
},
|
|
11391
|
+
createDocument(state) {
|
|
11392
|
+
return baseCreateDocument(utils$1.createExtendedState(state), utils$1.createState);
|
|
11393
|
+
},
|
|
11394
|
+
saveToFile(document, path, name2) {
|
|
11395
|
+
return baseSaveToFile(document, path, "phdd", name2);
|
|
11396
|
+
},
|
|
11397
|
+
saveToFileHandle(document, input) {
|
|
11398
|
+
return baseSaveToFileHandle(document, input);
|
|
11399
|
+
},
|
|
11400
|
+
loadFromFile(path) {
|
|
11401
|
+
return baseLoadFromFile(path, reducer);
|
|
11402
|
+
},
|
|
11403
|
+
loadFromInput(input) {
|
|
11404
|
+
return baseLoadFromInput(input, reducer);
|
|
11405
|
+
}
|
|
11422
11406
|
};
|
|
11423
|
-
const
|
|
11407
|
+
const createDocument = utils$1.createDocument;
|
|
11408
|
+
const setDriveName = (input) => createAction("SET_DRIVE_NAME", { ...input }, void 0, SetDriveNameInputSchema, "global");
|
|
11409
|
+
const setDriveIcon = (input) => createAction("SET_DRIVE_ICON", { ...input }, void 0, SetDriveIconInputSchema, "global");
|
|
11410
|
+
const setSharingType = (input) => createAction("SET_SHARING_TYPE", { ...input }, void 0, SetSharingTypeInputSchema, "local");
|
|
11411
|
+
const setAvailableOffline = (input) => createAction("SET_AVAILABLE_OFFLINE", { ...input }, void 0, SetAvailableOfflineInputSchema, "local");
|
|
11412
|
+
const addListener = (input) => createAction("ADD_LISTENER", { ...input }, void 0, AddListenerInputSchema, "local");
|
|
11413
|
+
const removeListener = (input) => createAction("REMOVE_LISTENER", { ...input }, void 0, RemoveListenerInputSchema, "local");
|
|
11414
|
+
const addTrigger = (input) => createAction("ADD_TRIGGER", { ...input }, void 0, AddTriggerInputSchema, "local");
|
|
11415
|
+
const removeTrigger = (input) => createAction("REMOVE_TRIGGER", { ...input }, void 0, RemoveTriggerInputSchema, "local");
|
|
11416
|
+
const DocumentDriveActions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11424
11417
|
__proto__: null,
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11418
|
+
addFile,
|
|
11419
|
+
addFolder,
|
|
11420
|
+
addListener,
|
|
11421
|
+
addTrigger,
|
|
11422
|
+
copyNode,
|
|
11423
|
+
deleteNode,
|
|
11424
|
+
moveNode,
|
|
11425
|
+
removeListener,
|
|
11426
|
+
removeTrigger,
|
|
11427
|
+
setAvailableOffline,
|
|
11428
|
+
setDriveIcon,
|
|
11429
|
+
setDriveName,
|
|
11430
|
+
setSharingType,
|
|
11431
|
+
updateFile,
|
|
11432
|
+
updateNode
|
|
11436
11433
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11437
|
-
const
|
|
11438
|
-
id:
|
|
11439
|
-
name:
|
|
11440
|
-
extension:
|
|
11434
|
+
const documentModel = {
|
|
11435
|
+
id: "powerhouse/document-drive",
|
|
11436
|
+
name: "DocumentDrive",
|
|
11437
|
+
extension: "phdd",
|
|
11441
11438
|
description: "",
|
|
11442
11439
|
author: {
|
|
11443
11440
|
name: "Powerhouse Inc",
|
|
@@ -11449,8 +11446,8 @@ const documentModelState = {
|
|
|
11449
11446
|
changeLog: [],
|
|
11450
11447
|
state: {
|
|
11451
11448
|
global: {
|
|
11452
|
-
schema: "
|
|
11453
|
-
initialValue: '"{\\"
|
|
11449
|
+
schema: "scalar Unknown\n\ntype FolderNode {\n id: String!\n name: String!\n kind: String!\n parentFolder: String\n}\n\ntype SynchronizationUnit {\n syncId: ID!\n scope: String!\n branch: String!\n}\n\ntype FileNode {\n id: String!\n name: String!\n kind: String!\n documentType: String!\n parentFolder: String\n synchronizationUnits: [SynchronizationUnit!]!\n}\n\nunion Node = FolderNode | FileNode\n\ntype DocumentDriveState {\n name: String!\n nodes: [Node!]!\n icon: String\n}",
|
|
11450
|
+
initialValue: '"{\\"name\\":\\"\\",\\"nodes\\":[],\\"icon\\":null}"',
|
|
11454
11451
|
examples: []
|
|
11455
11452
|
},
|
|
11456
11453
|
local: {
|
|
@@ -11469,7 +11466,7 @@ const documentModelState = {
|
|
|
11469
11466
|
id: "7xiTdxonc9yEASR8sfV/KnbSV10=",
|
|
11470
11467
|
name: "ADD_FILE",
|
|
11471
11468
|
description: "",
|
|
11472
|
-
schema: "input AddFileInput {\n id: ID!\n name: String!\n documentType: String!\n parentFolder: ID\n synchronizationUnits: [SynchronizationUnit!]!\n}",
|
|
11469
|
+
schema: "input AddFileInput {\n id: ID!\n name: String!\n documentType: String!\n document: Unknown\n parentFolder: ID\n synchronizationUnits: [SynchronizationUnit!]!\n}",
|
|
11473
11470
|
template: "",
|
|
11474
11471
|
reducer: "",
|
|
11475
11472
|
errors: [],
|
|
@@ -11643,12 +11640,15 @@ const documentModelState = {
|
|
|
11643
11640
|
}
|
|
11644
11641
|
]
|
|
11645
11642
|
};
|
|
11646
|
-
const
|
|
11643
|
+
const utils = { ...utils$1, ...customUtils };
|
|
11644
|
+
const actions = { ...actions$1, ...DocumentDriveActions };
|
|
11645
|
+
const module = {
|
|
11647
11646
|
reducer,
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11647
|
+
actions,
|
|
11648
|
+
utils,
|
|
11649
|
+
documentModel
|
|
11651
11650
|
};
|
|
11651
|
+
const driveDocumentModelModule = module;
|
|
11652
11652
|
const LogLevels = {
|
|
11653
11653
|
verbose: 1,
|
|
11654
11654
|
debug: 2,
|
|
@@ -11766,6 +11766,7 @@ const childLogger = (tags) => {
|
|
|
11766
11766
|
logger2.errorHandler = errorHandler;
|
|
11767
11767
|
return logger2;
|
|
11768
11768
|
};
|
|
11769
|
+
const driveDocumentType = documentModel.id;
|
|
11769
11770
|
var RunAsap;
|
|
11770
11771
|
(function(RunAsap2) {
|
|
11771
11772
|
RunAsap2.useMessageChannel = (() => {
|
|
@@ -11887,7 +11888,7 @@ var RunAsap;
|
|
|
11887
11888
|
const runAsap = RunAsap.runAsap;
|
|
11888
11889
|
const runAsapAsync = RunAsap.runAsapAsync;
|
|
11889
11890
|
function isDocumentDrive(document) {
|
|
11890
|
-
return document.documentType ===
|
|
11891
|
+
return document.documentType === driveDocumentType;
|
|
11891
11892
|
}
|
|
11892
11893
|
function mergeOperations(currentOperations, newOperations) {
|
|
11893
11894
|
const minIndexByScope = Object.keys(currentOperations).reduce((acc, curr) => {
|
|
@@ -21356,7 +21357,7 @@ var hasRequiredBrowserPonyfill;
|
|
|
21356
21357
|
function requireBrowserPonyfill() {
|
|
21357
21358
|
if (hasRequiredBrowserPonyfill) return browserPonyfill.exports;
|
|
21358
21359
|
hasRequiredBrowserPonyfill = 1;
|
|
21359
|
-
(function(
|
|
21360
|
+
(function(module2, exports) {
|
|
21360
21361
|
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
|
|
21361
21362
|
var __globalThis__ = function() {
|
|
21362
21363
|
function F() {
|
|
@@ -21906,7 +21907,7 @@ function requireBrowserPonyfill() {
|
|
|
21906
21907
|
exports.Headers = ctx.Headers;
|
|
21907
21908
|
exports.Request = ctx.Request;
|
|
21908
21909
|
exports.Response = ctx.Response;
|
|
21909
|
-
|
|
21910
|
+
module2.exports = exports;
|
|
21910
21911
|
})(browserPonyfill, browserPonyfill.exports);
|
|
21911
21912
|
return browserPonyfill.exports;
|
|
21912
21913
|
}
|
|
@@ -22232,9 +22233,9 @@ function getFields(type2, prefix) {
|
|
|
22232
22233
|
}
|
|
22233
22234
|
return "";
|
|
22234
22235
|
}
|
|
22235
|
-
function generateDocumentStateQueryFields(
|
|
22236
|
-
const name2 = pascalCase(
|
|
22237
|
-
const spec =
|
|
22236
|
+
function generateDocumentStateQueryFields(documentModelState, prefix, options) {
|
|
22237
|
+
const name2 = pascalCase(documentModelState.name);
|
|
22238
|
+
const spec = documentModelState.specifications.at(-1);
|
|
22238
22239
|
if (!spec) {
|
|
22239
22240
|
throw new Error("No document model specification found");
|
|
22240
22241
|
}
|
|
@@ -22280,9 +22281,9 @@ async function requestPublicDrive(url) {
|
|
|
22280
22281
|
return drive;
|
|
22281
22282
|
}
|
|
22282
22283
|
async function fetchDocument(url, documentId, documentModelModule) {
|
|
22283
|
-
const { documentModel, utils } = documentModelModule;
|
|
22284
|
-
const name2 = pascalCase(
|
|
22285
|
-
const stateFields = generateDocumentStateQueryFields(
|
|
22284
|
+
const { documentModel: documentModel2, utils: utils2 } = documentModelModule;
|
|
22285
|
+
const name2 = pascalCase(documentModel2.name);
|
|
22286
|
+
const stateFields = generateDocumentStateQueryFields(documentModel2, name2);
|
|
22286
22287
|
const result = await requestGraphql(url, gql`
|
|
22287
22288
|
query ($id: String!) {
|
|
22288
22289
|
document(id: $id) {
|
|
@@ -22330,7 +22331,7 @@ async function fetchDocument(url, documentId, documentModelModule) {
|
|
|
22330
22331
|
const document = result.document ? {
|
|
22331
22332
|
...result.document,
|
|
22332
22333
|
revision: {
|
|
22333
|
-
global: result.document.revision
|
|
22334
|
+
global: result.document.revision,
|
|
22334
22335
|
local: 0
|
|
22335
22336
|
},
|
|
22336
22337
|
state: result.document.state,
|
|
@@ -22345,12 +22346,12 @@ async function fetchDocument(url, documentId, documentModelModule) {
|
|
|
22345
22346
|
},
|
|
22346
22347
|
attachments: {},
|
|
22347
22348
|
initialState: {
|
|
22348
|
-
...
|
|
22349
|
+
...utils2.createExtendedState({
|
|
22349
22350
|
// TODO: getDocument should return all the initial state fields
|
|
22350
22351
|
created: result.document.created,
|
|
22351
22352
|
lastModified: result.document.created,
|
|
22352
|
-
state:
|
|
22353
|
-
global: result.document.initialState
|
|
22353
|
+
state: utils2.createState({
|
|
22354
|
+
global: result.document.initialState
|
|
22354
22355
|
})
|
|
22355
22356
|
}),
|
|
22356
22357
|
id: result.document.id,
|
|
@@ -22375,7 +22376,7 @@ class ReadModeService {
|
|
|
22375
22376
|
if (!drive) {
|
|
22376
22377
|
return new ReadDriveNotFoundError(id);
|
|
22377
22378
|
}
|
|
22378
|
-
const document = await this.fetchDocument(id, id,
|
|
22379
|
+
const document = await this.fetchDocument(id, id, driveDocumentType);
|
|
22379
22380
|
if (document instanceof Error) {
|
|
22380
22381
|
return document;
|
|
22381
22382
|
}
|
|
@@ -22383,16 +22384,16 @@ class ReadModeService {
|
|
|
22383
22384
|
drive.drive = result;
|
|
22384
22385
|
return result;
|
|
22385
22386
|
}
|
|
22386
|
-
async fetchDocument(driveId, documentId,
|
|
22387
|
+
async fetchDocument(driveId, documentId, documentType) {
|
|
22387
22388
|
const drive = __privateGet(this, _drives).get(driveId);
|
|
22388
22389
|
if (!drive) {
|
|
22389
22390
|
return new ReadDriveNotFoundError(driveId);
|
|
22390
22391
|
}
|
|
22391
22392
|
let documentModelModule = void 0;
|
|
22392
22393
|
try {
|
|
22393
|
-
documentModelModule = __privateGet(this, _getDocumentModelModule).call(this,
|
|
22394
|
+
documentModelModule = __privateGet(this, _getDocumentModelModule).call(this, documentType);
|
|
22394
22395
|
} catch (error) {
|
|
22395
|
-
return new DocumentModelNotFoundError(
|
|
22396
|
+
return new DocumentModelNotFoundError(documentType, error);
|
|
22396
22397
|
}
|
|
22397
22398
|
const { url } = drive.context;
|
|
22398
22399
|
const { errors, document } = await fetchDocument(url, documentId, documentModelModule);
|
|
@@ -22506,8 +22507,8 @@ function ReadModeServer(Base) {
|
|
|
22506
22507
|
fetchDrive(id) {
|
|
22507
22508
|
return __privateGet(this, _readModeStorage).fetchDrive(id);
|
|
22508
22509
|
}
|
|
22509
|
-
fetchDocument(driveId, documentId,
|
|
22510
|
-
return __privateGet(this, _readModeStorage).fetchDocument(driveId, documentId,
|
|
22510
|
+
fetchDocument(driveId, documentId, documentType) {
|
|
22511
|
+
return __privateGet(this, _readModeStorage).fetchDocument(driveId, documentId, documentType);
|
|
22511
22512
|
}
|
|
22512
22513
|
async deleteReadDrive(id) {
|
|
22513
22514
|
const error = await __privateGet(this, _readModeStorage).deleteReadDrive(id);
|
|
@@ -22696,7 +22697,7 @@ class DefaultDrivesManager {
|
|
|
22696
22697
|
remoteDriveInfo.status = "ADDING";
|
|
22697
22698
|
this.defaultRemoteDrives.set(remoteDrive.url, remoteDriveInfo);
|
|
22698
22699
|
this.delegate.emit("ADDING", this.defaultRemoteDrives, remoteDriveInfo);
|
|
22699
|
-
if (
|
|
22700
|
+
if (remoteDrive.options.accessLevel === "READ" && readServer || readMode) {
|
|
22700
22701
|
await readServer.addReadDrive(remoteDrive.url, {
|
|
22701
22702
|
...remoteDrive.options,
|
|
22702
22703
|
expectedDriveInfo: driveInfo
|
|
@@ -23554,11 +23555,11 @@ class BaseDocumentDriveServer {
|
|
|
23554
23555
|
}
|
|
23555
23556
|
}
|
|
23556
23557
|
// Delegate synchronization methods to synchronizationManager
|
|
23557
|
-
getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
23558
|
-
return this.synchronizationManager.getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
23558
|
+
getSynchronizationUnits(driveId, documentId, scope, branch, documentType) {
|
|
23559
|
+
return this.synchronizationManager.getSynchronizationUnits(driveId, documentId, scope, branch, documentType);
|
|
23559
23560
|
}
|
|
23560
|
-
getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
23561
|
-
return this.synchronizationManager.getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
23561
|
+
getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType) {
|
|
23562
|
+
return this.synchronizationManager.getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType);
|
|
23562
23563
|
}
|
|
23563
23564
|
getOperationData(driveId, syncId, filter) {
|
|
23564
23565
|
return this.synchronizationManager.getOperationData(driveId, syncId, filter);
|
|
@@ -23566,10 +23567,10 @@ class BaseDocumentDriveServer {
|
|
|
23566
23567
|
getSynchronizationUnitsRevision(driveId, syncUnitsQuery) {
|
|
23567
23568
|
return this.synchronizationManager.getSynchronizationUnitsRevision(driveId, syncUnitsQuery);
|
|
23568
23569
|
}
|
|
23569
|
-
getDocumentModelModule(
|
|
23570
|
-
const documentModelModule = this.documentModelModules.find((
|
|
23570
|
+
getDocumentModelModule(documentType) {
|
|
23571
|
+
const documentModelModule = this.documentModelModules.find((module2) => module2.documentModel.id === documentType);
|
|
23571
23572
|
if (!documentModelModule) {
|
|
23572
|
-
throw new Error(`Document type ${
|
|
23573
|
+
throw new Error(`Document type ${documentType} not supported`);
|
|
23573
23574
|
}
|
|
23574
23575
|
return documentModelModule;
|
|
23575
23576
|
}
|
|
@@ -23585,7 +23586,7 @@ class BaseDocumentDriveServer {
|
|
|
23585
23586
|
icon: input.global.icon ?? null,
|
|
23586
23587
|
name: input.global.name
|
|
23587
23588
|
},
|
|
23588
|
-
local: input.local
|
|
23589
|
+
local: input.local ?? {}
|
|
23589
23590
|
}
|
|
23590
23591
|
});
|
|
23591
23592
|
document.meta = {
|
|
@@ -23688,6 +23689,18 @@ class BaseDocumentDriveServer {
|
|
|
23688
23689
|
return document;
|
|
23689
23690
|
}
|
|
23690
23691
|
}
|
|
23692
|
+
async getDriveIdBySlug(slug) {
|
|
23693
|
+
try {
|
|
23694
|
+
const drive = await this.cache.getDriveBySlug(slug);
|
|
23695
|
+
if (drive) {
|
|
23696
|
+
return drive.id;
|
|
23697
|
+
}
|
|
23698
|
+
} catch (e) {
|
|
23699
|
+
this.logger.error("Error getting drive from cache", e);
|
|
23700
|
+
}
|
|
23701
|
+
const driveStorage = await this.documentStorage.getBySlug(slug);
|
|
23702
|
+
return driveStorage.id;
|
|
23703
|
+
}
|
|
23691
23704
|
async getDocument(driveId, documentId, options) {
|
|
23692
23705
|
let cachedDocument;
|
|
23693
23706
|
try {
|
|
@@ -24894,8 +24907,8 @@ const _ListenerManager = class _ListenerManager {
|
|
|
24894
24907
|
return listenerUpdates;
|
|
24895
24908
|
}
|
|
24896
24909
|
_checkFilter(filter, syncUnit) {
|
|
24897
|
-
const { branch, documentId, scope, documentType
|
|
24898
|
-
if ((!filter.branch || filter.branch.includes(branch) || filter.branch.includes("*")) && (!filter.documentId || filter.documentId.includes(documentId) || filter.documentId.includes("*")) && (!filter.scope || filter.scope.includes(scope) || filter.scope.includes("*")) && (!filter.documentType || filter.documentType.includes(
|
|
24910
|
+
const { branch, documentId, scope, documentType } = syncUnit;
|
|
24911
|
+
if ((!filter.branch || filter.branch.includes(branch) || filter.branch.includes("*")) && (!filter.documentId || filter.documentId.includes(documentId) || filter.documentId.includes("*")) && (!filter.scope || filter.scope.includes(scope) || filter.scope.includes("*")) && (!filter.documentType || filter.documentType.includes(documentType) || filter.documentType.includes("*"))) {
|
|
24899
24912
|
return true;
|
|
24900
24913
|
}
|
|
24901
24914
|
return false;
|
|
@@ -25069,8 +25082,8 @@ class SynchronizationManager {
|
|
|
25069
25082
|
this.documentModelModules = documentModelModules;
|
|
25070
25083
|
this.eventEmitter = eventEmitter;
|
|
25071
25084
|
}
|
|
25072
|
-
async getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
25073
|
-
const synchronizationUnitsQuery = await this.getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
25085
|
+
async getSynchronizationUnits(driveId, documentId, scope, branch, documentType) {
|
|
25086
|
+
const synchronizationUnitsQuery = await this.getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType);
|
|
25074
25087
|
this.logger.verbose(`getSynchronizationUnits query: ${JSON.stringify(synchronizationUnitsQuery)}`);
|
|
25075
25088
|
return this.getSynchronizationUnitsRevision(driveId, synchronizationUnitsQuery);
|
|
25076
25089
|
}
|
|
@@ -25092,10 +25105,10 @@ class SynchronizationManager {
|
|
|
25092
25105
|
}
|
|
25093
25106
|
return synchronizationUnits;
|
|
25094
25107
|
}
|
|
25095
|
-
async getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
25108
|
+
async getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType) {
|
|
25096
25109
|
const drive = await this.getDrive(driveId);
|
|
25097
|
-
const nodes = drive.state.global.nodes.filter((node) => isFileNode(node) && (!(documentId == null ? void 0 : documentId.length) || documentId.includes(node.id) || documentId.includes("*")) && (!(
|
|
25098
|
-
if ((!documentId || documentId.includes("*") || documentId.includes("")) && (!(
|
|
25110
|
+
const nodes = drive.state.global.nodes.filter((node) => isFileNode(node) && (!(documentId == null ? void 0 : documentId.length) || documentId.includes(node.id) || documentId.includes("*")) && (!(documentType == null ? void 0 : documentType.length) || documentType.includes(node.documentType) || documentType.includes("*")));
|
|
25111
|
+
if ((!documentId || documentId.includes("*") || documentId.includes("")) && (!(documentType == null ? void 0 : documentType.length) || documentType.includes("powerhouse/document-drive") || documentType.includes("*"))) {
|
|
25099
25112
|
nodes.unshift({
|
|
25100
25113
|
id: driveId,
|
|
25101
25114
|
documentType: "powerhouse/document-drive",
|
|
@@ -25148,7 +25161,7 @@ class SynchronizationManager {
|
|
|
25148
25161
|
if (!syncUnit) {
|
|
25149
25162
|
return void 0;
|
|
25150
25163
|
}
|
|
25151
|
-
const { scope, branch, documentId, documentType
|
|
25164
|
+
const { scope, branch, documentId, documentType } = syncUnit;
|
|
25152
25165
|
const document = await this.getDocument(driveId, documentId);
|
|
25153
25166
|
const operations = document.operations[scope] ?? [];
|
|
25154
25167
|
const lastOperation = operations[operations.length - 1];
|
|
@@ -25157,7 +25170,7 @@ class SynchronizationManager {
|
|
|
25157
25170
|
scope,
|
|
25158
25171
|
branch,
|
|
25159
25172
|
documentId,
|
|
25160
|
-
documentType
|
|
25173
|
+
documentType,
|
|
25161
25174
|
lastUpdated: lastOperation.timestamp ?? document.lastModified,
|
|
25162
25175
|
revision: lastOperation.index ?? 0
|
|
25163
25176
|
};
|
|
@@ -25234,10 +25247,10 @@ class SynchronizationManager {
|
|
|
25234
25247
|
setDocumentModelModules(modules) {
|
|
25235
25248
|
this.documentModelModules = modules;
|
|
25236
25249
|
}
|
|
25237
|
-
getDocumentModelModule(
|
|
25238
|
-
const documentModelModule = this.documentModelModules.find((m) => m.documentModel.id ===
|
|
25250
|
+
getDocumentModelModule(documentType) {
|
|
25251
|
+
const documentModelModule = this.documentModelModules.find((m) => m.documentModel.id === documentType);
|
|
25239
25252
|
if (!documentModelModule) {
|
|
25240
|
-
throw new Error(`Document type ${
|
|
25253
|
+
throw new Error(`Document type ${documentType} not supported`);
|
|
25241
25254
|
}
|
|
25242
25255
|
return documentModelModule;
|
|
25243
25256
|
}
|
|
@@ -26074,11 +26087,11 @@ const nodeOptionsMap = {
|
|
|
26074
26087
|
};
|
|
26075
26088
|
const name = "@powerhousedao/connect";
|
|
26076
26089
|
const productName = "Powerhouse-Connect";
|
|
26077
|
-
const version$1 = "1.0.
|
|
26090
|
+
const version$1 = "1.0.25-dev.1";
|
|
26078
26091
|
const description = "Powerhouse Connect";
|
|
26079
26092
|
const main = "./dist/index.html";
|
|
26080
26093
|
const type = "module";
|
|
26081
|
-
const engines = { "node": ">=
|
|
26094
|
+
const engines = { "node": ">=22.0.0" };
|
|
26082
26095
|
const files$1 = ["dist", "nginx.conf", "nginx.sh", "scripts"];
|
|
26083
26096
|
const license = "AGPL-3.0-only";
|
|
26084
26097
|
const author = "acaldas@powerhouse.inc";
|
|
@@ -26234,7 +26247,7 @@ var hasRequiredLzString;
|
|
|
26234
26247
|
function requireLzString() {
|
|
26235
26248
|
if (hasRequiredLzString) return lzString.exports;
|
|
26236
26249
|
hasRequiredLzString = 1;
|
|
26237
|
-
(function(
|
|
26250
|
+
(function(module2) {
|
|
26238
26251
|
var LZString2 = function() {
|
|
26239
26252
|
var f = String.fromCharCode;
|
|
26240
26253
|
var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -26674,8 +26687,8 @@ function requireLzString() {
|
|
|
26674
26687
|
};
|
|
26675
26688
|
return LZString3;
|
|
26676
26689
|
}();
|
|
26677
|
-
if (
|
|
26678
|
-
|
|
26690
|
+
if (module2 != null) {
|
|
26691
|
+
module2.exports = LZString2;
|
|
26679
26692
|
} else if (typeof angular !== "undefined" && angular != null) {
|
|
26680
26693
|
angular.module("LZString", []).factory("LZString", function() {
|
|
26681
26694
|
return LZString2;
|
|
@@ -26737,10 +26750,10 @@ var hasRequiredLocalforage;
|
|
|
26737
26750
|
function requireLocalforage() {
|
|
26738
26751
|
if (hasRequiredLocalforage) return localforage.exports;
|
|
26739
26752
|
hasRequiredLocalforage = 1;
|
|
26740
|
-
(function(
|
|
26753
|
+
(function(module2, exports) {
|
|
26741
26754
|
(function(f) {
|
|
26742
26755
|
{
|
|
26743
|
-
|
|
26756
|
+
module2.exports = f();
|
|
26744
26757
|
}
|
|
26745
26758
|
})(function() {
|
|
26746
26759
|
return function e(t2, n, r) {
|
|
@@ -26764,7 +26777,7 @@ function requireLocalforage() {
|
|
|
26764
26777
|
var i = typeof commonjsRequire == "function" && commonjsRequire;
|
|
26765
26778
|
for (var o = 0; o < r.length; o++) s(r[o]);
|
|
26766
26779
|
return s;
|
|
26767
|
-
}({ 1: [function(_dereq_,
|
|
26780
|
+
}({ 1: [function(_dereq_, module3, exports2) {
|
|
26768
26781
|
(function(global2) {
|
|
26769
26782
|
var Mutation = global2.MutationObserver || global2.WebKitMutationObserver;
|
|
26770
26783
|
var scheduleDrain;
|
|
@@ -26819,14 +26832,14 @@ function requireLocalforage() {
|
|
|
26819
26832
|
}
|
|
26820
26833
|
draining = false;
|
|
26821
26834
|
}
|
|
26822
|
-
|
|
26835
|
+
module3.exports = immediate;
|
|
26823
26836
|
function immediate(task) {
|
|
26824
26837
|
if (queue.push(task) === 1 && !draining) {
|
|
26825
26838
|
scheduleDrain();
|
|
26826
26839
|
}
|
|
26827
26840
|
}
|
|
26828
26841
|
}).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
26829
|
-
}, {}], 2: [function(_dereq_,
|
|
26842
|
+
}, {}], 2: [function(_dereq_, module3, exports2) {
|
|
26830
26843
|
var immediate = _dereq_(1);
|
|
26831
26844
|
function INTERNAL() {
|
|
26832
26845
|
}
|
|
@@ -26834,7 +26847,7 @@ function requireLocalforage() {
|
|
|
26834
26847
|
var REJECTED = ["REJECTED"];
|
|
26835
26848
|
var FULFILLED = ["FULFILLED"];
|
|
26836
26849
|
var PENDING = ["PENDING"];
|
|
26837
|
-
|
|
26850
|
+
module3.exports = Promise2;
|
|
26838
26851
|
function Promise2(resolver) {
|
|
26839
26852
|
if (typeof resolver !== "function") {
|
|
26840
26853
|
throw new TypeError("resolver must be a function");
|
|
@@ -27050,13 +27063,13 @@ function requireLocalforage() {
|
|
|
27050
27063
|
});
|
|
27051
27064
|
}
|
|
27052
27065
|
}
|
|
27053
|
-
}, { "1": 1 }], 3: [function(_dereq_,
|
|
27066
|
+
}, { "1": 1 }], 3: [function(_dereq_, module3, exports2) {
|
|
27054
27067
|
(function(global2) {
|
|
27055
27068
|
if (typeof global2.Promise !== "function") {
|
|
27056
27069
|
global2.Promise = _dereq_(2);
|
|
27057
27070
|
}
|
|
27058
27071
|
}).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
27059
|
-
}, { "2": 2 }], 4: [function(_dereq_,
|
|
27072
|
+
}, { "2": 2 }], 4: [function(_dereq_, module3, exports2) {
|
|
27060
27073
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
27061
27074
|
return typeof obj;
|
|
27062
27075
|
} : function(obj) {
|
|
@@ -28855,7 +28868,7 @@ function requireLocalforage() {
|
|
|
28855
28868
|
return LocalForage3;
|
|
28856
28869
|
}();
|
|
28857
28870
|
var localforage_js = new LocalForage2();
|
|
28858
|
-
|
|
28871
|
+
module3.exports = localforage_js;
|
|
28859
28872
|
}, { "3": 3 }] }, {}, [4])(4);
|
|
28860
28873
|
});
|
|
28861
28874
|
})(localforage);
|
|
@@ -29743,8 +29756,8 @@ class ResourceStore extends EventEmitter {
|
|
|
29743
29756
|
}
|
|
29744
29757
|
var postProcessor = {
|
|
29745
29758
|
processors: {},
|
|
29746
|
-
addPostProcessor(
|
|
29747
|
-
this.processors[
|
|
29759
|
+
addPostProcessor(module2) {
|
|
29760
|
+
this.processors[module2.name] = module2;
|
|
29748
29761
|
},
|
|
29749
29762
|
handle(processors, value, key, options, translator) {
|
|
29750
29763
|
processors.forEach((processor) => {
|
|
@@ -31392,29 +31405,29 @@ class I18n extends EventEmitter {
|
|
|
31392
31405
|
});
|
|
31393
31406
|
return deferred;
|
|
31394
31407
|
}
|
|
31395
|
-
use(
|
|
31396
|
-
if (!
|
|
31397
|
-
if (!
|
|
31398
|
-
if (
|
|
31399
|
-
this.modules.backend =
|
|
31408
|
+
use(module2) {
|
|
31409
|
+
if (!module2) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
31410
|
+
if (!module2.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
31411
|
+
if (module2.type === "backend") {
|
|
31412
|
+
this.modules.backend = module2;
|
|
31400
31413
|
}
|
|
31401
|
-
if (
|
|
31402
|
-
this.modules.logger =
|
|
31414
|
+
if (module2.type === "logger" || module2.log && module2.warn && module2.error) {
|
|
31415
|
+
this.modules.logger = module2;
|
|
31403
31416
|
}
|
|
31404
|
-
if (
|
|
31405
|
-
this.modules.languageDetector =
|
|
31417
|
+
if (module2.type === "languageDetector") {
|
|
31418
|
+
this.modules.languageDetector = module2;
|
|
31406
31419
|
}
|
|
31407
|
-
if (
|
|
31408
|
-
this.modules.i18nFormat =
|
|
31420
|
+
if (module2.type === "i18nFormat") {
|
|
31421
|
+
this.modules.i18nFormat = module2;
|
|
31409
31422
|
}
|
|
31410
|
-
if (
|
|
31411
|
-
postProcessor.addPostProcessor(
|
|
31423
|
+
if (module2.type === "postProcessor") {
|
|
31424
|
+
postProcessor.addPostProcessor(module2);
|
|
31412
31425
|
}
|
|
31413
|
-
if (
|
|
31414
|
-
this.modules.formatter =
|
|
31426
|
+
if (module2.type === "formatter") {
|
|
31427
|
+
this.modules.formatter = module2;
|
|
31415
31428
|
}
|
|
31416
|
-
if (
|
|
31417
|
-
this.modules.external.push(
|
|
31429
|
+
if (module2.type === "3rdParty") {
|
|
31430
|
+
this.modules.external.push(module2);
|
|
31418
31431
|
}
|
|
31419
31432
|
return this;
|
|
31420
31433
|
}
|
|
@@ -31768,14 +31781,14 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31768
31781
|
} else {
|
|
31769
31782
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31770
31783
|
}
|
|
31771
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31784
|
+
const App = lazy(() => __vitePreload(() => import("./app-CiY06l6j.js").then((n) => n.bs), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31772
31785
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31773
31786
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31774
31787
|
__proto__: null,
|
|
31775
31788
|
default: AppLoader
|
|
31776
31789
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
31777
31790
|
export {
|
|
31778
|
-
|
|
31791
|
+
utils$1 as $,
|
|
31779
31792
|
AddStateExampleInputSchema as A,
|
|
31780
31793
|
SetModuleDescriptionInputSchema as B,
|
|
31781
31794
|
SetModuleNameInputSchema as C,
|
|
@@ -31805,22 +31818,22 @@ export {
|
|
|
31805
31818
|
logger$1 as _,
|
|
31806
31819
|
createReducer as a,
|
|
31807
31820
|
getNamedType as a$,
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31818
|
-
|
|
31819
|
-
|
|
31820
|
-
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
|
|
31821
|
+
Icon as a0,
|
|
31822
|
+
getDefaultExportFromCjs as a1,
|
|
31823
|
+
LOCAL as a2,
|
|
31824
|
+
commonjsGlobal as a3,
|
|
31825
|
+
SWITCHBOARD as a4,
|
|
31826
|
+
PUBLIC as a5,
|
|
31827
|
+
locationInfoByLocation as a6,
|
|
31828
|
+
sharingTypeOptions as a7,
|
|
31829
|
+
objectType as a8,
|
|
31830
|
+
stringType as a9,
|
|
31831
|
+
deleteNode as aA,
|
|
31832
|
+
updateNode as aB,
|
|
31833
|
+
FILE as aC,
|
|
31834
|
+
moveNode as aD,
|
|
31835
|
+
generateNodesCopy as aE,
|
|
31836
|
+
copyNode as aF,
|
|
31824
31837
|
setDriveName as aG,
|
|
31825
31838
|
setAvailableOffline as aH,
|
|
31826
31839
|
setSharingType as aI,
|
|
@@ -31842,32 +31855,32 @@ export {
|
|
|
31842
31855
|
inspect as aY,
|
|
31843
31856
|
GraphQLError as aZ,
|
|
31844
31857
|
invariant as a_,
|
|
31845
|
-
|
|
31846
|
-
|
|
31847
|
-
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31864
|
-
|
|
31865
|
-
|
|
31866
|
-
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
|
|
31870
|
-
|
|
31858
|
+
recordType as aa,
|
|
31859
|
+
capitalCase as ab,
|
|
31860
|
+
CLOUD as ac,
|
|
31861
|
+
createZip as ad,
|
|
31862
|
+
LZString as ae,
|
|
31863
|
+
buildSignedOperation as af,
|
|
31864
|
+
getDefaults as ag,
|
|
31865
|
+
getI18n as ah,
|
|
31866
|
+
connectConfig as ai,
|
|
31867
|
+
hashDocumentStateForScope as aj,
|
|
31868
|
+
getAugmentedNamespace as ak,
|
|
31869
|
+
childLogger as al,
|
|
31870
|
+
process as am,
|
|
31871
|
+
setErrorHandler as an,
|
|
31872
|
+
module as ao,
|
|
31873
|
+
createBrowserStorage as ap,
|
|
31874
|
+
createBrowserDocumentDriveServer as aq,
|
|
31875
|
+
generateId as ar,
|
|
31876
|
+
reducer as as,
|
|
31877
|
+
isDocumentDrive as at,
|
|
31878
|
+
generateAddNodeAction as au,
|
|
31879
|
+
isFileNode as av,
|
|
31880
|
+
uploadDocumentOperations as aw,
|
|
31881
|
+
updateFile as ax,
|
|
31882
|
+
addFolder as ay,
|
|
31883
|
+
isFolderNode as az,
|
|
31871
31884
|
SetStateSchemaInputSchema as b,
|
|
31872
31885
|
DUPLICATE as b$,
|
|
31873
31886
|
isInputObjectType as b0,
|
|
@@ -31969,4 +31982,4 @@ export {
|
|
|
31969
31982
|
ReorderModulesInputSchema as y,
|
|
31970
31983
|
DeleteModuleInputSchema as z
|
|
31971
31984
|
};
|
|
31972
|
-
//# sourceMappingURL=app-loader-
|
|
31985
|
+
//# sourceMappingURL=app-loader-B6MX3hYl.js.map
|