@zipify/wysiwyg 4.9.0 → 4.9.2

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 (33) hide show
  1. package/.github/actions/lint-css/action.yaml +1 -1
  2. package/.github/actions/lint-js/action.yaml +8 -3
  3. package/.lintstagedrc.mjs +32 -0
  4. package/.oxlintrc.json +185 -0
  5. package/dist/assets/wysiwyg-yoEkrvE8.css +940 -0
  6. package/dist/cli.js +35 -35
  7. package/dist/node.js +22 -22
  8. package/dist/wysiwyg.mjs +2012 -1219
  9. package/eslint.config.mjs +6 -0
  10. package/lib/Wysiwyg.vue +1 -2
  11. package/lib/cli/commands/Command.js +1 -2
  12. package/lib/components/base/Checkbox.vue +3 -0
  13. package/lib/components/base/Modal.vue +1 -1
  14. package/lib/components/toolbar/Toolbar.vue +1 -1
  15. package/lib/components/toolbar/controls/__tests__/FontColorControl.test.js +2 -2
  16. package/lib/components/toolbar/controls/link/LinkControlHeader.vue +7 -2
  17. package/lib/components/toolbar/controls/link/__tests__/LinkControl.test.js +5 -5
  18. package/lib/components/toolbar/controls/link/__tests__/LinkControlHeader.test.js +4 -4
  19. package/lib/extensions/FontStyle.js +3 -3
  20. package/lib/extensions/__tests__/StylePreset.test.js +5 -5
  21. package/lib/extensions/list/List.js +3 -3
  22. package/lib/extensions/list/__tests__/List.test.js +4 -4
  23. package/lib/services/JsonSerializer.js +0 -1
  24. package/lib/services/Storage.js +0 -1
  25. package/lib/services/__tests__/Storage.test.js +9 -4
  26. package/lib/services/normalizer/__tests__/HtmlNormalizer.test.js +25 -25
  27. package/package.json +6 -15
  28. package/stylelint.config.mjs +116 -0
  29. package/tsconfig.lint.json +7 -0
  30. package/.eslintignore +0 -2
  31. package/.eslintrc.js +0 -95
  32. package/.lintstagedrc +0 -12
  33. package/.stylelintrc +0 -106
package/.eslintrc.js DELETED
@@ -1,95 +0,0 @@
1
- require('@rushstack/eslint-patch/modern-module-resolution');
2
-
3
- const appPackage = require('./package.json');
4
-
5
- const jestVersion = appPackage.devDependencies.jest.replace('^', '');
6
- const jestMajorVersion = Number(jestVersion.split('.')[0]);
7
-
8
- const tsParserOptions = {
9
- project: './tsconfig.json',
10
- extraFileExtensions: ['.vue']
11
- };
12
-
13
- module.exports = {
14
- root: true,
15
- settings: {
16
- 'import/resolver': {
17
- alias: {
18
- map: {
19
- '@': './lib'
20
- }
21
- },
22
- node: {
23
- extensions: [
24
- '.js',
25
- '.ts',
26
- '.css',
27
- '.vue',
28
- '.html'
29
- ]
30
- }
31
- },
32
- jest: {
33
- version: jestMajorVersion
34
- }
35
- },
36
- env: {
37
- jest: true
38
- },
39
- globals: {
40
- globalThis: true,
41
- ZW_UPDATED_AT: true
42
- },
43
- overrides: [
44
- {
45
- files: '*.js',
46
- extends: ['@zipify/eslint-config/preset-js']
47
- },
48
- {
49
- files: '*.ts',
50
- extends: ['@zipify/eslint-config/preset-ts']
51
- },
52
- {
53
- files: '*.test.{js,ts}',
54
- extends: ['@zipify/eslint-config/preset-jest']
55
- },
56
- {
57
- files: '*.vue',
58
- extends: ['@zipify/eslint-config/preset-vue3-ts'],
59
- parserOptions: {
60
- parser: '@typescript-eslint/parser',
61
- parserOptions: tsParserOptions
62
- },
63
- rules: {
64
- // Temporary disable rules for js to ts migration
65
- '@typescript-eslint/explicit-function-return-type': 'off',
66
- 'import/extensions': 'off'
67
- }
68
- },
69
- {
70
- files: '*.{js,ts,vue}',
71
- parserOptions: tsParserOptions,
72
- rules: {
73
- 'import/order': [
74
- 'error',
75
- {
76
- pathGroups: [
77
- {
78
- pattern: '@/**',
79
- group: 'external',
80
- position: 'after'
81
- }
82
- ],
83
- groups: [
84
- 'builtin',
85
- 'external',
86
- 'internal',
87
- 'parent',
88
- 'sibling'
89
- ]
90
- }
91
- ]
92
- }
93
- }
94
- ]
95
- };
package/.lintstagedrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "*.{vue,css}": [
3
- "stylelint --allow-empty-input --config .stylelintrc"
4
- ],
5
- "*.{vue,js}": [
6
- "eslint --fix --fix-type layout --fix-type suggestion --config .eslintrc.js",
7
- "jest --passWithNoTests --findRelatedTests"
8
- ],
9
- "*.svg": [
10
- "svgo --config ./config/svgo.js"
11
- ]
12
- }
package/.stylelintrc DELETED
@@ -1,106 +0,0 @@
1
- {
2
- "rules": {
3
- "at-rule-name-case": "lower",
4
- "at-rule-name-space-after": "always-single-line",
5
- "at-rule-semicolon-newline-after": "always",
6
- "selector-type-case": "lower",
7
- "block-closing-brace-newline-after": "always",
8
- "selector-pseudo-element-colon-notation": "double",
9
- "selector-pseudo-element-case": "lower",
10
- "selector-max-specificity": "0,4,2",
11
- "number-no-trailing-zeros": true,
12
- "color-named": "never",
13
- "color-hex-length": "short",
14
- "color-no-invalid-hex": true,
15
- "font-weight-notation": "numeric",
16
- "function-calc-no-unspaced-operator": true,
17
- "function-comma-newline-before": "never-multi-line",
18
- "function-comma-space-before": "never-single-line",
19
- "function-linear-gradient-no-nonstandard-direction": true,
20
- "function-name-case": "lower",
21
- "function-parentheses-space-inside": "never",
22
- "function-url-no-scheme-relative": true,
23
- "function-url-quotes": "always",
24
- "function-whitespace-after": "always",
25
- "string-no-newline": true,
26
- "string-quotes": "double",
27
- "time-min-milliseconds": 100,
28
- "length-zero-no-unit": [
29
- true,
30
- { "ignore": ["custom-properties"] }
31
- ],
32
- "unit-case": "lower",
33
- "value-keyword-case": [
34
- "lower",
35
- {
36
- "ignoreKeywords": ["currentColor", "optimizeLegibility"]
37
- }
38
- ],
39
- "value-no-vendor-prefix": true,
40
- "max-empty-lines": 2,
41
- "no-descending-specificity": true,
42
- "no-empty-source": true,
43
- "no-eol-whitespace": true,
44
- "no-extra-semicolons": true,
45
- "no-unknown-animations": true,
46
- "declaration-colon-space-before": "never",
47
- "declaration-colon-space-after": "always",
48
- "block-no-empty": true,
49
- "shorthand-property-no-redundant-values": true,
50
- "block-opening-brace-newline-after": "always-multi-line",
51
- "block-opening-brace-space-before": "always",
52
- "block-opening-brace-space-after": "always-single-line",
53
- "named-grid-areas-no-invalid": true,
54
- "declaration-empty-line-before": [
55
- "always",
56
- {
57
- "except": [
58
- "after-declaration",
59
- "first-nested"
60
- ]
61
- }
62
- ],
63
- "block-closing-brace-empty-line-before": "never",
64
- "rule-empty-line-before": [
65
- "always-multi-line"
66
- ],
67
- "at-rule-empty-line-before": [
68
- "always",
69
- {
70
- "except": [
71
- "blockless-after-same-name-blockless",
72
- "first-nested"
73
- ],
74
- "ignore": [
75
- "after-comment"
76
- ]
77
- }
78
- ],
79
- "at-rule-no-unknown": [
80
- true,
81
- {
82
- "ignoreAtRules": [
83
- "include",
84
- "mixin",
85
- "content",
86
- "at-root"
87
- ]
88
- }
89
- ],
90
- "number-leading-zero": "always",
91
- "unit-allowed-list": ["em", "rem", "px", "%", "s", "vh", "deg", "ms", "fr"],
92
- "color-hex-case": "upper",
93
- "max-nesting-depth": 3,
94
- "indentation": [
95
- 4,
96
- { "indentInsideParens": "twice" }
97
- ],
98
- "keyframe-block-no-duplicate-selectors": true
99
- },
100
- "overrides": [
101
- {
102
- "files": ["**/*.vue"],
103
- "customSyntax": "postcss-html"
104
- }
105
- ]
106
- }