@excalidraw/excalidraw 0.16.1-7255-b963098 → 0.16.1-7255-f3c0574
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/dist/excalidraw-assets-dev/{vendor-f6d4e577681bbeca94c8.js → vendor-c9d3ded027e95aa8800f.js} +2 -2
- package/dist/excalidraw-with-preact.development.js +5883 -0
- package/dist/excalidraw-with-preact.production.min.js +1 -1
- package/dist/excalidraw.development.js +134 -145
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -10
- package/main.js +7 -2
- package/package.json +2 -2
- package/types/packages/excalidraw/dist/excalidraw-with-preact.development.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
- package/types/packages/excalidraw/webpack.preact.config.d.ts +171 -0
- package/types/packages/excalidraw/webpack.preact.prod.config.d.ts +0 -118
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-f6d4e577681bbeca94c8.d.ts → vendor-c9d3ded027e95aa8800f.d.ts} +0 -0
|
@@ -1,15 +1,5 @@
|
|
|
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
|
-
|
|
13
3
|
/**
|
|
14
4
|
* @license React
|
|
15
5
|
* use-sync-external-store-shim.production.min.js
|
package/main.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
console.log(window.IS_PREACT, "PREACT");
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
if (window.IS_PREACT === "true") {
|
|
4
|
+
if (process.env.NODE_ENV === "production") {
|
|
5
|
+
module.exports = require("./dist/excalidraw-with-preact.production.min.js");
|
|
6
|
+
} else {
|
|
7
|
+
module.exports = require("./dist/excalidraw-with-preact.development.js");
|
|
8
|
+
}
|
|
4
9
|
} else if (process.env.NODE_ENV === "production") {
|
|
5
10
|
module.exports = require("./dist/excalidraw.production.min.js");
|
|
6
11
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@excalidraw/excalidraw",
|
|
3
|
-
"version": "0.16.1-7255-
|
|
3
|
+
"version": "0.16.1-7255-f3c0574",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/packages/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"homepage": "https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw",
|
|
79
79
|
"scripts": {
|
|
80
80
|
"gen:types": "tsc --project ../../../tsconfig-types.json",
|
|
81
|
-
"build:umd": "rm -rf dist && cross-env NODE_ENV=production webpack --config webpack.prod.config.js && cross-env NODE_ENV=development webpack --config webpack.dev.config.js && NODE_ENV=
|
|
81
|
+
"build:umd": "rm -rf dist && cross-env NODE_ENV=production webpack --config webpack.prod.config.js && cross-env NODE_ENV=development webpack --config webpack.dev.config.js && NODE_ENV=development webpack --config webpack.preact.config.js && NODE_ENV=production webpack --config webpack.preact.config.js && yarn gen:types",
|
|
82
82
|
"build:umd:withAnalyzer": "cross-env NODE_ENV=production ANALYZER=true webpack --config webpack.prod.config.js",
|
|
83
83
|
"pack": "yarn build:umd && yarn pack",
|
|
84
84
|
"start": "webpack serve --config webpack.dev-server.config.js",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export =
|
|
2
|
-
export =
|
|
1
|
+
export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
|
|
2
|
+
export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
mode: string;
|
|
3
|
+
devtool: boolean;
|
|
4
|
+
entry: {
|
|
5
|
+
"excalidraw.development": string;
|
|
6
|
+
};
|
|
7
|
+
output: {
|
|
8
|
+
path: string;
|
|
9
|
+
library: string;
|
|
10
|
+
libraryTarget: string;
|
|
11
|
+
filename: string;
|
|
12
|
+
chunkFilename: string;
|
|
13
|
+
assetModuleFilename: string;
|
|
14
|
+
publicPath: string;
|
|
15
|
+
};
|
|
16
|
+
resolve: {
|
|
17
|
+
extensions: string[];
|
|
18
|
+
};
|
|
19
|
+
module: {
|
|
20
|
+
rules: ({
|
|
21
|
+
test: RegExp;
|
|
22
|
+
exclude: RegExp;
|
|
23
|
+
use: (string | {
|
|
24
|
+
loader: string;
|
|
25
|
+
} | {
|
|
26
|
+
loader: string;
|
|
27
|
+
options: {
|
|
28
|
+
postcssOptions: {
|
|
29
|
+
plugins: (import("postcss").Plugin & import("autoprefixer").ExportedAPI)[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
})[];
|
|
33
|
+
} | {
|
|
34
|
+
test: RegExp;
|
|
35
|
+
resolve: {
|
|
36
|
+
fullySpecified: boolean;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
test: RegExp;
|
|
40
|
+
exclude: RegExp;
|
|
41
|
+
use: ({
|
|
42
|
+
loader: string;
|
|
43
|
+
} | {
|
|
44
|
+
loader: string;
|
|
45
|
+
options: {
|
|
46
|
+
transpileOnly: boolean;
|
|
47
|
+
configFile: string;
|
|
48
|
+
};
|
|
49
|
+
})[];
|
|
50
|
+
} | {
|
|
51
|
+
test: RegExp;
|
|
52
|
+
type: string;
|
|
53
|
+
})[];
|
|
54
|
+
};
|
|
55
|
+
optimization: {
|
|
56
|
+
splitChunks: {
|
|
57
|
+
chunks: string;
|
|
58
|
+
cacheGroups: {
|
|
59
|
+
vendors: {
|
|
60
|
+
test: RegExp;
|
|
61
|
+
name: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
plugins: (import("webpack").EvalSourceMapDevToolPlugin | import("webpack").DefinePlugin)[];
|
|
67
|
+
externals: {
|
|
68
|
+
react: {
|
|
69
|
+
root: string;
|
|
70
|
+
commonjs2: string;
|
|
71
|
+
commonjs: string;
|
|
72
|
+
amd: string;
|
|
73
|
+
};
|
|
74
|
+
"react-dom": {
|
|
75
|
+
root: string;
|
|
76
|
+
commonjs2: string;
|
|
77
|
+
commonjs: string;
|
|
78
|
+
amd: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
mode: string;
|
|
83
|
+
entry: {
|
|
84
|
+
"excalidraw.production.min": string;
|
|
85
|
+
};
|
|
86
|
+
output: {
|
|
87
|
+
path: string;
|
|
88
|
+
library: string;
|
|
89
|
+
libraryTarget: string;
|
|
90
|
+
filename: string;
|
|
91
|
+
chunkFilename: string;
|
|
92
|
+
assetModuleFilename: string;
|
|
93
|
+
publicPath: string;
|
|
94
|
+
};
|
|
95
|
+
resolve: {
|
|
96
|
+
extensions: string[];
|
|
97
|
+
};
|
|
98
|
+
module: {
|
|
99
|
+
rules: ({
|
|
100
|
+
test: RegExp;
|
|
101
|
+
exclude: RegExp;
|
|
102
|
+
use: (string | {
|
|
103
|
+
loader: string;
|
|
104
|
+
} | {
|
|
105
|
+
loader: string;
|
|
106
|
+
options: {
|
|
107
|
+
postcssOptions: {
|
|
108
|
+
plugins: (import("postcss").Plugin & import("autoprefixer").ExportedAPI)[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
})[];
|
|
112
|
+
} | {
|
|
113
|
+
test: RegExp;
|
|
114
|
+
resolve: {
|
|
115
|
+
fullySpecified: boolean;
|
|
116
|
+
};
|
|
117
|
+
} | {
|
|
118
|
+
test: RegExp;
|
|
119
|
+
exclude: RegExp;
|
|
120
|
+
use: ({
|
|
121
|
+
loader: string;
|
|
122
|
+
} | {
|
|
123
|
+
loader: string;
|
|
124
|
+
options: {
|
|
125
|
+
transpileOnly: boolean;
|
|
126
|
+
configFile: string;
|
|
127
|
+
};
|
|
128
|
+
} | {
|
|
129
|
+
loader: string;
|
|
130
|
+
options: {
|
|
131
|
+
presets: (string | (string | {
|
|
132
|
+
runtime: string;
|
|
133
|
+
})[])[];
|
|
134
|
+
plugins: string[];
|
|
135
|
+
};
|
|
136
|
+
})[];
|
|
137
|
+
} | {
|
|
138
|
+
test: RegExp;
|
|
139
|
+
type: string;
|
|
140
|
+
})[];
|
|
141
|
+
};
|
|
142
|
+
optimization: {
|
|
143
|
+
minimize: boolean;
|
|
144
|
+
minimizer: import("terser-webpack-plugin")<import("terser").MinifyOptions>[];
|
|
145
|
+
splitChunks: {
|
|
146
|
+
chunks: string;
|
|
147
|
+
cacheGroups: {
|
|
148
|
+
vendors: {
|
|
149
|
+
test: RegExp;
|
|
150
|
+
name: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
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
|
+
};
|
|
171
|
+
export = _exports;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import autoprefixer = require("autoprefixer");
|
|
2
|
-
import TerserPlugin = require("terser-webpack-plugin");
|
|
3
|
-
export const mode: string;
|
|
4
|
-
export const entry: {
|
|
5
|
-
"excalidraw-with-preact.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;
|
|
26
|
-
} | {
|
|
27
|
-
loader: string;
|
|
28
|
-
options: {
|
|
29
|
-
postcssOptions: {
|
|
30
|
-
plugins: (import("postcss").Plugin & autoprefixer.ExportedAPI)[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
})[];
|
|
34
|
-
resolve?: undefined;
|
|
35
|
-
type?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
test: RegExp;
|
|
38
|
-
resolve: {
|
|
39
|
-
fullySpecified: boolean;
|
|
40
|
-
};
|
|
41
|
-
exclude?: undefined;
|
|
42
|
-
use?: undefined;
|
|
43
|
-
type?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
test: RegExp;
|
|
46
|
-
exclude: RegExp;
|
|
47
|
-
use: ({
|
|
48
|
-
loader: string;
|
|
49
|
-
options?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
loader: string;
|
|
52
|
-
options: {
|
|
53
|
-
transpileOnly: boolean;
|
|
54
|
-
configFile: string;
|
|
55
|
-
presets?: undefined;
|
|
56
|
-
plugins?: undefined;
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
loader: string;
|
|
60
|
-
options: {
|
|
61
|
-
presets: (string | (string | {
|
|
62
|
-
runtime: string;
|
|
63
|
-
})[])[];
|
|
64
|
-
plugins: string[];
|
|
65
|
-
transpileOnly?: undefined;
|
|
66
|
-
configFile?: undefined;
|
|
67
|
-
};
|
|
68
|
-
})[];
|
|
69
|
-
resolve?: undefined;
|
|
70
|
-
type?: undefined;
|
|
71
|
-
} | {
|
|
72
|
-
test: RegExp;
|
|
73
|
-
type: string;
|
|
74
|
-
exclude?: undefined;
|
|
75
|
-
use?: undefined;
|
|
76
|
-
resolve?: undefined;
|
|
77
|
-
})[];
|
|
78
|
-
}
|
|
79
|
-
export namespace optimization {
|
|
80
|
-
const minimize: boolean;
|
|
81
|
-
const minimizer: TerserPlugin<import("terser").MinifyOptions>[];
|
|
82
|
-
namespace splitChunks {
|
|
83
|
-
const chunks: string;
|
|
84
|
-
namespace cacheGroups {
|
|
85
|
-
namespace vendors {
|
|
86
|
-
const test: RegExp;
|
|
87
|
-
const name: string;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
export const plugins: any[];
|
|
93
|
-
export const externals: {
|
|
94
|
-
react: {
|
|
95
|
-
root: string;
|
|
96
|
-
commonjs2: string;
|
|
97
|
-
commonjs: string;
|
|
98
|
-
amd: string;
|
|
99
|
-
};
|
|
100
|
-
"react-dom": {
|
|
101
|
-
root: string;
|
|
102
|
-
commonjs2: string;
|
|
103
|
-
commonjs: string;
|
|
104
|
-
amd: string;
|
|
105
|
-
};
|
|
106
|
-
"react-dom/client": {
|
|
107
|
-
root: string;
|
|
108
|
-
commonjs2: string;
|
|
109
|
-
commonjs: string;
|
|
110
|
-
amd: string;
|
|
111
|
-
};
|
|
112
|
-
"react/jsx-runtime": {
|
|
113
|
-
root: string;
|
|
114
|
-
commonjs2: string;
|
|
115
|
-
commonjs: string;
|
|
116
|
-
amd: string;
|
|
117
|
-
};
|
|
118
|
-
};
|