@clickview/online 0.0.8-rc.6 → 0.0.8
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/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
- package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +4 -0
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +15 -0
- package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +7 -0
- package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +30 -0
- package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +66 -0
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
- package/dist/libs/shared/src/components/channel-form-field/ChannelFormField.d.ts +7 -0
- package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +20 -0
- package/dist/libs/shared/src/components/edit-link/EditLink.d.ts +26 -0
- package/dist/libs/shared/src/components/edit-resource/EditResource.d.ts +15 -0
- package/dist/libs/shared/src/components/edit-video-links/EditVideoLinks.d.ts +11 -0
- package/dist/libs/shared/src/components/edit-video-resources/EditVideoResources.d.ts +20 -0
- package/dist/libs/shared/src/components/edit-video-subtitles/EditVideoSubtitles.d.ts +16 -0
- package/dist/libs/shared/src/components/file-select/FileSelect.d.ts +14 -0
- package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +15 -0
- package/dist/libs/shared/src/components/file-upload-list/FileUploadList.d.ts +8 -0
- package/dist/libs/shared/src/components/forms/date-picker-form-field/DatePickerFormField.d.ts +16 -0
- package/dist/libs/shared/src/components/image-cropper/ImageCropper.d.ts +10 -0
- package/dist/libs/shared/src/components/image-select/ImageSelect.d.ts +13 -0
- package/dist/libs/shared/src/components/language-select/LanguageSelect.d.ts +8 -0
- package/dist/libs/shared/src/components/rating-select/RatingSelect.d.ts +11 -0
- package/dist/libs/shared/src/components/resource-list/ResourceList.d.ts +14 -0
- package/dist/libs/shared/src/components/subtitle-list/SubtitleList.d.ts +9 -0
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +8 -0
- package/dist/libs/shared/src/constants/ImageSizes.d.ts +8 -0
- package/dist/libs/shared/src/context/ImageStorageContext.d.ts +45 -0
- package/dist/libs/shared/src/enums/DateFormat.d.ts +7 -0
- package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
- package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +4 -0
- package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +7 -0
- package/dist/libs/shared/src/flight-requests/LinkRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/RatingRequests.d.ts +4 -0
- package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/SubtitleRequests.d.ts +9 -0
- package/dist/libs/shared/src/hooks/UseListenOn.d.ts +3 -0
- package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +4 -0
- package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
- package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +29 -0
- package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +15 -0
- package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +22 -0
- package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +17 -0
- package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +5 -0
- package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +6 -0
- package/dist/libs/shared/src/utils/PermissionsHelper.d.ts +10 -0
- package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
- package/dist/libs/shared/src/views/delete-link/DeleteLinkView.d.ts +8 -0
- package/dist/libs/shared/src/views/delete-resource/DeleteResourceView.d.ts +8 -0
- package/dist/libs/shared/src/views/delete-subtitle/DeleteSubtitleView.d.ts +8 -0
- package/dist/libs/shared/src/views/dialog/DialogView.d.ts +9 -0
- package/dist/libs/shared/src/views/edit-link/EditLinkView.d.ts +8 -0
- package/dist/libs/shared/src/views/edit-resource/EditResourceView.d.ts +8 -0
- package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
- package/dist/online-app.css.map +1 -0
- package/dist/online-app.js +2 -2
- package/dist/online-app.js.map +1 -0
- package/dist/projects/online/src/apps/workspace/WorkspaceApplication.d.ts +19 -0
- package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/EditWorkspaceVideoDetails.d.ts +9 -0
- package/dist/projects/online/src/apps/workspace/components/edit-workspace-video-details/partial-loading/PartialEditWorkspaceVideoDetails.d.ts +2 -0
- package/dist/projects/online/src/apps/workspace/context/WorkspaceAppContext.d.ts +4 -0
- package/dist/projects/online/src/apps/workspace/flight-requests/WorkspaceVideoRequests.d.ts +9 -0
- package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/EditWorkspaceVideoView.d.ts +8 -0
- package/dist/projects/online/src/apps/workspace/views/edit-workspace-video/partial-loading/PartialEditVideoUploadArea.d.ts +2 -0
- package/package.json +44 -44
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
3
|
+
import { ImageType } from "../../../../../libs/shared/src/enums/Images";
|
|
4
|
+
import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
|
|
5
|
+
export declare class WorkspaceApplication extends ReactApplication {
|
|
6
|
+
protected layout: OnlineLayoutView;
|
|
7
|
+
get name(): string;
|
|
8
|
+
static get router(): any;
|
|
9
|
+
get channelName(): string;
|
|
10
|
+
get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
|
|
11
|
+
editVideo(id: string): void;
|
|
12
|
+
editCategoryVideo(folderId: string, videoId: string): void;
|
|
13
|
+
editResource(videoId: string, resourceId: string): void;
|
|
14
|
+
deleteResource(videoId: string, resourceId: string): void;
|
|
15
|
+
deleteSubtitle(videoId: string, subtitleId: string): void;
|
|
16
|
+
editLink(videoId: string, linkId: string): void;
|
|
17
|
+
deleteLink(videoId: string, linkId: string): void;
|
|
18
|
+
uploadImage(imageType: ImageType): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Video, Rating, UpdateVideoRequest } from "../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
interface EditWorkspaceVideoDetailsProps {
|
|
4
|
+
video: Video;
|
|
5
|
+
saveVideo: (data: UpdateVideoRequest, onDone: () => void) => void;
|
|
6
|
+
ratings: Rating[];
|
|
7
|
+
}
|
|
8
|
+
export declare function EditWorkspaceVideoDetails(props: EditWorkspaceVideoDetailsProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const WorkspaceAppContextProvider: ({ children }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Flight } from "../../../../../../libs/common/src/react";
|
|
2
|
+
import { HashObject } from "../../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
|
+
import { Xhr } from "../../../../../../libs/common/src/backbone/interfaces/Xhr";
|
|
4
|
+
import { UpdateVideoRequest } from "../../../../../../libs/shared/src/interfaces/requests/UpdateVideoRequest";
|
|
5
|
+
export declare const WorkspaceVideoRequests: {
|
|
6
|
+
video(id: string): Flight.Request;
|
|
7
|
+
updateVideo(id: string, data: UpdateVideoRequest, success?: (data: HashObject<any>) => void, error?: (Xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
8
|
+
hasPhysicalChapters(videoId: string): Flight.Request;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core } from "../../../../../../../libs/common/src/backbone";
|
|
3
|
+
interface EditWorkspaceVideoViewProps {
|
|
4
|
+
videoId: string;
|
|
5
|
+
returnAppLink: Core.AppLink;
|
|
6
|
+
}
|
|
7
|
+
export declare function EditWorkspaceVideoView(props: EditWorkspaceVideoViewProps): JSX.Element;
|
|
8
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/online",
|
|
3
|
-
"version": "0.0.8
|
|
4
|
-
"description": "Online",
|
|
5
|
-
"main": "dist/online-app.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
-
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
-
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
15
|
-
},
|
|
16
|
-
"cv": {
|
|
17
|
-
"publishable": true,
|
|
18
|
-
"rebuildable": true
|
|
19
|
-
},
|
|
20
|
-
"author": "",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@clickview/tooling": "0.0.18",
|
|
24
|
-
"@types/linkifyjs": "2.1.3",
|
|
25
|
-
"@types/react-sortable-hoc": "0.7.1",
|
|
26
|
-
"@types/react-transition-group": "4.2.3",
|
|
27
|
-
"@types/yup": "0.26.24"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@clickview/styles": "1.0.10
|
|
31
|
-
"yup": "0.27.0"
|
|
32
|
-
},
|
|
33
|
-
"babel": {
|
|
34
|
-
"presets": [
|
|
35
|
-
[
|
|
36
|
-
"@babel/preset-env",
|
|
37
|
-
{
|
|
38
|
-
"corejs": 3,
|
|
39
|
-
"useBuiltIns": "entry"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/online",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "Online",
|
|
5
|
+
"main": "dist/online-app.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
+
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
10
|
+
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
15
|
+
},
|
|
16
|
+
"cv": {
|
|
17
|
+
"publishable": true,
|
|
18
|
+
"rebuildable": true
|
|
19
|
+
},
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@clickview/tooling": "0.0.18",
|
|
24
|
+
"@types/linkifyjs": "2.1.3",
|
|
25
|
+
"@types/react-sortable-hoc": "0.7.1",
|
|
26
|
+
"@types/react-transition-group": "4.2.3",
|
|
27
|
+
"@types/yup": "0.26.24"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@clickview/styles": "1.0.10",
|
|
31
|
+
"yup": "0.27.0"
|
|
32
|
+
},
|
|
33
|
+
"babel": {
|
|
34
|
+
"presets": [
|
|
35
|
+
[
|
|
36
|
+
"@babel/preset-env",
|
|
37
|
+
{
|
|
38
|
+
"corejs": 3,
|
|
39
|
+
"useBuiltIns": "entry"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|