Aakansha Doshi
5acb99777a
docs: fix typo ( #6252 )
2023-02-16 19:45:41 +05:30
Aakansha Doshi
0d7ee891e0
feat: Make repair and refreshDimensions configurable in restoreElements ( #6238 )
...
* fix: don't repair during reconcilation
* Add opts to restoreElement and enable refreshDimensions and repair via config
* remove
* update changelog
* fix tests
* rename to repairBindings
2023-02-15 10:41:11 +05:30
DanielJGeiger
8c1168ef33
refactor: Make the example React app reusable without duplication ( #6188 )
2023-02-07 12:41:20 +05:30
Aakansha Doshi
f23cdc47ee
docs: migrating dev docs to docusaurus :) ( #6073 )
...
* docs: migrating existing docs to docosaraus :)
* log broken links
* lint :p
* fix
* divide the doc into diff categories
* fix
* order sidebars and more
* fix lint
* point to installation
* making docs better :)
* fix
* renaming git
* renaming git
* fix links
* fix
* update readme
* fix
* resolve duplicate url and make /docs as base url
* fix
* move main docs as well
* making docs better
* support mdx
* update og
* fix title
* upgrade docusarus to stable version
* use draculla theme
* fix
* make entire sidebar collapsable
* live editor for footer wohoo
* render excalidraw only on client to fix the prod build
* migrate MainMenu to live editor too :)
* lint :p
* cleanup integration and use live editor and tabs
* fix
* Add welcome screen doc
* Live Collaboration comp docs
* Add collaborator example
* Add example
* add more
* remove isCollaborating
* Rewrite ref and move to sidebar
* change color of links inside pre
* add initial data
* fix lint
* Add styling
* fix lint
* Add example for customizing styles
* fix lint
* fix
* fix lint
* Add link to livecollabtrigger
* fix
* rewrite UIOptions to sidebar
* move initialdata to sidebar
* move render props to sidebar and rewrite renderTopRightUI and renderCustomStats
* rewrite renderSidebar
* update og
* update url for testing
* fix url
* update readme
* fix style
* tweaks
* Add highlight comp to highlight text
* Add bash syntax highlight
* fix
* tweaks
* fix
* rewrite export utilities
* fix restore
* rewrite utils
* move constants to sidebar
* update readme
* add copyright
* fix links style
* Add linkedin
* tweaks
* rename package to @excalidraw/excalidraw
* enable algolia with dummy creds
* tweaks to integration doc
* tweak WelcomeScreen docs to reflect upcoming API changes
* tweak components intro
* tweak nomenclature
* fix admonition
* rename `components` sidebar item and change order of components list
* uncollapse package section in sidebar
* show level 4 haeadings in TOC
* remove algolia
* remove unused assets
* capitalize C
* tweak
* rename components to App
* rename components -> children-components in the routes
* move notable used tools to intro
* update MainMenu docs with `onSelect` preventDefault behavior
* change sidebar label for children components
* use code
* tweak README & docs intro
* tweak package development doc
* make scrollbar gutter stable
* tweak api intro
* add admonition for export utils
* use next
* wip
* wip
* make excalidraw examples use current color theme & prefer system
* fix welcomescreen docs
* use latest temp release
* fix component order
* revert wip changes
* use next
* tweak
* increase height to fix welcome screen hint
* tweak editor height
* update excal version
* wrap Excal with forwardRef to fix refs
* migrate contributing.md
* fix broken links
---------
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-02-01 19:57:54 +05:30
Aakansha Doshi
f68f4cb9e0
docs: release @excalidraw/excalidraw@0.14.2 🎉 ( #6181 )
2023-02-01 19:08:56 +05:30
David Luzar
e6de1fe4a4
feat: rewrite public UI component rendering using tunnels ( #6117 )
...
* feat: rewrite public UI component rendering using tunnels
* factor out into components
* comments
* fix variable naming
* fix not hiding welcomeScreen
* factor out AppFooter and memoize components
* remove `UIOptions.welcomeScreen` and render only from host app
* factor out tunnels into own file
* update changelog. Keep `UIOptions.welcomeScreen` as deprecated
* update changelog
* lint
---------
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-01-31 13:53:20 +01:00
David Luzar
1db078a3dc
feat: close MainMenu and Library dropdown on item select ( #6152 )
2023-01-23 16:54:35 +01:00
Aakansha Doshi
d6a5ef1936
docs: release @excalidraw/excalidraw@0.14.1 🎉 ( #6112 )
2023-01-16 16:08:03 +05:30
Aakansha Doshi
c7a11f5cd2
docs: release @excalidraw/excalidraw@0.14.0 🎉 ( #6109 )
2023-01-13 16:08:29 +05:30
Aakansha Doshi
faad8a65f1
feat: new Live Collaboration Component API ( #6104 )
...
* feat: new Live Collaboration Component API
* namespace export icons into `icons` dictionary and lowercase
* update readme and changelog
* review fixes
* fix
* fix
* update docs
* remove
* allow button rest props
* update docs
* docs
* add `WelcomeScreen.Center.MenuItemLiveCollaborationTrigger`
* fix lint
* update changelog
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-01-12 23:28:57 +05:30
Aakansha Doshi
9d04479f98
fix: renamed folder MainMenu->main-menu and support rest props ( #6103 )
...
* renamed folder MainMenu -> main-menu
* rename ariaLabel -> aria-label and dataTestId -> data-testid
* allow rest props
* fix
* lint
* add ts check
* ts for div
* fix
* fix
* fix
2023-01-12 20:40:09 +05:30
David Luzar
599a8f3c6f
feat: support WelcomeScreen customization API ( #6048 )
2023-01-12 15:49:28 +01:00
David Luzar
0982da38fe
feat: render unknown supplied children to UI ( #6096 )
2023-01-12 15:20:16 +01:00
Barnabás Molnár
699897f71b
feat: generic button export ( #6092 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-01-12 13:06:00 +01:00
David Luzar
618442299f
fix: React.memo resolvers not accounting for all props ( #6042 )
2023-01-09 10:24:17 +01:00
dependabot[bot]
9803a85381
build(deps): bump loader-utils from 2.0.3 to 2.0.4 in /src/packages/excalidraw ( #5892 )
...
build(deps): bump loader-utils in /src/packages/excalidraw
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-06 12:31:06 +05:30
dependabot[bot]
1255ca2e84
build(deps): bump json5 from 2.2.1 to 2.2.3 in /src/packages/utils ( #6061 )
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-06 12:25:35 +05:30
dependabot[bot]
14d02dcaea
build(deps): bump json5 from 2.2.1 to 2.2.3 in /src/packages/excalidraw ( #6062 )
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-06 12:25:20 +05:30
Aakansha Doshi
8420aecb34
feat: new Menu Component API ( #6034 )
...
* feat: new Menu Component API
* allow valid children types
* introduce menu group to group items
* Add lang footer
* use display name
* displayName
* define types inside
* fix default menu
* add json export to menu
* fix
* simplify expression
* put open menu into own compo to optimize perf
So that we don't rerun `useOutsideClickHook` (and rebind event listeners
all the time)
* naming tweaks
* rename MenuComponents->MenuDefaultItems and export default items from Menu.Items
* import Menu.scss in Menu.tsx
* move menu scss to excal app
* Don't filter children inside menu group
* move E+ out of socials
* support style prop for MenuItem and MenuGroup
* Support header in menu group and add Excalidraw links header for default items in social section
* rename header to title
* fix padding for lang
* render menu in mobile
* review fixes
* tweaks
* Export collaborators and show in mobile menu
* revert .env
* lint :p
* again lint
* show correct actions in view mode for mobile
* Whitelist Collaborators Comp
* mobile styling
* padding
* don't show nerds when menu open in mobile
* lint :(
* hide shortcuts
* refactor userlist to support mobile and keep a wrapper comp for excal app
* use only UserList
* render only on mobile for default items
* remove unused hooks
* Show collab button in menu when onCollabButtonClick present and hide export when UIOptions.canvasActions.export is false
* fix tests
* lint
* inject userlist inside menu on mobile
* revert userlist
* move menu socials to default menu
* fix collab
* use meny in library
* Make Menu generic and create hamburgemenu for public excal menu and use menu in library as well
* use appState.openMenu for mobile
* fix tests
* styling fixes and support style and class name in menu content
* fix test
* rename MenuDefaultItems->DefaultItems
* move footer css to its own comp
* rename HamburgerMenu -> MainMenu
* rename menu -> dropdownMenu and update classes, onClick->onToggle
* close main menu when dialog closes
* by bye filtering
* update docs
* fix lint
* update example, docs for useDevice and footer in mobile, rename menu ->DropDownMenu everywhere
* spec
* remove isMenuOpenAtom and set openMenu as canvas for main menu, render decreases in specs :)
* [temp] remove cyclic depenedency to fix build
* hack- update appstate to sync lang change
* Add more specs
* wip: rewrite MainMenu footer
* fix margin
* fix snaps
* not needed as lang list no more imported
* simplify custom footer rendering
* Add DropdownMenuItemLink and DropdownMenuItemCustom and update API, docs
* fix `MainMenu.ItemCustom`
* naming
* use onSelect and base class for custom items
* fix lint
* fix snap
* use custom item for lang
* update docs
* fix
* properly use `MainMenu.ItemCustom` for `LanguageList`
* add margin top to custom items
* flex
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-01-05 22:04:23 +05:30
Aakansha Doshi
b704705ed8
feat: render footer as a component instead of render prop ( #5970 )
...
* feat: render footer as a component instead of render prop
* Export FooterCenter as footer
* remove useDevice export
* revert some changes
* remove
* add spec
* update specs
* parse children into a dictionary
* factor app footer components into a single file
* Add docs
* split app footer components
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-12-21 14:29:06 +05:30
Ryan Di
5854ac3eed
feat: better default radius sizes for rectangles ( #5553 )
...
Co-authored-by: Ryan <diweihao@bytedance.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-12-08 16:48:49 +01:00
Aakansha Doshi
0111ca2050
fix: renderFooter styling ( #5962 )
2022-12-06 16:42:54 +05:30
David Luzar
d273acb7e4
fix: refresh text dimensions only after font load done ( #5878 )
...
* fix: refresh text dimensions only after font load done
* fix snaps
2022-11-15 00:15:02 +01:00
dependabot[bot]
3c0b29d85f
build(deps): bump loader-utils from 2.0.0 to 2.0.4 in /src/packages/utils ( #5874 )
...
build(deps): bump loader-utils in /src/packages/utils
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 2.0.0 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.0...v2.0.4 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 15:49:05 +05:30
dependabot[bot]
74b9885955
build(deps): bump minimatch from 3.0.4 to 3.1.2 in /src/packages/excalidraw ( #5861 )
...
build(deps): bump minimatch in /src/packages/excalidraw
Bumps [minimatch](https://github.com/isaacs/minimatch ) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 13:51:10 +05:30
dependabot[bot]
a48607eb25
build(deps): bump loader-utils from 2.0.2 to 2.0.3 in /src/packages/excalidraw ( #5851 )
...
build(deps): bump loader-utils in /src/packages/excalidraw
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 13:49:39 +05:30
David Luzar
b91158198e
feat: clean unused images only after 24hrs (local-only) ( #5839 )
...
* feat: clean unused images only after 24hrs (local-only)
* fix test
* make optional for now
2022-11-06 19:41:14 +01:00
David Luzar
c8f6e3faa8
fix: restore text dimensions ( #5432 )
...
* fix: restore text dimensions
* fix tests
* update readme & changelog
* reduce API surface area by always refreshing dimensions for full `restore()`
2022-10-28 23:31:56 +02:00
Aakansha Doshi
36bf17cf59
fix: changelog typo ( #5795 )
...
* fix: changelog typo
* fix
* fix
* Empty-Commit
2022-10-27 20:43:03 +05:30
Aakansha Doshi
75458c3192
docs: release @excalidraw/excalidraw@0.13.0 🎉 ( #5793 )
2022-10-27 18:28:44 +05:30
David Luzar
e9067de173
feat: refactor Sidebar into standalone reusable component ( #5663 )
...
🚀 !
2022-10-17 12:25:24 +02:00
Abdullah Adeel
7eaf47c9d4
fix: default light theme splash 🔧 ( #5660 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-09-16 13:59:03 +00:00
Seunghyun oh
c5869979c8
chore: fix typo in clipboard alert ( #5693 )
...
chore: fix typo
2022-09-14 12:15:35 +05:30
David Luzar
6a6b9c90a7
fix: revert webpack deduping to fix @next
runtime ( #5695 )
...
Revert "chore: Dedupe webpack configs. (#5449 )"
This reverts commit da4fa91ffc2bf9b1b74c9fec8164348273a9cad2.
2022-09-13 21:19:57 +02:00
Aakansha Doshi
5c17751662
fix: Move to release notes for v0.9.0 and after ( #5686 )
...
* fix: Move to release notes for v0.9.0 and after
* fix
2022-09-13 16:29:56 +05:30
zsviczian
836120c14b
feat: added exportPadding to PNG (blob) export in @excalidraw/utils ( #5626 )
...
* added exportPadding
* Update README.md
* Update CHANGELOG.md
2022-08-30 12:48:24 +05:30
DanielJGeiger
da4fa91ffc
chore: Dedupe webpack configs. ( #5449 )
...
* chore: Dedupe package dependencies and webpack configs.
* Fully dedupe `src/packages` via symlinks
* Merge https://github.com/excalidraw/excalidraw into dedupe-package-deps-configs
* fix: Link `tsc` so `build:example` works in @excalidraw/excalidraw
* @excalidraw/plugins: Revert the `yarn.lock` deduping.
* Drop yarn commands from the root `package.json`.
* Remove more unneeded `package.json` additions.
* One more change to drop in `package.json` files.
* Deduping: Move even more into common webpack configs.
* renaming
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-08-30 12:37:18 +05:30
Aakansha Doshi
5aed159991
docs: fix refs table ( #5614 )
...
* docs: fix refs table
* fix
* fix
* fix
* fix
2022-08-23 13:55:43 +05:30
Aakansha Doshi
de1d221d1c
docs: add PR link ( #5613 )
...
docs:add PR link
2022-08-23 11:51:45 +05:30
Aakansha Doshi
9a68dbffe2
docs: update docs for param defaultStatus in loadLibraryFromBlob ( #5612 )
2022-08-23 11:32:53 +05:30
David Luzar
8f8dd1105f
docs: changelog fixes ( #5593 )
2022-08-18 14:16:06 +02:00
David Luzar
b914ad41fc
feat: support ExcalidrawElement.customData
( #5592 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-08-18 17:32:46 +05:30
Caleb OLeary
c37977af4b
docs: correct readme type typo ( #5574 )
2022-08-16 13:55:55 +05:30
Aakansha Doshi
5a8dbe8030
feat: show a mid point for linear elements ( #5534 )
...
* feat: Add a mid point for linear elements
* fix tests
* show mid point only on hover
* hacky fix :(
* don't add mid points if present and only add outside editor
* improve styling and always show phantom point instead of just on hover
* fix tests
* fix
* only add polyfill for test
* add hover state for phantom point
* fix tests
* fix
* Add Array.at polyfill
* reuse `centerPoint()` helper
* reuse `distance2d`
* use `Point` type
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-08-11 20:16:25 +05:30
Aakansha Doshi
0a5da0269f
docs: migrate the example to React 18 ( #5533 )
2022-08-04 12:24:13 +05:30
DanielJGeiger
f8b4bb66b4
chore: Update peer dependencies to React 18 in @excalidraw/excalidraw
( #5483 )
...
* chore: Update peer dependencies to React 18 in `@excalidraw/excalidraw`
* Update src/packages/excalidraw/package.json
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
2022-07-26 16:23:30 +05:30
Aakansha Doshi
2b71a1f0bd
fix: generate types when building example ( #5480 )
2022-07-22 18:53:21 +05:30
Aakansha Doshi
15d79f8fee
chore: upgrade to React 18 ( #5450 )
...
* chore: upgrade to React 18
* better type
* use React.FC to fix type
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-07-22 11:20:36 +05:30
dependabot[bot]
5abbf73050
chore(deps-dev): bump sass-loader from 12.4.0 to 13.0.2 in /src/packages/excalidraw ( #5400 )
...
chore(deps-dev): bump sass-loader in /src/packages/excalidraw
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 12.4.0 to 13.0.2.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v12.4.0...v13.0.2 )
---
updated-dependencies:
- dependency-name: sass-loader
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 12:51:57 +00:00
dependabot[bot]
59fccafeac
chore(deps-dev): bump sass-loader from 12.6.0 to 13.0.2 in /src/packages/utils ( #5396 )
...
chore(deps-dev): bump sass-loader in /src/packages/utils
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 12.6.0 to 13.0.2.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v12.6.0...v13.0.2 )
---
updated-dependencies:
- dependency-name: sass-loader
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 18:17:09 +05:30