@zipify/wysiwyg 3.3.0 → 3.4.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/dist/cli.js +3 -3
- package/dist/wysiwyg.mjs +1998 -1594
- package/lib/components/toolbar/controls/AlignmentControl.vue +2 -3
- package/package.json +30 -32
- package/ci/example/deploy.sh +0 -25
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script>
|
|
19
|
-
import { inject
|
|
19
|
+
import { inject } from 'vue';
|
|
20
20
|
import { InjectionTokens } from '../../../injectionTokens';
|
|
21
21
|
import { Alignments } from '../../../enums';
|
|
22
22
|
import { ButtonToggle, Button, Icon } from '../../base';
|
|
@@ -56,8 +56,7 @@ export default {
|
|
|
56
56
|
|
|
57
57
|
setup(_, { emit }) {
|
|
58
58
|
const editor = inject(InjectionTokens.EDITOR);
|
|
59
|
-
const
|
|
60
|
-
const currentValue = computed(() => unref(alignment));
|
|
59
|
+
const currentValue = editor.commands.getAlignment();
|
|
61
60
|
|
|
62
61
|
function toggle(value) {
|
|
63
62
|
editor.chain().focus().applyAlignment(value).run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -27,25 +27,24 @@
|
|
|
27
27
|
"lint:js": "eslint ./lib",
|
|
28
28
|
"lint:css": "stylelint ./lib/**/*.{css,vue}",
|
|
29
29
|
"optimize-svg": "svgo --config ./config/svgo.js",
|
|
30
|
-
"gzip": "gzipper compress",
|
|
31
30
|
"prepare": "husky install"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
|
-
"@popperjs/core": "^2.11.
|
|
35
|
-
"@tiptap/core": "2.0.0
|
|
36
|
-
"@tiptap/extension-document": "2.0.0
|
|
37
|
-
"@tiptap/extension-heading": "2.0.0
|
|
38
|
-
"@tiptap/extension-history": "2.0.0
|
|
39
|
-
"@tiptap/extension-link": "2.0.0
|
|
40
|
-
"@tiptap/extension-list-item": "2.0.0
|
|
41
|
-
"@tiptap/extension-paragraph": "2.0.0
|
|
42
|
-
"@tiptap/extension-text": "2.0.0
|
|
43
|
-
"@tiptap/pm": "^2.0.0
|
|
44
|
-
"@tiptap/vue-2": "2.0.0
|
|
33
|
+
"@popperjs/core": "^2.11.7",
|
|
34
|
+
"@tiptap/core": "^2.0.0",
|
|
35
|
+
"@tiptap/extension-document": "^2.0.0",
|
|
36
|
+
"@tiptap/extension-heading": "^2.0.0",
|
|
37
|
+
"@tiptap/extension-history": "^2.0.0",
|
|
38
|
+
"@tiptap/extension-link": "^2.0.0",
|
|
39
|
+
"@tiptap/extension-list-item": "^2.0.0",
|
|
40
|
+
"@tiptap/extension-paragraph": "^2.0.0",
|
|
41
|
+
"@tiptap/extension-text": "^2.0.0",
|
|
42
|
+
"@tiptap/pm": "^2.0.0",
|
|
43
|
+
"@tiptap/vue-2": "^2.0.0",
|
|
45
44
|
"commander": "^10.0.0",
|
|
46
|
-
"jsdom": "^21.1.
|
|
45
|
+
"jsdom": "^21.1.1",
|
|
47
46
|
"lodash": "^4.17.21",
|
|
48
|
-
"simplebar": "^6.2.
|
|
47
|
+
"simplebar": "^6.2.4"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
50
|
"@zipify/colorpicker": "^2.2",
|
|
@@ -60,11 +59,11 @@
|
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@babel/core": "^7.
|
|
64
|
-
"@babel/eslint-parser": "^7.
|
|
65
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
62
|
+
"@babel/core": "^7.21.3",
|
|
63
|
+
"@babel/eslint-parser": "^7.21.3",
|
|
64
|
+
"@babel/plugin-transform-runtime": "^7.21.0",
|
|
66
65
|
"@babel/preset-env": "^7.20.2",
|
|
67
|
-
"@babel/runtime": "^7.
|
|
66
|
+
"@babel/runtime": "^7.21.0",
|
|
68
67
|
"@optimize-lodash/rollup-plugin": "^4.0.3",
|
|
69
68
|
"@rollup/plugin-babel": "^6.0.3",
|
|
70
69
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
@@ -73,25 +72,24 @@
|
|
|
73
72
|
"@rollup/plugin-replace": "^5.0.2",
|
|
74
73
|
"@rollup/plugin-terser": "^0.4.0",
|
|
75
74
|
"@vue/test-utils": "^1.3.4",
|
|
76
|
-
"@vue/vue2-jest": "^29.2.
|
|
77
|
-
"@zipify/colorpicker": "^2.
|
|
78
|
-
"@zipify/eslint-config": "^1.
|
|
79
|
-
"babel-jest": "^29.
|
|
80
|
-
"eslint": "8.
|
|
75
|
+
"@vue/vue2-jest": "^29.2.3",
|
|
76
|
+
"@zipify/colorpicker": "^2.3",
|
|
77
|
+
"@zipify/eslint-config": "^1.2.0",
|
|
78
|
+
"babel-jest": "^29.5.0",
|
|
79
|
+
"eslint": "8.37.0",
|
|
81
80
|
"eslint-plugin-import": "^2.27.5",
|
|
82
81
|
"eslint-plugin-jest": "^27.2.1",
|
|
83
|
-
"eslint-plugin-vue": "^9.
|
|
84
|
-
"gzipper": "^7.2.0",
|
|
82
|
+
"eslint-plugin-vue": "^9.10.0",
|
|
85
83
|
"husky": "^8.0.3",
|
|
86
|
-
"jest": "^29.
|
|
87
|
-
"jest-environment-jsdom": "^29.
|
|
88
|
-
"lint-staged": "^13.
|
|
84
|
+
"jest": "^29.5.0",
|
|
85
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
86
|
+
"lint-staged": "^13.2.0",
|
|
89
87
|
"postcss-html": "^1.5.0",
|
|
90
|
-
"release-it": "^15.
|
|
91
|
-
"rollup": "^3.
|
|
88
|
+
"release-it": "^15.9.3",
|
|
89
|
+
"rollup": "^3.20.2",
|
|
92
90
|
"stylelint": "^14.16.1",
|
|
93
91
|
"svgo": "^3.0.2",
|
|
94
|
-
"vite": "^4.
|
|
92
|
+
"vite": "^4.2.1",
|
|
95
93
|
"vite-plugin-vue2": "^2.0.3",
|
|
96
94
|
"vue": "^2.7.14",
|
|
97
95
|
"vue-template-compiler": "^2.7.14"
|
package/ci/example/deploy.sh
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
export AWS_CONFIG_FILE=./ci/example/.aws-credentials
|
|
4
|
-
|
|
5
|
-
function throw_error() {
|
|
6
|
-
echo -e "\033[0;31m \n\n$1\n\n";
|
|
7
|
-
exit;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
if ! command -v aws &> /dev/null; then
|
|
11
|
-
throw_error 'AWS CLI not found. Download from https://aws.amazon.com/cli/'
|
|
12
|
-
fi;
|
|
13
|
-
|
|
14
|
-
if [ ! -f "$AWS_CONFIG_FILE" ]; then
|
|
15
|
-
throw_error 'AWS credentials config not found'
|
|
16
|
-
fi;
|
|
17
|
-
|
|
18
|
-
echo Building... && \
|
|
19
|
-
rm -rf ./example/dist && \
|
|
20
|
-
npm run example:build > /dev/null && \
|
|
21
|
-
npx --yes gzipper compress ./example/dist > /dev/null && \
|
|
22
|
-
echo Uploading... && \
|
|
23
|
-
BRANCH_NAME=$(git branch --show-current) && \
|
|
24
|
-
aws s3 sync --acl public-read --cache-control 'max-age=0,no-cache,no-store,must-revalidate' "./example/dist" "s3://zipify-wysiwyg/$BRANCH_NAME" > /dev/null && \
|
|
25
|
-
echo "on https://zipify-wysiwyg.s3.eu-central-1.amazonaws.com/$BRANCH_NAME/index.html"
|