ad1992
c4b951a0c5
convert customElementsConfig into an object
4 years ago
ad1992
c93d8f4bd0
don't use addCallback for triggering onCreate
4 years ago
ad1992
645f9a5dc0
Merge remote-tracking branch 'origin/master' into aakansha-custom-elements
4 years ago
Aakansha Doshi
b30066ca19
fix: jumping of text when typing single line in bound text ( #5139 )
...
* fix: jumping of text when typing single line in bound text
* add comment
4 years ago
Aakansha Doshi
aae8e2fa5d
feat: export MIME_TYPES supported by excalidraw ( #5135 )
...
* feat: export MIME_TYPES supported by excalidraw
* Update src/packages/excalidraw/CHANGELOG.md
4 years ago
Aakansha Doshi
9e6d5fdbcb
feat: support src collaborators ( #5114 )
...
* feat: support avatarURLfor collaborators
* fix
* better avatars :)
* use position fixed for tooltips so it renders correctly when offsets updated
* update docs
* Update src/excalidraw-app/collab/CollabWrapper.tsx
* rename avatarUrl to src
4 years ago
dependabot[bot]
22b2e10ddb
chore(deps-dev): bump @babel/plugin-transform-runtime ( #5125 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.16.8 to 7.17.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
David Luzar
d53ac2a61e
fix: library init/import race conditions ( #5101 )
4 years ago
Aakansha Doshi
6a0f800716
feat: export exportToClipboard util from package ( #5103 )
...
* feat: export copyToClipboard from package
* use promise constructor for better browser supprt
* add type to exportToClipboard
* update docs
* use json instead of text and use selected element in actionCopy
* pass `files` in example `exportToClipboard`
* fix bad access
Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
Johannes
aee1e2451e
fix: remove opacity scroll wheel interaction ( #5111 )
4 years ago
Aakansha Doshi
da94eb1284
fix: use excalidraw asset path in fonts when exporting to svg ( #5065 )
...
* fix: use excalidraw asset path in fonts when exporting
* fix
* fix
* introduce env variables and determine asset path correctly
* fix snaps
* use env vars to determine pkg name and version
* update docs
* quotes
4 years ago
Achille Lacoin
ea51251fe6
fix: propagate keydown events from excalidraw-wysiwyg inputs ( #5099 )
...
* fix: allow propagation for keydown events originating from `excalidraw-wysiwyg`
* revert check on the handleKeyDown function
4 years ago
Aakansha Doshi
399ce1e01a
fix: don't bind text to container if double clicked else instead of center ( #5105 )
4 years ago
dependabot[bot]
7df8302ba2
chore(deps-dev): bump babel-loader in /src/packages/utils ( #5088 )
...
Bumps [babel-loader](https://github.com/babel/babel-loader ) from 8.2.3 to 8.2.5.
- [Release notes](https://github.com/babel/babel-loader/releases )
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.3...v8.2.5 )
---
updated-dependencies:
- dependency-name: babel-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
af8c59b5bb
chore(deps): bump minimist in /src/packages/excalidraw ( #5039 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
cf0f00285b
chore(deps): bump minimist from 1.2.5 to 1.2.6 in /src/packages/utils ( #5040 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
b5c67a384c
chore(deps): bump minimist from 1.2.5 to 1.2.6 ( #5042 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Achille Lacoin
af93cedc08
EXCALIDRAW_EXPORT_SOURCE_PATH -> EXCALIDRAW_EXPORT_SOURCE ( #5102 )
4 years ago
ad1992
128b7741c1
update config to use displayData
4 years ago
Achille Lacoin
b6a6f2d465
feat: Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports ( #5095 )
...
* Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: David Luzar <luzar.david@gmail.com>
* address review comments
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* EXCALIDRAW_EXPORT_SOURCE -> EXCALIDRAW_EXPORT_SOURCE_PATH
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
4 years ago
dependabot[bot]
6bcbf8b50a
chore(deps): bump node-forge in /src/packages/excalidraw ( #5071 )
...
Bumps [node-forge](https://github.com/digitalbazaar/forge ) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/digitalbazaar/forge/releases )
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md )
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.2.1...v1.3.1 )
---
updated-dependencies:
- dependency-name: node-forge
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
666516d7e9
chore(deps): bump async from 2.6.3 to 2.6.4 in /src/packages/excalidraw ( #5069 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
b941c5b661
chore(deps-dev): bump webpack in /src/packages/excalidraw ( #5027 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.65.0 to 5.72.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.72.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
8f8c85c64e
chore(deps): bump async from 2.6.3 to 2.6.4 ( #5070 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
116b0c48da
chore(deps): bump nanoid from 3.1.32 to 3.3.3 ( #5073 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.32 to 3.3.3.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.32...3.3.3 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
aa2971e8c5
chore(deps-dev): bump autoprefixer in /src/packages/excalidraw ( #5087 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.4.2 to 10.4.5.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.2...10.4.5 )
---
updated-dependencies:
- dependency-name: autoprefixer
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
5656ac1e3e
chore(deps): bump browser-fs-access from 0.24.1 to 0.29.1 ( #5090 )
...
Bumps [browser-fs-access](https://github.com/GoogleChromeLabs/browser-fs-access ) from 0.24.1 to 0.29.1.
- [Release notes](https://github.com/GoogleChromeLabs/browser-fs-access/releases )
- [Commits](https://github.com/GoogleChromeLabs/browser-fs-access/commits )
---
updated-dependencies:
- dependency-name: browser-fs-access
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
ad1992
1edde7291c
fix specs
4 years ago
ad1992
1ca56204b1
don't draw if image not present
4 years ago
ad1992
f3ae7a8506
don't show move cursor if transform handles disabled
4 years ago
ad1992
5f57daa132
fix: selection not working sometimes when transformHandles disabled
4 years ago
David Luzar
e6a9ff1b96
fix: toolIcon height not using rem ( #5092 )
4 years ago
David Luzar
832b88249c
feat: stop event propagation when key handled ( #5091 )
...
* feat: stop event propagation when key handled
* don't handle s/g shortcuts if cmd/ctrl/alt pressed
4 years ago
Aakansha Doshi
9902092fd1
fix setting webpack public path ( #5081 )
4 years ago
Achille Lacoin
8f0863d335
add a prefix to the extension for image embbedding sceneData ( #5079 )
4 years ago
David Luzar
9423ac3263
fix: Excalidraw named export type ( #5078 )
4 years ago
ad1992
db9c9eb3d2
suppport disabling context menu in custom elements
4 years ago
ad1992
2e8c4d25f2
fix package example
4 years ago
ad1992
4953828d86
Merge remote-tracking branch 'origin/master' into aakansha-custom-elements
4 years ago
Aakansha Doshi
a66cfe2627
fix: boundElementIds when arrows bound to elements are deleted ( #5077 )
...
* fix: boundElementIds when arrows bound to elements are deleted
* fix type checks and updating unrelated elements
Co-authored-by: dwelle <luzar.david@gmail.com>
4 years ago
Achille Lacoin
86cf28f2b4
fix: don't merge libraryItems on updateScene ( #5076 )
4 years ago
Achille Lacoin
b5a46dd671
fix: SVG metadata extraction regex on multiline elements ( #5074 )
...
* Fix SVG metadata extraction regex on multiline elements
* remove multiline flag
4 years ago
David Luzar
cd942c3e3b
feat: rewrite library state management & related refactor ( #5067 )
...
* support libraryItems promise for `updateScene()` and use `importLibrary`
* fix typing for `getLibraryItemsFromStorage()`
* remove `libraryItemsFromStorage` hack
if there was a point to it then I'm missing it, but this part will be rewritten anyway
* rewrite state handling
(temporarily removed loading states)
* add async support
* refactor and deduplicate library importing logic
* hide hints when library open
* fix snaps
* support promise in `initialData.libraryItems`
* add default to params instead
4 years ago
ad1992
6eb0cf6a10
unbind onCreate once executed
4 years ago
David Luzar
55ccd5b79b
feat: delay initial loading message & tweak design ( #5049 )
4 years ago
ad1992
ba48aa24a0
Add onCreate in customElementConfig
4 years ago
ad1992
4e75f10b2c
cache svg with element id
4 years ago
ad1992
d2d3599661
Support svg as a async function returing promise/string
4 years ago
Excalidraw Bot
4348c55c31
chore: Update translations from Crowdin ( #4894 )
4 years ago
David Luzar
a3fbe40b26
fix: eraser cursor showing on theme change when not using eraser ( #4990 )
4 years ago