Skip to content

Commit b47067d

Browse files
jassmithivoelbert
andauthored
3.2.0 (#108)
* Fix text edit in firefox * Implement rename support for groups * Plumb up event testing * More testing support * Add tests for data editor * Fix build * Pass event args to cell click event and allow prevent defaulting * Add matching args to header and group header click events (even though they do nothing when prevented * 3.1.3-alpha1 * Tighten up eslint * Remove dead code * Don't redraw entire header bar just to update a single header * Prevent crash when using freeze columns with 0 columns * 3.1.3-alpha2 * Restore theme override for groups * 3.1.3-alpha3 * Fix regression where headers sometimes where not detected when scrolled * 3.1.3-alpha4 * Update comment containing future work ideas * Fix image smoothng not being turned back on in some cases * Improve image window performance * Reduce memory allocations in hotloop * Add tooltip story * Fix bug where drawFocusRing would litter a clip * 3.1.3-alpha5 * Fix issue where controlled grid selection can prevent blitting * Add custom header draw callback * 3.1.3-alpha6 * Cleanup menu drawing to be less ad-hoc * Performance improvements * Use browser compositor * Fix circular deps * Dead code removal and dont create useless objects every frame because we forgot how useRef works * These render are in the hotloop and I cannot believe this gave a 10% gain on CPU time * Add cjs support * Don't incude source files by mistake * Add cycle check * Fix issue where lastUpdated would sometimes cause things to not render correctly * Fix issue where images would not load correctly in frozen columns * 3.1.3-beta1 * Add onMouseMove callback * Fix backspace causing back nav on OSX in firefox * 3.1.3-beta2 * Fix build * Restore license files in package * Mark package as being side effect free * Mark package as containing modules because it does * Fix tests * Prep for 3.2.0 Co-authored-by: ivoelbert <[email protected]>
1 parent a096e6d commit b47067d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6045
-1401
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
node-version: ${{ matrix.node-version }}
2121
- run: npm run bootstrap
2222
- run: npm run build
23+
- run: npm run test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules*
66
.cache
77
pubsub-debug.log
88
storybook-build/
9+
coverage/

.storybook/.babelrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"assumptions": {
3+
"setPublicClassFields": true,
4+
"setSpreadProperties": true
5+
},
6+
"sourceType": "unambiguous",
7+
"presets": [
8+
[
9+
"@babel/preset-env",
10+
{
11+
"targets": {
12+
"firefox": "60",
13+
"chrome": "67",
14+
"safari": "12.1"
15+
},
16+
"exclude": ["@babel/plugin-transform-template-literals"]
17+
}
18+
],
19+
"@babel/preset-react",
20+
"@babel/preset-typescript"
21+
],
22+
"plugins": ["babel-plugin-styled-components", "@babel/plugin-proposal-class-properties"]
23+
}

babel.cjs.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"assumptions": {
3+
"setPublicClassFields": true,
4+
"setSpreadProperties": true
5+
},
6+
"presets": [
7+
[
8+
"@babel/preset-env",
9+
{
10+
"targets": {
11+
"firefox": "60",
12+
"chrome": "67",
13+
"safari": "12.1"
14+
},
15+
"exclude": ["@babel/plugin-transform-template-literals"]
16+
}
17+
],
18+
"@babel/preset-react",
19+
"@babel/preset-typescript"
20+
],
21+
"plugins": ["babel-plugin-styled-components", "@babel/plugin-proposal-class-properties"],
22+
"comments": false,
23+
"sourceMaps": true
24+
}

babel.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@babel/preset-react",
2020
"@babel/preset-typescript"
2121
],
22-
"plugins": ["@babel/plugin-proposal-class-properties"],
22+
"plugins": ["babel-plugin-styled-components", "@babel/plugin-proposal-class-properties"],
2323
"comments": false,
2424
"sourceMaps": true
25-
}
25+
}

cells/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 typeguard, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

cells/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
{
22
"name": "@glideapps/glide-data-grid-cells",
3-
"version": "3.1.2",
3+
"version": "3.2.0",
44
"description": "Extra cells for glide-data-grid",
5+
"sideEffects": false,
6+
"type": "module",
57
"main": "dist/js/index.js",
68
"types": "dist/ts/index.d.ts",
9+
"exports": {
10+
"import": "./dist/js/index.js",
11+
"require": "./dist/cjs/index.js"
12+
},
13+
"files": [
14+
"dist"
15+
],
716
"scripts": {
817
"build": "npm run build-js && npm run build-types",
918
"build-js": "babel --config-file ../babel.config.json ./src -d dist/js --ignore '**/*.stories.tsx','src/stories/*.tsx' --extensions .ts,.tsx",
19+
"build-cjs": "babel --config-file ../babel.cjs.json ./src -d dist/cjs --ignore '**/*.stories.tsx','src/stories/*.tsx' --extensions .ts,.tsx",
1020
"build-types": "tsc -p tsconfig.types.json",
1121
"lint": "eslint src --ext .ts,.tsx"
1222
},
@@ -30,7 +40,7 @@
3040
"canvas"
3141
],
3242
"dependencies": {
33-
"@glideapps/glide-data-grid": "3.1.2"
43+
"@glideapps/glide-data-grid": "3.2.0"
3444
},
3545
"devDependencies": {
3646
"@babel/cli": "^7.16.0",

core/.eslintrc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"no-console": "warn",
1717
"guard-for-in": "error",
1818
"no-empty": "error",
19+
"eqeqeq": ["error", "always"],
1920
"no-shadow": "off",
2021
"import/no-cycle": "off",
2122
"import/namespace": "off",
@@ -37,16 +38,10 @@
3738
"checksVoidReturn": false
3839
}
3940
],
41+
"@typescript-eslint/strict-boolean-expressions": "error",
4042
"@typescript-eslint/ban-ts-comment": "off",
4143
"@typescript-eslint/explicit-module-boundary-types": "off",
4244
"@typescript-eslint/ban-types": "off"
4345
},
44-
"overrides": [
45-
{
46-
"files": ["*.ts"],
47-
"rules": {
48-
"@typescript-eslint/strict-boolean-expressions": "error"
49-
}
50-
}
51-
]
46+
"ignorePatterns": ["**/node_modules/*", "**/dist/*"]
5247
}

core/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 typeguard, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

core/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
preset: "ts-jest",
33
roots: ["<rootDir>/"],
44
testEnvironment: "jsdom",

0 commit comments

Comments
 (0)