Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b1c7fd20c | ||
|
|
606c647e3d |
@@ -39,7 +39,7 @@ Since Vite removes env variables by default, you can update the vite config to e
|
|||||||
|
|
||||||
```
|
```
|
||||||
define: {
|
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: {
|
define: {
|
||||||
"process.env.IS_PREACT": JSON.stringify("true"),
|
"process.env.IS_PREACT": process.env.IS_PREACT,
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
:::
|
:::
|
||||||
|
|||||||
@@ -3543,8 +3543,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
// Input handling
|
// Input handling
|
||||||
private onKeyDown = withBatchedUpdates(
|
private onKeyDown = withBatchedUpdates(
|
||||||
(event: React.KeyboardEvent | KeyboardEvent) => {
|
(event: React.KeyboardEvent | KeyboardEvent) => {
|
||||||
|
if (this.state.resizingElement && event.shiftKey) {
|
||||||
|
event.stopPropagation();
|
||||||
|
return;
|
||||||
|
}
|
||||||
// normalize `event.key` when CapsLock is pressed #2372
|
// normalize `event.key` when CapsLock is pressed #2372
|
||||||
|
|
||||||
if (
|
if (
|
||||||
"Proxy" in window &&
|
"Proxy" in window &&
|
||||||
((!event.shiftKey && /^[A-Z]$/.test(event.key)) ||
|
((!event.shiftKey && /^[A-Z]$/.test(event.key)) ||
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"path": "dist/excalidraw.production.min.js",
|
"path": "dist/excalidraw.production.min.js",
|
||||||
"limit": "335 kB"
|
"limit": "325 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "dist/excalidraw-assets/locales",
|
"path": "dist/excalidraw-assets/locales",
|
||||||
|
|||||||
@@ -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)
|
- `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)
|
## 0.17.0 (2023-11-14)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@excalidraw/excalidraw",
|
"name": "@excalidraw/excalidraw",
|
||||||
"version": "0.17.2",
|
"version": "0.17.0",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"types": "types/packages/excalidraw/index.d.ts",
|
"types": "types/packages/excalidraw/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
const { merge } = require("webpack-merge");
|
||||||
|
|
||||||
const prodConfig = require("./webpack.prod.config");
|
const prodConfig = require("./webpack.prod.config");
|
||||||
const devConfig = require("./webpack.dev.config");
|
const devConfig = require("./webpack.dev.config");
|
||||||
|
|
||||||
@@ -9,7 +11,6 @@ const outputFile = isProd
|
|||||||
: "excalidraw-with-preact.development";
|
: "excalidraw-with-preact.development";
|
||||||
|
|
||||||
const preactWebpackConfig = {
|
const preactWebpackConfig = {
|
||||||
...config,
|
|
||||||
entry: {
|
entry: {
|
||||||
[outputFile]: "./entry.js",
|
[outputFile]: "./entry.js",
|
||||||
},
|
},
|
||||||
@@ -29,4 +30,4 @@ const preactWebpackConfig = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
module.exports = preactWebpackConfig;
|
module.exports = merge(config, preactWebpackConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user