@manuscripts/style-guide 1.1.9-LEAN-2505 → 1.1.9-LEAN-2505-1

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.
@@ -58,9 +58,10 @@ exports.CommentBody = react_1.default.memo(({ createKeyword, comment, getCollabo
58
58
  react_1.default.createElement(EditingCommentFooter, null,
59
59
  react_1.default.createElement(Actions, null,
60
60
  react_1.default.createElement(Button_1.SecondaryButton, { onClick: cancelEditing }, "Cancel"),
61
- react_1.default.createElement(Button_1.PrimaryButton, { disabled: !isNew &&
62
- (comment.contents === values.contents ||
63
- !values.contents.replace(/<[^>]+>/g, '').length), type: "submit" }, "Save"))))))) : (react_1.default.createElement("div", null,
61
+ react_1.default.createElement(Button_1.PrimaryButton, { disabled: !values.contents.replace(/<[^>]+>/g, '').length ||
62
+ (!isNew &&
63
+ (comment.contents === values.contents ||
64
+ !values.contents.replace(/<[^>]+>/g, '').length)), type: "submit" }, "Save"))))))) : (react_1.default.createElement("div", null,
64
65
  react_1.default.createElement(CommentContent, { onClick: () => scrollIntoHighlight && scrollIntoHighlight(comment) },
65
66
  react_1.default.createElement(StyledCommentViewer, { value: comment.contents, getCollaborator: getCollaborator, getKeyword: getKeyword })),
66
67
  !isReply && (react_1.default.createElement(CommentFooter, null,
@@ -29,9 +29,10 @@ export const CommentBody = React.memo(({ createKeyword, comment, getCollaborator
29
29
  React.createElement(EditingCommentFooter, null,
30
30
  React.createElement(Actions, null,
31
31
  React.createElement(SecondaryButton, { onClick: cancelEditing }, "Cancel"),
32
- React.createElement(PrimaryButton, { disabled: !isNew &&
33
- (comment.contents === values.contents ||
34
- !values.contents.replace(/<[^>]+>/g, '').length), type: "submit" }, "Save"))))))) : (React.createElement("div", null,
32
+ React.createElement(PrimaryButton, { disabled: !values.contents.replace(/<[^>]+>/g, '').length ||
33
+ (!isNew &&
34
+ (comment.contents === values.contents ||
35
+ !values.contents.replace(/<[^>]+>/g, '').length)), type: "submit" }, "Save"))))))) : (React.createElement("div", null,
35
36
  React.createElement(CommentContent, { onClick: () => scrollIntoHighlight && scrollIntoHighlight(comment) },
36
37
  React.createElement(StyledCommentViewer, { value: comment.contents, getCollaborator: getCollaborator, getKeyword: getKeyword })),
37
38
  !isReply && (React.createElement(CommentFooter, null,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "1.1.9-LEAN-2505",
4
+ "version": "1.1.9-LEAN-2505-1",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",