Commit Graph

25 Commits (fa05ae1230079eeb1b87d900236ceb3260103e90)

Author SHA1 Message Date
Arnost Pleskot 8551823da9
feat: update jotai ()
* feat: update jotai in excalidraw package

* feat: update jotai in excalidraw-app

* fix: exports from excalidraw/jotai

* fix: use isolated react hooks

* test: use jotai provider in <Trans /> test

* remove unused package

* refactor & make safer

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
David Luzar 79b181bcdc
fix: restore svg image DataURL dimensions ()
spc-28 26d2296578
fix: fixed copy to clipboard button ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Ryan Di 5e1ff7cafe
perf: improve new element drawing ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi 1ed53b153c
build: enable consistent type imports eslint rule ()
* build: enable consistent type imports eslint rule

* change to warn

* fix the warning in example and excalidraw-app

* fix packages

* enable type annotations and throw error for the rule
Marcel Mraz 1bd2b1fe55
feat: export reconciliation ()
Marcel Mraz 015b46ab23
feat: expose `StoreAction` in relation to multiplayer history ()
Improved Store API and improved handling of actions to eliminate potential concurrency issues
Marcel Mraz 530617be90
feat: multiplayer undo / redo ()
johnd99 f92f04c13c
fix: Correct unit from 'eg' to 'deg' ()
Ryan Di 32df5502ae
feat: fractional indexing ()
* Introducing fractional indices as part of `element.index`

* Ensuring invalid fractional indices are always synchronized with the array order

* Simplifying reconciliation based on the fractional indices

* Moving reconciliation inside the `@excalidraw/excalidraw` package

---------

Co-authored-by: Marcel Mraz <marcel@excalidraw.com>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Ryan Di 160440b860
feat: improve collab error notification ()
* identify cause

* toast after dialog for error messages in collab

* remove comment

* shake tooltip instead for repeating collab errors

* clear collab error

* empty commit

* simplify & fix reset race condition

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi f5ab3e4e12
fix: remove dependency of t from clipboard and image ()
* fix: remove dependency of t from clipboard and image

* pass errorMessage to copyTextToSystemClipboard where needed

* wrap copyTextToSystemClipboard and rethrow translated error in caller

* review fix

* typo
David Luzar 0513b647ec
feat: change collab trigger & add share dialog ()
David Luzar a289c42830
feat: add loading state to FilledButton ()
Milos Vetesnik d426cc968d
refactor: remove portal as it is no longer needed ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi 65047cc2cb
fix: decouple react and react-dom imports from utils and make it treeshakeable ()
fix: decouple react and react-dom imports from utils and make it tree-shakeable
Aakansha Doshi a8064ba3ee
build: Welcome ESM and Bye Bye UMD ()
* build: Welcome ESM and Bye Bye UMD

* remove package

* create unbundled esm build

* update script for example

* fix typo

* dummy commit

* update autorelease script to build esm

* revert dummy commit

* move react, react-dom and testing library to dev dependencies

* remove entry.js, publicPath and yarn install:deps script

* fix

* upgrade esbuild to fix glob import error for locales

* remove webpack chunk names as thats not needed anymore

* marking the code sideeffects free

* make the library tree-shakeable and move fonts to fonts directory

* allow side effects for css, scss files

* remove tree-shaking

* comment code for tree shaking

* move to vite for example

* bye bye webpack

* ignore ts

* separate build and output dir

* use esbuild for creating bundle for example

* update output dir

* lint

* create browser dev build with source maps and prod with minification

* add dev and prod builds for bundler

* lint

* update script

* remove await

* load prod build

* create minified build in dist

* prod and dev builds using export field

* remove import.meta

* dummy

* define import.meta prod and dev

* fix

* export types

* add types field

* typo

* lint

* Update scripts/buildPackage.js

* move types inside export

* newline
David Luzar 57ea4e61d1
fix: mixing clientId & socketId in UserList ()
David Luzar 6dfa89e846
fix: emitted visible scene bounds not accounting for offsets ()
David Luzar 561e919a2e
fix: import `Socket` as type ()
David Luzar 20e3acf7a6
feat: bump `socket.io-client` & collab tweaks ()
David Luzar 2c0929e537
fix: follow-mode tweaks ()
Barnabás Molnár aad8ab0123
feat: follow mode ()
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Aakansha Doshi d6cd8b78f1
build: decouple package deps and introduce yarn workspaces ()
* feat: decouple package deps and introduce yarn workspaces

* update root directory

* fix

* fix scripts

* fix lint

* update path in scripts

* remove yarn.lock files from packages

* ignore workspace

* dummy

* dummy

* remove comment check

* revert workflow changes

* ignore ws when installing gh actions

* remove log

* update path

* fix

* fix typo
Aakansha Doshi 741d5f1a18
refactor: move excalidraw-app outside src ()
* refactor: move excalidraw-app outside src

* move some tests to excal app and fix some

* fix tests

* fix

* port remaining tests

* fix

* update snap

* move tests inside test folder

* fix

* fix