Commit Graph

3299 Commits (557add5bf7dd1d682e5802e5a6289cdb895b1593)
 

Author SHA1 Message Date
Aakansha Doshi 557add5bf7
feat: Support Mermaid Class diagrams 🥳 (#7381)
* feat: support mermaid class diagrams

* upgrade mermaid-to-excalidraw

* upgrade mermaid-to-excalidraw

* add sequence diagrams in supported chart types

* upgrade mermaid-to-excalidraw

* update i18n
1 year ago
David Luzar b9cfbc2077
feat: add support for more UML arrowheads (#7391) 1 year ago
dependabot[bot] a04cc707c3
build(deps-dev): bump vite from 4.4.2 to 4.4.12 (#7393)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.2 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Vaibhav Shukla 72ea8022bf
docs: changelog instruction removed from docs (#7395)
changelog instruction removed from docs
1 year ago
David Luzar 4bdeaf999b
feat: TTD dialog UI tweaks (#7384) 1 year ago
Aakansha Doshi 42d8c5a040
chore: update changelog and package.json for v0.17.1 (#7351) 1 year ago
Aakansha Doshi f299514e44
fix: umd build so it can be used in browser (#7349)
* fix: umd build so it can be used in browser

* fix lint

* increase size limit

* update changelog

* use json.stringify for env preact variable so its accessible as string

* update changelog
1 year ago
David Luzar dd220bcaea
feat: TTD dialog tweaks (#7346)
* tweaks to TTD dialog ~ prepping for settings dialog

* tweaks to ttd parsing & error logging
1 year ago
David Luzar fe75f29c15
fix: disable caching bounds for arrow labels (#7343) 1 year ago
Barnabás Molnár 14845a343b
feat: text-to-diagram (#7325)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
David Luzar dd8a7d41e2
fix: bounds cached prematurely resulting in incorrectly rendered labels (#7339) 1 year ago
David Luzar fda5c6fdf7
fix: t2c settings dialog spacing for apps that use CSS resets (#7337) 1 year ago
David Luzar 3d1631f375
feat: d2c tweaks (#7336) 1 year ago
David Luzar c7ee46e7f8
feat: wireframe-to-code (#7334) 1 year ago
DanielJGeiger d1e4421823
feat: Expose `ActionManager.registerAction` through `ExcalidrawImperativeAPI` (#6995)
* feat: Expose `ActionManager` through `ExcalidrawImperativeAPI`

* Only expose `registerAction` instead of `ActionManager`
1 year ago
Barnabás Molnár 7c9cf30909
fix: make zoomToFit fitToViewport account for sidebar (#7298) 1 year ago
David Luzar 1e37dbd60e
feat: change frame resizing behavior (#7307) 1 year ago
David Luzar f8d5c2a1b6
build: allow a range of major node versions (#7306) 1 year ago
Aakansha Doshi 23b24ea5c3
build: use caret for specifying node version to avoid major upgrades automatically (#7297) 1 year ago
Aakansha Doshi a528769b68
docs: upgrade to @excalidraw/excalidraw@0.17.0 (#7285) 1 year ago
Aakansha Doshi ddb7585057
docs: Docs for v0.17.0 🚀 (#7248)
* feat: add docs for getCommonBounds

* docs: add docs for frames api support

* docs: update docs for regenerateIds opts in convertToExcalidrawElements

* add docs for ref removal

* add docs for lock support and insertOnCanvasDirectly in setActiveTool

* fix broken links

* update docs for next js support

* update docs for Preact

* add faq

* docs: add `onChange`, `onPointerDown`, `onPointerUp` docs

* docs: update `useDevice` docs

* update docs for disabling image tool

* add docs for withinBounds helpers

* fix lint

* upgrade excal

* add docusaurus2-dotenv for expose env vars

* fix env variable and upgrade excal

* Update dev-docs/docs/@excalidraw/excalidraw/api/excalidraw-element-skeleton.mdx

Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>

* update docs

Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>

* update docs for process.env

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
Aakansha Doshi 111a48ffb1
docs: release @excalidraw/excalidraw@0.17.0 🎉 (#7284) 1 year ago
Aakansha Doshi 54153629c0
chore: update release scripts (#7282)
* chore: update release scripts

* update docs
1 year ago
David Luzar 9c425224c7
feat: support disabling image tool (#6320)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
1 year ago
Aakansha Doshi 9d1d45a8ea
chore: update changelog (#7279)
* chore: update changelog

* fix

* Update CHANGELOG.md
1 year ago
David Luzar 029c3c48ba
fix: image insertion bugs (#7278) 1 year ago
Aakansha Doshi adfd95be33
build: support preact 🥳 (#7255)
* build: support preact

* add log

* Simplify the config and generate prod and dev builds for preact

* update changelog

* remove logs

* use env variable so its available during build time

* update cl

* fix
1 year ago
zsviczian ceb255e8ee
fix: exportToSvg to honor frameRendering also for name not only for frame itself (#7270)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
David Luzar ae5b9a4ffd
fix: not cloning elements on export polluting Scene mapping (#7276) 1 year ago
zsviczian 3d4ff59f40
fix: Can't toggle penMode off due to missing typecheck in togglePenMode (#7273)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
David Luzar 7b00089314
chore: bump @excalidraw/random-username (#7272) 1 year ago
zsviczian af6b81df40
fix: Replace hard coded font family with const value in addFrameLabelsAsTextElements (#7269) 1 year ago
FilBot3 02cc8440c4
feat: allow D&D dice app domain for embeds (#7263)
Co-authored-by: David Luzar <5153846+dwelle@users.noreply.github.com>
1 year ago
David Luzar 6363492cee
fix: perf issue when ungrouping elements within frame (#7265)
Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
1 year ago
Sahil Nagpure 900b317bf3
feat: remove full screen shortcut (#7222) 1 year ago
Gabriel Lalonde 68179356e6
fix: Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" (#7189)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
1 year ago
Jan-Peter Dhallé 3ed15e95da
Small typo fix frames.mdx (#7216) 1 year ago
zsviczian 798e1fd858
fix: allow pointer events when editing a linear element (#7238) 1 year ago
David Luzar f66c93633c
feat: make adaptive-roughness less aggressive (#7250) 1 year ago
Aakansha Doshi cee00767df
feat: support excalidrawAPI and remove refs support (#7251)
* feat: support excalidrawAPI and remove refs support

* update changelog

* remove ready and readyPromise

* update changelog

* update changelog
1 year ago
David Luzar 864c0b3ea8
feat: render frames on export (#7210) 1 year ago
Aakansha Doshi a9a6f8eafb
docs: update the docs with next js dynamic import support (#7252) 1 year ago
David Luzar 3c96943db3
test: fix mermaid test flake (#7249) 1 year ago
David Luzar 9006caff39
fix: make modal use viewport breakpoints (#7246) 1 year ago
Aakansha Doshi ce7a847668
feat: export getCommonBounds util (#7247)
* feat: export getCommonBounds util

* add pr link

* fix
1 year ago
David Luzar b1037b342d
feat: make device breakpoints more specific (#7243) 1 year ago
Dante Calderon 18a7b97515
chore: Fix typo in comment in LocalData file (#7235) 1 year ago
Aakansha Doshi e8def8da8d
feat: Support mermaid flowchart and sequence diagrams to excalidraw diagrams 🥳 (#6920)
* feat: integrate mermaidToExcalidraw

* create mermaid to excal dialog

* allow mermaid syntax and export in preview

* fix

* fix webpack config

* fix markdown error by using named export

* center preview

* set elements as selected when inserted onto canvas

* persist mermaid data to storage

* store canvas data in refs

* load mermaid lazily

* tweak design

* compute width, height correctly for arrows

* fix undefined vertex issue

* add mermaid icon in dropdown

* add a note in dialog

* reset preview when error

* show error in preview when error

* show mermaid error messgae react way

* design tweaks

* add example and docs link

* fix

* tweak design to remove scroll bar

* show a spinner unless mermaid loaded

* regenerate ids when needed via programmatic api, this makes sure for mermaid diagrams ids are regenerated

* tweak

* add option to transform viewport to scene coords in transform api

* make opts optional and use 100% zoom when inserting to canvas

* fix arrow bindings in safari and firefox

* fix elements insert position and viewport centering

* fix: Update start/end points by 0.5 so bindings don't overlap with start/end bound element coordinates.

* defer rendering the preview

* tweak text

* fix tests

* remove only

* make design responsive

* fix: show extra tools dropdown in mobile

* fix mobile css

* width auto

* upgrade mermaid-to-excalidraw

* don't pass appState in deps as its not used

* upgrade mermaid-to-excalidraw to fix firefox issue

* use types from mermaid-to-excalidraw

* upgrade mermaid-to-excalidraw

* use stable version of mermaid-to-excalidraw

* upgrade mermaid-to-excalidraw

* fix width of shapes toolbar for smaller screen size and also fix regression of mobile menu

* use i18n

* better api

* enable test coverage in ui

* Add tests

* use common utils to update and get text editor

* updgrade mermaid-to-excalidraw to support sequence diagrams

* fix test

* don't update arrow container height anytime in when redrawing text bounding box

* increase size limit

* increase size limit of vendor to 900kb

* use openDialog for mermaid

* upgrade mermaid-to-excalidraw

* update frame id post generation

* upgrade mermaid-to-excalidraw to add entity codes support

* update size limit

* upgrade mermaid-to-excalidraw package with frame api changes

* upgrade mermaid-to-excalidraw to remove directive and use config

* don't highlight mermaid tool and remove unused api setSelection

* stop using loading state to update text area

* move some styling to scss

* review fixes

* use modifiedTableIcon props and remove stale snap

* css

* dialog css

* fix snap

* use dialog border

* change mermaidToExcalidrawLib to state

* better styling of errors

* make modal bigger

* fix mobile

* update snaps

* fix icon color

* fix dark mode insert button color

* horizontally center spinner

* render canvas conditionally on loaded state

* rd tweaks

* tweak class names

* remove max height

* typo in example

* upgrade mermaid-to-excalidraw

* simplify error state

* fix height & overflow on vertical breakpoint

* fix lint

* show errors in overlay

* set textarea font family

* reduce opacity

* update snap

* upgrade to mermaid  0.1.2

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
1 year ago
David Luzar a7db41c5ba
fix: align input `:hover`/`:focus` with spec (#7225) 1 year ago
David Luzar d8166d9e1d
fix: dialog remounting on className updates (#7224) 1 year ago