@zsviczian/excalidraw 0.12.0-obsidian-8 → 0.12.0-obsidian-10

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 (94) hide show
  1. package/README.md +10 -4
  2. package/dist/excalidraw.development.js +380 -488
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -9
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +3 -3
  7. package/types/actions/actionBoundText.d.ts +1 -1
  8. package/types/actions/actionCanvas.d.ts +14 -14
  9. package/types/actions/actionClipboard.d.ts +6 -6
  10. package/types/actions/actionDeleteSelected.d.ts +4 -4
  11. package/types/actions/actionExport.d.ts +10 -10
  12. package/types/actions/actionFinalize.d.ts +2 -2
  13. package/types/actions/actionLinearEditor.d.ts +121 -0
  14. package/types/actions/actionMenu.d.ts +3 -3
  15. package/types/actions/actionProperties.d.ts +13 -13
  16. package/types/actions/actionStyles.d.ts +1 -1
  17. package/types/actions/actionToggleGridMode.d.ts +1 -1
  18. package/types/actions/actionToggleLock.d.ts +1 -1
  19. package/types/actions/actionToggleStats.d.ts +1 -1
  20. package/types/actions/actionToggleViewMode.d.ts +1 -1
  21. package/types/actions/actionToggleZenMode.d.ts +1 -1
  22. package/types/actions/index.d.ts +1 -0
  23. package/types/actions/types.d.ts +1 -1
  24. package/types/appState.d.ts +1 -1
  25. package/types/components/Actions.d.ts +2 -2
  26. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +1 -6
  27. package/types/components/InitializeApp.d.ts +2 -0
  28. package/types/components/LayerUI.d.ts +1 -2
  29. package/types/components/LoadingMessage.d.ts +2 -0
  30. package/types/components/MobileMenu.d.ts +1 -2
  31. package/types/constants.d.ts +16 -1
  32. package/types/data/blob.d.ts +1 -1
  33. package/types/element/Hyperlink.d.ts +1 -1
  34. package/types/element/image.d.ts +1 -1
  35. package/types/element/linearElementEditor.d.ts +19 -8
  36. package/types/element/newElement.d.ts +6 -1
  37. package/types/element/textElement.d.ts +6 -2
  38. package/types/element/types.d.ts +2 -2
  39. package/types/math.d.ts +8 -1
  40. package/types/packages/common.webpack.dev.config.d.ts +71 -0
  41. package/types/packages/common.webpack.prod.config.d.ts +83 -0
  42. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-4ff31c0432fe4c84d726.d.ts +0 -0
  43. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-1c6eb789a5c90a61edf8.d.ts +0 -0
  44. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-906099d3f665de611389.d.ts +0 -0
  45. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-7f3f0a2c7f428fa60e01.d.ts +0 -0
  46. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-304d08cac870aa0684ec.d.ts +0 -0
  47. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-80c7153473e1427a9a3b.d.ts +0 -0
  48. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-9b88838b2648d7d61f1b.d.ts +0 -0
  49. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-18ce48894d32ca4895b8.d.ts +0 -0
  50. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-69a6c81b0e5dc370ea1a.d.ts +0 -0
  51. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-a61838a778c9eacb61ec.d.ts +0 -0
  52. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-2d0cb1044744ed8e4139.d.ts +0 -0
  53. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-32bcb6481756ef8af590.d.ts +0 -0
  54. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-935424b03b86c1d82dcd.d.ts +0 -0
  55. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-5b417484d91976bce190.d.ts +0 -0
  56. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-3f5bfefb1ad0baf19b6c.d.ts +0 -0
  57. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-71a38dbb2202baec2bad.d.ts +0 -0
  58. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-e1275f2b1e6ae6ef4427.d.ts +0 -0
  59. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-da38cd847aaf195c3c20.d.ts +0 -0
  60. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-10923c290e23bd31a5b4.d.ts +0 -0
  61. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-4c357f8206b88dc44840.d.ts +0 -0
  62. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-8303afee283a95237f2b.d.ts +0 -0
  63. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-ccf0876179807d1d685a.d.ts +0 -0
  64. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-8e7ae1bb19a7677a8190.d.ts +0 -0
  65. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-4147c3543dce75362050.d.ts +0 -0
  66. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-cc5e03ed2a09f8f8b60b.d.ts +0 -0
  67. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-cb316f30d7b40d3e6766.d.ts +0 -0
  68. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-5dcc8e9cb97a4aa1d8bc.d.ts +0 -0
  69. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-61192c4af6e2231d38ae.d.ts +0 -0
  70. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-861ac93c048b5296b791.d.ts +0 -0
  71. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-808362c0cd4eccb6a885.d.ts +0 -0
  72. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-d5706569ab4023f94c66.d.ts +0 -0
  73. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-eb38ce8bfc1b974c1455.d.ts +0 -0
  74. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-55d8dd8a44917364ef63.d.ts +0 -0
  75. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-4ffa2f70c2863bca4f91.d.ts +0 -0
  76. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-4368eca89d2b2b3fb444.d.ts +0 -0
  77. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-232ea1e0c18745ec6ed9.d.ts +0 -0
  78. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-ce5fedd8812aa76a0b41.d.ts +0 -0
  79. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-f48a64dfd1cb9c075d2e.d.ts +0 -0
  80. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-537132ec043d4db7f328.d.ts +0 -0
  81. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-b69c9fd9b85dac1310c6.d.ts +0 -0
  82. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-9a8520b202b7181625cf.d.ts +0 -0
  83. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-15175d03785f7a482568.d.ts +0 -0
  84. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-c53ae37e848043dd0b89.d.ts +0 -0
  85. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-15fda426e55236408ef9.d.ts +0 -0
  86. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-929afcbc15b2c06a64f2.d.ts +0 -0
  87. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-a670f2b6ddaac05b44fb.d.ts +0 -0
  88. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-9e8b36ecb4c8399449b1.d.ts +0 -0
  89. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-441a30840e0721d7f2e2.d.ts +0 -0
  90. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e516a81320b8c48e3114.d.ts +0 -0
  91. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -2
  92. package/types/packages/excalidraw/webpack.dev.config.d.ts +61 -82
  93. package/types/packages/excalidraw/webpack.prod.config.d.ts +70 -85
  94. package/types/types.d.ts +1 -1
@@ -1,2 +1,4 @@
1
- export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
2
- export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
1
+ declare const _exports: any;
2
+ export = _exports;
3
+ export const __esModule: boolean;
4
+ export const ExcalidrawLib: {};
@@ -1,89 +1,68 @@
1
- import autoprefixer = require("autoprefixer");
2
- export const mode: string;
3
- export const entry: {
4
- "excalidraw.development": string;
5
- };
6
- export namespace output {
7
- const path: string;
8
- const library: string;
9
- const libraryTarget: string;
10
- const filename: string;
11
- const chunkFilename: string;
12
- const assetModuleFilename: string;
13
- const publicPath: string;
14
- }
15
- export namespace resolve {
16
- const extensions: string[];
17
- }
18
- export namespace module {
19
- const rules: ({
20
- test: RegExp;
21
- exclude: RegExp;
22
- use: (string | {
23
- loader: string;
24
- options?: undefined;
1
+ declare const _exports: {
2
+ mode: string;
3
+ devtool: boolean;
4
+ output: {
5
+ libraryTarget: string;
6
+ filename: string;
7
+ publicPath: string;
8
+ };
9
+ resolve: {
10
+ extensions: string[];
11
+ };
12
+ module: {
13
+ rules: ({
14
+ test: RegExp;
15
+ exclude: RegExp;
16
+ use: (string | {
17
+ loader: string;
18
+ } | {
19
+ loader: string;
20
+ options: {
21
+ postcssOptions: {
22
+ plugins: any[];
23
+ };
24
+ };
25
+ })[];
25
26
  } | {
26
- loader: string;
27
- options: {
28
- postcssOptions: {
29
- plugins: (import("postcss").Plugin & autoprefixer.ExportedAPI)[];
27
+ test: RegExp;
28
+ exclude: RegExp;
29
+ use: {
30
+ loader: string;
31
+ options: {
32
+ transpileOnly: boolean;
33
+ configFile: string;
30
34
  };
31
- };
32
- })[];
33
- type?: undefined;
34
- } | {
35
- test: RegExp;
36
- exclude: RegExp;
37
- use: ({
38
- loader: string;
39
- options: {
40
- transpileOnly: boolean;
41
- configFile: string;
42
- presets?: undefined;
43
- plugins?: undefined;
44
- };
35
+ }[];
45
36
  } | {
46
- loader: string;
47
- options: {
48
- presets: (string | (string | {
49
- runtime: string;
50
- })[])[];
51
- plugins: string[];
52
- transpileOnly?: undefined;
53
- configFile?: undefined;
54
- };
37
+ test: RegExp;
38
+ type: string;
55
39
  })[];
56
- type?: undefined;
57
- } | {
58
- test: RegExp;
59
- type: string;
60
- exclude?: undefined;
61
- use?: undefined;
62
- })[];
63
- }
64
- export namespace optimization {
65
- namespace splitChunks {
66
- const chunks: string;
67
- namespace cacheGroups {
68
- namespace vendors {
69
- const test: RegExp;
70
- const name: string;
71
- }
72
- }
73
- }
74
- }
75
- export const plugins: any[];
76
- export const externals: {
77
- react: {
78
- root: string;
79
- commonjs2: string;
80
- commonjs: string;
81
- amd: string;
82
40
  };
83
- "react-dom": {
84
- root: string;
85
- commonjs2: string;
86
- commonjs: string;
87
- amd: string;
41
+ optimization: {
42
+ splitChunks: {
43
+ chunks: string;
44
+ cacheGroups: {
45
+ vendors: {
46
+ test: RegExp;
47
+ name: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ plugins: (import("webpack").EvalSourceMapDevToolPlugin | import("webpack").DefinePlugin)[];
53
+ externals: {
54
+ react: {
55
+ root: string;
56
+ commonjs2: string;
57
+ commonjs: string;
58
+ amd: string;
59
+ };
60
+ "react-dom": {
61
+ root: string;
62
+ commonjs2: string;
63
+ commonjs: string;
64
+ amd: string;
65
+ };
88
66
  };
89
67
  };
68
+ export = _exports;
@@ -1,92 +1,77 @@
1
- import autoprefixer = require("autoprefixer");
2
- import TerserPlugin = require("terser-webpack-plugin");
3
- export const mode: string;
4
- export const entry: {
5
- "excalidraw.production.min": string;
6
- };
7
- export namespace output {
8
- const path: string;
9
- const library: string;
10
- const libraryTarget: string;
11
- const filename: string;
12
- const chunkFilename: string;
13
- const assetModuleFilename: string;
14
- const publicPath: string;
15
- }
16
- export namespace resolve {
17
- const extensions: string[];
18
- }
19
- export namespace module {
20
- const rules: ({
21
- test: RegExp;
22
- exclude: RegExp;
23
- use: (string | {
24
- loader: string;
25
- options?: undefined;
1
+ declare const _exports: {
2
+ mode: string;
3
+ output: {
4
+ libraryTarget: string;
5
+ filename: string;
6
+ publicPath: string;
7
+ };
8
+ resolve: {
9
+ extensions: string[];
10
+ };
11
+ module: {
12
+ rules: ({
13
+ test: RegExp;
14
+ exclude: RegExp;
15
+ use: (string | {
16
+ loader: string;
17
+ } | {
18
+ loader: string;
19
+ options: {
20
+ postcssOptions: {
21
+ plugins: any[];
22
+ };
23
+ };
24
+ })[];
26
25
  } | {
27
- loader: string;
28
- options: {
29
- postcssOptions: {
30
- plugins: (import("postcss").Plugin & autoprefixer.ExportedAPI)[];
26
+ test: RegExp;
27
+ exclude: RegExp;
28
+ use: ({
29
+ loader: string;
30
+ options: {
31
+ transpileOnly: boolean;
32
+ configFile: string;
31
33
  };
32
- };
33
- })[];
34
- type?: undefined;
35
- } | {
36
- test: RegExp;
37
- exclude: RegExp;
38
- use: ({
39
- loader: string;
40
- options: {
41
- transpileOnly: boolean;
42
- configFile: string;
43
- presets?: undefined;
44
- plugins?: undefined;
45
- };
34
+ } | {
35
+ loader: string;
36
+ options: {
37
+ presets: (string | (string | {
38
+ runtime: string;
39
+ })[])[];
40
+ plugins: string[];
41
+ };
42
+ })[];
46
43
  } | {
47
- loader: string;
48
- options: {
49
- presets: (string | (string | {
50
- runtime: string;
51
- })[])[];
52
- plugins: string[];
53
- transpileOnly?: undefined;
54
- configFile?: undefined;
55
- };
44
+ test: RegExp;
45
+ type: string;
56
46
  })[];
57
- type?: undefined;
58
- } | {
59
- test: RegExp;
60
- type: string;
61
- exclude?: undefined;
62
- use?: undefined;
63
- })[];
64
- }
65
- export namespace optimization {
66
- const minimize: boolean;
67
- const minimizer: TerserPlugin<import("terser").MinifyOptions>[];
68
- namespace splitChunks {
69
- const chunks: string;
70
- namespace cacheGroups {
71
- namespace vendors {
72
- const test: RegExp;
73
- const name: string;
74
- }
75
- }
76
- }
77
- }
78
- export const plugins: any[];
79
- export const externals: {
80
- react: {
81
- root: string;
82
- commonjs2: string;
83
- commonjs: string;
84
- amd: string;
85
47
  };
86
- "react-dom": {
87
- root: string;
88
- commonjs2: string;
89
- commonjs: string;
90
- amd: string;
48
+ optimization: {
49
+ minimize: boolean;
50
+ minimizer: any[];
51
+ splitChunks: {
52
+ chunks: string;
53
+ cacheGroups: {
54
+ vendors: {
55
+ test: RegExp;
56
+ name: string;
57
+ };
58
+ };
59
+ };
60
+ };
61
+ plugins: any[];
62
+ externals: {
63
+ react: {
64
+ root: string;
65
+ commonjs2: string;
66
+ commonjs: string;
67
+ amd: string;
68
+ };
69
+ "react-dom": {
70
+ root: string;
71
+ commonjs2: string;
72
+ commonjs: string;
73
+ amd: string;
74
+ };
91
75
  };
92
76
  };
77
+ export = _exports;
package/types/types.d.ts CHANGED
@@ -274,7 +274,7 @@ declare type CanvasActions = {
274
274
  export?: false | ExportOpts;
275
275
  loadScene?: boolean;
276
276
  saveToActiveFile?: boolean;
277
- theme?: boolean;
277
+ toggleTheme?: boolean | null;
278
278
  saveAsImage?: boolean;
279
279
  };
280
280
  export declare type AppProps = Merge<ExcalidrawProps, {