@manuscripts/track-changes-plugin 0.4.3 → 0.4.4

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/index.cjs CHANGED
@@ -1140,27 +1140,6 @@ function trackReplaceAroundStep(step, oldState, newTr, attrs) {
1140
1140
  log.info('###### ReplaceAroundStep ######');
1141
1141
  // @ts-ignore
1142
1142
  const { from, to, gapFrom, gapTo, insert, slice, structure, } = step;
1143
- if (from === gapFrom && to === gapTo) {
1144
- log.info('WRAPPED IN SOMETHING');
1145
- }
1146
- else if (!slice.size || slice.content.content.length === 2) {
1147
- log.info('UNWRAPPED FROM SOMETHING');
1148
- }
1149
- else if (slice.size === 2 && gapFrom - from === 1 && to - gapTo === 1) {
1150
- log.info('REPLACED WRAPPING');
1151
- }
1152
- else {
1153
- log.info('????');
1154
- }
1155
- if (gapFrom - from > to - gapTo) {
1156
- log.info('DELETED BEFORE GAP FROM');
1157
- }
1158
- else if (gapFrom - from < to - gapTo) {
1159
- log.info('DELETED AFTER GAP TO');
1160
- }
1161
- else {
1162
- log.info('EQUAL REPLACE BETWEEN GAPS');
1163
- }
1164
1143
  // Invert the transaction step to prevent it from actually deleting or inserting anything
1165
1144
  const newStep = step.invert(oldState.doc);
1166
1145
  const stepResult = newTr.maybeStep(newStep);
package/dist/index.js CHANGED
@@ -1132,27 +1132,6 @@ function trackReplaceAroundStep(step, oldState, newTr, attrs) {
1132
1132
  log.info('###### ReplaceAroundStep ######');
1133
1133
  // @ts-ignore
1134
1134
  const { from, to, gapFrom, gapTo, insert, slice, structure, } = step;
1135
- if (from === gapFrom && to === gapTo) {
1136
- log.info('WRAPPED IN SOMETHING');
1137
- }
1138
- else if (!slice.size || slice.content.content.length === 2) {
1139
- log.info('UNWRAPPED FROM SOMETHING');
1140
- }
1141
- else if (slice.size === 2 && gapFrom - from === 1 && to - gapTo === 1) {
1142
- log.info('REPLACED WRAPPING');
1143
- }
1144
- else {
1145
- log.info('????');
1146
- }
1147
- if (gapFrom - from > to - gapTo) {
1148
- log.info('DELETED BEFORE GAP FROM');
1149
- }
1150
- else if (gapFrom - from < to - gapTo) {
1151
- log.info('DELETED AFTER GAP TO');
1152
- }
1153
- else {
1154
- log.info('EQUAL REPLACE BETWEEN GAPS');
1155
- }
1156
1135
  // Invert the transaction step to prevent it from actually deleting or inserting anything
1157
1136
  const newStep = step.invert(oldState.doc);
1158
1137
  const stepResult = newTr.maybeStep(newStep);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuscripts/track-changes-plugin",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "author": "Atypon Systems LLC",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/Atypon-OpenSource/manuscripts-quarterback/tree/main/quarterback-packages/track-changes-plugin",
@@ -11,7 +11,10 @@
11
11
  "exports": {
12
12
  "./package.json": "./package.json",
13
13
  "./src/styles.css": "./src/styles.css",
14
- ".": "./dist/index.js"
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
17
+ }
15
18
  },
16
19
  "files": [
17
20
  "dist",