@zipify/wysiwyg 3.4.0 → 3.4.1-dev

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.
@@ -16,7 +16,7 @@
16
16
  </template>
17
17
 
18
18
  <script>
19
- import { inject } from 'vue';
19
+ import { inject, computed, unref } from 'vue';
20
20
  import { InjectionTokens } from '../../../injectionTokens';
21
21
  import { Alignments } from '../../../enums';
22
22
  import { ButtonToggle, Button, Icon } from '../../base';
@@ -56,7 +56,8 @@ export default {
56
56
 
57
57
  setup(_, { emit }) {
58
58
  const editor = inject(InjectionTokens.EDITOR);
59
- const currentValue = editor.commands.getAlignment();
59
+ const alignment = editor.commands.getAlignment();
60
+ const currentValue = computed(() => unref(alignment));
60
61
 
61
62
  function toggle(value) {
62
63
  editor.chain().focus().applyAlignment(value).run();
@@ -0,0 +1,2 @@
1
+ export { NodeDomParser } from './cli/NodeDomParser';
2
+ export { ContextWindow, ContentSerializer } from './services';
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "3.4.0",
3
+ "version": "3.4.1-dev",
4
4
  "description": "Zipify modification of TipTap text editor",
5
- "main": "dist/wysiwyg.mjs",
5
+ "exports": {
6
+ ".": {
7
+ "node": "./dist/wysiwyg.cjs",
8
+ "default": "./dist/wysiwyg.mjs"
9
+ }
10
+ },
6
11
  "bin": {
7
12
  "zipify-wysiwyg": "bin/cli"
8
13
  },
@@ -21,30 +26,32 @@
21
26
  "lib:release": "export $(cat ./.env | xargs) && release-it",
22
27
  "cli:build": "NODE_ENV=production rollup --config config/build/cli.config.js --bundleConfigAsCjs",
23
28
  "cli:dev": "NODE_ENV=development rollup --config config/build/cli.config.js --bundleConfigAsCjs --watch",
29
+ "node:build": "NODE_ENV=production rollup --config config/build/node.config.js --bundleConfigAsCjs",
24
30
  "example:start": "NODE_ENV=development vite serve --config config/build/example.config.js",
25
31
  "example:build": "NODE_ENV=production vite build --config config/build/example.config.js",
26
32
  "test:unit": "jest .",
27
33
  "lint:js": "eslint ./lib",
28
34
  "lint:css": "stylelint ./lib/**/*.{css,vue}",
29
35
  "optimize-svg": "svgo --config ./config/svgo.js",
36
+ "gzip": "gzipper compress",
30
37
  "prepare": "husky install"
31
38
  },
32
39
  "dependencies": {
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",
40
+ "@popperjs/core": "^2.11.6",
41
+ "@tiptap/core": "2.0.0-beta.215",
42
+ "@tiptap/extension-document": "2.0.0-beta.215",
43
+ "@tiptap/extension-heading": "2.0.0-beta.215",
44
+ "@tiptap/extension-history": "2.0.0-beta.215",
45
+ "@tiptap/extension-link": "2.0.0-beta.215",
46
+ "@tiptap/extension-list-item": "2.0.0-beta.215",
47
+ "@tiptap/extension-paragraph": "2.0.0-beta.215",
48
+ "@tiptap/extension-text": "2.0.0-beta.215",
49
+ "@tiptap/pm": "^2.0.0-beta.215",
50
+ "@tiptap/vue-2": "2.0.0-beta.215",
44
51
  "commander": "^10.0.0",
45
- "jsdom": "^21.1.1",
52
+ "jsdom": "^21.1.0",
46
53
  "lodash": "^4.17.21",
47
- "simplebar": "^6.2.4"
54
+ "simplebar": "^6.2.0"
48
55
  },
49
56
  "peerDependencies": {
50
57
  "@zipify/colorpicker": "^2.2",
@@ -59,11 +66,11 @@
59
66
  }
60
67
  },
61
68
  "devDependencies": {
62
- "@babel/core": "^7.21.3",
63
- "@babel/eslint-parser": "^7.21.3",
64
- "@babel/plugin-transform-runtime": "^7.21.0",
69
+ "@babel/core": "^7.20.12",
70
+ "@babel/eslint-parser": "^7.19.1",
71
+ "@babel/plugin-transform-runtime": "^7.19.6",
65
72
  "@babel/preset-env": "^7.20.2",
66
- "@babel/runtime": "^7.21.0",
73
+ "@babel/runtime": "^7.20.13",
67
74
  "@optimize-lodash/rollup-plugin": "^4.0.3",
68
75
  "@rollup/plugin-babel": "^6.0.3",
69
76
  "@rollup/plugin-commonjs": "^24.0.1",
@@ -72,24 +79,25 @@
72
79
  "@rollup/plugin-replace": "^5.0.2",
73
80
  "@rollup/plugin-terser": "^0.4.0",
74
81
  "@vue/test-utils": "^1.3.4",
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",
82
+ "@vue/vue2-jest": "^29.2.2",
83
+ "@zipify/colorpicker": "^2.2.2",
84
+ "@zipify/eslint-config": "^1.1.2",
85
+ "babel-jest": "^29.4.2",
86
+ "eslint": "8.33.0",
80
87
  "eslint-plugin-import": "^2.27.5",
81
88
  "eslint-plugin-jest": "^27.2.1",
82
- "eslint-plugin-vue": "^9.10.0",
89
+ "eslint-plugin-vue": "^9.9.0",
90
+ "gzipper": "^7.2.0",
83
91
  "husky": "^8.0.3",
84
- "jest": "^29.5.0",
85
- "jest-environment-jsdom": "^29.5.0",
86
- "lint-staged": "^13.2.0",
92
+ "jest": "^29.4.2",
93
+ "jest-environment-jsdom": "^29.4.2",
94
+ "lint-staged": "^13.1.1",
87
95
  "postcss-html": "^1.5.0",
88
- "release-it": "^15.9.3",
89
- "rollup": "^3.20.2",
96
+ "release-it": "^15.6.0",
97
+ "rollup": "^3.14.0",
90
98
  "stylelint": "^14.16.1",
91
99
  "svgo": "^3.0.2",
92
- "vite": "^4.2.1",
100
+ "vite": "^4.1.1",
93
101
  "vite-plugin-vue2": "^2.0.3",
94
102
  "vue": "^2.7.14",
95
103
  "vue-template-compiler": "^2.7.14"