@zipify/wysiwyg 4.7.0 → 4.8.0
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/cli.js +45 -45
- package/dist/node.js +28 -28
- package/dist/wysiwyg.mjs +3 -3
- package/lib/components/base/colorPicker/ColorPicker.vue +1 -0
- package/lib/utils/convertColor.js +2 -4
- package/package.json +2 -2
package/dist/wysiwyg.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { defineComponent, ref, onMounted, onBeforeUnmount, h, getCurrentInstance, watchEffect, nextTick, unref, Teleport, reactive, markRaw, customRef, openBlock, createElementBlock, renderSlot, computed, normalizeClass, toRef, watch, Fragment as Fragment$1, renderList, normalizeStyle, inject, onUnmounted, provide, createElementVNode, createVNode, toDisplayString, createCommentVNode, shallowRef, getCurrentScope, onScopeDispose, shallowReadonly, useCssVars, createBlock, Transition, withCtx, withDirectives, createTextVNode, mergeProps, normalizeProps, guardReactiveProps, withModifiers, resolveComponent, resolveDynamicComponent, KeepAlive, mergeModels, useModel } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { normalizeColor, ColorPicker } from "@zipify/colorpicker";
|
|
6
6
|
import SimpleBar from "simplebar";
|
|
7
7
|
function OrderedMap(content) {
|
|
8
8
|
this.content = content;
|
|
@@ -19899,8 +19899,7 @@ function createKeyboardShortcut(command2, ...args) {
|
|
|
19899
19899
|
};
|
|
19900
19900
|
}
|
|
19901
19901
|
function convertColor(raw) {
|
|
19902
|
-
|
|
19903
|
-
return model.alpha === 1 ? model.toHexString() : model.toRgbaString();
|
|
19902
|
+
return normalizeColor(raw);
|
|
19904
19903
|
}
|
|
19905
19904
|
function convertFontSize(value, wrapperEl) {
|
|
19906
19905
|
if (!value.includes("em")) return parseInt(value);
|
|
@@ -26307,6 +26306,7 @@ const _sfc_main$r = {
|
|
|
26307
26306
|
"favorite-colors": favoriteColors.value,
|
|
26308
26307
|
window: unref(ContextWindow).window,
|
|
26309
26308
|
"model-value": unref(api).editingColor,
|
|
26309
|
+
"has-gradient": false,
|
|
26310
26310
|
onChangeFavoriteColors: updateFavoriteColors,
|
|
26311
26311
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(api).editingColor = $event)
|
|
26312
26312
|
}, {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
:favorite-colors="favoriteColors"
|
|
7
7
|
:window="ContextWindow.window"
|
|
8
8
|
:model-value="api.editingColor"
|
|
9
|
+
:has-gradient="false"
|
|
9
10
|
@change-favorite-colors="updateFavoriteColors"
|
|
10
11
|
@update:model-value="api.editingColor = $event"
|
|
11
12
|
v-out-click="{ onOutClick: api.close, isDisabled: !api.isOpened }"
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeColor } from '@zipify/colorpicker';
|
|
2
2
|
|
|
3
3
|
export function convertColor(raw) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return model.alpha === 1 ? model.toHexString() : model.toRgbaString();
|
|
4
|
+
return normalizeColor(raw);
|
|
7
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"types": "dist/wysiwyg.d.ts",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@vue/test-utils": "^2.4.6",
|
|
87
87
|
"@vue/tsconfig": "^0.5.1",
|
|
88
88
|
"@vue/vue3-jest": "^29.2.6",
|
|
89
|
-
"@zipify/colorpicker": "^
|
|
89
|
+
"@zipify/colorpicker": "^4.0.0",
|
|
90
90
|
"@zipify/eslint-config": "^1.5.1",
|
|
91
91
|
"babel-jest": "^29.7.0",
|
|
92
92
|
"esbuild-jest": "^0.5.0",
|