@zipify/wysiwyg 1.0.0-dev.69 → 1.0.0-dev.72

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/wysiwyg.css CHANGED
@@ -23,7 +23,7 @@
23
23
  column-gap: var(--zw-offset-xxs);
24
24
  }
25
25
 
26
- .zw-button[data-v-86a41806] {
26
+ .zw-button[data-v-562f4e4a] {
27
27
  display: inline-flex;
28
28
  align-items: center;
29
29
  vertical-align: middle;
@@ -33,6 +33,7 @@
33
33
  background-color: transparent;
34
34
  border: 0;
35
35
  padding: 0;
36
+ margin: 0;
36
37
  white-space: nowrap;
37
38
  appearance: none;
38
39
  user-select: none;
@@ -42,21 +43,21 @@
42
43
  transition: 0.1s opacity ease-out;
43
44
  will-change: opacity;
44
45
  }
45
- .zw-button[data-v-86a41806]::-moz-focus-inner {
46
+ .zw-button[data-v-562f4e4a]::-moz-focus-inner {
46
47
  border: 0 !important;
47
48
  }
48
- .zw-button[data-v-86a41806]:hover,
49
- .zw-button[data-v-86a41806]:focus {
49
+ .zw-button[data-v-562f4e4a]:hover,
50
+ .zw-button[data-v-562f4e4a]:focus {
50
51
  text-decoration: none;
51
52
  outline: none;
52
53
  }
53
- .zw-button[data-v-86a41806]:disabled {
54
+ .zw-button[data-v-562f4e4a]:disabled {
54
55
  user-select: none;
55
56
  box-shadow: none;
56
57
  cursor: not-allowed;
57
58
  opacity: 0.35;
58
59
  }
59
- .zw-button--toolbar[data-v-86a41806] {
60
+ .zw-button--toolbar[data-v-562f4e4a] {
60
61
  border-radius: 1px;
61
62
  min-height: 28px;
62
63
  font-weight: var(--zw-font-weight-semibold);
@@ -66,29 +67,29 @@
66
67
  transition-property: background-color, color, opacity;
67
68
  will-change: background-color, color, opacity;
68
69
  }
69
- .zw-button--primary[data-v-86a41806] {
70
+ .zw-button--primary[data-v-562f4e4a] {
70
71
  background-color: rgb(var(--zw-color-green));
71
72
  color: rgb(var(--zw-color-white));
72
73
  padding: var(--zw-offset-xxs) var(--zw-offset-sm);
73
74
  line-height: var(--zw-line-height-md);
74
75
  }
75
- .zw-button--primary[data-v-86a41806],
76
- .zw-button--secondary[data-v-86a41806] {
76
+ .zw-button--primary[data-v-562f4e4a],
77
+ .zw-button--secondary[data-v-562f4e4a] {
77
78
  color: rgb(var(--zw-color-white));
78
79
  padding: var(--zw-offset-xxs) var(--zw-offset-sm);
79
80
  font-weight: 600;
80
81
  font-size: var(--zw-font-size-xs);
81
82
  }
82
- .zw-button--primary[data-v-86a41806]:not(:disabled):hover,
83
- .zw-button--secondary[data-v-86a41806]:not(:disabled):hover {
83
+ .zw-button--primary[data-v-562f4e4a]:not(:disabled):hover,
84
+ .zw-button--secondary[data-v-562f4e4a]:not(:disabled):hover {
84
85
  opacity: 0.9;
85
86
  }
86
- .zw-button--toolbar[data-v-86a41806]:not(.zw-button--icon) {
87
+ .zw-button--toolbar[data-v-562f4e4a]:not(.zw-button--icon) {
87
88
  padding: var(--zw-offset-xxs) var(--zw-offset-xs);
88
89
  }
89
- .zw-button--toolbar[data-v-86a41806]:not(:disabled):hover,
90
- .zw-button--toolbar[data-v-86a41806]:not(:disabled):focus,
91
- .zw-button--toolbar.zw-button--active[data-v-86a41806]:not(:disabled) {
90
+ .zw-button--toolbar[data-v-562f4e4a]:not(:disabled):hover,
91
+ .zw-button--toolbar[data-v-562f4e4a]:not(:disabled):focus,
92
+ .zw-button--toolbar.zw-button--active[data-v-562f4e4a]:not(:disabled) {
92
93
  color: rgb(var(--zw-color-white));
93
94
  background-color: rgb(var(--zw-color-n5));
94
95
  }
@@ -405,27 +406,27 @@
405
406
  color: rgb(var(--zw-color-red));
406
407
  }
407
408
 
408
- .zw-checkbox[data-v-2de7f5c1] {
409
+ .zw-checkbox[data-v-15e487f5] {
409
410
  display: inline-flex;
410
411
  align-items: center;
411
412
  position: relative;
412
413
  cursor: pointer;
413
414
  padding: var(--zw-offset-xxs) var(--zw-offset-xxs) var(--zw-offset-xxs) 0;
414
415
  }
415
- .zw-checkbox__field + .zw-checkbox__indicator[data-v-2de7f5c1] {
416
+ .zw-checkbox__field + .zw-checkbox__indicator[data-v-15e487f5] {
416
417
  color: var(--zw-color-n200);
417
418
  box-shadow: inset 0 0 0 2px currentColor;
418
419
  }
419
- .zw-checkbox:hover .zw-checkbox__indicator[data-v-2de7f5c1] {
420
+ .zw-checkbox:hover .zw-checkbox__indicator[data-v-15e487f5] {
420
421
  box-shadow: inset 0 0 0 2px rgb(var(--zw-color-green));
421
422
  }
422
- .zw-checkbox__field:checked + .zw-checkbox__indicator[data-v-2de7f5c1] {
423
+ .zw-checkbox__field:checked + .zw-checkbox__indicator[data-v-15e487f5] {
423
424
  color: rgb(var(--zw-color-green))
424
425
  }
425
- .zw-checkbox .zw-checkbox__field:checked + .zw-checkbox__indicator[data-v-2de7f5c1] {
426
+ .zw-checkbox .zw-checkbox__field:checked + .zw-checkbox__indicator[data-v-15e487f5] {
426
427
  background-color: rgb(var(--zw-color-green));
427
428
  }
428
- .zw-checkbox .zw-checkbox__indicator[data-v-2de7f5c1]::after {
429
+ .zw-checkbox .zw-checkbox__indicator[data-v-15e487f5]::after {
429
430
  content: "";
430
431
  display: block;
431
432
  height: 16px;
@@ -437,16 +438,16 @@
437
438
  background-size: 16px;
438
439
  background-position: center center;
439
440
  }
440
- .zw-checkbox__field:not(:checked) + .zw-checkbox__indicator[data-v-2de7f5c1]::after {
441
+ .zw-checkbox__field:not(:checked) + .zw-checkbox__indicator[data-v-15e487f5]::after {
441
442
  transform: scale(0);
442
443
  }
443
- .zw-checkbox__field[data-v-2de7f5c1] {
444
+ .zw-checkbox__field[data-v-15e487f5] {
444
445
  position: absolute;
445
446
  opacity: 0;
446
447
  height: 0;
447
448
  width: 0;
448
449
  }
449
- .zw-checkbox__label[data-v-2de7f5c1] {
450
+ .zw-checkbox__label[data-v-15e487f5] {
450
451
  font-size: var(--zw-font-size-xs);
451
452
  }
452
453
 
package/dist/wysiwyg.mjs CHANGED
@@ -14238,7 +14238,7 @@ var __component__$G = /* @__PURE__ */ normalizeComponent(
14238
14238
  staticRenderFns$G,
14239
14239
  false,
14240
14240
  __vue2_injectStyles$G,
14241
- "86a41806",
14241
+ "562f4e4a",
14242
14242
  null,
14243
14243
  null
14244
14244
  );
@@ -19895,7 +19895,7 @@ var render$x = function __render__13() {
19895
19895
  "checked": _vm.value
19896
19896
  },
19897
19897
  on: {
19898
- "change": _vm.onCheckedChanged
19898
+ "click": _vm.onCheckedChanged
19899
19899
  }
19900
19900
  }), _c("span", {
19901
19901
  staticClass: "zw-checkbox__indicator zw-margin-right--xs"
@@ -19918,10 +19918,8 @@ const __vue2_script$x = {
19918
19918
  default: null
19919
19919
  }
19920
19920
  },
19921
- setup(_, { emit }) {
19922
- const onCheckedChanged = (event) => {
19923
- emit("input", event.target.checked);
19924
- };
19921
+ setup(props, { emit }) {
19922
+ const onCheckedChanged = () => emit("input", !props.value);
19925
19923
  return { onCheckedChanged };
19926
19924
  }
19927
19925
  };
@@ -19932,7 +19930,7 @@ var __component__$x = /* @__PURE__ */ normalizeComponent(
19932
19930
  staticRenderFns$x,
19933
19931
  false,
19934
19932
  __vue2_injectStyles$x,
19935
- "2de7f5c1",
19933
+ "15e487f5",
19936
19934
  null,
19937
19935
  null
19938
19936
  );
@@ -23222,7 +23220,8 @@ const FontSize = Mark.create({
23222
23220
  const parseSize = (value) => {
23223
23221
  if (!value)
23224
23222
  return null;
23225
- const converted = convertFontSize(value, this.options.wrapperRef.value);
23223
+ const wrapperEl = this.options.wrapperRef.value || this.options.wrapperRef;
23224
+ const converted = convertFontSize(value, wrapperEl);
23226
23225
  return String(converted);
23227
23226
  };
23228
23227
  return [
@@ -23634,7 +23633,8 @@ const LineHeight = Extension.create({
23634
23633
  const value = element.style.lineHeight;
23635
23634
  if (!value)
23636
23635
  return null;
23637
- const converted = convertLineHeight(value, element, this.options.wrapperRef.value);
23636
+ const wrapperEl = this.options.wrapperRef.value || this.options.wrapperRef;
23637
+ const converted = convertLineHeight(value, element, wrapperEl);
23638
23638
  return { desktop: converted, tablet: converted, mobile: converted };
23639
23639
  },
23640
23640
  renderHTML(attrs) {
@@ -66,6 +66,7 @@ export default {
66
66
  background-color: transparent;
67
67
  border: 0;
68
68
  padding: 0;
69
+ margin: 0;
69
70
  white-space: nowrap;
70
71
  appearance: none;
71
72
  user-select: none;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <label class="zw-checkbox">
3
- <input class="zw-checkbox__field" type="checkbox" :checked="value" @change="onCheckedChanged">
3
+ <input class="zw-checkbox__field" type="checkbox" :checked="value" @click="onCheckedChanged">
4
4
  <span class="zw-checkbox__indicator zw-margin-right--xs" />
5
5
  <span class="zw-checkbox__label">{{ label }}</span>
6
6
  </label>
@@ -23,10 +23,8 @@ export default {
23
23
  }
24
24
  },
25
25
 
26
- setup(_, { emit }) {
27
- const onCheckedChanged = (event) => {
28
- emit('input', event.target.checked);
29
- };
26
+ setup(props, { emit }) {
27
+ const onCheckedChanged = () => emit('input', !props.value);
30
28
 
31
29
  return { onCheckedChanged };
32
30
  }
@@ -66,7 +66,8 @@ export const FontSize = Mark.create({
66
66
  const parseSize = (value) => {
67
67
  if (!value) return null;
68
68
 
69
- const converted = convertFontSize(value, this.options.wrapperRef.value);
69
+ const wrapperEl = this.options.wrapperRef.value || this.options.wrapperRef;
70
+ const converted = convertFontSize(value, wrapperEl);
70
71
 
71
72
  return String(converted);
72
73
  };
@@ -33,7 +33,8 @@ export const LineHeight = Extension.create({
33
33
 
34
34
  if (!value) return null;
35
35
 
36
- const converted = convertLineHeight(value, element, this.options.wrapperRef.value);
36
+ const wrapperEl = this.options.wrapperRef.value || this.options.wrapperRef;
37
+ const converted = convertLineHeight(value, element, wrapperEl);
37
38
 
38
39
  return { desktop: converted, tablet: converted, mobile: converted };
39
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.0.0-dev.69",
3
+ "version": "1.0.0-dev.72",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "repository": {