@knotx/plugins-group 0.0.6 → 0.0.8

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,7 +4,6 @@ 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
- require('@knotx/plugins-base-render');
8
7
 
9
8
  var __create = Object.create;
10
9
  var __defProp = Object.defineProperty;
@@ -350,7 +349,7 @@ const _Group = class _Group extends (_a = core.BasePlugin, _getNode_dec = [decor
350
349
  return /* @__PURE__ */ jsxRuntime.jsx(
351
350
  "div",
352
351
  {
353
- className: _Group.GROUP_WRAPPER_CLASSNAME,
352
+ className: core.bem("group", "wrapper"),
354
353
  style: __spreadProps(__spreadValues({
355
354
  width: `${bounds.width}px`,
356
355
  height: `${bounds.height}px`
@@ -486,7 +485,6 @@ __decorateElement(_init, 5, "addNodesToGroup", _addNodesToGroup_dec, _Group);
486
485
  __decorateElement(_init, 5, "removeNodesFromGroup", _removeNodesFromGroup_dec, _Group);
487
486
  __decorateElement(_init, 5, "moveGroup", _moveGroup_dec, _Group);
488
487
  __decoratorMetadata(_init, _Group);
489
- __publicField(_Group, "GROUP_WRAPPER_CLASSNAME", core.bem("group", "wrapper"));
490
488
  __publicField(_Group, "DEFAULT_GROUP_PADDING", 10);
491
489
  __publicField(_Group, "DEFAULT_GROUP_STYLE", {
492
490
  backgroundColor: "rgba(0, 100, 255, 0.05)",
package/dist/index.d.cts CHANGED
@@ -103,7 +103,6 @@ declare class Group extends BasePlugin<'group'> {
103
103
  removeNodesFromGroup: GroupAPI['removeNodesFromGroup'];
104
104
  moveGroup: GroupAPI['moveGroup'];
105
105
  private buildMoveGroupOperation;
106
- static GROUP_WRAPPER_CLASSNAME: string;
107
106
  static DEFAULT_GROUP_PADDING: number;
108
107
  static DEFAULT_GROUP_STYLE: {
109
108
  backgroundColor: string;
package/dist/index.d.mts CHANGED
@@ -103,7 +103,6 @@ declare class Group extends BasePlugin<'group'> {
103
103
  removeNodesFromGroup: GroupAPI['removeNodesFromGroup'];
104
104
  moveGroup: GroupAPI['moveGroup'];
105
105
  private buildMoveGroupOperation;
106
- static GROUP_WRAPPER_CLASSNAME: string;
107
106
  static DEFAULT_GROUP_PADDING: number;
108
107
  static DEFAULT_GROUP_STYLE: {
109
108
  backgroundColor: string;
package/dist/index.d.ts CHANGED
@@ -103,7 +103,6 @@ declare class Group extends BasePlugin<'group'> {
103
103
  removeNodesFromGroup: GroupAPI['removeNodesFromGroup'];
104
104
  moveGroup: GroupAPI['moveGroup'];
105
105
  private buildMoveGroupOperation;
106
- static GROUP_WRAPPER_CLASSNAME: string;
107
106
  static DEFAULT_GROUP_PADDING: number;
108
107
  static DEFAULT_GROUP_STYLE: {
109
108
  backgroundColor: string;
package/dist/index.mjs CHANGED
@@ -2,7 +2,6 @@ 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, OnDestroy } from '@knotx/decorators';
4
4
  import { skip, pipe, tap, map } from 'rxjs';
5
- import '@knotx/plugins-base-render';
6
5
 
7
6
  var __create = Object.create;
8
7
  var __defProp = Object.defineProperty;
@@ -348,7 +347,7 @@ const _Group = class _Group extends (_a = BasePlugin, _getNode_dec = [inject.get
348
347
  return /* @__PURE__ */ jsx(
349
348
  "div",
350
349
  {
351
- className: _Group.GROUP_WRAPPER_CLASSNAME,
350
+ className: bem("group", "wrapper"),
352
351
  style: __spreadProps(__spreadValues({
353
352
  width: `${bounds.width}px`,
354
353
  height: `${bounds.height}px`
@@ -484,7 +483,6 @@ __decorateElement(_init, 5, "addNodesToGroup", _addNodesToGroup_dec, _Group);
484
483
  __decorateElement(_init, 5, "removeNodesFromGroup", _removeNodesFromGroup_dec, _Group);
485
484
  __decorateElement(_init, 5, "moveGroup", _moveGroup_dec, _Group);
486
485
  __decoratorMetadata(_init, _Group);
487
- __publicField(_Group, "GROUP_WRAPPER_CLASSNAME", bem("group", "wrapper"));
488
486
  __publicField(_Group, "DEFAULT_GROUP_PADDING", 10);
489
487
  __publicField(_Group, "DEFAULT_GROUP_STYLE", {
490
488
  backgroundColor: "rgba(0, 100, 255, 0.05)",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knotx/plugins-group",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "description": "Group Plugin for Knotx",
6
6
  "author": "boenfu",
7
7
  "license": "MIT",
@@ -28,17 +28,20 @@
28
28
  "files": [
29
29
  "dist"
30
30
  ],
31
+ "peerDependencies": {
32
+ "@knotx/plugins-base-render": "0.0.8"
33
+ },
31
34
  "dependencies": {
32
35
  "rxjs": "^7.8.1",
33
- "@knotx/core": "0.0.5",
34
- "@knotx/decorators": "0.0.5",
35
- "@knotx/plugins-base-render": "0.0.6"
36
+ "@knotx/core": "0.0.6",
37
+ "@knotx/decorators": "0.0.6"
36
38
  },
37
39
  "devDependencies": {
38
- "@knotx/build-config": "0.0.5",
39
- "@knotx/eslint-config": "0.0.5",
40
- "@knotx/jsx": "0.0.5",
41
- "@knotx/typescript-config": "0.0.5"
40
+ "@knotx/build-config": "0.0.6",
41
+ "@knotx/eslint-config": "0.0.6",
42
+ "@knotx/jsx": "0.0.6",
43
+ "@knotx/plugins-base-render": "0.0.8",
44
+ "@knotx/typescript-config": "0.0.6"
42
45
  },
43
46
  "scripts": {
44
47
  "build": "unbuild --failOnWarn=false",