Skip to content

Commit

Permalink
Added missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalker2398 committed Mar 4, 2024
1 parent ef7f3df commit 607a834
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@
"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",
"reselect": "^5.0.0",
"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",
Expand Down
1 change: 1 addition & 0 deletions src/plugins/mirador-canvaslink/components/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** */
export const getShareLink = (attribution, canvasLink, label, provider, thumbnailUrl) => {
let text = label;
if (attribution) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/mirador-canvaslink/state/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/mirador-citations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default [
target: 'WindowSideBarButtons',
},
{
companionWindowKey: WindowSideBarCitationButton.value,
component: WindowSideBarCitationPanel,
config: {},
mapDispatchToProps: (dispatch, { windowId }) => ({
Expand All @@ -38,7 +39,6 @@ export default [
return dispatch(updateWindow(windowId, { openPanel }));
},
}),
companionWindowKey: WindowSideBarCitationButton.value,
mapStateToProps: (state, { windowId }) => ({
config: getPluginConfig(state, { windowId }),
containerId: getContainerId(state),
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/mirador-videojs/components/VideoJSViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/** */
Expand Down Expand Up @@ -44,7 +44,7 @@ class VideoJSViewerBase extends VideoViewer {
};

console.log({ state: this.state, videoJsOptions });
if (videoJsOptions.sources.length == 0) return <ForbiddenComponent id="this content" />;
if (videoJsOptions.sources.length === 0) return <ForbiddenComponent id="this content" />;
return (
<div className="video-js w-100" data-vjs-player>
<VideoJS options={videoJsOptions} />
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/mirador-viewXml/MiradorViewXmlDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MiradorViewXmlDialog = ({

const xmlLink = (function (relateds) {
if (!relateds) return null;
return relateds.find(ref => ref.schema == 'http://www.loc.gov/mods/v3')?.id;
return relateds.find(ref => ref.schema === 'http://www.loc.gov/mods/v3')?.id;
}(seeAlso));

if (!xmlLink) return null;
Expand Down

0 comments on commit 607a834

Please sign in to comment.