Skip to content

Commit d1611bb

Browse files
committed
v1.1.1 release
1 parent ab3b022 commit d1611bb

File tree

11 files changed

+28
-20
lines changed

11 files changed

+28
-20
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ yarn.lock
1212
.npmignore
1313
.travis.yml
1414
.eslint*
15+
.vscode
1516
Gruntfile.js
1617
ISSUE_TEMPLATE.md
1718
PULL_REQUEST_TEMPLATE.md

Gruntfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module.exports = function(grunt) {
4343
files: {
4444
'dist/gridstack.js': ['src/gridstack.js'],
4545
'dist/gridstack.d.ts': ['src/gridstack.d.ts'],
46-
'dist/gridstack.all.d.ts': ['src/gridstack.d.ts'],
4746
'dist/gridstack.jQueryUI.js': ['src/gridstack.jQueryUI.js'],
4847
'dist/gridstack-poly.js': ['src/gridstack-poly.js'],
4948
'dist/jquery.js': ['src/jquery.js'],

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ npm install --save gridstack
7878
* Using CDN (minimized):
7979

8080
```html
81-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.0/dist/gridstack.min.css" />
82-
<script src="https://cdn.jsdelivr.net/npm/gridstack@1.1.0/dist/gridstack.all.js"></script>
81+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.1/dist/gridstack.min.css" />
82+
<script src="https://cdn.jsdelivr.net/npm/gridstack@1.1.1/dist/gridstack.all.js"></script>
8383
```
8484

8585
if you need to debug, look at the git demo/ examples for non min includes.
@@ -162,7 +162,7 @@ GridStack.init( {column: N} );
162162

163163
2) include `gridstack-extra.css` if **N < 12** (else custom CSS - see next). Without these, things will not render/work correctly.
164164
```html
165-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.0/dist/gridstack-extra.css"/>
165+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.1/dist/gridstack-extra.css"/>
166166

167167
<div class="grid-stack grid-stack-N">...</div>
168168
```
@@ -276,22 +276,25 @@ starting in 0.6.x `change` event are no longer sent (for pretty much most nodes!
276276

277277
v1.0.0 removed Jquery from the API and external dependencies, which will require some code changes. Here is a list of the changes:
278278

279-
1. your code only needs to include `gridstack.all.js` and `gristack.css` (don't include other JS) and is recommended you do that as internal dependencies will change over time. If you are jquery based, also see note below.
279+
1. see [Migrating to v0.6.x](#migrating-to-v06x) if you didn't already
280280

281-
2. code change:
281+
2. your code only needs to include `gridstack.all.js` and `gristack.css` (don't include other JS) and is recommended you do that as internal dependencies will change over time. If you are jquery based, also see note below.
282+
283+
3. code change:
282284

283285
**OLD** initializing code + adding a widget + adding an event:
284286
```js
285287
// initialization returned Jquery element, requiring second call to get GridStack var
286-
$('.grid-stack').gridstack(opts?);
287-
var grid = $('.grid-stack').data('gridstack');
288+
var grid = $('.grid-stack').gridstack(opts?).data('gridstack');
288289

289290
// returned Jquery element
290291
grid.addWidget($('<div><div class="grid-stack-item-content"> test </div></div>'), undefined, undefined, 2, undefined, true);
291292

292293
// jquery event handler
293294
$('.grid-stack').on('added', function(e, items) {/* items contains info */});
294295

296+
// grid access after init
297+
var grid = $('.grid-stack').data('gridstack');
295298
```
296299
**NEW**
297300
```js
@@ -305,9 +308,9 @@ grid.addWidget('<div><div class="grid-stack-item-content"> test </div></div>', {
305308
// event handler
306309
grid.on('added', function(e, items) {/* items contains info */});
307310

311+
// grid access after init
312+
var grid = el.gridstack; // where el = document.querySelector('.grid-stack') or other ways...
308313
```
309-
3. see [Migrating to v0.6.x](#migrating-to-v06x) if you didn't already
310-
311314
Other vars/global changes
312315
```
313316
`GridStackUI` --> `GridStack`

doc/CHANGES.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8-
- [1.1.0-dev (upcoming)](#110-dev-upcoming)
8+
- [1.1.1-dev (upcoming)](#111-dev-upcoming)
9+
- [1.1.1 (2020-03-17)](#111-2020-03-17)
910
- [1.1.0 (2020-02-29)](#110-2020-02-29)
1011
- [v1.0.0 (2020-02-23)](#v100-2020-02-23)
1112
- [v0.6.4 (2020-02-17)](#v064-2020-02-17)
@@ -32,7 +33,11 @@ Change log
3233

3334
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3435

35-
## 1.1.0-dev (upcoming)
36+
## 1.1.1-dev (upcoming)
37+
38+
- TBD
39+
40+
## 1.1.1 (2020-03-17)
3641

3742
- fix [1187](https://github.com/gridstack/gridstack.js/issues/1187) IE support for `CustomEvent` polyfill - thanks [@phil-blais](https://github.com/phil-blais)
3843
- fix [1204](https://github.com/gridstack/gridstack.js/issues/1204) destroy drag&drop when removing node(s) instead of just disabling it.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "gridstack",
3-
"version": "1.1.0-dev",
3+
"version": "1.1.1-dev",
44
"description": "JavaScript / TypeScript for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Ember, knockout...)",
55
"main": "dist/gridstack",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/gridstack/gridstack.js.git"
99
},
1010
"scripts": {
11-
"build": "grunt && doctoc ./README.md && doctoc ./doc/README.md && doctoc ./doc/CHANGES.md",
11+
"build": "rm -rf dist/* && grunt && doctoc ./README.md && doctoc ./doc/README.md && doctoc ./doc/CHANGES.md",
1212
"test": "grunt lint && karma start karma.conf.js",
1313
"lint": "grunt lint",
1414
"reset": "rm -rf dist node_modules",

src/gridstack-extra.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* gridstack 1.1.0-dev extra CSS for [2-11] columns (non default)
2+
* gridstack 1.1.1-dev extra CSS for [2-11] columns (non default)
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack-poly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** gridstack.js 1.1.0-dev - IE and older browsers Polyfills for this library @preserve*/
1+
/** gridstack.js 1.1.1-dev - IE and older browsers Polyfills for this library @preserve*/
22
/**
33
* https://gridstackjs.com/
44
* (c) 2019-2020 Alain Dumesny

src/gridstack.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Gridstack 1.1.0-dev
1+
// Type definitions for Gridstack 1.1.1-dev
22
// Project: https://gridstackjs.com/
33
// Definitions by: Pascal Senn <https://github.com/PascalSenn>
44
// Ricky Blankenaufulland <https://github.com/ZoolWay>

src/gridstack.jQueryUI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** gridstack.js 1.1.0-dev - JQuery UI Drag&Drop plugin @preserve */
1+
/** gridstack.js 1.1.1-dev - JQuery UI Drag&Drop plugin @preserve */
22
/**
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 1.1.0-dev
2+
* gridstack.js 1.1.1-dev
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

0 commit comments

Comments
 (0)