@knotx/plugins-group 0.4.16 → 0.5.0

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
@@ -4,6 +4,7 @@ const jsxRuntime = require('@knotx/jsx/jsx-runtime');
4
4
  const core = require('@knotx/core');
5
5
  const decorators = require('@knotx/decorators');
6
6
  const rxjs = require('rxjs');
7
+ const operators = require('rxjs/operators');
7
8
 
8
9
  var __create = Object.create;
9
10
  var __defProp = Object.defineProperty;
@@ -232,7 +233,7 @@ const _Group = class _Group extends (_a = core.BasePlugin, _getNode_dec = [decor
232
233
  }
233
234
  init() {
234
235
  this.subscriptions.push(
235
- this.dualRelation.version.pipe(rxjs.skip(1)).subscribe((version) => {
236
+ this.dualRelation.version.pipe(operators.skip(1)).subscribe((version) => {
236
237
  console.warn("dualRelation version changed", version, this.dualRelation.changeHistory);
237
238
  })
238
239
  );
@@ -240,7 +241,7 @@ const _Group = class _Group extends (_a = core.BasePlugin, _getNode_dec = [decor
240
241
  this.addNodePipe({
241
242
  transform: () => rxjs.pipe(
242
243
  // 组关系维护检测
243
- rxjs.tap((operation) => {
244
+ operators.tap((operation) => {
244
245
  if (core.isDraftOperation(operation)) {
245
246
  return;
246
247
  }
@@ -279,7 +280,7 @@ const _Group = class _Group extends (_a = core.BasePlugin, _getNode_dec = [decor
279
280
  checkRelation(operation);
280
281
  });
281
282
  }),
282
- rxjs.map((operation) => {
283
+ operators.map((operation) => {
283
284
  if (core.isInitOperation(operation)) {
284
285
  const groupNodesMap = /* @__PURE__ */ new Map();
285
286
  operation.operations.forEach((op) => {
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { jsx } from '@knotx/jsx/jsx-runtime';
2
2
  import { DualRelation, isDraftOperation, isInitOperation, bem, BasePlugin } from '@knotx/core';
3
3
  import { inject, nodeType, register, OnInit } from '@knotx/decorators';
4
- import { skip, pipe, tap, map } from 'rxjs';
4
+ import { pipe } from 'rxjs';
5
+ import { skip, tap, map } from 'rxjs/operators';
5
6
 
6
7
  var __create = Object.create;
7
8
  var __defProp = Object.defineProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/plugins-group",
3
- "version": "0.4.16",
3
+ "version": "0.5.0",
4
4
  "description": "Group Plugin for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -28,20 +28,20 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@knotx/jsx": "0.4.16",
32
- "@knotx/plugins-base-render": "0.4.16"
31
+ "@knotx/jsx": "0.5.0",
32
+ "@knotx/plugins-base-render": "0.5.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "rxjs": "^7.8.1",
36
- "@knotx/core": "0.4.16",
37
- "@knotx/decorators": "0.4.16"
36
+ "@knotx/core": "0.5.0",
37
+ "@knotx/decorators": "0.5.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@knotx/build-config": "0.4.16",
41
- "@knotx/eslint-config": "0.4.16",
42
- "@knotx/jsx": "0.4.16",
43
- "@knotx/plugins-base-render": "0.4.16",
44
- "@knotx/typescript-config": "0.4.16"
40
+ "@knotx/build-config": "0.5.0",
41
+ "@knotx/eslint-config": "0.5.0",
42
+ "@knotx/jsx": "0.5.0",
43
+ "@knotx/plugins-base-render": "0.5.0",
44
+ "@knotx/typescript-config": "0.5.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",