@zipify/wysiwyg 4.8.1 → 4.9.1

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 (40) hide show
  1. package/.github/actions/lint-css/action.yaml +1 -1
  2. package/.lintstagedrc +1 -1
  3. package/config/build/cli.config.js +2 -2
  4. package/config/build/example.config.ts +3 -1
  5. package/config/build/lib.config.ts +4 -2
  6. package/config/build/node.config.js +2 -2
  7. package/dist/cli.js +35 -35
  8. package/dist/node.js +25 -25
  9. package/dist/types/Wysiwyg.vue.d.ts +3 -1
  10. package/dist/types/components/base/Button.vue.d.ts +3 -2
  11. package/dist/types/components/base/ButtonToggle.vue.d.ts +3 -2
  12. package/dist/types/components/base/Checkbox.vue.d.ts +1 -1
  13. package/dist/types/components/base/FieldLabel.vue.d.ts +3 -2
  14. package/dist/types/components/base/Icon.vue.d.ts +1 -1
  15. package/dist/types/components/base/Modal.vue.d.ts +2 -1
  16. package/dist/types/components/base/ModalFloating.vue.d.ts +3 -2
  17. package/dist/types/components/base/NumberField.vue.d.ts +1 -1
  18. package/dist/types/components/base/Range.vue.d.ts +1 -1
  19. package/dist/types/components/base/ScrollView.vue.d.ts +3 -2
  20. package/dist/types/components/base/TextField.vue.d.ts +1 -1
  21. package/dist/types/components/base/colorPicker/ColorPicker.vue.d.ts +2 -1
  22. package/dist/types/components/base/dropdown/Dropdown.vue.d.ts +3 -2
  23. package/dist/types/components/base/dropdown/DropdownActivator.vue.d.ts +2 -1
  24. package/dist/types/components/base/dropdown/DropdownDivider.vue.d.ts +1 -1
  25. package/dist/types/components/base/dropdown/DropdownGroup.vue.d.ts +3 -2
  26. package/dist/types/components/base/dropdown/DropdownMenu.vue.d.ts +2 -1
  27. package/dist/types/components/base/dropdown/DropdownOption.vue.d.ts +2 -1
  28. package/dist/types/components/toolbar/ToolbarFloating.vue.d.ts +3 -2
  29. package/dist/types/components/toolbar/controls/LineHeightControl.vue.d.ts +1 -1
  30. package/dist/types/components/toolbar/controls/ListControl.vue.d.ts +1 -1
  31. package/dist/types/components/toolbar/controls/link/LinkControl.vue.d.ts +1 -1
  32. package/dist/types/components/toolbar/controls/link/LinkControlHeader.vue.d.ts +1 -1
  33. package/dist/types/components/toolbar/controls/link/destination/LinkControlDestination.vue.d.ts +1 -1
  34. package/dist/types/components/toolbar/controls/link/destination/LinkControlPageBlock.vue.d.ts +1 -1
  35. package/dist/types/components/toolbar/controls/link/destination/LinkControlUrl.vue.d.ts +1 -1
  36. package/dist/types/components/toolbar/controls/stylePreset/StylePresetControl.vue.d.ts +1 -1
  37. package/dist/wysiwyg.mjs +53 -3
  38. package/package.json +17 -16
  39. package/stylelint.config.mjs +116 -0
  40. package/.stylelintrc +0 -106
@@ -0,0 +1,116 @@
1
+ /** @type {import('stylelint').Config} */
2
+ const config = {
3
+ plugins: [
4
+ '@stylistic/stylelint-plugin'
5
+ ],
6
+ rules: {
7
+ '@stylistic/at-rule-name-case': 'lower',
8
+ '@stylistic/at-rule-name-space-after': 'always-single-line',
9
+ '@stylistic/at-rule-semicolon-newline-after': 'always',
10
+ 'selector-type-case': 'lower',
11
+ '@stylistic/block-closing-brace-newline-after': 'always',
12
+ 'selector-pseudo-element-disallowed-list': ['v-deep'],
13
+ 'selector-pseudo-element-colon-notation': 'double',
14
+ '@stylistic/selector-pseudo-element-case': 'lower',
15
+ 'selector-max-specificity': ['0,4,2', {}],
16
+ '@stylistic/number-no-trailing-zeros': true,
17
+ 'color-named': 'never',
18
+ 'color-hex-length': 'short',
19
+ 'color-no-invalid-hex': true,
20
+ 'font-weight-notation': 'numeric',
21
+ 'function-calc-no-unspaced-operator': true,
22
+ '@stylistic/function-comma-newline-before': 'never-multi-line',
23
+ '@stylistic/function-comma-space-before': 'never-single-line',
24
+ 'function-linear-gradient-no-nonstandard-direction': true,
25
+ 'function-name-case': 'lower',
26
+ '@stylistic/function-parentheses-space-inside': 'never',
27
+ 'function-url-no-scheme-relative': true,
28
+ 'function-url-quotes': 'always',
29
+ '@stylistic/function-whitespace-after': 'always',
30
+ 'string-no-newline': true,
31
+ '@stylistic/string-quotes': 'double',
32
+ 'time-min-milliseconds': 100,
33
+ 'length-zero-no-unit': [
34
+ true,
35
+ { ignore: ['custom-properties'] }
36
+ ],
37
+ '@stylistic/unit-case': 'lower',
38
+ 'value-keyword-case': [
39
+ 'lower',
40
+ {
41
+ ignoreKeywords: ['currentColor', 'optimizeLegibility']
42
+ }
43
+ ],
44
+ 'value-no-vendor-prefix': true,
45
+ '@stylistic/max-empty-lines': 2,
46
+ 'no-empty-source': true,
47
+ '@stylistic/no-eol-whitespace': true,
48
+ '@stylistic/no-extra-semicolons': true,
49
+ 'no-unknown-animations': true,
50
+ '@stylistic/declaration-colon-space-before': 'never',
51
+ '@stylistic/declaration-colon-space-after': 'always',
52
+ 'block-no-empty': true,
53
+ 'shorthand-property-no-redundant-values': true,
54
+ '@stylistic/block-opening-brace-newline-after': 'always-multi-line',
55
+ '@stylistic/block-opening-brace-space-before': 'always',
56
+ '@stylistic/block-opening-brace-space-after': 'always-single-line',
57
+ 'named-grid-areas-no-invalid': true,
58
+ 'declaration-empty-line-before': [
59
+ 'always',
60
+ {
61
+ except: [
62
+ 'after-declaration',
63
+ 'first-nested'
64
+ ]
65
+ }
66
+ ],
67
+ '@stylistic/block-closing-brace-empty-line-before': 'never',
68
+ 'rule-empty-line-before': [
69
+ 'always-multi-line'
70
+ ],
71
+ 'at-rule-empty-line-before': [
72
+ 'always',
73
+ {
74
+ except: [
75
+ 'blockless-after-same-name-blockless',
76
+ 'first-nested'
77
+ ],
78
+ ignore: [
79
+ 'after-comment'
80
+ ]
81
+ }
82
+ ],
83
+ 'at-rule-no-unknown': [
84
+ true,
85
+ {
86
+ ignoreAtRules: [
87
+ 'include',
88
+ 'mixin',
89
+ 'content',
90
+ 'at-root',
91
+ 'use'
92
+ ]
93
+ }
94
+ ],
95
+ '@stylistic/number-leading-zero': 'always',
96
+ 'unit-allowed-list': ['em', 'rem', 'px', '%', 's', 'vh', 'deg', 'ms', 'fr'],
97
+ '@stylistic/color-hex-case': 'upper',
98
+ 'max-nesting-depth': 3,
99
+ '@stylistic/indentation': [
100
+ 4,
101
+ { indentInsideParens: 'twice' }
102
+ ],
103
+ 'keyframe-block-no-duplicate-selectors': true,
104
+ 'selector-anb-no-unmatchable': true,
105
+ 'media-feature-name-value-no-unknown': true,
106
+ 'media-query-no-invalid': true
107
+ },
108
+ overrides: [
109
+ {
110
+ files: ['*.vue'],
111
+ customSyntax: 'postcss-html'
112
+ }
113
+ ]
114
+ };
115
+
116
+ export default config;
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
- }