@inappstory/react-sdk 0.3.4 → 0.3.5

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,3 +1,5 @@
1
+ import { RecursivePartial } from "../global"
2
+
1
3
  export declare enum CloseButtonPosition {
2
4
  LEFT = "left",
3
5
  RIGHT = "right"
@@ -1,5 +1,6 @@
1
1
 
2
2
  import { CloseButtonPosition } from "./appearanceCommon";
3
+ import { RecursivePartial } from "../global"
3
4
 
4
5
  export type GameReaderOptions = RecursivePartial<{
5
6
  loader: {
@@ -1,3 +1,5 @@
1
+ import { RecursivePartial } from "../global"
2
+
1
3
  export type Goods = Partial<{
2
4
  imgSrc: string;
3
5
  title: string;
@@ -3,3 +3,4 @@ export * from "./gameReader"
3
3
  export * from "./goodsWidget"
4
4
  export * from "./storiesList"
5
5
  export * from "./storyReader"
6
+ export * from "./overrideByMediaQuery"
@@ -1,8 +1,8 @@
1
1
  import { AppearanceCommonOptions } from "./appearanceCommon";
2
- export { GameReaderOptions } from "./gameReader";
3
- export { GoodsWidgetOptions } from "./goodsWidget";
4
- export { StoriesListOptions } from "./storiesList";
5
- export { StoryReaderOptions } from "./storyReader";
2
+ import { GameReaderOptions } from "./gameReader";
3
+ import { GoodsWidgetOptions } from "./goodsWidget";
4
+ import { StoriesListOptions } from "./storiesList";
5
+ import { StoryReaderOptions } from "./storyReader";
6
6
 
7
7
  export type OverrideByMediaQuery<
8
8
  Options extends
@@ -1,3 +1,5 @@
1
+ import { Option, RecursivePartial } from "../global"
2
+
1
3
  export declare enum StoriesListSliderAlign {
2
4
  CENTER = "center",
3
5
  LEFT = "left",
@@ -1,6 +1,7 @@
1
1
  import { CloseButtonPosition } from "./appearanceCommon";
2
2
  import { GameReaderOptions } from "./gameReader";
3
3
  import { SharePanel } from "./sharePanel"
4
+ import { Nullable, RecursivePartial } from "../global"
4
5
 
5
6
  export declare enum StoryReaderSwipeStyle {
6
7
  FLAT = "flat",
@@ -1,11 +1,11 @@
1
- declare type RecursivePartial<T> = {
1
+ export type RecursivePartial<T> = {
2
2
  [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> | null : T[P] | null;
3
3
  };
4
4
 
5
- declare type Nullable<T> = T | null;
6
- declare type Optional<T> = T | null;
7
- declare type Option<T> = T | null;
5
+ export type Nullable<T> = T | null;
6
+ export type Optional<T> = T | null;
7
+ export type Option<T> = T | null;
8
8
 
9
- declare type Dict<K extends string | number | symbol = string, T = any> = Record<K, T>
9
+ export type Dict<K extends string | number | symbol = string, T = any> = Record<K, T>;
10
10
 
11
- declare type Brand<T, B extends string> = T & { readonly __brand: B }
11
+ export type Brand<T, B extends string> = T & { readonly __brand: B };
@@ -1,4 +1,4 @@
1
- import { StoryManager, StoryManagerConfig } from "..";
1
+ import { StoryManagerConfig } from "..";
2
2
  import { StoryManagerEventsProps } from "./storyManagerEventsProps";
3
3
  import { AppearanceOptionsProps } from "./appearanceOptionsProps";
4
4
 
@@ -2,7 +2,8 @@ import {
2
2
  AppearanceCommonOptions,
3
3
  GameReaderOptions,
4
4
  GoodsWidgetOptions,
5
- StoryReaderOptions
5
+ StoryReaderOptions,
6
+ OverrideByMediaQuery
6
7
  } from "../appearance-manager";
7
8
 
8
9
  export interface AppearanceOptionsProps {
@@ -1,4 +1,3 @@
1
- import "./global.d.ts";
2
1
  export * from "./appearance-manager";
3
2
  export * from "./story-list";
4
3
  export * from "./share-page";
@@ -7,7 +7,7 @@ import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery
7
7
 
8
8
  interface StoryListProps {
9
9
  options: StoriesListOptions;
10
- optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>
10
+ optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
11
11
  feedSlug: string;
12
12
  testKey?: string;
13
13
  onUgcCardClick?: () => void;
@@ -2,12 +2,11 @@ import { StoriesListOptions } from "..";
2
2
  import { NavigationViewModel } from "./navigationViewModel";
3
3
  import { StoryCardViewModel } from "./storyCardViewModel";
4
4
  import { StoryListLoadStatus } from "./storyListLoadStatus";
5
- import { StoryListViewModel } from "./storyListViewModel";
6
- import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery";
5
+ import { OverrideByMediaQuery } from "../appearance-manager";
7
6
 
8
7
  interface UGCStoryListProps {
9
8
  options?: StoriesListOptions;
10
- optionsOverrideByMediaQuery?: OverrideByMediaQueryCommon<StoriesListOptions>[]
9
+ optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
11
10
  testKey?: string;
12
11
  onUgcCardClick?: () => void;
13
12
  useUgcCard?: boolean;
@@ -5,6 +5,4 @@ export * from './navigationViewModel.d';
5
5
  export * from './storyCardViewModel.d';
6
6
  export * from './StoryList.d';
7
7
  export * from './storyListLoadStatus';
8
- export * from './storyListViewModel.d';
9
8
  export * from './UGCStoryList.d';
10
- export * from './viewModel.d';
@@ -1,5 +1,4 @@
1
1
  import { StoriesListCardOptions } from "../appearance-manager";
2
- import { ViewModel } from "./viewModel";
3
2
 
4
3
  export interface StoryCardViewModel {
5
4
  id: number;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
1
  {
2
- "name": "@inappstory/react-sdk",
3
- "version": "0.3.4",
4
- "description": "React SDK",
5
- "main": "dist/index.js",
6
- "types": "dist/types/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "license": "MIT",
11
- "keywords": [
12
- "stories",
13
- "stories SDK",
14
- "InAppStory"
15
- ],
16
- "author": "Inappstory",
17
- "maintainers": [
18
- {
19
- "name": "Inappstory",
20
- "email": "dev@inappstory.com"
21
- }
22
- ],
23
- "homepage": "https://inappstory.com",
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/inappstory/react-web-sdk.git"
27
- },
28
- "bugs": "https://github.com/inappstory/react-web-sdk/issues",
29
- "dependencies": {
30
- "@inappstory/slide-api": "^0.0.8",
31
- "@emotion/cache": "^11.11.0",
32
- "@emotion/react": "^11.11.1",
33
- "@emotion/styled": "^11.11.0",
34
- "bowser": "^2.4.0",
35
- "classnames": "^2.5.1",
36
- "lodash": "^4.17.21",
37
- "parse-css-sides": "^3.0.1",
38
- "react-input-mask": "^2.0.4",
39
- "uuid": "^8.1.0",
40
- "effector": "^23.2.2"
41
- },
42
- "peerDependencies": {
43
- "react": ">=17.0.2",
44
- "react-dom": ">=17.0.2"
45
- },
46
- "devDependencies": {},
47
- "scripts": {},
48
- "browserslist": [
49
- "Android >= 5",
50
- "IOS >= 11",
51
- "Safari >= 11",
52
- "Chrome >= 49",
53
- "Firefox >= 31",
54
- "Samsung >= 5"
55
- ]
2
+ "name": "@inappstory/react-sdk",
3
+ "version": "0.3.5",
4
+ "description": "React SDK",
5
+ "main": "dist/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "stories",
13
+ "stories SDK",
14
+ "InAppStory"
15
+ ],
16
+ "author": "Inappstory",
17
+ "maintainers": [
18
+ {
19
+ "name": "Inappstory",
20
+ "email": "dev@inappstory.com"
21
+ }
22
+ ],
23
+ "homepage": "https://inappstory.com",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/inappstory/react-web-sdk.git"
27
+ },
28
+ "bugs": "https://github.com/inappstory/react-web-sdk/issues",
29
+ "dependencies": {
30
+ "@inappstory/slide-api": "^0.0.8",
31
+ "@emotion/cache": "^11.11.0",
32
+ "@emotion/react": "^11.11.1",
33
+ "@emotion/styled": "^11.11.0",
34
+ "bowser": "^2.4.0",
35
+ "classnames": "^2.5.1",
36
+ "lodash": "^4.17.21",
37
+ "parse-css-sides": "^3.0.1",
38
+ "react-input-mask": "^2.0.4",
39
+ "uuid": "^8.1.0",
40
+ "effector": "^23.2.2"
41
+ },
42
+ "peerDependencies": {
43
+ "react": ">=17.0.2",
44
+ "react-dom": ">=17.0.2"
45
+ },
46
+ "devDependencies": {},
47
+ "scripts": {},
48
+ "browserslist": [
49
+ "Android >= 5",
50
+ "IOS >= 11",
51
+ "Safari >= 11",
52
+ "Chrome >= 49",
53
+ "Firefox >= 31",
54
+ "Samsung >= 5"
55
+ ]
56
56
  }
@@ -1,7 +0,0 @@
1
- import { AppearanceManager, StoryManager } from "..";
2
-
3
- interface GameReaderProps {
4
- storyManager: StoryManager;
5
- appearanceManager: AppearanceManager;
6
- }
7
- export declare const GameReader: (props: GameReaderProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from "./gameReader"