Commit Graph

86 Commits (360310de312e65002fad0978a44635caf4bcf868)

Author SHA1 Message Date
Luca Colonnello f28f7ffb6e
fix: improve mobile user experience (#3508) 4 years ago
David Luzar 81108bf580
fix: prevent selecting `.visually-hidden` elements (#3501) 4 years ago
Aakansha Doshi c54a099010
feat: Calculate `width/height` of canvas based on container dimensions (".excalidraw" selector) & remove props width & height (#3379)
* Remove width/height from the ".excalidraw" container so it will sized automatically.
* updated all ref calculation to ".excalidraw" instead of parent since now ".excalidraw" will get resized
* Remove props width/height as its not needed anymore.
* Resize handler is also not needed anymore.
* Position absolute canvas due to #3379 (comment)

* move css to style and remove one extra rerendering

* factor out mock logic for test

* set height, width so as to avoid unnecessary updates of regression snap

* better mock

* better type checking and omit width,height from getDefaultAppState and also restore

* revert

* default to window dimensions in constructor

* update docs

* update

* update

* tweaks
4 years ago
harishcalvin bb568a9670
chore: Remove duplicate Twitter og:image (#3359)
* removed-duplicate-twitter-ogtags

* put favicon back

* fix lint
4 years ago
Aakansha Doshi 7ee8de0a46
feat: set window.name in excalidraw app & also support target for excalidraw libraries (#3299)
* feat: set window.name in excalidraw app so library installation always opens on same tab & also support target for excalidraw libraries

* update changelog and readme

* Update public/index.html

Co-authored-by: David Luzar <luzar.david@gmail.com>

* use level 4 heading

* Update src/packages/excalidraw/README.md

Co-authored-by: David Luzar <luzar.david@gmail.com>

Co-authored-by: David Luzar <luzar.david@gmail.com>
4 years ago
David Luzar e90e56452f
fix: stop preventing canvas pointerdown/tapend events (#3207) 4 years ago
Aakansha Doshi eb24e8ffe4
fix: Wrap excalidraw in position relative & hide scrollbars in zen mode (#3174)
* fix: wrap excalidraw in position relative so that host need not add it explicitly to fix positioning when non zero offsets

* patch version

* Hide scrollbars on excalidraw container

* remove overflow hidden from index.html since its handled in excalidraw container

* review fix

* update changelog
4 years ago
David Luzar 32acde500e
fix: hide scrollbars in zenMode (#3144) 4 years ago
Lipis 053353841a
feat: Use the latest version of Virgil (#3124) 4 years ago
Aakansha Doshi 3bc18f6aed
feat: expose variable window.EXCALIDRAW_ASSET_PATH to allow host define the path for excalidraw assets (#3068)
* feat: expose variable window.EXCALIDRAW_ASSET_PATH to allow host define the path for excalidraw assets
No more __webpack_public_path__ needed explicitly in host and it will default to unpkg cdn if window.EXCALIDRAW_ASSET_PATH is not defined

* fix

* add public path

* add public path

* assign only when env not test

* read from package.json

* Append content hash to excalidraw-assets so cache bursting happens when version update

* update changelog and readme

* update
4 years ago
Thomas Steiner 1837147c55
feat: Add idle detection to collaboration feature (#2877)
* Start idle detection implementation

* First working version

* Add screen state

* Add type safety

* Better rendering, enum types, localization

* Add origin trial token

* Fix

* Refactor idle detection to no longer use IdleDetector API

* Cleanup some leftovers

* Fix

* Apply suggestions from code review

* Three state: active 🟢, idle 💤, away ️

* Address feedback from code review
Thanks, @lipis

* Deal with unmount

Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
4 years ago
Lipis 3aa01ad272
chore: Remove tracking (#2722)
* chore: Remove tracking

* process

* rename

* remove

* prod

* Update public/index.html

Co-authored-by: David Luzar <luzar.david@gmail.com>

* Update public/index.html

* eol

* more

* stats

Co-authored-by: David Luzar <luzar.david@gmail.com>
4 years ago
Lipis 10e07e434c
chore: Remove support for deprecated Excalidraw for Desktop (#2465) 4 years ago
Lipis abde1daba4
Add basic event actions to analytics (#2375)
Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
Luo d3c3894108
Fix "Copy | Look Up" popup issue on mobile device (#2406) 4 years ago
Lipis 4371c29f0c
Update to Analytics 4 (#2374) 4 years ago
Aakansha Doshi 1034ec91b8
fix(fonts): move fonts to public folder so that its served as static assets via cra & works in export (#2264) 4 years ago
Aakansha Doshi 12b73aaac6
fix(app.scss): Move fonts from public to fonts directory so that it can be included in bundle as well (#2251) 4 years ago
Aakansha Doshi a61b212220
scope css under name space excalidraw (#1983) 4 years ago
Thomas Steiner 31f7e2b8b2
Remove Native File System OT token for good (#2157) 4 years ago
Thomas Steiner b9d584714a
Temporarily disable OT (#2155) 4 years ago
Thomas Steiner ea020f2c50
Update Native File System API Origin Trial token (#2152) 4 years ago
dependabot-preview[bot] dd0c44864d
Bump prettier from 2.0.5 to 2.1.1 (#2119)
* Bump prettier from 2.0.5 to 2.1.1

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.5 to 2.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.5...2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
4 years ago
David Luzar 546e13571d
reintroduce index CSS as interim solution to SW caching issues (#2085) 5 years ago
David Luzar ab7073abdb
add excalidraw_embed into base repo (#2040)
Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
Thomas Steiner 0eff9d525d
Update origin trial token (#2005) 5 years ago
Minh Nguyen 93137c0bb2
Parameterise socket preconnect (#1867) 5 years ago
Thomas Steiner ecc3a72583
Native File System API OT refresh (#1852) 5 years ago
Kostas Bariotis f1ceeab8d9
Prepare for Docker publishing (#1771)
* prepare for docker publishing

* fix links

* remove that

* update README

* test publish worklofw

* build and push on master

* include gtag by default
5 years ago
Aakansha Doshi 60973f6dc5
rename container class to excalidraw and move css from index.html to app.css (#1729)
Moved the css from index.html to app.css so it can be included in upstream app as well
5 years ago
Thomas Steiner 2867af6528
Update OT trial token (#1649) 5 years ago
Thomas Steiner d9b8dcfbb4
Remove no longer needed Native File System API v1 origin trial token (#1592) 5 years ago
Thomas Steiner c4e9a3c480
Renew origin trial token (#1547) 5 years ago
Thomas Steiner fe5e71a4e5
Add PWACompat (#1433)
* Add PWACompat (attempt)
Fixes #1425

* Fix CSS, use custom splash screen font

* Respect bottom safe area
5 years ago
Thomas Steiner fbcb3ee6ff
Sign us up for Native File System API v2 Origin Trial (#1432) 5 years ago
Thomas Steiner fcf2a73ffb
Remove superfluous meta tag (#1424) 5 years ago
Faustino Kialungila 51ccf61cc6
Bring root fonts back (#1422)
* redirect font loading

* bring preloading back

* change paths

* add css type

* move fonts to root

* correct paths

* remove redirects

* correct ext

* remove fonts from main CSS

* remove unneeded fonts

Co-authored-by: kbariotis <konmpar@gmail.com>
5 years ago
David Luzar 0b971ea570
Remove CSP (#1418)
* remove csp

* remove csp from now.json
5 years ago
Timur Khazamov 4228c2e094
[POC] use serviceWorker from create-react-app (#1286)
* Service worker with toast notifications

* Update CSP to allow fetches from now.sh

* Fixed clearing timers

* rounded icon for pwa (#1301)

* rounded icon for pwa

* cirle pwa app icon

* fix fonts caching

* fix app

* fix css import

* Updated csp tp inlcude worker-src: self

* add worker CSP rule

* use square icon

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
Co-authored-by: kbariotis <konmpar@gmail.com>
5 years ago
David Luzar d79c859cd9
CSP: fix codesandbox (#1401)
* add csb to csp whitelist

* add csb.app

* allow child-src csp

* add cdnjs.cloudflare

* allow unsafe-eval
5 years ago
Shriram Balaji 93087192c8
Support http: ws: for self in connect-src csp (#1392) 5 years ago
Shriram Balaji af09c977bf
Add Content Security Policy Header Tag (#1379)
* Add Content Security Policy Header Tag

* Update CSP for connect-src with https, wss
5 years ago
Sanghyeon Lee bd32a26653
Move GitHub corner and visually-hidden class (#1336)
* Move visually-hidden class to index.html

* Replace github corner with component

* Momoize GitHubCorner

* Simplify component return
5 years ago
Timur Khazamov ed378170b7
Use woff2 instead ttf (#1307)
* Use woff2 instead ttf

* Update font in svg-exported files to use woff2

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
5 years ago
Lipis 98ea88262f
Shorter title (#1293) 5 years ago
Lipis 1a5048195a
Better title, for better look in search results, SEO (#1278) 5 years ago
Lipis 00c5823a5e
Add Security Headers (#1200) 5 years ago
wei c67b0c59c2
Adding preconnect for the socket (#1075)
* Update index.html

* fix formatting
5 years ago
Jed Fox 663526129a
Proper RTL support (#1154)
* Add RTL styles. Most of the work is done by the browser 💖

* Refactor getLanguage

* Additional fixes

* Mirror the mouse pointer icon

* Move the vertical scrollbar to the left on RTL

* Revert "Mirror the mouse pointer icon"

This reverts commit f69b132538.
5 years ago
Thomas Steiner 54355f1391
Renew origin trial token (#1130) 5 years ago