1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00
Commit Graph

72 Commits

Author SHA1 Message Date
dependabot-preview[bot]
7463de8964
Bump @types/react from 16.9.22 to 16.9.23 (#864)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.22 to 16.9.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 10:43:28 +01:00
dependabot-preview[bot]
95a80a1217
Bump typescript from 3.8.2 to 3.8.3 (#865)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.2...v3.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 10:43:22 +01:00
dependabot-preview[bot]
dee7f5db92
Bump react from 16.12.0 to 16.13.0 (#866)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.12.0 to 16.13.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.13.0/packages/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 10:43:15 +01:00
dependabot-preview[bot]
cd1117150a
Bump lint-staged from 10.0.7 to 10.0.8 (#867)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.7 to 10.0.8.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.7...v10.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 10:43:07 +01:00
Lipis
562b388326
Use relative path for static files (#855) 2020-02-29 14:24:14 +01:00
Lipis
d2827aa40b
Add version to build and the archived asar app (#854) 2020-02-28 22:51:36 +01:00
dependabot-preview[bot]
fbab93baff
Bump @testing-library/react from 9.4.0 to 9.4.1 (#824)
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 9.4.0 to 9.4.1.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v9.4.0...v9.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 11:42:30 +01:00
dependabot-preview[bot]
00c76c612b
Bump i18next-browser-languagedetector from 4.0.1 to 4.0.2 (#825)
Bumps [i18next-browser-languagedetector](https://github.com/i18next/i18next-browser-languageDetector) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/i18next/i18next-browser-languageDetector/releases)
- [Changelog](https://github.com/i18next/i18next-browser-languageDetector/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next-browser-languageDetector/compare/v4.0.1...v4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 11:42:21 +01:00
dependabot-preview[bot]
84419b2efc
Bump @types/react from 16.9.19 to 16.9.22 (#823)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.19 to 16.9.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 10:28:20 +01:00
dependabot-preview[bot]
558e547d93
Bump typescript from 3.7.5 to 3.8.2 (#826)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.5 to 3.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.5...v3.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 10:28:12 +01:00
dependabot-preview[bot]
516a0354a1
Bump @types/jest from 25.1.2 to 25.1.3 (#827)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.2 to 25.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 10:28:04 +01:00
dependabot-preview[bot]
f428c6bf5f
Bump browser-nativefs from 0.2.2 to 0.3.1 (#828)
Bumps [browser-nativefs](https://github.com/GoogleChromeLabs/browser-nativefs) from 0.2.2 to 0.3.1.
- [Release notes](https://github.com/GoogleChromeLabs/browser-nativefs/releases)
- [Commits](https://github.com/GoogleChromeLabs/browser-nativefs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 10:27:55 +01:00
David Luzar
80a49e9611
improve error handling & map stack trace (#809)
* improve error handling & map stack trace

* log error message and tweak

* support logging multiple errors

* move dynamic import inside try/catch
2020-02-22 22:37:04 +01:00
dependabot-preview[bot]
d39c7d4421
Bump react-scripts from 3.3.1 to 3.4.0 (#773)
Bumps [react-scripts](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/create-react-app/commits/react-scripts@3.4.0/packages/react-scripts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 11:39:58 +01:00
dependabot-preview[bot]
c4dbb7ca45
Bump husky from 4.2.2 to 4.2.3 (#774)
Bumps [husky](https://github.com/typicode/husky) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v4.2.2...v4.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 09:42:39 +01:00
Thomas Steiner
98c2b26118
Update browser-nativefs dep after repo move (#763)
* Update browser-nativefs dep after repo move

* Bump deps
2020-02-12 10:19:59 +01:00
Gasim Gasimzada
7183234895
Write integration tests (#719)
* Scaffold a simple test case for debugging

* Set up Jest environment that works with React

- Install and set up react-testing-library
- "Unignore" roughjs and browser-nativejs transformations
- Separate App component from ReactDOM

* Write first passing test

- Mock canvas
- Remove App file and mount/unmount ReactDOM on import

* Add tests for drag create behavior

* Fix comments in dragCreate

* Pin jest-mock-canvas dependency

* Remove dependency range for testing library

* Add tests for multi point mode and selection element

* Fix all tests due to decrease in updates to canvas when changing tools

* Disable state updates if component is unmounted

- Remove all event listeners
- Disable storing scene in state if component is unmounted

* Add tests for move and element selection

* Merge branch 'master' into add-integration-tests

* Add tests for resizing rectangle

* move unmounted check to syncActionResult method

* Use a custom test renderer instead of default testing-library functions

* Add custom query for selecting tools

* move files around

Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-02-11 23:19:43 +01:00
dependabot-preview[bot]
1ec3946ed6 Bump @types/jest from 25.1.1 to 25.1.2 (#750)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.1 to 25.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 09:50:57 +01:00
David Luzar
b7a6ceba68
Eslint tweaks (#696)
* make eslint styleguide into warnings & drop no-else-return

* reintroduce max-warnings=0

* remove unnecessary eslint line disable

* reintroduce no-else-return rule
2020-02-05 17:41:14 +01:00
dependabot-preview[bot]
a2db55ae2b
Bump react-scripts from 3.3.0 to 3.3.1 (#684)
Bumps [react-scripts](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/create-react-app/commits/react-scripts@3.3.1/packages/react-scripts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 10:01:08 +01:00
dependabot-preview[bot]
f6bddd9300
Bump @types/jest from 25.1.0 to 25.1.1 (#683)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.0 to 25.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 09:59:57 +01:00
dependabot-preview[bot]
48900a271b
Bump lint-staged from 10.0.3 to 10.0.7 (#682)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.3 to 10.0.7.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.3...v10.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 09:59:22 +01:00
dependabot-preview[bot]
0d176caa5b
Bump nanoid from 2.1.10 to 2.1.11 (#681)
Bumps [nanoid](https://github.com/ai/nanoid) from 2.1.10 to 2.1.11.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/2.1.10...2.1.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 09:58:56 +01:00
Lipis
53994e71e5
Add more ESLint rules and change the formatting scripts (#626)
* Add curly rule in ESLint for consistency

* Fix rules

* More rules

* REturn

* Push

* no else return

* prefer const

* destructing
2020-02-02 18:04:35 +00:00
Christopher Chedeau
ead9aab888
Remove enzyme (#640)
The test that was added is not a good test. If we want to test things, we should be testing logic that is error prone such as all the mouse handling logic and state management. Adding a test for something trivial as displaying a list of data is just going to be annoying when we eventually change the UI and the test breaks.

Since this is the only test using enzyme, I also removed enzyme. We can add it back if we want to test a component using it.
2020-01-31 21:32:09 +00:00
Christopher Chedeau
e4919e2e6c
Replace i18n by a custom implementation (#638)
There are two problems with the current localization strategy:
- We download the translations on-demand, which means that it does a serial roundtrip for nothing.
- withTranslation helper actually renders the app 3 times on startup, instead of once (I haven't tried to debug it)
2020-01-31 21:06:06 +00:00
Robinson Marquez
4ad38e317e
485: Ability to switch to previously loaded ids in UI (#583) 2020-01-30 21:39:37 +02:00
Lipis
82717bceda
Remove eslint-plugin-json-format (#609)
* Remove eslint-plugin-json-format

* json
2020-01-29 11:26:40 +01:00
Panayiotis Lipiridis
5418f68cc5 Update deps 2020-01-29 03:05:00 +02:00
Thomas Steiner
a862d12ac1
Bump browser-nativefs version to v0.2.0 (#586)
* Bump browser-nativefs version to v0.2.0

In reply to https://github.com/tomayac/browser-nativefs/issues/2.

* Update package-lock.json
2020-01-27 10:14:44 +01:00
dependabot-preview[bot]
209bd84257 Bump lint-staged from 10.0.0 to 10.0.2 (#549)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.0 to 10.0.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.0...v10.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:20:07 +02:00
dependabot-preview[bot]
048d535b6e Bump browser-nativefs from 0.1.0 to 0.1.1 (#547)
Bumps [browser-nativefs](https://github.com/tomayac/browser-nativefs) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/tomayac/browser-nativefs/releases)
- [Commits](https://github.com/tomayac/browser-nativefs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:04:22 +02:00
dependabot-preview[bot]
6dcb88b8f6 Bump @types/react from 16.9.17 to 16.9.19 (#546)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.17 to 16.9.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:04:03 +02:00
dependabot-preview[bot]
3cf9cad52e Bump husky from 4.0.10 to 4.2.1 (#545)
Bumps [husky](https://github.com/typicode/husky) from 4.0.10 to 4.2.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v4.0.10...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:03:04 +02:00
dependabot-preview[bot]
62063ccb72 Bump nanoid from 2.1.9 to 2.1.10 (#544)
Bumps [nanoid](https://github.com/ai/nanoid) from 2.1.9 to 2.1.10.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/2.1.9...2.1.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:49 +02:00
dependabot-preview[bot]
41b384e6e6 Bump @types/react-dom from 16.9.4 to 16.9.5 (#548)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.4 to 16.9.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:38 +02:00
dependabot-preview[bot]
01c7796713 Bump @types/jest from 24.9.0 to 24.9.1 (#543)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.0 to 24.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-25 06:02:25 +02:00
Thomas Steiner
d24b9c4d78 Update to browser-nativefs v0.1.0 (#523) 2020-01-23 18:15:44 +02:00
David Luzar
4942a452e0
Lint tweaks (#502)
* lint json files & add lint ignore list

* lint against plain console logs

* Update .lintstagedrc.js

Co-Authored-By: Lipis <lipiridis@gmail.com>

* format .tsconfig

* don't lint against console.info

* change log to console.info

Co-authored-by: Lipis <lipiridis@gmail.com>
2020-01-22 15:13:00 +01:00
Thomas Steiner
d1fb824369
Move file system operations to separate module (#510) 2020-01-22 13:55:13 +01:00
Fernando Alava Zambrano
ff7a340d2f Internationalization support (#477)
* add i18next lib
add some translations

* add translations

* fix font-family

* fix pin versions
2020-01-20 15:14:10 -08:00
dependabot-preview[bot]
2918a28bf0 Bump lint-staged from 9.5.0 to 10.0.0 (#466)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 12:06:57 +02:00
Christopher Chedeau
7f6e1f420e
Pure node rendering (#443) 2020-01-19 13:21:33 -08:00
Lipis
8e526384b9 Sort package.json (#438)
* Sort package.json

* Keywords
2020-01-17 17:02:13 -08:00
Lipis
1923607112
Remove www from URLs (#437)
* Remove www from URLs

* typo

* slash
2020-01-18 02:24:35 +02:00
Lipis
4b692da01d
Test only the app.. lint is separate (#426) 2020-01-17 20:34:26 +02:00
Lipis
aa9e98e52b Update the name in package.json (#410) 2020-01-16 16:53:38 -08:00
Lipis
86eadf379d
Update Prettier scripts and supported files (#402) 2020-01-16 23:50:02 +02:00
David Luzar
42968ef44d enable curveFitting & bump roughjs (#373) 2020-01-15 20:01:50 +01:00
Preet
d2a3ed7931 Bump roughjs version to fix ellipse fills (#367) 2020-01-13 21:39:42 -08:00