@manuscripts/article-editor 1.10.12 → 1.10.13-LEAN-3340
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/SnapshotsDropdown.js +2 -2
- package/dist/cjs/components/inspector/SnapshotsDropdown.js.map +1 -1
- package/dist/cjs/components/projects/EditorElement.js +5 -2
- package/dist/cjs/components/projects/EditorElement.js.map +1 -1
- package/dist/cjs/components/projects/ManuscriptPageContainer.js +1 -7
- package/dist/cjs/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/cjs/components/projects/TagsInput.js +1 -20
- package/dist/cjs/components/projects/TagsInput.js.map +1 -1
- package/dist/cjs/components/track-changes/TrackChangesPanel.js +5 -2
- package/dist/cjs/components/track-changes/TrackChangesPanel.js.map +1 -1
- package/dist/cjs/components/track-changes/TrackModal.js +210 -0
- package/dist/cjs/components/track-changes/TrackModal.js.map +1 -0
- package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js +35 -103
- package/dist/cjs/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
- package/dist/cjs/components/track-changes/suggestion-list/SuggestionActions.js +129 -0
- package/dist/cjs/components/track-changes/suggestion-list/SuggestionActions.js.map +1 -0
- package/dist/cjs/hooks/use-create-editor.js +1 -3
- package/dist/cjs/hooks/use-create-editor.js.map +1 -1
- package/dist/cjs/hooks/use-exec-cmd.js +12 -0
- package/dist/cjs/hooks/use-exec-cmd.js.map +1 -0
- package/dist/cjs/hooks/use-handle-snapshot.js +5 -2
- package/dist/cjs/hooks/use-handle-snapshot.js.map +1 -1
- package/dist/cjs/lib/attrs-change-filter.js +41 -7
- package/dist/cjs/lib/attrs-change-filter.js.map +1 -1
- package/dist/cjs/store/DataSourceStrategy.js +0 -2
- package/dist/cjs/store/DataSourceStrategy.js.map +1 -1
- package/dist/cjs/store/Store.js.map +1 -1
- package/dist/es/components/inspector/SnapshotsDropdown.js +1 -1
- package/dist/es/components/inspector/SnapshotsDropdown.js.map +1 -1
- package/dist/es/components/projects/EditorElement.js +1 -1
- package/dist/es/components/projects/EditorElement.js.map +1 -1
- package/dist/es/components/projects/ManuscriptPageContainer.js +2 -8
- package/dist/es/components/projects/ManuscriptPageContainer.js.map +1 -1
- package/dist/es/components/projects/TagsInput.js +0 -19
- package/dist/es/components/projects/TagsInput.js.map +1 -1
- package/dist/es/components/track-changes/TrackChangesPanel.js +1 -1
- package/dist/es/components/track-changes/TrackChangesPanel.js.map +1 -1
- package/dist/es/components/track-changes/TrackModal.js +181 -0
- package/dist/es/components/track-changes/TrackModal.js.map +1 -0
- package/dist/es/components/track-changes/suggestion-list/Suggestion.js +24 -92
- package/dist/es/components/track-changes/suggestion-list/Suggestion.js.map +1 -1
- package/dist/es/components/track-changes/suggestion-list/SuggestionActions.js +100 -0
- package/dist/es/components/track-changes/suggestion-list/SuggestionActions.js.map +1 -0
- package/dist/es/hooks/use-create-editor.js +1 -3
- package/dist/es/hooks/use-create-editor.js.map +1 -1
- package/dist/es/hooks/use-exec-cmd.js +10 -0
- package/dist/es/hooks/use-exec-cmd.js.map +1 -0
- package/dist/es/hooks/use-handle-snapshot.js +1 -1
- package/dist/es/hooks/use-handle-snapshot.js.map +1 -1
- package/dist/es/lib/attrs-change-filter.js +41 -7
- package/dist/es/lib/attrs-change-filter.js.map +1 -1
- package/dist/es/store/DataSourceStrategy.js +0 -2
- package/dist/es/store/DataSourceStrategy.js.map +1 -1
- package/dist/es/store/Store.js.map +1 -1
- package/dist/types/components/projects/TagsInput.d.ts +0 -1
- package/dist/types/components/track-changes/TrackModal.d.ts +16 -0
- package/dist/types/components/track-changes/suggestion-list/Suggestion.d.ts +11 -0
- package/dist/types/components/track-changes/suggestion-list/SuggestionActions.d.ts +11 -0
- package/dist/types/hooks/use-exec-cmd.d.ts +4 -0
- package/dist/types/lib/attrs-change-filter.d.ts +2 -1
- package/dist/types/store/Store.d.ts +0 -2
- package/package.json +6 -5
- package/dist/cjs/components/Popper.js +0 -83
- package/dist/cjs/components/Popper.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorButton.js +0 -62
- package/dist/cjs/components/metadata/InviteAuthorButton.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js +0 -62
- package/dist/cjs/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
- package/dist/cjs/components/metadata/InviteAuthorsSidebar.js +0 -27
- package/dist/cjs/components/metadata/InviteAuthorsSidebar.js.map +0 -1
- package/dist/cjs/hooks/use-track-attrs-popper.js +0 -195
- package/dist/cjs/hooks/use-track-attrs-popper.js.map +0 -1
- package/dist/es/components/Popper.js +0 -75
- package/dist/es/components/Popper.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorButton.js +0 -57
- package/dist/es/components/metadata/InviteAuthorButton.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorPopperContainer.js +0 -57
- package/dist/es/components/metadata/InviteAuthorPopperContainer.js.map +0 -1
- package/dist/es/components/metadata/InviteAuthorsSidebar.js +0 -22
- package/dist/es/components/metadata/InviteAuthorsSidebar.js.map +0 -1
- package/dist/es/hooks/use-track-attrs-popper.js +0 -164
- package/dist/es/hooks/use-track-attrs-popper.js.map +0 -1
- package/dist/types/components/Popper.d.ts +0 -24
- package/dist/types/components/metadata/InviteAuthorButton.d.ts +0 -33
- package/dist/types/components/metadata/InviteAuthorPopperContainer.d.ts +0 -31
- package/dist/types/components/metadata/InviteAuthorsSidebar.d.ts +0 -24
- package/dist/types/hooks/use-track-attrs-popper.d.ts +0 -25
|
@@ -1,164 +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) 2023 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { ButtonGroup, TextButton } from '@manuscripts/style-guide';
|
|
13
|
-
import { CHANGE_STATUS, trackCommands, } from '@manuscripts/track-changes-plugin';
|
|
14
|
-
import React, { useCallback } from 'react';
|
|
15
|
-
import ReactDOM from 'react-dom';
|
|
16
|
-
import styled from 'styled-components';
|
|
17
|
-
import EditIcon from '../components/projects/icons/EditIcon';
|
|
18
|
-
import { filterAttrsChange } from '../lib/attrs-change-filter';
|
|
19
|
-
import { useStore } from '../store';
|
|
20
|
-
import { ThemeProvider } from '../theme/ThemeProvider';
|
|
21
|
-
export const useExecCmd = () => {
|
|
22
|
-
const [storeView] = useStore((store) => store.view);
|
|
23
|
-
return (cmd, hookView) => {
|
|
24
|
-
const view = storeView || hookView;
|
|
25
|
-
cmd(view.state, view.dispatch);
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default () => {
|
|
29
|
-
const [{ selectedAttrsChange, popper, trackState }, dispatch] = useStore((store) => ({
|
|
30
|
-
selectedAttrsChange: store.selectedAttrsChange,
|
|
31
|
-
popper: store.popper,
|
|
32
|
-
trackState: store.trackState,
|
|
33
|
-
}));
|
|
34
|
-
const execCmd = useExecCmd();
|
|
35
|
-
const cleanSelectedChange = useCallback(() => {
|
|
36
|
-
const previousSelection = document.querySelector(`.track-attrs-popper`);
|
|
37
|
-
previousSelection && ReactDOM.unmountComponentAtNode(previousSelection);
|
|
38
|
-
popper.destroy();
|
|
39
|
-
document
|
|
40
|
-
.querySelector('.attrs-popper-button-active')
|
|
41
|
-
?.classList.replace('attrs-popper-button-active', 'attrs-popper-button');
|
|
42
|
-
dispatch({ selectedAttrsChange: undefined });
|
|
43
|
-
}, [dispatch, popper]);
|
|
44
|
-
const renderAttrsChangePopper = useCallback((changeId, attrTrackingButton) => {
|
|
45
|
-
if (!trackState) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
attrTrackingButton.classList.replace('attrs-popper-button', 'attrs-popper-button-active');
|
|
49
|
-
const { newAttrs, oldAttrs } = filterAttrsChange(trackState.changeSet.get(changeId));
|
|
50
|
-
const popperContainer = document.createElement('div');
|
|
51
|
-
popperContainer.className = 'track-attrs-popper';
|
|
52
|
-
ReactDOM.render(React.createElement(ThemeProvider, null,
|
|
53
|
-
React.createElement(TrackAttrsPopperContent, { newAttrs: newAttrs, oldAttrs: oldAttrs, changeId: changeId, updateState: (cmd) => {
|
|
54
|
-
cleanSelectedChange();
|
|
55
|
-
execCmd(cmd);
|
|
56
|
-
} })), popperContainer);
|
|
57
|
-
popper.show(attrTrackingButton, popperContainer);
|
|
58
|
-
dispatch({ selectedAttrsChange: changeId });
|
|
59
|
-
}, [trackState, popper, dispatch, cleanSelectedChange, execCmd]);
|
|
60
|
-
return useCallback((e) => {
|
|
61
|
-
const attrTrackingButton = e.target.closest('.attrs-popper-button,.attrs-popper-button-active');
|
|
62
|
-
cleanSelectedChange();
|
|
63
|
-
if (attrTrackingButton) {
|
|
64
|
-
const changeId = attrTrackingButton.value;
|
|
65
|
-
if (selectedAttrsChange !== changeId) {
|
|
66
|
-
renderAttrsChangePopper(changeId, attrTrackingButton);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
dispatch({ selectedAttrsChange: undefined });
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, [
|
|
73
|
-
cleanSelectedChange,
|
|
74
|
-
dispatch,
|
|
75
|
-
renderAttrsChangePopper,
|
|
76
|
-
selectedAttrsChange,
|
|
77
|
-
]);
|
|
78
|
-
};
|
|
79
|
-
export const TrackAttrsPopperContent = ({ newAttrs, oldAttrs, changeId, updateState }) => {
|
|
80
|
-
const approveChange = () => {
|
|
81
|
-
updateState(trackCommands.setChangeStatuses(CHANGE_STATUS.accepted, [changeId]));
|
|
82
|
-
};
|
|
83
|
-
const rejectChange = () => {
|
|
84
|
-
updateState(trackCommands.setChangeStatuses(CHANGE_STATUS.rejected, [changeId]));
|
|
85
|
-
};
|
|
86
|
-
return (React.createElement(React.Fragment, null,
|
|
87
|
-
React.createElement(Header, null,
|
|
88
|
-
React.createElement(LabelContainer, null,
|
|
89
|
-
React.createElement(EditIcon, null),
|
|
90
|
-
React.createElement(Label, null, "Changed")),
|
|
91
|
-
React.createElement(ButtonGroup, null,
|
|
92
|
-
React.createElement(RejectButton, { onClick: rejectChange }, "Reject"),
|
|
93
|
-
React.createElement(TrackChangesButton, { onClick: approveChange }, "Approve"))),
|
|
94
|
-
React.createElement(ChangesList, null, Object.entries(oldAttrs).map(([key], index) => (React.createElement(Attribute, { key: index },
|
|
95
|
-
React.createElement(AttributeLabel, null,
|
|
96
|
-
oldAttrs[key].label,
|
|
97
|
-
":"),
|
|
98
|
-
newAttrs[key].value &&
|
|
99
|
-
oldAttrs[key].value !== newAttrs[key].value && (React.createElement(OldAttribute, null, oldAttrs[key].value)),
|
|
100
|
-
React.createElement(AttributeValue, null, newAttrs[key].value || oldAttrs[key].value)))))));
|
|
101
|
-
};
|
|
102
|
-
export const TrackChangesButton = styled(TextButton) `
|
|
103
|
-
font-size: ${(props) => props.theme.font.size.normal};
|
|
104
|
-
color: ${(props) => props.theme.colors.text.tertiary};
|
|
105
|
-
text-decoration: underline;
|
|
106
|
-
margin-right: ${(props) => props.theme.grid.unit * 2}px;
|
|
107
|
-
|
|
108
|
-
&:hover,
|
|
109
|
-
&:focus {
|
|
110
|
-
color: ${(props) => props.theme.colors.text.tertiary} !important;
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
const RejectButton = styled(TrackChangesButton) `
|
|
114
|
-
color: ${(props) => props.theme.colors.text.secondary};
|
|
115
|
-
`;
|
|
116
|
-
const Header = styled.div `
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: space-between;
|
|
120
|
-
padding: 16px;
|
|
121
|
-
`;
|
|
122
|
-
const Label = styled.div `
|
|
123
|
-
color: ${(props) => props.theme.colors.text.primary};
|
|
124
|
-
font-size: ${(props) => props.theme.font.size.medium};
|
|
125
|
-
font-weight: ${(props) => props.theme.font.weight.normal};
|
|
126
|
-
line-height: ${(props) => props.theme.font.lineHeight.large};
|
|
127
|
-
font-style: normal;
|
|
128
|
-
padding: 2px;
|
|
129
|
-
`;
|
|
130
|
-
const LabelContainer = styled.div `
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
padding: 4px;
|
|
134
|
-
`;
|
|
135
|
-
const Attribute = styled.div `
|
|
136
|
-
padding: ${(props) => props.theme.grid.unit * 3}px;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
|
|
139
|
-
&:hover {
|
|
140
|
-
background: ${(props) => props.theme.colors.background.fifth};
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
|
-
const AttributeLabel = styled.div `
|
|
144
|
-
color: ${(props) => props.theme.colors.text.primary};
|
|
145
|
-
font-size: ${(props) => props.theme.font.size.small};
|
|
146
|
-
font-weight: ${(props) => props.theme.font.weight.bold};
|
|
147
|
-
font-style: normal;
|
|
148
|
-
line-height: 16px;
|
|
149
|
-
`;
|
|
150
|
-
const AttributeValue = styled(AttributeLabel) `
|
|
151
|
-
font-weight: ${(props) => props.theme.font.weight.normal};
|
|
152
|
-
`;
|
|
153
|
-
const OldAttribute = styled(AttributeValue) `
|
|
154
|
-
text-decoration: line-through;
|
|
155
|
-
`;
|
|
156
|
-
const ChangesList = styled.div `
|
|
157
|
-
padding: ${(props) => props.theme.grid.unit * 2}px
|
|
158
|
-
${(props) => props.theme.grid.unit * 4}px;
|
|
159
|
-
max-height: ${(props) => props.theme.grid.unit * 124}px;
|
|
160
|
-
background: ${(props) => props.theme.colors.background.secondary};
|
|
161
|
-
overflow-y: scroll;
|
|
162
|
-
overflow-x: hidden;
|
|
163
|
-
`;
|
|
164
|
-
//# sourceMappingURL=use-track-attrs-popper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-attrs-popper.js","sourceRoot":"","sources":["../../../src/hooks/use-track-attrs-popper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EACL,aAAa,EAEb,aAAa,GACd,MAAM,mCAAmC,CAAA;AAG1C,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,QAAQ,MAAM,uCAAuC,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACnD,OAAO,CAAC,GAAY,EAAE,QAAqB,EAAE,EAAE;QAC7C,MAAM,IAAI,GAAG,SAAS,IAAI,QAAQ,CAAA;QAClC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAChC,CAAC,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,EAAE;IAClB,MAAM,CAAC,EAAE,mB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AAC,MAAM,CAAC,UAAU,CAAC,KAAK;;CAE/D,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;WACtB,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,KAAK;iBACpC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;;;CAGvD,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA;iBAC5B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;CACzD,CAAA;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA;;CAE1C,CAAA;AAED,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;aACjB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;MAC3C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;gBAC1B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG;gBACtC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS;;;CAGjE,CAAA"}
|
|
@@ -1,24 +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) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { PopperChildrenProps } from 'react-popper';
|
|
14
|
-
export declare const PopperBodyContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const SeparatorLine: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const PopperBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
17
|
-
size?: number | undefined;
|
|
18
|
-
}, never>;
|
|
19
|
-
interface Props {
|
|
20
|
-
popperProps: PopperChildrenProps;
|
|
21
|
-
}
|
|
22
|
-
export declare const CustomPopper: React.FunctionComponent<Props>;
|
|
23
|
-
export declare const CustomUpPopper: React.FunctionComponent<Props>;
|
|
24
|
-
export {};
|
|
@@ -1,33 +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) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Contributor, Project } from '@manuscripts/json-schema';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { TokenActions } from '../../store';
|
|
15
|
-
interface State {
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface Props {
|
|
19
|
-
author: Contributor;
|
|
20
|
-
project: Project;
|
|
21
|
-
updateAuthor: (author: Contributor, email: string) => void;
|
|
22
|
-
tokenActions: TokenActions;
|
|
23
|
-
}
|
|
24
|
-
declare class InviteAuthorButton extends React.Component<Props, State> {
|
|
25
|
-
state: State;
|
|
26
|
-
private node;
|
|
27
|
-
componentDidMount(): void;
|
|
28
|
-
render(): React.JSX.Element;
|
|
29
|
-
private togglePopper;
|
|
30
|
-
private handleClickOutside;
|
|
31
|
-
private updateListener;
|
|
32
|
-
}
|
|
33
|
-
export default InviteAuthorButton;
|
|
@@ -1,31 +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) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Contributor, Project } from '@manuscripts/json-schema';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { PopperChildrenProps } from 'react-popper';
|
|
15
|
-
import { TokenActions } from '../../store';
|
|
16
|
-
interface Props {
|
|
17
|
-
popperProps: PopperChildrenProps;
|
|
18
|
-
project: Project;
|
|
19
|
-
author: Contributor;
|
|
20
|
-
updateAuthor: (author: Contributor, email: string) => void;
|
|
21
|
-
tokenActions: TokenActions;
|
|
22
|
-
}
|
|
23
|
-
interface State {
|
|
24
|
-
invitationError: Error | null;
|
|
25
|
-
}
|
|
26
|
-
declare class InviteAuthorPopperContainer extends React.Component<Props> {
|
|
27
|
-
state: State;
|
|
28
|
-
render(): React.JSX.Element;
|
|
29
|
-
private handleInvitationSubmit;
|
|
30
|
-
}
|
|
31
|
-
export default InviteAuthorPopperContainer;
|
|
@@ -1,24 +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) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { TokenActions } from '../../store';
|
|
14
|
-
import { InvitationValues } from './AuthorInvitationForm';
|
|
15
|
-
interface Props {
|
|
16
|
-
invitationValues: InvitationValues;
|
|
17
|
-
handleCancel: () => void;
|
|
18
|
-
handleSubmit: (values: InvitationValues) => Promise<void>;
|
|
19
|
-
invitationSent: boolean;
|
|
20
|
-
isModal?: boolean;
|
|
21
|
-
tokenActions: TokenActions;
|
|
22
|
-
}
|
|
23
|
-
declare const InviteAuthorsSidebar: React.FunctionComponent<Props>;
|
|
24
|
-
export default InviteAuthorsSidebar;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Command } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare const useExecCmd: () => (cmd: Command, hookView?: EditorView) => void;
|
|
5
|
-
declare const _default: () => (e: React.MouseEvent) => void;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const TrackAttrsPopperContent: React.FC<{
|
|
8
|
-
newAttrs: Record<string, {
|
|
9
|
-
label: string;
|
|
10
|
-
value: string;
|
|
11
|
-
}>;
|
|
12
|
-
oldAttrs: Record<string, {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}>;
|
|
16
|
-
changeId: string;
|
|
17
|
-
updateState: (cmd: Command) => void;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const TrackChangesButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
20
|
-
type: "button" | "reset" | "submit";
|
|
21
|
-
} & {
|
|
22
|
-
danger?: boolean | undefined;
|
|
23
|
-
disabled?: boolean | undefined;
|
|
24
|
-
mini?: boolean | undefined;
|
|
25
|
-
}, "type">;
|