@harvard-lts/mirador-eda-plugin 0.1.2 → 0.1.3
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/dist/es/index.js +1 -1
- package/package.json +5 -4
- package/.github/pull_request_template.md +0 -31
- package/.github/workflows/publish-package.yml +0 -34
- package/.nvmrc +0 -1
- package/.parcelrc +0 -9
- package/.travis.yml +0 -16
- package/CONTRIBUTING.md +0 -20
- package/__mocks__/fileMock.js +0 -1
- package/babel.config.json +0 -11
- package/demo/data/manifest-3037.json +0 -524
- package/demo/data/manifest-5f3b.json +0 -315
- package/demo/data/manifest-609.json +0 -500
- package/demo/data/ms_am_1118_3_142_0001.jpg +0 -0
- package/demo/data/ms_am_1118_3_142_0002.jpg +0 -0
- package/demo/data/ms_am_1118_3_142_0003.jpg +0 -0
- package/demo/demoEntry.js +0 -21
- package/demo/index.html +0 -23
- package/jest.config.js +0 -23
- package/nwb.config.js +0 -20
- package/rollup.config.mjs +0 -12
- package/setupTests.js +0 -1
- package/src/index.js +0 -15
- package/src/plugins/EdaSideBarButtonsWrapper.js +0 -51
- package/src/plugins/EdaTranscriptionButton.js +0 -19
- package/src/plugins/EdaTranscriptionPanel.js +0 -245
- package/src/plugins/__tests__/EdaSideBarButtonsWrapper.spec.js +0 -183
- package/src/plugins/__tests__/EdaTranscriptionButton.spec.js +0 -17
- package/src/plugins/__tests__/EdaTranscriptionPanel.spec.js +0 -188
- package/src/plugins/__tests__/edaManifest.spec.js +0 -110
- package/src/plugins/__tests__/nonEdaManifest.spec.js +0 -64
- package/src/plugins/__tests__/transcriptionUtils.spec.js +0 -430
- package/src/plugins/testFixtures/combinedEditionsTranscriptions.js +0 -62
- package/src/plugins/testFixtures/franklinVariorum1998Transcription.js +0 -85
- package/src/plugins/testFixtures/johnsonPoems1955Transcription.js +0 -88
- package/src/plugins/transcriptionUtils.js +0 -114
- package/src/plugins/utils/suppressWarnings.js +0 -41
- package/webpack.config.cjs +0 -56
package/dist/es/index.js
CHANGED
|
@@ -471,7 +471,7 @@ var EdaSideBarButtonsWrapper = function EdaSideBarButtonsWrapper(_ref) {
|
|
|
471
471
|
// shallowEqual prevents re-renders unless transcriptions actually change
|
|
472
472
|
var transcriptions = useSelector(getEdaTranscription, shallowEqual);
|
|
473
473
|
var hasTranscriptions = Boolean(transcriptions && transcriptions.length > 0);
|
|
474
|
-
|
|
474
|
+
console.log("EDA transcriptions available:", hasTranscriptions);
|
|
475
475
|
// sets the translation for the EDA Transcriptions button tooltip
|
|
476
476
|
var customTranslation = function customTranslation(key, opts) {
|
|
477
477
|
if (key === "openCompanionWindow" && opts && opts.context === "edaTranscription") {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harvard-lts/mirador-eda-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A Mirador plugin for displaying Emily Dickinson Archive transcriptions with toggleable line breaks and editorial marks",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
5
|
+
"module": "dist/es/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
8
9
|
"scripts": {
|
|
9
10
|
"start": "npm run serve",
|
|
10
11
|
"clean": "rm -rf ./dist && rm -rf ./demo/dist",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
**The title of this pull-request should be a brief description of what the pull-request fixes/improves/changes. Ideally 50 characters or less.**
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
**JIRA Ticket**: (link)
|
|
6
|
-
|
|
7
|
-
- Other Relevant Links (Mailing list discussion, related pull requests, etc.)
|
|
8
|
-
|
|
9
|
-
# What does this Pull Request do?
|
|
10
|
-
|
|
11
|
-
A brief description of what the intended result of the PR will be and/or what problem it solves.
|
|
12
|
-
|
|
13
|
-
# How should this be tested?
|
|
14
|
-
|
|
15
|
-
A description of what steps someone could take to:
|
|
16
|
-
|
|
17
|
-
- Reproduce the problem you are fixing (if applicable)
|
|
18
|
-
- Test that the Pull Request does what is intended.
|
|
19
|
-
- Please be as detailed as possible.
|
|
20
|
-
- Good testing instructions help get your PR completed faster.
|
|
21
|
-
|
|
22
|
-
# Test coverage
|
|
23
|
-
|
|
24
|
-
Yes/No: Are changes in this pull-request covered by:
|
|
25
|
-
|
|
26
|
-
- unit tests?
|
|
27
|
-
- integration tests?
|
|
28
|
-
|
|
29
|
-
# Interested parties
|
|
30
|
-
|
|
31
|
-
Tag (@ mention) interested parties
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: Publish to npmjs on release
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [published]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
publish:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
- name: Checkout repository
|
|
12
|
-
uses: actions/checkout@v4
|
|
13
|
-
with:
|
|
14
|
-
fetch-depth: 0
|
|
15
|
-
|
|
16
|
-
- name: Compare the tag and version
|
|
17
|
-
run: |
|
|
18
|
-
NODE_VERSION=$(node -p -e "require('./package.json').version")
|
|
19
|
-
LATEST_TAG=$(git describe --tags --abbrev=0)
|
|
20
|
-
if [ "v$NODE_VERSION" != $LATEST_TAG ]; then echo "Github tag ($LATEST_TAG) and version ($NODE_VERSION) don't match" && exit 1; fi
|
|
21
|
-
|
|
22
|
-
- name: Set up Node.js
|
|
23
|
-
uses: actions/setup-node@v4
|
|
24
|
-
with:
|
|
25
|
-
node-version: 18
|
|
26
|
-
registry-url: "https://registry.npmjs.org"
|
|
27
|
-
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: npm ci
|
|
30
|
-
|
|
31
|
-
- name: Publish to npm
|
|
32
|
-
run: npm publish --access=public
|
|
33
|
-
env:
|
|
34
|
-
NODE_AUTH_TOKEN: ${{ secrets.LTS_NPM_TOKEN }}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
lts/hydrogen
|
package/.parcelrc
DELETED
package/.travis.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
|
|
3
|
-
language: node_js
|
|
4
|
-
node_js:
|
|
5
|
-
- 18
|
|
6
|
-
|
|
7
|
-
before_install:
|
|
8
|
-
- npm install codecov.io coveralls
|
|
9
|
-
|
|
10
|
-
after_success:
|
|
11
|
-
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
|
|
12
|
-
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
|
13
|
-
|
|
14
|
-
branches:
|
|
15
|
-
only:
|
|
16
|
-
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
## Prerequisites
|
|
2
|
-
|
|
3
|
-
Check the `.nvmrc` file for the requisite node version
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
- Running `npm install` in the component's root directory will install everything you need for development.
|
|
8
|
-
|
|
9
|
-
## Running Tests
|
|
10
|
-
|
|
11
|
-
- `npm test` will run the tests once.
|
|
12
|
-
|
|
13
|
-
- `npm run test:coverage` will run the tests and produce a coverage report in `coverage/`.
|
|
14
|
-
|
|
15
|
-
- `npm run test:watch` will run the tests on every change.
|
|
16
|
-
|
|
17
|
-
## Building
|
|
18
|
-
|
|
19
|
-
- `npm run build` will build the component for publishing to npm and also bundle the demo app.
|
|
20
|
-
|
package/__mocks__/fileMock.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = "mock-file-stub"
|