hyperstack-react 0.5.10 → 0.6.0

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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import * as hyperstack_typescript from 'hyperstack-typescript';
2
3
  import { WalletAdapter, Schema, StackDefinition, ConnectionState, HyperStack, InstructionExecutorOptions, ExecutionResult, InstructionExecutor, StorageAdapter, StorageAdapterConfig, UpdateCallback, RichUpdateCallback, Update, RichUpdate, ViewSortConfig, ViewGroup, ViewDef, InstructionHandler } from 'hyperstack-typescript';
3
4
  export { AccountCategory, AccountMeta, AccountResolutionOptions, AccountResolutionResult, ArgSchema, ArgType, BuiltInstruction, ConfirmationLevel, ConnectionManager, ConnectionState, DEFAULT_CONFIG, DEFAULT_MAX_ENTRIES_PER_VIEW, EntityFrame, ErrorMetadata, ExecuteOptions, ExecutionResult, Frame, FrameMode, FrameOp, FrameProcessor, FrameProcessorConfig, HyperStack, HyperStackConfig, HyperStackError, HyperStackOptions, HyperStackOptionsWithStorage, InstructionDefinition, InstructionExecutor, InstructionExecutorOptions, InstructionHandler, MemoryAdapter, PdaConfig, PdaSeed, ProgramError, ResolvedAccount, ResolvedAccounts, RichUpdate, RichUpdateCallback, Schema, SnapshotEntity, SnapshotFrame, StackDefinition, StorageAdapter, StorageAdapterConfig, Subscription, SubscriptionRegistry, Update, UpdateCallback, ViewDef, ViewGroup, WalletAdapter, WalletConnectOptions, WalletState, createInstructionExecutor, createPublicKeySeed, createSeed, derivePda, executeInstruction, formatProgramError, isSnapshotFrame, isValidFrame, parseFrame, parseFrameFromBlob, parseInstructionError, resolveAccounts, serializeInstructionData, validateAccountResolution, waitForConfirmation } from 'hyperstack-typescript';
4
5
  import { UseBoundStore, StoreApi } from 'zustand';
@@ -28,6 +29,8 @@ interface HyperstackConfig {
28
29
  maxReconnectAttempts?: number;
29
30
  maxEntriesPerView?: number | null;
30
31
  flushIntervalMs?: number;
32
+ /** Authentication configuration */
33
+ auth?: hyperstack_typescript.AuthConfig;
31
34
  }
32
35
  /**
33
36
  * Options for useHyperstack hook
@@ -42,6 +45,12 @@ interface ViewHookOptions<TSchema = unknown> {
42
45
  refreshOnReconnect?: boolean;
43
46
  /** Schema to validate entities. Returns undefined if validation fails. */
44
47
  schema?: Schema<TSchema>;
48
+ /** Whether to include initial snapshot (defaults to true) */
49
+ withSnapshot?: boolean;
50
+ /** Cursor for resuming from a specific point (_seq value) */
51
+ after?: string;
52
+ /** Maximum number of entities to include in snapshot */
53
+ snapshotLimit?: number;
45
54
  }
46
55
  interface ViewHookResult<T> {
47
56
  data: T | undefined;
@@ -57,6 +66,12 @@ interface ListParamsBase<TSchema = unknown> {
57
66
  skip?: number;
58
67
  /** Schema to validate/filter entities. Only entities passing safeParse will be returned. */
59
68
  schema?: Schema<TSchema>;
69
+ /** Whether to include initial snapshot (defaults to true) */
70
+ withSnapshot?: boolean;
71
+ /** Cursor for resuming from a specific point (_seq value) */
72
+ after?: string;
73
+ /** Maximum number of entities to include in snapshot */
74
+ snapshotLimit?: number;
60
75
  }
61
76
  interface ListParamsSingle<TSchema = unknown> extends ListParamsBase<TSchema> {
62
77
  take: 1;