1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00
excalidraw/src
Fabien BERNARD d91950bd03
feat: Add onPaste prop to customise clipboard paste event (#3420)
* Add Awaited type util

* Expose onPasteFromClipboard props

* Add `event` as second param for advanced usages

* Add support for async flows

* Extract ClipboardData type

* Rename `onPasteFromClipboard` to `onPaste`

* Remove unused type helper

* Add `onPaste` documentation

* tweak docs

* fix

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-04-09 20:19:58 +05:30
..
actions feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
components feat: Add onPaste prop to customise clipboard paste event (#3420) 2021-04-09 20:19:58 +05:30
css feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
data fix: incorrectly caching png file handle (#3407) 2021-04-06 21:27:15 +02:00
element feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
excalidraw-app feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
hooks refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
locales chore: Update translations from Crowdin (#3371) 2021-04-01 18:47:48 +03:00
packages feat: Add onPaste prop to customise clipboard paste event (#3420) 2021-04-09 20:19:58 +05:30
renderer refactor: Use arrow function where possible (#3315) 2021-03-29 17:09:20 +03:00
scene refactor: Rename appearance to theme (#3237) 2021-03-13 18:58:06 +05:30
tests fix: popover positioning (#3399) 2021-04-05 17:26:37 +02:00
align.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
analytics.ts fix(analytics.ts): add safe check for process so Excalidraw can be loaded via script (#2824) 2021-01-20 21:27:33 +05:30
appState.ts feat: Calculate width/height of canvas based on container dimensions (".excalidraw" selector) & remove props width & height (#3379) 2021-04-04 15:05:16 +05:30
bug-issue-template.js Add sentry integration (#1141) 2020-03-31 11:37:51 +03:00
charts.ts fix: Track the chart type correctly (#2773) 2021-01-13 15:23:14 +02:00
clients.ts feat: allow host to pass color for collaborators (#2943) 2021-02-06 23:33:52 +05:30
clipboard.ts feat: Add onPaste prop to customise clipboard paste event (#3420) 2021-04-09 20:19:58 +05:30
colors.ts Update ESLint rules (#2342) 2020-11-06 21:06:30 +01:00
constants.ts feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
createInverseContext.tsx refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
css.d.ts Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
disitrubte.ts chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
errors.ts Show error message when canvas to export is too big (#1256) (#2210) 2020-10-28 20:52:53 +01:00
ga.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gadirections.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
galines.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gapoints.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gatransforms.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gesture.ts fix: stop flooring scroll positions (#2883) 2021-01-31 10:47:43 +01:00
global.d.ts feat: export types for package @excalidraw/excalidraw 🎉 (#3337) 2021-03-30 23:51:55 +05:30
groups.ts chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
history.ts Revert "Remove unused project name from export dialog (#2427)" (#2436) 2020-12-01 14:00:13 +01:00
i18n.ts chore: Update translations from Crowdin (#3017) 2021-03-02 08:50:49 +00:00
index-node.ts feat: Calculate width/height of canvas based on container dimensions (".excalidraw" selector) & remove props width & height (#3379) 2021-04-04 15:05:16 +05:30
index.tsx feat: expose variable window.EXCALIDRAW_ASSET_PATH to allow host define the path for excalidraw assets (#3068) 2021-02-21 21:08:30 +05:30
keys.ts fix: Revert 906faaf0 #3206 (#3269) 2021-03-17 14:43:58 +01:00
math.test.ts Shift loses pointer fixing #1296 (#1330) 2020-04-10 00:14:32 +09:00
math.ts feat: adjust line-confirm-threshold based on zoom (#2884) 2021-02-14 14:43:23 +01:00
points.ts Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
pwacompat.d.ts Add PWACompat (#1433) 2020-04-16 14:23:39 +02:00
random.ts chore(deps): bump nanoid from 2.1.11 to 3.1.20 (#2581) 2021-01-11 12:47:10 +02:00
react-app-env.d.ts TS, Prettier, Eslint (#39) 2020-01-02 11:03:48 -08:00
service-worker.js feat: Implement the Web Share Target API (#3230) 2021-03-13 22:42:54 +01:00
serviceWorker.tsx Keep errors, elements and comments consistent (#2340) 2020-11-05 18:06:18 +01:00
setupTests.ts Write integration tests (#719) 2020-02-11 23:19:43 +01:00
shapes.tsx refactor: Stop using the deprecated keyCode (#2426) 2020-12-01 22:36:06 +01:00
types.ts feat: Add onPaste prop to customise clipboard paste event (#3420) 2021-04-09 20:19:58 +05:30
utils.ts fix: debounce.flush invokes func even if never queued before (#3326) 2021-03-26 17:12:32 +01:00
zindex.ts chore: Remove tracking (#2722) 2021-01-05 19:06:14 +01:00