publ-echo-test 0.0.317 → 0.0.318

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.
@@ -127,14 +127,16 @@ var Resizable = function (_a) {
127
127
  }
128
128
  var target = (_a = placeholder.children[0].children[0].children[0]) !== null && _a !== void 0 ? _a : placeholder.children[0].children[0];
129
129
  // const oneComposition = target.querySelector(".composition-container");
130
- var isContentsList = target.id === "contentslist-box";
130
+ var isCCBLayoutbox = target.classList.contains("ccb-layout-box");
131
131
  var layoutBox = target.children[0];
132
132
  var contentsWrapper = layoutBox.children[0];
133
- var oneComposition = contentsWrapper.children[0].children[0].children[0].children[2];
134
- if (!isContentsList || !oneComposition) {
133
+ var oneComposition = contentsWrapper.querySelector(".composition-container");
134
+ // const oneComposition =
135
+ // contentsWrapper.children[0].children[0].children[0].children[2];
136
+ if (!isCCBLayoutbox || !oneComposition) {
135
137
  return;
136
138
  }
137
- if (isContentsList && oneComposition) {
139
+ if (isCCBLayoutbox && oneComposition) {
138
140
  var minCellWidth = 10;
139
141
  var numberOfItems = Number(target.getAttribute("data-number-of-items"));
140
142
  var numberOfColumns = Number(target.getAttribute("data-number-of-columns"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.317",
3
+ "version": "0.0.318",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",