@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.
Files changed (86) hide show
  1. package/.storybook/main.js +1 -0
  2. package/.storybook/stories/Base.stories.tsx +6 -5
  3. package/.storybook/stories/Interactives.stories.tsx +45 -49
  4. package/.storybook/stories/utils/mock-playerapi.ts +44 -12
  5. package/dist/en.json +1 -393
  6. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +5 -1
  7. package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
  8. package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +2 -1
  9. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +17 -1
  10. package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -0
  11. package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -1
  12. package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +2 -0
  13. package/dist/libs/shared/src/components/interactive-questions/InteractionLabel.d.ts +20 -0
  14. package/dist/libs/shared/src/components/popup/Popup.d.ts +2 -0
  15. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +3 -3
  16. package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -3
  17. package/dist/libs/shared/src/enums/UserRole.d.ts +4 -4
  18. package/dist/libs/shared/src/hooks/UseGrabCursorProps.d.ts +15 -0
  19. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  20. package/dist/libs/shared/src/images/svg/objects/index.d.ts +3 -1
  21. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +2 -1
  22. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -1
  23. package/dist/libs/shared/src/interfaces/models/Config.d.ts +1 -7
  24. package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -2
  25. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +4 -0
  26. package/dist/libs/shared/src/interfaces/models/Series.d.ts +3 -0
  27. package/dist/libs/shared/src/interfaces/models/User.d.ts +12 -37
  28. package/dist/libs/shared/src/interfaces/models/Video.d.ts +5 -0
  29. package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAttempt.d.ts +1 -1
  30. package/dist/libs/shared/src/utils/InteractiveCorrectnessHelper.d.ts +16 -0
  31. package/dist/player-app.css +45 -2391
  32. package/dist/player-app.js +122 -5657
  33. package/dist/projects/player/src/components/collapserator/collapserator.d.ts +2 -0
  34. package/dist/projects/player/src/components/landing-splash/landing-splash.d.ts +65 -0
  35. package/dist/projects/player/src/components/landing-splash/metadata/splash-metadata.d.ts +63 -0
  36. package/dist/projects/player/src/components/landing-splash/metadata/splash-title/splash-title.d.ts +62 -0
  37. package/dist/projects/player/src/components/landing-splash/metadata/splash-warning/splash-warning.d.ts +60 -0
  38. package/dist/projects/player/src/components/logo/clickview-logo.d.ts +1 -0
  39. package/dist/projects/player/src/components/menu/menu.d.ts +16 -0
  40. package/dist/projects/player/src/components/menu-button/menu-button.d.ts +1 -0
  41. package/dist/projects/player/src/components/player/player.d.ts +2 -0
  42. package/dist/projects/player/src/components/subs-caps-button/SubCapsMenuItem.d.ts +52 -0
  43. package/dist/projects/player/src/components/subs-caps-button/subtitle-search-menu-item.d.ts +54 -0
  44. package/dist/projects/player/src/components/subs-caps-button/subtitle-size-menu-item.d.ts +53 -0
  45. package/dist/projects/player/src/components/subtitle-search-button/subtitle-result-menu-item.d.ts +15 -0
  46. package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-button.d.ts +30 -0
  47. package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-input.d.ts +27 -0
  48. package/dist/projects/player/src/components/subtitle-size-button/subtitle-size-button.d.ts +1 -0
  49. package/dist/projects/player/src/components/text-track-settings/text-track-settings.d.ts +56 -0
  50. package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +1 -0
  51. package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +13 -0
  52. package/dist/projects/player/src/players/base-player.d.ts +9 -0
  53. package/dist/projects/player/src/players/interactive-player.d.ts +2 -0
  54. package/dist/projects/player/src/plugins/chromecast-plugin/chromecast-plugin.d.ts +11 -0
  55. package/dist/projects/player/src/plugins/chromecast-plugin/components/chromecast-button.d.ts +1 -0
  56. package/dist/projects/player/src/plugins/chromecast-plugin/session-manager.d.ts +73 -0
  57. package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech-ui/chromecast-tech-ui.d.ts +67 -0
  58. package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech.d.ts +1 -0
  59. package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-items.d.ts +4 -4
  60. package/dist/projects/player/src/plugins/interactive-plugin/components/sliding-timepoint/sliding-timepoints.d.ts +1 -0
  61. package/dist/projects/player/src/plugins/interactive-plugin/components/timepoint/timepoint-component.d.ts +1 -0
  62. package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveTrack.d.ts +4 -2
  63. package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +1 -0
  64. package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +1 -1
  65. package/dist/projects/player/src/plugins/persist-quality-settings-plugin/persist-quality-settings-plugin.d.ts +33 -0
  66. package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +38 -0
  67. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-handle/drag-handle.d.ts +53 -0
  68. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-targets/drag-targets.d.ts +54 -0
  69. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-button.d.ts +23 -0
  70. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-menu-item.d.ts +15 -0
  71. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/contants/WhiteboardSides.d.ts +5 -0
  72. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/interfaces/WhiteboardSide.d.ts +1 -0
  73. package/dist/projects/player/src/plugins/whiteboard-mode-plugin/whiteboard-mode-plugin.d.ts +34 -0
  74. package/dist/projects/player/src/utils/fn.d.ts +30 -0
  75. package/dist/projects/player/src/utils/local-storage-helper.d.ts +6 -0
  76. package/dist/projects/player/src/utils/track-helper.d.ts +1 -0
  77. package/package.json +70 -66
  78. package/typings/utils/imports.d.ts +1 -1
  79. package/dist/libs/shared/src/enums/CustomerType.d.ts +0 -11
  80. package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-short-answer.ts/create-short-answer.d.ts +0 -12
  81. package/dist/projects/player/src/plugins/interactive-plugin/components/incomplete-alert/incomplete-alert.d.ts +0 -2
  82. package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/create-interaction-buttons.d.ts +0 -13
  83. package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/useInteractiveTrack.d.ts +0 -20
  84. package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/view-iteraction-buttons.d.ts +0 -13
  85. package/dist/projects/player/src/plugins/interactive-plugin/interfaces/CreateInteractionState.d.ts +0 -4
  86. 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.3",
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.6",
31
- "@clickview/tooling": "0.0.22",
32
- "@storybook/react": "6.0.26",
33
- "@types/cropperjs": "1.3.0",
34
- "@types/draft-js": "0.10.44",
35
- "@types/react-draft-wysiwyg": "1.13.1",
36
- "@types/simplebar": "5.1.1",
37
- "@types/video.js": "7.3.11",
38
- "jest": "26.1.0",
39
- "ts-jest": "26.1.4",
40
- "webpack-dev-server": "3.11.0"
41
- },
42
- "dependencies": {
43
- "@clickview/styles": "1.0.15",
44
- "@microsoft/signalr": "5.0.2",
45
- "cropperjs": "1.5.6",
46
- "draft-convert": "2.1.10",
47
- "draft-js": "0.11.7",
48
- "keycode": "2.2.0",
49
- "react-draft-wysiwyg": "1.14.5",
50
- "simplebar": "5.3.0",
51
- "simplebar-react": "2.3.0",
52
- "video.js": "7.11.2",
53
- "videojs-contrib-quality-levels": "2.0.9"
54
- },
55
- "babel": {
56
- "presets": [
57
- [
58
- "@babel/preset-env",
59
- {
60
- "corejs": 3,
61
- "useBuiltIns": "entry"
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
+ }
@@ -6,7 +6,7 @@
6
6
  declare module '*.scss';
7
7
  declare module '*.svg';
8
8
 
9
- declare module "*.json" {
9
+ declare module '*.json' {
10
10
  export const value: any;
11
11
  export default value;
12
12
  }
@@ -1,11 +0,0 @@
1
- export declare enum CustomerType {
2
- Unclassified = 0,
3
- Primary = 1,
4
- Secondary = 2,
5
- K12 = 3,
6
- Tertiary = 4,
7
- NonEducational = 5,
8
- Partners = 6,
9
- Internal = 7,
10
- Other = 8
11
- }
@@ -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,2 +0,0 @@
1
- import React from 'react';
2
- export declare function IncompleteAlert(): React.ReactElement;
@@ -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 {};
@@ -1,4 +0,0 @@
1
- export interface CreateInteractionState {
2
- hasChanges?: boolean;
3
- error?: string;
4
- }
@@ -1,3 +0,0 @@
1
- export interface ViewInteractionState {
2
- error?: string;
3
- }