@manuscripts/article-editor 1.15.11 → 1.15.12
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/cjs/components/projects/ManuscriptInspector.js +1 -20
- package/dist/cjs/components/projects/ManuscriptInspector.js.map +1 -1
- package/dist/es/components/projects/ManuscriptInspector.js +2 -21
- package/dist/es/components/projects/ManuscriptInspector.js.map +1 -1
- package/package.json +4 -4
- package/dist/cjs/components/projects/DOIInput.js +0 -49
- package/dist/cjs/components/projects/DOIInput.js.map +0 -1
- package/dist/es/components/projects/DOIInput.js +0 -22
- package/dist/es/components/projects/DOIInput.js.map +0 -1
- package/dist/types/components/projects/DOIInput.d.ts +0 -16
|
@@ -16,28 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ManuscriptInspector = void 0;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
|
-
const config_1 = __importDefault(require("../../config"));
|
|
20
|
-
const store_1 = require("../../store");
|
|
21
19
|
const InspectorSection_1 = require("../InspectorSection");
|
|
22
|
-
const DOIInput_1 = require("./DOIInput");
|
|
23
20
|
const ManuscriptInspector = () => {
|
|
24
|
-
|
|
25
|
-
manuscript: store.manuscript,
|
|
26
|
-
doc: store.doc,
|
|
27
|
-
modelMap: store.trackModelMap,
|
|
28
|
-
saveManuscript: store.saveManuscript,
|
|
29
|
-
saveModel: store.saveTrackModel,
|
|
30
|
-
deleteModel: store.deleteTrackModel,
|
|
31
|
-
user: store.user,
|
|
32
|
-
project: store.project,
|
|
33
|
-
}));
|
|
34
|
-
return (react_1.default.createElement(InspectorSection_1.InspectorSection, { title: 'Manuscript' }, config_1.default.features.DOI && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
|
-
react_1.default.createElement(InspectorSection_1.Subheading, null, "DOI"),
|
|
36
|
-
react_1.default.createElement(DOIInput_1.DOIInput, { value: manuscript.DOI, handleChange: async (DOI) => {
|
|
37
|
-
await saveManuscript({
|
|
38
|
-
DOI,
|
|
39
|
-
});
|
|
40
|
-
} })))));
|
|
21
|
+
return react_1.default.createElement(InspectorSection_1.InspectorSection, { title: 'Manuscript' });
|
|
41
22
|
};
|
|
42
23
|
exports.ManuscriptInspector = ManuscriptInspector;
|
|
43
24
|
//# sourceMappingURL=ManuscriptInspector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManuscriptInspector.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptInspector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAGH,kDAAyB;AAEzB,
|
|
1
|
+
{"version":3,"file":"ManuscriptInspector.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptInspector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;AAGH,kDAAyB;AAEzB,0DAAsD;AAE/C,MAAM,mBAAmB,GAI3B,GAAG,EAAE;IACR,OAAO,8BAAC,mCAAgB,IAAC,KAAK,EAAE,YAAY,GAAqB,CAAA;AACnE,CAAC,CAAA;AANY,QAAA,mBAAmB,uBAM/B"}
|
|
@@ -10,27 +10,8 @@
|
|
|
10
10
|
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import
|
|
14
|
-
import { useStore } from '../../store';
|
|
15
|
-
import { InspectorSection, Subheading } from '../InspectorSection';
|
|
16
|
-
import { DOIInput } from './DOIInput';
|
|
13
|
+
import { InspectorSection } from '../InspectorSection';
|
|
17
14
|
export const ManuscriptInspector = () => {
|
|
18
|
-
|
|
19
|
-
manuscript: store.manuscript,
|
|
20
|
-
doc: store.doc,
|
|
21
|
-
modelMap: store.trackModelMap,
|
|
22
|
-
saveManuscript: store.saveManuscript,
|
|
23
|
-
saveModel: store.saveTrackModel,
|
|
24
|
-
deleteModel: store.deleteTrackModel,
|
|
25
|
-
user: store.user,
|
|
26
|
-
project: store.project,
|
|
27
|
-
}));
|
|
28
|
-
return (React.createElement(InspectorSection, { title: 'Manuscript' }, config.features.DOI && (React.createElement(React.Fragment, null,
|
|
29
|
-
React.createElement(Subheading, null, "DOI"),
|
|
30
|
-
React.createElement(DOIInput, { value: manuscript.DOI, handleChange: async (DOI) => {
|
|
31
|
-
await saveManuscript({
|
|
32
|
-
DOI,
|
|
33
|
-
});
|
|
34
|
-
} })))));
|
|
15
|
+
return React.createElement(InspectorSection, { title: 'Manuscript' });
|
|
35
16
|
};
|
|
36
17
|
//# sourceMappingURL=ManuscriptInspector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManuscriptInspector.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptInspector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,
|
|
1
|
+
{"version":3,"file":"ManuscriptInspector.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptInspector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAI3B,GAAG,EAAE;IACR,OAAO,oBAAC,gBAAgB,IAAC,KAAK,EAAE,YAAY,GAAqB,CAAA;AACnE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.12",
|
|
4
4
|
"license": "CPAL-1.0",
|
|
5
5
|
"description": "React components for editing and viewing manuscripts",
|
|
6
6
|
"repository": "github:Atypon-OpenSource/manuscripts-article-editor",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@fontsource/lato": "^4.5.10",
|
|
36
36
|
"@fontsource/pt-sans": "^4.5.11",
|
|
37
37
|
"@fontsource/pt-serif": "^4.5.11",
|
|
38
|
-
"@manuscripts/body-editor": "1.11.
|
|
38
|
+
"@manuscripts/body-editor": "1.11.8",
|
|
39
39
|
"@manuscripts/json-schema": "2.2.8",
|
|
40
40
|
"@manuscripts/library": "1.3.7",
|
|
41
|
-
"@manuscripts/style-guide": "1.12.
|
|
41
|
+
"@manuscripts/style-guide": "1.12.16",
|
|
42
42
|
"@manuscripts/track-changes-plugin": "1.7.13",
|
|
43
|
-
"@manuscripts/transform": "2.3.
|
|
43
|
+
"@manuscripts/transform": "2.3.9",
|
|
44
44
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
45
45
|
"@popperjs/core": "^2.11.8",
|
|
46
46
|
"@reach/tabs": "^0.18.0",
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
4
|
-
*
|
|
5
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
6
|
-
*
|
|
7
|
-
* The Original Code is manuscripts-frontend.
|
|
8
|
-
*
|
|
9
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
10
|
-
*
|
|
11
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
12
|
-
*/
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.DOIInput = void 0;
|
|
38
|
-
const react_1 = __importStar(require("react"));
|
|
39
|
-
const use_synced_data_1 = require("../../hooks/use-synced-data");
|
|
40
|
-
const inputs_1 = require("./inputs");
|
|
41
|
-
const DOIInput = ({ value = '', handleChange }) => {
|
|
42
|
-
const [currentValue, handleLocalChange, setEditing] = (0, use_synced_data_1.useSyncedData)(value, handleChange, 500);
|
|
43
|
-
const handleInputChange = (0, react_1.useCallback)((event) => {
|
|
44
|
-
handleLocalChange(event.target.value || undefined);
|
|
45
|
-
}, [handleLocalChange]);
|
|
46
|
-
return (react_1.default.createElement(inputs_1.MediumTextField, { value: currentValue, pattern: '^10.[0-9]+/', placeholder: '10.', readOnly: true, onChange: handleInputChange, onFocus: () => setEditing(true), onBlur: () => setEditing(false) }));
|
|
47
|
-
};
|
|
48
|
-
exports.DOIInput = DOIInput;
|
|
49
|
-
//# sourceMappingURL=DOIInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DOIInput.js","sourceRoot":"","sources":["../../../../src/components/projects/DOIInput.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAA0C;AAE1C,iEAA2D;AAC3D,qCAA0C;AAEnC,MAAM,QAAQ,GAGhB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IACpC,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,UAAU,CAAC,GAAG,IAAA,+BAAa,EAEjE,KAAK,EAAE,YAAY,EAAE,GAAG,CAAC,CAAA;IAE3B,MAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,CAAC,KAAK,EAAE,EAAE;QACR,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,CAAA;IACpD,CAAC,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAA;IAED,OAAO,CACL,8BAAC,wBAAe,IACd,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAC/B,CACH,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,QAAQ,YA0BpB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React, { useCallback } from 'react';
|
|
13
|
-
import { useSyncedData } from '../../hooks/use-synced-data';
|
|
14
|
-
import { MediumTextField } from './inputs';
|
|
15
|
-
export const DOIInput = ({ value = '', handleChange }) => {
|
|
16
|
-
const [currentValue, handleLocalChange, setEditing] = useSyncedData(value, handleChange, 500);
|
|
17
|
-
const handleInputChange = useCallback((event) => {
|
|
18
|
-
handleLocalChange(event.target.value || undefined);
|
|
19
|
-
}, [handleLocalChange]);
|
|
20
|
-
return (React.createElement(MediumTextField, { value: currentValue, pattern: '^10.[0-9]+/', placeholder: '10.', readOnly: true, onChange: handleInputChange, onFocus: () => setEditing(true), onBlur: () => setEditing(false) }));
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=DOIInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DOIInput.js","sourceRoot":"","sources":["../../../../src/components/projects/DOIInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAGhB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IACpC,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,UAAU,CAAC,GAAG,aAAa,CAEjE,KAAK,EAAE,YAAY,EAAE,GAAG,CAAC,CAAA;IAE3B,MAAM,iBAAiB,GAAG,WAAW,CACnC,CAAC,KAAK,EAAE,EAAE;QACR,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,CAAA;IACpD,CAAC,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAA;IAED,OAAO,CACL,oBAAC,eAAe,IACd,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAC/B,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
export declare const DOIInput: React.FC<{
|
|
14
|
-
value?: string;
|
|
15
|
-
handleChange: (value?: string) => void;
|
|
16
|
-
}>;
|