@excalidraw/excalidraw 0.17.2 → 0.17.4

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.
@@ -1,5 +1,15 @@
1
1
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
2
 
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+
3
13
  /**
4
14
  * @license React
5
15
  * use-sync-external-store-shim.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -6,6 +6,9 @@ type EmbeddedLink = ({
6
6
  h: number;
7
7
  };
8
8
  warning?: string;
9
+ sandbox?: {
10
+ allowSameOrigin?: boolean;
11
+ };
9
12
  } & ({
10
13
  type: "video" | "generic";
11
14
  link: string;
@@ -1,7 +1,7 @@
1
1
  import { ExcalidrawElement, ExcalidrawImageElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawGenericElement, NonDeleted, TextAlign, GroupId, VerticalAlign, Arrowhead, ExcalidrawFreeDrawElement, FontFamilyValues, ExcalidrawTextContainer, ExcalidrawFrameElement, ExcalidrawEmbeddableElement } from "../element/types";
2
2
  import { AppState } from "../types";
3
3
  import { MarkOptional, Mutable } from "../utility-types";
4
- export type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted" | "updated">, "width" | "height" | "angle" | "groupIds" | "frameId" | "boundElements" | "seed" | "version" | "versionNonce" | "link" | "strokeStyle" | "fillStyle" | "strokeColor" | "backgroundColor" | "roughness" | "strokeWidth" | "roundness" | "locked" | "opacity">;
4
+ export type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted" | "updated">, "width" | "height" | "angle" | "groupIds" | "frameId" | "boundElements" | "seed" | "version" | "versionNonce" | "link" | "strokeStyle" | "fillStyle" | "strokeColor" | "backgroundColor" | "roughness" | "strokeWidth" | "roundness" | "locked" | "opacity" | "customData">;
5
5
  export declare const newElement: (opts: {
6
6
  type: ExcalidrawGenericElement["type"];
7
7
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawGenericElement>;
@@ -1,2 +1,2 @@
1
- export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
2
- export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
1
+ export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
2
+ export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
@@ -1,9 +1,61 @@
1
- declare const _exports: {
2
- mode: string;
3
- devtool: boolean;
1
+ export = preactWebpackConfig;
2
+ declare const preactWebpackConfig: {
4
3
  entry: {
5
- "excalidraw.development": string;
4
+ [x: string]: string;
6
5
  };
6
+ externals: {
7
+ "react-dom/client": {
8
+ root: string;
9
+ commonjs2: string;
10
+ commonjs: string;
11
+ amd: string;
12
+ };
13
+ "react/jsx-runtime": {
14
+ root: string;
15
+ commonjs2: string;
16
+ commonjs: string;
17
+ amd: string;
18
+ };
19
+ react: {
20
+ root: string;
21
+ commonjs2: string;
22
+ commonjs: string;
23
+ amd: string;
24
+ };
25
+ "react-dom": {
26
+ root: string;
27
+ commonjs2: string;
28
+ commonjs: string;
29
+ amd: string;
30
+ };
31
+ } | {
32
+ "react-dom/client": {
33
+ root: string;
34
+ commonjs2: string;
35
+ commonjs: string;
36
+ amd: string;
37
+ };
38
+ "react/jsx-runtime": {
39
+ root: string;
40
+ commonjs2: string;
41
+ commonjs: string;
42
+ amd: string;
43
+ };
44
+ react: {
45
+ root: string;
46
+ commonjs2: string;
47
+ commonjs: string;
48
+ amd: string;
49
+ };
50
+ "react-dom": {
51
+ root: string;
52
+ commonjs2: string;
53
+ commonjs: string;
54
+ amd: string;
55
+ };
56
+ };
57
+ mode: string;
58
+ devtool: boolean;
7
59
  output: {
8
60
  path: string;
9
61
  library: string;
@@ -22,6 +74,7 @@ declare const _exports: {
22
74
  exclude: RegExp;
23
75
  use: (string | {
24
76
  loader: string;
77
+ options?: undefined;
25
78
  } | {
26
79
  loader: string;
27
80
  options: {
@@ -30,16 +83,22 @@ declare const _exports: {
30
83
  };
31
84
  };
32
85
  })[];
86
+ resolve?: undefined;
87
+ type?: undefined;
33
88
  } | {
34
89
  test: RegExp;
35
90
  resolve: {
36
91
  fullySpecified: boolean;
37
92
  };
93
+ exclude?: undefined;
94
+ use?: undefined;
95
+ type?: undefined;
38
96
  } | {
39
97
  test: RegExp;
40
98
  exclude: RegExp;
41
99
  use: ({
42
100
  loader: string;
101
+ options?: undefined;
43
102
  } | {
44
103
  loader: string;
45
104
  options: {
@@ -47,9 +106,14 @@ declare const _exports: {
47
106
  configFile: string;
48
107
  };
49
108
  })[];
109
+ resolve?: undefined;
110
+ type?: undefined;
50
111
  } | {
51
112
  test: RegExp;
52
113
  type: string;
114
+ exclude?: undefined;
115
+ use?: undefined;
116
+ resolve?: undefined;
53
117
  })[];
54
118
  };
55
119
  optimization: {
@@ -62,9 +126,52 @@ declare const _exports: {
62
126
  };
63
127
  };
64
128
  };
129
+ minimize?: undefined;
130
+ minimizer?: undefined;
65
131
  };
66
132
  plugins: (import("webpack").EvalSourceMapDevToolPlugin | import("webpack").DefinePlugin)[];
133
+ } | {
134
+ entry: {
135
+ [x: string]: string;
136
+ };
67
137
  externals: {
138
+ "react-dom/client": {
139
+ root: string;
140
+ commonjs2: string;
141
+ commonjs: string;
142
+ amd: string;
143
+ };
144
+ "react/jsx-runtime": {
145
+ root: string;
146
+ commonjs2: string;
147
+ commonjs: string;
148
+ amd: string;
149
+ };
150
+ react: {
151
+ root: string;
152
+ commonjs2: string;
153
+ commonjs: string;
154
+ amd: string;
155
+ };
156
+ "react-dom": {
157
+ root: string;
158
+ commonjs2: string;
159
+ commonjs: string;
160
+ amd: string;
161
+ };
162
+ } | {
163
+ "react-dom/client": {
164
+ root: string;
165
+ commonjs2: string;
166
+ commonjs: string;
167
+ amd: string;
168
+ };
169
+ "react/jsx-runtime": {
170
+ root: string;
171
+ commonjs2: string;
172
+ commonjs: string;
173
+ amd: string;
174
+ };
68
175
  react: {
69
176
  root: string;
70
177
  commonjs2: string;
@@ -78,11 +185,7 @@ declare const _exports: {
78
185
  amd: string;
79
186
  };
80
187
  };
81
- } | {
82
188
  mode: string;
83
- entry: {
84
- "excalidraw.production.min": string;
85
- };
86
189
  output: {
87
190
  path: string;
88
191
  library: string;
@@ -101,6 +204,7 @@ declare const _exports: {
101
204
  exclude: RegExp;
102
205
  use: (string | {
103
206
  loader: string;
207
+ options?: undefined;
104
208
  } | {
105
209
  loader: string;
106
210
  options: {
@@ -109,21 +213,29 @@ declare const _exports: {
109
213
  };
110
214
  };
111
215
  })[];
216
+ resolve?: undefined;
217
+ type?: undefined;
112
218
  } | {
113
219
  test: RegExp;
114
220
  resolve: {
115
221
  fullySpecified: boolean;
116
222
  };
223
+ exclude?: undefined;
224
+ use?: undefined;
225
+ type?: undefined;
117
226
  } | {
118
227
  test: RegExp;
119
228
  exclude: RegExp;
120
229
  use: ({
121
230
  loader: string;
231
+ options?: undefined;
122
232
  } | {
123
233
  loader: string;
124
234
  options: {
125
235
  transpileOnly: boolean;
126
236
  configFile: string;
237
+ presets?: undefined;
238
+ plugins?: undefined;
127
239
  };
128
240
  } | {
129
241
  loader: string;
@@ -132,11 +244,18 @@ declare const _exports: {
132
244
  runtime: string;
133
245
  })[])[];
134
246
  plugins: string[];
247
+ transpileOnly?: undefined;
248
+ configFile?: undefined;
135
249
  };
136
250
  })[];
251
+ resolve?: undefined;
252
+ type?: undefined;
137
253
  } | {
138
254
  test: RegExp;
139
255
  type: string;
256
+ exclude?: undefined;
257
+ use?: undefined;
258
+ resolve?: undefined;
140
259
  })[];
141
260
  };
142
261
  optimization: {
@@ -153,19 +272,4 @@ declare const _exports: {
153
272
  };
154
273
  };
155
274
  plugins: any[];
156
- externals: {
157
- react: {
158
- root: string;
159
- commonjs2: string;
160
- commonjs: string;
161
- amd: string;
162
- };
163
- "react-dom": {
164
- root: string;
165
- commonjs2: string;
166
- commonjs: string;
167
- amd: string;
168
- };
169
- };
170
275
  };
171
- export = _exports;