@powerhousedao/connect 6.0.0-dev.89 → 6.0.0-dev.90
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/src/context/index.js +188 -26
- package/dist/src/hooks/index.js +188 -26
- package/dist/src/main.js +190 -28
- package/dist/src/pages/index.js +190 -28
- package/dist/src/store/index.js +188 -26
- package/dist/src/utils/index.js +188 -26
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
package/dist/src/hooks/index.js
CHANGED
|
@@ -57174,6 +57174,7 @@ __export(exports_src, {
|
|
|
57174
57174
|
createUrlWithPreservedParams: () => createUrlWithPreservedParams,
|
|
57175
57175
|
createProcessorQuery: () => createProcessorQuery,
|
|
57176
57176
|
createClient: () => createClient,
|
|
57177
|
+
convertRemoteOperations: () => convertRemoteOperations,
|
|
57177
57178
|
convertLegacyLibToVetraPackage: () => convertLegacyLibToVetraPackage,
|
|
57178
57179
|
convertLegacyEditorModuleToVetraEditorModule: () => convertLegacyEditorModuleToVetraEditorModule,
|
|
57179
57180
|
convertLegacyDocumentModelModuleToVetraDocumentModelModule: () => convertLegacyDocumentModelModuleToVetraDocumentModelModule,
|
|
@@ -60421,6 +60422,14 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
60421
60422
|
signal
|
|
60422
60423
|
}), "GetDocument", "query", variables);
|
|
60423
60424
|
},
|
|
60425
|
+
GetDocumentWithOperations(variables, requestHeaders, signal) {
|
|
60426
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
60427
|
+
document: GetDocumentWithOperationsDocument,
|
|
60428
|
+
variables,
|
|
60429
|
+
requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders },
|
|
60430
|
+
signal
|
|
60431
|
+
}), "GetDocumentWithOperations", "query", variables);
|
|
60432
|
+
},
|
|
60424
60433
|
GetDocumentChildren(variables, requestHeaders, signal) {
|
|
60425
60434
|
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
60426
60435
|
document: GetDocumentChildrenDocument,
|
|
@@ -73752,8 +73761,10 @@ class ActionTracker {
|
|
|
73752
73761
|
|
|
73753
73762
|
class RemoteClient {
|
|
73754
73763
|
client;
|
|
73755
|
-
|
|
73764
|
+
pageSize;
|
|
73765
|
+
constructor(client, pageSize) {
|
|
73756
73766
|
this.client = client;
|
|
73767
|
+
this.pageSize = pageSize ?? DEFAULT_PAGE_SIZE;
|
|
73757
73768
|
}
|
|
73758
73769
|
async getDocument(identifier, branch) {
|
|
73759
73770
|
const result = await this.client.GetDocument({
|
|
@@ -73762,9 +73773,39 @@ class RemoteClient {
|
|
|
73762
73773
|
});
|
|
73763
73774
|
return result.document ?? null;
|
|
73764
73775
|
}
|
|
73765
|
-
async
|
|
73776
|
+
async getDocumentWithOperations(identifier, branch, operationsCursor) {
|
|
73777
|
+
const result = await this.client.GetDocumentWithOperations({
|
|
73778
|
+
identifier,
|
|
73779
|
+
view: branch ? { branch } : undefined,
|
|
73780
|
+
operationsPaging: {
|
|
73781
|
+
limit: this.pageSize,
|
|
73782
|
+
cursor: operationsCursor ?? null
|
|
73783
|
+
}
|
|
73784
|
+
});
|
|
73785
|
+
if (!result.document)
|
|
73786
|
+
return null;
|
|
73787
|
+
const doc = result.document.document;
|
|
73788
|
+
const opsPage = doc.operations;
|
|
73766
73789
|
const operationsByScope = {};
|
|
73767
|
-
|
|
73790
|
+
if (opsPage) {
|
|
73791
|
+
for (const op of opsPage.items) {
|
|
73792
|
+
const scope = op.action.scope;
|
|
73793
|
+
(operationsByScope[scope] ??= []).push(op);
|
|
73794
|
+
}
|
|
73795
|
+
}
|
|
73796
|
+
return {
|
|
73797
|
+
document: doc,
|
|
73798
|
+
childIds: result.document.childIds,
|
|
73799
|
+
operations: {
|
|
73800
|
+
operationsByScope,
|
|
73801
|
+
cursor: opsPage?.cursor ?? undefined
|
|
73802
|
+
},
|
|
73803
|
+
hasMoreOperations: opsPage?.hasNextPage ?? false
|
|
73804
|
+
};
|
|
73805
|
+
}
|
|
73806
|
+
async getAllOperations(documentId, branch, sinceRevision, scopes, startCursor) {
|
|
73807
|
+
const operationsByScope = {};
|
|
73808
|
+
let cursor = startCursor ?? undefined;
|
|
73768
73809
|
let hasNextPage = true;
|
|
73769
73810
|
while (hasNextPage) {
|
|
73770
73811
|
const result = await this.client.GetDocumentOperations({
|
|
@@ -73775,22 +73816,22 @@ class RemoteClient {
|
|
|
73775
73816
|
scopes: scopes ?? null
|
|
73776
73817
|
},
|
|
73777
73818
|
paging: {
|
|
73778
|
-
limit:
|
|
73819
|
+
limit: this.pageSize,
|
|
73779
73820
|
cursor: cursor ?? null
|
|
73780
73821
|
}
|
|
73781
73822
|
});
|
|
73782
73823
|
const page = result.documentOperations;
|
|
73783
73824
|
for (const op of page.items) {
|
|
73784
73825
|
const scope = op.action.scope;
|
|
73785
|
-
|
|
73786
|
-
operationsByScope[scope] = [];
|
|
73787
|
-
}
|
|
73788
|
-
operationsByScope[scope].push(op);
|
|
73826
|
+
(operationsByScope[scope] ??= []).push(op);
|
|
73789
73827
|
}
|
|
73790
73828
|
hasNextPage = page.hasNextPage;
|
|
73791
73829
|
cursor = page.cursor;
|
|
73792
73830
|
}
|
|
73793
|
-
return
|
|
73831
|
+
return {
|
|
73832
|
+
operationsByScope,
|
|
73833
|
+
cursor: cursor ?? undefined
|
|
73834
|
+
};
|
|
73794
73835
|
}
|
|
73795
73836
|
async pushActions(documentIdentifier, actions2, branch) {
|
|
73796
73837
|
const result = await this.client.MutateDocument({
|
|
@@ -73873,11 +73914,14 @@ function deserializeSignature2(s3) {
|
|
|
73873
73914
|
parts[4] ?? ""
|
|
73874
73915
|
];
|
|
73875
73916
|
}
|
|
73876
|
-
function
|
|
73917
|
+
function convertRemoteOperations(operationsByScope) {
|
|
73877
73918
|
const operations = {};
|
|
73878
73919
|
for (const [scope, remoteOps] of Object.entries(operationsByScope)) {
|
|
73879
73920
|
operations[scope] = remoteOps.map((op) => remoteOperationToLocal(op));
|
|
73880
73921
|
}
|
|
73922
|
+
return operations;
|
|
73923
|
+
}
|
|
73924
|
+
function buildPulledDocument(remoteDoc, operations, initialDoc, branch) {
|
|
73881
73925
|
return {
|
|
73882
73926
|
header: {
|
|
73883
73927
|
...initialDoc.header,
|
|
@@ -73917,6 +73961,7 @@ class RemoteDocumentController {
|
|
|
73917
73961
|
options;
|
|
73918
73962
|
documentId;
|
|
73919
73963
|
remoteRevision = {};
|
|
73964
|
+
lastCursor;
|
|
73920
73965
|
pushScheduled = false;
|
|
73921
73966
|
pushQueue = Promise.resolve();
|
|
73922
73967
|
listeners = [];
|
|
@@ -73924,7 +73969,7 @@ class RemoteDocumentController {
|
|
|
73924
73969
|
this.inner = inner;
|
|
73925
73970
|
this.options = options;
|
|
73926
73971
|
this.documentId = options.documentId ?? "";
|
|
73927
|
-
this.remoteClient = new RemoteClient(options.client);
|
|
73972
|
+
this.remoteClient = new RemoteClient(options.client, options.operationsPageSize);
|
|
73928
73973
|
this.setupActionInterceptors();
|
|
73929
73974
|
}
|
|
73930
73975
|
get header() {
|
|
@@ -74012,14 +74057,9 @@ class RemoteDocumentController {
|
|
|
74012
74057
|
if (this.documentId === "") {
|
|
74013
74058
|
throw new Error("Cannot pull: no document ID set");
|
|
74014
74059
|
}
|
|
74015
|
-
const
|
|
74016
|
-
if (!docResult) {
|
|
74017
|
-
throw new Error(`Document "${this.documentId}" not found on remote`);
|
|
74018
|
-
}
|
|
74019
|
-
const remoteDoc = docResult.document;
|
|
74020
|
-
const operationsByScope = await this.remoteClient.getAllOperations(this.documentId, this.options.branch);
|
|
74060
|
+
const { remoteDoc, operations } = await this.fetchDocumentAndOperations();
|
|
74021
74061
|
const initialDoc = this.inner.module.utils.createDocument();
|
|
74022
|
-
const pulledDocument = buildPulledDocument(remoteDoc,
|
|
74062
|
+
const pulledDocument = buildPulledDocument(remoteDoc, operations, initialDoc, this.options.branch ?? "main");
|
|
74023
74063
|
const ControllerClass = this.inner.constructor;
|
|
74024
74064
|
this.inner = new ControllerClass(pulledDocument);
|
|
74025
74065
|
this.setupActionInterceptors();
|
|
@@ -74055,7 +74095,7 @@ class RemoteDocumentController {
|
|
|
74055
74095
|
value: (input) => {
|
|
74056
74096
|
const opCountsBefore = {};
|
|
74057
74097
|
for (const scope in this.inner.operations) {
|
|
74058
|
-
opCountsBefore[scope] = this.inner.operations[scope]
|
|
74098
|
+
opCountsBefore[scope] = this.inner.operations[scope].length;
|
|
74059
74099
|
}
|
|
74060
74100
|
this.inner[actionType](input);
|
|
74061
74101
|
const newOp = this.findNewOperation(opCountsBefore);
|
|
@@ -74082,7 +74122,7 @@ class RemoteDocumentController {
|
|
|
74082
74122
|
for (const scope in ops) {
|
|
74083
74123
|
const scopeOps = ops[scope];
|
|
74084
74124
|
const prevCount = opCountsBefore[scope] ?? 0;
|
|
74085
|
-
if (scopeOps
|
|
74125
|
+
if (scopeOps.length > prevCount) {
|
|
74086
74126
|
return scopeOps[scopeOps.length - 1];
|
|
74087
74127
|
}
|
|
74088
74128
|
}
|
|
@@ -74090,7 +74130,7 @@ class RemoteDocumentController {
|
|
|
74090
74130
|
}
|
|
74091
74131
|
getLastOperationInScope(scope, excludeOp) {
|
|
74092
74132
|
const scopeOps = this.inner.operations[scope];
|
|
74093
|
-
if (
|
|
74133
|
+
if (scopeOps.length === 0)
|
|
74094
74134
|
return;
|
|
74095
74135
|
for (let i3 = scopeOps.length - 1;i3 >= 0; i3--) {
|
|
74096
74136
|
if (scopeOps[i3] !== excludeOp)
|
|
@@ -74111,8 +74151,8 @@ class RemoteDocumentController {
|
|
|
74111
74151
|
const conflictingScopes = [...localScopes].filter((scope) => (currentRevision[scope] ?? 0) > (this.remoteRevision[scope] ?? 0));
|
|
74112
74152
|
const scopeResults = await Promise.all(conflictingScopes.map((scope) => this.remoteClient.getAllOperations(this.documentId, this.options.branch, this.remoteRevision[scope] ?? 0, [scope])));
|
|
74113
74153
|
const remoteOperations = {};
|
|
74114
|
-
for (const
|
|
74115
|
-
for (const [scope, ops] of Object.entries(
|
|
74154
|
+
for (const { operationsByScope } of scopeResults) {
|
|
74155
|
+
for (const [scope, ops] of Object.entries(operationsByScope)) {
|
|
74116
74156
|
remoteOperations[scope] = ops;
|
|
74117
74157
|
}
|
|
74118
74158
|
}
|
|
@@ -74176,6 +74216,70 @@ class RemoteDocumentController {
|
|
|
74176
74216
|
}
|
|
74177
74217
|
};
|
|
74178
74218
|
}
|
|
74219
|
+
async fetchDocumentAndOperations() {
|
|
74220
|
+
const result = await this.remoteClient.getDocumentWithOperations(this.documentId, this.options.branch, this.lastCursor);
|
|
74221
|
+
if (!result) {
|
|
74222
|
+
throw new Error(`Document "${this.documentId}" not found on remote`);
|
|
74223
|
+
}
|
|
74224
|
+
const { document: remoteDoc, hasMoreOperations } = result;
|
|
74225
|
+
let { operations: firstPage } = result;
|
|
74226
|
+
const expectedRevision = extractRevisionMap(remoteDoc.revisionsList);
|
|
74227
|
+
if (hasMoreOperations && firstPage.cursor) {
|
|
74228
|
+
const remaining = await this.remoteClient.getAllOperations(this.documentId, this.options.branch, undefined, undefined, firstPage.cursor);
|
|
74229
|
+
for (const [scope, ops] of Object.entries(remaining.operationsByScope)) {
|
|
74230
|
+
(firstPage.operationsByScope[scope] ??= []).push(...ops);
|
|
74231
|
+
}
|
|
74232
|
+
firstPage = {
|
|
74233
|
+
operationsByScope: firstPage.operationsByScope,
|
|
74234
|
+
cursor: remaining.cursor
|
|
74235
|
+
};
|
|
74236
|
+
}
|
|
74237
|
+
if (this.lastCursor) {
|
|
74238
|
+
const newOps = convertRemoteOperations(firstPage.operationsByScope);
|
|
74239
|
+
const merged = this.mergeOperations(this.inner.operations, newOps);
|
|
74240
|
+
if (this.hasExpectedOperationCounts(merged, expectedRevision)) {
|
|
74241
|
+
this.lastCursor = firstPage.cursor;
|
|
74242
|
+
return { remoteDoc, operations: merged };
|
|
74243
|
+
}
|
|
74244
|
+
return this.fullFetch(remoteDoc);
|
|
74245
|
+
}
|
|
74246
|
+
this.lastCursor = firstPage.cursor;
|
|
74247
|
+
return {
|
|
74248
|
+
remoteDoc,
|
|
74249
|
+
operations: convertRemoteOperations(firstPage.operationsByScope)
|
|
74250
|
+
};
|
|
74251
|
+
}
|
|
74252
|
+
async fullFetch(remoteDoc) {
|
|
74253
|
+
const { operationsByScope, cursor } = await this.remoteClient.getAllOperations(this.documentId, this.options.branch);
|
|
74254
|
+
this.lastCursor = cursor;
|
|
74255
|
+
return {
|
|
74256
|
+
remoteDoc,
|
|
74257
|
+
operations: convertRemoteOperations(operationsByScope)
|
|
74258
|
+
};
|
|
74259
|
+
}
|
|
74260
|
+
hasExpectedOperationCounts(operations, expectedRevision) {
|
|
74261
|
+
for (const [scope, revision] of Object.entries(expectedRevision)) {
|
|
74262
|
+
const opCount = scope in operations ? operations[scope].length : 0;
|
|
74263
|
+
if (opCount !== revision) {
|
|
74264
|
+
return false;
|
|
74265
|
+
}
|
|
74266
|
+
}
|
|
74267
|
+
return true;
|
|
74268
|
+
}
|
|
74269
|
+
mergeOperations(existingOps, newOps) {
|
|
74270
|
+
const merged = {};
|
|
74271
|
+
for (const [scope, ops] of Object.entries(existingOps)) {
|
|
74272
|
+
if (ops.length > 0) {
|
|
74273
|
+
merged[scope] = [...ops];
|
|
74274
|
+
}
|
|
74275
|
+
}
|
|
74276
|
+
for (const [scope, ops] of Object.entries(newOps)) {
|
|
74277
|
+
if (ops.length > 0) {
|
|
74278
|
+
(merged[scope] ??= []).push(...ops);
|
|
74279
|
+
}
|
|
74280
|
+
}
|
|
74281
|
+
return merged;
|
|
74282
|
+
}
|
|
74179
74283
|
schedulePush() {
|
|
74180
74284
|
if (this.pushScheduled)
|
|
74181
74285
|
return;
|
|
@@ -75397,7 +75501,7 @@ ${String(result)}`);
|
|
|
75397
75501
|
return t4;
|
|
75398
75502
|
};
|
|
75399
75503
|
return __assign.apply(this, arguments);
|
|
75400
|
-
}, docCache, fragmentSourceMap, printFragmentWarnings = true, experimentalFragmentVariables = false, extras, PropagationMode2, PhDocumentFieldsFragmentDoc, GetDocumentModelsDocument, GetDocumentDocument, GetDocumentChildrenDocument, GetDocumentParentsDocument, FindDocumentsDocument, GetDocumentOperationsDocument, GetJobStatusDocument, CreateDocumentDocument, CreateEmptyDocumentDocument, MutateDocumentDocument, MutateDocumentAsyncDocument, RenameDocumentDocument, AddChildrenDocument, RemoveChildrenDocument, MoveChildrenDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangesDocument, JobChangesDocument, PollSyncEnvelopesDocument, TouchChannelDocument, PushSyncEnvelopesDocument, defaultWrapper = (action, _operationName, _operationType, _variables) => action(), SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_SEPARATE_NUMBER_RE, DEFAULT_STRIP_REGEXP, SPLIT_REPLACE_VALUE = "$1\x00$2", DEFAULT_PREFIX_SUFFIX_CHARACTERS = "", isServer, useLoading, setLoading, addLoadingEventHandler, loading = null, renownEventFunctions, addRenownEventHandler, useRenown, setRenown, RENOWN_URL = "https://www.renown.id", RENOWN_NETWORK_ID = "eip155", RENOWN_CHAIN_ID = "1", DOMAIN_TYPE, VERIFIABLE_CREDENTIAL_EIP712_TYPE, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, ISSUER_TYPE, CREDENTIAL_TYPES, isExternalControlsEnabledEventFunctions, setIsExternalControlsEnabled, useIsExternalControlsEnabled, addIsExternalControlsEnabledEventHandler, isDragAndDropEnabledEventFunctions, setIsDragAndDropEnabled, useIsDragAndDropEnabled, addIsDragAndDropEnabledEventHandler, allowedDocumentTypesEventFunctions, setAllowedDocumentTypes, addAllowedDocumentTypesEventHandler, phDriveEditorConfigSetters, phDocumentEditorConfigSetters, phDriveEditorConfigHooks, phDocumentEditorConfigHooks, vetraPackageManagerFunctions, useVetraPackageManager, useVetraPackages = () => {
|
|
75504
|
+
}, docCache, fragmentSourceMap, printFragmentWarnings = true, experimentalFragmentVariables = false, extras, PropagationMode2, PhDocumentFieldsFragmentDoc, GetDocumentModelsDocument, GetDocumentDocument, GetDocumentWithOperationsDocument, GetDocumentChildrenDocument, GetDocumentParentsDocument, FindDocumentsDocument, GetDocumentOperationsDocument, GetJobStatusDocument, CreateDocumentDocument, CreateEmptyDocumentDocument, MutateDocumentDocument, MutateDocumentAsyncDocument, RenameDocumentDocument, AddChildrenDocument, RemoveChildrenDocument, MoveChildrenDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangesDocument, JobChangesDocument, PollSyncEnvelopesDocument, TouchChannelDocument, PushSyncEnvelopesDocument, defaultWrapper = (action, _operationName, _operationType, _variables) => action(), SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_SEPARATE_NUMBER_RE, DEFAULT_STRIP_REGEXP, SPLIT_REPLACE_VALUE = "$1\x00$2", DEFAULT_PREFIX_SUFFIX_CHARACTERS = "", isServer, useLoading, setLoading, addLoadingEventHandler, loading = null, renownEventFunctions, addRenownEventHandler, useRenown, setRenown, RENOWN_URL = "https://www.renown.id", RENOWN_NETWORK_ID = "eip155", RENOWN_CHAIN_ID = "1", DOMAIN_TYPE, VERIFIABLE_CREDENTIAL_EIP712_TYPE, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, ISSUER_TYPE, CREDENTIAL_TYPES, isExternalControlsEnabledEventFunctions, setIsExternalControlsEnabled, useIsExternalControlsEnabled, addIsExternalControlsEnabledEventHandler, isDragAndDropEnabledEventFunctions, setIsDragAndDropEnabled, useIsDragAndDropEnabled, addIsDragAndDropEnabledEventHandler, allowedDocumentTypesEventFunctions, setAllowedDocumentTypes, addAllowedDocumentTypesEventHandler, phDriveEditorConfigSetters, phDocumentEditorConfigSetters, phDriveEditorConfigHooks, phDocumentEditorConfigHooks, vetraPackageManagerFunctions, useVetraPackageManager, useVetraPackages = () => {
|
|
75401
75505
|
const packageManager = useVetraPackageManager();
|
|
75402
75506
|
return useSyncExternalStore32((cb) => packageManager ? packageManager.subscribe(cb) : () => {}, () => packageManager?.packages ?? []);
|
|
75403
75507
|
}, addVetraPackageManagerEventHandler, EMPTY_PENDING, EMPTY_DISMISSED, NOOP_UNSUBSCRIBE = () => {}, documentEventFunctions, useDocumentCache, setDocumentCache, addDocumentCacheEventHandler, base64, locales, defaultLocale, initialMulticharmap, initialCharmap, slug_default, drivesEventFunctions, useDrives, setDrives, addDrivesEventHandler, selectedDriveIdEventFunctions, useSelectedDriveId, setSelectedDriveId, addSelectedDriveIdEventHandler, selectedNodeIdEventFunctions, useSelectedNodeId, setSelectedNodeId, addSelectedNodeIdEventHandler, useRouterBasename, setRouterBasename, addRouterBasenameEventHandler, useVersion, setVersion, addVersionEventHandler, useRequiresHardRefresh, setRequiresHardRefresh, addRequiresHardRefreshEventHandler, useWarnOutdatedApp, setWarnOutdatedApp, addWarnOutdatedAppEventHandler, useStudioMode, setStudioMode, addStudioModeEventHandler, useBasePath, setBasePath, addBasePathEventHandler, useVersionCheckInterval, setVersionCheckInterval, addVersionCheckIntervalEventHandler, useCliVersion, setCliVersion, addCliVersionEventHandler, useFileUploadOperationsChunkSize, setFileUploadOperationsChunkSize, addFileUploadOperationsChunkSizeEventHandler, useIsDocumentModelSelectionSettingsEnabled, setIsDocumentModelSelectionSettingsEnabled, addIsDocumentModelSelectionSettingsEnabledEventHandler, useGaTrackingId, setGaTrackingId, addGaTrackingIdEventHandler, useDefaultDrivesUrl, setDefaultDrivesUrl, addDefaultDrivesUrlEventHandler, useDrivesPreserveStrategy, setDrivesPreserveStrategy, addDrivesPreserveStrategyEventHandler, useIsLocalDrivesEnabled, setIsLocalDrivesEnabled, addIsLocalDrivesEnabledEventHandler, useIsAddDriveEnabled, setIsAddDriveEnabled, addIsAddDriveEnabledEventHandler, useIsPublicDrivesEnabled, setIsPublicDrivesEnabled, addIsPublicDrivesEnabledEventHandler, useIsAddPublicDrivesEnabled, setIsAddPublicDrivesEnabled, addIsAddPublicDrivesEnabledEventHandler, useIsDeletePublicDrivesEnabled, setIsDeletePublicDrivesEnabled, addIsDeletePublicDrivesEnabledEventHandler, useIsCloudDrivesEnabled, setIsCloudDrivesEnabled, addIsCloudDrivesEnabledEventHandler, useIsAddCloudDrivesEnabled, setIsAddCloudDrivesEnabled, addIsAddCloudDrivesEnabledEventHandler, useIsDeleteCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, addIsDeleteCloudDrivesEnabledEventHandler, useLocalDrivesEnabled, setLocalDrivesEnabled, addLocalDrivesEnabledEventHandler, useIsAddLocalDrivesEnabled, setIsAddLocalDrivesEnabled, addIsAddLocalDrivesEnabledEventHandler, useIsDeleteLocalDrivesEnabled, setIsDeleteLocalDrivesEnabled, addIsDeleteLocalDrivesEnabledEventHandler, useIsEditorDebugModeEnabled, setIsEditorDebugModeEnabled, addIsEditorDebugModeEnabledEventHandler, useIsEditorReadModeEnabled, setIsEditorReadModeEnabled, addIsEditorReadModeEnabledEventHandler, useIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsDatabaseWorkerEnabled, addIsAnalyticsDatabaseWorkerEnabledEventHandler, useIsDiffAnalyticsEnabled, setIsDiffAnalyticsEnabled, addIsDiffAnalyticsEnabledEventHandler, useIsDriveAnalyticsEnabled, setIsDriveAnalyticsEnabled, addIsDriveAnalyticsEnabledEventHandler, useRenownUrl, setRenownUrl, addRenownUrlEventHandler, useRenownNetworkId, setRenownNetworkId, addRenownNetworkIdEventHandler, useRenownChainId, setRenownChainId, addRenownChainIdEventHandler, useSentryRelease, setSentryRelease, addSentryReleaseEventHandler, useSentryDsn, setSentryDsn, addSentryDsnEventHandler, useSentryEnv, setSentryEnv, addSentryEnvEventHandler, useIsSentryTracingEnabled, setIsSentryTracingEnabled, addIsSentryTracingEnabledEventHandler, useIsExternalProcessorsEnabled, setIsExternalProcessorsEnabled, addIsExternalProcessorsEnabledEventHandler, useIsExternalPackagesEnabled, setIsExternalPackagesEnabled, addIsExternalPackagesEnabledEventHandler, enabledEditorsEventFunctions, setEnabledEditors, useEnabledEditors, addEnabledEditorsEventHandler, disabledEditorsEventFunctions, setDisabledEditors, useDisabledEditors, addDisabledEditorsEventHandler, isRelationalProcessorsEnabled, setIsRelationalProcessorsEnabled, useIsRelationalProcessorsEnabled, addIsRelationalProcessorsEnabledEventHandler, isExternalRelationalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, addIsExternalRelationalProcessorsEnabledEventHandler, isAnalyticsEnabledEventFunctions, setIsAnalyticsEnabled, useIsAnalyticsEnabled, addIsAnalyticsEnabledEventHandler, isAnalyticsExternalProcessorsEnabled, setIsAnalyticsExternalProcessorsEnabled, useIsAnalyticsExternalProcessorsEnabled, addIsAnalyticsExternalProcessorsEnabledEventHandler, analyticsDatabaseNameEventFunctions, setAnalyticsDatabaseName, useAnalyticsDatabaseName, addAnalyticsDatabaseNameEventHandler, logLevelEventFunctions, setLogLevel2, useLogLevel, addLogLevelEventHandler, allowListEventFunctions, setAllowList, useAllowList, addAllowListEventHandler, nonUserConfigSetters, phGlobalConfigSetters, nonUserConfigHooks, phGlobalConfigHooks, reactorClientModuleEventFunctions, reactorClientEventFunctions, useReactorClientModule, setReactorClientModule, addReactorClientModuleEventHandler, useReactorClient, setReactorClient, addReactorClientEventHandler, useSync = () => useReactorClientModule()?.reactorModule?.syncModule?.syncManager, useSyncList = () => {
|
|
@@ -76270,7 +76374,7 @@ ${String(result)}`);
|
|
|
76270
76374
|
}, MAX_RETRIES = 5, RETRY_DELAY = 200, isRelationNotExistError = (error3) => {
|
|
76271
76375
|
const errorMessage = error3 instanceof Error ? error3.message : typeof error3 === "string" ? error3 : String(error3);
|
|
76272
76376
|
return errorMessage.toLowerCase().includes("relation") && errorMessage.toLowerCase().includes("does not exist");
|
|
76273
|
-
}, import_lodash, ConflictError, Slot, lightStyles, darkStyles, styles, POPOVER_GAP = 4, POPOVER_HEIGHT = 150, styles2;
|
|
76377
|
+
}, import_lodash, DEFAULT_PAGE_SIZE = 100, ConflictError, Slot, lightStyles, darkStyles, styles, POPOVER_GAP = 4, POPOVER_HEIGHT = 150, styles2;
|
|
76274
76378
|
var init_src2 = __esm(() => {
|
|
76275
76379
|
init_src();
|
|
76276
76380
|
init_src();
|
|
@@ -80250,6 +80354,64 @@ spurious results.`);
|
|
|
80250
80354
|
}
|
|
80251
80355
|
}
|
|
80252
80356
|
${PhDocumentFieldsFragmentDoc}
|
|
80357
|
+
`;
|
|
80358
|
+
GetDocumentWithOperationsDocument = gql2`
|
|
80359
|
+
query GetDocumentWithOperations(
|
|
80360
|
+
$identifier: String!
|
|
80361
|
+
$view: ViewFilterInput
|
|
80362
|
+
$operationsFilter: DocumentOperationsFilterInput
|
|
80363
|
+
$operationsPaging: PagingInput
|
|
80364
|
+
) {
|
|
80365
|
+
document(identifier: $identifier, view: $view) {
|
|
80366
|
+
document {
|
|
80367
|
+
...PHDocumentFields
|
|
80368
|
+
operations(filter: $operationsFilter, paging: $operationsPaging) {
|
|
80369
|
+
items {
|
|
80370
|
+
index
|
|
80371
|
+
timestampUtcMs
|
|
80372
|
+
hash
|
|
80373
|
+
skip
|
|
80374
|
+
error
|
|
80375
|
+
id
|
|
80376
|
+
action {
|
|
80377
|
+
id
|
|
80378
|
+
type
|
|
80379
|
+
timestampUtcMs
|
|
80380
|
+
input
|
|
80381
|
+
scope
|
|
80382
|
+
attachments {
|
|
80383
|
+
data
|
|
80384
|
+
mimeType
|
|
80385
|
+
hash
|
|
80386
|
+
extension
|
|
80387
|
+
fileName
|
|
80388
|
+
}
|
|
80389
|
+
context {
|
|
80390
|
+
signer {
|
|
80391
|
+
user {
|
|
80392
|
+
address
|
|
80393
|
+
networkId
|
|
80394
|
+
chainId
|
|
80395
|
+
}
|
|
80396
|
+
app {
|
|
80397
|
+
name
|
|
80398
|
+
key
|
|
80399
|
+
}
|
|
80400
|
+
signatures
|
|
80401
|
+
}
|
|
80402
|
+
}
|
|
80403
|
+
}
|
|
80404
|
+
}
|
|
80405
|
+
totalCount
|
|
80406
|
+
hasNextPage
|
|
80407
|
+
hasPreviousPage
|
|
80408
|
+
cursor
|
|
80409
|
+
}
|
|
80410
|
+
}
|
|
80411
|
+
childIds
|
|
80412
|
+
}
|
|
80413
|
+
}
|
|
80414
|
+
${PhDocumentFieldsFragmentDoc}
|
|
80253
80415
|
`;
|
|
80254
80416
|
GetDocumentChildrenDocument = gql2`
|
|
80255
80417
|
query GetDocumentChildren(
|
|
@@ -93611,7 +93773,7 @@ var init_package = __esm(() => {
|
|
|
93611
93773
|
package_default = {
|
|
93612
93774
|
name: "@powerhousedao/connect",
|
|
93613
93775
|
productName: "Powerhouse-Connect",
|
|
93614
|
-
version: "6.0.0-dev.
|
|
93776
|
+
version: "6.0.0-dev.89",
|
|
93615
93777
|
description: "Powerhouse Connect",
|
|
93616
93778
|
main: "dist/index.html",
|
|
93617
93779
|
type: "module",
|