@manuscripts/article-editor 4.7.30 → 4.7.31
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.
|
@@ -23,11 +23,12 @@ const ManuscriptSidebar = () => {
|
|
|
23
23
|
const can = (0, capabilities_1.usePermissions)();
|
|
24
24
|
const [view] = (0, store_1.useStore)((store) => store.view);
|
|
25
25
|
const [editor] = (0, store_1.useStore)((store) => store.editor);
|
|
26
|
+
const [files] = (0, store_1.useStore)((store) => store.files);
|
|
26
27
|
if (!editor) {
|
|
27
28
|
return null;
|
|
28
29
|
}
|
|
29
30
|
return (react_1.default.createElement(PageSidebar_1.default, { direction: 'row', hideWhen: 'max-width: 900px', minSize: 260, name: 'sidebar', side: 'end', sidebarTitle: '', sidebarFooter: '' },
|
|
30
|
-
react_1.default.createElement(body_editor_1.ManuscriptOutline, { doc: editor.state?.doc || null, view: view, can: can })));
|
|
31
|
+
react_1.default.createElement(body_editor_1.ManuscriptOutline, { doc: editor.state?.doc || null, view: view, can: can, getFiles: () => files })));
|
|
31
32
|
};
|
|
32
33
|
exports.default = ManuscriptSidebar;
|
|
33
34
|
//# sourceMappingURL=ManuscriptSidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManuscriptSidebar.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptSidebar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,
|
|
1
|
+
{"version":3,"file":"ManuscriptSidebar.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptSidebar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;AAEH,0DAA4E;AAC5E,kDAAyB;AAEzB,yDAAuD;AACvD,uCAAsC;AACtC,iEAAwC;AAExC,MAAM,iBAAiB,GAAa,GAAG,EAAE;IACvC,MAAM,GAAG,GAAG,IAAA,6BAAc,GAAE,CAAA;IAC5B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAClD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAEhD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,8BAAC,qBAAW,IACV,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,GAAG,EACZ,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,KAAK,EACX,YAAY,EAAE,EAAE,EAChB,aAAa,EAAE,EAAE;QAEjB,8BAAC,+BAAiB,IAChB,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,IAAI,EAC9B,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAyB,GACzC,CACU,CACf,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
|
|
@@ -18,11 +18,12 @@ const ManuscriptSidebar = () => {
|
|
|
18
18
|
const can = usePermissions();
|
|
19
19
|
const [view] = useStore((store) => store.view);
|
|
20
20
|
const [editor] = useStore((store) => store.editor);
|
|
21
|
+
const [files] = useStore((store) => store.files);
|
|
21
22
|
if (!editor) {
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
25
|
return (React.createElement(PageSidebar, { direction: 'row', hideWhen: 'max-width: 900px', minSize: 260, name: 'sidebar', side: 'end', sidebarTitle: '', sidebarFooter: '' },
|
|
25
|
-
React.createElement(ManuscriptOutline, { doc: editor.state?.doc || null, view: view, can: can })));
|
|
26
|
+
React.createElement(ManuscriptOutline, { doc: editor.state?.doc || null, view: view, can: can, getFiles: () => files })));
|
|
26
27
|
};
|
|
27
28
|
export default ManuscriptSidebar;
|
|
28
29
|
//# sourceMappingURL=ManuscriptSidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManuscriptSidebar.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"ManuscriptSidebar.js","sourceRoot":"","sources":["../../../../src/components/projects/ManuscriptSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAkB,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,WAAW,MAAM,gBAAgB,CAAA;AAExC,MAAM,iBAAiB,GAAa,GAAG,EAAE;IACvC,MAAM,GAAG,GAAG,cAAc,EAAE,CAAA;IAC5B,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC9C,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAClD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAEhD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,oBAAC,WAAW,IACV,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,GAAG,EACZ,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,KAAK,EACX,YAAY,EAAE,EAAE,EAChB,aAAa,EAAE,EAAE;QAEjB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,IAAI,EAC9B,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAyB,GACzC,CACU,CACf,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.31",
|
|
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",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@fontsource/pt-sans": "5.2.5",
|
|
33
33
|
"@fontsource/pt-serif": "5.2.5",
|
|
34
34
|
"@headlessui/react": "2.2.3",
|
|
35
|
-
"@manuscripts/body-editor": "3.7.
|
|
35
|
+
"@manuscripts/body-editor": "3.7.27",
|
|
36
36
|
"@manuscripts/json-schema": "2.2.12",
|
|
37
|
-
"@manuscripts/style-guide": "3.3.
|
|
37
|
+
"@manuscripts/style-guide": "3.3.15",
|
|
38
38
|
"@manuscripts/track-changes-plugin": "2.2.3",
|
|
39
|
-
"@manuscripts/transform": "4.3.
|
|
39
|
+
"@manuscripts/transform": "4.3.13",
|
|
40
40
|
"@popperjs/core": "2.11.8",
|
|
41
41
|
"axios": "1.11.0",
|
|
42
42
|
"date-fns": "4.1.0",
|