@clickview/player 0.0.3 → 0.0.4-rc.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.
- package/.storybook/main.js +1 -0
- package/.storybook/stories/Base.stories.tsx +6 -5
- package/.storybook/stories/Interactives.stories.tsx +45 -49
- package/.storybook/stories/utils/mock-playerapi.ts +44 -12
- package/dist/en.json +1 -393
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +5 -1
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +2 -1
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +17 -1
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -0
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -1
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +2 -0
- package/dist/libs/shared/src/components/interactive-questions/InteractionLabel.d.ts +20 -0
- package/dist/libs/shared/src/components/popup/Popup.d.ts +2 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +3 -3
- package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -3
- package/dist/libs/shared/src/enums/UserRole.d.ts +4 -4
- package/dist/libs/shared/src/hooks/UseGrabCursorProps.d.ts +15 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +1 -7
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -2
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +12 -37
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAttempt.d.ts +1 -1
- package/dist/libs/shared/src/utils/InteractiveCorrectnessHelper.d.ts +16 -0
- package/dist/player-app.css +45 -2391
- package/dist/player-app.js +122 -5657
- package/dist/projects/player/src/components/collapserator/collapserator.d.ts +2 -0
- package/dist/projects/player/src/components/landing-splash/landing-splash.d.ts +65 -0
- package/dist/projects/player/src/components/landing-splash/metadata/splash-metadata.d.ts +63 -0
- package/dist/projects/player/src/components/landing-splash/metadata/splash-title/splash-title.d.ts +62 -0
- package/dist/projects/player/src/components/landing-splash/metadata/splash-warning/splash-warning.d.ts +60 -0
- package/dist/projects/player/src/components/logo/clickview-logo.d.ts +1 -0
- package/dist/projects/player/src/components/menu/menu.d.ts +16 -0
- package/dist/projects/player/src/components/menu-button/menu-button.d.ts +1 -0
- package/dist/projects/player/src/components/player/player.d.ts +2 -0
- package/dist/projects/player/src/components/subs-caps-button/SubCapsMenuItem.d.ts +52 -0
- package/dist/projects/player/src/components/subs-caps-button/subtitle-search-menu-item.d.ts +54 -0
- package/dist/projects/player/src/components/subs-caps-button/subtitle-size-menu-item.d.ts +53 -0
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-result-menu-item.d.ts +15 -0
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-button.d.ts +30 -0
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-input.d.ts +27 -0
- package/dist/projects/player/src/components/subtitle-size-button/subtitle-size-button.d.ts +1 -0
- package/dist/projects/player/src/components/text-track-settings/text-track-settings.d.ts +56 -0
- package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +1 -0
- package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +13 -0
- package/dist/projects/player/src/players/base-player.d.ts +9 -0
- package/dist/projects/player/src/players/interactive-player.d.ts +2 -0
- package/dist/projects/player/src/plugins/chromecast-plugin/chromecast-plugin.d.ts +11 -0
- package/dist/projects/player/src/plugins/chromecast-plugin/components/chromecast-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/chromecast-plugin/session-manager.d.ts +73 -0
- package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech-ui/chromecast-tech-ui.d.ts +67 -0
- package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-items.d.ts +4 -4
- package/dist/projects/player/src/plugins/interactive-plugin/components/sliding-timepoint/sliding-timepoints.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/timepoint/timepoint-component.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveTrack.d.ts +4 -2
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +1 -1
- package/dist/projects/player/src/plugins/persist-quality-settings-plugin/persist-quality-settings-plugin.d.ts +33 -0
- package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +38 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-handle/drag-handle.d.ts +53 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-targets/drag-targets.d.ts +54 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-button.d.ts +23 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-menu-item.d.ts +15 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/contants/WhiteboardSides.d.ts +5 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/interfaces/WhiteboardSide.d.ts +1 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/whiteboard-mode-plugin.d.ts +34 -0
- package/dist/projects/player/src/utils/fn.d.ts +30 -0
- package/dist/projects/player/src/utils/local-storage-helper.d.ts +6 -0
- package/dist/projects/player/src/utils/track-helper.d.ts +1 -0
- package/package.json +70 -66
- package/typings/utils/imports.d.ts +1 -1
- package/dist/libs/shared/src/enums/CustomerType.d.ts +0 -11
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-short-answer.ts/create-short-answer.d.ts +0 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/incomplete-alert/incomplete-alert.d.ts +0 -2
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/create-interaction-buttons.d.ts +0 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/useInteractiveTrack.d.ts +0 -20
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/view-iteraction-buttons.d.ts +0 -13
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/CreateInteractionState.d.ts +0 -4
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/ViewInteractionState.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,66 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/player",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "ClickView Player",
|
|
5
|
-
"main": "dist/player-app.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
-
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
9
|
-
"build-font": "set NODE_ENV=development&& npm run start",
|
|
10
|
-
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js",
|
|
11
|
-
"storybook": "start-storybook -s ./.storybook/stories/assets -p 6006",
|
|
12
|
-
"build-storybook": "build-storybook",
|
|
13
|
-
"test": "jest",
|
|
14
|
-
"test-watch": "jest --watch",
|
|
15
|
-
"webpack-dev-server": "set NODE_ENV=development&& webpack-dev-server --config ./tooling/webpack.config.js"
|
|
16
|
-
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
20
|
-
},
|
|
21
|
-
"cv": {
|
|
22
|
-
"publishable": true,
|
|
23
|
-
"rebuildable": true
|
|
24
|
-
},
|
|
25
|
-
"author": "Matt Trengrove, Cameron Hill, Shale Kuzmanovski",
|
|
26
|
-
"license": "ISC",
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.11.6",
|
|
29
|
-
"@clickview/eslint-config": "1.0.0",
|
|
30
|
-
"@clickview/player-font": "0.0.
|
|
31
|
-
"@clickview/tooling": "0.0.
|
|
32
|
-
"@storybook/react": "6.0.26",
|
|
33
|
-
"@types/
|
|
34
|
-
"@types/
|
|
35
|
-
"@types/
|
|
36
|
-
"@types/
|
|
37
|
-
"@types/
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/player",
|
|
3
|
+
"version": "0.0.4-rc.1",
|
|
4
|
+
"description": "ClickView Player",
|
|
5
|
+
"main": "dist/player-app.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
+
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
9
|
+
"build-font": "set NODE_ENV=development&& npm run start",
|
|
10
|
+
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js",
|
|
11
|
+
"storybook": "start-storybook -s ./.storybook/stories/assets -p 6006",
|
|
12
|
+
"build-storybook": "build-storybook",
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"test-watch": "jest --watch",
|
|
15
|
+
"webpack-dev-server": "set NODE_ENV=development&& webpack-dev-server --config ./tooling/webpack.config.js"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
20
|
+
},
|
|
21
|
+
"cv": {
|
|
22
|
+
"publishable": true,
|
|
23
|
+
"rebuildable": true
|
|
24
|
+
},
|
|
25
|
+
"author": "Matt Trengrove, Cameron Hill, Shale Kuzmanovski",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "7.11.6",
|
|
29
|
+
"@clickview/eslint-config": "1.0.0",
|
|
30
|
+
"@clickview/player-font": "0.0.10",
|
|
31
|
+
"@clickview/tooling": "0.0.23-rc.1",
|
|
32
|
+
"@storybook/react": "6.0.26",
|
|
33
|
+
"@types/chromecast-caf-sender": "1.0.3",
|
|
34
|
+
"@types/cropperjs": "1.3.0",
|
|
35
|
+
"@types/draft-js": "0.10.44",
|
|
36
|
+
"@types/node-polyglot": "0.4.34",
|
|
37
|
+
"@types/react-draft-wysiwyg": "1.13.1",
|
|
38
|
+
"@types/simplebar": "5.1.1",
|
|
39
|
+
"@types/video.js": "7.3.11",
|
|
40
|
+
"jest": "26.1.0",
|
|
41
|
+
"ts-jest": "26.1.4",
|
|
42
|
+
"webpack-dev-server": "3.11.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@clickview/styles": "1.0.16-rc.1",
|
|
46
|
+
"@microsoft/signalr": "5.0.2",
|
|
47
|
+
"cropperjs": "1.5.6",
|
|
48
|
+
"draft-convert": "2.1.10",
|
|
49
|
+
"draft-js": "0.11.7",
|
|
50
|
+
"keycode": "2.2.0",
|
|
51
|
+
"node-polyglot": "2.3.0",
|
|
52
|
+
"react-draft-wysiwyg": "1.14.5",
|
|
53
|
+
"react-textarea-autosize": "8.3.2",
|
|
54
|
+
"simplebar": "5.3.0",
|
|
55
|
+
"simplebar-react": "2.3.0",
|
|
56
|
+
"video.js": "7.11.2",
|
|
57
|
+
"videojs-contrib-quality-levels": "2.0.9"
|
|
58
|
+
},
|
|
59
|
+
"babel": {
|
|
60
|
+
"presets": [
|
|
61
|
+
[
|
|
62
|
+
"@babel/preset-env",
|
|
63
|
+
{
|
|
64
|
+
"corejs": 3,
|
|
65
|
+
"useBuiltIns": "entry"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Interaction } from 'libs/shared/interfaces';
|
|
3
|
-
import { InteractionProps } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
4
|
-
import { CreateInteractionState } from '../../../interfaces/CreateInteractionState';
|
|
5
|
-
interface CreateShortAnswerState extends CreateInteractionState {
|
|
6
|
-
question: string;
|
|
7
|
-
suggestedResponse?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function ValidateShortAnswer(state: CreateShortAnswerState): string;
|
|
10
|
-
export declare function SubmitShortAnswer(state: CreateShortAnswerState, interaction: Interaction): Promise<void>;
|
|
11
|
-
export declare function CreateShortAnswer(props: InteractionProps<CreateShortAnswerState>): React.ReactElement;
|
|
12
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Interaction } from 'libs/shared/interfaces';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
interface CreateInteractionButtonsProps {
|
|
4
|
-
interaction: Interaction;
|
|
5
|
-
interactionState: any;
|
|
6
|
-
onClickContinue: () => void;
|
|
7
|
-
onClickSave: () => void;
|
|
8
|
-
onClickCancel: () => void;
|
|
9
|
-
onClickAddAnother: () => void;
|
|
10
|
-
onClickDiscard: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function CreateInteractionButtons(props: CreateInteractionButtonsProps): React.ReactElement;
|
|
13
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VideoJsPlayer } from 'video.js';
|
|
3
|
-
import { InteractiveMode } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
4
|
-
import { Interactive, Timepoint } from 'libs/shared/interfaces';
|
|
5
|
-
interface useInteractiveOptions {
|
|
6
|
-
player: VideoJsPlayer;
|
|
7
|
-
track: TextTrack;
|
|
8
|
-
interactive: Interactive;
|
|
9
|
-
mode: InteractiveMode;
|
|
10
|
-
}
|
|
11
|
-
export declare const useInteractiveTrack: (options: useInteractiveOptions) => {
|
|
12
|
-
open: boolean;
|
|
13
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
-
timepoint: Timepoint;
|
|
15
|
-
continueInteractive: () => void;
|
|
16
|
-
updateCue: (oldTimepointId: string, timepointId: string) => void;
|
|
17
|
-
addCue: (timepointId: string) => void;
|
|
18
|
-
removeCue: (visibleAt: number) => void;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InteractionTypeId } from 'libs/shared/interfaces';
|
|
3
|
-
interface ViewInteractionButtonsProps {
|
|
4
|
-
typeId: InteractionTypeId;
|
|
5
|
-
interactionState: any;
|
|
6
|
-
onClickSubmit: () => void;
|
|
7
|
-
onClickSkip: () => void;
|
|
8
|
-
currentIndex: number;
|
|
9
|
-
numberOfInteractions: number;
|
|
10
|
-
changeIndex: (index: number) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function ViewInteractionButtons(props: ViewInteractionButtonsProps): React.ReactElement;
|
|
13
|
-
export {};
|