@powerhousedao/connect 1.0.25-dev.0 → 1.0.25-dev.2
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-BUYipU-h.js → app-B7uYdlfd.js} +8834 -3552
- package/dist/assets/app-B7uYdlfd.js.map +1 -0
- package/dist/assets/{app-DWlDE8AF.css → app-CPzbUTuB.css} +247 -160
- package/dist/assets/{app-loader-NDVZu4bS.css → app-loader-Kh2XKQY5.css} +258 -96
- package/dist/assets/{app-loader-BnRwgIP_.js → app-loader-qaI-uGFh.js} +308 -311
- package/dist/assets/app-loader-qaI-uGFh.js.map +1 -0
- package/dist/assets/{browser-DLDtNgow.js → browser-C0LXZIPE.js} +7 -7
- package/dist/assets/{browser-DLDtNgow.js.map → browser-C0LXZIPE.js.map} +1 -1
- package/dist/assets/{ccip-LS87QwZy.js → ccip-CSDFGsNx.js} +9 -6
- package/dist/assets/ccip-CSDFGsNx.js.map +1 -0
- package/dist/assets/{content-C_bg7acW.js → content-CaD3hxJq.js} +11 -18
- package/dist/assets/{content-C_bg7acW.js.map → content-CaD3hxJq.js.map} +1 -1
- package/dist/assets/{index-CLG940Kn.js → index-BrN9EVgz.js} +3012 -2670
- package/dist/assets/index-BrN9EVgz.js.map +1 -0
- package/dist/assets/{index-DzfUrip3.js → index-CesscHbu.js} +5 -5
- package/dist/assets/{index-DzfUrip3.js.map → index-CesscHbu.js.map} +1 -1
- package/dist/assets/{index-CNFyJkHA.js → index-CxaBKway.js} +4 -4
- package/dist/assets/{index-CNFyJkHA.js.map → index-CxaBKway.js.map} +1 -1
- package/dist/assets/{index-N3PIlRbq.js → index-JDv5z33x.js} +4 -4
- package/dist/assets/{index-N3PIlRbq.js.map → index-JDv5z33x.js.map} +1 -1
- package/dist/assets/{main.DbDmc7wl.js → main.CiASRzrk.js} +13 -3
- package/dist/assets/main.CiASRzrk.js.map +1 -0
- package/dist/assets/{reactor-analytics-DOjP79na.js → reactor-analytics-C-E8Sutq.js} +6 -6
- package/dist/assets/{reactor-analytics-DOjP79na.js.map → reactor-analytics-C-E8Sutq.js.map} +1 -1
- package/dist/assets/{router-GU7qCi_d.js → router-DCt2w2pb.js} +8 -8
- package/dist/assets/{router-GU7qCi_d.js.map → router-DCt2w2pb.js.map} +1 -1
- package/dist/assets/{style-CdxGKc2g.css → style-DCJSX6pm.css} +95 -39
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +18 -19
- package/dist/assets/app-BUYipU-h.js.map +0 -1
- package/dist/assets/app-loader-BnRwgIP_.js.map +0 -1
- package/dist/assets/ccip-LS87QwZy.js.map +0 -1
- package/dist/assets/index-CLG940Kn.js.map +0 -1
- package/dist/assets/main.DbDmc7wl.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-B7uYdlfd.js","assets/main.CiASRzrk.js","assets/app-CPzbUTuB.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.CiASRzrk.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)) {
|
|
@@ -1930,13 +1930,14 @@ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
|
|
|
1930
1930
|
const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
1931
1931
|
const dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
1932
1932
|
function timeRegexSource(args) {
|
|
1933
|
-
let
|
|
1933
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
1934
1934
|
if (args.precision) {
|
|
1935
|
-
|
|
1935
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
1936
1936
|
} else if (args.precision == null) {
|
|
1937
|
-
|
|
1937
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
1938
1938
|
}
|
|
1939
|
-
|
|
1939
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
1940
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
1940
1941
|
}
|
|
1941
1942
|
function timeRegex(args) {
|
|
1942
1943
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
@@ -6703,10 +6704,20 @@ function UndoActionSchema() {
|
|
|
6703
6704
|
scope: OperationScopeSchema$1()
|
|
6704
6705
|
});
|
|
6705
6706
|
}
|
|
6707
|
+
const setName = (name2) => createAction("SET_NAME", name2, void 0, SetNameActionInputSchema, void 0);
|
|
6706
6708
|
const undo = (skip = 1, scope = "global") => createAction("UNDO", skip, void 0, UndoActionInputSchema, scope);
|
|
6707
6709
|
const redo = (count = 1, scope = "global") => createAction("REDO", count, void 0, RedoActionInputSchema, scope);
|
|
6710
|
+
const prune = (start, end, scope = "global") => createAction("PRUNE", { start, end }, void 0, PruneActionInputSchema, scope);
|
|
6708
6711
|
const loadState = (state, operations) => createAction("LOAD_STATE", { state, operations }, void 0, LoadStateActionInputSchema);
|
|
6709
6712
|
const noop$1 = (scope = "global") => createAction("NOOP", void 0, void 0, void 0, scope);
|
|
6713
|
+
const actions$1 = {
|
|
6714
|
+
setName,
|
|
6715
|
+
undo,
|
|
6716
|
+
redo,
|
|
6717
|
+
prune,
|
|
6718
|
+
loadState,
|
|
6719
|
+
noop: noop$1
|
|
6720
|
+
};
|
|
6710
6721
|
function setNameOperation(document, name2) {
|
|
6711
6722
|
return { ...document, name: name2 };
|
|
6712
6723
|
}
|
|
@@ -6977,7 +6988,6 @@ function processSkipOperation(document, action, customReducer, skipValue, reuseO
|
|
|
6977
6988
|
scopeState = resultingStateParser(lastRemainingOperation.resultingState);
|
|
6978
6989
|
} else {
|
|
6979
6990
|
const { state } = replayOperations(document.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
6980
|
-
reuseHash: true,
|
|
6981
6991
|
reuseOperationResultingState,
|
|
6982
6992
|
operationResultingStateParser: resultingStateParser
|
|
6983
6993
|
});
|
|
@@ -7004,7 +7014,6 @@ function processUndoOperation(document, scope, customReducer, reuseOperationResu
|
|
|
7004
7014
|
const clearedOperations = [...documentOperations[scope]];
|
|
7005
7015
|
const diff = diffOperations(garbageCollect(sortedOperations), clearedOperations);
|
|
7006
7016
|
const doc = replayOperations(document.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
7007
|
-
reuseHash: true,
|
|
7008
7017
|
reuseOperationResultingState,
|
|
7009
7018
|
operationResultingStateParser: resultingStateParser
|
|
7010
7019
|
});
|
|
@@ -7153,7 +7162,7 @@ function createReducer(stateReducer2, documentReducer = baseReducer) {
|
|
|
7153
7162
|
};
|
|
7154
7163
|
return reducer2;
|
|
7155
7164
|
}
|
|
7156
|
-
function baseCreateExtendedState(initialState,
|
|
7165
|
+
function baseCreateExtendedState(initialState, createState) {
|
|
7157
7166
|
const id = (initialState == null ? void 0 : initialState.id) ?? generateUUID();
|
|
7158
7167
|
return {
|
|
7159
7168
|
name: "",
|
|
@@ -7168,14 +7177,14 @@ function baseCreateExtendedState(initialState, createState2) {
|
|
|
7168
7177
|
...initialState,
|
|
7169
7178
|
id,
|
|
7170
7179
|
slug: (initialState == null ? void 0 : initialState.slug) ?? id,
|
|
7171
|
-
state: (
|
|
7180
|
+
state: (createState == null ? void 0 : createState(initialState == null ? void 0 : initialState.state)) ?? ((initialState == null ? void 0 : initialState.state) ?? {
|
|
7172
7181
|
global: {},
|
|
7173
7182
|
local: {}
|
|
7174
7183
|
})
|
|
7175
7184
|
};
|
|
7176
7185
|
}
|
|
7177
|
-
function baseCreateDocument(initialState,
|
|
7178
|
-
const state = baseCreateExtendedState(initialState,
|
|
7186
|
+
function baseCreateDocument(initialState, createState) {
|
|
7187
|
+
const state = baseCreateExtendedState(initialState, createState);
|
|
7179
7188
|
return {
|
|
7180
7189
|
...state,
|
|
7181
7190
|
initialState: state,
|
|
@@ -7759,9 +7768,9 @@ var hasRequiredJszip_min;
|
|
|
7759
7768
|
function requireJszip_min() {
|
|
7760
7769
|
if (hasRequiredJszip_min) return jszip_min.exports;
|
|
7761
7770
|
hasRequiredJszip_min = 1;
|
|
7762
|
-
(function(
|
|
7771
|
+
(function(module2, exports) {
|
|
7763
7772
|
!function(e) {
|
|
7764
|
-
|
|
7773
|
+
module2.exports = e();
|
|
7765
7774
|
}(function() {
|
|
7766
7775
|
return function s(a, o, h) {
|
|
7767
7776
|
function u(r, e2) {
|
|
@@ -10529,13 +10538,13 @@ function validateOperations(operations) {
|
|
|
10529
10538
|
}
|
|
10530
10539
|
function createZip(document) {
|
|
10531
10540
|
const zip = new JSZip();
|
|
10532
|
-
const { id, slug, name: name2, revision, documentType
|
|
10541
|
+
const { id, slug, name: name2, revision, documentType, created, lastModified } = document;
|
|
10533
10542
|
const header = {
|
|
10534
10543
|
id,
|
|
10535
10544
|
slug,
|
|
10536
10545
|
name: name2,
|
|
10537
10546
|
revision,
|
|
10538
|
-
documentType
|
|
10547
|
+
documentType,
|
|
10539
10548
|
created,
|
|
10540
10549
|
lastModified
|
|
10541
10550
|
};
|
|
@@ -10566,8 +10575,8 @@ async function baseSaveToFile(document, path, extension, name2) {
|
|
|
10566
10575
|
streamFiles: true
|
|
10567
10576
|
});
|
|
10568
10577
|
const fileName = name2 ?? document.name;
|
|
10569
|
-
const
|
|
10570
|
-
return writeFile(path, fileName.endsWith(
|
|
10578
|
+
const fileExtension = `.${extension}.zip`;
|
|
10579
|
+
return writeFile(path, fileName.endsWith(fileExtension) ? fileName : `${fileName}${fileExtension}`);
|
|
10571
10580
|
}
|
|
10572
10581
|
async function baseSaveToFileHandle(document, input) {
|
|
10573
10582
|
const zip = createZip(document);
|
|
@@ -10883,39 +10892,6 @@ function UpdateNodeInputSchema() {
|
|
|
10883
10892
|
parentFolder: z.string().nullish()
|
|
10884
10893
|
});
|
|
10885
10894
|
}
|
|
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
10895
|
const reducer$2 = {
|
|
10920
10896
|
setDriveNameOperation(state, action, dispatch) {
|
|
10921
10897
|
state.name = action.input.name;
|
|
@@ -11002,6 +10978,13 @@ class SynchronizationUnitNotFoundError extends Error {
|
|
|
11002
10978
|
}
|
|
11003
10979
|
const isValidDocumentId = (id) => id && id.length > 0 && /^[a-zA-Z0-9_-]+$/.test(id);
|
|
11004
10980
|
const isValidSlug = (slug) => slug && slug.length > 0 && /^[a-zA-Z0-9_-]+$/.test(slug);
|
|
10981
|
+
const addFile = (input) => createAction("ADD_FILE", { ...input }, void 0, AddFileInputSchema, "global");
|
|
10982
|
+
const addFolder = (input) => createAction("ADD_FOLDER", { ...input }, void 0, AddFolderInputSchema, "global");
|
|
10983
|
+
const deleteNode = (input) => createAction("DELETE_NODE", { ...input }, void 0, DeleteNodeInputSchema, "global");
|
|
10984
|
+
const updateFile = (input) => createAction("UPDATE_FILE", { ...input }, void 0, UpdateFileInputSchema, "global");
|
|
10985
|
+
const updateNode = (input) => createAction("UPDATE_NODE", { ...input }, void 0, UpdateNodeInputSchema, "global");
|
|
10986
|
+
const copyNode = (input) => createAction("COPY_NODE", { ...input }, void 0, CopyNodeInputSchema, "global");
|
|
10987
|
+
const moveNode = (input) => createAction("MOVE_NODE", { ...input }, void 0, MoveNodeInputSchema, "global");
|
|
11005
10988
|
function isFileNode(node) {
|
|
11006
10989
|
return node.kind === "file";
|
|
11007
10990
|
}
|
|
@@ -11382,9 +11365,6 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
11382
11365
|
}
|
|
11383
11366
|
};
|
|
11384
11367
|
const reducer = createReducer(stateReducer);
|
|
11385
|
-
const fileExtension = "phdd";
|
|
11386
|
-
const documentType = "powerhouse/document-drive";
|
|
11387
|
-
const documentModelName = "DocumentDrive";
|
|
11388
11368
|
const initialGlobalState = {
|
|
11389
11369
|
name: "",
|
|
11390
11370
|
nodes: [],
|
|
@@ -11396,48 +11376,64 @@ const initialLocalState = {
|
|
|
11396
11376
|
sharingType: "private",
|
|
11397
11377
|
availableOffline: false
|
|
11398
11378
|
};
|
|
11399
|
-
const
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
}
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11379
|
+
const utils$1 = {
|
|
11380
|
+
fileExtension: "phdd",
|
|
11381
|
+
createState(state) {
|
|
11382
|
+
return {
|
|
11383
|
+
global: { ...initialGlobalState, ...state == null ? void 0 : state.global },
|
|
11384
|
+
local: { ...initialLocalState, ...state == null ? void 0 : state.local }
|
|
11385
|
+
};
|
|
11386
|
+
},
|
|
11387
|
+
createExtendedState(extendedState) {
|
|
11388
|
+
return baseCreateExtendedState({ ...extendedState, documentType: "powerhouse/document-drive" }, utils$1.createState);
|
|
11389
|
+
},
|
|
11390
|
+
createDocument(state) {
|
|
11391
|
+
return baseCreateDocument(utils$1.createExtendedState(state), utils$1.createState);
|
|
11392
|
+
},
|
|
11393
|
+
saveToFile(document, path, name2) {
|
|
11394
|
+
return baseSaveToFile(document, path, "phdd", name2);
|
|
11395
|
+
},
|
|
11396
|
+
saveToFileHandle(document, input) {
|
|
11397
|
+
return baseSaveToFileHandle(document, input);
|
|
11398
|
+
},
|
|
11399
|
+
loadFromFile(path) {
|
|
11400
|
+
return baseLoadFromFile(path, reducer);
|
|
11401
|
+
},
|
|
11402
|
+
loadFromInput(input) {
|
|
11403
|
+
return baseLoadFromInput(input, reducer);
|
|
11404
|
+
}
|
|
11422
11405
|
};
|
|
11423
|
-
const
|
|
11406
|
+
const createDocument = utils$1.createDocument;
|
|
11407
|
+
const setDriveName = (input) => createAction("SET_DRIVE_NAME", { ...input }, void 0, SetDriveNameInputSchema, "global");
|
|
11408
|
+
const setDriveIcon = (input) => createAction("SET_DRIVE_ICON", { ...input }, void 0, SetDriveIconInputSchema, "global");
|
|
11409
|
+
const setSharingType = (input) => createAction("SET_SHARING_TYPE", { ...input }, void 0, SetSharingTypeInputSchema, "local");
|
|
11410
|
+
const setAvailableOffline = (input) => createAction("SET_AVAILABLE_OFFLINE", { ...input }, void 0, SetAvailableOfflineInputSchema, "local");
|
|
11411
|
+
const addListener = (input) => createAction("ADD_LISTENER", { ...input }, void 0, AddListenerInputSchema, "local");
|
|
11412
|
+
const removeListener = (input) => createAction("REMOVE_LISTENER", { ...input }, void 0, RemoveListenerInputSchema, "local");
|
|
11413
|
+
const addTrigger = (input) => createAction("ADD_TRIGGER", { ...input }, void 0, AddTriggerInputSchema, "local");
|
|
11414
|
+
const removeTrigger = (input) => createAction("REMOVE_TRIGGER", { ...input }, void 0, RemoveTriggerInputSchema, "local");
|
|
11415
|
+
const DocumentDriveActions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11424
11416
|
__proto__: null,
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11417
|
+
addFile,
|
|
11418
|
+
addFolder,
|
|
11419
|
+
addListener,
|
|
11420
|
+
addTrigger,
|
|
11421
|
+
copyNode,
|
|
11422
|
+
deleteNode,
|
|
11423
|
+
moveNode,
|
|
11424
|
+
removeListener,
|
|
11425
|
+
removeTrigger,
|
|
11426
|
+
setAvailableOffline,
|
|
11427
|
+
setDriveIcon,
|
|
11428
|
+
setDriveName,
|
|
11429
|
+
setSharingType,
|
|
11430
|
+
updateFile,
|
|
11431
|
+
updateNode
|
|
11436
11432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11437
|
-
const
|
|
11438
|
-
id:
|
|
11439
|
-
name:
|
|
11440
|
-
extension:
|
|
11433
|
+
const documentModel = {
|
|
11434
|
+
id: "powerhouse/document-drive",
|
|
11435
|
+
name: "DocumentDrive",
|
|
11436
|
+
extension: "phdd",
|
|
11441
11437
|
description: "",
|
|
11442
11438
|
author: {
|
|
11443
11439
|
name: "Powerhouse Inc",
|
|
@@ -11449,8 +11445,8 @@ const documentModelState = {
|
|
|
11449
11445
|
changeLog: [],
|
|
11450
11446
|
state: {
|
|
11451
11447
|
global: {
|
|
11452
|
-
schema: "
|
|
11453
|
-
initialValue: '"{\\"
|
|
11448
|
+
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}",
|
|
11449
|
+
initialValue: '"{\\"name\\":\\"\\",\\"nodes\\":[],\\"icon\\":null}"',
|
|
11454
11450
|
examples: []
|
|
11455
11451
|
},
|
|
11456
11452
|
local: {
|
|
@@ -11469,7 +11465,7 @@ const documentModelState = {
|
|
|
11469
11465
|
id: "7xiTdxonc9yEASR8sfV/KnbSV10=",
|
|
11470
11466
|
name: "ADD_FILE",
|
|
11471
11467
|
description: "",
|
|
11472
|
-
schema: "input AddFileInput {\n id: ID!\n name: String!\n documentType: String!\n parentFolder: ID\n synchronizationUnits: [SynchronizationUnit!]!\n}",
|
|
11468
|
+
schema: "input AddFileInput {\n id: ID!\n name: String!\n documentType: String!\n document: Unknown\n parentFolder: ID\n synchronizationUnits: [SynchronizationUnit!]!\n}",
|
|
11473
11469
|
template: "",
|
|
11474
11470
|
reducer: "",
|
|
11475
11471
|
errors: [],
|
|
@@ -11643,12 +11639,15 @@ const documentModelState = {
|
|
|
11643
11639
|
}
|
|
11644
11640
|
]
|
|
11645
11641
|
};
|
|
11646
|
-
const
|
|
11642
|
+
const utils = { ...utils$1, ...customUtils };
|
|
11643
|
+
const actions = { ...actions$1, ...DocumentDriveActions };
|
|
11644
|
+
const module = {
|
|
11647
11645
|
reducer,
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11646
|
+
actions,
|
|
11647
|
+
utils,
|
|
11648
|
+
documentModel
|
|
11651
11649
|
};
|
|
11650
|
+
const driveDocumentModelModule = module;
|
|
11652
11651
|
const LogLevels = {
|
|
11653
11652
|
verbose: 1,
|
|
11654
11653
|
debug: 2,
|
|
@@ -11766,6 +11765,7 @@ const childLogger = (tags) => {
|
|
|
11766
11765
|
logger2.errorHandler = errorHandler;
|
|
11767
11766
|
return logger2;
|
|
11768
11767
|
};
|
|
11768
|
+
const driveDocumentType = documentModel.id;
|
|
11769
11769
|
var RunAsap;
|
|
11770
11770
|
(function(RunAsap2) {
|
|
11771
11771
|
RunAsap2.useMessageChannel = (() => {
|
|
@@ -11887,7 +11887,7 @@ var RunAsap;
|
|
|
11887
11887
|
const runAsap = RunAsap.runAsap;
|
|
11888
11888
|
const runAsapAsync = RunAsap.runAsapAsync;
|
|
11889
11889
|
function isDocumentDrive(document) {
|
|
11890
|
-
return document.documentType ===
|
|
11890
|
+
return document.documentType === driveDocumentType;
|
|
11891
11891
|
}
|
|
11892
11892
|
function mergeOperations(currentOperations, newOperations) {
|
|
11893
11893
|
const minIndexByScope = Object.keys(currentOperations).reduce((acc, curr) => {
|
|
@@ -15111,10 +15111,7 @@ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
|
|
15111
15111
|
}
|
|
15112
15112
|
}
|
|
15113
15113
|
} else {
|
|
15114
|
-
node =
|
|
15115
|
-
{},
|
|
15116
|
-
Object.getOwnPropertyDescriptors(node)
|
|
15117
|
-
);
|
|
15114
|
+
node = { ...node };
|
|
15118
15115
|
for (const [editKey, editValue] of edits) {
|
|
15119
15116
|
node[editKey] = editValue;
|
|
15120
15117
|
}
|
|
@@ -20454,7 +20451,7 @@ function VariablesInAllowedPositionRule(context) {
|
|
|
20454
20451
|
},
|
|
20455
20452
|
leave(operation) {
|
|
20456
20453
|
const usages = context.getRecursiveVariableUsages(operation);
|
|
20457
|
-
for (const { node, type: type2, defaultValue } of usages) {
|
|
20454
|
+
for (const { node, type: type2, defaultValue, parentType } of usages) {
|
|
20458
20455
|
const varName = node.name.value;
|
|
20459
20456
|
const varDef = varDefMap[varName];
|
|
20460
20457
|
if (varDef && type2) {
|
|
@@ -20478,6 +20475,16 @@ function VariablesInAllowedPositionRule(context) {
|
|
|
20478
20475
|
)
|
|
20479
20476
|
);
|
|
20480
20477
|
}
|
|
20478
|
+
if (isInputObjectType(parentType) && parentType.isOneOf && isNullableType(varType)) {
|
|
20479
|
+
context.reportError(
|
|
20480
|
+
new GraphQLError(
|
|
20481
|
+
`Variable "$${varName}" is of type "${varType}" but must be non-nullable to be used for OneOf Input Object "${parentType}".`,
|
|
20482
|
+
{
|
|
20483
|
+
nodes: [varDef, node]
|
|
20484
|
+
}
|
|
20485
|
+
)
|
|
20486
|
+
);
|
|
20487
|
+
}
|
|
20481
20488
|
}
|
|
20482
20489
|
}
|
|
20483
20490
|
}
|
|
@@ -20661,7 +20668,8 @@ class ValidationContext extends ASTValidationContext {
|
|
|
20661
20668
|
newUsages.push({
|
|
20662
20669
|
node: variable,
|
|
20663
20670
|
type: typeInfo.getInputType(),
|
|
20664
|
-
defaultValue: typeInfo.getDefaultValue()
|
|
20671
|
+
defaultValue: typeInfo.getDefaultValue(),
|
|
20672
|
+
parentType: typeInfo.getParentInputType()
|
|
20665
20673
|
});
|
|
20666
20674
|
}
|
|
20667
20675
|
})
|
|
@@ -20759,22 +20767,6 @@ function assertValidSDL(documentAST) {
|
|
|
20759
20767
|
throw new Error(errors.map((error) => error.message).join("\n\n"));
|
|
20760
20768
|
}
|
|
20761
20769
|
}
|
|
20762
|
-
function assertValidSDLExtension(documentAST, schema) {
|
|
20763
|
-
const errors = validateSDL(documentAST, schema);
|
|
20764
|
-
if (errors.length !== 0) {
|
|
20765
|
-
throw new Error(errors.map((error) => error.message).join("\n\n"));
|
|
20766
|
-
}
|
|
20767
|
-
}
|
|
20768
|
-
function extendSchema(schema, documentAST, options) {
|
|
20769
|
-
assertSchema(schema);
|
|
20770
|
-
documentAST != null && documentAST.kind === Kind.DOCUMENT || devAssert(false, "Must provide valid Document AST.");
|
|
20771
|
-
{
|
|
20772
|
-
assertValidSDLExtension(documentAST, schema);
|
|
20773
|
-
}
|
|
20774
|
-
const schemaConfig = schema.toConfig();
|
|
20775
|
-
const extendedConfig = extendSchemaImpl(schemaConfig, documentAST, options);
|
|
20776
|
-
return schemaConfig === extendedConfig ? schema : new GraphQLSchema(extendedConfig);
|
|
20777
|
-
}
|
|
20778
20770
|
function extendSchemaImpl(schemaConfig, documentAST, options) {
|
|
20779
20771
|
var _schemaDef, _schemaDef$descriptio, _schemaDef2, _options$assumeValid;
|
|
20780
20772
|
const typeDefs = [];
|
|
@@ -21356,7 +21348,7 @@ var hasRequiredBrowserPonyfill;
|
|
|
21356
21348
|
function requireBrowserPonyfill() {
|
|
21357
21349
|
if (hasRequiredBrowserPonyfill) return browserPonyfill.exports;
|
|
21358
21350
|
hasRequiredBrowserPonyfill = 1;
|
|
21359
|
-
(function(
|
|
21351
|
+
(function(module2, exports) {
|
|
21360
21352
|
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
|
|
21361
21353
|
var __globalThis__ = function() {
|
|
21362
21354
|
function F() {
|
|
@@ -21906,7 +21898,7 @@ function requireBrowserPonyfill() {
|
|
|
21906
21898
|
exports.Headers = ctx.Headers;
|
|
21907
21899
|
exports.Request = ctx.Request;
|
|
21908
21900
|
exports.Response = ctx.Response;
|
|
21909
|
-
|
|
21901
|
+
module2.exports = exports;
|
|
21910
21902
|
})(browserPonyfill, browserPonyfill.exports);
|
|
21911
21903
|
return browserPonyfill.exports;
|
|
21912
21904
|
}
|
|
@@ -22232,9 +22224,9 @@ function getFields(type2, prefix) {
|
|
|
22232
22224
|
}
|
|
22233
22225
|
return "";
|
|
22234
22226
|
}
|
|
22235
|
-
function generateDocumentStateQueryFields(
|
|
22236
|
-
const name2 = pascalCase(
|
|
22237
|
-
const spec =
|
|
22227
|
+
function generateDocumentStateQueryFields(documentModelState, prefix, options) {
|
|
22228
|
+
const name2 = pascalCase(documentModelState.name);
|
|
22229
|
+
const spec = documentModelState.specifications.at(-1);
|
|
22238
22230
|
if (!spec) {
|
|
22239
22231
|
throw new Error("No document model specification found");
|
|
22240
22232
|
}
|
|
@@ -22280,9 +22272,9 @@ async function requestPublicDrive(url) {
|
|
|
22280
22272
|
return drive;
|
|
22281
22273
|
}
|
|
22282
22274
|
async function fetchDocument(url, documentId, documentModelModule) {
|
|
22283
|
-
const { documentModel, utils } = documentModelModule;
|
|
22284
|
-
const name2 = pascalCase(
|
|
22285
|
-
const stateFields = generateDocumentStateQueryFields(
|
|
22275
|
+
const { documentModel: documentModel2, utils: utils2 } = documentModelModule;
|
|
22276
|
+
const name2 = pascalCase(documentModel2.name);
|
|
22277
|
+
const stateFields = generateDocumentStateQueryFields(documentModel2, name2);
|
|
22286
22278
|
const result = await requestGraphql(url, gql`
|
|
22287
22279
|
query ($id: String!) {
|
|
22288
22280
|
document(id: $id) {
|
|
@@ -22330,7 +22322,7 @@ async function fetchDocument(url, documentId, documentModelModule) {
|
|
|
22330
22322
|
const document = result.document ? {
|
|
22331
22323
|
...result.document,
|
|
22332
22324
|
revision: {
|
|
22333
|
-
global: result.document.revision
|
|
22325
|
+
global: result.document.revision,
|
|
22334
22326
|
local: 0
|
|
22335
22327
|
},
|
|
22336
22328
|
state: result.document.state,
|
|
@@ -22345,12 +22337,12 @@ async function fetchDocument(url, documentId, documentModelModule) {
|
|
|
22345
22337
|
},
|
|
22346
22338
|
attachments: {},
|
|
22347
22339
|
initialState: {
|
|
22348
|
-
...
|
|
22340
|
+
...utils2.createExtendedState({
|
|
22349
22341
|
// TODO: getDocument should return all the initial state fields
|
|
22350
22342
|
created: result.document.created,
|
|
22351
22343
|
lastModified: result.document.created,
|
|
22352
|
-
state:
|
|
22353
|
-
global: result.document.initialState
|
|
22344
|
+
state: utils2.createState({
|
|
22345
|
+
global: result.document.initialState
|
|
22354
22346
|
})
|
|
22355
22347
|
}),
|
|
22356
22348
|
id: result.document.id,
|
|
@@ -22375,7 +22367,7 @@ class ReadModeService {
|
|
|
22375
22367
|
if (!drive) {
|
|
22376
22368
|
return new ReadDriveNotFoundError(id);
|
|
22377
22369
|
}
|
|
22378
|
-
const document = await this.fetchDocument(id, id,
|
|
22370
|
+
const document = await this.fetchDocument(id, id, driveDocumentType);
|
|
22379
22371
|
if (document instanceof Error) {
|
|
22380
22372
|
return document;
|
|
22381
22373
|
}
|
|
@@ -22383,16 +22375,16 @@ class ReadModeService {
|
|
|
22383
22375
|
drive.drive = result;
|
|
22384
22376
|
return result;
|
|
22385
22377
|
}
|
|
22386
|
-
async fetchDocument(driveId, documentId,
|
|
22378
|
+
async fetchDocument(driveId, documentId, documentType) {
|
|
22387
22379
|
const drive = __privateGet(this, _drives).get(driveId);
|
|
22388
22380
|
if (!drive) {
|
|
22389
22381
|
return new ReadDriveNotFoundError(driveId);
|
|
22390
22382
|
}
|
|
22391
22383
|
let documentModelModule = void 0;
|
|
22392
22384
|
try {
|
|
22393
|
-
documentModelModule = __privateGet(this, _getDocumentModelModule).call(this,
|
|
22385
|
+
documentModelModule = __privateGet(this, _getDocumentModelModule).call(this, documentType);
|
|
22394
22386
|
} catch (error) {
|
|
22395
|
-
return new DocumentModelNotFoundError(
|
|
22387
|
+
return new DocumentModelNotFoundError(documentType, error);
|
|
22396
22388
|
}
|
|
22397
22389
|
const { url } = drive.context;
|
|
22398
22390
|
const { errors, document } = await fetchDocument(url, documentId, documentModelModule);
|
|
@@ -22506,8 +22498,8 @@ function ReadModeServer(Base) {
|
|
|
22506
22498
|
fetchDrive(id) {
|
|
22507
22499
|
return __privateGet(this, _readModeStorage).fetchDrive(id);
|
|
22508
22500
|
}
|
|
22509
|
-
fetchDocument(driveId, documentId,
|
|
22510
|
-
return __privateGet(this, _readModeStorage).fetchDocument(driveId, documentId,
|
|
22501
|
+
fetchDocument(driveId, documentId, documentType) {
|
|
22502
|
+
return __privateGet(this, _readModeStorage).fetchDocument(driveId, documentId, documentType);
|
|
22511
22503
|
}
|
|
22512
22504
|
async deleteReadDrive(id) {
|
|
22513
22505
|
const error = await __privateGet(this, _readModeStorage).deleteReadDrive(id);
|
|
@@ -22696,7 +22688,7 @@ class DefaultDrivesManager {
|
|
|
22696
22688
|
remoteDriveInfo.status = "ADDING";
|
|
22697
22689
|
this.defaultRemoteDrives.set(remoteDrive.url, remoteDriveInfo);
|
|
22698
22690
|
this.delegate.emit("ADDING", this.defaultRemoteDrives, remoteDriveInfo);
|
|
22699
|
-
if (
|
|
22691
|
+
if (remoteDrive.options.accessLevel === "READ" && readServer || readMode) {
|
|
22700
22692
|
await readServer.addReadDrive(remoteDrive.url, {
|
|
22701
22693
|
...remoteDrive.options,
|
|
22702
22694
|
expectedDriveInfo: driveInfo
|
|
@@ -23554,11 +23546,11 @@ class BaseDocumentDriveServer {
|
|
|
23554
23546
|
}
|
|
23555
23547
|
}
|
|
23556
23548
|
// Delegate synchronization methods to synchronizationManager
|
|
23557
|
-
getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
23558
|
-
return this.synchronizationManager.getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
23549
|
+
getSynchronizationUnits(driveId, documentId, scope, branch, documentType) {
|
|
23550
|
+
return this.synchronizationManager.getSynchronizationUnits(driveId, documentId, scope, branch, documentType);
|
|
23559
23551
|
}
|
|
23560
|
-
getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
23561
|
-
return this.synchronizationManager.getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
23552
|
+
getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType) {
|
|
23553
|
+
return this.synchronizationManager.getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType);
|
|
23562
23554
|
}
|
|
23563
23555
|
getOperationData(driveId, syncId, filter) {
|
|
23564
23556
|
return this.synchronizationManager.getOperationData(driveId, syncId, filter);
|
|
@@ -23566,10 +23558,10 @@ class BaseDocumentDriveServer {
|
|
|
23566
23558
|
getSynchronizationUnitsRevision(driveId, syncUnitsQuery) {
|
|
23567
23559
|
return this.synchronizationManager.getSynchronizationUnitsRevision(driveId, syncUnitsQuery);
|
|
23568
23560
|
}
|
|
23569
|
-
getDocumentModelModule(
|
|
23570
|
-
const documentModelModule = this.documentModelModules.find((
|
|
23561
|
+
getDocumentModelModule(documentType) {
|
|
23562
|
+
const documentModelModule = this.documentModelModules.find((module2) => module2.documentModel.id === documentType);
|
|
23571
23563
|
if (!documentModelModule) {
|
|
23572
|
-
throw new Error(`Document type ${
|
|
23564
|
+
throw new Error(`Document type ${documentType} not supported`);
|
|
23573
23565
|
}
|
|
23574
23566
|
return documentModelModule;
|
|
23575
23567
|
}
|
|
@@ -23585,7 +23577,7 @@ class BaseDocumentDriveServer {
|
|
|
23585
23577
|
icon: input.global.icon ?? null,
|
|
23586
23578
|
name: input.global.name
|
|
23587
23579
|
},
|
|
23588
|
-
local: input.local
|
|
23580
|
+
local: input.local ?? {}
|
|
23589
23581
|
}
|
|
23590
23582
|
});
|
|
23591
23583
|
document.meta = {
|
|
@@ -23688,6 +23680,18 @@ class BaseDocumentDriveServer {
|
|
|
23688
23680
|
return document;
|
|
23689
23681
|
}
|
|
23690
23682
|
}
|
|
23683
|
+
async getDriveIdBySlug(slug) {
|
|
23684
|
+
try {
|
|
23685
|
+
const drive = await this.cache.getDriveBySlug(slug);
|
|
23686
|
+
if (drive) {
|
|
23687
|
+
return drive.id;
|
|
23688
|
+
}
|
|
23689
|
+
} catch (e) {
|
|
23690
|
+
this.logger.error("Error getting drive from cache", e);
|
|
23691
|
+
}
|
|
23692
|
+
const driveStorage = await this.documentStorage.getBySlug(slug);
|
|
23693
|
+
return driveStorage.id;
|
|
23694
|
+
}
|
|
23691
23695
|
async getDocument(driveId, documentId, options) {
|
|
23692
23696
|
let cachedDocument;
|
|
23693
23697
|
try {
|
|
@@ -24894,8 +24898,8 @@ const _ListenerManager = class _ListenerManager {
|
|
|
24894
24898
|
return listenerUpdates;
|
|
24895
24899
|
}
|
|
24896
24900
|
_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(
|
|
24901
|
+
const { branch, documentId, scope, documentType } = syncUnit;
|
|
24902
|
+
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
24903
|
return true;
|
|
24900
24904
|
}
|
|
24901
24905
|
return false;
|
|
@@ -25069,8 +25073,8 @@ class SynchronizationManager {
|
|
|
25069
25073
|
this.documentModelModules = documentModelModules;
|
|
25070
25074
|
this.eventEmitter = eventEmitter;
|
|
25071
25075
|
}
|
|
25072
|
-
async getSynchronizationUnits(driveId, documentId, scope, branch,
|
|
25073
|
-
const synchronizationUnitsQuery = await this.getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
25076
|
+
async getSynchronizationUnits(driveId, documentId, scope, branch, documentType) {
|
|
25077
|
+
const synchronizationUnitsQuery = await this.getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType);
|
|
25074
25078
|
this.logger.verbose(`getSynchronizationUnits query: ${JSON.stringify(synchronizationUnitsQuery)}`);
|
|
25075
25079
|
return this.getSynchronizationUnitsRevision(driveId, synchronizationUnitsQuery);
|
|
25076
25080
|
}
|
|
@@ -25092,10 +25096,10 @@ class SynchronizationManager {
|
|
|
25092
25096
|
}
|
|
25093
25097
|
return synchronizationUnits;
|
|
25094
25098
|
}
|
|
25095
|
-
async getSynchronizationUnitsIds(driveId, documentId, scope, branch,
|
|
25099
|
+
async getSynchronizationUnitsIds(driveId, documentId, scope, branch, documentType) {
|
|
25096
25100
|
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("")) && (!(
|
|
25101
|
+
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("*")));
|
|
25102
|
+
if ((!documentId || documentId.includes("*") || documentId.includes("")) && (!(documentType == null ? void 0 : documentType.length) || documentType.includes("powerhouse/document-drive") || documentType.includes("*"))) {
|
|
25099
25103
|
nodes.unshift({
|
|
25100
25104
|
id: driveId,
|
|
25101
25105
|
documentType: "powerhouse/document-drive",
|
|
@@ -25148,7 +25152,7 @@ class SynchronizationManager {
|
|
|
25148
25152
|
if (!syncUnit) {
|
|
25149
25153
|
return void 0;
|
|
25150
25154
|
}
|
|
25151
|
-
const { scope, branch, documentId, documentType
|
|
25155
|
+
const { scope, branch, documentId, documentType } = syncUnit;
|
|
25152
25156
|
const document = await this.getDocument(driveId, documentId);
|
|
25153
25157
|
const operations = document.operations[scope] ?? [];
|
|
25154
25158
|
const lastOperation = operations[operations.length - 1];
|
|
@@ -25157,7 +25161,7 @@ class SynchronizationManager {
|
|
|
25157
25161
|
scope,
|
|
25158
25162
|
branch,
|
|
25159
25163
|
documentId,
|
|
25160
|
-
documentType
|
|
25164
|
+
documentType,
|
|
25161
25165
|
lastUpdated: lastOperation.timestamp ?? document.lastModified,
|
|
25162
25166
|
revision: lastOperation.index ?? 0
|
|
25163
25167
|
};
|
|
@@ -25234,10 +25238,10 @@ class SynchronizationManager {
|
|
|
25234
25238
|
setDocumentModelModules(modules) {
|
|
25235
25239
|
this.documentModelModules = modules;
|
|
25236
25240
|
}
|
|
25237
|
-
getDocumentModelModule(
|
|
25238
|
-
const documentModelModule = this.documentModelModules.find((m) => m.documentModel.id ===
|
|
25241
|
+
getDocumentModelModule(documentType) {
|
|
25242
|
+
const documentModelModule = this.documentModelModules.find((m) => m.documentModel.id === documentType);
|
|
25239
25243
|
if (!documentModelModule) {
|
|
25240
|
-
throw new Error(`Document type ${
|
|
25244
|
+
throw new Error(`Document type ${documentType} not supported`);
|
|
25241
25245
|
}
|
|
25242
25246
|
return documentModelModule;
|
|
25243
25247
|
}
|
|
@@ -25989,12 +25993,7 @@ const ADD_TRIGGER = "ADD_TRIGGER";
|
|
|
25989
25993
|
const ADD_INVALID_TRIGGER = "ADD_INVALID_TRIGGER";
|
|
25990
25994
|
const defaultDriveOptions = [NEW_FOLDER, RENAME, SETTINGS];
|
|
25991
25995
|
const defaultFileOptions = [RENAME, DELETE, DUPLICATE];
|
|
25992
|
-
const defaultFolderOptions = [
|
|
25993
|
-
NEW_FOLDER,
|
|
25994
|
-
RENAME,
|
|
25995
|
-
DELETE,
|
|
25996
|
-
DUPLICATE
|
|
25997
|
-
];
|
|
25996
|
+
const defaultFolderOptions = [RENAME, DELETE, DUPLICATE];
|
|
25998
25997
|
const debugNodeOptions = [
|
|
25999
25998
|
ADD_TRIGGER,
|
|
26000
25999
|
REMOVE_TRIGGER,
|
|
@@ -26074,7 +26073,7 @@ const nodeOptionsMap = {
|
|
|
26074
26073
|
};
|
|
26075
26074
|
const name = "@powerhousedao/connect";
|
|
26076
26075
|
const productName = "Powerhouse-Connect";
|
|
26077
|
-
const version$1 = "1.0.25-dev.
|
|
26076
|
+
const version$1 = "1.0.25-dev.2";
|
|
26078
26077
|
const description = "Powerhouse Connect";
|
|
26079
26078
|
const main = "./dist/index.html";
|
|
26080
26079
|
const type = "module";
|
|
@@ -26086,7 +26085,7 @@ const repository = { "type": "git", "url": "git+https://github.com/powerhouse-in
|
|
|
26086
26085
|
const bugs = { "url": "https://github.com/powerhouse-inc/document-model-electron/issues" };
|
|
26087
26086
|
const homepage = "https://github.com/powerhouse-inc/document-model-electron#readme";
|
|
26088
26087
|
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" };
|
|
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:*", "@
|
|
26088
|
+
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:*", "@rollup/plugin-node-resolve": "^15.2.3", "@sentry/browser": "^9.1.0", "@sentry/react": "^7.109.0", "@sentry/vite-plugin": "^2.23.0", "@tailwindcss/vite": "^4.1.4", "@tanstack/react-virtual": "^3.8.1", "@types/node": "^22.15.17", "@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": "^2.0.0", "@vitejs/plugin-react": "^4.4.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.11.0", "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.1.4", "uuid": "^9.0.1", "viem": "^2.8.13", "vite": "^6.3.3", "vite-envs": "^4.6.0", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-svgr": "^4.3.0", "vite-tsconfig-paths": "^5.1.4", "xvfb-maybe": "^0.2.1" };
|
|
26090
26089
|
const optionalDependencies = { "@esbuild/linux-x64": "^0.21.4", "@rollup/rollup-linux-x64-musl": "4.14.3" };
|
|
26091
26090
|
const packageJson = {
|
|
26092
26091
|
name,
|
|
@@ -26229,12 +26228,11 @@ DriveSections.filter(
|
|
|
26229
26228
|
};
|
|
26230
26229
|
});
|
|
26231
26230
|
var lzString = { exports: {} };
|
|
26232
|
-
lzString.exports;
|
|
26233
26231
|
var hasRequiredLzString;
|
|
26234
26232
|
function requireLzString() {
|
|
26235
26233
|
if (hasRequiredLzString) return lzString.exports;
|
|
26236
26234
|
hasRequiredLzString = 1;
|
|
26237
|
-
(function(
|
|
26235
|
+
(function(module2) {
|
|
26238
26236
|
var LZString2 = function() {
|
|
26239
26237
|
var f = String.fromCharCode;
|
|
26240
26238
|
var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -26674,8 +26672,8 @@ function requireLzString() {
|
|
|
26674
26672
|
};
|
|
26675
26673
|
return LZString3;
|
|
26676
26674
|
}();
|
|
26677
|
-
if (
|
|
26678
|
-
|
|
26675
|
+
if (module2 != null) {
|
|
26676
|
+
module2.exports = LZString2;
|
|
26679
26677
|
} else if (typeof angular !== "undefined" && angular != null) {
|
|
26680
26678
|
angular.module("LZString", []).factory("LZString", function() {
|
|
26681
26679
|
return LZString2;
|
|
@@ -26737,10 +26735,10 @@ var hasRequiredLocalforage;
|
|
|
26737
26735
|
function requireLocalforage() {
|
|
26738
26736
|
if (hasRequiredLocalforage) return localforage.exports;
|
|
26739
26737
|
hasRequiredLocalforage = 1;
|
|
26740
|
-
(function(
|
|
26738
|
+
(function(module2, exports) {
|
|
26741
26739
|
(function(f) {
|
|
26742
26740
|
{
|
|
26743
|
-
|
|
26741
|
+
module2.exports = f();
|
|
26744
26742
|
}
|
|
26745
26743
|
})(function() {
|
|
26746
26744
|
return function e(t2, n, r) {
|
|
@@ -26764,7 +26762,7 @@ function requireLocalforage() {
|
|
|
26764
26762
|
var i = typeof commonjsRequire == "function" && commonjsRequire;
|
|
26765
26763
|
for (var o = 0; o < r.length; o++) s(r[o]);
|
|
26766
26764
|
return s;
|
|
26767
|
-
}({ 1: [function(_dereq_,
|
|
26765
|
+
}({ 1: [function(_dereq_, module3, exports2) {
|
|
26768
26766
|
(function(global2) {
|
|
26769
26767
|
var Mutation = global2.MutationObserver || global2.WebKitMutationObserver;
|
|
26770
26768
|
var scheduleDrain;
|
|
@@ -26819,14 +26817,14 @@ function requireLocalforage() {
|
|
|
26819
26817
|
}
|
|
26820
26818
|
draining = false;
|
|
26821
26819
|
}
|
|
26822
|
-
|
|
26820
|
+
module3.exports = immediate;
|
|
26823
26821
|
function immediate(task) {
|
|
26824
26822
|
if (queue.push(task) === 1 && !draining) {
|
|
26825
26823
|
scheduleDrain();
|
|
26826
26824
|
}
|
|
26827
26825
|
}
|
|
26828
26826
|
}).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
26829
|
-
}, {}], 2: [function(_dereq_,
|
|
26827
|
+
}, {}], 2: [function(_dereq_, module3, exports2) {
|
|
26830
26828
|
var immediate = _dereq_(1);
|
|
26831
26829
|
function INTERNAL() {
|
|
26832
26830
|
}
|
|
@@ -26834,7 +26832,7 @@ function requireLocalforage() {
|
|
|
26834
26832
|
var REJECTED = ["REJECTED"];
|
|
26835
26833
|
var FULFILLED = ["FULFILLED"];
|
|
26836
26834
|
var PENDING = ["PENDING"];
|
|
26837
|
-
|
|
26835
|
+
module3.exports = Promise2;
|
|
26838
26836
|
function Promise2(resolver) {
|
|
26839
26837
|
if (typeof resolver !== "function") {
|
|
26840
26838
|
throw new TypeError("resolver must be a function");
|
|
@@ -27050,13 +27048,13 @@ function requireLocalforage() {
|
|
|
27050
27048
|
});
|
|
27051
27049
|
}
|
|
27052
27050
|
}
|
|
27053
|
-
}, { "1": 1 }], 3: [function(_dereq_,
|
|
27051
|
+
}, { "1": 1 }], 3: [function(_dereq_, module3, exports2) {
|
|
27054
27052
|
(function(global2) {
|
|
27055
27053
|
if (typeof global2.Promise !== "function") {
|
|
27056
27054
|
global2.Promise = _dereq_(2);
|
|
27057
27055
|
}
|
|
27058
27056
|
}).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
27059
|
-
}, { "2": 2 }], 4: [function(_dereq_,
|
|
27057
|
+
}, { "2": 2 }], 4: [function(_dereq_, module3, exports2) {
|
|
27060
27058
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
27061
27059
|
return typeof obj;
|
|
27062
27060
|
} : function(obj) {
|
|
@@ -28855,7 +28853,7 @@ function requireLocalforage() {
|
|
|
28855
28853
|
return LocalForage3;
|
|
28856
28854
|
}();
|
|
28857
28855
|
var localforage_js = new LocalForage2();
|
|
28858
|
-
|
|
28856
|
+
module3.exports = localforage_js;
|
|
28859
28857
|
}, { "3": 3 }] }, {}, [4])(4);
|
|
28860
28858
|
});
|
|
28861
28859
|
})(localforage);
|
|
@@ -29743,8 +29741,8 @@ class ResourceStore extends EventEmitter {
|
|
|
29743
29741
|
}
|
|
29744
29742
|
var postProcessor = {
|
|
29745
29743
|
processors: {},
|
|
29746
|
-
addPostProcessor(
|
|
29747
|
-
this.processors[
|
|
29744
|
+
addPostProcessor(module2) {
|
|
29745
|
+
this.processors[module2.name] = module2;
|
|
29748
29746
|
},
|
|
29749
29747
|
handle(processors, value, key, options, translator) {
|
|
29750
29748
|
processors.forEach((processor) => {
|
|
@@ -31392,29 +31390,29 @@ class I18n extends EventEmitter {
|
|
|
31392
31390
|
});
|
|
31393
31391
|
return deferred;
|
|
31394
31392
|
}
|
|
31395
|
-
use(
|
|
31396
|
-
if (!
|
|
31397
|
-
if (!
|
|
31398
|
-
if (
|
|
31399
|
-
this.modules.backend =
|
|
31393
|
+
use(module2) {
|
|
31394
|
+
if (!module2) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
31395
|
+
if (!module2.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
31396
|
+
if (module2.type === "backend") {
|
|
31397
|
+
this.modules.backend = module2;
|
|
31400
31398
|
}
|
|
31401
|
-
if (
|
|
31402
|
-
this.modules.logger =
|
|
31399
|
+
if (module2.type === "logger" || module2.log && module2.warn && module2.error) {
|
|
31400
|
+
this.modules.logger = module2;
|
|
31403
31401
|
}
|
|
31404
|
-
if (
|
|
31405
|
-
this.modules.languageDetector =
|
|
31402
|
+
if (module2.type === "languageDetector") {
|
|
31403
|
+
this.modules.languageDetector = module2;
|
|
31406
31404
|
}
|
|
31407
|
-
if (
|
|
31408
|
-
this.modules.i18nFormat =
|
|
31405
|
+
if (module2.type === "i18nFormat") {
|
|
31406
|
+
this.modules.i18nFormat = module2;
|
|
31409
31407
|
}
|
|
31410
|
-
if (
|
|
31411
|
-
postProcessor.addPostProcessor(
|
|
31408
|
+
if (module2.type === "postProcessor") {
|
|
31409
|
+
postProcessor.addPostProcessor(module2);
|
|
31412
31410
|
}
|
|
31413
|
-
if (
|
|
31414
|
-
this.modules.formatter =
|
|
31411
|
+
if (module2.type === "formatter") {
|
|
31412
|
+
this.modules.formatter = module2;
|
|
31415
31413
|
}
|
|
31416
|
-
if (
|
|
31417
|
-
this.modules.external.push(
|
|
31414
|
+
if (module2.type === "3rdParty") {
|
|
31415
|
+
this.modules.external.push(module2);
|
|
31418
31416
|
}
|
|
31419
31417
|
return this;
|
|
31420
31418
|
}
|
|
@@ -31768,14 +31766,14 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31768
31766
|
} else {
|
|
31769
31767
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31770
31768
|
}
|
|
31771
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31769
|
+
const App = lazy(() => __vitePreload(() => import("./app-B7uYdlfd.js").then((n) => n.bu), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31772
31770
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31773
31771
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31774
31772
|
__proto__: null,
|
|
31775
31773
|
default: AppLoader
|
|
31776
31774
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
31777
31775
|
export {
|
|
31778
|
-
|
|
31776
|
+
utils$1 as $,
|
|
31779
31777
|
AddStateExampleInputSchema as A,
|
|
31780
31778
|
SetModuleDescriptionInputSchema as B,
|
|
31781
31779
|
SetModuleNameInputSchema as C,
|
|
@@ -31804,23 +31802,23 @@ export {
|
|
|
31804
31802
|
pascalCase as Z,
|
|
31805
31803
|
logger$1 as _,
|
|
31806
31804
|
createReducer as a,
|
|
31807
|
-
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
|
|
31811
|
-
|
|
31805
|
+
invariant as a$,
|
|
31806
|
+
Icon as a0,
|
|
31807
|
+
getDefaultExportFromCjs as a1,
|
|
31808
|
+
LOCAL as a2,
|
|
31809
|
+
commonjsGlobal as a3,
|
|
31812
31810
|
PUBLIC as a4,
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31811
|
+
SWITCHBOARD as a5,
|
|
31812
|
+
locationInfoByLocation as a6,
|
|
31813
|
+
sharingTypeOptions as a7,
|
|
31814
|
+
objectType as a8,
|
|
31817
31815
|
recordType as a9,
|
|
31818
|
-
|
|
31819
|
-
|
|
31820
|
-
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
|
|
31816
|
+
deleteNode as aA,
|
|
31817
|
+
updateNode as aB,
|
|
31818
|
+
FILE as aC,
|
|
31819
|
+
moveNode as aD,
|
|
31820
|
+
generateNodesCopy as aE,
|
|
31821
|
+
copyNode as aF,
|
|
31824
31822
|
setDriveName as aG,
|
|
31825
31823
|
setAvailableOffline as aH,
|
|
31826
31824
|
setSharingType as aI,
|
|
@@ -31841,110 +31839,109 @@ export {
|
|
|
31841
31839
|
request as aX,
|
|
31842
31840
|
inspect as aY,
|
|
31843
31841
|
GraphQLError as aZ,
|
|
31844
|
-
|
|
31845
|
-
|
|
31846
|
-
|
|
31847
|
-
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31842
|
+
getNamedType as a_,
|
|
31843
|
+
stringType as aa,
|
|
31844
|
+
capitalCase as ab,
|
|
31845
|
+
CLOUD as ac,
|
|
31846
|
+
createZip as ad,
|
|
31847
|
+
LZString as ae,
|
|
31848
|
+
buildSignedOperation as af,
|
|
31851
31849
|
getI18n as ag,
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
31863
|
-
|
|
31864
|
-
|
|
31865
|
-
|
|
31866
|
-
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
|
|
31870
|
-
|
|
31850
|
+
getDefaults as ah,
|
|
31851
|
+
connectConfig as ai,
|
|
31852
|
+
hashDocumentStateForScope as aj,
|
|
31853
|
+
getAugmentedNamespace as ak,
|
|
31854
|
+
childLogger as al,
|
|
31855
|
+
process as am,
|
|
31856
|
+
setErrorHandler as an,
|
|
31857
|
+
module as ao,
|
|
31858
|
+
createBrowserStorage as ap,
|
|
31859
|
+
createBrowserDocumentDriveServer as aq,
|
|
31860
|
+
generateId as ar,
|
|
31861
|
+
reducer as as,
|
|
31862
|
+
isDocumentDrive as at,
|
|
31863
|
+
generateAddNodeAction as au,
|
|
31864
|
+
isFileNode as av,
|
|
31865
|
+
uploadDocumentOperations as aw,
|
|
31866
|
+
updateFile as ax,
|
|
31867
|
+
addFolder as ay,
|
|
31868
|
+
isFolderNode as az,
|
|
31871
31869
|
SetStateSchemaInputSchema as b,
|
|
31872
|
-
|
|
31870
|
+
RENAME as b$,
|
|
31873
31871
|
isInputObjectType as b0,
|
|
31874
31872
|
isScalarType as b1,
|
|
31875
31873
|
isObjectType as b2,
|
|
31876
31874
|
isInterfaceType as b3,
|
|
31877
31875
|
isUnionType as b4,
|
|
31878
31876
|
isEnumType as b5,
|
|
31879
|
-
|
|
31880
|
-
|
|
31881
|
-
|
|
31882
|
-
|
|
31883
|
-
|
|
31884
|
-
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
31888
|
-
|
|
31889
|
-
|
|
31890
|
-
|
|
31891
|
-
|
|
31892
|
-
|
|
31893
|
-
|
|
31894
|
-
|
|
31895
|
-
|
|
31896
|
-
|
|
31897
|
-
|
|
31898
|
-
|
|
31899
|
-
|
|
31900
|
-
|
|
31901
|
-
|
|
31902
|
-
|
|
31903
|
-
|
|
31904
|
-
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31877
|
+
print as b6,
|
|
31878
|
+
isPrintableAsBlockString as b7,
|
|
31879
|
+
Kind as b8,
|
|
31880
|
+
astFromValue as b9,
|
|
31881
|
+
buildSchema as bA,
|
|
31882
|
+
buildASTSchema as bB,
|
|
31883
|
+
parse as bC,
|
|
31884
|
+
validate as bD,
|
|
31885
|
+
visit as bE,
|
|
31886
|
+
snakeCase as bF,
|
|
31887
|
+
constantCase as bG,
|
|
31888
|
+
isAbstractType as bH,
|
|
31889
|
+
BREAK as bI,
|
|
31890
|
+
SchemaMetaFieldDef as bJ,
|
|
31891
|
+
TypeMetaFieldDef as bK,
|
|
31892
|
+
TypeNameMetaFieldDef as bL,
|
|
31893
|
+
isCompositeType as bM,
|
|
31894
|
+
isOutputType as bN,
|
|
31895
|
+
isInputType as bO,
|
|
31896
|
+
assertAbstractType as bP,
|
|
31897
|
+
doTypesOverlap as bQ,
|
|
31898
|
+
DirectiveLocation as bR,
|
|
31899
|
+
NoUnusedFragmentsRule as bS,
|
|
31900
|
+
ExecutableDefinitionsRule as bT,
|
|
31901
|
+
validateSchema as bU,
|
|
31902
|
+
sentenceCase as bV,
|
|
31903
|
+
getDimensions as bW,
|
|
31904
|
+
READ as bX,
|
|
31905
|
+
nodeOptionsMap as bY,
|
|
31906
|
+
defaultFileOptions as bZ,
|
|
31907
|
+
DELETE as b_,
|
|
31908
|
+
DEFAULT_DEPRECATION_REASON as ba,
|
|
31911
31909
|
isSpecifiedDirective as bb,
|
|
31912
31910
|
isSpecifiedScalarType as bc,
|
|
31913
31911
|
isIntrospectionType as bd,
|
|
31914
31912
|
z as be,
|
|
31915
31913
|
GraphQLScalarType as bf,
|
|
31916
|
-
|
|
31917
|
-
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31914
|
+
specifiedRules as bg,
|
|
31915
|
+
GraphQLID as bh,
|
|
31916
|
+
GraphQLBoolean as bi,
|
|
31917
|
+
GraphQLString as bj,
|
|
31918
|
+
GraphQLFloat as bk,
|
|
31919
|
+
GraphQLInt as bl,
|
|
31920
|
+
GraphQLDirective as bm,
|
|
31921
|
+
GraphQLObjectType as bn,
|
|
31922
|
+
GraphQLInterfaceType as bo,
|
|
31923
|
+
GraphQLUnionType as bp,
|
|
31926
31924
|
GraphQLInputObjectType as bq,
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
-
|
|
31925
|
+
GraphQLEnumType as br,
|
|
31926
|
+
isListType as bs,
|
|
31927
|
+
GraphQLList as bt,
|
|
31928
|
+
isNonNullType as bu,
|
|
31929
|
+
GraphQLNonNull as bv,
|
|
31930
|
+
isNamedType as bw,
|
|
31931
|
+
getNullableType as bx,
|
|
31932
|
+
isLeafType as by,
|
|
31933
|
+
GraphQLSchema as bz,
|
|
31936
31934
|
createAction as c,
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
appLoader as ca,
|
|
31935
|
+
WRITE as c0,
|
|
31936
|
+
DUPLICATE as c1,
|
|
31937
|
+
defaultFolderOptions as c2,
|
|
31938
|
+
garbageCollect as c3,
|
|
31939
|
+
sortOperations as c4,
|
|
31940
|
+
UI_NODE as c5,
|
|
31941
|
+
undo as c6,
|
|
31942
|
+
redo as c7,
|
|
31943
|
+
useDocumentDispatch as c8,
|
|
31944
|
+
appLoader as c9,
|
|
31948
31945
|
ReorderModuleOperationsInputSchema as d,
|
|
31949
31946
|
DeleteOperationInputSchema as e,
|
|
31950
31947
|
SetOperationReducerInputSchema as f,
|
|
@@ -31969,4 +31966,4 @@ export {
|
|
|
31969
31966
|
ReorderModulesInputSchema as y,
|
|
31970
31967
|
DeleteModuleInputSchema as z
|
|
31971
31968
|
};
|
|
31972
|
-
//# sourceMappingURL=app-loader-
|
|
31969
|
+
//# sourceMappingURL=app-loader-qaI-uGFh.js.map
|