@inappstory/js-sdk 3.0.0-rc.2 → 3.1.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.
@@ -12,6 +12,7 @@ export declare enum StoryLinkSource {
12
12
  export type StoryManagerConfig = {
13
13
  apiKey: string;
14
14
  userId?: string | number;
15
+ userIdSign?: string;
15
16
  tags?: Array<string>;
16
17
  placeholders?: Record<string, string>;
17
18
  imagePlaceholders?: Record<string, string>;
@@ -67,6 +68,11 @@ export declare class StoryManager {
67
68
  closeGoodsWidget(): void;
68
69
  getUgcEditorConfig(): Promise<UgcEditorConfig>;
69
70
  getNonce(): string | undefined;
71
+ setUserId(userId: string | number, sign?: string): Promise<void>;
72
+ setLang(lang: string): void;
73
+ setTags(tags: string[]): void;
74
+ setPlaceholders(placeholders: Dict<string, string>): void;
75
+ setImagePlaceholders(imagePlaceholders: Dict<string, string>): void;
70
76
  on<Event extends keyof PublicEvents>(eventName: Event, listener: PublicEventHandler<Event>): this;
71
77
  once<Event extends keyof PublicEvents>(eventName: Event, listener: PublicEventHandler<Event>): this;
72
78
  off<Event extends keyof PublicEvents>(eventName: Event, listener: PublicEventHandler<Event>): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/js-sdk",
3
- "version": "3.0.0-rc.2",
3
+ "version": "3.1.0",
4
4
  "description": "JS SDK",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.mjs",
@@ -51,7 +51,9 @@
51
51
  "react-input-mask": "^2.0.4",
52
52
  "uuid": "^10.0.0",
53
53
  "react": "^18.2.0",
54
- "react-dom": "^18.2.0"
54
+ "react-dom": "^18.2.0",
55
+ "mobx-react-lite": "^4.1.0",
56
+ "mobx": "^6.9.0"
55
57
  },
56
58
  "devDependencies": {},
57
59
  "scripts": {},