diff --git a/package.json b/package.json
index 510994fb6..ed44a6212 100644
--- a/package.json
+++ b/package.json
@@ -71,6 +71,7 @@
"react-sizeme": "^2.6.7 || ^3.0.0",
"react-virtualized-auto-sizer": "^1.0.2",
"react-window": "^1.8.5",
+ "react-xml-viewer": "^2.0.0",
"redux": "^5.0.0",
"redux-saga": "^1.1.3",
"redux-thunk": "^3.1.0",
@@ -78,7 +79,9 @@
"stylis": "^4.3.0",
"stylis-plugin-rtl": "^2.1.1",
"url": "^0.11.0",
- "uuid": "^8.1.0 || ^9.0.0"
+ "uuid": "^8.1.0 || ^9.0.0",
+ "video.js": "^7.17.0",
+ "whatwg-fetch": "^3.6.20"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
diff --git a/src/plugins/mirador-canvaslink/components/utils.js b/src/plugins/mirador-canvaslink/components/utils.js
index f799529d1..fab722df8 100644
--- a/src/plugins/mirador-canvaslink/components/utils.js
+++ b/src/plugins/mirador-canvaslink/components/utils.js
@@ -1,3 +1,4 @@
+/** */
export const getShareLink = (attribution, canvasLink, label, provider, thumbnailUrl) => {
let text = label;
if (attribution) {
diff --git a/src/plugins/mirador-canvaslink/state/selectors.js b/src/plugins/mirador-canvaslink/state/selectors.js
index 9ddb09fbb..a8bdf5641 100644
--- a/src/plugins/mirador-canvaslink/state/selectors.js
+++ b/src/plugins/mirador-canvaslink/state/selectors.js
@@ -4,7 +4,7 @@ const _reselect = require('reselect');
const _selectors = require('../../../state/selectors');
/** */
-function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (let i = 1; i < arguments.length; i++) { const source = arguments[i]; for (const key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
+function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (let i = 1; i < arguments.length; i+= 1) { const source = arguments[i]; for (const key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
const defaultConfig = {
// Open the settings dialog
dialogOpen: false,
diff --git a/src/plugins/mirador-citations/index.js b/src/plugins/mirador-citations/index.js
index c9ea3a021..21c8b4a9b 100644
--- a/src/plugins/mirador-citations/index.js
+++ b/src/plugins/mirador-citations/index.js
@@ -30,6 +30,7 @@ export default [
target: 'WindowSideBarButtons',
},
{
+ companionWindowKey: WindowSideBarCitationButton.value,
component: WindowSideBarCitationPanel,
config: {},
mapDispatchToProps: (dispatch, { windowId }) => ({
@@ -38,7 +39,6 @@ export default [
return dispatch(updateWindow(windowId, { openPanel }));
},
}),
- companionWindowKey: WindowSideBarCitationButton.value,
mapStateToProps: (state, { windowId }) => ({
config: getPluginConfig(state, { windowId }),
containerId: getContainerId(state),
diff --git a/src/plugins/mirador-videojs/components/VideoJSViewer.js b/src/plugins/mirador-videojs/components/VideoJSViewer.js
index 69a70de11..7e912258c 100644
--- a/src/plugins/mirador-videojs/components/VideoJSViewer.js
+++ b/src/plugins/mirador-videojs/components/VideoJSViewer.js
@@ -5,7 +5,7 @@ import { withTranslation } from 'react-i18next';
import { VideoViewer } from '../../../components/VideoViewer';
import { getConfig, getVisibleCanvasCaptions, getVisibleCanvasVideoResources } from '../../../state/selectors';
-import VideoJS from './VideoJS';
+import { VideoJS } from './VideoJS';
import ForbiddenComponent from '../../ForbiddenComponent';
/** */
@@ -44,7 +44,7 @@ class VideoJSViewerBase extends VideoViewer {
};
console.log({ state: this.state, videoJsOptions });
- if (videoJsOptions.sources.length == 0) return