@inappstory/game-center-api 1.3.37 → 1.3.39

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.
@@ -56,5 +56,6 @@ export type GameLaunchConfig = {
56
56
  userAgent: string;
57
57
  userId: string;
58
58
  nonce?: string;
59
+ variables?: Record<string, any>;
59
60
  };
60
61
  };
@@ -39,7 +39,7 @@ export declare class DynamicResourceAssets extends DynamicResourceList {
39
39
  protected rawMapGetter(): Record<string, string>;
40
40
  }
41
41
  export declare const dynamicResourceAssets: DynamicResourceAssets;
42
- export declare const getDynamicResourceAsset: (key: string, defaultValue: any) => any;
42
+ export declare const getDynamicResourceAsset: <T>(key: string, defaultValue: T) => string | T;
43
43
  export declare enum PrimaryFontVariants {
44
44
  NormalNormal = "InternalPrimaryFontNormalNormal",
45
45
  BoldNormal = "InternalPrimaryFontBoldNormal",
package/lib/index.d.ts CHANGED
@@ -64,7 +64,7 @@ declare const GameCenterApi: {
64
64
  type: string;
65
65
  }[]) => Promise<boolean>;
66
66
  vibrate: (duration: number | number[] | null, fallbackStyle?: "impactLight" | "impactMedium" | "impactHeavy" | "selection" | "notificationSuccess" | "notificationWarning" | "notificationError" | undefined) => void;
67
- getDynamicResourceAsset: (key: string, defaultValue: any) => any;
67
+ getDynamicResourceAsset: <T>(key: string, defaultValue: T) => string | T;
68
68
  getDynamicResourceFont: (key: import("./gameResources").PrimaryFontVariants | import("./gameResources").SecondaryFontVariants) => string | null;
69
69
  getProjectFontFamilyStylesheet: () => import("./gameResources").ProjectFontFamily;
70
70
  getIsDemoMode: typeof getIsDemoMode;
@@ -83,7 +83,7 @@ declare const GameCenterApi: {
83
83
  StaticResourceList: typeof StaticResourceList;
84
84
  eventGame: (payload: Record<string, any>) => void;
85
85
  reloadGameReader: () => void;
86
- openFilePicker: <T extends FilePickerResultType = FilePickerResultType.FileList | FilePickerResultType.LocalFileList>({ accept, multiple, resultAsFiles, lang, }: import("./sdkApi/filePicker.h").OpenFilePickerProps) => Promise<import("./sdkApi/filePicker.h").FilePickerResult<T>>;
86
+ openFilePicker: <T_1 extends FilePickerResultType = FilePickerResultType.FileList | FilePickerResultType.LocalFileList>({ accept, multiple, resultAsFiles, lang, }: import("./sdkApi/filePicker.h").OpenFilePickerProps) => Promise<import("./sdkApi/filePicker.h").FilePickerResult<T_1>>;
87
87
  FilePickerResultType: typeof FilePickerResultType;
88
88
  isFilePickerResultFileList: typeof isFilePickerResultFileList;
89
89
  isFilePickerResultLocalFileList: typeof isFilePickerResultLocalFileList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/game-center-api",
3
- "version": "1.3.37",
3
+ "version": "1.3.39",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@sentry/browser": "^9.5.0",