@inappstory/react-sdk 1.5.5 → 1.5.7

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.
@@ -1,6 +1,5 @@
1
1
  export * from "./appearance-manager";
2
2
  export * from "./story-list";
3
- export * from "./share-page";
4
3
  export * from "./storyManager";
5
4
  export * from "./ias-container";
6
5
  export * from "./in-app-messaging"
@@ -1,5 +1,4 @@
1
1
  import { PublicEventHandler, PublicEvents } from "./ias-container";
2
- import { SharePage, SharePageOptions } from "./share-page";
3
2
  import { InAppMessaging } from "./in-app-messaging/inAppMessaging";
4
3
 
5
4
  export declare enum LinkSource {
@@ -58,7 +57,7 @@ export declare class StoryManager {
58
57
  feed?: Option<string>;
59
58
  filter?: Option<Record<string, any>>;
60
59
  }>;
61
- showSharePage(storyId: number, options?: SharePageOptions): SharePage;
60
+ showSharePage(storyId: number | string): Promise<void>;
62
61
  showStory(id: number | string): Promise<void>;
63
62
  showStoryOnce(id: number | string): Promise<void>;
64
63
  openGame(gameInstanceId: string, gameOptions?: { demoMode?: boolean }): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "React SDK",
5
5
  "keywords": [
6
6
  "stories",
@@ -1 +0,0 @@
1
- export { SharePage, SharePageOptions } from "./sharePage"
@@ -1,9 +0,0 @@
1
- import { EventEmitter } from "events";
2
-
3
- export type SharePageOptions = {
4
- handleStartLoad?: () => void;
5
- handleStopLoad?: (result: boolean) => void;
6
- handleStoryReaderClose?: () => void;
7
- }
8
-
9
- export declare class SharePage extends EventEmitter {}