@excalidraw-modify/common 0.18.0-8b71db27 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +19 -19
  2. package/dist/dev/index.js +1121 -302
  3. package/dist/dev/index.js.map +4 -4
  4. package/dist/prod/index.js +3 -3
  5. package/dist/types/common/src/colors.d.ts +59 -39
  6. package/dist/types/common/src/constants.d.ts +5 -2
  7. package/dist/types/common/src/editorInterface.d.ts +1 -1
  8. package/dist/types/common/src/index.d.ts +0 -1
  9. package/dist/types/common/src/utils.d.ts +12 -9
  10. package/dist/types/element/src/Scene.d.ts +4 -4
  11. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  12. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  13. package/dist/types/element/src/binding.d.ts +9 -3
  14. package/dist/types/element/src/collision.d.ts +4 -3
  15. package/dist/types/element/src/comparisons.d.ts +5 -5
  16. package/dist/types/element/src/distribute.d.ts +2 -1
  17. package/dist/types/element/src/frame.d.ts +2 -2
  18. package/dist/types/element/src/index.d.ts +2 -0
  19. package/dist/types/element/src/linearElementEditor.d.ts +2 -0
  20. package/dist/types/element/src/renderElement.d.ts +0 -6
  21. package/dist/types/element/src/shape.d.ts +5 -4
  22. package/dist/types/element/src/typeChecks.d.ts +2 -2
  23. package/dist/types/element/src/zindex.d.ts +1 -1
  24. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2 -2
  25. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -0
  26. package/dist/types/excalidraw/actions/actionExport.d.ts +1 -1
  27. package/dist/types/excalidraw/actions/actionFrame.d.ts +35 -35
  28. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +37 -35
  29. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  30. package/dist/types/excalidraw/appState.d.ts +1 -1
  31. package/dist/types/excalidraw/clipboard.d.ts +4 -2
  32. package/dist/types/excalidraw/components/App.d.ts +16 -19
  33. package/dist/types/excalidraw/components/Card.d.ts +1 -2
  34. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  35. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  36. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  37. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  38. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  39. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  40. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  41. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  42. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  43. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  44. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  45. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  46. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  47. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -28
  48. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -1
  49. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  50. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  51. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  52. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  53. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +14 -13
  54. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  55. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  56. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  57. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  58. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  59. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  60. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  61. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  62. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
  63. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
  64. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
  65. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  66. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
  67. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  68. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  69. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  70. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  71. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  72. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  73. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +15 -0
  74. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -12
  75. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +314 -2
  77. package/dist/types/excalidraw/data/json.d.ts +157 -1
  78. package/dist/types/excalidraw/data/restore.d.ts +22 -16
  79. package/dist/types/excalidraw/errors.d.ts +14 -0
  80. package/dist/types/excalidraw/index.d.ts +4 -2
  81. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -1
  82. package/dist/types/excalidraw/scene/normalize.d.ts +1 -1
  83. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  84. package/dist/types/excalidraw/snapping.d.ts +1 -1
  85. package/dist/types/excalidraw/types.d.ts +11 -3
  86. package/dist/types/math/src/range.d.ts +1 -3
  87. package/package.json +7 -1
  88. package/dist/types/common/src/visualdebug.d.ts +0 -41
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # @excalidraw-modify/common
2
-
3
- ## Install
4
-
5
- ```bash
6
- npm install @excalidraw-modify/common
7
- ```
8
-
9
- If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
10
-
11
- ```bash
12
- yarn add @excalidraw-modify/common
13
- ```
14
-
15
- With PNPM, similarly install the package with this command:
16
-
17
- ```bash
18
- pnpm add @excalidraw-modify/common
19
- ```
1
+ # @excalidraw-modify/common
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ npm install @excalidraw-modify/common
7
+ ```
8
+
9
+ If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
10
+
11
+ ```bash
12
+ yarn add @excalidraw-modify/common
13
+ ```
14
+
15
+ With PNPM, similarly install the package with this command:
16
+
17
+ ```bash
18
+ pnpm add @excalidraw-modify/common
19
+ ```