@manuscripts/body-editor 3.13.5 → 3.13.7

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.
Files changed (101) hide show
  1. package/dist/cjs/components/LanguageDropdown/index.js +1 -1
  2. package/dist/cjs/components/affiliations/AffiliationForm.js +1 -1
  3. package/dist/cjs/components/affiliations/AffiliationItem.js +1 -1
  4. package/dist/cjs/components/authors/AuthorDetailsForm.js +4 -4
  5. package/dist/cjs/components/authors/DraggableAuthor.js +1 -1
  6. package/dist/cjs/components/awards/AwardForm.js +5 -5
  7. package/dist/cjs/components/awards/AwardModal.js +1 -1
  8. package/dist/cjs/components/outline/DraggableTree.js +1 -1
  9. package/dist/cjs/components/outline/Outline.js +2 -2
  10. package/dist/cjs/components/references/CitationEditor.js +4 -4
  11. package/dist/cjs/components/references/ImportBibliographyForm.js +2 -2
  12. package/dist/cjs/components/references/ImportBibliographyModal.js +1 -1
  13. package/dist/cjs/components/references/ReferenceForm/PersonDropDown.js +2 -2
  14. package/dist/cjs/components/references/ReferenceForm/ReferenceForm.js +2 -2
  15. package/dist/cjs/components/references/ReferenceForm/styled-components.js +5 -5
  16. package/dist/cjs/components/references/ReferencesModal.js +1 -1
  17. package/dist/cjs/components/toolbar/InsertEmbedDialog.js +1 -1
  18. package/dist/cjs/components/toolbar/InsertTableDialog.js +3 -3
  19. package/dist/cjs/components/toolbar/ListMenuItem.js +2 -2
  20. package/dist/cjs/components/toolbar/type-selector/OptionComponent.js +2 -2
  21. package/dist/cjs/components/views/CrossReferenceItems.js +4 -4
  22. package/dist/cjs/components/views/FigureDropdown.js +5 -5
  23. package/dist/cjs/components/views/InsertSpecialCharacter.js +7 -7
  24. package/dist/cjs/components/views/LinkForm.js +2 -2
  25. package/dist/cjs/components/views/TableCellContextMenu.js +2 -2
  26. package/dist/cjs/lib/__tests__/plugins.test.js +2 -1
  27. package/dist/cjs/testing/default-editor-data.js +2 -1
  28. package/dist/cjs/versions.js +1 -1
  29. package/dist/es/components/LanguageDropdown/index.js +1 -1
  30. package/dist/es/components/affiliations/AffiliationForm.js +1 -1
  31. package/dist/es/components/affiliations/AffiliationItem.js +1 -1
  32. package/dist/es/components/authors/AuthorDetailsForm.js +4 -4
  33. package/dist/es/components/authors/DraggableAuthor.js +1 -1
  34. package/dist/es/components/awards/AwardForm.js +5 -5
  35. package/dist/es/components/awards/AwardModal.js +1 -1
  36. package/dist/es/components/outline/DraggableTree.js +1 -1
  37. package/dist/es/components/outline/Outline.js +2 -2
  38. package/dist/es/components/references/CitationEditor.js +4 -4
  39. package/dist/es/components/references/ImportBibliographyForm.js +2 -2
  40. package/dist/es/components/references/ImportBibliographyModal.js +1 -1
  41. package/dist/es/components/references/ReferenceForm/PersonDropDown.js +2 -2
  42. package/dist/es/components/references/ReferenceForm/ReferenceForm.js +2 -2
  43. package/dist/es/components/references/ReferenceForm/styled-components.js +5 -5
  44. package/dist/es/components/references/ReferencesModal.js +1 -1
  45. package/dist/es/components/toolbar/InsertEmbedDialog.js +1 -1
  46. package/dist/es/components/toolbar/InsertTableDialog.js +3 -3
  47. package/dist/es/components/toolbar/ListMenuItem.js +2 -2
  48. package/dist/es/components/toolbar/type-selector/OptionComponent.js +2 -2
  49. package/dist/es/components/views/CrossReferenceItems.js +4 -4
  50. package/dist/es/components/views/FigureDropdown.js +5 -5
  51. package/dist/es/components/views/InsertSpecialCharacter.js +7 -7
  52. package/dist/es/components/views/LinkForm.js +2 -2
  53. package/dist/es/components/views/TableCellContextMenu.js +2 -2
  54. package/dist/es/lib/__tests__/plugins.test.js +2 -1
  55. package/dist/es/testing/default-editor-data.js +2 -1
  56. package/dist/es/versions.js +1 -1
  57. package/dist/types/components/ChangeHandlingForm.d.ts +1 -1
  58. package/dist/types/components/authors/AuthorDetailsForm.d.ts +7 -7
  59. package/dist/types/components/form/CreateModalStyles.d.ts +3 -3
  60. package/dist/types/components/form/UnsavedLabel.d.ts +2 -2
  61. package/dist/types/components/modal-drawer/GenericDrawerGroup.d.ts +6 -7
  62. package/dist/types/components/outline/Outline.d.ts +9 -9
  63. package/dist/types/components/references/CitationViewer.d.ts +2 -2
  64. package/dist/types/components/references/ReferenceForm/styled-components.d.ts +32 -35
  65. package/dist/types/components/references/ReferenceLine.d.ts +2 -2
  66. package/dist/types/components/references/ReferenceSearchResults.d.ts +2 -2
  67. package/dist/types/components/references/SearchInput.d.ts +1 -1
  68. package/dist/types/components/toolbar/ListMenuItem.d.ts +6 -6
  69. package/dist/types/components/toolbar/type-selector/styles.d.ts +1 -1
  70. package/dist/types/components/views/LinkForm.d.ts +1 -1
  71. package/dist/types/versions.d.ts +1 -1
  72. package/package.json +3 -3
  73. package/src/components/LanguageDropdown/index.tsx +4 -4
  74. package/src/components/affiliations/AffiliationForm.tsx +1 -1
  75. package/src/components/affiliations/AffiliationItem.tsx +1 -1
  76. package/src/components/authors/AuthorDetailsForm.tsx +4 -4
  77. package/src/components/authors/DraggableAuthor.tsx +1 -1
  78. package/src/components/awards/AwardForm.tsx +8 -8
  79. package/src/components/awards/AwardModal.tsx +1 -1
  80. package/src/components/outline/DraggableTree.tsx +1 -1
  81. package/src/components/outline/Outline.tsx +3 -3
  82. package/src/components/references/CitationEditor.tsx +4 -4
  83. package/src/components/references/ImportBibliographyForm.tsx +3 -3
  84. package/src/components/references/ImportBibliographyModal.tsx +1 -1
  85. package/src/components/references/ReferenceForm/PersonDropDown.tsx +2 -2
  86. package/src/components/references/ReferenceForm/ReferenceForm.tsx +4 -4
  87. package/src/components/references/ReferenceForm/styled-components.ts +7 -7
  88. package/src/components/references/ReferencesModal.tsx +1 -1
  89. package/src/components/toolbar/InsertEmbedDialog.tsx +1 -1
  90. package/src/components/toolbar/InsertTableDialog.tsx +5 -5
  91. package/src/components/toolbar/ListMenuItem.tsx +3 -3
  92. package/src/components/toolbar/type-selector/OptionComponent.tsx +3 -3
  93. package/src/components/views/CrossReferenceItems.tsx +5 -5
  94. package/src/components/views/FigureDropdown.tsx +10 -10
  95. package/src/components/views/InsertSpecialCharacter.tsx +9 -9
  96. package/src/components/views/LinkForm.tsx +2 -2
  97. package/src/components/views/TableCellContextMenu.tsx +2 -2
  98. package/src/lib/__tests__/plugins.test.ts +2 -1
  99. package/src/testing/default-editor-data.ts +2 -1
  100. package/src/types/styled-components.d.ts +1 -1
  101. package/src/versions.ts +1 -1
@@ -1,49 +1,46 @@
1
- export declare const Button: import("styled-components").StyledComponent<"button", any, {
1
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
2
2
  type: "button" | "submit" | "reset";
3
3
  } & {
4
- danger?: boolean;
5
- disabled?: boolean;
6
- mini?: boolean;
4
+ $danger?: boolean;
5
+ $mini?: boolean;
7
6
  } & {
8
- defaultColor?: boolean;
9
- size?: number;
10
- iconColor?: string;
7
+ $defaultColor?: boolean;
8
+ $size?: number;
9
+ $iconColor?: string;
11
10
  } & {
12
- defaultColor: boolean;
13
- size: number;
14
- }, "size" | "type" | "defaultColor">;
15
- export declare const Actions: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- export declare const ReferenceTextField: import("styled-components").StyledComponent<"input", any, import("@manuscripts/style-guide").TextFieldProps, never>;
17
- export declare const ReferenceTextArea: import("styled-components").StyledComponent<"textarea", any, import("@manuscripts/style-guide").TextAreaProps, never>;
18
- export declare const FormFields: import("styled-components").StyledComponent<"div", any, {}, never>;
19
- export declare const DeleteButton: import("styled-components").StyledComponent<"button", any, {
11
+ $defaultColor: boolean;
12
+ $size: number;
13
+ }, "type" | "$defaultColor" | "$size">;
14
+ export declare const Actions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const ReferenceTextField: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("@manuscripts/style-guide").TextFieldProps, never>;
16
+ export declare const ReferenceTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, import("@manuscripts/style-guide").TextAreaProps, never>;
17
+ export declare const FormFields: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
+ export declare const DeleteButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
20
19
  type: "button" | "submit" | "reset";
21
20
  } & {
22
- danger?: boolean;
23
- disabled?: boolean;
24
- mini?: boolean;
21
+ $danger?: boolean;
22
+ $mini?: boolean;
25
23
  } & {
26
- defaultColor?: boolean;
27
- size?: number;
28
- iconColor?: string;
24
+ $defaultColor?: boolean;
25
+ $size?: number;
26
+ $iconColor?: string;
29
27
  }, "type">;
30
- export declare const Section: import("styled-components").StyledComponent<"section", any, {}, never>;
31
- export declare const PersonForm: import("styled-components").StyledComponent<"div", any, {}, never>;
32
- export declare const Title: import("styled-components").StyledComponent<"h4", any, {
33
- isInvalid?: boolean;
28
+ export declare const Section: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
29
+ export declare const PersonForm: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
30
+ export declare const Title: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, {
31
+ $isInvalid?: boolean;
34
32
  }, never>;
35
- export declare const DropdownIndicator: import("styled-components").StyledComponent<import("react").FC<import("@manuscripts/style-guide/dist/types/components/icons/types").IconProps>, any, {}, never>;
36
- export declare const ToggleButton: import("styled-components").StyledComponent<"button", any, {
37
- isOpen: boolean;
33
+ export declare const DropdownIndicator: import("styled-components").StyledComponent<import("react").FC<import("@manuscripts/style-guide/dist/types/components/icons/types").IconProps>, import("styled-components").DefaultTheme, {}, never>;
34
+ export declare const ToggleButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
35
+ $isOpen: boolean;
38
36
  }, never>;
39
- export declare const RemoveButton: import("styled-components").StyledComponent<"button", any, {
37
+ export declare const RemoveButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
40
38
  type: "button" | "submit" | "reset";
41
39
  } & {
42
- danger?: boolean;
43
- disabled?: boolean;
44
- mini?: boolean;
40
+ $danger?: boolean;
41
+ $mini?: boolean;
45
42
  } & {
46
- defaultColor?: boolean;
47
- size?: number;
48
- iconColor?: string;
43
+ $defaultColor?: boolean;
44
+ $size?: number;
45
+ $iconColor?: string;
49
46
  }, "type">;
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import { BibliographyItemAttrs } from '@manuscripts/transform';
17
17
  import React from 'react';
18
- export declare const Metadata: import("styled-components").StyledComponent<"div", any, {}, never>;
19
- export declare const MetadataContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const Metadata: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
+ export declare const MetadataContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
20
  export declare const ReferenceLine: React.FC<{
21
21
  item: BibliographyItemAttrs;
22
22
  }>;
@@ -20,7 +20,7 @@ export declare const ReferenceSearchResultsContainer: import("styled-components"
20
20
  [x: number]: any;
21
21
  [x: symbol]: any;
22
22
  } & {
23
- theme?: any;
23
+ theme?: import("styled-components").DefaultTheme | undefined;
24
24
  } & {
25
25
  as?: string | React.ComponentType<any> | undefined;
26
26
  forwardedAs?: string | React.ComponentType<any> | undefined;
@@ -30,7 +30,7 @@ export declare const ReferenceSearchResult: import("styled-components").StyledCo
30
30
  [x: number]: any;
31
31
  [x: symbol]: any;
32
32
  } & {
33
- theme?: any;
33
+ theme?: import("styled-components").DefaultTheme | undefined;
34
34
  } & {
35
35
  as?: string | React.ComponentType<any> | undefined;
36
36
  forwardedAs?: string | React.ComponentType<any> | undefined;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import React, { InputHTMLAttributes } from 'react';
17
- export declare const SearchWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
17
+ export declare const SearchWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
18
  export declare const SearchInput: React.FC<InputHTMLAttributes<HTMLInputElement>>;
@@ -7,10 +7,10 @@ export interface ListSubmenuItemsProps {
7
7
  styleRefs?: React.MutableRefObject<(HTMLDivElement | null)[]>;
8
8
  }
9
9
  export declare const ListStyles: React.FC<ListSubmenuItemsProps>;
10
- export declare const ListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const StyleBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export declare const BlockItem: import("styled-components").StyledComponent<"div", any, {}, never>;
13
- export declare const Block: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const Label: import("styled-components").StyledComponent<"div", any, {
15
- hide?: boolean;
10
+ export declare const ListContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const StyleBlock: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const BlockItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const Block: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const Label: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
+ $hide?: boolean;
16
16
  }, never>;
@@ -1,6 +1,6 @@
1
1
  import { CSSObjectWithLabel, GroupBase, Props } from 'react-select';
2
2
  import { Option } from './TypeSelector';
3
- export declare const StyledSelect: import("styled-components").StyledComponent<import("react").FunctionComponent<Props<Option, false, GroupBase<Option>>>, any, {}, never>;
3
+ export declare const StyledSelect: import("styled-components").StyledComponent<import("react").FunctionComponent<Props<Option, false, GroupBase<Option>>>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const customStyles: {
5
5
  control: (styles: CSSObjectWithLabel) => CSSObjectWithLabel;
6
6
  indicatorSeparator: () => CSSObjectWithLabel;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import React from 'react';
17
- export declare const Open: import("styled-components").StyledComponent<"a", any, {}, never>;
17
+ export declare const Open: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
18
18
  export interface LinkValue {
19
19
  text: string;
20
20
  href: string;
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.13.5";
1
+ export declare const VERSION = "3.13.7";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "3.13.5",
4
+ "version": "3.13.7",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -41,9 +41,9 @@
41
41
  "@citation-js/plugin-pubmed": "0.3.0",
42
42
  "@citation-js/plugin-ris": "0.7.18",
43
43
  "@iarna/word-count": "1.1.2",
44
- "@manuscripts/style-guide": "3.6.2",
44
+ "@manuscripts/style-guide": "3.6.3",
45
45
  "@manuscripts/track-changes-plugin": "2.4.0",
46
- "@manuscripts/transform": "4.4.3",
46
+ "@manuscripts/transform": "4.4.4",
47
47
  "@popperjs/core": "2.11.8",
48
48
  "citeproc": "2.4.63",
49
49
  "codemirror": "5.65.19",
@@ -201,10 +201,10 @@ const LanguageDropdown: React.FC<LanguageDropdownProps> = ({
201
201
  {isOpen && (
202
202
  <DropdownMenu
203
203
  ref={dropdownMenuRef}
204
- direction="right"
205
- width={231}
206
- height={400}
207
- top={18}
204
+ $direction="right"
205
+ $width={231}
206
+ $height={400}
207
+ $top={18}
208
208
  onKeyDown={handleMenuKeyDown}
209
209
  role="menu"
210
210
  >
@@ -124,7 +124,7 @@ export const AffiliationForm: React.FC<AffiliationFormProps> = ({
124
124
  <TextField
125
125
  id="institution"
126
126
  {...props.field}
127
- error={showInstitutionError}
127
+ $error={showInstitutionError}
128
128
  />
129
129
  {showInstitutionError && (
130
130
  <InputErrorText>
@@ -139,7 +139,7 @@ export const AffiliationItem: React.FC<AffiliationContainerProps> = ({
139
139
  )}
140
140
  {isSelected && (
141
141
  <RemoveButton
142
- size={13}
142
+ $size={13}
143
143
  onClick={() => onDelete()}
144
144
  data-tooltip-content="Delete"
145
145
  >
@@ -225,7 +225,7 @@ export const AuthorDetailsForm: React.FC<AuthorDetailsFormProps> = ({
225
225
  <TextFieldWithError
226
226
  id={'given-name'}
227
227
  {...props.field}
228
- error={showNamePairError}
228
+ $error={showNamePairError}
229
229
  />
230
230
  {showNamePairError && (
231
231
  <InputErrorText>
@@ -251,7 +251,7 @@ export const AuthorDetailsForm: React.FC<AuthorDetailsFormProps> = ({
251
251
  <TextFieldWithError
252
252
  id={'family-name'}
253
253
  {...props.field}
254
- error={showNamePairError}
254
+ $error={showNamePairError}
255
255
  />
256
256
  {showNamePairError && (
257
257
  <InputErrorText>
@@ -329,7 +329,7 @@ export const AuthorDetailsForm: React.FC<AuthorDetailsFormProps> = ({
329
329
  type="email"
330
330
  required={isEmailRequired}
331
331
  {...props.field}
332
- error={hasError}
332
+ $error={hasError}
333
333
  />
334
334
  {hasError && (
335
335
  <InputErrorText>
@@ -374,7 +374,7 @@ export const AuthorDetailsForm: React.FC<AuthorDetailsFormProps> = ({
374
374
  {...props.field}
375
375
  pattern={ORCID_INPUT_PATTERN}
376
376
  title="Please enter a valid ORCID URL: https://orcid.org/xxxx-xxxx-xxxx-xxxx"
377
- error={hasError}
377
+ $error={hasError}
378
378
  />
379
379
  {hasError && (
380
380
  <InputErrorText>
@@ -215,7 +215,7 @@ export const DraggableAuthor: React.FC<DraggableAuthorProps> = React.memo(
215
215
  <AuthorName data-cy="author-name">{authorLabel(author)}</AuthorName>
216
216
  {isSelected && (
217
217
  <RemoveButton
218
- size={13}
218
+ $size={13}
219
219
  onClick={() => onDelete()}
220
220
  data-tooltip-content="Delete"
221
221
  >
@@ -221,7 +221,7 @@ export const AwardForm = ({
221
221
  }
222
222
  // TODO:: All that react-select component and styles should be in style-guide with a standard select component
223
223
 
224
- const SearchIconContainer = styled.span<{ isFocused: boolean }>`
224
+ const SearchIconContainer = styled.span<{ $isFocused: boolean }>`
225
225
  display: flex;
226
226
  align-items: center;
227
227
  padding-left: ${(props) => props.theme.grid.unit * 4}px;
@@ -229,22 +229,22 @@ const SearchIconContainer = styled.span<{ isFocused: boolean }>`
229
229
 
230
230
  path {
231
231
  stroke: ${(props) =>
232
- props.isFocused
232
+ props.$isFocused
233
233
  ? props.theme.colors.brand.medium
234
234
  : props.theme.colors.text.primary};
235
235
  }
236
236
  `
237
237
 
238
- const OptionWrapper = styled.div<{ focused?: boolean; selected?: boolean }>`
238
+ const OptionWrapper = styled.div<{ $focused?: boolean; $selected?: boolean }>`
239
239
  padding-left: ${(props) => props.theme.grid.unit * 4}px;
240
240
  padding-top: ${(props) => props.theme.grid.unit * 2}px;
241
241
  padding-bottom: ${(props) => props.theme.grid.unit * 2}px;
242
242
 
243
243
  background-color: ${(props) => {
244
- if (props.selected) {
244
+ if (props.$selected) {
245
245
  return props.theme.colors.background.selected
246
246
  }
247
- if (props.focused) {
247
+ if (props.$focused) {
248
248
  return props.theme.colors.background.fifth
249
249
  }
250
250
  return 'transparent'
@@ -266,8 +266,8 @@ const Option: React.FC<OptionProps<FunderOption, false>> = ({
266
266
  <OptionWrapper
267
267
  {...innerProps}
268
268
  ref={innerRef}
269
- focused={isFocused}
270
- selected={isSelected}
269
+ $focused={isFocused}
270
+ $selected={isSelected}
271
271
  >
272
272
  {data.label}
273
273
  </OptionWrapper>
@@ -277,7 +277,7 @@ const Option: React.FC<OptionProps<FunderOption, false>> = ({
277
277
  const Control = ({ children, ...props }: ControlProps<FunderOption, false>) => {
278
278
  return (
279
279
  <components.Control {...props}>
280
- <SearchIconContainer isFocused={props.isFocused}>
280
+ <SearchIconContainer $isFocused={props.isFocused}>
281
281
  <SearchIcon />
282
282
  </SearchIconContainer>
283
283
  {children}
@@ -82,7 +82,7 @@ export const AwardModal: React.FC<AwardModalProps> = ({
82
82
  <ModalHeader>
83
83
  <CloseButton onClick={handleClose} data-cy="modal-close-button" />
84
84
  </ModalHeader>
85
- <ModalCardBody width={480}>
85
+ <ModalCardBody $width={480}>
86
86
  <ModalTitle>Add Funder information</ModalTitle>
87
87
  <AwardForm
88
88
  values={normalizedValues}
@@ -392,7 +392,7 @@ export const DraggableTree: React.FC<DraggableTreeProps> = ({
392
392
  <Outline ref={ref} className={classNames}>
393
393
  {!isTop && node.type.name != 'manuscript' && (
394
394
  <OutlineItem
395
- depth={isHeroImage || isSupplements || isMainDocument ? 1 : depth}
395
+ $depth={isHeroImage || isSupplements || isMainDocument ? 1 : depth}
396
396
  onContextMenu={handleContextMenu}
397
397
  onKeyDown={handleKeyDown}
398
398
  tabIndex={-1}
@@ -28,7 +28,7 @@ export const OutlineItemIcon = styled.span`
28
28
  `
29
29
 
30
30
  export const OutlineItem = styled.div<{
31
- depth: number
31
+ $depth: number
32
32
  }>`
33
33
  align-items: center;
34
34
  color: ${(props) => props.theme.colors.text.primary};
@@ -36,7 +36,7 @@ export const OutlineItem = styled.div<{
36
36
  cursor: pointer;
37
37
  display: flex;
38
38
  font-size: ${(props) =>
39
- props.depth === 0
39
+ props.$depth === 0
40
40
  ? props.theme.font.size.large
41
41
  : props.theme.font.size.medium};
42
42
  line-height: 30px;
@@ -44,7 +44,7 @@ export const OutlineItem = styled.div<{
44
44
  margin-right: -${(props) => props.theme.grid.unit * 5}px;
45
45
  overflow-x: hidden;
46
46
  padding-right: ${(props) => props.theme.grid.unit * 5}px;
47
- padding-left: ${(props) => 20 + props.depth * 20}px;
47
+ padding-left: ${(props) => 20 + props.$depth * 20}px;
48
48
  white-space: nowrap;
49
49
 
50
50
  &:hover {
@@ -54,9 +54,9 @@ const CitedItemActions = styled.div`
54
54
  `
55
55
 
56
56
  const ActionButton = styled(IconButton).attrs({
57
- size: 24,
57
+ $size: 24,
58
58
  })`
59
- :disabled {
59
+ &:disabled {
60
60
  background-color: transparent !important;
61
61
  border-color: transparent !important;
62
62
  color: rgb(255, 255, 255);
@@ -65,8 +65,8 @@ const ActionButton = styled(IconButton).attrs({
65
65
  fill: ${(props) => props.theme.colors.background.tertiary} !important;
66
66
  }
67
67
  }
68
- :not(:disabled):focus,
69
- :not(:disabled):hover {
68
+ &:not(:disabled):focus,
69
+ &:not(:disabled):hover {
70
70
  path,
71
71
  g {
72
72
  fill: ${(props) => props.theme.colors.brand.medium} !important;
@@ -138,7 +138,7 @@ export const ImportBibliographyForm = ({
138
138
  }}
139
139
  onDragLeave={() => setDragging(false)}
140
140
  onKeyDown={handleOnKeyDown}
141
- active={dragging}
141
+ $active={dragging}
142
142
  >
143
143
  <input
144
144
  id="file"
@@ -203,13 +203,13 @@ const activeBoxStyle = css`
203
203
  border: 1px dashed #bce7f6;
204
204
  `
205
205
 
206
- const DropContainer = styled.div<{ active: boolean }>`
206
+ const DropContainer = styled.div<{ $active: boolean }>`
207
207
  background: ${(props) => props.theme.colors.background.secondary};
208
208
  border: 1px dashed ${(props) => props.theme.colors.border.secondary};
209
209
  box-sizing: border-box;
210
210
  border-radius: ${(props) => props.theme.grid.radius.default};
211
211
  cursor: pointer;
212
- ${({ active }) => active && activeBoxStyle};
212
+ ${({ $active }) => $active && activeBoxStyle};
213
213
 
214
214
  &:hover {
215
215
  ${activeBoxStyle}
@@ -97,7 +97,7 @@ export const ImportBibliographyModal: React.FC<
97
97
  <ModalHeader>
98
98
  <CloseButton onClick={onCancel} data-cy="modal-close-button" />
99
99
  </ModalHeader>
100
- <ModalCardBody width={640}>
100
+ <ModalCardBody $width={640}>
101
101
  <ModalTitle>Import Bibliography</ModalTitle>
102
102
  <p>
103
103
  <SpanWithExample
@@ -49,13 +49,13 @@ export const PersonDropDown = (props: PersonDropDownProps) => {
49
49
  <ToggleButton
50
50
  type="button"
51
51
  onClick={() => setIsOpen(!isOpen)}
52
- isOpen={isOpen}
52
+ $isOpen={isOpen}
53
53
  >
54
54
  <DropdownIndicator />
55
55
  {title}
56
56
  </ToggleButton>
57
57
  <RemoveButton
58
- size={13}
58
+ $size={13}
59
59
  type="button"
60
60
  aria-label="Delete this editor"
61
61
  onClick={() => remove(index)}
@@ -153,7 +153,7 @@ export const ReferenceForm: React.FC<{
153
153
  <LinkIcon />
154
154
  </IconButton>
155
155
  <DeleteButton
156
- defaultColor
156
+ $defaultColor
157
157
  disabled={!showDelete}
158
158
  data-tooltip-content="Unable to delete because the item is used in the document"
159
159
  data-tooltip-hidden={showDelete}
@@ -236,9 +236,9 @@ export const ReferenceForm: React.FC<{
236
236
  name={'author'}
237
237
  render={({ push, remove }) => (
238
238
  <FormRow
239
- direction="row"
240
- justify="space-between"
241
- align="center"
239
+ $direction="row"
240
+ $justify="space-between"
241
+ $align="center"
242
242
  >
243
243
  <Label>Authors</Label>
244
244
 
@@ -24,8 +24,8 @@ import {
24
24
  import styled from 'styled-components'
25
25
 
26
26
  export const Button = styled(IconButton).attrs({
27
- defaultColor: true,
28
- size: 24,
27
+ $defaultColor: true,
28
+ $size: 24,
29
29
  })`
30
30
  circle,
31
31
  use {
@@ -93,7 +93,7 @@ export const PersonForm = styled.div`
93
93
  `
94
94
 
95
95
  export const Title = styled.h4<{
96
- isInvalid?: boolean
96
+ $isInvalid?: boolean
97
97
  }>`
98
98
  margin: 0;
99
99
  display: flex;
@@ -101,9 +101,9 @@ export const Title = styled.h4<{
101
101
  font-size: 0.875rem;
102
102
  padding-right: 0.5rem;
103
103
  background: ${(props) =>
104
- props.isInvalid ? props.theme.colors.background.warning : 'transparent'};
104
+ props.$isInvalid ? props.theme.colors.background.warning : 'transparent'};
105
105
  color: ${(props) =>
106
- props.isInvalid ? props.theme.colors.text.warning : 'inherit'};
106
+ props.$isInvalid ? props.theme.colors.text.warning : 'inherit'};
107
107
  `
108
108
 
109
109
  export const DropdownIndicator = styled(ArrowDownIcon)`
@@ -114,7 +114,7 @@ export const DropdownIndicator = styled(ArrowDownIcon)`
114
114
  `
115
115
 
116
116
  export const ToggleButton = styled.button<{
117
- isOpen: boolean
117
+ $isOpen: boolean
118
118
  }>`
119
119
  flex-grow: 1;
120
120
  display: flex;
@@ -134,7 +134,7 @@ export const ToggleButton = styled.button<{
134
134
  }
135
135
 
136
136
  svg {
137
- transform: ${(props) => (props.isOpen ? 'rotateX(180deg)' : 'initial')};
137
+ transform: ${(props) => (props.$isOpen ? 'rotateX(180deg)' : 'initial')};
138
138
  }
139
139
  ${outlineStyle}
140
140
  `
@@ -71,7 +71,7 @@ const ReferenceButton = withNavigableListItem(styled.div`
71
71
  fill: #c9c9c9;
72
72
  }
73
73
 
74
- :hover {
74
+ &:hover {
75
75
  background: ${(props) => props.theme.colors.background.info};
76
76
  }
77
77
 
@@ -110,7 +110,7 @@ export const InsertEmbedDialog: React.FC<InsertEmbedDialogProps> = ({
110
110
 
111
111
  <MessageContainer>
112
112
  <Container>
113
- <FormRow direction={'row'}>
113
+ <FormRow $direction={'row'}>
114
114
  <Label htmlFor={'embed-link'}>Media link</Label>
115
115
  {url && allowedHref(url) && (
116
116
  <Open
@@ -43,16 +43,16 @@ const Container = styled.div`
43
43
  align-items: center;
44
44
  padding-bottom: 16px;
45
45
  `
46
- const OptionWrapper = styled.div<{ focused?: boolean; selected?: boolean }>`
46
+ const OptionWrapper = styled.div<{ $focused?: boolean; $selected?: boolean }>`
47
47
  padding-left: ${(props) => props.theme.grid.unit * 4}px;
48
48
  padding-top: ${(props) => props.theme.grid.unit * 2}px;
49
49
  padding-bottom: ${(props) => props.theme.grid.unit * 2}px;
50
50
 
51
51
  background-color: ${(props) => {
52
- if (props.selected) {
52
+ if (props.$selected) {
53
53
  return props.theme.colors.background.selected
54
54
  }
55
- if (props.focused) {
55
+ if (props.$focused) {
56
56
  return props.theme.colors.background.fifth
57
57
  }
58
58
  return 'transparent'
@@ -103,8 +103,8 @@ export const InsertTableDialog: React.FC<InsertTableDialogProps> = ({
103
103
  <OptionWrapper
104
104
  {...innerProps}
105
105
  ref={innerRef}
106
- focused={isFocused}
107
- selected={isSelected}
106
+ $focused={isFocused}
107
+ $selected={isSelected}
108
108
  >
109
109
  {data.label}
110
110
  </OptionWrapper>
@@ -130,7 +130,7 @@ export const ListStyles: React.FC<ListSubmenuItemsProps> = ({
130
130
  >
131
131
  {styleItems[style].map((item, index) => (
132
132
  <BlockItem key={index}>
133
- <Label hide={item === '-'}>{item}</Label>
133
+ <Label $hide={item === '-'}>{item}</Label>
134
134
  <Block />
135
135
  </BlockItem>
136
136
  ))}
@@ -193,11 +193,11 @@ export const Block = styled.div`
193
193
  background: ${(props) => props.theme.colors.border.tertiary};
194
194
  `
195
195
 
196
- export const Label = styled.div<{ hide?: boolean }>`
196
+ export const Label = styled.div<{ $hide?: boolean }>`
197
197
  font-family: Lato, serif;
198
198
  font-size: ${(props) => props.theme.font.size.small};
199
199
  font-weight: ${(props) => props.theme.font.weight.normal};
200
200
  line-height: ${(props) => props.theme.font.lineHeight.small};
201
201
  font-style: normal;
202
- color: ${(props) => (props.hide && 'white') || 'initial'};
202
+ color: ${(props) => (props.$hide && 'white') || 'initial'};
203
203
  `
@@ -21,14 +21,14 @@ import styled from 'styled-components'
21
21
  import { optionName, titleCase } from '../helpers'
22
22
  import { Option } from './TypeSelector'
23
23
 
24
- const OptionContainer = styled.div<{ isFocused?: boolean }>`
24
+ const OptionContainer = styled.div<{ $isFocused?: boolean }>`
25
25
  display: flex;
26
26
  align-items: center;
27
27
  justify-content: space-between;
28
28
  font-size: 14px;
29
29
  cursor: pointer;
30
30
  padding: 8px;
31
- background: ${(props) => (props.isFocused ? '#f2fbfc' : 'transparent')};
31
+ background: ${(props) => (props.$isFocused ? '#f2fbfc' : 'transparent')};
32
32
 
33
33
  &:hover {
34
34
  background: ${(props) => props.theme.colors.background.fifth};
@@ -44,7 +44,7 @@ export const OptionComponent: React.FC<OptionProps<Option, false>> = ({
44
44
  innerRef,
45
45
  }) => {
46
46
  return (
47
- <OptionContainer {...innerProps} isFocused={isFocused} ref={innerRef}>
47
+ <OptionContainer {...innerProps} $isFocused={isFocused} ref={innerRef}>
48
48
  <OptionLabel>{titleCase(optionName(data.nodeType))}</OptionLabel>
49
49
  {data.isSelected && (
50
50
  <TickIconWrapper>