jamespot-user-api 1.0.115 → 1.0.116
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.
- package/documentation/assets/main.js +2 -2
- package/documentation/assets/search.js +1 -1
- package/documentation/assets/style.css +3 -2
- package/documentation/classes/AdminLicenseApi.html +11 -11
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +11 -11
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +5 -5
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +2 -2
- package/documentation/classes/Network.html +2 -2
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +2 -2
- package/documentation/interfaces/SearchQueryOption.html +2 -2
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +2 -2
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +9 -9
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/application/types.d.ts +6 -6
- package/lib/src/apis/article/article.d.ts +5 -5
- package/lib/src/apis/filebank.d.ts +3 -3
- package/lib/src/apis/jland/jland.d.ts +6 -6
- package/lib/src/apis/taxonomy/types.d.ts +4 -4
- package/lib/src/apis/user/user.d.ts +3 -3
- package/lib/src/types/adminLicence.d.ts +6 -6
- package/lib/src/types/adminStore.d.ts +2 -2
- package/lib/src/types/adminUtils.d.ts +3 -3
- package/lib/src/types/asei.d.ts +5 -5
- package/lib/src/types/assetReservation.d.ts +4 -4
- package/lib/src/types/autocomplete.d.ts +6 -6
- package/lib/src/types/bookmark.d.ts +5 -5
- package/lib/src/types/comment.d.ts +2 -2
- package/lib/src/types/diapazone.d.ts +1 -1
- package/lib/src/types/drive.d.ts +5 -5
- package/lib/src/types/faq.d.ts +5 -5
- package/lib/src/types/file.d.ts +8 -8
- package/lib/src/types/group.d.ts +13 -13
- package/lib/src/types/mediaLibrary.d.ts +3 -3
- package/lib/src/types/model.d.ts +32 -32
- package/lib/src/types/realtime.d.ts +14 -14
- package/lib/src/types/search.d.ts +4 -4
- package/lib/src/types/share.d.ts +5 -5
- package/lib/src/types/tvDisplay.d.ts +18 -18
- package/lib/src/types/uri.d.ts +1 -1
- package/lib/src/types/user.d.ts +5 -5
- package/lib/src/types/utils.d.ts +29 -29
- package/lib/src/types/wedoc.d.ts +2 -2
- package/lib/src/types/widgets.d.ts +39 -39
- package/lib/src/util/ensure.d.ts +2 -2
- package/lib/src/util/images.d.ts +6 -6
- package/lib/src/util/network.d.ts +3 -3
- package/lib/src/window/Window.d.ts +2 -2
- package/package.json +72 -73
- package/pnpm-lock.yaml +0 -12425
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AudienceAutocomplete } from './autocomplete';
|
|
2
2
|
import { jArticleLittle } from './utils';
|
|
3
|
-
export
|
|
3
|
+
export type WidgetLayer = {
|
|
4
4
|
uniqid: string;
|
|
5
5
|
title: string;
|
|
6
6
|
locked: boolean;
|
|
@@ -8,11 +8,11 @@ export declare type WidgetLayer = {
|
|
|
8
8
|
widgets: WidgetWrapperProps[];
|
|
9
9
|
position?: WidgetVector;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type WidgetWrapperProps<T = CombinedWidgetType> = {
|
|
12
12
|
title: string;
|
|
13
13
|
widget: WidgetExtendedType & T;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type WidgetDefaultProps = {
|
|
16
16
|
width?: number | undefined;
|
|
17
17
|
inplace: boolean;
|
|
18
18
|
isComponentVisible?: boolean;
|
|
@@ -21,8 +21,8 @@ export declare type WidgetDefaultProps = {
|
|
|
21
21
|
onChange: (content: CombinedWidgetContent, override?: boolean) => void;
|
|
22
22
|
onStateChange?: (state: WidgetStateProps) => void;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
24
|
+
export type CombinedWidgetType = WidgetTypeKeys[keyof WidgetTypeKeys];
|
|
25
|
+
export type WidgetTypeKeys = {
|
|
26
26
|
'widget-article-button': WidgetArticleButtonType;
|
|
27
27
|
'widget-article-gallery': WidgetArticleGalleryType;
|
|
28
28
|
'widget-article-title': WidgetArticleTitleType;
|
|
@@ -30,7 +30,7 @@ export declare type WidgetTypeKeys = {
|
|
|
30
30
|
'widget-article-image': WidgetArticleImageType;
|
|
31
31
|
'widget-article-attachment': WidgetArticleAttachmentType;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type WidgetContentKeys = {
|
|
34
34
|
'widget-article-button': WidgetArticleButtonContent;
|
|
35
35
|
'widget-article-gallery': WidgetArticleGalleryContent;
|
|
36
36
|
'widget-article-title': WidgetArticleTitleContent;
|
|
@@ -38,47 +38,47 @@ export declare type WidgetContentKeys = {
|
|
|
38
38
|
'widget-article-image': WidgetArticleImageContent;
|
|
39
39
|
'widget-article-attachment': WidgetArticleAttachmentContent;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
42
|
-
export
|
|
41
|
+
export type WidgetKeys = keyof WidgetTypeKeys;
|
|
42
|
+
export type WidgetExtendedType = {
|
|
43
43
|
layers?: string[];
|
|
44
44
|
};
|
|
45
|
-
export
|
|
45
|
+
export type WidgetArticleButtonType = {
|
|
46
46
|
name: 'widget-article-button';
|
|
47
47
|
uniqid: string;
|
|
48
48
|
content: WidgetArticleButtonContent;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type WidgetArticleGalleryType = {
|
|
51
51
|
name: 'widget-article-gallery';
|
|
52
52
|
uniqid: string;
|
|
53
53
|
content: WidgetArticleGalleryContent;
|
|
54
54
|
};
|
|
55
|
-
export
|
|
55
|
+
export type WidgetArticleTitleType = {
|
|
56
56
|
name: 'widget-article-title';
|
|
57
57
|
uniqid: string;
|
|
58
58
|
content: WidgetArticleTitleContent;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type WidgetArticleTextType = {
|
|
61
61
|
name: 'widget-article-text';
|
|
62
62
|
uniqid: string;
|
|
63
63
|
content: WidgetArticleTextContent;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type WidgetArticleImageType = {
|
|
66
66
|
name: 'widget-article-image';
|
|
67
67
|
uniqid: string;
|
|
68
68
|
content: WidgetArticleImageContent;
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type WidgetArticleAttachmentType = {
|
|
71
71
|
name: 'widget-article-attachment';
|
|
72
72
|
uniqid: string;
|
|
73
73
|
content: WidgetArticleAttachmentContent;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
78
|
-
export
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
75
|
+
export type CSSTextAlignType = 'left' | 'right' | 'center' | 'justify';
|
|
76
|
+
export type CSSBackgroundPosition = 'top' | 'bottom' | 'center' | 'left' | 'right';
|
|
77
|
+
export type CSSBackgroundSize = 'auto' | 'contain' | 'cover';
|
|
78
|
+
export type VariantSizeType = 'sm' | 'md' | 'lg';
|
|
79
|
+
export type VariantType = 'contained' | 'outlined';
|
|
80
|
+
export type OpeningType = 'link' | 'anchor' | 'popup';
|
|
81
|
+
export type WidgetArticleGalleryContent = {
|
|
82
82
|
gap?: string;
|
|
83
83
|
columnCount?: string;
|
|
84
84
|
files?: WidgetFileType[];
|
|
@@ -86,7 +86,7 @@ export declare type WidgetArticleGalleryContent = {
|
|
|
86
86
|
heightMode?: 'auto' | 'custom';
|
|
87
87
|
heightModeValue?: string;
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type WidgetArticleTitleContent = {
|
|
90
90
|
widgets?: WidgetWrapperProps[];
|
|
91
91
|
text?: string;
|
|
92
92
|
textAlign?: CSSTextAlignType;
|
|
@@ -94,25 +94,25 @@ export declare type WidgetArticleTitleContent = {
|
|
|
94
94
|
color?: string;
|
|
95
95
|
backgroundColor?: string;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type WidgetArticleTextContent = {
|
|
98
98
|
text?: string;
|
|
99
99
|
color?: string;
|
|
100
100
|
fontSize?: string;
|
|
101
101
|
lineHeight?: string;
|
|
102
102
|
linkColor?: string;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type OpeningTypeLink = {
|
|
105
105
|
url: string;
|
|
106
106
|
target: string;
|
|
107
107
|
};
|
|
108
|
-
export
|
|
108
|
+
export type OpeningTypeAnchor = {
|
|
109
109
|
uniqid: string;
|
|
110
110
|
};
|
|
111
|
-
export
|
|
111
|
+
export type OpeningTypePopup = {
|
|
112
112
|
title: string;
|
|
113
113
|
widgets: WidgetWrapperProps[];
|
|
114
114
|
};
|
|
115
|
-
export
|
|
115
|
+
export type WidgetArticleButtonContent = {
|
|
116
116
|
text?: string;
|
|
117
117
|
color?: string;
|
|
118
118
|
backgroundColor?: string;
|
|
@@ -125,7 +125,7 @@ export declare type WidgetArticleButtonContent = {
|
|
|
125
125
|
openingTypeAnchor?: OpeningTypeAnchor;
|
|
126
126
|
openingTypePopup?: OpeningTypePopup;
|
|
127
127
|
};
|
|
128
|
-
export
|
|
128
|
+
export type WidgetArticleImageContent = {
|
|
129
129
|
file?: WidgetFileType;
|
|
130
130
|
useFilter?: boolean;
|
|
131
131
|
displayAs?: 'image' | 'background';
|
|
@@ -134,21 +134,21 @@ export declare type WidgetArticleImageContent = {
|
|
|
134
134
|
borderRadius?: string;
|
|
135
135
|
widgets?: WidgetWrapperProps[];
|
|
136
136
|
};
|
|
137
|
-
export
|
|
137
|
+
export type WidgetArticleAttachmentContent = {
|
|
138
138
|
files?: WidgetFileType[];
|
|
139
139
|
fileDisplay?: 'list' | 'gallery';
|
|
140
140
|
};
|
|
141
|
-
export
|
|
141
|
+
export type CombinedWidgetContent = {
|
|
142
142
|
widgets?: WidgetWrapperProps[];
|
|
143
143
|
} & (WidgetArticleTextContent | WidgetArticleImageContent | WidgetArticleTitleContent | WidgetArticleButtonContent | WidgetArticleGalleryContent | WidgetArticleAttachmentContent);
|
|
144
|
-
export
|
|
144
|
+
export type WidgetStateProps = {
|
|
145
145
|
busy?: boolean | undefined;
|
|
146
146
|
loading?: boolean | undefined;
|
|
147
147
|
initialized?: boolean | undefined;
|
|
148
148
|
mounted?: boolean | undefined;
|
|
149
149
|
hover?: boolean | undefined;
|
|
150
150
|
};
|
|
151
|
-
export
|
|
151
|
+
export type WidgetDefinitionProps = {
|
|
152
152
|
label: string;
|
|
153
153
|
description: string;
|
|
154
154
|
name: WidgetKeys;
|
|
@@ -160,11 +160,11 @@ export declare type WidgetDefinitionProps = {
|
|
|
160
160
|
useWidgets: boolean;
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
export
|
|
163
|
+
export type WidgetVector = {
|
|
164
164
|
x: number;
|
|
165
165
|
y: number;
|
|
166
166
|
};
|
|
167
|
-
export
|
|
167
|
+
export type WidgetFileType = {
|
|
168
168
|
id: number;
|
|
169
169
|
filename: string;
|
|
170
170
|
name?: string;
|
|
@@ -174,15 +174,15 @@ export declare type WidgetFileType = {
|
|
|
174
174
|
height: number;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
export
|
|
178
|
-
export
|
|
177
|
+
export type WidgetDisplayMode = 'edit' | 'view';
|
|
178
|
+
export type WidgetModalProps = {
|
|
179
179
|
title?: string;
|
|
180
180
|
view?: any;
|
|
181
181
|
};
|
|
182
|
-
export
|
|
182
|
+
export type WidgetsRootState = {
|
|
183
183
|
widgets: WidgetsState;
|
|
184
184
|
};
|
|
185
|
-
export
|
|
185
|
+
export type WidgetsState = {
|
|
186
186
|
token?: string | undefined;
|
|
187
187
|
ids: Record<string, WidgetWrapperProps>;
|
|
188
188
|
layers: Record<string, WidgetLayer>;
|
|
@@ -195,7 +195,7 @@ export declare type WidgetsState = {
|
|
|
195
195
|
currentEditableIndex: number;
|
|
196
196
|
currentEditableWidgetId: string | undefined;
|
|
197
197
|
};
|
|
198
|
-
export
|
|
198
|
+
export type ArticleWidgetType = jArticleLittle & {
|
|
199
199
|
articleWidgets: WidgetWrapperProps[];
|
|
200
200
|
articleWidgetsCover: number | undefined;
|
|
201
201
|
_audience: AudienceAutocomplete[];
|
package/lib/src/util/ensure.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { AbortApiError, StandardApiError } from './network';
|
|
|
3
3
|
declare function ensureIsBookmarkLink(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkLink;
|
|
4
4
|
declare function ensureIsBookmarkCustom(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkCustom;
|
|
5
5
|
declare function ensureIsBookmarkRawList(bookmark: jObjectBase | BookmarkRawList): bookmark is BookmarkRawList;
|
|
6
|
-
|
|
6
|
+
type jObjectTypes = {
|
|
7
7
|
bookmarkLink: BookmarkRawList;
|
|
8
8
|
};
|
|
9
9
|
declare function ensureObjectIsType<T extends keyof jObjectTypes>(type: T, object: jObjectBase): object is jObjectTypes[T];
|
|
10
|
-
|
|
10
|
+
type ChannelsTypes = {
|
|
11
11
|
DYNAMIC: TVChannelDynamicList;
|
|
12
12
|
SLIDESHOW: TVChannelSlideshowList;
|
|
13
13
|
};
|
package/lib/src/util/images.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @see JRCImgProps
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
type WidthHeight = {
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* @see JRCImgProps
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type Size = {
|
|
12
12
|
size?: string;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* @see JRCImgProps
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
type Format = {
|
|
18
18
|
format?: string;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* @see JRCImgProps
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
type Timestamp = {
|
|
24
24
|
timestamp?: string | number;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type Args = Timestamp & {
|
|
27
27
|
iconColor?: 'white';
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @see JRCImgProps
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type ImgUrlProps = {
|
|
33
33
|
url?: string;
|
|
34
34
|
fallbackUrl?: string;
|
|
35
35
|
size?: string;
|
|
@@ -4,14 +4,14 @@ export interface OF {
|
|
|
4
4
|
o: string;
|
|
5
5
|
f: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type ApiError = {
|
|
8
8
|
error: number;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type StandardApiError<T = BaseMessages> = ApiError & {
|
|
11
11
|
errorMsg: string | undefined;
|
|
12
12
|
messages: T;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type AbortApiError = ApiError & {
|
|
15
15
|
error: -1;
|
|
16
16
|
aborted: true;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FetchResponseType<T> = {
|
|
2
2
|
json: () => Promise<T>;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type FetchReturnType<T> = Promise<FetchResponseType<T>>;
|
|
5
5
|
export interface WindowInterface {
|
|
6
6
|
getBackendUrl: () => Promise<string>;
|
|
7
7
|
fetch: <T>(url: string, init?: RequestInit) => FetchReturnType<T>;
|
package/package.json
CHANGED
|
@@ -1,74 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
2
|
+
"name": "jamespot-user-api",
|
|
3
|
+
"version": "1.0.116",
|
|
4
|
+
"main": "lib/jamespot-user-api.js",
|
|
5
|
+
"types": "lib/src/index.d.ts",
|
|
6
|
+
"directories": {
|
|
7
|
+
"lib": "lib/*"
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@babel/core": "^7.15.8",
|
|
11
|
+
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
12
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
|
|
13
|
+
"@babel/plugin-transform-arrow-functions": "^7.14.5",
|
|
14
|
+
"@babel/plugin-transform-classes": "^7.14.9",
|
|
15
|
+
"@babel/plugin-transform-modules-commonjs": "^7.15.0",
|
|
16
|
+
"@babel/preset-env": "^7.15.8",
|
|
17
|
+
"@babel/preset-typescript": "^7.15.0",
|
|
18
|
+
"@types/form-data": "^2.5.0",
|
|
19
|
+
"@types/jest": "^27.0.2",
|
|
20
|
+
"@types/node": "^16.11.1",
|
|
21
|
+
"@types/node-fetch": "^2.5.12",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
23
|
+
"@typescript-eslint/parser": "^5.4.0",
|
|
24
|
+
"babel-loader": "^8.0.5",
|
|
25
|
+
"babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
|
|
26
|
+
"chai": "^4.2.0",
|
|
27
|
+
"dotenv": "^10.0.0",
|
|
28
|
+
"eslint": "^8.2.0",
|
|
29
|
+
"eslint-config-prettier": "^8.3.0",
|
|
30
|
+
"form-data": "^4.0.0",
|
|
31
|
+
"husky": "^7.0.4",
|
|
32
|
+
"jest": "^27.3.1",
|
|
33
|
+
"jest-browser": "^0.1.0",
|
|
34
|
+
"jest-cli": "^27.0.6",
|
|
35
|
+
"jsdom": "^18.0.0",
|
|
36
|
+
"lint-staged": "^12.0.2",
|
|
37
|
+
"node-fetch": "^2.6.5",
|
|
38
|
+
"prettier": "^2.4.1",
|
|
39
|
+
"ts-jest": "^27.0.7",
|
|
40
|
+
"ts-loader": "^9.2.6",
|
|
41
|
+
"ts-node": "^10.3.0",
|
|
42
|
+
"typedoc": "^0.22.6",
|
|
43
|
+
"typescript": "^4.4.4",
|
|
44
|
+
"typescript-eslint-parser": "^22.0.0",
|
|
45
|
+
"webpack": "^5.62.1",
|
|
46
|
+
"webpack-cli": "^4.9.1"
|
|
47
|
+
},
|
|
48
|
+
"lint-staged": {
|
|
49
|
+
"*.{js,jsx,ts,tsx}": [
|
|
50
|
+
"npm run lint:fix",
|
|
51
|
+
"npm run prettier"
|
|
52
|
+
],
|
|
53
|
+
"*.{json,md}": [
|
|
54
|
+
"npm run prettier"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "npx webpack --env NODE_ENV=production",
|
|
59
|
+
"build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",
|
|
60
|
+
"dev": "npx webpack --env NODE_ENV=development",
|
|
61
|
+
"dev-mock": "npx webpack --env NODE_ENV=development --env MOCK_MODE=true",
|
|
62
|
+
"local": "npx webpack --env NODE_ENV=development --env WATCH=true",
|
|
63
|
+
"local-mock": "npx webpack --env NODE_ENV=development --env MOCK_MODE=true --env WATCH=true",
|
|
64
|
+
"prettier": "npx prettier --write ./",
|
|
65
|
+
"watch-dev-vm": "webpack --env NODE_ENV=development NODE_RUN=VM WATCH=true",
|
|
66
|
+
"lint": "npx eslint ./src/ --ext .ts,.tsx",
|
|
67
|
+
"lint:fix": "npx eslint ./src/ --ext .ts,.tsx --fix ",
|
|
68
|
+
"lint:ci": "eslint --output-file eslint_report.json --format json . --ext .ts,.js",
|
|
69
|
+
"doc": "npx typedoc",
|
|
70
|
+
"test": "jest",
|
|
71
|
+
"test:mockVM": "jest -c ./jest.config.vm.ts"
|
|
72
|
+
}
|
|
73
|
+
}
|