@zsviczian/excalidraw 0.17.6-31 → 0.17.6-32

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.6-31",
3
+ "version": "0.17.6-32",
4
4
  "main": "main.js",
5
5
  "types": "types/excalidraw/index.d.ts",
6
6
  "files": [
@@ -91,6 +91,7 @@
91
91
  "@types/pako": "1.0.3",
92
92
  "@types/pica": "5.1.3",
93
93
  "@types/resize-observer-browser": "0.1.7",
94
+ "ansicolor": "2.0.3",
94
95
  "autoprefixer": "10.4.7",
95
96
  "babel-loader": "8.2.5",
96
97
  "babel-plugin-transform-class-properties": "6.24.1",
@@ -324,3 +324,5 @@ export declare const ARROW_TYPE: {
324
324
  };
325
325
  export declare const DEFAULT_REDUCED_GLOBAL_ALPHA = 0.3;
326
326
  export declare const ELEMENT_LINK_KEY = "element";
327
+ /** used in tests */
328
+ export declare const ORIG_ID: unique symbol;
@@ -71,11 +71,6 @@ export declare const newImageElement: (opts: {
71
71
  * Typed arrays and other non-null objects.
72
72
  */
73
73
  export declare const deepCopyElement: <T extends ExcalidrawElement>(val: T) => Mutable<T>;
74
- /**
75
- * utility wrapper to generate new id. In test env it reuses the old + postfix
76
- * for test assertions.
77
- */
78
- export declare const regenerateId: (previousId: string | null) => string;
79
74
  /**
80
75
  * Duplicate an element, often used in the alt-drag operation.
81
76
  * Note that this method has gotten a bit complicated since the
@@ -29,3 +29,4 @@ export type MakeBrand<T extends string> = {
29
29
  };
30
30
  /** Maybe just promise or already fulfilled one! */
31
31
  export type MaybePromise<T> = T | Promise<T>;
32
+ export type AllPossibleKeys<T> = T extends any ? keyof T : never;
@@ -252,4 +252,5 @@ export declare class PromisePool<T> {
252
252
  * the attribute is double-quoted when constructing the HTML string
253
253
  */
254
254
  export declare const escapeDoubleQuotes: (str: string) => string;
255
+ export declare const castArray: <T>(value: T | T[]) => T[];
255
256
  export {};