@excalidraw/excalidraw 0.11.0-5346-59101a1 → 0.11.0-76a5bb0

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": "@excalidraw/excalidraw",
3
- "version": "0.11.0-5346-59101a1",
3
+ "version": "0.11.0-76a5bb0",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import "./Toast.scss";
3
- export declare const Toast: ({ message, clearToast, }: {
3
+ export declare const Toast: ({ message, clearToast, closable, duration, }: {
4
4
  message: string;
5
5
  clearToast: () => void;
6
+ closable?: boolean | undefined;
7
+ duration?: number | undefined;
6
8
  }) => JSX.Element;
@@ -96,7 +96,6 @@ export declare const IMAGE_RENDER_TIMEOUT = 500;
96
96
  export declare const TAP_TWICE_TIMEOUT = 300;
97
97
  export declare const TOUCH_CTX_MENU_TIMEOUT = 500;
98
98
  export declare const TITLE_TIMEOUT = 10000;
99
- export declare const TOAST_TIMEOUT = 5000;
100
99
  export declare const VERSION_TIMEOUT = 30000;
101
100
  export declare const SCROLL_TIMEOUT = 100;
102
101
  export declare const ZOOM_STEP = 0.1;
package/types/jotai.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { WritableAtom } from "jotai";
1
2
  export declare const jotaiScope: unique symbol;
2
3
  export declare const jotaiStore: {
3
4
  get: <Value>(atom: import("jotai").Atom<Value>) => (Value extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value) | undefined;
4
5
  asyncGet: <Value_1>(atom: import("jotai").Atom<Value_1>) => Promise<Value_1 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_1>;
5
- set: <Value_2, Update, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_2, Update, Result>, update: Update) => Result;
6
+ set: <Value_2, Update, Result extends void | Promise<void>>(atom: WritableAtom<Value_2, Update, Result>, update: Update) => Result;
6
7
  sub: (atom: {
7
8
  toString: () => string;
8
9
  debugLabel?: string | undefined;
@@ -14,7 +15,7 @@ export declare const jotaiStore: {
14
15
  }, callback: () => void) => () => void;
15
16
  SECRET_INTERNAL_store: {
16
17
  r: <Value_6>(readingAtom: import("jotai").Atom<Value_6>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_6>;
17
- w: <Value_1_1, Update_1, Result_1 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: import("jotai/core/store").VersionObject | undefined) => Result_1;
18
+ w: <Value_1_1, Update_1, Result_1 extends void | Promise<void>>(writingAtom: WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: import("jotai/core/store").VersionObject | undefined) => Result_1;
18
19
  c: (_atom: {
19
20
  toString: () => string;
20
21
  debugLabel?: string | undefined;
@@ -84,7 +85,7 @@ export declare const jotaiStore: {
84
85
  } | undefined;
85
86
  } | {
86
87
  r: <Value_7>(readingAtom: import("jotai").Atom<Value_7>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_7>;
87
- w: <Value_1_2, Update_2, Result_2 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: import("jotai/core/store").VersionObject | undefined) => Result_2;
88
+ w: <Value_1_2, Update_2, Result_2 extends void | Promise<void>>(writingAtom: WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: import("jotai/core/store").VersionObject | undefined) => Result_2;
88
89
  c: (_atom: {
89
90
  toString: () => string;
90
91
  debugLabel?: string | undefined;
@@ -118,3 +119,4 @@ export declare const jotaiStore: {
118
119
  m?: undefined;
119
120
  };
120
121
  };
122
+ export declare const useAtomWithInitialValue: <T extends unknown, A extends WritableAtom<T, T, void>>(atom: A, initialValue: T | (() => T)) => readonly [T extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : T, import("jotai/core/atom").SetAtom<T, void>];