@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.
@@ -7982,7 +7982,7 @@ var init_package = __esm(() => {
7982
7982
  package_default = {
7983
7983
  name: "@powerhousedao/connect",
7984
7984
  productName: "Powerhouse-Connect",
7985
- version: "6.0.0-dev.88",
7985
+ version: "6.0.0-dev.89",
7986
7986
  description: "Powerhouse Connect",
7987
7987
  main: "dist/index.html",
7988
7988
  type: "module",
@@ -28016,6 +28016,7 @@ __export(exports_src, {
28016
28016
  createUrlWithPreservedParams: () => createUrlWithPreservedParams,
28017
28017
  createProcessorQuery: () => createProcessorQuery,
28018
28018
  createClient: () => createClient,
28019
+ convertRemoteOperations: () => convertRemoteOperations,
28019
28020
  convertLegacyLibToVetraPackage: () => convertLegacyLibToVetraPackage,
28020
28021
  convertLegacyEditorModuleToVetraEditorModule: () => convertLegacyEditorModuleToVetraEditorModule,
28021
28022
  convertLegacyDocumentModelModuleToVetraDocumentModelModule: () => convertLegacyDocumentModelModuleToVetraDocumentModelModule,
@@ -31263,6 +31264,14 @@ function getSdk(client, withWrapper = defaultWrapper) {
31263
31264
  signal
31264
31265
  }), "GetDocument", "query", variables);
31265
31266
  },
31267
+ GetDocumentWithOperations(variables, requestHeaders, signal) {
31268
+ return withWrapper((wrappedRequestHeaders) => client.request({
31269
+ document: GetDocumentWithOperationsDocument,
31270
+ variables,
31271
+ requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders },
31272
+ signal
31273
+ }), "GetDocumentWithOperations", "query", variables);
31274
+ },
31266
31275
  GetDocumentChildren(variables, requestHeaders, signal) {
31267
31276
  return withWrapper((wrappedRequestHeaders) => client.request({
31268
31277
  document: GetDocumentChildrenDocument,
@@ -44594,8 +44603,10 @@ class ActionTracker {
44594
44603
 
44595
44604
  class RemoteClient {
44596
44605
  client;
44597
- constructor(client) {
44606
+ pageSize;
44607
+ constructor(client, pageSize) {
44598
44608
  this.client = client;
44609
+ this.pageSize = pageSize ?? DEFAULT_PAGE_SIZE;
44599
44610
  }
44600
44611
  async getDocument(identifier, branch) {
44601
44612
  const result = await this.client.GetDocument({
@@ -44604,9 +44615,39 @@ class RemoteClient {
44604
44615
  });
44605
44616
  return result.document ?? null;
44606
44617
  }
44607
- async getAllOperations(documentId, branch, sinceRevision, scopes) {
44618
+ async getDocumentWithOperations(identifier, branch, operationsCursor) {
44619
+ const result = await this.client.GetDocumentWithOperations({
44620
+ identifier,
44621
+ view: branch ? { branch } : undefined,
44622
+ operationsPaging: {
44623
+ limit: this.pageSize,
44624
+ cursor: operationsCursor ?? null
44625
+ }
44626
+ });
44627
+ if (!result.document)
44628
+ return null;
44629
+ const doc = result.document.document;
44630
+ const opsPage = doc.operations;
44608
44631
  const operationsByScope = {};
44609
- let cursor = undefined;
44632
+ if (opsPage) {
44633
+ for (const op of opsPage.items) {
44634
+ const scope = op.action.scope;
44635
+ (operationsByScope[scope] ??= []).push(op);
44636
+ }
44637
+ }
44638
+ return {
44639
+ document: doc,
44640
+ childIds: result.document.childIds,
44641
+ operations: {
44642
+ operationsByScope,
44643
+ cursor: opsPage?.cursor ?? undefined
44644
+ },
44645
+ hasMoreOperations: opsPage?.hasNextPage ?? false
44646
+ };
44647
+ }
44648
+ async getAllOperations(documentId, branch, sinceRevision, scopes, startCursor) {
44649
+ const operationsByScope = {};
44650
+ let cursor = startCursor ?? undefined;
44610
44651
  let hasNextPage = true;
44611
44652
  while (hasNextPage) {
44612
44653
  const result = await this.client.GetDocumentOperations({
@@ -44617,22 +44658,22 @@ class RemoteClient {
44617
44658
  scopes: scopes ?? null
44618
44659
  },
44619
44660
  paging: {
44620
- limit: 100,
44661
+ limit: this.pageSize,
44621
44662
  cursor: cursor ?? null
44622
44663
  }
44623
44664
  });
44624
44665
  const page = result.documentOperations;
44625
44666
  for (const op of page.items) {
44626
44667
  const scope = op.action.scope;
44627
- if (!operationsByScope[scope]) {
44628
- operationsByScope[scope] = [];
44629
- }
44630
- operationsByScope[scope].push(op);
44668
+ (operationsByScope[scope] ??= []).push(op);
44631
44669
  }
44632
44670
  hasNextPage = page.hasNextPage;
44633
44671
  cursor = page.cursor;
44634
44672
  }
44635
- return operationsByScope;
44673
+ return {
44674
+ operationsByScope,
44675
+ cursor: cursor ?? undefined
44676
+ };
44636
44677
  }
44637
44678
  async pushActions(documentIdentifier, actions2, branch) {
44638
44679
  const result = await this.client.MutateDocument({
@@ -44715,11 +44756,14 @@ function deserializeSignature2(s2) {
44715
44756
  parts[4] ?? ""
44716
44757
  ];
44717
44758
  }
44718
- function buildPulledDocument(remoteDoc, operationsByScope, initialDoc, branch) {
44759
+ function convertRemoteOperations(operationsByScope) {
44719
44760
  const operations = {};
44720
44761
  for (const [scope, remoteOps] of Object.entries(operationsByScope)) {
44721
44762
  operations[scope] = remoteOps.map((op) => remoteOperationToLocal(op));
44722
44763
  }
44764
+ return operations;
44765
+ }
44766
+ function buildPulledDocument(remoteDoc, operations, initialDoc, branch) {
44723
44767
  return {
44724
44768
  header: {
44725
44769
  ...initialDoc.header,
@@ -44759,6 +44803,7 @@ class RemoteDocumentController {
44759
44803
  options;
44760
44804
  documentId;
44761
44805
  remoteRevision = {};
44806
+ lastCursor;
44762
44807
  pushScheduled = false;
44763
44808
  pushQueue = Promise.resolve();
44764
44809
  listeners = [];
@@ -44766,7 +44811,7 @@ class RemoteDocumentController {
44766
44811
  this.inner = inner;
44767
44812
  this.options = options;
44768
44813
  this.documentId = options.documentId ?? "";
44769
- this.remoteClient = new RemoteClient(options.client);
44814
+ this.remoteClient = new RemoteClient(options.client, options.operationsPageSize);
44770
44815
  this.setupActionInterceptors();
44771
44816
  }
44772
44817
  get header() {
@@ -44854,14 +44899,9 @@ class RemoteDocumentController {
44854
44899
  if (this.documentId === "") {
44855
44900
  throw new Error("Cannot pull: no document ID set");
44856
44901
  }
44857
- const docResult = await this.remoteClient.getDocument(this.documentId, this.options.branch);
44858
- if (!docResult) {
44859
- throw new Error(`Document "${this.documentId}" not found on remote`);
44860
- }
44861
- const remoteDoc = docResult.document;
44862
- const operationsByScope = await this.remoteClient.getAllOperations(this.documentId, this.options.branch);
44902
+ const { remoteDoc, operations } = await this.fetchDocumentAndOperations();
44863
44903
  const initialDoc = this.inner.module.utils.createDocument();
44864
- const pulledDocument = buildPulledDocument(remoteDoc, operationsByScope, initialDoc, this.options.branch ?? "main");
44904
+ const pulledDocument = buildPulledDocument(remoteDoc, operations, initialDoc, this.options.branch ?? "main");
44865
44905
  const ControllerClass = this.inner.constructor;
44866
44906
  this.inner = new ControllerClass(pulledDocument);
44867
44907
  this.setupActionInterceptors();
@@ -44897,7 +44937,7 @@ class RemoteDocumentController {
44897
44937
  value: (input) => {
44898
44938
  const opCountsBefore = {};
44899
44939
  for (const scope in this.inner.operations) {
44900
- opCountsBefore[scope] = this.inner.operations[scope]?.length ?? 0;
44940
+ opCountsBefore[scope] = this.inner.operations[scope].length;
44901
44941
  }
44902
44942
  this.inner[actionType](input);
44903
44943
  const newOp = this.findNewOperation(opCountsBefore);
@@ -44924,7 +44964,7 @@ class RemoteDocumentController {
44924
44964
  for (const scope in ops) {
44925
44965
  const scopeOps = ops[scope];
44926
44966
  const prevCount = opCountsBefore[scope] ?? 0;
44927
- if (scopeOps && scopeOps.length > prevCount) {
44967
+ if (scopeOps.length > prevCount) {
44928
44968
  return scopeOps[scopeOps.length - 1];
44929
44969
  }
44930
44970
  }
@@ -44932,7 +44972,7 @@ class RemoteDocumentController {
44932
44972
  }
44933
44973
  getLastOperationInScope(scope, excludeOp) {
44934
44974
  const scopeOps = this.inner.operations[scope];
44935
- if (!scopeOps || scopeOps.length === 0)
44975
+ if (scopeOps.length === 0)
44936
44976
  return;
44937
44977
  for (let i2 = scopeOps.length - 1;i2 >= 0; i2--) {
44938
44978
  if (scopeOps[i2] !== excludeOp)
@@ -44953,8 +44993,8 @@ class RemoteDocumentController {
44953
44993
  const conflictingScopes = [...localScopes].filter((scope) => (currentRevision[scope] ?? 0) > (this.remoteRevision[scope] ?? 0));
44954
44994
  const scopeResults = await Promise.all(conflictingScopes.map((scope) => this.remoteClient.getAllOperations(this.documentId, this.options.branch, this.remoteRevision[scope] ?? 0, [scope])));
44955
44995
  const remoteOperations = {};
44956
- for (const result of scopeResults) {
44957
- for (const [scope, ops] of Object.entries(result)) {
44996
+ for (const { operationsByScope } of scopeResults) {
44997
+ for (const [scope, ops] of Object.entries(operationsByScope)) {
44958
44998
  remoteOperations[scope] = ops;
44959
44999
  }
44960
45000
  }
@@ -45018,6 +45058,70 @@ class RemoteDocumentController {
45018
45058
  }
45019
45059
  };
45020
45060
  }
45061
+ async fetchDocumentAndOperations() {
45062
+ const result = await this.remoteClient.getDocumentWithOperations(this.documentId, this.options.branch, this.lastCursor);
45063
+ if (!result) {
45064
+ throw new Error(`Document "${this.documentId}" not found on remote`);
45065
+ }
45066
+ const { document: remoteDoc, hasMoreOperations } = result;
45067
+ let { operations: firstPage } = result;
45068
+ const expectedRevision = extractRevisionMap(remoteDoc.revisionsList);
45069
+ if (hasMoreOperations && firstPage.cursor) {
45070
+ const remaining = await this.remoteClient.getAllOperations(this.documentId, this.options.branch, undefined, undefined, firstPage.cursor);
45071
+ for (const [scope, ops] of Object.entries(remaining.operationsByScope)) {
45072
+ (firstPage.operationsByScope[scope] ??= []).push(...ops);
45073
+ }
45074
+ firstPage = {
45075
+ operationsByScope: firstPage.operationsByScope,
45076
+ cursor: remaining.cursor
45077
+ };
45078
+ }
45079
+ if (this.lastCursor) {
45080
+ const newOps = convertRemoteOperations(firstPage.operationsByScope);
45081
+ const merged = this.mergeOperations(this.inner.operations, newOps);
45082
+ if (this.hasExpectedOperationCounts(merged, expectedRevision)) {
45083
+ this.lastCursor = firstPage.cursor;
45084
+ return { remoteDoc, operations: merged };
45085
+ }
45086
+ return this.fullFetch(remoteDoc);
45087
+ }
45088
+ this.lastCursor = firstPage.cursor;
45089
+ return {
45090
+ remoteDoc,
45091
+ operations: convertRemoteOperations(firstPage.operationsByScope)
45092
+ };
45093
+ }
45094
+ async fullFetch(remoteDoc) {
45095
+ const { operationsByScope, cursor } = await this.remoteClient.getAllOperations(this.documentId, this.options.branch);
45096
+ this.lastCursor = cursor;
45097
+ return {
45098
+ remoteDoc,
45099
+ operations: convertRemoteOperations(operationsByScope)
45100
+ };
45101
+ }
45102
+ hasExpectedOperationCounts(operations, expectedRevision) {
45103
+ for (const [scope, revision] of Object.entries(expectedRevision)) {
45104
+ const opCount = scope in operations ? operations[scope].length : 0;
45105
+ if (opCount !== revision) {
45106
+ return false;
45107
+ }
45108
+ }
45109
+ return true;
45110
+ }
45111
+ mergeOperations(existingOps, newOps) {
45112
+ const merged = {};
45113
+ for (const [scope, ops] of Object.entries(existingOps)) {
45114
+ if (ops.length > 0) {
45115
+ merged[scope] = [...ops];
45116
+ }
45117
+ }
45118
+ for (const [scope, ops] of Object.entries(newOps)) {
45119
+ if (ops.length > 0) {
45120
+ (merged[scope] ??= []).push(...ops);
45121
+ }
45122
+ }
45123
+ return merged;
45124
+ }
45021
45125
  schedulePush() {
45022
45126
  if (this.pushScheduled)
45023
45127
  return;
@@ -46239,7 +46343,7 @@ ${String(result)}`);
46239
46343
  return t3;
46240
46344
  };
46241
46345
  return __assign.apply(this, arguments);
46242
- }, 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 = () => {
46346
+ }, 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 = () => {
46243
46347
  const packageManager = useVetraPackageManager();
46244
46348
  return useSyncExternalStore32((cb) => packageManager ? packageManager.subscribe(cb) : () => {}, () => packageManager?.packages ?? []);
46245
46349
  }, 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 = () => {
@@ -47112,7 +47216,7 @@ ${String(result)}`);
47112
47216
  }, MAX_RETRIES = 5, RETRY_DELAY = 200, isRelationNotExistError = (error) => {
47113
47217
  const errorMessage = error instanceof Error ? error.message : typeof error === "string" ? error : String(error);
47114
47218
  return errorMessage.toLowerCase().includes("relation") && errorMessage.toLowerCase().includes("does not exist");
47115
- }, import_lodash, ConflictError, Slot, lightStyles, darkStyles, styles, POPOVER_GAP = 4, POPOVER_HEIGHT = 150, styles2;
47219
+ }, import_lodash, DEFAULT_PAGE_SIZE = 100, ConflictError, Slot, lightStyles, darkStyles, styles, POPOVER_GAP = 4, POPOVER_HEIGHT = 150, styles2;
47116
47220
  var init_src2 = __esm(() => {
47117
47221
  init_src();
47118
47222
  init_src();
@@ -51092,6 +51196,64 @@ spurious results.`);
51092
51196
  }
51093
51197
  }
51094
51198
  ${PhDocumentFieldsFragmentDoc}
51199
+ `;
51200
+ GetDocumentWithOperationsDocument = gql2`
51201
+ query GetDocumentWithOperations(
51202
+ $identifier: String!
51203
+ $view: ViewFilterInput
51204
+ $operationsFilter: DocumentOperationsFilterInput
51205
+ $operationsPaging: PagingInput
51206
+ ) {
51207
+ document(identifier: $identifier, view: $view) {
51208
+ document {
51209
+ ...PHDocumentFields
51210
+ operations(filter: $operationsFilter, paging: $operationsPaging) {
51211
+ items {
51212
+ index
51213
+ timestampUtcMs
51214
+ hash
51215
+ skip
51216
+ error
51217
+ id
51218
+ action {
51219
+ id
51220
+ type
51221
+ timestampUtcMs
51222
+ input
51223
+ scope
51224
+ attachments {
51225
+ data
51226
+ mimeType
51227
+ hash
51228
+ extension
51229
+ fileName
51230
+ }
51231
+ context {
51232
+ signer {
51233
+ user {
51234
+ address
51235
+ networkId
51236
+ chainId
51237
+ }
51238
+ app {
51239
+ name
51240
+ key
51241
+ }
51242
+ signatures
51243
+ }
51244
+ }
51245
+ }
51246
+ }
51247
+ totalCount
51248
+ hasNextPage
51249
+ hasPreviousPage
51250
+ cursor
51251
+ }
51252
+ }
51253
+ childIds
51254
+ }
51255
+ }
51256
+ ${PhDocumentFieldsFragmentDoc}
51095
51257
  `;
51096
51258
  GetDocumentChildrenDocument = gql2`
51097
51259
  query GetDocumentChildren(
@@ -264034,7 +264196,7 @@ var init_useRemotesInspector = __esm(() => {
264034
264196
  // src/components/modal/modals/InspectorModal/InspectorModal.tsx
264035
264197
  import { InspectorModal as ConnectInspectorModal } from "@powerhousedao/design-system/connect";
264036
264198
  import { jsxDEV as jsxDEV27 } from "react/jsx-dev-runtime";
264037
- var DEFAULT_PAGE_SIZE = 25, InspectorModal = () => {
264199
+ var DEFAULT_PAGE_SIZE2 = 25, InspectorModal = () => {
264038
264200
  const phModal = usePHModal();
264039
264201
  const open = phModal?.type === "inspector";
264040
264202
  const { getTables, getTableRows, getDefaultSort, onExportDb, onImportDb } = useDbExplorer();
@@ -264053,7 +264215,7 @@ var DEFAULT_PAGE_SIZE = 25, InspectorModal = () => {
264053
264215
  getTables,
264054
264216
  getTableRows,
264055
264217
  getDefaultSort,
264056
- pageSize: DEFAULT_PAGE_SIZE,
264218
+ pageSize: DEFAULT_PAGE_SIZE2,
264057
264219
  onExportDb,
264058
264220
  onImportDb
264059
264221
  },