Compare commits

..
Author SHA1 Message Date
zsviczianandGitHub 4b1c7fd20c lint 2023-11-27 19:39:16 +01:00
zsviczianandGitHub 606c647e3d drop onKeyDown if shift is down and element is resizing 2023-11-27 19:19:43 +01:00
7 changed files with 11 additions and 27 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ Since Vite removes env variables by default, you can update the vite config to e
```
define: {
"process.env.IS_PREACT": JSON.stringify("true"),
"process.env.IS_PREACT": process.env.IS_PREACT,
},
```
@@ -93,7 +93,7 @@ Since Vite removes env variables by default, you can update the vite config to e
```
define: {
"process.env.IS_PREACT": JSON.stringify("true"),
"process.env.IS_PREACT": process.env.IS_PREACT,
},
```
:::
+4 -1
View File
@@ -3543,8 +3543,11 @@ class App extends React.Component<AppProps, AppState> {
// Input handling
private onKeyDown = withBatchedUpdates(
(event: React.KeyboardEvent | KeyboardEvent) => {
if (this.state.resizingElement && event.shiftKey) {
event.stopPropagation();
return;
}
// normalize `event.key` when CapsLock is pressed #2372
if (
"Proxy" in window &&
((!event.shiftKey && /^[A-Z]$/.test(event.key)) ||
+1 -1
View File
@@ -1,7 +1,7 @@
[
{
"path": "dist/excalidraw.production.min.js",
"limit": "335 kB"
"limit": "325 kB"
},
{
"path": "dist/excalidraw-assets/locales",
-20
View File
@@ -17,26 +17,6 @@ Please add the latest change on the top under the correct section.
- `appState.openDialog` type was changed from `null | string` to `null | { name: string }`. [#7336](https://github.com/excalidraw/excalidraw/pull/7336)
## 0.17.2 (2023-12-04)
### Fixes
- Umd build for browser since it was breaking in v0.17.0 [#7349](https://github.com/excalidraw/excalidraw/pull/7349). Also make sure that when using `Vite`, the `process.env.IS_PREACT` is set as `"true"` (string) and not a boolean.
```
define: {
"process.env.IS_PREACT": JSON.stringify("true"),
}
```
## Excalidraw Library
### Fixes
- Disable caching bounds for arrow labels [#7343](https://github.com/excalidraw/excalidraw/pull/7343)
---
## 0.17.0 (2023-11-14)
### Features
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@excalidraw/excalidraw",
"version": "0.17.2",
"version": "0.17.0",
"main": "main.js",
"types": "types/packages/excalidraw/index.d.ts",
"files": [
@@ -1,3 +1,5 @@
const { merge } = require("webpack-merge");
const prodConfig = require("./webpack.prod.config");
const devConfig = require("./webpack.dev.config");
@@ -9,7 +11,6 @@ const outputFile = isProd
: "excalidraw-with-preact.development";
const preactWebpackConfig = {
...config,
entry: {
[outputFile]: "./entry.js",
},
@@ -29,4 +30,4 @@ const preactWebpackConfig = {
},
},
};
module.exports = preactWebpackConfig;
module.exports = merge(config, preactWebpackConfig);