excalidraw/src/components
Aakansha Doshi 37d513ad59
feat: Make library local to given excalidraw instance and allow consumer to control it (#3451)
* feat: dnt share library & attach to the excalidraw instance

* fix

* Add addToLibrary, resetLibrary and libraryItems in initialData

* remove comment

* handle errors & improve types

* remove resetLibrary and addToLibrary and add onLibraryChange prop

* set library cache to empty arrary on reset

* Add i18n for remove/add library

* Update src/locales/en.json

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

* update docs

* Assign unique ID to
 each excalidraw component and remove csrfToken from library as its not needed

* tweaks

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

* update

* tweak

Co-authored-by: dwelle <luzar.david@gmail.com>
2021-04-21 23:38:24 +05:30
..
Actions.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
App.tsx feat: Make library local to given excalidraw instance and allow consumer to control it (#3451) 2021-04-21 23:38:24 +05:30
Avatar.scss reuse scss variables in js for SSOT (#2867) 2021-01-28 17:28:35 +05:30
Avatar.tsx Add border to the Avatars (#2428) 2020-11-29 20:19:06 +02:00
BackgroundPickerAndDarkModeToggle.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
ButtonIconCycle.tsx refactor: Use arrow function where possible (#3315) 2021-03-29 17:09:20 +03:00
ButtonIconSelect.tsx Update ESLint rules (#2342) 2020-11-06 21:06:30 +01:00
ButtonSelect.tsx Update ESLint rules (#2342) 2020-11-06 21:06:30 +01:00
CollabButton.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
CollabButton.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ColorPicker.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ColorPicker.tsx feat: Bind keyboard events to the current excalidraw container and add handleKeyboardGlobally prop to allow host to bind to document (#3430) 2021-04-13 01:29:25 +05:30
ContextMenu.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ContextMenu.tsx fix: popover positioning (#3399) 2021-04-05 17:26:37 +02:00
DarkModeToggle.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
Dialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
Dialog.tsx fix: focus on last active element when dialog closes (#3447) 2021-04-15 20:29:00 +05:30
ErrorDialog.tsx fix: focus on last active element when dialog closes (#3447) 2021-04-15 20:29:00 +05:30
ExportDialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ExportDialog.tsx fix: focus on last active element when dialog closes (#3447) 2021-04-15 20:29:00 +05:30
FixedSideContainer.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
FixedSideContainer.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00
GitHubCorner.tsx refactor: Rename appearance to theme (#3237) 2021-03-13 18:58:06 +05:30
HelpDialog.scss reuse scss variables in js for SSOT (#2867) 2021-01-28 17:28:35 +05:30
HelpDialog.tsx feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
HelpIcon.tsx fix: Make help toggle tabbable (#3310) 2021-03-23 16:48:10 +05:30
HintViewer.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
HintViewer.tsx improvement: change hint for 2-point lines on resize (#2655) 2020-12-22 11:00:51 +01:00
IconPicker.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
IconPicker.tsx feat: Bind keyboard events to the current excalidraw container and add handleKeyboardGlobally prop to allow host to bind to document (#3430) 2021-04-13 01:29:25 +05:30
icons.tsx fix: Show Windows share icon for Windows users (#3306) 2021-03-22 17:02:20 +01:00
InitializeApp.tsx feat: Updates to Collaboration and RTL UX (#2994) 2021-02-08 21:43:51 +01:00
Island.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Island.tsx Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
LayerUI.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
LayerUI.tsx feat: Make library local to given excalidraw instance and allow consumer to control it (#3451) 2021-04-21 23:38:24 +05:30
LibraryUnit.scss refactor: Rename appearance to theme (#3237) 2021-03-13 18:58:06 +05:30
LibraryUnit.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
LoadingMessage.tsx make loading message account for dark mode & add i18n (#2033) 2020-08-14 13:27:41 +02:00
LockIcon.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00
MobileMenu.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
Modal.scss feat: Bind keyboard events to the current excalidraw container and add handleKeyboardGlobally prop to allow host to bind to document (#3430) 2021-04-13 01:29:25 +05:30
Modal.tsx fix: Apply theme to only to active excalidraw component (#3446) 2021-04-13 23:02:57 +05:30
PasteChartDialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
PasteChartDialog.tsx fix: Track the chart type correctly (#2773) 2021-01-13 15:23:14 +02:00
Popover.scss fix: popover positioning (#3399) 2021-04-05 17:26:37 +02:00
Popover.tsx chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
ProjectName.tsx feat: Bind keyboard events to the current excalidraw container and add handleKeyboardGlobally prop to allow host to bind to document (#3430) 2021-04-13 01:29:25 +05:30
Section.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Stack.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
Stack.tsx Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
Stats.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Stats.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
TextInput.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Toast.scss feat: Add export info on copy PNG to clipboard toast message (#3159) 2021-03-03 14:15:10 +02:00
Toast.tsx feat: Add toast (#2772) 2021-01-15 16:02:46 +01:00
ToolButton.tsx feat: Allow host app to update title of drawing (#3273) 2021-03-20 16:08:03 +05:30
ToolIcon.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
Tooltip.scss fix: disable UI pointer-events on canvas drag (#2856) 2021-02-01 14:55:38 +02:00
Tooltip.tsx feat: Add tooltip with icon for embedding scenes (#2532) 2020-12-14 14:24:54 +01:00
TopErrorBoundary.tsx fix: cursor being leaked outside of canvas (#3161) 2021-03-03 14:04:02 +01:00
UserList.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
UserList.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00