Skip to content

Commit 8cb033d

Browse files
committed
stuff
1 parent 30bdfb1 commit 8cb033d

24 files changed

+112
-92
lines changed

.github/workflows/autorelease-fork.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- uses: actions/checkout@v2
1313
with:
1414
fetch-depth: 2
15-
- name: Setup Node.js 18.x
15+
- name: Setup Node.js 20.x
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: 18.x
18+
node-version: 20.x
1919
- name: Set up publish access
2020
run: |
2121
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}

.github/workflows/autorelease-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
with:
3333
ref: ${{ steps.sha.outputs.result }}
3434
fetch-depth: 2
35-
- name: Setup Node.js 18.x
35+
- name: Setup Node.js 20.x
3636
uses: actions/setup-node@v2
3737
with:
38-
node-version: 18.x
38+
node-version: 20.x
3939
- name: Set up publish access
4040
run: |
4141
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111

12-
- name: Setup Node.js 18.x
12+
- name: Setup Node.js 20.x
1313
uses: actions/setup-node@v2
1414
with:
15-
node-version: 18.x
15+
node-version: 20.x
1616

1717
- name: Install and lint
1818
run: |

.github/workflows/locales-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
with:
1515
token: ${{ secrets.PUSH_TRANSLATIONS_COVERAGE_PAT }}
1616

17-
- name: Setup Node.js 18.x
17+
- name: Setup Node.js 20.x
1818
uses: actions/setup-node@v2
1919
with:
20-
node-version: 18.x
20+
node-version: 20.x
2121

2222
- name: Create report file
2323
run: |

.github/workflows/sentry-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Setup Node.js 18.x
13+
- name: Setup Node.js 20.x
1414
uses: actions/setup-node@v2
1515
with:
16-
node-version: 18.x
16+
node-version: 20.x
1717
- name: Install and build
1818
run: |
1919
yarn --frozen-lockfile

.github/workflows/size-limit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v3
14-
- name: Setup Node.js 18.x
14+
- name: Setup Node.js 20.x
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 18.x
17+
node-version: 20.x
1818
- name: Install in packages/excalidraw
1919
run: yarn
2020
working-directory: packages/excalidraw

.github/workflows/test-coverage-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: "Install Node"
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: "18.x"
17+
node-version: "20.x"
1818
- name: "Install Deps"
1919
run: yarn install
2020
- name: "Test Coverage"

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

excalidraw-app/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ const ExcalidrawWrapper = () => {
747747
type: string;
748748
locked?: boolean;
749749
prevLockState?: boolean;
750-
}>({ type: "selection", locked: false, prevLockState: false });
750+
}>({ type: "selection" });
751751

752752
const toggleCommentTool = useCallback(() => {
753753
const nextType =

excalidraw-app/components/AI.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ export const AIComponents = ({
2222
const appState = excalidrawAPI.getAppState();
2323

2424
const blob = await exportToBlob({
25-
elements: children,
26-
appState: {
27-
...appState,
28-
exportBackground: true,
29-
viewBackgroundColor: appState.viewBackgroundColor,
25+
data: {
26+
elements: children,
27+
appState: {
28+
...appState,
29+
exportBackground: true,
30+
viewBackgroundColor: appState.viewBackgroundColor,
31+
},
32+
files: excalidrawAPI.getFiles(),
33+
},
34+
config: {
35+
exportingFrame: frame,
36+
mimeType: MIME_TYPES.jpg,
3037
},
31-
exportingFrame: frame,
32-
files: excalidrawAPI.getFiles(),
33-
mimeType: MIME_TYPES.jpg,
3438
});
3539

3640
const dataURL = await getDataURL(blob);

0 commit comments

Comments
 (0)