@zipify/wysiwyg 4.2.2 → 4.4.0-0
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/.release-it.json +1 -0
- package/config/build/cli.config.js +9 -6
- package/config/build/node.config.js +50 -0
- package/dist/cli.js +61 -24
- package/dist/node.js +40 -0
- package/dist/types/Wysiwyg.vue.d.ts +2 -2
- package/dist/types/composables/useEditor.d.ts +3 -4
- package/dist/types/entryLib.d.ts +1 -1
- package/dist/types/entryNode.d.ts +2 -0
- package/dist/types/node/NodeDomParser.d.ts +5 -0
- package/dist/types/node/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -2
- package/dist/types/utils/isWysiwygContent.d.ts +0 -5
- package/dist/wysiwyg.mjs +209 -367
- package/lib/cli/commands/ToJsonCommand.js +2 -2
- package/lib/composables/__tests__/__snapshots__/useEditor.test.js.snap +0 -1
- package/lib/composables/useEditor.ts +7 -14
- package/lib/entryLib.ts +1 -1
- package/lib/entryNode.ts +2 -0
- package/lib/node/NodeDomParser.ts +16 -0
- package/lib/node/index.ts +1 -0
- package/lib/utils/index.ts +1 -2
- package/lib/utils/isWysiwygContent.ts +1 -14
- package/package.json +20 -12
- package/lib/cli/NodeDomParser.js +0 -16
package/.release-it.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import resolve from '@rollup/plugin-node-resolve';
|
|
2
2
|
import esbuild from 'rollup-plugin-esbuild';
|
|
3
|
-
import
|
|
3
|
+
import { minify } from 'rollup-plugin-esbuild-minify';
|
|
4
4
|
import commonjs from '@rollup/plugin-commonjs';
|
|
5
5
|
import replace from '@rollup/plugin-replace';
|
|
6
6
|
import json from '@rollup/plugin-json';
|
|
@@ -8,18 +8,19 @@ import alias from '@rollup/plugin-alias';
|
|
|
8
8
|
import { resolvePath, isDevelopment, aliases } from './settings';
|
|
9
9
|
|
|
10
10
|
const productionPlugins = isDevelopment ? [] : [
|
|
11
|
-
|
|
11
|
+
minify({ minify: !isDevelopment })
|
|
12
12
|
];
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @type {import('rollup').RollupOptions}
|
|
16
|
+
*/
|
|
17
|
+
const config = {
|
|
15
18
|
input: resolvePath('./lib/entryCli.ts'),
|
|
16
19
|
|
|
17
20
|
output: {
|
|
18
21
|
file: resolvePath('./dist/cli.js'),
|
|
19
22
|
format: 'cjs',
|
|
20
|
-
plugins:
|
|
21
|
-
...productionPlugins
|
|
22
|
-
]
|
|
23
|
+
plugins: productionPlugins
|
|
23
24
|
},
|
|
24
25
|
|
|
25
26
|
plugins: [
|
|
@@ -44,3 +45,5 @@ export default {
|
|
|
44
45
|
|
|
45
46
|
external: ['jsdom']
|
|
46
47
|
};
|
|
48
|
+
|
|
49
|
+
export default config;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import esbuild from 'rollup-plugin-esbuild';
|
|
3
|
+
import { minify } from 'rollup-plugin-esbuild-minify';
|
|
4
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
5
|
+
import replace from '@rollup/plugin-replace';
|
|
6
|
+
import json from '@rollup/plugin-json';
|
|
7
|
+
import alias from '@rollup/plugin-alias';
|
|
8
|
+
import { resolvePath, isDevelopment, aliases } from './settings';
|
|
9
|
+
|
|
10
|
+
const productionPlugins = isDevelopment ? [] : [
|
|
11
|
+
minify({ minify: !isDevelopment })
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @type {import('rollup').RollupOptions}
|
|
16
|
+
*/
|
|
17
|
+
const config = {
|
|
18
|
+
input: resolvePath('./lib/entryNode.ts'),
|
|
19
|
+
|
|
20
|
+
output: {
|
|
21
|
+
file: resolvePath('./dist/node.js'),
|
|
22
|
+
format: 'cjs',
|
|
23
|
+
exports: 'auto',
|
|
24
|
+
plugins: productionPlugins
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
plugins: [
|
|
28
|
+
esbuild.default({
|
|
29
|
+
target: 'node20'
|
|
30
|
+
}),
|
|
31
|
+
replace({
|
|
32
|
+
preventAssignment: true,
|
|
33
|
+
values: { 'import.meta.glob': '(() => ({}))' }
|
|
34
|
+
}),
|
|
35
|
+
alias({
|
|
36
|
+
entries: aliases,
|
|
37
|
+
customResolver: resolve({
|
|
38
|
+
extensions: ['*', '.js', '.ts', '.json'],
|
|
39
|
+
preferBuiltins: true
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
resolve(),
|
|
43
|
+
commonjs({ ignore: ['canvas'] }),
|
|
44
|
+
json()
|
|
45
|
+
],
|
|
46
|
+
|
|
47
|
+
external: ['jsdom']
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default config;
|