@manuscripts/article-editor 3.8.43-LEAN-2394.0 → 3.8.43-LEAN-4405.0
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/inspector/{SnapshotsList.js → SnapshotsDropdown.js} +76 -95
- package/dist/cjs/components/inspector/SnapshotsDropdown.js.map +1 -0
- package/dist/cjs/components/projects/Inspector.js +17 -20
- package/dist/cjs/components/projects/Inspector.js.map +1 -1
- package/dist/cjs/components/projects/ManuscriptPageContainer.js +1 -3
- package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/cjs/components/track-changes/TrackChangesPanel.js +2 -0
- package/dist/cjs/components/track-changes/TrackChangesPanel.js.map +1 -1
- package/dist/cjs/hooks/use-connect-editor.js +1 -8
- package/dist/cjs/hooks/use-connect-editor.js.map +1 -1
- package/dist/cjs/hooks/use-create-editor.js +3 -3
- package/dist/cjs/hooks/use-create-editor.js.map +1 -1
- package/dist/cjs/lib/attrs-change-filter.js +1 -1
- package/dist/cjs/store/Store.js.map +1 -1
- package/dist/es/components/inspector/{SnapshotsList.js → SnapshotsDropdown.js} +65 -84
- package/dist/es/components/inspector/SnapshotsDropdown.js.map +1 -0
- package/dist/es/components/projects/Inspector.js +17 -20
- package/dist/es/components/projects/Inspector.js.map +1 -1
- package/dist/es/components/projects/ManuscriptPageContainer.js +1 -3
- package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/es/components/track-changes/TrackChangesPanel.js +2 -0
- package/dist/es/components/track-changes/TrackChangesPanel.js.map +1 -1
- package/dist/es/hooks/use-connect-editor.js +1 -8
- package/dist/es/hooks/use-connect-editor.js.map +1 -1
- package/dist/es/hooks/use-create-editor.js +3 -3
- package/dist/es/hooks/use-create-editor.js.map +1 -1
- package/dist/es/lib/attrs-change-filter.js +1 -1
- package/dist/es/store/Store.js.map +1 -1
- package/dist/types/components/inspector/SnapshotsDropdown.d.ts +2 -0
- package/dist/types/store/Store.d.ts +0 -1
- package/package.json +4 -4
- package/dist/cjs/components/VersionHistoryDropdown.js +0 -54
- package/dist/cjs/components/VersionHistoryDropdown.js.map +0 -1
- package/dist/cjs/components/inspector/SnapshotsList.js.map +0 -1
- package/dist/es/components/VersionHistoryDropdown.js +0 -49
- package/dist/es/components/VersionHistoryDropdown.js.map +0 -1
- package/dist/es/components/inspector/SnapshotsList.js.map +0 -1
- package/dist/types/components/VersionHistoryDropdown.d.ts +0 -14
- package/dist/types/components/inspector/SnapshotsList.d.ts +0 -13
@@ -1,49 +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) 2025 Atypon Systems LLC. All Rights Reserved.
|
11
|
-
*/
|
12
|
-
import { DotsIcon, DropdownContainer, DropdownList, useDropdown, } from '@manuscripts/style-guide';
|
13
|
-
import { TrackChangesStatus, trackCommands, } from '@manuscripts/track-changes-plugin';
|
14
|
-
import React from 'react';
|
15
|
-
import styled from 'styled-components';
|
16
|
-
import useExecCmd from '../hooks/use-exec-cmd';
|
17
|
-
const VersionHistoryDropdown = () => {
|
18
|
-
const { isOpen, toggleOpen, wrapperRef } = useDropdown();
|
19
|
-
const execCmd = useExecCmd();
|
20
|
-
return (React.createElement(DropdownContainer, { ref: wrapperRef },
|
21
|
-
React.createElement(ToggleDropdownButton, { onClick: toggleOpen },
|
22
|
-
React.createElement(DotsIcon, null)),
|
23
|
-
isOpen && (React.createElement(HistoryDropdownList, { "data-cy": "history-dropdown", direction: "right", width: 192, top: 5, onClick: toggleOpen },
|
24
|
-
React.createElement(DropdownItem, { onClick: () => execCmd(trackCommands.setTrackingStatus(TrackChangesStatus.viewSnapshots)) }, "Version history")))));
|
25
|
-
};
|
26
|
-
export default VersionHistoryDropdown;
|
27
|
-
const ToggleDropdownButton = styled.button `
|
28
|
-
border: none;
|
29
|
-
background: transparent;
|
30
|
-
cursor: pointer;
|
31
|
-
padding-left: 24px;
|
32
|
-
&:focus {
|
33
|
-
outline: none;
|
34
|
-
}
|
35
|
-
`;
|
36
|
-
const DropdownItem = styled.div `
|
37
|
-
font-family: ${(props) => props.theme.font.family.Lato};
|
38
|
-
cursor: pointer;
|
39
|
-
font-size: 16px;
|
40
|
-
line-height: 24px;
|
41
|
-
color: ${(props) => props.theme.colors.text.primary};
|
42
|
-
padding: 16px;
|
43
|
-
`;
|
44
|
-
const HistoryDropdownList = styled(DropdownList) `
|
45
|
-
top: 0;
|
46
|
-
right: 50%;
|
47
|
-
border-radius: 8px;
|
48
|
-
`;
|
49
|
-
//# sourceMappingURL=VersionHistoryDropdown.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VersionHistoryDropdown.js","sourceRoot":"","sources":["../../../src/components/VersionHistoryDropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,UAAU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AC,MAAM,CAAC,UAAU,CAAC,KAAK;;;;CAI/D,CAAA;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;WACpB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO;eACtC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;;;CAGrD,CAAA;AACD,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;WACrB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;eACxC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;iBACpC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM;CAC7D,CAAA"}
|
@@ -1,14 +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) 2025 Atypon Systems LLC. All Rights Reserved.
|
11
|
-
*/
|
12
|
-
import React from 'react';
|
13
|
-
declare const VersionHistoryDropdown: React.FC;
|
14
|
-
export default VersionHistoryDropdown;
|
@@ -1,13 +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) 2025 Atypon Systems LLC. All Rights Reserved.
|
11
|
-
*/
|
12
|
-
import React from 'react';
|
13
|
-
export declare const SnapshotsList: React.FC;
|