@dxos/react-ui-editor 0.4.3-main.a51bbee → 0.4.3-main.aa1c078

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.
@@ -1152,10 +1152,16 @@ var styles3 = EditorView6.baseTheme({
1152
1152
  }
1153
1153
  });
1154
1154
  var commentMark = Decoration3.mark({
1155
- class: "cm-comment"
1155
+ class: "cm-comment",
1156
+ attributes: {
1157
+ "data-testid": "cm-comment"
1158
+ }
1156
1159
  });
1157
1160
  var commentCurrentMark = Decoration3.mark({
1158
- class: "cm-comment-current"
1161
+ class: "cm-comment-current",
1162
+ attributes: {
1163
+ "data-testid": "cm-comment"
1164
+ }
1159
1165
  });
1160
1166
  var focusComment = (view, id, center = true) => {
1161
1167
  const comment = view.state.field(commentsState).comments.find((range2) => range2.comment.id === id);
@@ -4259,6 +4265,7 @@ var MarkdownExtended = () => {
4259
4265
  const { t } = useTranslation(translationKey);
4260
4266
  return /* @__PURE__ */ React2.createElement(NaturalToolbar.Button, {
4261
4267
  variant: "ghost",
4268
+ "data-testid": "editor.toolbar.comment",
4262
4269
  onClick: () => onAction?.({
4263
4270
  type: "comment"
4264
4271
  }),