@zipify/wysiwyg 4.11.2 → 4.11.3

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.mjs CHANGED
@@ -28621,7 +28621,7 @@ const _sfc_main$r = {
28621
28621
  const favoriteColors = computed(() => unref(favoriteColorsService.listRef));
28622
28622
  const updateFavoriteColors = (colors) => favoriteColorsService.triggerUpdate(colors);
28623
28623
  return (_ctx, _cache) => {
28624
- return withDirectives((openBlock(), createBlock(unref(ColorPicker), {
28624
+ return openBlock(), createBlock(unref(ColorPicker), {
28625
28625
  ref_key: "pickerRef",
28626
28626
  ref: pickerRef,
28627
28627
  placement: "bottom-end",
@@ -28630,8 +28630,9 @@ const _sfc_main$r = {
28630
28630
  window: unref(ContextWindow).window,
28631
28631
  "model-value": unref(api).editingColor,
28632
28632
  "has-gradient": false,
28633
- onChangeFavoriteColors: updateFavoriteColors,
28634
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(api).editingColor = $event)
28633
+ "onUpdate:favoriteColors": updateFavoriteColors,
28634
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(api).editingColor = $event),
28635
+ onOutsideClick: unref(api).close
28635
28636
  }, {
28636
28637
  activator: withCtx(() => [
28637
28638
  renderSlot(_ctx.$slots, "activator", {
@@ -28642,9 +28643,7 @@ const _sfc_main$r = {
28642
28643
  })
28643
28644
  ]),
28644
28645
  _: 3
28645
- }, 8, ["favorite-colors", "window", "model-value"])), [
28646
- [unref(outClick), { onOutClick: unref(api).close, isDisabled: !unref(api).isOpened }]
28647
- ]);
28646
+ }, 8, ["favorite-colors", "window", "model-value", "onOutsideClick"]);
28648
28647
  };
28649
28648
  }
28650
28649
  };
@@ -7,9 +7,9 @@
7
7
  :window="ContextWindow.window"
8
8
  :model-value="api.editingColor"
9
9
  :has-gradient="false"
10
- @change-favorite-colors="updateFavoriteColors"
10
+ @update:favorite-colors="updateFavoriteColors"
11
11
  @update:model-value="api.editingColor = $event"
12
- v-out-click="{ onOutClick: api.close, isDisabled: !api.isOpened }"
12
+ @outside-click="api.close"
13
13
  >
14
14
  <template #activator>
15
15
  <slot
@@ -26,7 +26,6 @@
26
26
  <script setup>
27
27
  import { ColorPicker } from '@zipify/colorpicker';
28
28
  import { computed, inject, ref, toRef, unref } from 'vue';
29
- import { outClick as vOutClick } from '../../../directives';
30
29
  import { InjectionTokens } from '../../../injectionTokens';
31
30
  import { ContextWindow } from '../../../services';
32
31
  import { usePickerApi, usePickerHotkeys } from './composables';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "4.11.2",
3
+ "version": "4.11.3",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "types": "dist/wysiwyg.d.ts",