@zsviczian/excalidraw 0.17.1-obsidian-35 → 0.17.1-obsidian-36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.17.1-obsidian-35",
3
+ "version": "0.17.1-obsidian-36",
4
4
  "main": "main.js",
5
5
  "types": "types/excalidraw/index.d.ts",
6
6
  "files": [
@@ -75,14 +75,14 @@
75
75
  "tunnel-rat": "0.1.2"
76
76
  },
77
77
  "devDependencies": {
78
- "@babel/core": "7.18.9",
79
- "@babel/plugin-transform-arrow-functions": "7.18.6",
80
- "@babel/plugin-transform-async-to-generator": "7.18.6",
81
- "@babel/plugin-transform-runtime": "7.18.9",
82
- "@babel/plugin-transform-typescript": "7.18.8",
83
- "@babel/preset-env": "7.18.6",
84
- "@babel/preset-react": "7.18.6",
85
- "@babel/preset-typescript": "7.18.6",
78
+ "@babel/core": "7.24.5",
79
+ "@babel/plugin-transform-arrow-functions": "7.24.1",
80
+ "@babel/plugin-transform-async-to-generator": "7.24.1",
81
+ "@babel/plugin-transform-runtime": "7.24.3",
82
+ "@babel/plugin-transform-typescript": "7.24.5",
83
+ "@babel/preset-env": "7.24.5",
84
+ "@babel/preset-react": "7.24.1",
85
+ "@babel/preset-typescript": "7.24.1",
86
86
  "@size-limit/preset-big-lib": "9.0.0",
87
87
  "@testing-library/jest-dom": "5.16.2",
88
88
  "@testing-library/react": "12.1.5",
@@ -103,8 +103,6 @@
103
103
  "import-meta-loader": "1.1.0",
104
104
  "mini-css-extract-plugin": "2.6.1",
105
105
  "postcss-loader": "7.0.1",
106
- "react": "18.2.0",
107
- "react-dom": "18.2.0",
108
106
  "sass-loader": "13.0.2",
109
107
  "size-limit": "9.0.0",
110
108
  "style-loader": "3.3.3",
@@ -1,7 +1,7 @@
1
1
  import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "../../element/types";
2
2
  import "./MermaidToExcalidraw.scss";
3
3
  import type { MermaidToExcalidrawLibProps } from "./common";
4
- import { MermaidOptions } from "@zsviczian/mermaid-to-excalidraw";
4
+ import type { MermaidOptions } from "@zsviczian/mermaid-to-excalidraw";
5
5
  declare const MermaidToExcalidraw: ({ mermaidToExcalidrawLib, selectedElements, }: {
6
6
  mermaidToExcalidrawLib: MermaidToExcalidrawLibProps;
7
7
  selectedElements: readonly NonDeletedExcalidrawElement[];
@@ -252,7 +252,7 @@ export declare class LinearElementEditor {
252
252
  } | undefined;
253
253
  avatarUrl?: string | undefined;
254
254
  id?: string | undefined;
255
- socketId?: import("../types").SocketId | undefined; /** whether you're dragging a point */
255
+ socketId?: import("../types").SocketId | undefined;
256
256
  isCurrentUser?: boolean | undefined;
257
257
  isInCall?: boolean | undefined;
258
258
  isSpeaking?: boolean | undefined;
@@ -20,9 +20,10 @@ import type { ExcalidrawElement, OrderedExcalidrawElement } from "./element/type
20
20
  *
21
21
  * @throws `InvalidFractionalIndexError` if invalid index is detected.
22
22
  */
23
- export declare const validateFractionalIndices: (elements: readonly ExcalidrawElement[], { shouldThrow, includeBoundTextValidation, reconciliationContext, }: {
23
+ export declare const validateFractionalIndices: (elements: readonly ExcalidrawElement[], { shouldThrow, includeBoundTextValidation, ignoreLogs, reconciliationContext, }: {
24
24
  shouldThrow: boolean;
25
25
  includeBoundTextValidation: boolean;
26
+ ignoreLogs?: true | undefined;
26
27
  reconciliationContext?: {
27
28
  localElements: ReadonlyArray<ExcalidrawElement>;
28
29
  remoteElements: ReadonlyArray<ExcalidrawElement>;
@@ -28,8 +28,8 @@ getFontFamilies, //zsviczian
28
28
  getFontFamilyString, //zsviczian
29
29
  registerFontsInCSS, //zsviczian
30
30
  getFontDefinition, } from "../utils/export";
31
- export { refreshTextDimensions, } from "./element/newElement";
32
- export { getContainerElement, } from "./element/textElement";
31
+ export { refreshTextDimensions } from "./element/newElement";
32
+ export { getContainerElement } from "./element/textElement";
33
33
  export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
34
34
  export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
35
35
  export { getFreeDrawSvgPath } from "./renderer/renderElement";
@@ -1,4 +1,4 @@
1
- import { FontMetadata } from "./fonts/metadata";
1
+ import type { FontMetadata } from "./fonts/metadata";
2
2
  export declare let hostPlugin: any;
3
3
  export declare function destroyObsidianUtils(): void;
4
4
  export declare function initializeObsidianUtils(obsidianPlugin: any): void;
@@ -18,7 +18,7 @@ import type { IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
18
18
  import type { ContextMenuItems } from "./components/ContextMenu";
19
19
  import type { SnapLine } from "./snapping";
20
20
  import type { Merge, MaybePromise, ValueOf } from "./utility-types";
21
- import { ColorPaletteCustom } from "./colors";
21
+ import type { ColorPaletteCustom } from "./colors";
22
22
  import type { StoreActionType } from "./store";
23
23
  export type Point = Readonly<RoughPoint>;
24
24
  export type SocketId = string & {
@@ -36,7 +36,7 @@ export { getCommonBoundingBox } from "../excalidraw/element/bounds";
36
36
  export { getMaximumGroups } from "../excalidraw/groups";
37
37
  export { intersectElementWithLine } from "../excalidraw/element/binding";
38
38
  export { determineFocusDistance } from "../excalidraw/element/binding";
39
- export { measureText, wrapText, } from "../excalidraw/element/textElement";
39
+ export { measureText, wrapText } from "../excalidraw/element/textElement";
40
40
  export { getLineHeight } from "../excalidraw/fonts/index";
41
41
  export { getFontString, getFontFamilyString } from "../excalidraw/utils";
42
42
  export { getBoundTextMaxWidth } from "../excalidraw/element/textElement";