Skip to content

Commit 1074161

Browse files
5.3.1 (#781)
* 5.3.1-alpha1 * Fix issue where data grid would not understand headers were not hovered when mouse over the rightElement * Update prettier * Modernize tooling * Don't escape for commas, not needed * Fix eslint * 5.3.1-alpha2 * Improve naming of escape function * Fix fuzzy drag handles, fixes #741 * Fix tests * Resolve issue where editing would accidentally check the wrong cell for read/write. * restore cyce checking * Ensure onCellClicked and renderer onClick events fire under the same conditions, fixes #690 * Fix paste eating some new lines * 5.3.1-alpha3 * Fix clicking on scrollbars, fixes #762 * Hopefully fix source tests * Implement cut and fix crasher in paste * Fix cells tests * Fix formatting issue with uri cells * Add tests * Overhaul copy/paste code to dramatically improve accuracy, compatibility, and remove accidentally encoding nbsp into users apps * Fix an insane crash report * Add a couple tests * Increase test coverage * Add more missing tests * More missing tests * Fix issue with apple numbers paste buffers * Fix typo * Add more tests * More tests for image window loader * Add distribution test * Add support for returning bounds of entire scroll area (#788) * Support returning bounds of entire scroll area * Add scale to calculation * Apply PR feedback * Fix check * Additional fix * Fix docs --------- Co-authored-by: Lukas Masuch <[email protected]>
1 parent 0ea52f3 commit 1074161

File tree

104 files changed

+7977
-5195
lines changed

Some content is hidden

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

104 files changed

+7977
-5195
lines changed

package-lock.json

Lines changed: 5330 additions & 4493 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "5.3.0",
3+
"version": "5.3.1-alpha3",
44
"scripts": {
55
"start": "npm run storybook",
66
"version": "./update-version.sh",
@@ -31,12 +31,12 @@
3131
"@babel/preset-react": "^7.8.3",
3232
"@babel/preset-typescript": "^7.9.0",
3333
"@faker-js/faker": "^7.6.0",
34-
"@linaria/babel-preset": "^4.1.3",
35-
"@linaria/core": "^4.1.3",
36-
"@linaria/esbuild": "^4.1.3",
37-
"@linaria/react": "^4.1.3",
38-
"@linaria/shaker": "^4.1.3",
39-
"@linaria/webpack-loader": "^4.1.3",
34+
"@linaria/babel-preset": "^4.5.3",
35+
"@linaria/core": "^4.5.3",
36+
"@linaria/esbuild": "^4.5.3",
37+
"@linaria/react": "^4.5.3",
38+
"@linaria/shaker": "^4.5.3",
39+
"@linaria/webpack-loader": "^4.5.3",
4040
"@storybook/addon-actions": "^6.5.12",
4141
"@storybook/addon-controls": "^6.5.12",
4242
"@storybook/addon-links": "^6.5.12",
@@ -50,7 +50,7 @@
5050
"@testing-library/react-hooks": "^8.0.1",
5151
"@testing-library/user-event": "^13.5.0",
5252
"@types/cheerio": "^0.22.30",
53-
"@types/jest": "^28.1.8",
53+
"@types/jest": "^29.5.4",
5454
"@types/lodash": "^4.14.177",
5555
"@types/marked": "^4.0.2",
5656
"@types/node": "^18.7.13",
@@ -63,9 +63,10 @@
6363
"@types/react-syntax-highlighter": "^15.5.5",
6464
"@types/testing-library__jest-dom": "^5.14.2",
6565
"@typescript-eslint/eslint-plugin": "^5.30.5",
66-
"@typescript-eslint/parser": "^5.30.5",
66+
"@typescript-eslint/parser": "^6.4.1",
6767
"@typescript-eslint/typescript-estree": "^5.30.5",
6868
"babel-loader": "^8.1.0",
69+
"esbuild": "^0.19.2",
6970
"eslint": "^8.19.0",
7071
"eslint-plugin-import": "^2.26.0",
7172
"eslint-plugin-react": "^7.30.1",
@@ -74,18 +75,20 @@
7475
"eslint-plugin-unicorn": "^43.0.1",
7576
"http-server": "^14.1.1",
7677
"jest-canvas-mock": "^2.3.1",
78+
"jest-environment-jsdom": "^29.6.4",
7779
"lodash": "^4.17.21",
7880
"marked": "^4.0.10",
7981
"mini-css-extract-plugin": "^2.6.1",
82+
"prettier": "^3.0.2",
8083
"react": "^16.12.0 || 17.x",
8184
"react-dom": "^16.12.0 || 17.x",
8285
"react-laag": "^2.0.3",
8386
"react-responsive-carousel": "^3.2.7",
8487
"react-syntax-highlighter": "^15.4.5",
85-
"ts-jest": "^27.0.7",
88+
"ts-jest": "^29.1.1",
8689
"tsc-esm-fix": "^2.7.8",
8790
"typedoc": "^0.23.13",
88-
"typescript": "^4.8.2",
91+
"typescript": "^5.1.6",
8992
"webpack": "^5.73.0"
9093
}
9194
}

packages/cells/build.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { build } = require("esbuild");
22
const glob = require("glob");
3-
const linaria = require("@linaria/esbuild/lib/index").default;
3+
const linaria = require("@linaria/esbuild").default;
44
const { dependencies, peerDependencies } = require("./package.json");
55
const fs = require("fs");
66

packages/cells/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
77
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
88
transform: {
9-
"^.+\\.(ts|tsx)?$": "ts-jest",
9+
"^.+\\.(ts|tsx)?$": ["ts-jest", { isolatedModules: true, useESM: true }],
1010
"^.+\\.(js|jsx)$": "babel-jest",
1111
},
1212
globals: {

packages/cells/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@glideapps/glide-data-grid-cells",
3-
"version": "5.3.0",
3+
"version": "5.3.1-alpha3",
44
"description": "Extra cells for glide-data-grid",
55
"sideEffects": [
66
"**/*.css"
@@ -51,7 +51,7 @@
5151
"canvas"
5252
],
5353
"dependencies": {
54-
"@glideapps/glide-data-grid": "5.3.0",
54+
"@glideapps/glide-data-grid": "5.3.1-alpha3",
5555
"@toast-ui/editor": "3.1.10",
5656
"@toast-ui/react-editor": "3.1.10",
5757
"react-select": "^5.2.2"
@@ -66,6 +66,6 @@
6666
"eslint-plugin-react-hooks": "^4.2.0",
6767
"react-resize-detector": "^7.1.2",
6868
"tsc-esm-fix": "^2.7.8",
69-
"typescript": "^4.5.2"
69+
"typescript": "^5.1.6"
7070
}
7171
}

packages/cells/src/cell.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { styled } from "@linaria/react";
22
import * as React from "react";
3-
import { DataEditor, DataEditorProps, GridCellKind } from "@glideapps/glide-data-grid";
3+
import { DataEditor, type DataEditorProps, GridCellKind } from "@glideapps/glide-data-grid";
44
import { DropdownCell as DropdownRenderer, useExtraCells } from ".";
55
import type { StarCell } from "./cells/star-cell";
66
import type { SparklineCell } from "./cells/sparkline-cell";
@@ -79,7 +79,9 @@ const BeautifulStyle = styled.div`
7979
background-color: white;
8080
8181
border-radius: 12px;
82-
box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
82+
box-shadow:
83+
rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
84+
rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
8385
8486
.sizer-clip {
8587
border-radius: 12px;

packages/cells/src/cells/article-cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ArticleCell } from "./article-cell-types";
22
import * as React from "react";
3-
import { CustomRenderer, getMiddleCenterBias, GridCellKind } from "@glideapps/glide-data-grid";
3+
import { type CustomRenderer, getMiddleCenterBias, GridCellKind } from "@glideapps/glide-data-grid";
44

55
const ArticleCellEditor = React.lazy(async () => await import("./article-cell-editor"));
66

packages/cells/src/cells/button-cell.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
CustomCell,
3-
CustomRenderer,
2+
type CustomCell,
3+
type CustomRenderer,
44
getMiddleCenterBias,
55
GridCellKind,
66
interpolateColors,
@@ -62,6 +62,8 @@ const renderer: CustomRenderer<ButtonCell> = {
6262
const width = Math.ceil(rect.width - theme.cellHorizontalPadding * 2 - 1);
6363
const height = Math.ceil(rect.height - theme.cellVerticalPadding * 2 - 1);
6464

65+
if (width <= 0 || height <= 0) return true;
66+
6567
if (backgroundColor !== undefined) {
6668
ctx.beginPath();
6769
roundedRect(ctx, x, y, width, height, borderRadius ?? 0);

packages/cells/src/cells/date-picker-cell.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from "react";
22
import { styled } from "@linaria/react";
33

44
import {
5-
CustomCell,
6-
CustomRenderer,
5+
type CustomCell,
6+
type CustomRenderer,
77
drawTextCell,
88
GridCellKind,
9-
ProvideEditorCallback,
9+
type ProvideEditorCallback,
1010
TextCellEntry,
1111
} from "@glideapps/glide-data-grid";
1212

packages/cells/src/cells/dropdown-cell.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {
2-
CustomCell,
3-
ProvideEditorCallback,
4-
CustomRenderer,
2+
type CustomCell,
3+
type ProvideEditorCallback,
4+
type CustomRenderer,
55
getMiddleCenterBias,
66
useTheme,
77
GridCellKind,
88
TextCellEntry,
99
} from "@glideapps/glide-data-grid";
1010
import { styled } from "@linaria/react";
1111
import * as React from "react";
12-
import Select, { MenuProps, components } from "react-select";
12+
import Select, { type MenuProps, components } from "react-select";
1313

1414
interface CustomMenuProps extends MenuProps<any> {}
1515

0 commit comments

Comments
 (0)