@tiptap/core 2.0.0-beta.167 → 2.0.0-beta.170

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.
@@ -1191,8 +1191,8 @@
1191
1191
  const { from, to } = typeof position === 'number'
1192
1192
  ? { from: position, to: position }
1193
1193
  : position;
1194
- const minPos = prosemirrorState.Selection.atStart(doc).from;
1195
- const maxPos = prosemirrorState.Selection.atEnd(doc).to;
1194
+ const minPos = 0;
1195
+ const maxPos = tr.doc.content.size;
1196
1196
  const resolvedFrom = minMax(from, minPos, maxPos);
1197
1197
  const resolvedEnd = minMax(to, minPos, maxPos);
1198
1198
  const selection = prosemirrorState.TextSelection.create(doc, resolvedFrom, resolvedEnd);
@@ -2098,7 +2098,7 @@
2098
2098
  const pcKeymap = {
2099
2099
  ...baseKeymap,
2100
2100
  Home: () => this.editor.commands.selectTextblockStart(),
2101
- End: () => this.editor.commands.selectTextblockStart(),
2101
+ End: () => this.editor.commands.selectTextblockEnd(),
2102
2102
  };
2103
2103
  const macKeymap = {
2104
2104
  ...baseKeymap,
@@ -2734,15 +2734,10 @@
2734
2734
  if (oldAttributes === false) {
2735
2735
  return false;
2736
2736
  }
2737
- const newAttributes = extensionAttributes
2738
- .filter(item => item.attribute.rendered)
2739
- .reduce((items, item) => {
2737
+ const newAttributes = extensionAttributes.reduce((items, item) => {
2740
2738
  const value = item.attribute.parseHTML
2741
2739
  ? item.attribute.parseHTML(node)
2742
2740
  : fromString(node.getAttribute(item.name));
2743
- if (isObject(value)) {
2744
- console.warn(`[tiptap warn]: BREAKING CHANGE: "parseHTML" for your attribute "${item.name}" returns an object but should return the value itself. If this is expected you can ignore this message. This warning will be removed in one of the next releases. Further information: https://github.com/ueberdosis/tiptap/issues/1863`);
2745
- }
2746
2741
  if (value === null || value === undefined) {
2747
2742
  return items;
2748
2743
  }