File tree Expand file tree Collapse file tree 8 files changed +13
-6
lines changed Expand file tree Collapse file tree 8 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ ES6 or Typescript
7373
7474``` js
7575import ' gridstack/dist/gridstack.min.css' ;
76- import GridStack from ' gridstack' ;
76+ import { GridStack } from ' gridstack' ;
7777// THEN to get HTML5 drag&drop
7878import ' gridstack/dist/h5/gridstack-dd-native' ;
7979// OR to get legacy jquery-ui drag&drop (support Mobile touch devices, h5 does not yet)
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ Change log
5757- fix [ #219 ] ( https://github.com/gridstack/gridstack.js/issues/219 ) ** fixing another 6 years old request** we now automatically insert extra rows
5858when dragging an item at the bottom below others to make it easier to insert below.
5959- fix [ #1687 ] ( https://github.com/gridstack/gridstack.js/issues/1687 ) more fix for drag between 2 grids with ` row / maxRow ` broken in 4.x
60+ - fix export symbols .d.ts for ` gridstack-h5.js | gridstack-jq.js | gridstack-static.js `
6061
6162## 4.0.3 (2021-3-28)
6263
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ module.exports = function(config) {
3333 ] ,
3434 // BUT list of files to exclude
3535 exclude : [
36- 'src/index*.ts' ,
36+ // used for webpack h5/jq/static .js
37+ "src/gridstack-h5.ts" ,
38+ "src/gridstack-jq.ts" ,
39+ "src/gridstack-static.ts" ,
3740 'src/jq/*' , // use h5 version for unit testing
3841 // 'src/h5/*', // use jq version for unit testing
3942 ] ,
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1919 },
2020 "exclude" : [
2121 " ./src/**/*.spec.ts" ,
22- " ./src/index*" , // used for webpack h5/jq/static .js
22+ // used for webpack h5/jq/static .js
23+ " ./src/gridstack-h5.ts" ,
24+ " ./src/gridstack-jq.ts" ,
25+ " ./src/gridstack-static.ts" ,
2326 ],
2427 "include" : [
2528 " ./src/**/*.ts"
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ const path = require('path');
22
33module . exports = {
44 entry : {
5- 'gridstack-h5' : './src/index -h5.ts' ,
6- 'gridstack-jq' : './src/index -jq.ts' ,
7- 'gridstack-static' : './src/index -static.ts'
5+ 'gridstack-h5' : './src/gridstack -h5.ts' ,
6+ 'gridstack-jq' : './src/gridstack -jq.ts' ,
7+ 'gridstack-static' : './src/gridstack -static.ts'
88 } ,
99 mode : 'production' , // production vs development
1010 devtool : 'source-map' ,
You can’t perform that action at this time.
0 commit comments