@manuscripts/body-editor 3.3.0 → 3.3.2
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/ChangeHandlingForm.js +17 -7
- package/dist/cjs/components/DragAndDropUploader.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationForm.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationItem.js +17 -7
- package/dist/cjs/components/affiliations/AffiliationsModal.js +17 -7
- package/dist/cjs/components/authors/AuthorDetailsForm.js +17 -7
- package/dist/cjs/components/authors/AuthorsModal.js +17 -7
- package/dist/cjs/components/authors/DraggableAuthor.js +17 -7
- package/dist/cjs/components/awards/AwardForm.js +17 -7
- package/dist/cjs/components/awards/AwardModal.js +17 -7
- package/dist/cjs/components/awards/DeleteAwardDiaolog.js +17 -7
- package/dist/cjs/components/dialog/ConfirmationDialog.js +1 -1
- package/dist/cjs/components/keywords/AddKeywordInline.js +17 -7
- package/dist/cjs/components/keywords/DeleteKeywordDialog.js +17 -7
- package/dist/cjs/components/modal-drawer/GenericDrawerGroup.js +2 -2
- package/dist/cjs/components/outline/DraggableTree.js +17 -7
- package/dist/cjs/components/outline/ManuscriptOutline.js +17 -7
- package/dist/cjs/components/references/BibliographyItemSource.js +17 -7
- package/dist/cjs/components/references/CitationEditor.js +17 -7
- package/dist/cjs/components/references/CitationViewer.js +17 -7
- package/dist/cjs/components/references/ImportBibliographyForm.js +17 -7
- package/dist/cjs/components/references/ImportBibliographyModal.js +17 -7
- package/dist/cjs/components/references/ReferenceForm/PersonDropDown.js +17 -7
- package/dist/cjs/components/references/ReferenceForm/ReferenceForm.js +17 -7
- package/dist/cjs/components/references/ReferenceSearch.js +17 -7
- package/dist/cjs/components/references/ReferenceSearchSection.js +17 -7
- package/dist/cjs/components/references/ReferencesEditor.js +17 -7
- package/dist/cjs/components/references/ReferencesModal.js +17 -7
- package/dist/cjs/components/references/SearchInput.js +17 -7
- package/dist/cjs/components/toolbar/InsertEmbedDialog.js +17 -7
- package/dist/cjs/components/toolbar/InsertTableDialog.js +17 -7
- package/dist/cjs/components/views/CrossReferenceItems.js +17 -7
- package/dist/cjs/components/views/DeleteEmbedDialog.js +17 -7
- package/dist/cjs/components/views/DeleteFootnoteDialog.js +17 -7
- package/dist/cjs/components/views/ExtLinkEditor.js +17 -7
- package/dist/cjs/components/views/FigureDropdown.js +17 -7
- package/dist/cjs/components/views/FootnotesSelector.js +17 -7
- package/dist/cjs/components/views/InsertSpecialCharacter.js +17 -7
- package/dist/cjs/components/views/LinkForm.js +17 -7
- package/dist/cjs/components/views/TableCellContextMenu.js +17 -7
- package/dist/cjs/keys/list.js +2 -2
- package/dist/cjs/lib/__tests__/helpers.test.js +17 -7
- package/dist/cjs/lib/files.js +2 -2
- package/dist/cjs/lib/placeholder.js +1 -2
- package/dist/cjs/lib/references.js +17 -7
- package/dist/cjs/lib/track-changes-utils.js +11 -11
- package/dist/cjs/lib/utils.js +2 -2
- package/dist/cjs/lib/view.js +17 -7
- package/dist/cjs/plugins/bibliography.js +17 -7
- package/dist/cjs/plugins/footnotes.js +2 -2
- package/dist/cjs/plugins/search-replace/lib.js +3 -4
- package/dist/cjs/plugins/section-category/section-category-utils.js +1 -2
- package/dist/cjs/plugins/section_title/autocompletion.js +2 -3
- package/dist/cjs/testing/polyfill-dom.js +1 -2
- package/dist/cjs/testing/setup-editor.js +2 -3
- package/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/ReactSubView.js +1 -2
- package/dist/cjs/views/equation_editable.js +17 -7
- package/dist/cjs/views/image_element.js +18 -8
- package/dist/cjs/views/inline_equation_editable.js +17 -7
- package/dist/cjs/views/inline_footnote.js +2 -1
- package/dist/es/plugins/footnotes.js +2 -2
- package/dist/es/versions.js +1 -1
- package/dist/es/views/inline_footnote.js +2 -1
- package/dist/types/commands.d.ts +7 -7
- package/dist/types/components/ChangeHandlingForm.d.ts +1 -1
- package/dist/types/components/authors/useManageAffiliations.d.ts +0 -1
- package/dist/types/components/authors/useManageCredit.d.ts +0 -1
- package/dist/types/components/outline/Outline.d.ts +0 -1
- package/dist/types/components/references/ReferenceForm/PersonDropDown.d.ts +0 -1
- package/dist/types/components/references/ReferenceForm/styled-components.d.ts +17 -18
- package/dist/types/components/toolbar/ListMenuItem.d.ts +1 -1
- package/dist/types/components/toolbar/helpers.d.ts +1 -1
- package/dist/types/components/toolbar/type-selector/styles.d.ts +1 -94
- package/dist/types/lib/doc.d.ts +7 -1
- package/dist/types/lib/media.d.ts +4 -4
- package/dist/types/lib/position-menu.d.ts +4 -4
- package/dist/types/lib/utils.d.ts +3 -3
- package/dist/types/selection.d.ts +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/dist/types/views/accessibility_element.d.ts +1 -1
- package/dist/types/views/affiliations.d.ts +1 -1
- package/dist/types/views/alt_title.d.ts +1 -1
- package/dist/types/views/alt_titles_section.d.ts +1 -1
- package/dist/types/views/author_notes.d.ts +1 -1
- package/dist/types/views/award.d.ts +1 -1
- package/dist/types/views/awards.d.ts +1 -1
- package/dist/types/views/bibliography_element.d.ts +1 -1
- package/dist/types/views/blockquote_element_editable.d.ts +3 -3
- package/dist/types/views/box_element.d.ts +1 -1
- package/dist/types/views/citation.d.ts +1 -1
- package/dist/types/views/citation_editable.d.ts +1 -1
- package/dist/types/views/contributors.d.ts +1 -1
- package/dist/types/views/creators.d.ts +3 -3
- package/dist/types/views/cross_reference.d.ts +1 -1
- package/dist/types/views/cross_reference_editable.d.ts +1 -1
- package/dist/types/views/editable_block.d.ts +5 -4
- package/dist/types/views/embed.d.ts +4 -4
- package/dist/types/views/equation.d.ts +1 -1
- package/dist/types/views/equation_editable.d.ts +1 -1
- package/dist/types/views/equation_element.d.ts +1 -1
- package/dist/types/views/equation_element_editable.d.ts +4 -4
- package/dist/types/views/figure.d.ts +1 -1
- package/dist/types/views/figure_editable.d.ts +1 -1
- package/dist/types/views/figure_element.d.ts +1 -1
- package/dist/types/views/figure_element_editable.d.ts +4 -4
- package/dist/types/views/footnote.d.ts +1 -1
- package/dist/types/views/general_table_footnote.d.ts +1 -1
- package/dist/types/views/hero_image.d.ts +1 -1
- package/dist/types/views/hero_image_editable.d.ts +4 -4
- package/dist/types/views/image_element.d.ts +1 -1
- package/dist/types/views/image_element_editable.d.ts +4 -4
- package/dist/types/views/inline_equation.d.ts +1 -1
- package/dist/types/views/inline_equation_editable.d.ts +1 -1
- package/dist/types/views/inline_footnote.d.ts +1 -1
- package/dist/types/views/inline_footnote_editable.d.ts +1 -1
- package/dist/types/views/keyword.d.ts +1 -1
- package/dist/types/views/keyword_group.d.ts +1 -1
- package/dist/types/views/link.d.ts +1 -1
- package/dist/types/views/link_editable.d.ts +1 -1
- package/dist/types/views/list.d.ts +3 -3
- package/dist/types/views/paragraph_editable.d.ts +3 -3
- package/dist/types/views/placeholder.d.ts +1 -1
- package/dist/types/views/placeholder_element.d.ts +1 -1
- package/dist/types/views/placeholder_element_editable.d.ts +4 -4
- package/dist/types/views/pullquote_element_editable.d.ts +3 -3
- package/dist/types/views/quote_image_editable.d.ts +1 -1
- package/dist/types/views/section.d.ts +1 -1
- package/dist/types/views/section_label.d.ts +1 -1
- package/dist/types/views/section_title.d.ts +1 -1
- package/dist/types/views/section_title_editable.d.ts +4 -4
- package/dist/types/views/table_cell.d.ts +1 -1
- package/dist/types/views/table_element.d.ts +1 -1
- package/dist/types/views/table_element_editable.d.ts +4 -4
- package/dist/types/views/table_element_footer.d.ts +1 -1
- package/dist/types/views/title.d.ts +1 -1
- package/dist/types/views/title_editable.d.ts +1 -1
- package/package.json +16 -16
- package/dist/cjs/__mocks__/styleMock.js +0 -18
- package/dist/es/__mocks__/styleMock.js +0 -16
- package/dist/types/__mocks__/styleMock.d.ts +0 -17
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
export declare const OutlineItemIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
18
17
|
export declare const OutlineItem: import("styled-components").StyledComponent<"div", any, {
|
|
19
18
|
depth: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Field } from 'formik';
|
|
3
2
|
export declare const LabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
3
|
export declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
@@ -7,39 +6,39 @@ export declare const NameFieldContainer: import("styled-components").StyledCompo
|
|
|
7
6
|
export declare const NameField: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
8
7
|
export declare const YearField: import("styled-components").StyledComponent<typeof Field, any, {}, never>;
|
|
9
8
|
export declare const Button: import("styled-components").StyledComponent<"button", any, {
|
|
10
|
-
type: "button" | "
|
|
9
|
+
type: "button" | "submit" | "reset";
|
|
11
10
|
} & {
|
|
12
|
-
danger?: boolean
|
|
13
|
-
disabled?: boolean
|
|
14
|
-
mini?: boolean
|
|
11
|
+
danger?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
mini?: boolean;
|
|
15
14
|
} & {
|
|
16
|
-
defaultColor?: boolean
|
|
17
|
-
size?: number
|
|
18
|
-
iconColor?: string
|
|
15
|
+
defaultColor?: boolean;
|
|
16
|
+
size?: number;
|
|
17
|
+
iconColor?: string;
|
|
19
18
|
} & {
|
|
20
19
|
defaultColor: boolean;
|
|
21
20
|
size: number;
|
|
22
21
|
}, "size" | "type" | "defaultColor">;
|
|
23
22
|
export declare const Actions: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
23
|
export declare const FormField: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
25
|
-
export declare const ReferenceTextField: import("styled-components").StyledComponent<"input", any, import("@manuscripts/style-guide
|
|
26
|
-
export declare const ReferenceTextArea: import("styled-components").StyledComponent<"textarea", any, import("@manuscripts/style-guide
|
|
24
|
+
export declare const ReferenceTextField: import("styled-components").StyledComponent<"input", any, import("@manuscripts/style-guide").ErrorProps, never>;
|
|
25
|
+
export declare const ReferenceTextArea: import("styled-components").StyledComponent<"textarea", any, import("@manuscripts/style-guide").ErrorProps, never>;
|
|
27
26
|
export declare const FormFields: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
28
27
|
export declare const DeleteButton: import("styled-components").StyledComponent<"button", any, {
|
|
29
|
-
type: "button" | "
|
|
28
|
+
type: "button" | "submit" | "reset";
|
|
30
29
|
} & {
|
|
31
|
-
danger?: boolean
|
|
32
|
-
disabled?: boolean
|
|
33
|
-
mini?: boolean
|
|
30
|
+
danger?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
mini?: boolean;
|
|
34
33
|
} & {
|
|
35
|
-
defaultColor?: boolean
|
|
36
|
-
size?: number
|
|
37
|
-
iconColor?: string
|
|
34
|
+
defaultColor?: boolean;
|
|
35
|
+
size?: number;
|
|
36
|
+
iconColor?: string;
|
|
38
37
|
}, "type">;
|
|
39
38
|
export declare const Section: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
40
39
|
export declare const PersonForm: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
41
40
|
export declare const Title: import("styled-components").StyledComponent<"h4", any, {
|
|
42
|
-
isInvalid?: boolean
|
|
41
|
+
isInvalid?: boolean;
|
|
43
42
|
}, never>;
|
|
44
43
|
export declare const DropdownIndicator: import("styled-components").StyledComponent<import("react").FC<import("@manuscripts/style-guide/dist/types/components/icons/types").IconProps>, any, {}, never>;
|
|
45
44
|
export declare const ToggleButton: import("styled-components").StyledComponent<"button", any, {
|
|
@@ -11,5 +11,5 @@ export declare const StyleBlock: import("styled-components").StyledComponent<"di
|
|
|
11
11
|
export declare const BlockItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const Block: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
13
|
export declare const Label: import("styled-components").StyledComponent<"div", any, {
|
|
14
|
-
hide?: boolean
|
|
14
|
+
hide?: boolean;
|
|
15
15
|
}, never>;
|
|
@@ -13,4 +13,4 @@ export declare const indentSection: () => (state: EditorState, dispatch: Dispatc
|
|
|
13
13
|
export declare const indentParagraph: () => (state: EditorState, dispatch: Dispatch, view?: EditorView) => void;
|
|
14
14
|
export declare const unindentSection: () => (state: EditorState, dispatch: Dispatch, view?: EditorView) => void;
|
|
15
15
|
export declare const unindentParagraph: () => (state: EditorState, dispatch: Dispatch, view?: EditorView) => void;
|
|
16
|
-
export declare const changeIndentation: (action:
|
|
16
|
+
export declare const changeIndentation: (action: "indent" | "unindent") => (state: EditorState, dispatch: Dispatch, view?: EditorView) => void;
|
|
@@ -1,99 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CSSObjectWithLabel } from 'react-select';
|
|
3
2
|
import { Option } from './TypeSelector';
|
|
4
|
-
export declare const StyledSelect: import("styled-components").StyledComponent<(props: Omit<
|
|
5
|
-
placeholder?: import("react").ReactNode;
|
|
6
|
-
options?: import("react-select").OptionsOrGroups<Option, import("react-select").GroupBase<Option>> | undefined;
|
|
7
|
-
tabIndex?: number | undefined;
|
|
8
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
9
|
-
isLoading?: boolean | undefined;
|
|
10
|
-
backspaceRemovesValue?: boolean | undefined;
|
|
11
|
-
blurInputOnSelect?: boolean | undefined;
|
|
12
|
-
captureMenuScroll?: boolean | undefined;
|
|
13
|
-
classNames?: import("react-select").ClassNamesConfig<Option, false, import("react-select").GroupBase<Option>> | undefined;
|
|
14
|
-
closeMenuOnSelect?: boolean | undefined;
|
|
15
|
-
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
16
|
-
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, false, import("react-select").GroupBase<Option>>> | undefined;
|
|
17
|
-
controlShouldRenderValue?: boolean | undefined;
|
|
18
|
-
escapeClearsValue?: boolean | undefined;
|
|
19
|
-
filterOption?: ((option: import("react-select").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
20
|
-
formatGroupLabel?: ((group: import("react-select").GroupBase<Option>) => import("react").ReactNode) | undefined;
|
|
21
|
-
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
22
|
-
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
23
|
-
isDisabled?: boolean | undefined;
|
|
24
|
-
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
25
|
-
isMulti?: false | undefined;
|
|
26
|
-
isRtl?: boolean | undefined;
|
|
27
|
-
isSearchable?: boolean | undefined;
|
|
28
|
-
loadingMessage?: ((obj: {
|
|
29
|
-
inputValue: string;
|
|
30
|
-
}) => import("react").ReactNode) | undefined;
|
|
31
|
-
minMenuHeight?: number | undefined;
|
|
32
|
-
maxMenuHeight?: number | undefined;
|
|
33
|
-
menuIsOpen?: boolean | undefined;
|
|
34
|
-
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
35
|
-
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
36
|
-
menuShouldBlockScroll?: boolean | undefined;
|
|
37
|
-
menuShouldScrollIntoView?: boolean | undefined;
|
|
38
|
-
noOptionsMessage?: ((obj: {
|
|
39
|
-
inputValue: string;
|
|
40
|
-
}) => import("react").ReactNode) | undefined;
|
|
41
|
-
openMenuOnFocus?: boolean | undefined;
|
|
42
|
-
openMenuOnClick?: boolean | undefined;
|
|
43
|
-
pageSize?: number | undefined;
|
|
44
|
-
screenReaderStatus?: ((obj: {
|
|
45
|
-
count: number;
|
|
46
|
-
}) => string) | undefined;
|
|
47
|
-
styles?: import("react-select").StylesConfig<Option, false, import("react-select").GroupBase<Option>> | undefined;
|
|
48
|
-
tabSelectsValue?: boolean | undefined;
|
|
49
|
-
unstyled?: boolean | undefined;
|
|
50
|
-
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, false, import("react-select").GroupBase<Option>>, "id" | "form" | "name" | "value" | "theme" | "className" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "autoFocus" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
51
|
-
placeholder?: import("react").ReactNode;
|
|
52
|
-
options?: import("react-select").OptionsOrGroups<Option, import("react-select").GroupBase<Option>> | undefined;
|
|
53
|
-
tabIndex?: number | undefined;
|
|
54
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
55
|
-
isLoading?: boolean | undefined;
|
|
56
|
-
backspaceRemovesValue?: boolean | undefined;
|
|
57
|
-
blurInputOnSelect?: boolean | undefined;
|
|
58
|
-
captureMenuScroll?: boolean | undefined;
|
|
59
|
-
classNames?: import("react-select").ClassNamesConfig<Option, false, import("react-select").GroupBase<Option>> | undefined;
|
|
60
|
-
closeMenuOnSelect?: boolean | undefined;
|
|
61
|
-
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
62
|
-
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, false, import("react-select").GroupBase<Option>>> | undefined;
|
|
63
|
-
controlShouldRenderValue?: boolean | undefined;
|
|
64
|
-
escapeClearsValue?: boolean | undefined;
|
|
65
|
-
filterOption?: ((option: import("react-select").FilterOptionOption<Option>, inputValue: string) => boolean) | null | undefined;
|
|
66
|
-
formatGroupLabel?: ((group: import("react-select").GroupBase<Option>) => import("react").ReactNode) | undefined;
|
|
67
|
-
getOptionLabel?: import("react-select").GetOptionLabel<Option> | undefined;
|
|
68
|
-
getOptionValue?: import("react-select").GetOptionValue<Option> | undefined;
|
|
69
|
-
isDisabled?: boolean | undefined;
|
|
70
|
-
isOptionDisabled?: ((option: Option, selectValue: import("react-select").Options<Option>) => boolean) | undefined;
|
|
71
|
-
isMulti?: false | undefined;
|
|
72
|
-
isRtl?: boolean | undefined;
|
|
73
|
-
isSearchable?: boolean | undefined;
|
|
74
|
-
loadingMessage?: ((obj: {
|
|
75
|
-
inputValue: string;
|
|
76
|
-
}) => import("react").ReactNode) | undefined;
|
|
77
|
-
minMenuHeight?: number | undefined;
|
|
78
|
-
maxMenuHeight?: number | undefined;
|
|
79
|
-
menuIsOpen?: boolean | undefined;
|
|
80
|
-
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
81
|
-
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
82
|
-
menuShouldBlockScroll?: boolean | undefined;
|
|
83
|
-
menuShouldScrollIntoView?: boolean | undefined;
|
|
84
|
-
noOptionsMessage?: ((obj: {
|
|
85
|
-
inputValue: string;
|
|
86
|
-
}) => import("react").ReactNode) | undefined;
|
|
87
|
-
openMenuOnFocus?: boolean | undefined;
|
|
88
|
-
openMenuOnClick?: boolean | undefined;
|
|
89
|
-
pageSize?: number | undefined;
|
|
90
|
-
screenReaderStatus?: ((obj: {
|
|
91
|
-
count: number;
|
|
92
|
-
}) => string) | undefined;
|
|
93
|
-
styles?: import("react-select").StylesConfig<Option, false, import("react-select").GroupBase<Option>> | undefined;
|
|
94
|
-
tabSelectsValue?: boolean | undefined;
|
|
95
|
-
unstyled?: boolean | undefined;
|
|
96
|
-
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<Option, false, import("react-select").GroupBase<Option>>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, any, {}, never>;
|
|
3
|
+
export declare const StyledSelect: import("styled-components").StyledComponent<(props: Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, false, import("react-select").GroupBase<Option>>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, false, import("react-select").GroupBase<Option>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<Option, false, import("react-select").GroupBase<Option>>>) => import("react").ReactElement, any, {}, never>;
|
|
97
4
|
export declare const customStyles: {
|
|
98
5
|
control: (styles: CSSObjectWithLabel) => CSSObjectWithLabel;
|
|
99
6
|
indicatorSeparator: () => CSSObjectWithLabel;
|
package/dist/types/lib/doc.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { ManuscriptNode, ManuscriptTransaction } from '@manuscripts/transform';
|
|
1
|
+
import { AwardsNode, ManuscriptNode, ManuscriptTransaction, SupplementsNode } from '@manuscripts/transform';
|
|
2
2
|
export declare const insertAwardsNode: (tr: ManuscriptTransaction) => {
|
|
3
3
|
node: import("prosemirror-model").Node;
|
|
4
4
|
pos: number;
|
|
5
|
+
} | {
|
|
6
|
+
node: AwardsNode;
|
|
7
|
+
pos: number;
|
|
5
8
|
};
|
|
6
9
|
export declare const insertSupplementsNode: (tr: ManuscriptTransaction) => {
|
|
7
10
|
node: import("prosemirror-model").Node;
|
|
8
11
|
pos: number;
|
|
12
|
+
} | {
|
|
13
|
+
node: SupplementsNode;
|
|
14
|
+
pos: number;
|
|
9
15
|
};
|
|
10
16
|
export declare const insertAttachmentsNode: (tr: ManuscriptTransaction) => {
|
|
11
17
|
node: import("prosemirror-model").Node;
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ManuscriptEditorView } from '@manuscripts/transform';
|
|
16
|
+
import { ManuscriptEditorView, ManuscriptNode } from '@manuscripts/transform';
|
|
17
17
|
import { EditorProps } from '../configs/ManuscriptsEditor';
|
|
18
18
|
import { Trackable } from '../types';
|
|
19
19
|
import { FileAttachment } from './files';
|
|
20
20
|
export declare const createUnsupportedFormat: (filename: string, canEdit: boolean) => HTMLElement;
|
|
21
|
-
export declare const createMediaPlaceholder: (mediaType?:
|
|
21
|
+
export declare const createMediaPlaceholder: (mediaType?: "media" | "figure", view?: ManuscriptEditorView, getPos?: () => number) => HTMLElement;
|
|
22
22
|
export interface FileHandlers {
|
|
23
23
|
handleDownload?: () => void;
|
|
24
24
|
handleUpload?: () => void;
|
|
@@ -27,7 +27,7 @@ export interface FileHandlers {
|
|
|
27
27
|
handleDetach?: () => void;
|
|
28
28
|
handleDelete?: () => void;
|
|
29
29
|
}
|
|
30
|
-
export declare const createFileHandlers: <T extends
|
|
31
|
-
export declare const createReactTools: <T extends
|
|
30
|
+
export declare const createFileHandlers: <T extends ManuscriptNode>(node: Trackable<T>, view: ManuscriptEditorView, getPos: () => number, props: EditorProps, setHref: (href: string) => void) => FileHandlers;
|
|
31
|
+
export declare const createReactTools: <T extends ManuscriptNode>(node: Trackable<T>, view: ManuscriptEditorView, getPos: () => number, props: EditorProps, handlers: FileHandlers, isEmbed: boolean, hasSiblings: () => boolean) => HTMLDivElement | null;
|
|
32
32
|
export declare const createFileUploader: (handler: (file: File) => Promise<void>, accept?: string) => () => void;
|
|
33
33
|
export declare const addInteractionHandlers: (element: HTMLElement, uploadFn: (file: File) => Promise<void>, accept?: string) => void;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ManuscriptEditorView, ManuscriptNodeType } from '@manuscripts/transform';
|
|
16
|
+
import { ManuscriptEditorView, ManuscriptNode, ManuscriptNodeType } from '@manuscripts/transform';
|
|
17
17
|
import { EditorProps } from '../configs/ManuscriptsEditor';
|
|
18
18
|
export interface PopperMenuPositionOption {
|
|
19
19
|
label: string;
|
|
@@ -21,14 +21,14 @@ export interface PopperMenuPositionOption {
|
|
|
21
21
|
icon: string;
|
|
22
22
|
selected: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare const createPositionOptions: <T extends
|
|
24
|
+
export declare const createPositionOptions: <T extends ManuscriptNode>(nodeType: ManuscriptNodeType, node: T, currentPosition: string, view: ManuscriptEditorView, onComplete?: () => void) => {
|
|
25
25
|
title: string;
|
|
26
26
|
action: () => void;
|
|
27
27
|
IconComponent: string;
|
|
28
28
|
iconName: string;
|
|
29
29
|
selected: boolean;
|
|
30
30
|
}[];
|
|
31
|
-
export declare const createPopperMenuPositionOptions: <T extends
|
|
32
|
-
export declare const showPositionMenu: <T extends
|
|
31
|
+
export declare const createPopperMenuPositionOptions: <T extends ManuscriptNode>(nodeType: ManuscriptNodeType, node: T, currentPosition: string, view: ManuscriptEditorView, onComplete?: () => void) => PopperMenuPositionOption[];
|
|
32
|
+
export declare const showPositionMenu: <T extends ManuscriptNode>(nodeType: ManuscriptNodeType, node: T, currentPosition: string, positionMenuWrapper: HTMLElement, view: ManuscriptEditorView, getPos: () => number, props: EditorProps) => void;
|
|
33
33
|
export declare const setElementPositionAlignment: (element: HTMLElement, position: string) => void;
|
|
34
34
|
export declare const createPositionMenuWrapper: (currentPosition: string, onClick: () => void, props: EditorProps) => HTMLDivElement;
|
|
@@ -20,9 +20,9 @@ export declare function iterateChildren(node: ManuscriptNode, recurse?: boolean)
|
|
|
20
20
|
export declare const getMatchingChild: (parent: ManuscriptNode, matcher: (node: ManuscriptNode) => boolean, deep?: boolean) => ManuscriptNode | undefined;
|
|
21
21
|
export declare const getMatchingDescendant: (parent: ManuscriptNode, matcher: (node: ManuscriptNode) => boolean) => ManuscriptNode | undefined;
|
|
22
22
|
export declare const getChildOfType: (parent: ManuscriptNode, nodeType: ManuscriptNodeType, deep?: boolean) => boolean;
|
|
23
|
-
export declare const findParentNodeWithId: ({ $from, $to }: Selection, validateSameParent?: boolean
|
|
24
|
-
export declare const findParentNodeWithIdValue: ({ $from, $to }: Selection, validateSameParent?: boolean
|
|
25
|
-
export declare const findParentSection: ({ $from, $to }: Selection, validateSameParent?: boolean
|
|
23
|
+
export declare const findParentNodeWithId: ({ $from, $to }: Selection, validateSameParent?: boolean) => import("prosemirror-utils/dist/types").FindResult;
|
|
24
|
+
export declare const findParentNodeWithIdValue: ({ $from, $to }: Selection, validateSameParent?: boolean) => import("prosemirror-utils/dist/types").FindResult;
|
|
25
|
+
export declare const findParentSection: ({ $from, $to }: Selection, validateSameParent?: boolean) => import("prosemirror-utils/dist/types").FindResult;
|
|
26
26
|
export declare const findParentElement: (selection: Selection, validIds?: string[]) => import("prosemirror-utils/dist/types").FindResult;
|
|
27
27
|
export declare const isChildOfNodeTypes: (doc: ManuscriptNode, pos: number, parentNodeTypes: NodeType[]) => boolean;
|
|
28
28
|
export declare const isSelectionInNode: (state: EditorState, targetNode: ProseMirrorNode) => boolean;
|
|
@@ -15,5 +15,5 @@ export declare class NodesSelection extends Selection {
|
|
|
15
15
|
map(doc: Node, mapping: Mappable): Selection;
|
|
16
16
|
toJSON(): NodesSelectionJSON;
|
|
17
17
|
}
|
|
18
|
-
export declare const getSelectionChangeGroup: (state: ManuscriptEditorState) => import("@manuscripts/track-changes-plugin
|
|
18
|
+
export declare const getSelectionChangeGroup: (state: ManuscriptEditorState) => import("@manuscripts/track-changes-plugin").TrackedChange[] | undefined;
|
|
19
19
|
export {};
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
1
|
+
export declare const VERSION = "3.3.2";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
|
@@ -6,5 +6,5 @@ export declare class AccessibilityElementView extends BlockView<LongDescNode> {
|
|
|
6
6
|
createDOM(): void;
|
|
7
7
|
createElement(): void;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
9
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AccessibilityElementView>;
|
|
10
10
|
export default _default;
|
|
@@ -41,5 +41,5 @@ export declare class AffiliationsView extends BlockView<Trackable<AffiliationNod
|
|
|
41
41
|
selectNode: () => void;
|
|
42
42
|
handleUpdateAuthors: (authors: ContributorAttrs[]) => void;
|
|
43
43
|
}
|
|
44
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
44
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AffiliationsView>;
|
|
45
45
|
export default _default;
|
|
@@ -20,5 +20,5 @@ export declare class AltTitleView extends BaseNodeView<AltTitleNode> implements
|
|
|
20
20
|
initialise: () => void;
|
|
21
21
|
protected createDOM: () => void;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
23
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AltTitleView>;
|
|
24
24
|
export default _default;
|
|
@@ -22,5 +22,5 @@ export declare class AltTitleSectionView extends BlockView<Trackable<AltTitlesSe
|
|
|
22
22
|
createElement: () => void;
|
|
23
23
|
createClosingPanel(): HTMLDivElement;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AltTitleSectionView>;
|
|
26
26
|
export default _default;
|
|
@@ -28,5 +28,5 @@ export declare class AuthorNotesView extends BlockView<Trackable<AuthorNotesNode
|
|
|
28
28
|
updateContents(): void;
|
|
29
29
|
createContent: (typeName: string, nodes: ManuscriptNode[]) => HTMLDivElement | null;
|
|
30
30
|
}
|
|
31
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
31
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AuthorNotesView>;
|
|
32
32
|
export default _default;
|
|
@@ -32,5 +32,5 @@ export declare class AwardView extends BlockView<Trackable<AwardNode>> {
|
|
|
32
32
|
handleCancelAward: () => void;
|
|
33
33
|
handleDeleteAward: () => void;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
35
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AwardView>;
|
|
36
36
|
export default _default;
|
|
@@ -23,5 +23,5 @@ export declare class AwardsView extends BaseNodeView<AwardsNode> {
|
|
|
23
23
|
createElement: () => void;
|
|
24
24
|
updateContents(): void;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
26
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<AwardsView>;
|
|
27
27
|
export default _default;
|
|
@@ -33,5 +33,5 @@ export declare class BibliographyElementBlockView extends BlockView<Trackable<Bi
|
|
|
33
33
|
private handleDelete;
|
|
34
34
|
private updateSelections;
|
|
35
35
|
}
|
|
36
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
36
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<BibliographyElementBlockView>;
|
|
37
37
|
export default _default;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -19,5 +19,5 @@ export declare class BoxElementView extends BlockView<BoxElementNode> {
|
|
|
19
19
|
elementType: string;
|
|
20
20
|
createElement: () => void;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<BoxElementView>;
|
|
23
23
|
export default _default;
|
|
@@ -22,5 +22,5 @@ export declare class CitationView extends BaseNodeView<Trackable<CitationNode>>
|
|
|
22
22
|
createDOM(): void;
|
|
23
23
|
updateContents(): void;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<CitationView>;
|
|
26
26
|
export default _default;
|
|
@@ -33,5 +33,5 @@ export declare class CitationEditableView extends CitationView {
|
|
|
33
33
|
private handleDelete;
|
|
34
34
|
private insertBibliographyNode;
|
|
35
35
|
}
|
|
36
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
36
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<CitationEditableView>;
|
|
37
37
|
export default _default;
|
|
@@ -46,5 +46,5 @@ export declare class ContributorsView extends BlockView<Trackable<ContributorsNo
|
|
|
46
46
|
insertAuthorNode: (attrs: ContributorAttrs) => void;
|
|
47
47
|
insertAffiliationNode: (attrs: AffiliationAttrs) => void;
|
|
48
48
|
}
|
|
49
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
49
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<ContributorsView>;
|
|
50
50
|
export default _default;
|
|
@@ -18,6 +18,6 @@ import { Dispatch } from '../commands';
|
|
|
18
18
|
import { EditorProps } from '../configs/ManuscriptsEditor';
|
|
19
19
|
import { NodeViewCreator } from '../types';
|
|
20
20
|
import { BaseNodeView } from './base_node_view';
|
|
21
|
-
export declare const createEditableNodeView: <T extends BaseNodeView<
|
|
22
|
-
export declare const createNodeView: <T extends BaseNodeView<
|
|
23
|
-
export declare const createNodeOrElementView: <T extends BaseNodeView<
|
|
21
|
+
export declare const createEditableNodeView: <T extends BaseNodeView<ManuscriptNode>>(type: new (...args: any[]) => T) => (props: EditorProps, dispatch?: Dispatch) => NodeViewCreator<T>;
|
|
22
|
+
export declare const createNodeView: <T extends BaseNodeView<ManuscriptNode>>(type: new (...args: any[]) => T) => (props: EditorProps, dispatch?: Dispatch) => NodeViewCreator<T>;
|
|
23
|
+
export declare const createNodeOrElementView: <T extends BaseNodeView<ManuscriptNode>>(type: new (...args: any[]) => T, tagName: string, callback?: (node: ManuscriptNode, dom: HTMLElement) => void) => (props: EditorProps) => NodeViewCreator<T>;
|
|
@@ -23,5 +23,5 @@ export declare class CrossReferenceView extends BaseNodeView<Trackable<CrossRefe
|
|
|
23
23
|
ignoreMutation: () => boolean;
|
|
24
24
|
createDOM: () => void;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
26
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<CrossReferenceView>;
|
|
27
27
|
export default _default;
|
|
@@ -24,5 +24,5 @@ export declare class CrossReferenceEditableView extends CrossReferenceView {
|
|
|
24
24
|
handleCancel: () => void;
|
|
25
25
|
handleSelect: (rid: string, label?: string) => Promise<void>;
|
|
26
26
|
}
|
|
27
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
27
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<CrossReferenceEditableView>;
|
|
28
28
|
export default _default;
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { ManuscriptNode } from '@manuscripts/transform';
|
|
16
17
|
import { ContextMenu } from '../lib/context-menu';
|
|
17
18
|
import BlockView from './block_view';
|
|
18
19
|
type Constructor<T> = new (...args: any[]) => T;
|
|
19
|
-
export declare const EditableBlock: <T extends Constructor<BlockView<
|
|
20
|
+
export declare const EditableBlock: <T extends Constructor<BlockView<ManuscriptNode>>>(Base: T) => {
|
|
20
21
|
new (...args: any[]): {
|
|
21
22
|
gutterButtons(): HTMLElement[];
|
|
22
23
|
actionGutterButtons(): never[];
|
|
@@ -33,13 +34,13 @@ export declare const EditableBlock: <T extends Constructor<BlockView<import("pro
|
|
|
33
34
|
gutter: Record<string, HTMLElement>;
|
|
34
35
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
35
36
|
dom: HTMLElement;
|
|
36
|
-
contentDOM?: HTMLElement
|
|
37
|
+
contentDOM?: HTMLElement;
|
|
37
38
|
elementType: string;
|
|
38
39
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
39
40
|
node: import("prosemirror-model").Node;
|
|
40
|
-
readonly view: import("
|
|
41
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
41
42
|
readonly getPos: () => number;
|
|
42
|
-
update(newNode:
|
|
43
|
+
update(newNode: ManuscriptNode): boolean;
|
|
43
44
|
selectNode(): void;
|
|
44
45
|
deselectNode(): void;
|
|
45
46
|
destroy(): void;
|
|
@@ -22,7 +22,7 @@ export declare class EmbedView extends BlockView<Trackable<EmbedNode>> {
|
|
|
22
22
|
private showUnavailableMessage;
|
|
23
23
|
createMedia: () => HTMLElement | null;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
26
26
|
gutterButtons(): HTMLElement[];
|
|
27
27
|
actionGutterButtons(): never[];
|
|
28
28
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -38,13 +38,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
38
38
|
gutter: Record<string, HTMLElement>;
|
|
39
39
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
40
40
|
dom: HTMLElement;
|
|
41
|
-
contentDOM?: HTMLElement
|
|
41
|
+
contentDOM?: HTMLElement;
|
|
42
42
|
elementType: string;
|
|
43
43
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
44
44
|
node: import("prosemirror-model").Node;
|
|
45
|
-
readonly view: import("
|
|
45
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
46
46
|
readonly getPos: () => number;
|
|
47
|
-
update(newNode: import("
|
|
47
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
48
48
|
selectNode(): void;
|
|
49
49
|
deselectNode(): void;
|
|
50
50
|
destroy(): void;
|
|
@@ -22,5 +22,5 @@ export declare class EquationView extends BaseNodeView<Trackable<EquationNode>>
|
|
|
22
22
|
updateContents(): void;
|
|
23
23
|
ignoreMutation: () => boolean;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
25
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<EquationView>;
|
|
26
26
|
export default _default;
|
|
@@ -17,5 +17,5 @@ import { EquationView } from './equation';
|
|
|
17
17
|
export declare class EquationEditableView extends EquationView {
|
|
18
18
|
selectNode: () => Promise<void>;
|
|
19
19
|
}
|
|
20
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
20
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<EquationEditableView>;
|
|
21
21
|
export default _default;
|
|
@@ -19,5 +19,5 @@ import BlockView from './block_view';
|
|
|
19
19
|
export declare class EquationElementView extends BlockView<Trackable<EquationElementNode>> {
|
|
20
20
|
elementType: string;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
22
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<EquationElementView>;
|
|
23
23
|
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { EquationElementView } from './equation_element';
|
|
17
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
17
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<{
|
|
18
18
|
gutterButtons(): HTMLElement[];
|
|
19
19
|
actionGutterButtons(): never[];
|
|
20
20
|
createAddButton(): HTMLAnchorElement | null;
|
|
@@ -30,13 +30,13 @@ declare const _default: (props: import("../configs/ManuscriptsEditor").EditorPro
|
|
|
30
30
|
gutter: Record<string, HTMLElement>;
|
|
31
31
|
createGutter(className: string, buttons: HTMLElement[]): void;
|
|
32
32
|
dom: HTMLElement;
|
|
33
|
-
contentDOM?: HTMLElement
|
|
33
|
+
contentDOM?: HTMLElement;
|
|
34
34
|
elementType: string;
|
|
35
35
|
readonly props: import("../configs/ManuscriptsEditor").EditorProps;
|
|
36
36
|
node: import("prosemirror-model").Node;
|
|
37
|
-
readonly view: import("
|
|
37
|
+
readonly view: import("@manuscripts/transform").ManuscriptEditorView;
|
|
38
38
|
readonly getPos: () => number;
|
|
39
|
-
update(newNode: import("
|
|
39
|
+
update(newNode: import("@manuscripts/transform").ManuscriptNode): boolean;
|
|
40
40
|
selectNode(): void;
|
|
41
41
|
deselectNode(): void;
|
|
42
42
|
destroy(): void;
|
|
@@ -25,5 +25,5 @@ export declare class FigureView extends BaseNodeView<Trackable<FigureNode>> impl
|
|
|
25
25
|
createFigurePlaceholder: () => HTMLDivElement;
|
|
26
26
|
protected createDOM(): void;
|
|
27
27
|
}
|
|
28
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
28
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<FigureView>;
|
|
29
29
|
export default _default;
|
|
@@ -37,5 +37,5 @@ export declare class FigureEditableView extends FigureView {
|
|
|
37
37
|
protected createImg: (src: string) => HTMLImageElement;
|
|
38
38
|
protected createPlaceholder: () => HTMLElement;
|
|
39
39
|
}
|
|
40
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
40
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<FigureEditableView>;
|
|
41
41
|
export default _default;
|
|
@@ -30,5 +30,5 @@ export declare class FigureElementView extends ImageElementView {
|
|
|
30
30
|
private addFigure;
|
|
31
31
|
destroy(): void;
|
|
32
32
|
}
|
|
33
|
-
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch
|
|
33
|
+
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch) => import("../types").NodeViewCreator<FigureElementView>;
|
|
34
34
|
export default _default;
|