@cocreate/resize 1.1.73 → 1.1.76

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/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## [1.1.76](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.75...v1.1.76) (2022-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump dependencies ([f00dd49](https://github.com/CoCreate-app/CoCreate-resize/commit/f00dd49a504a4d42ee37c0539f5f19e35f66ed7c))
7
+
8
+ ## [1.1.75](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.74...v1.1.75) (2022-06-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update dependencies ([ec46092](https://github.com/CoCreate-app/CoCreate-resize/commit/ec460926168a1eda3ce16048746af2686d88e105))
14
+ * update docs css document_id ([173bda0](https://github.com/CoCreate-app/CoCreate-resize/commit/173bda0d16d435624093dc845bf246b2ed22be40))
15
+ * update modal btn to actions ([b8b5acc](https://github.com/CoCreate-app/CoCreate-resize/commit/b8b5acc1e27a1b41238f9fc9fe4bafa400413da0))
16
+
17
+ ## [1.1.74](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.73...v1.1.74) (2022-06-08)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * if detectGrid has no parent element return ([cb0a6fd](https://github.com/CoCreate-app/CoCreate-resize/commit/cb0a6fd7f9b45fdc66879ff6e2737d5363321eb3))
23
+
1
24
  ## [1.1.73](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.72...v1.1.73) (2022-06-07)
2
25
 
3
26
 
@@ -56,9 +56,9 @@
56
56
  <ul class="display:inline-flex direction:rtl overflow:auto font-size:20px align-items:center list-style-type:none width:100% height:50px">
57
57
 
58
58
  <!-- Modal Controls -->
59
- <li class="margin-right:15px"><a class="btn-modal-close"><i class="fas fa-times"></i></a></li>
60
- <li class="margin-right:15px"><a class="btn-modal-maximize"><i toggle="fa-window-restore, fa-window-maximize" class="far fa-window-maximize"></i></a></li>
61
- <li class="margin-right:15px"><a class="btn-modal-minimize"><i class="far fa-window-minimize"></i></a></li>
59
+ <li class="margin-right:15px"><a actions="closeModal"><i class="fas fa-times"></i></a></li>
60
+ <li class="margin-right:15px"><a actions="minMaxModal"><i toggle="fa-window-restore, fa-window-maximize" class="far fa-window-maximize"></i></a></li>
61
+ <li class="margin-right:15px"><a actions="parkModal"><i class="far fa-window-minimize"></i></a></li>
62
62
 
63
63
  <!-- fullscreen toogle and icon transform-->
64
64
  <li class="margin-right:15px"><a fullscreen><i toggle="fa-compress, fa-expand" class="fas fa-expand"></i></a></li>
@@ -90,7 +90,7 @@
90
90
 
91
91
  <!-- deleteDocument-->
92
92
  <li class="margin-right:15px">
93
- <a actions="deleteDocument" collection="" document_id="" pass_id="form-fields" class="btn-modal-close">
93
+ <a actions="deleteDocument, closeModal" collection="" document_id="" pass_id="form-fields">
94
94
  <i class="far fa-trash-alt"></i>
95
95
  </a>
96
96
  </li>
package/docs/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <meta name="robots" content="index,follow" />
13
13
  <meta property="og:image" content="https://cdn.cocreate.app/docs/resize.png">
14
14
 
15
- <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="62827d7e8082ce05b081430b" name="src" type="text/css" save="true" />
15
+ <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
16
16
  </head>
17
17
 
18
18
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/resize",
3
- "version": "1.1.73",
3
+ "version": "1.1.76",
4
4
  "description": "A light weight resize handler make any element resizable by adding data attributes or usinng init object. Great for Customized text box or text area.",
5
5
  "keywords": [
6
6
  "resize",
@@ -60,7 +60,7 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/docs": "^1.3.1",
64
- "@cocreate/observer": "^1.5.1"
63
+ "@cocreate/docs": "^1.3.3",
64
+ "@cocreate/observer": "^1.5.3"
65
65
  }
66
66
  }
package/src/index.js CHANGED
@@ -280,10 +280,13 @@ CoCreateResize.prototype = {
280
280
  },
281
281
 
282
282
  detectGrid: function() {
283
- let compStyles = window.getComputedStyle(this.resizeWidget.parentNode);
284
- let isGrid = (compStyles.display === 'grid') ? true : false;
283
+ let isGrid = false;
284
+ if (this.resizeWidget.parentNode) {
285
+ let compStyles = window.getComputedStyle(this.resizeWidget.parentNode);
286
+ isGrid = (compStyles.display === 'grid');
287
+ }
285
288
  this.isGrid = isGrid;
286
- return isGrid
289
+ return isGrid;
287
290
  },
288
291
 
289
292
  stopDrag: function(e) {
@@ -339,7 +342,6 @@ CoCreateResize.prototype = {
339
342
  this.initDrags['left'] = this.initLeftDrag.bind(this);
340
343
  this.initDrags['bottom'] = this.initBottomDrag.bind(this);
341
344
  this.initDrags['right'] = this.initRightDrag.bind(this);
342
-
343
345
  },
344
346
 
345
347
  getDistance: function(elem, flag) {