react-covideo-embed 0.1.28 → 0.1.30
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/build/index.js +173 -173
- package/build/index.js.LICENSE.txt +10 -0
- package/build/lib/api/index.d.ts +0 -1
- package/build/lib/api/videoRequestApi.d.ts +0 -19
- package/build/lib/api/videosApi.d.ts +3 -4
- package/build/lib/components/Dropdown.d.ts +1 -1
- package/build/lib/config.d.ts +4 -12
- package/package.json +3 -4
- package/build/lib/api/base.d.ts +0 -10
|
@@ -41,6 +41,16 @@
|
|
|
41
41
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @license React
|
|
46
|
+
* react-is.production.min.js
|
|
47
|
+
*
|
|
48
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the MIT license found in the
|
|
51
|
+
* LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
|
|
44
54
|
/**
|
|
45
55
|
* @license React
|
|
46
56
|
* react-jsx-runtime.production.min.js
|
package/build/lib/api/index.d.ts
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
export type VideoRequestListFilter = {
|
|
2
|
-
videoType?: string;
|
|
3
|
-
userId?: string;
|
|
4
|
-
advisorId?: string;
|
|
5
|
-
statuses?: string;
|
|
6
|
-
videoId?: string;
|
|
7
|
-
search?: string;
|
|
8
|
-
};
|
|
9
|
-
export type VideoRequestListParams = {
|
|
10
|
-
start?: number;
|
|
11
|
-
limit?: number;
|
|
12
|
-
sort?: string;
|
|
13
|
-
filter?: VideoRequestListFilter;
|
|
14
|
-
};
|
|
15
1
|
export type CreateVideoRequestParams = {
|
|
16
2
|
data: object;
|
|
17
3
|
videoRequestId?: string | number;
|
|
18
4
|
};
|
|
19
|
-
export type ApproveDenyRequestParams = {
|
|
20
|
-
videoRequestId?: string | number;
|
|
21
|
-
note?: string;
|
|
22
|
-
};
|
|
23
5
|
export declare const getVideoRequestByVideoId: (id: string) => Promise<any>;
|
|
24
6
|
export declare const createVideoRequest: ({ data, }: CreateVideoRequestParams) => Promise<any>;
|
|
25
|
-
export declare const markAsSentVideoRequest: ({ videoRequestId, }: ApproveDenyRequestParams) => Promise<any>;
|
|
@@ -52,12 +52,11 @@ export declare const getVideo: (videoId: string) => Promise<any>;
|
|
|
52
52
|
export declare const deleteVideo: ({ videoIds, deleteMultiple, companyVideos, }: DeleteVideoApiParams) => Promise<{
|
|
53
53
|
[key: string]: string;
|
|
54
54
|
}>;
|
|
55
|
-
export declare const mergeVideos: (
|
|
56
|
-
export declare const updateVideo: ({ videoId, videoBody, }: UpdateVideoParams) => Promise<{
|
|
55
|
+
export declare const mergeVideos: (data: any) => Promise<any>;
|
|
56
|
+
export declare const updateVideo: ({ videoId, videoBody: data, }: UpdateVideoParams) => Promise<{
|
|
57
57
|
video: any;
|
|
58
58
|
}>;
|
|
59
|
-
export declare const trimVideo: (videoId: string,
|
|
60
|
-
export declare const createVideoActivity: (data: any) => Promise<any>;
|
|
59
|
+
export declare const trimVideo: (videoId: string, data: TrimVideoData) => Promise<any>;
|
|
61
60
|
export declare const downloadVideo: (videoId: string, fileName: string) => Promise<void>;
|
|
62
61
|
export declare const copyCompanyVideoToPrimary: (videoId: string) => Promise<any>;
|
|
63
62
|
export declare const startTranscription: (videoId: string) => Promise<VideoTranscriptionResponse>;
|
|
@@ -25,5 +25,5 @@ type Props = {
|
|
|
25
25
|
Option: (props: any) => JSX.Element;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare const Dropdown: ({ options, value, onChange, isSearchable, extraStyles, creatable, isClearable, disabled, maxMenuHeight, defaultValue, placeholder, controlShouldRenderValue, customComponents }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const Dropdown: ({ options, value, onChange, isSearchable, extraStyles, creatable, isClearable, disabled, maxMenuHeight, defaultValue, placeholder, controlShouldRenderValue, customComponents, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
package/build/lib/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
export type ENVIRONMENT = 'development' | 'sandbox' | 'production';
|
|
2
3
|
export declare enum COOKIE_NAMES {
|
|
3
4
|
jwt = "react-covideo-embed-jwt",
|
|
@@ -7,24 +8,15 @@ export declare enum COOKIE_NAMES {
|
|
|
7
8
|
}
|
|
8
9
|
export declare let token: any;
|
|
9
10
|
export declare let apiExpress: string;
|
|
11
|
+
export declare let apiKey: string | undefined;
|
|
10
12
|
export declare const updateToken: (tokenNew: string, hasExternalJwt?: boolean) => void;
|
|
11
13
|
export declare const updateEnv: (env: ENVIRONMENT) => void;
|
|
12
14
|
export declare const updateApiKey: (key: string | undefined) => void;
|
|
13
15
|
export declare let options: {
|
|
14
|
-
bearerToken: {
|
|
15
|
-
ApiKey?: string | undefined;
|
|
16
|
-
Authorization: string;
|
|
17
|
-
};
|
|
18
16
|
headers: {
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const getUpdatedHeader: () => {
|
|
23
|
-
bearerToken: {
|
|
17
|
+
"React-Covideo-Embed-Version": string | undefined;
|
|
24
18
|
ApiKey?: string | undefined;
|
|
25
19
|
Authorization: string;
|
|
26
20
|
};
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: any;
|
|
29
|
-
};
|
|
30
21
|
};
|
|
22
|
+
export declare const EXPRESS_API: AxiosInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
"@types/file-saver": "^2.0.5",
|
|
24
24
|
"@types/jwt-decode": "^3.1.0",
|
|
25
25
|
"@types/lodash": "^4.14.190",
|
|
26
|
-
"@types/node": "
|
|
26
|
+
"@types/node": "18.19.0",
|
|
27
27
|
"@types/react": "^18.0.25",
|
|
28
28
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
29
29
|
"@types/react-dom": "^18.0.9",
|
|
30
30
|
"@types/react-router-dom": "^5.3.3",
|
|
31
|
-
"@types/react-select": "^3.0.12",
|
|
32
31
|
"@types/styled-components": "^5.1.26",
|
|
33
32
|
"css-loader": "^6.8.1",
|
|
34
33
|
"file-loader": "^6.2.0",
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
"react-query": "^3.39.2",
|
|
62
61
|
"react-resize-detector": "^9.1.0",
|
|
63
62
|
"react-router-dom": "^5.1.2",
|
|
64
|
-
"react-select": "
|
|
63
|
+
"react-select": "5.8.0",
|
|
65
64
|
"react-spinners": "^0.13.6",
|
|
66
65
|
"stream-browserify": "^3.0.0",
|
|
67
66
|
"styled-components": "^5.3.6",
|
package/build/lib/api/base.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig, Method } from 'axios';
|
|
2
|
-
export declare const requestMethods: {
|
|
3
|
-
GET: Method;
|
|
4
|
-
POST: Method;
|
|
5
|
-
PUT: Method;
|
|
6
|
-
PATCH: Method;
|
|
7
|
-
DELETE: Method;
|
|
8
|
-
HEAD: Method;
|
|
9
|
-
};
|
|
10
|
-
export declare const fetcher: (options: AxiosRequestConfig) => Promise<any>;
|