@inappstory/react-sdk 0.0.1 → 0.0.2

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,16 +1,16 @@
1
- import { AppearanceManager, StoryManager } from "..";
2
- import { StoryListLoadStatus } from "./storyListLoadStatus";
3
- import { StoryListViewModel } from "./storyListViewModel.d";
4
-
5
- interface UGCStoryListProps {
6
- storyManager: StoryManager;
7
- appearanceManager: AppearanceManager;
8
- testKey?: string;
9
- ugcCardClickHandler?: () => void;
10
- useUgcCard?: boolean;
11
- filter?: Record<string, any>;
12
- onLoadStart?: () => void;
13
- onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
14
- viewModelExporter?: (storyListViewModel: StoryListViewModel) => void;
15
- }
1
+ import { AppearanceManager, StoryManager } from "..";
2
+ import { StoryListLoadStatus } from "./storyListLoadStatus";
3
+ import { StoryListViewModel } from "./storyListViewModel.d";
4
+
5
+ interface UGCStoryListProps {
6
+ storyManager: StoryManager;
7
+ appearanceManager: AppearanceManager;
8
+ testKey?: string;
9
+ ugcCardClickHandler?: () => void;
10
+ useUgcCard?: boolean;
11
+ filter?: Record<string, any>;
12
+ onLoadStart?: () => void;
13
+ onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
14
+ viewModelExporter?: (storyListViewModel: StoryListViewModel) => void;
15
+ }
16
16
  export declare const UGCStoryListMain: ({ storyManager, appearanceManager, useUgcCard, filter, ugcCardClickHandler, viewModelExporter, onLoadStart, onLoadEnd }: UGCStoryListProps) => JSX.Element;
@@ -1,21 +1,21 @@
1
- export type StoryManagerConfig = {
2
- appPackageId?: string;
3
- apiKey: string;
4
- userId?: Optional<string | number>;
5
- tags?: Optional<Array<string>>;
6
- placeholders?: Optional<Dict<string, string>>;
7
- imagePlaceholders?: Optional<Dict<string, string>>;
8
- lang?: Optional<"ru" | "en">;
9
- nonce?: string;
10
- };
11
-
12
- export type UgcEditorConfig = {
13
- sessionId: string;
14
- apiKey: string;
15
- editor: Record<any, any>;
16
- sdkVersion: string;
17
- appPackageId?: string;
18
- deviceId: string;
19
- userId?: string;
20
- lang: string;
1
+ export type StoryManagerConfig = {
2
+ appPackageId?: string;
3
+ apiKey: string;
4
+ userId?: Optional<string | number>;
5
+ tags?: Optional<Array<string>>;
6
+ placeholders?: Optional<Dict<string, string>>;
7
+ imagePlaceholders?: Optional<Dict<string, string>>;
8
+ lang?: Optional<"ru" | "en">;
9
+ nonce?: string;
10
+ };
11
+
12
+ export type UgcEditorConfig = {
13
+ sessionId: string;
14
+ apiKey: string;
15
+ editor: Record<any, any>;
16
+ sdkVersion: string;
17
+ appPackageId?: string;
18
+ deviceId: string;
19
+ userId?: string;
20
+ lang: string;
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "React SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -30,25 +30,12 @@
30
30
  "@emotion/cache": "^11.11.0",
31
31
  "@emotion/react": "^11.11.1",
32
32
  "@emotion/styled": "^11.11.0",
33
- "array.prototype.find": "^2.1.1",
34
33
  "bowser": "^2.4.0",
35
- "build-url": "^1.3.3",
36
- "classlist-polyfill": "^1.2.0",
37
34
  "classnames": "^2.5.1",
38
- "config": "^2.0.2",
39
- "core-js": "^3.25.5",
40
35
  "css-font-parser": "^2.0.0",
41
36
  "effector": "^22.1.2",
42
- "effector-react": "^22.0.4",
43
- "element-closest-polyfill": "^1.0.2",
44
- "es6-object-assign": "^1.1.0",
45
- "es6-promise": "^4.2.8",
46
37
  "lodash": "^4.17.21",
47
- "lodash-es": "^4.17.14",
48
- "normalize.css": "^8.0.1",
49
38
  "parse-css-sides": "^3.0.1",
50
- "regenerator-runtime": "^0.13.7",
51
- "ts-node": "^10.9.2",
52
39
  "uuid": "^8.1.0"
53
40
  },
54
41
  "peerDependencies": {