@inappstory/react-sdk 0.4.3 → 0.5.1

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.
Files changed (30) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +18 -18
  3. package/dist/index.js +27 -31
  4. package/dist/types/appearance-manager/appearanceCommon.d.ts +29 -29
  5. package/dist/types/appearance-manager/gameReader.d.ts +31 -31
  6. package/dist/types/appearance-manager/goodsWidget.d.ts +45 -45
  7. package/dist/types/appearance-manager/index.d.ts +5 -5
  8. package/dist/types/appearance-manager/sharePanel.d.ts +43 -43
  9. package/dist/types/appearance-manager/storiesList.d.ts +156 -156
  10. package/dist/types/appearance-manager/storyReader.ts +73 -73
  11. package/dist/types/global.d.ts +10 -10
  12. package/dist/types/ias-container/IasContainer.d.ts +10 -10
  13. package/dist/types/ias-container/appearanceOptionsProps.d.ts +13 -13
  14. package/dist/types/ias-container/index.d.ts +1 -1
  15. package/dist/types/ias-container/publicEvents.d.ts +86 -86
  16. package/dist/types/ias-container/storyManagerEventsProps.d.ts +31 -31
  17. package/dist/types/index.d.ts +5 -5
  18. package/dist/types/share-page/sharePage.d.ts +9 -9
  19. package/dist/types/story-list/FavoriteStoryList.d.ts +11 -11
  20. package/dist/types/story-list/StoryList.d.ts +24 -24
  21. package/dist/types/story-list/UGCStoryList.d.ts +21 -21
  22. package/dist/types/story-list/favoriteCardCompositeViewModel.ts +5 -5
  23. package/dist/types/story-list/favoriteStoryCardViewModel.d.ts +3 -3
  24. package/dist/types/story-list/index.d.ts +8 -8
  25. package/dist/types/story-list/navigationViewModel.d.ts +12 -12
  26. package/dist/types/story-list/storyCardViewModel.d.ts +32 -32
  27. package/dist/types/story-list/storyListApi.d.ts +2 -2
  28. package/dist/types/story-list/storyListLoadStatus.ts +11 -11
  29. package/dist/types/storyManager.d.ts +41 -41
  30. package/package.json +3 -3
@@ -1,73 +1,73 @@
1
- import { CloseButtonPosition } from "./appearanceCommon";
2
- import { GameReaderOptions } from "./gameReader";
3
- import { SharePanel } from "./sharePanel"
4
- import { Nullable, RecursivePartial } from "../global"
5
-
6
- export declare enum StoryReaderSwipeStyle {
7
- FLAT = "flat",
8
- COVER = "cover",
9
- CUBE = "cube"
10
- }
11
-
12
- export type StoryReaderOptions = RecursivePartial<{
13
- gameReaderOptions: GameReaderOptions;
14
- closeButtonPosition: CloseButtonPosition | "left" | "right";
15
- scrollStyle: StoryReaderSwipeStyle | "flat" | "cover" | "cube";
16
- timelineBlockTopOffset: Nullable<number>;
17
- actionPanelBottomOffset: Nullable<number>;
18
- borderRadius: number;
19
- loader: {
20
- default: {
21
- color: string;
22
- accentColor: string;
23
- };
24
- custom: string;
25
- };
26
- recycleStoriesList: boolean;
27
- closeOnLastSlideByTimer: boolean;
28
- sharePanel: SharePanel<string>;
29
- commonBackdrop: {
30
- color: string;
31
- backdropFilter: string;
32
- };
33
- slideBackdrop: {
34
- opacity: number;
35
- blur: number;
36
- linearGradientOverlay: string[];
37
- };
38
- faviconApiUrl: string;
39
- closeButton: {
40
- svgSrc: {
41
- baseState: string;
42
- };
43
- };
44
- likeButton: {
45
- svgSrc: {
46
- baseState: string;
47
- activeState: string;
48
- };
49
- };
50
- dislikeButton: {
51
- svgSrc: {
52
- baseState: string;
53
- activeState: string;
54
- };
55
- };
56
- favoriteButton: {
57
- svgSrc: {
58
- baseState: string;
59
- activeState: string;
60
- };
61
- };
62
- muteButton: {
63
- svgSrc: {
64
- baseState: string;
65
- activeState: string;
66
- };
67
- };
68
- shareButton: {
69
- svgSrc: {
70
- baseState: string;
71
- };
72
- };
73
- }>;
1
+ import { CloseButtonPosition } from "./appearanceCommon";
2
+ import { GameReaderOptions } from "./gameReader";
3
+ import { SharePanel } from "./sharePanel"
4
+ import { Nullable, RecursivePartial } from "../global"
5
+
6
+ export declare enum StoryReaderSwipeStyle {
7
+ FLAT = "flat",
8
+ COVER = "cover",
9
+ CUBE = "cube"
10
+ }
11
+
12
+ export type StoryReaderOptions = RecursivePartial<{
13
+ gameReaderOptions: GameReaderOptions;
14
+ closeButtonPosition: CloseButtonPosition | "left" | "right";
15
+ scrollStyle: StoryReaderSwipeStyle | "flat" | "cover" | "cube";
16
+ timelineBlockTopOffset: Nullable<number>;
17
+ actionPanelBottomOffset: Nullable<number>;
18
+ borderRadius: number;
19
+ loader: {
20
+ default: {
21
+ color: string;
22
+ accentColor: string;
23
+ };
24
+ custom: string;
25
+ };
26
+ recycleStoriesList: boolean;
27
+ closeOnLastSlideByTimer: boolean;
28
+ sharePanel: SharePanel<string>;
29
+ commonBackdrop: {
30
+ color: string;
31
+ backdropFilter: string;
32
+ };
33
+ slideBackdrop: {
34
+ opacity: number;
35
+ blur: number;
36
+ linearGradientOverlay: string[];
37
+ };
38
+ faviconApiUrl: string;
39
+ closeButton: {
40
+ svgSrc: {
41
+ baseState: string;
42
+ };
43
+ };
44
+ likeButton: {
45
+ svgSrc: {
46
+ baseState: string;
47
+ activeState: string;
48
+ };
49
+ };
50
+ dislikeButton: {
51
+ svgSrc: {
52
+ baseState: string;
53
+ activeState: string;
54
+ };
55
+ };
56
+ favoriteButton: {
57
+ svgSrc: {
58
+ baseState: string;
59
+ activeState: string;
60
+ };
61
+ };
62
+ muteButton: {
63
+ svgSrc: {
64
+ baseState: string;
65
+ activeState: string;
66
+ };
67
+ };
68
+ shareButton: {
69
+ svgSrc: {
70
+ baseState: string;
71
+ };
72
+ };
73
+ }>;
@@ -1,11 +1,11 @@
1
- export type RecursivePartial<T> = {
2
- [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> | null : T[P] | null;
3
- };
4
-
5
- export type Nullable<T> = T | null;
6
- export type Optional<T> = T | null;
7
- export type Option<T> = T | null;
8
-
9
- export type Dict<K extends string | number | symbol = string, T = any> = Record<K, T>;
10
-
1
+ export type RecursivePartial<T> = {
2
+ [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> | null : T[P] | null;
3
+ };
4
+
5
+ export type Nullable<T> = T | null;
6
+ export type Optional<T> = T | null;
7
+ export type Option<T> = T | null;
8
+
9
+ export type Dict<K extends string | number | symbol = string, T = any> = Record<K, T>;
10
+
11
11
  export type Brand<T, B extends string> = T & { readonly __brand: B };
@@ -1,10 +1,10 @@
1
- import { StoryManagerConfig } from "..";
2
- import { StoryManagerEventsProps } from "./storyManagerEventsProps";
3
- import { AppearanceOptionsProps } from "./appearanceOptionsProps";
4
-
5
- interface IASContainerProps extends StoryManagerEventsProps, AppearanceOptionsProps {
6
- config: StoryManagerConfig;
7
- children?: React.ReactNode;
8
- }
9
-
10
- export declare const IASContainer: (props: IASContainerProps) => JSX.Element;
1
+ import { StoryManagerConfig } from "..";
2
+ import { StoryManagerEventsProps } from "./storyManagerEventsProps";
3
+ import { AppearanceOptionsProps } from "./appearanceOptionsProps";
4
+
5
+ interface IASContainerProps extends StoryManagerEventsProps, AppearanceOptionsProps {
6
+ config: StoryManagerConfig;
7
+ children?: React.ReactNode;
8
+ }
9
+
10
+ export declare const IASContainer: (props: IASContainerProps) => JSX.Element;
@@ -1,13 +1,13 @@
1
- import {
2
- AppearanceCommonOptions,
3
- GameReaderOptions,
4
- GoodsWidgetOptions,
5
- StoryReaderOptions,
6
- } from "../appearance-manager";
7
-
8
- export interface AppearanceOptionsProps {
9
- commonOptions?: AppearanceCommonOptions;
10
- storyReaderOptions?: StoryReaderOptions;
11
- gameReaderOptions?: GameReaderOptions;
12
- goodsWidgetOptions?: GoodsWidgetOptions;
13
- }
1
+ import {
2
+ AppearanceCommonOptions,
3
+ GameReaderOptions,
4
+ GoodsWidgetOptions,
5
+ StoryReaderOptions,
6
+ } from "../appearance-manager";
7
+
8
+ export interface AppearanceOptionsProps {
9
+ commonOptions?: AppearanceCommonOptions;
10
+ storyReaderOptions?: StoryReaderOptions;
11
+ gameReaderOptions?: GameReaderOptions;
12
+ goodsWidgetOptions?: GoodsWidgetOptions;
13
+ }
@@ -1 +1 @@
1
- export { IASContainer } from './IasContainer';
1
+ export { IASContainer } from './IasContainer';
@@ -1,86 +1,86 @@
1
- interface BaseEvent {
2
- id: number;
3
- title?: string;
4
- tags: Array<string>;
5
- slidesCount?: number;
6
- feed?: string;
7
- source?: string;
8
- filter: Record<string, unknown>;
9
- ugcPayload: Record<string, unknown>;
10
- defaultListLength: number;
11
- favoriteListLength: number;
12
- }
13
-
14
- export declare enum CloseAction {
15
- closeReaderByCloseBtn = "closeReaderByCloseBtn", // closed by btn with cross icon in StoryReader
16
- closeReaderByEscBtn = "closeReaderByEscBtn", // closed by ESC on keyboard (desktop only)
17
- swipeDown = "swipeDown", // closed by swipe down StoryReader (mobile only)
18
- swipe = "swipe", // closed by swipe on next story (mobile only)
19
- lastSlideClick = "lastSlideClick", // closed by first (move backward) or last (move forward) slide in story
20
- auto = "auto", // closed by auto transition (by timer) on next story
21
- externalCloseReader = "externalCloseReader" // closed by public API method StoryManager.closeStoryReader
22
- }
23
-
24
- export interface ClickOnStoryEvent extends BaseEvent {
25
- index: number;
26
- isDeeplink: boolean;
27
- url?: string;
28
- }
29
-
30
- export interface ShowStoryEvent extends BaseEvent {}
31
-
32
- export interface CloseStoryEvent extends BaseEvent {
33
- action: CloseAction;
34
- }
35
-
36
- export interface ShowSlideEvent extends BaseEvent {
37
- index: number;
38
- payload: string;
39
- }
40
-
41
- export interface ClickOnButtonEvent extends BaseEvent {
42
- index: number;
43
- url: string;
44
- }
45
-
46
- export interface LikeStoryEvent extends BaseEvent {
47
- value: boolean;
48
- }
49
-
50
- export interface DislikeStoryEvent extends BaseEvent {
51
- value: boolean;
52
- }
53
-
54
- export interface FavoriteStoryEvent extends BaseEvent {
55
- value: boolean;
56
- }
57
-
58
- export interface ShareStoryEvent extends BaseEvent {}
59
-
60
- export interface ShareStoryWithPathEvent extends BaseEvent {
61
- url: string;
62
- }
63
-
64
- export interface ClickOnFavoriteCellEvent {
65
- feed: string;
66
- }
67
-
68
- export interface FeedLoadEvent {
69
- feed: string;
70
- stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
71
- }
72
-
73
- export interface FeedImpressionEvent {
74
- feed: string;
75
- stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
76
- }
77
-
78
- export interface VisibleAreaUpdatedEvent {
79
- feed: string;
80
- stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
81
- }
82
-
83
- export interface WidgetEvent {
84
- name: string;
85
- data: any;
86
- }
1
+ interface BaseEvent {
2
+ id: number;
3
+ title?: string;
4
+ tags: Array<string>;
5
+ slidesCount?: number;
6
+ feed?: string;
7
+ source?: string;
8
+ filter: Record<string, unknown>;
9
+ ugcPayload: Record<string, unknown>;
10
+ defaultListLength: number;
11
+ favoriteListLength: number;
12
+ }
13
+
14
+ export declare enum CloseAction {
15
+ closeReaderByCloseBtn = "closeReaderByCloseBtn", // closed by btn with cross icon in StoryReader
16
+ closeReaderByEscBtn = "closeReaderByEscBtn", // closed by ESC on keyboard (desktop only)
17
+ swipeDown = "swipeDown", // closed by swipe down StoryReader (mobile only)
18
+ swipe = "swipe", // closed by swipe on next story (mobile only)
19
+ lastSlideClick = "lastSlideClick", // closed by first (move backward) or last (move forward) slide in story
20
+ auto = "auto", // closed by auto transition (by timer) on next story
21
+ externalCloseReader = "externalCloseReader" // closed by public API method StoryManager.closeStoryReader
22
+ }
23
+
24
+ export interface ClickOnStoryEvent extends BaseEvent {
25
+ index: number;
26
+ isDeeplink: boolean;
27
+ url?: string;
28
+ }
29
+
30
+ export interface ShowStoryEvent extends BaseEvent {}
31
+
32
+ export interface CloseStoryEvent extends BaseEvent {
33
+ action: CloseAction;
34
+ }
35
+
36
+ export interface ShowSlideEvent extends BaseEvent {
37
+ index: number;
38
+ payload: string;
39
+ }
40
+
41
+ export interface ClickOnButtonEvent extends BaseEvent {
42
+ index: number;
43
+ url: string;
44
+ }
45
+
46
+ export interface LikeStoryEvent extends BaseEvent {
47
+ value: boolean;
48
+ }
49
+
50
+ export interface DislikeStoryEvent extends BaseEvent {
51
+ value: boolean;
52
+ }
53
+
54
+ export interface FavoriteStoryEvent extends BaseEvent {
55
+ value: boolean;
56
+ }
57
+
58
+ export interface ShareStoryEvent extends BaseEvent {}
59
+
60
+ export interface ShareStoryWithPathEvent extends BaseEvent {
61
+ url: string;
62
+ }
63
+
64
+ export interface ClickOnFavoriteCellEvent {
65
+ feed: string;
66
+ }
67
+
68
+ export interface FeedLoadEvent {
69
+ feed: string;
70
+ stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
71
+ }
72
+
73
+ export interface FeedImpressionEvent {
74
+ feed: string;
75
+ stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
76
+ }
77
+
78
+ export interface VisibleAreaUpdatedEvent {
79
+ feed: string;
80
+ stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
81
+ }
82
+
83
+ export interface WidgetEvent {
84
+ name: string;
85
+ data: any;
86
+ }
@@ -1,31 +1,31 @@
1
- import {
2
- ClickOnButtonEvent,
3
- ClickOnStoryEvent,
4
- CloseStoryEvent,
5
- DislikeStoryEvent,
6
- FavoriteStoryEvent,
7
- FeedImpressionEvent,
8
- LikeStoryEvent,
9
- ShareStoryEvent,
10
- ShareStoryWithPathEvent,
11
- ShowSlideEvent,
12
- ShowStoryEvent,
13
- VisibleAreaUpdatedEvent,
14
- WidgetEvent
15
- } from "./publicEvents";
16
-
17
- export interface StoryManagerEventsProps {
18
- onClickOnStory?: (event: ClickOnStoryEvent) => void;
19
- onShowStory?: (event: ShowStoryEvent) => void;
20
- onCloseStory?: (event: CloseStoryEvent) => void;
21
- onShowSlide?: (event: ShowSlideEvent) => void;
22
- onClickOnButton?: (event: ClickOnButtonEvent) => void;
23
- onLikeStory?: (event: LikeStoryEvent) => void;
24
- onDislikeStory?: (event: DislikeStoryEvent) => void;
25
- onFavoriteStory?: (event: FavoriteStoryEvent) => void;
26
- onShareStory?: (event: ShareStoryEvent) => void;
27
- onShareStoryWithPath?: (event: ShareStoryWithPathEvent) => void;
28
- onFeedImpression?: (event: FeedImpressionEvent) => void;
29
- onVisibleAreaUpdated?: (event: VisibleAreaUpdatedEvent) => void;
30
- onWidgetEvent?: (event: WidgetEvent) => void;
31
- }
1
+ import {
2
+ ClickOnButtonEvent,
3
+ ClickOnStoryEvent,
4
+ CloseStoryEvent,
5
+ DislikeStoryEvent,
6
+ FavoriteStoryEvent,
7
+ FeedImpressionEvent,
8
+ LikeStoryEvent,
9
+ ShareStoryEvent,
10
+ ShareStoryWithPathEvent,
11
+ ShowSlideEvent,
12
+ ShowStoryEvent,
13
+ VisibleAreaUpdatedEvent,
14
+ WidgetEvent
15
+ } from "./publicEvents";
16
+
17
+ export interface StoryManagerEventsProps {
18
+ onClickOnStory?: (event: ClickOnStoryEvent) => void;
19
+ onShowStory?: (event: ShowStoryEvent) => void;
20
+ onCloseStory?: (event: CloseStoryEvent) => void;
21
+ onShowSlide?: (event: ShowSlideEvent) => void;
22
+ onClickOnButton?: (event: ClickOnButtonEvent) => void;
23
+ onLikeStory?: (event: LikeStoryEvent) => void;
24
+ onDislikeStory?: (event: DislikeStoryEvent) => void;
25
+ onFavoriteStory?: (event: FavoriteStoryEvent) => void;
26
+ onShareStory?: (event: ShareStoryEvent) => void;
27
+ onShareStoryWithPath?: (event: ShareStoryWithPathEvent) => void;
28
+ onFeedImpression?: (event: FeedImpressionEvent) => void;
29
+ onVisibleAreaUpdated?: (event: VisibleAreaUpdatedEvent) => void;
30
+ onWidgetEvent?: (event: WidgetEvent) => void;
31
+ }
@@ -1,5 +1,5 @@
1
- export * from "./appearance-manager";
2
- export * from "./story-list";
3
- export * from "./share-page";
4
- export { storyManager, StoryManagerConfig } from "./storyManager";
5
- export { IASContainer } from "./ias-container";
1
+ export * from "./appearance-manager";
2
+ export * from "./story-list";
3
+ export * from "./share-page";
4
+ export { storyManager, StoryManagerConfig } from "./storyManager";
5
+ export { IASContainer } from "./ias-container";
@@ -1,9 +1,9 @@
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 {}
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 {}
@@ -1,11 +1,11 @@
1
- import { StoriesListOptions, NavigationViewModel } from "..";
2
- import { StoryCardViewModel } from "./storyCardViewModel";
3
- import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery";
4
-
5
- interface FavoriteStoryListProps {
6
- options?: StoriesListOptions;
7
- optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
8
- storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
9
- navigationView?: (navigation: NavigationViewModel) => JSX.Element;
10
- }
11
- export declare const FavoriteStoryList: (props: FavoriteStoryListProps) => JSX.Element;
1
+ import { StoriesListOptions, NavigationViewModel } from "..";
2
+ import { StoryCardViewModel } from "./storyCardViewModel";
3
+ import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery";
4
+
5
+ interface FavoriteStoryListProps {
6
+ options?: StoriesListOptions;
7
+ optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
8
+ storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
9
+ navigationView?: (navigation: NavigationViewModel) => JSX.Element;
10
+ }
11
+ export declare const FavoriteStoryList: (props: FavoriteStoryListProps) => JSX.Element;
@@ -1,24 +1,24 @@
1
- import React from "react";
2
- import { NavigationViewModel } from "./navigationViewModel";
3
- import { StoryCardViewModel } from "./storyCardViewModel";
4
- import { StoryListLoadStatus } from "./storyListLoadStatus";
5
- import { FavoriteCardCompositeViewModel } from "./favoriteCardCompositeViewModel";
6
- import { StoryListApi } from "./storyListApi";
7
- import { StoriesListOptions } from "../appearance-manager";
8
-
9
- interface StoryListProps {
10
- ref?: React.Ref<StoryListApi | null>;
11
- options: StoriesListOptions;
12
- feedSlug: string;
13
- testKey?: string;
14
- onUgcCardClick?: () => void;
15
- onFavoriteCardClick: () => void;
16
- useUgcCard?: boolean;
17
- hasFavorite?: boolean;
18
- onLoadStart?: () => void;
19
- onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
20
- storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
21
- navigationView?: (navigation: NavigationViewModel) => JSX.Element;
22
- favoriteCardView?: (favoriteCardCompositeViewModel: FavoriteCardCompositeViewModel) => JSX.Element;
23
- }
24
- export declare const StoryList: (props: StoryListProps) => JSX.Element;
1
+ import React from "react";
2
+ import { NavigationViewModel } from "./navigationViewModel";
3
+ import { StoryCardViewModel } from "./storyCardViewModel";
4
+ import { StoryListLoadStatus } from "./storyListLoadStatus";
5
+ import { FavoriteCardCompositeViewModel } from "./favoriteCardCompositeViewModel";
6
+ import { StoryListApi } from "./storyListApi";
7
+ import { StoriesListOptions } from "../appearance-manager";
8
+
9
+ interface StoryListProps {
10
+ ref?: React.Ref<StoryListApi | null>;
11
+ options: StoriesListOptions;
12
+ feedSlug: string;
13
+ testKey?: string;
14
+ onUgcCardClick?: () => void;
15
+ onFavoriteCardClick: () => void;
16
+ useUgcCard?: boolean;
17
+ hasFavorite?: boolean;
18
+ onLoadStart?: () => void;
19
+ onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
20
+ storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
21
+ navigationView?: (navigation: NavigationViewModel) => JSX.Element;
22
+ favoriteCardView?: (favoriteCardCompositeViewModel: FavoriteCardCompositeViewModel) => JSX.Element;
23
+ }
24
+ export declare const StoryList: (props: StoryListProps) => JSX.Element;
@@ -1,21 +1,21 @@
1
- import React from "react";
2
- import { StoriesListOptions } from "../appearance-manager";
3
- import { NavigationViewModel } from "./navigationViewModel";
4
- import { StoryCardViewModel } from "./storyCardViewModel";
5
- import { StoryListApi } from "./storyListApi";
6
- import { StoryListLoadStatus } from "./storyListLoadStatus";
7
-
8
- interface UGCStoryListProps {
9
- ref?: React.Ref<StoryListApi | null>;
10
- options?: StoriesListOptions;
11
- testKey?: string;
12
- onUgcCardClick?: () => void;
13
- useUgcCard?: boolean;
14
- hasFavorite?: boolean;
15
- filter?: Record<string, any>;
16
- onLoadStart?: () => void;
17
- onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
18
- storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
19
- navigationView?: (navigation: NavigationViewModel) => JSX.Element;
20
- }
21
- export declare const UGCStoryList: (props: UGCStoryListProps) => JSX.Element;
1
+ import React from "react";
2
+ import { StoriesListOptions } from "../appearance-manager";
3
+ import { NavigationViewModel } from "./navigationViewModel";
4
+ import { StoryCardViewModel } from "./storyCardViewModel";
5
+ import { StoryListApi } from "./storyListApi";
6
+ import { StoryListLoadStatus } from "./storyListLoadStatus";
7
+
8
+ interface UGCStoryListProps {
9
+ ref?: React.Ref<StoryListApi | null>;
10
+ options?: StoriesListOptions;
11
+ testKey?: string;
12
+ onUgcCardClick?: () => void;
13
+ useUgcCard?: boolean;
14
+ hasFavorite?: boolean;
15
+ filter?: Record<string, any>;
16
+ onLoadStart?: () => void;
17
+ onLoadEnd?: (storyListLoadStatus: StoryListLoadStatus) => void;
18
+ storyCardView?: (storyCard: StoryCardViewModel) => JSX.Element;
19
+ navigationView?: (navigation: NavigationViewModel) => JSX.Element;
20
+ }
21
+ export declare const UGCStoryList: (props: UGCStoryListProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { FavoriteStoryCardViewModel, StoryCardViewModel } from ".";
2
-
3
- export interface FavoriteCardCompositeViewModel extends StoryCardViewModel {
4
- favoriteStories: FavoriteStoryCardViewModel[];
5
- }
1
+ import { FavoriteStoryCardViewModel, StoryCardViewModel } from ".";
2
+
3
+ export interface FavoriteCardCompositeViewModel extends StoryCardViewModel {
4
+ favoriteStories: FavoriteStoryCardViewModel[];
5
+ }
@@ -1,3 +1,3 @@
1
- import { StoryCardViewModel } from "./storyCardViewModel";
2
-
3
- export interface FavoriteStoryCardViewModel extends StoryCardViewModel {}
1
+ import { StoryCardViewModel } from "./storyCardViewModel";
2
+
3
+ export interface FavoriteStoryCardViewModel extends StoryCardViewModel {}
@@ -1,9 +1,9 @@
1
- export * from './favoriteCardCompositeViewModel';
2
- export * from './favoriteStoryCardViewModel.d';
3
- export * from './FavoriteStoryList.d';
4
- export * from './navigationViewModel.d';
5
- export * from './storyCardViewModel.d';
6
- export * from './StoryList.d';
7
- export * from './storyListLoadStatus';
8
- export * from './UGCStoryList.d';
1
+ export * from './favoriteCardCompositeViewModel';
2
+ export * from './favoriteStoryCardViewModel.d';
3
+ export * from './FavoriteStoryList.d';
4
+ export * from './navigationViewModel.d';
5
+ export * from './storyCardViewModel.d';
6
+ export * from './StoryList.d';
7
+ export * from './storyListLoadStatus';
8
+ export * from './UGCStoryList.d';
9
9
  export * from "./storyListApi"