@inappstory/react-sdk 1.7.1 → 1.7.3

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.
@@ -9,6 +9,29 @@ export declare enum StoryReaderSwipeStyle {
9
9
  CUBE = "cube"
10
10
  }
11
11
 
12
+ /**
13
+ * Enum representing story reader layout variants
14
+ *
15
+ * @enum {string}
16
+ * @property {string} Classic - Classic display variant (default)
17
+ * @property {string} Modern - Modern experimental display variant
18
+ *
19
+ * @example
20
+ * // Setting classic layout
21
+ * options.layout = StoryReaderLayout.Classic;
22
+ *
23
+ * @example
24
+ * // Switching to modern version
25
+ * options.layout = StoryReaderLayout.Modern;
26
+ */
27
+ export declare enum StoryReaderLayout {
28
+ /** Classic display variant (default) */
29
+ Classic = "classic",
30
+
31
+ /** Modern experimental display variant */
32
+ Modern = "modern"
33
+ }
34
+
12
35
  export type StoryReaderOptions = RecursivePartial<{
13
36
  gameReaderOptions: GameReaderOptions;
14
37
  closeButtonPosition: CloseButtonPosition | "left" | "right";
@@ -32,6 +55,19 @@ export type StoryReaderOptions = RecursivePartial<{
32
55
  * @default false
33
56
  */
34
57
  useExperimentalModernVariant: boolean;
58
+ /**
59
+ * Controls which visual layout variant to use for story display
60
+ *
61
+ * @type {StoryReaderLayout}
62
+ * @default StoryReaderLayout.Classic
63
+ *
64
+ * @property {StoryReaderLayout} [layout] - Specifies the visual presentation mode
65
+ * @remarks
66
+ * Layout behavior details:
67
+ * - `Classic`: Traditional story viewer with established UI patterns
68
+ * - `Modern`: Experimental redesign with updated interaction model
69
+ * */
70
+ layout: StoryReaderLayout;
35
71
  loader: {
36
72
  default: {
37
73
  color: string;
@@ -61,7 +61,7 @@ export declare class StoryManager {
61
61
  showSharePage(storyId: number | string): Promise<void>;
62
62
  showStory(id: number | string): Promise<void>;
63
63
  showStoryOnce(id: number | string): Promise<void>;
64
- openGame(gameInstanceId: string, gameOptions?: { demoMode?: boolean }): Promise<void>;
64
+ openGame(gameInstanceId: string | number, gameOptions?: { demoMode?: boolean }): Promise<void>;
65
65
  closeGame(): Promise<boolean>;
66
66
  closeStoryReader(): Promise<boolean | undefined>;
67
67
  closeGoodsWidget(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "React SDK",
5
5
  "keywords": [
6
6
  "stories",
@@ -54,7 +54,7 @@
54
54
  "Samsung >= 5"
55
55
  ],
56
56
  "dependencies": {
57
- "@inappstory/slide-api": "^0.1.17",
57
+ "@inappstory/slide-api": "^0.1.18",
58
58
  "async-mutex": "^0.5.0",
59
59
  "bowser": "^2.11.0",
60
60
  "classnames": "^2.5.1",