From 15aca739c392f0eab256457a2b2e8010f6a7b5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Maa=C3=9F?= <mathiasmaass@gmx.de> Date: Tue, 13 Jul 2021 12:32:59 +0200 Subject: [PATCH] do not import manifest es modules directly --- src/containers/IIIFAuthentication.js | 2 +- src/state/sagas/auth.js | 2 +- src/state/sagas/iiif.js | 2 +- src/state/selectors/auth.js | 2 +- src/state/selectors/manifests.js | 3 +-- src/state/selectors/ranges.js | 2 +- src/state/selectors/searches.js | 2 +- src/state/selectors/sequences.js | 2 +- 8 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/containers/IIIFAuthentication.js b/src/containers/IIIFAuthentication.js index ddc374157..7d5108716 100644 --- a/src/containers/IIIFAuthentication.js +++ b/src/containers/IIIFAuthentication.js @@ -1,7 +1,7 @@ import { connect } from 'react-redux'; import { compose } from 'redux'; import { withTranslation } from 'react-i18next'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { Utils } from 'manifesto.js'; import { withPlugins } from '../extend/withPlugins'; import * as actions from '../state/actions'; import { diff --git a/src/state/sagas/auth.js b/src/state/sagas/auth.js index 0ecb94976..732a48236 100644 --- a/src/state/sagas/auth.js +++ b/src/state/sagas/auth.js @@ -1,7 +1,7 @@ import { all, call, put, select, takeEvery, delay, } from 'redux-saga/effects'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { Utils } from 'manifesto.js'; import flatten from 'lodash/flatten'; import ActionTypes from '../actions/action-types'; import MiradorCanvas from '../../lib/MiradorCanvas'; diff --git a/src/state/sagas/iiif.js b/src/state/sagas/iiif.js index f0ce4c537..41823156b 100644 --- a/src/state/sagas/iiif.js +++ b/src/state/sagas/iiif.js @@ -2,7 +2,7 @@ import { all, call, put, select, takeEvery, } from 'redux-saga/effects'; import fetch from 'isomorphic-unfetch'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { Utils } from 'manifesto.js'; import normalizeUrl from 'normalize-url'; import ActionTypes from '../actions/action-types'; import { diff --git a/src/state/selectors/auth.js b/src/state/selectors/auth.js index 07ce12536..7c290bfca 100644 --- a/src/state/selectors/auth.js +++ b/src/state/selectors/auth.js @@ -1,5 +1,5 @@ import { createSelector } from 'reselect'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { Utils } from 'manifesto.js'; import flatten from 'lodash/flatten'; import MiradorCanvas from '../../lib/MiradorCanvas'; import { miradorSlice } from './utils'; diff --git a/src/state/selectors/manifests.js b/src/state/selectors/manifests.js index 44add0908..44abe0435 100644 --- a/src/state/selectors/manifests.js +++ b/src/state/selectors/manifests.js @@ -1,7 +1,6 @@ import { createSelector } from 'reselect'; import createCachedSelector from 're-reselect'; -import { PropertyValue } from 'manifesto.js/dist-esmodule/PropertyValue'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { PropertyValue, Utils } from 'manifesto.js'; import getThumbnail from '../../lib/ThumbnailFactory'; import asArray from '../../lib/asArray'; import { getCompanionWindow } from './companionWindows'; diff --git a/src/state/selectors/ranges.js b/src/state/selectors/ranges.js index 0a4038887..a2e312955 100644 --- a/src/state/selectors/ranges.js +++ b/src/state/selectors/ranges.js @@ -1,7 +1,7 @@ import { createSelector } from 'reselect'; import union from 'lodash/union'; import without from 'lodash/without'; -import { Utils } from 'manifesto.js/dist-esmodule/Utils'; +import { Utils } from 'manifesto.js'; import { getVisibleCanvasIds } from './canvases'; import { getCompanionWindow } from './companionWindows'; import { getSequenceTreeStructure } from './sequences'; diff --git a/src/state/selectors/searches.js b/src/state/selectors/searches.js index 90166d2bd..3e541084e 100644 --- a/src/state/selectors/searches.js +++ b/src/state/selectors/searches.js @@ -1,5 +1,5 @@ import { createSelector } from 'reselect'; -import { PropertyValue } from 'manifesto.js/dist-esmodule/PropertyValue'; +import { PropertyValue } from 'manifesto.js'; import flatten from 'lodash/flatten'; import AnnotationList from '../../lib/AnnotationList'; import { getCanvas, getCanvases } from './canvases'; diff --git a/src/state/selectors/sequences.js b/src/state/selectors/sequences.js index 6e90dc08b..c8014a70c 100644 --- a/src/state/selectors/sequences.js +++ b/src/state/selectors/sequences.js @@ -1,5 +1,5 @@ import { createSelector } from 'reselect'; -import { TreeNode } from 'manifesto.js/dist-esmodule/TreeNode'; +import { TreeNode } from 'manifesto.js'; import { getManifestoInstance, } from './manifests'; -- GitLab