@knotx/plugins-history 0.2.14 → 0.2.16

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
@@ -129,7 +129,7 @@ class History extends (_a = core.BasePlugin, _canUndo_dec = [decorators.register
129
129
  this.tagMap.clear();
130
130
  }
131
131
  addOperationPipe(dataManager) {
132
- dataManager.addDataOperationPipe({
132
+ this.subscriptions.push(dataManager.addDataOperationPipe({
133
133
  preOperation: () => rxjs.pipe(
134
134
  rxjs.tap((operation) => {
135
135
  if (core.isDraftOperation(operation) || core.isInitOperation(operation)) {
@@ -141,7 +141,7 @@ class History extends (_a = core.BasePlugin, _canUndo_dec = [decorators.register
141
141
  }
142
142
  })
143
143
  )
144
- });
144
+ }));
145
145
  }
146
146
  flushOperationBuffer() {
147
147
  if (Object.keys(this.operationBuffer).length === 0) {
package/dist/index.js CHANGED
@@ -127,7 +127,7 @@ class History extends (_a = BasePlugin, _canUndo_dec = [register("canUndo")], _c
127
127
  this.tagMap.clear();
128
128
  }
129
129
  addOperationPipe(dataManager) {
130
- dataManager.addDataOperationPipe({
130
+ this.subscriptions.push(dataManager.addDataOperationPipe({
131
131
  preOperation: () => pipe(
132
132
  tap((operation) => {
133
133
  if (isDraftOperation(operation) || isInitOperation(operation)) {
@@ -139,7 +139,7 @@ class History extends (_a = BasePlugin, _canUndo_dec = [register("canUndo")], _c
139
139
  }
140
140
  })
141
141
  )
142
- });
142
+ }));
143
143
  }
144
144
  flushOperationBuffer() {
145
145
  if (Object.keys(this.operationBuffer).length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-history",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "History Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "rxjs": "^7.8.1",
32
- "@knotx/core": "0.2.11",
33
- "@knotx/decorators": "0.2.12"
32
+ "@knotx/core": "0.2.13",
33
+ "@knotx/decorators": "0.2.14"
34
34
  },
35
35
  "devDependencies": {
36
- "@knotx/build-config": "0.2.11",
37
- "@knotx/eslint-config": "0.2.11",
38
- "@knotx/typescript-config": "0.2.11"
36
+ "@knotx/build-config": "0.2.12",
37
+ "@knotx/eslint-config": "0.2.12",
38
+ "@knotx/typescript-config": "0.2.12"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "unbuild",