@noya-app/noya-multiplayer-react 0.1.77 → 0.1.78

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.mts CHANGED
@@ -66,6 +66,8 @@ declare function useBindNoyaManager<S, M extends object = object, E extends obje
66
66
  deleteAsset: typeof noyaManager.assetManager.delete;
67
67
  assets: {
68
68
  contentType?: string | undefined;
69
+ mode?: "immutable" | "mutable" | undefined;
70
+ version?: number | undefined;
69
71
  id: string;
70
72
  createdAt: string;
71
73
  stableId: string;
@@ -93,6 +95,8 @@ declare function useMultiplayerState<S, M extends object = object, E extends obj
93
95
  deleteAsset: (id: string) => Promise<_noya_app_state_manager.NoyaAsset | undefined>;
94
96
  assets: {
95
97
  contentType?: string | undefined;
98
+ mode?: "immutable" | "mutable" | undefined;
99
+ version?: number | undefined;
96
100
  id: string;
97
101
  createdAt: string;
98
102
  stableId: string;
@@ -171,9 +175,12 @@ declare function getSyncAdapter<S, M extends object = object, E extends object =
171
175
  debug?: boolean;
172
176
  policyAuthContext?: PolicyAuthContext;
173
177
  serverScripts?: LocalStorageSyncOptions["serverScripts"];
178
+ git?: LocalStorageSyncOptions["git"];
174
179
  }): SyncAdapter<S, M, E, MenuT, I>;
175
180
  type UseNoyaStateOptions<S, M extends object = object, E extends object = object, MenuT extends string = string, I extends Record<string, any> = Record<string, unknown>> = UseMultiplayerStateOptions<S, M, E, MenuT, I> & {
176
181
  offlineStorageKey?: string;
182
+ serverScripts?: LocalStorageSyncOptions["serverScripts"];
183
+ git?: LocalStorageSyncOptions["git"];
177
184
  };
178
185
  type UseNoyaStateResult<S, M extends object = object, E extends object = object, MenuT extends string = string, I extends Record<string, any> = Record<string, unknown>> = [
179
186
  ReturnType<typeof useBindNoyaManager<S, M, E, MenuT, I>>[0],
@@ -225,6 +232,8 @@ declare function useColorScheme(): AppTheme;
225
232
  declare function useViewType(): AppViewType;
226
233
  declare function useAssets(): {
227
234
  contentType?: string | undefined;
235
+ mode?: "immutable" | "mutable" | undefined;
236
+ version?: number | undefined;
228
237
  id: string;
229
238
  createdAt: string;
230
239
  stableId: string;
@@ -236,6 +245,8 @@ declare function useAssets(): {
236
245
  }[];
237
246
  declare function useAsset(id: string | undefined): {
238
247
  contentType?: string | undefined;
248
+ mode?: "immutable" | "mutable" | undefined;
249
+ version?: number | undefined;
239
250
  id: string;
240
251
  createdAt: string;
241
252
  stableId: string;
@@ -482,6 +493,7 @@ type AnyNoyaSingletonOptions<S, M extends object, E extends object, MenuT extend
482
493
  offlineStorageKey?: string;
483
494
  multiplayerUrl?: string;
484
495
  serverScripts?: LocalStorageSyncOptions["serverScripts"];
496
+ git?: LocalStorageSyncOptions["git"];
485
497
  };
486
498
  declare function initializeNoyaSingleton<S, M extends object, E extends object, MenuT extends string, I extends Record<string, any> = Record<string, unknown>>(options?: AnyNoyaSingletonOptions<S, M, E, MenuT, I>): void;
487
499
  declare function getNoyaManagerSingleton(): NoyaManager<any, any, any, any, any>;
package/dist/index.d.ts CHANGED
@@ -66,6 +66,8 @@ declare function useBindNoyaManager<S, M extends object = object, E extends obje
66
66
  deleteAsset: typeof noyaManager.assetManager.delete;
67
67
  assets: {
68
68
  contentType?: string | undefined;
69
+ mode?: "immutable" | "mutable" | undefined;
70
+ version?: number | undefined;
69
71
  id: string;
70
72
  createdAt: string;
71
73
  stableId: string;
@@ -93,6 +95,8 @@ declare function useMultiplayerState<S, M extends object = object, E extends obj
93
95
  deleteAsset: (id: string) => Promise<_noya_app_state_manager.NoyaAsset | undefined>;
94
96
  assets: {
95
97
  contentType?: string | undefined;
98
+ mode?: "immutable" | "mutable" | undefined;
99
+ version?: number | undefined;
96
100
  id: string;
97
101
  createdAt: string;
98
102
  stableId: string;
@@ -171,9 +175,12 @@ declare function getSyncAdapter<S, M extends object = object, E extends object =
171
175
  debug?: boolean;
172
176
  policyAuthContext?: PolicyAuthContext;
173
177
  serverScripts?: LocalStorageSyncOptions["serverScripts"];
178
+ git?: LocalStorageSyncOptions["git"];
174
179
  }): SyncAdapter<S, M, E, MenuT, I>;
175
180
  type UseNoyaStateOptions<S, M extends object = object, E extends object = object, MenuT extends string = string, I extends Record<string, any> = Record<string, unknown>> = UseMultiplayerStateOptions<S, M, E, MenuT, I> & {
176
181
  offlineStorageKey?: string;
182
+ serverScripts?: LocalStorageSyncOptions["serverScripts"];
183
+ git?: LocalStorageSyncOptions["git"];
177
184
  };
178
185
  type UseNoyaStateResult<S, M extends object = object, E extends object = object, MenuT extends string = string, I extends Record<string, any> = Record<string, unknown>> = [
179
186
  ReturnType<typeof useBindNoyaManager<S, M, E, MenuT, I>>[0],
@@ -225,6 +232,8 @@ declare function useColorScheme(): AppTheme;
225
232
  declare function useViewType(): AppViewType;
226
233
  declare function useAssets(): {
227
234
  contentType?: string | undefined;
235
+ mode?: "immutable" | "mutable" | undefined;
236
+ version?: number | undefined;
228
237
  id: string;
229
238
  createdAt: string;
230
239
  stableId: string;
@@ -236,6 +245,8 @@ declare function useAssets(): {
236
245
  }[];
237
246
  declare function useAsset(id: string | undefined): {
238
247
  contentType?: string | undefined;
248
+ mode?: "immutable" | "mutable" | undefined;
249
+ version?: number | undefined;
239
250
  id: string;
240
251
  createdAt: string;
241
252
  stableId: string;
@@ -482,6 +493,7 @@ type AnyNoyaSingletonOptions<S, M extends object, E extends object, MenuT extend
482
493
  offlineStorageKey?: string;
483
494
  multiplayerUrl?: string;
484
495
  serverScripts?: LocalStorageSyncOptions["serverScripts"];
496
+ git?: LocalStorageSyncOptions["git"];
485
497
  };
486
498
  declare function initializeNoyaSingleton<S, M extends object, E extends object, MenuT extends string, I extends Record<string, any> = Record<string, unknown>>(options?: AnyNoyaSingletonOptions<S, M, E, MenuT, I>): void;
487
499
  declare function getNoyaManagerSingleton(): NoyaManager<any, any, any, any, any>;