@zipify/wysiwyg 4.5.0 → 4.7.0-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/.husky/pre-commit +0 -3
- package/dist/cli.js +47 -49
- package/dist/node.js +29 -31
- package/dist/types/Wysiwyg.vue.d.ts +14 -16
- package/dist/types/components/base/Button.vue.d.ts +15 -8
- package/dist/types/components/base/ButtonToggle.vue.d.ts +19 -12
- package/dist/types/components/base/Checkbox.vue.d.ts +1 -1
- package/dist/types/components/base/FieldLabel.vue.d.ts +15 -8
- package/dist/types/components/base/Icon.vue.d.ts +1 -1
- package/dist/types/components/base/Modal.vue.d.ts +17 -8
- package/dist/types/components/base/ModalFloating.vue.d.ts +17 -8
- package/dist/types/components/base/NumberField.vue.d.ts +1 -1
- package/dist/types/components/base/Range.vue.d.ts +1 -1
- package/dist/types/components/base/ScrollView.vue.d.ts +12 -3
- package/dist/types/components/base/TextField.vue.d.ts +1 -1
- package/dist/types/components/base/colorPicker/ColorPicker.vue.d.ts +22 -13
- package/dist/types/components/base/composables/useModalToggler.d.ts +1 -4
- package/dist/types/components/base/composables/useNumberValue.d.ts +1 -1
- package/dist/types/components/base/composables/useScrollView.d.ts +1 -3
- package/dist/types/components/base/composables/useTempValue.d.ts +1 -1
- package/dist/types/components/base/composables/useValidator.d.ts +1 -1
- package/dist/types/components/base/dropdown/Dropdown.vue.d.ts +18 -9
- package/dist/types/components/base/dropdown/DropdownActivator.vue.d.ts +18 -11
- package/dist/types/components/base/dropdown/DropdownDivider.vue.d.ts +1 -1
- package/dist/types/components/base/dropdown/DropdownGroup.vue.d.ts +17 -10
- package/dist/types/components/base/dropdown/DropdownMenu.vue.d.ts +18 -10
- package/dist/types/components/base/dropdown/DropdownOption.vue.d.ts +17 -8
- package/dist/types/components/base/dropdown/composables/useActiveOptionManager.d.ts +2 -4
- package/dist/types/components/toolbar/Toolbar.vue.d.ts +1 -1
- package/dist/types/components/toolbar/ToolbarFloating.vue.d.ts +17 -8
- package/dist/types/components/toolbar/base/ToolbarDivider.vue.d.ts +5 -5
- package/dist/types/components/toolbar/base/ToolbarGroup.vue.d.ts +1 -1
- package/dist/types/components/toolbar/base/ToolbarRow.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/AlignmentControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/BackgroundColorControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/CaseStyleControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontColorControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontFamilyControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontSizeControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontWeightControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/ItalicControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/LineHeightControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/ListControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/RemoveFormatControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/StrikeThroughControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/SuperscriptControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/UnderlineControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/composables/useRecentFonts.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/LinkControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/LinkControlHeader.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/composables/useLink.d.ts +18 -0
- package/dist/types/components/toolbar/controls/link/destination/LinkControlDestination.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/destination/LinkControlPageBlock.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/destination/LinkControlUrl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/stylePreset/StylePresetControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/stylePreset/StylePresetOption.vue.d.ts +6 -4
- package/dist/types/components/toolbar/layouts/ToolbarDesktop.vue.d.ts +1 -1
- package/dist/types/components/toolbar/layouts/ToolbarMobile.vue.d.ts +1 -1
- package/dist/types/components/toolbar/layouts/ToolbarPopup.vue.d.ts +1 -1
- package/dist/types/extensions/core/index.d.ts +1 -1
- package/dist/types/services/NodeFactory.d.ts +3 -3
- package/dist/wysiwyg.mjs +105 -72
- package/package.json +36 -36
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
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,
|
|
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
5
|
import { ColorModel, ColorPicker } from "@zipify/colorpicker";
|
|
6
6
|
import SimpleBar from "simplebar";
|
|
7
7
|
function OrderedMap(content) {
|
|
@@ -24071,9 +24071,9 @@ const _sfc_main$D = {
|
|
|
24071
24071
|
};
|
|
24072
24072
|
const Range = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-c0059745"]]);
|
|
24073
24073
|
const _hoisted_1$i = ["id", "disabled", "value"];
|
|
24074
|
-
const _hoisted_2$
|
|
24075
|
-
const _hoisted_3$
|
|
24076
|
-
const _hoisted_4$
|
|
24074
|
+
const _hoisted_2$6 = { class: "zw-number-field__controls" };
|
|
24075
|
+
const _hoisted_3$2 = { class: "zw-number-field__buttons" };
|
|
24076
|
+
const _hoisted_4$1 = {
|
|
24077
24077
|
key: 0,
|
|
24078
24078
|
class: "zw-number-field__units"
|
|
24079
24079
|
};
|
|
@@ -24151,8 +24151,8 @@ const _sfc_main$C = {
|
|
|
24151
24151
|
value: tempValue.value,
|
|
24152
24152
|
onChange
|
|
24153
24153
|
}, null, 40, _hoisted_1$i),
|
|
24154
|
-
createElementVNode("div", _hoisted_2$
|
|
24155
|
-
createElementVNode("div", _hoisted_3$
|
|
24154
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
24155
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
24156
24156
|
createVNode(unref(Button), {
|
|
24157
24157
|
class: "zw-number-field__increment-button",
|
|
24158
24158
|
onClick: incrementValue,
|
|
@@ -24168,7 +24168,7 @@ const _sfc_main$C = {
|
|
|
24168
24168
|
type: "button"
|
|
24169
24169
|
}, null, 8, ["disabled"])
|
|
24170
24170
|
]),
|
|
24171
|
-
__props.units ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
24171
|
+
__props.units ? (openBlock(), createElementBlock("p", _hoisted_4$1, toDisplayString(__props.units), 1)) : createCommentVNode("", true)
|
|
24172
24172
|
])
|
|
24173
24173
|
], 2);
|
|
24174
24174
|
};
|
|
@@ -24286,12 +24286,21 @@ function getPaddingObject(padding) {
|
|
|
24286
24286
|
};
|
|
24287
24287
|
}
|
|
24288
24288
|
function rectToClientRect(rect) {
|
|
24289
|
+
const {
|
|
24290
|
+
x,
|
|
24291
|
+
y,
|
|
24292
|
+
width,
|
|
24293
|
+
height
|
|
24294
|
+
} = rect;
|
|
24289
24295
|
return {
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
|
|
24296
|
+
width,
|
|
24297
|
+
height,
|
|
24298
|
+
top: y,
|
|
24299
|
+
left: x,
|
|
24300
|
+
right: x + width,
|
|
24301
|
+
bottom: y + height,
|
|
24302
|
+
x,
|
|
24303
|
+
y
|
|
24295
24304
|
};
|
|
24296
24305
|
}
|
|
24297
24306
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
@@ -24782,6 +24791,9 @@ const limitShift$1 = function(options) {
|
|
|
24782
24791
|
}
|
|
24783
24792
|
};
|
|
24784
24793
|
};
|
|
24794
|
+
function hasWindow() {
|
|
24795
|
+
return typeof window !== "undefined";
|
|
24796
|
+
}
|
|
24785
24797
|
function getNodeName(node) {
|
|
24786
24798
|
if (isNode(node)) {
|
|
24787
24799
|
return (node.nodeName || "").toLowerCase();
|
|
@@ -24797,16 +24809,25 @@ function getDocumentElement(node) {
|
|
|
24797
24809
|
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
24798
24810
|
}
|
|
24799
24811
|
function isNode(value) {
|
|
24812
|
+
if (!hasWindow()) {
|
|
24813
|
+
return false;
|
|
24814
|
+
}
|
|
24800
24815
|
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
24801
24816
|
}
|
|
24802
24817
|
function isElement(value) {
|
|
24818
|
+
if (!hasWindow()) {
|
|
24819
|
+
return false;
|
|
24820
|
+
}
|
|
24803
24821
|
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
24804
24822
|
}
|
|
24805
24823
|
function isHTMLElement(value) {
|
|
24824
|
+
if (!hasWindow()) {
|
|
24825
|
+
return false;
|
|
24826
|
+
}
|
|
24806
24827
|
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
24807
24828
|
}
|
|
24808
24829
|
function isShadowRoot(value) {
|
|
24809
|
-
if (typeof ShadowRoot === "undefined") {
|
|
24830
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
24810
24831
|
return false;
|
|
24811
24832
|
}
|
|
24812
24833
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
@@ -24823,9 +24844,18 @@ function isOverflowElement(element) {
|
|
|
24823
24844
|
function isTableElement(element) {
|
|
24824
24845
|
return ["table", "td", "th"].includes(getNodeName(element));
|
|
24825
24846
|
}
|
|
24826
|
-
function
|
|
24847
|
+
function isTopLayer$1(element) {
|
|
24848
|
+
return [":popover-open", ":modal"].some((selector) => {
|
|
24849
|
+
try {
|
|
24850
|
+
return element.matches(selector);
|
|
24851
|
+
} catch (e) {
|
|
24852
|
+
return false;
|
|
24853
|
+
}
|
|
24854
|
+
});
|
|
24855
|
+
}
|
|
24856
|
+
function isContainingBlock(elementOrCss) {
|
|
24827
24857
|
const webkit2 = isWebKit();
|
|
24828
|
-
const css = getComputedStyle$1(
|
|
24858
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
24829
24859
|
return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit2 && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit2 && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
24830
24860
|
}
|
|
24831
24861
|
function getContainingBlock(element) {
|
|
@@ -24833,9 +24863,10 @@ function getContainingBlock(element) {
|
|
|
24833
24863
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
24834
24864
|
if (isContainingBlock(currentNode)) {
|
|
24835
24865
|
return currentNode;
|
|
24836
|
-
} else {
|
|
24837
|
-
|
|
24866
|
+
} else if (isTopLayer$1(currentNode)) {
|
|
24867
|
+
return null;
|
|
24838
24868
|
}
|
|
24869
|
+
currentNode = getParentNode(currentNode);
|
|
24839
24870
|
}
|
|
24840
24871
|
return null;
|
|
24841
24872
|
}
|
|
@@ -24857,8 +24888,8 @@ function getNodeScroll(element) {
|
|
|
24857
24888
|
};
|
|
24858
24889
|
}
|
|
24859
24890
|
return {
|
|
24860
|
-
scrollLeft: element.
|
|
24861
|
-
scrollTop: element.
|
|
24891
|
+
scrollLeft: element.scrollX,
|
|
24892
|
+
scrollTop: element.scrollY
|
|
24862
24893
|
};
|
|
24863
24894
|
}
|
|
24864
24895
|
function getParentNode(node) {
|
|
@@ -24896,10 +24927,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
24896
24927
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
24897
24928
|
const win = getWindow(scrollableAncestor);
|
|
24898
24929
|
if (isBody) {
|
|
24899
|
-
|
|
24930
|
+
const frameElement = getFrameElement(win);
|
|
24931
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
24900
24932
|
}
|
|
24901
24933
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
24902
24934
|
}
|
|
24935
|
+
function getFrameElement(win) {
|
|
24936
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
24937
|
+
}
|
|
24903
24938
|
function getCssDimensions(element) {
|
|
24904
24939
|
const css = getComputedStyle$1(element);
|
|
24905
24940
|
let width = parseFloat(css.width) || 0;
|
|
@@ -25462,6 +25497,9 @@ function unwrapElement(target) {
|
|
|
25462
25497
|
}
|
|
25463
25498
|
return target;
|
|
25464
25499
|
}
|
|
25500
|
+
function toValue(source) {
|
|
25501
|
+
return typeof source === "function" ? source() : unref(source);
|
|
25502
|
+
}
|
|
25465
25503
|
function getDPR(element) {
|
|
25466
25504
|
if (typeof window === "undefined") {
|
|
25467
25505
|
return 1;
|
|
@@ -25479,21 +25517,21 @@ function useFloating(reference2, floating, options) {
|
|
|
25479
25517
|
}
|
|
25480
25518
|
const whileElementsMountedOption = options.whileElementsMounted;
|
|
25481
25519
|
const openOption = computed(() => {
|
|
25482
|
-
var
|
|
25483
|
-
return (
|
|
25520
|
+
var _toValue;
|
|
25521
|
+
return (_toValue = toValue(options.open)) != null ? _toValue : true;
|
|
25484
25522
|
});
|
|
25485
|
-
const middlewareOption = computed(() =>
|
|
25523
|
+
const middlewareOption = computed(() => toValue(options.middleware));
|
|
25486
25524
|
const placementOption = computed(() => {
|
|
25487
|
-
var
|
|
25488
|
-
return (
|
|
25525
|
+
var _toValue2;
|
|
25526
|
+
return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : "bottom";
|
|
25489
25527
|
});
|
|
25490
25528
|
const strategyOption = computed(() => {
|
|
25491
|
-
var
|
|
25492
|
-
return (
|
|
25529
|
+
var _toValue3;
|
|
25530
|
+
return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : "absolute";
|
|
25493
25531
|
});
|
|
25494
25532
|
const transformOption = computed(() => {
|
|
25495
|
-
var
|
|
25496
|
-
return (
|
|
25533
|
+
var _toValue4;
|
|
25534
|
+
return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;
|
|
25497
25535
|
});
|
|
25498
25536
|
const referenceElement = computed(() => unwrapElement(reference2.value));
|
|
25499
25537
|
const floatingElement = computed(() => unwrapElement(floating.value));
|
|
@@ -25534,6 +25572,7 @@ function useFloating(reference2, floating, options) {
|
|
|
25534
25572
|
if (referenceElement.value == null || floatingElement.value == null) {
|
|
25535
25573
|
return;
|
|
25536
25574
|
}
|
|
25575
|
+
const open = openOption.value;
|
|
25537
25576
|
computePosition(referenceElement.value, floatingElement.value, {
|
|
25538
25577
|
middleware: middlewareOption.value,
|
|
25539
25578
|
placement: placementOption.value,
|
|
@@ -25544,7 +25583,7 @@ function useFloating(reference2, floating, options) {
|
|
|
25544
25583
|
strategy.value = position.strategy;
|
|
25545
25584
|
placement.value = position.placement;
|
|
25546
25585
|
middlewareData.value = position.middlewareData;
|
|
25547
|
-
isPositioned.value =
|
|
25586
|
+
isPositioned.value = open !== false;
|
|
25548
25587
|
});
|
|
25549
25588
|
}
|
|
25550
25589
|
function cleanup() {
|
|
@@ -25569,7 +25608,7 @@ function useFloating(reference2, floating, options) {
|
|
|
25569
25608
|
isPositioned.value = false;
|
|
25570
25609
|
}
|
|
25571
25610
|
}
|
|
25572
|
-
watch([middlewareOption, placementOption, strategyOption], update, {
|
|
25611
|
+
watch([middlewareOption, placementOption, strategyOption, openOption], update, {
|
|
25573
25612
|
flush: "sync"
|
|
25574
25613
|
});
|
|
25575
25614
|
watch([referenceElement, floatingElement], attach, {
|
|
@@ -25766,9 +25805,9 @@ const _sfc_main$A = {
|
|
|
25766
25805
|
};
|
|
25767
25806
|
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a8a4e8ea"]]);
|
|
25768
25807
|
const _hoisted_1$h = { class: "zw-field" };
|
|
25769
|
-
const _hoisted_2$
|
|
25770
|
-
const _hoisted_3$
|
|
25771
|
-
const _hoisted_4
|
|
25808
|
+
const _hoisted_2$5 = ["for"];
|
|
25809
|
+
const _hoisted_3$1 = ["value", "id", "placeholder"];
|
|
25810
|
+
const _hoisted_4 = {
|
|
25772
25811
|
key: 0,
|
|
25773
25812
|
class: "zw-field__label--error",
|
|
25774
25813
|
"data-test-selector": "error"
|
|
@@ -25809,7 +25848,7 @@ const _sfc_main$z = {
|
|
|
25809
25848
|
class: "zw-field__label",
|
|
25810
25849
|
for: fieldId.value,
|
|
25811
25850
|
"data-test-selector": "label"
|
|
25812
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
25851
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$5),
|
|
25813
25852
|
createElementVNode("input", {
|
|
25814
25853
|
class: "zw-field__input",
|
|
25815
25854
|
type: "text",
|
|
@@ -25818,18 +25857,16 @@ const _sfc_main$z = {
|
|
|
25818
25857
|
placeholder: __props.placeholder,
|
|
25819
25858
|
onInput,
|
|
25820
25859
|
"data-test-selector": "input"
|
|
25821
|
-
}, null, 40, _hoisted_3$
|
|
25822
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_4
|
|
25860
|
+
}, null, 40, _hoisted_3$1),
|
|
25861
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.error), 1)) : createCommentVNode("", true)
|
|
25823
25862
|
]);
|
|
25824
25863
|
};
|
|
25825
25864
|
}
|
|
25826
25865
|
};
|
|
25827
25866
|
const TextField = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dfa0d6f0"]]);
|
|
25828
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-94a6bca2"), n = n(), popScopeId(), n);
|
|
25829
25867
|
const _hoisted_1$g = { class: "zw-checkbox" };
|
|
25830
|
-
const _hoisted_2$
|
|
25831
|
-
const _hoisted_3
|
|
25832
|
-
const _hoisted_4 = { class: "zw-checkbox__label" };
|
|
25868
|
+
const _hoisted_2$4 = ["checked"];
|
|
25869
|
+
const _hoisted_3 = { class: "zw-checkbox__label" };
|
|
25833
25870
|
const _sfc_main$y = {
|
|
25834
25871
|
__name: "Checkbox",
|
|
25835
25872
|
props: {
|
|
@@ -25855,9 +25892,9 @@ const _sfc_main$y = {
|
|
|
25855
25892
|
type: "checkbox",
|
|
25856
25893
|
checked: __props.value,
|
|
25857
25894
|
onClick: onCheckedChanged
|
|
25858
|
-
}, null, 8, _hoisted_2$
|
|
25859
|
-
|
|
25860
|
-
createElementVNode("span",
|
|
25895
|
+
}, null, 8, _hoisted_2$4),
|
|
25896
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "zw-checkbox__indicator zw-margin-right--xs" }, null, -1)),
|
|
25897
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.label), 1)
|
|
25861
25898
|
]);
|
|
25862
25899
|
};
|
|
25863
25900
|
}
|
|
@@ -25890,7 +25927,7 @@ function useDropdownEntityTitle(entityRef) {
|
|
|
25890
25927
|
});
|
|
25891
25928
|
}
|
|
25892
25929
|
const _hoisted_1$f = { class: "zw-dropdown__activator-title zw-text--truncate" };
|
|
25893
|
-
const _hoisted_2$
|
|
25930
|
+
const _hoisted_2$3 = {
|
|
25894
25931
|
key: 0,
|
|
25895
25932
|
class: "zw-dropdown__customized-indicator",
|
|
25896
25933
|
"data-test-selector": "customizedIndicator"
|
|
@@ -25932,7 +25969,7 @@ const _sfc_main$x = {
|
|
|
25932
25969
|
}, {
|
|
25933
25970
|
default: withCtx(() => [
|
|
25934
25971
|
createElementVNode("span", _hoisted_1$f, toDisplayString(unref(activeOptionTitle)), 1),
|
|
25935
|
-
__props.isCustomized ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$
|
|
25972
|
+
__props.isCustomized ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$3, null, 512)), [
|
|
25936
25973
|
[
|
|
25937
25974
|
unref(tooltip),
|
|
25938
25975
|
"Style differs from Page Styles",
|
|
@@ -26007,7 +26044,7 @@ const _sfc_main$w = {
|
|
|
26007
26044
|
};
|
|
26008
26045
|
const DropdownOption = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-2e8320d2"]]);
|
|
26009
26046
|
const _hoisted_1$e = { class: "zw-dropdown__group" };
|
|
26010
|
-
const _hoisted_2$
|
|
26047
|
+
const _hoisted_2$2 = { class: "zw-dropdown__group-title" };
|
|
26011
26048
|
const _sfc_main$v = {
|
|
26012
26049
|
__name: "DropdownGroup",
|
|
26013
26050
|
props: {
|
|
@@ -26021,7 +26058,7 @@ const _sfc_main$v = {
|
|
|
26021
26058
|
const groupTitle = useDropdownEntityTitle(toRef(props, "group"));
|
|
26022
26059
|
return (_ctx, _cache) => {
|
|
26023
26060
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
26024
|
-
createElementVNode("p", _hoisted_2$
|
|
26061
|
+
createElementVNode("p", _hoisted_2$2, toDisplayString(unref(groupTitle)), 1),
|
|
26025
26062
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.group.options, (option) => {
|
|
26026
26063
|
return renderSlot(_ctx.$slots, "option", { option }, () => [
|
|
26027
26064
|
createVNode(unref(DropdownOption), { option }, null, 8, ["option"])
|
|
@@ -26064,7 +26101,7 @@ const _sfc_main$t = {
|
|
|
26064
26101
|
group: option
|
|
26065
26102
|
}, {
|
|
26066
26103
|
option: withCtx((attrs) => [
|
|
26067
|
-
renderSlot(_ctx.$slots, "option",
|
|
26104
|
+
renderSlot(_ctx.$slots, "option", mergeProps({ ref_for: true }, attrs))
|
|
26068
26105
|
]),
|
|
26069
26106
|
_: 2
|
|
26070
26107
|
}, 1032, ["group"])),
|
|
@@ -26816,7 +26853,7 @@ const _hoisted_1$5 = {
|
|
|
26816
26853
|
class: "zw-button__customized-indicator",
|
|
26817
26854
|
"data-test-selector": "customizedIndicator"
|
|
26818
26855
|
};
|
|
26819
|
-
const _hoisted_2$
|
|
26856
|
+
const _hoisted_2$1 = { class: "zw-line-height-control__row" };
|
|
26820
26857
|
const _sfc_main$f = {
|
|
26821
26858
|
__name: "LineHeightControl",
|
|
26822
26859
|
setup(__props) {
|
|
@@ -26868,12 +26905,12 @@ const _sfc_main$f = {
|
|
|
26868
26905
|
class: "zw-margin-bottom--xs",
|
|
26869
26906
|
"field-id": "wswg-line-height"
|
|
26870
26907
|
}, {
|
|
26871
|
-
default: withCtx(() => [
|
|
26908
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
26872
26909
|
createTextVNode(" Line Height ")
|
|
26873
|
-
]),
|
|
26910
|
+
])),
|
|
26874
26911
|
_: 1
|
|
26875
26912
|
}),
|
|
26876
|
-
createElementVNode("div", _hoisted_2$
|
|
26913
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
26877
26914
|
createVNode(unref(Range), {
|
|
26878
26915
|
class: "zw-line-height-control__range",
|
|
26879
26916
|
step: "0.1",
|
|
@@ -27016,9 +27053,7 @@ const RegExps = {
|
|
|
27016
27053
|
MAILTO_PROTOCOL: /^mailto:.+$/,
|
|
27017
27054
|
TEL_PROTOCOL: /^tel:.+$/
|
|
27018
27055
|
};
|
|
27019
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-64870ac2"), n = n(), popScopeId(), n);
|
|
27020
27056
|
const _hoisted_1$3 = { class: "zw-link-modal-header" };
|
|
27021
|
-
const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "zw-link-modal-header__title" }, " Link ", -1));
|
|
27022
27057
|
const _sfc_main$c = {
|
|
27023
27058
|
__name: "LinkControlHeader",
|
|
27024
27059
|
emits: ["remove-link"],
|
|
@@ -27029,7 +27064,7 @@ const _sfc_main$c = {
|
|
|
27029
27064
|
const removeLink = () => emit("remove-link");
|
|
27030
27065
|
return (_ctx, _cache) => {
|
|
27031
27066
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
27032
|
-
|
|
27067
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "zw-link-modal-header__title" }, " Link ", -1)),
|
|
27033
27068
|
createVNode(unref(Button), {
|
|
27034
27069
|
class: "zw-link-modal-header__unlink-button",
|
|
27035
27070
|
disabled: !unref(isLink),
|
|
@@ -27043,7 +27078,7 @@ const _sfc_main$c = {
|
|
|
27043
27078
|
size: "14px",
|
|
27044
27079
|
"auto-color": ""
|
|
27045
27080
|
}),
|
|
27046
|
-
createTextVNode(" Remove ")
|
|
27081
|
+
_cache[0] || (_cache[0] = createTextVNode(" Remove "))
|
|
27047
27082
|
]),
|
|
27048
27083
|
_: 1
|
|
27049
27084
|
}, 8, ["disabled"])
|
|
@@ -27139,9 +27174,9 @@ const _sfc_main$b = {
|
|
|
27139
27174
|
class: "zw-margin-bottom--xxs",
|
|
27140
27175
|
"field-id": "link-destination"
|
|
27141
27176
|
}, {
|
|
27142
|
-
default: withCtx(() => [
|
|
27177
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
27143
27178
|
createTextVNode(" Select section ")
|
|
27144
|
-
]),
|
|
27179
|
+
])),
|
|
27145
27180
|
_: 1
|
|
27146
27181
|
}),
|
|
27147
27182
|
createVNode(unref(Dropdown), {
|
|
@@ -27239,9 +27274,9 @@ const _sfc_main$9 = {
|
|
|
27239
27274
|
return (_ctx, _cache) => {
|
|
27240
27275
|
return openBlock(), createElementBlock("div", null, [
|
|
27241
27276
|
createVNode(unref(FieldLabel), { class: "zw-margin-bottom--xxs" }, {
|
|
27242
|
-
default: withCtx(() => [
|
|
27277
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
27243
27278
|
createTextVNode(" Destination ")
|
|
27244
|
-
]),
|
|
27279
|
+
])),
|
|
27245
27280
|
_: 1
|
|
27246
27281
|
}),
|
|
27247
27282
|
createVNode(unref(Dropdown), {
|
|
@@ -27387,18 +27422,18 @@ const _sfc_main$8 = {
|
|
|
27387
27422
|
skin: "secondary",
|
|
27388
27423
|
onClick: unref(toggler).close
|
|
27389
27424
|
}, {
|
|
27390
|
-
default: withCtx(() => [
|
|
27425
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
27391
27426
|
createTextVNode(" Cancel ")
|
|
27392
|
-
]),
|
|
27427
|
+
])),
|
|
27393
27428
|
_: 1
|
|
27394
27429
|
}, 8, ["onClick"]),
|
|
27395
27430
|
createVNode(unref(Button), {
|
|
27396
27431
|
type: "submit",
|
|
27397
27432
|
skin: "primary"
|
|
27398
27433
|
}, {
|
|
27399
|
-
default: withCtx(() => [
|
|
27434
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
27400
27435
|
createTextVNode(" Save ")
|
|
27401
|
-
]),
|
|
27436
|
+
])),
|
|
27402
27437
|
_: 1
|
|
27403
27438
|
})
|
|
27404
27439
|
])
|
|
@@ -27439,10 +27474,8 @@ const _sfc_main$7 = {
|
|
|
27439
27474
|
};
|
|
27440
27475
|
}
|
|
27441
27476
|
};
|
|
27442
|
-
const
|
|
27443
|
-
const
|
|
27444
|
-
const _hoisted_2 = { class: "zw-style-preset-control__title" };
|
|
27445
|
-
const _hoisted_3 = { class: "zw-style-preset-control__size" };
|
|
27477
|
+
const _hoisted_1$1 = { class: "zw-style-preset-control__title" };
|
|
27478
|
+
const _hoisted_2 = { class: "zw-style-preset-control__size" };
|
|
27446
27479
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27447
27480
|
const _component_DropdownOption = resolveComponent("DropdownOption");
|
|
27448
27481
|
return openBlock(), createBlock(_component_DropdownOption, {
|
|
@@ -27451,9 +27484,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27451
27484
|
option: $props.option
|
|
27452
27485
|
}, {
|
|
27453
27486
|
default: withCtx(() => [
|
|
27454
|
-
|
|
27455
|
-
createElementVNode("span",
|
|
27456
|
-
createElementVNode("span",
|
|
27487
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "zw-style-preset-control__color" }, null, -1)),
|
|
27488
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString($setup.optionTitle), 1),
|
|
27489
|
+
createElementVNode("span", _hoisted_2, toDisplayString($setup.fontSizeTitle), 1)
|
|
27457
27490
|
]),
|
|
27458
27491
|
_: 1
|
|
27459
27492
|
}, 8, ["style", "option"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0-0",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"types": "dist/wysiwyg.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"lint:js": "eslint ./lib",
|
|
31
31
|
"lint:css": "stylelint ./lib/**/*.{css,vue}",
|
|
32
32
|
"optimize-svg": "svgo --config ./config/svgo.js",
|
|
33
|
-
"prepare": "husky
|
|
33
|
+
"prepare": "husky"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@floating-ui/vue": "^1.
|
|
36
|
+
"@floating-ui/vue": "^1.1.5",
|
|
37
37
|
"@tiptap/core": "^2.1.13",
|
|
38
38
|
"@tiptap/extension-document": "^2.1.13",
|
|
39
39
|
"@tiptap/extension-heading": "^2.1.13",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@tiptap/extension-text": "^2.1.13",
|
|
45
45
|
"@tiptap/pm": "^2.1.13",
|
|
46
46
|
"@tiptap/vue-3": "^2.1.13",
|
|
47
|
-
"commander": "^12.
|
|
48
|
-
"jsdom": "^
|
|
47
|
+
"commander": "^12.1.0",
|
|
48
|
+
"jsdom": "^25.0.1",
|
|
49
49
|
"lodash": "^4.17.21"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -65,52 +65,52 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@babel/core": "^7.
|
|
69
|
-
"@babel/eslint-parser": "^7.
|
|
70
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
71
|
-
"@babel/preset-env": "^7.
|
|
72
|
-
"@babel/runtime": "^7.
|
|
68
|
+
"@babel/core": "^7.25.8",
|
|
69
|
+
"@babel/eslint-parser": "^7.25.8",
|
|
70
|
+
"@babel/plugin-transform-runtime": "^7.25.7",
|
|
71
|
+
"@babel/preset-env": "^7.25.8",
|
|
72
|
+
"@babel/runtime": "^7.25.7",
|
|
73
73
|
"@optimize-lodash/rollup-plugin": "^5.0.0",
|
|
74
|
-
"@rollup/plugin-alias": "^5.1.
|
|
75
|
-
"@rollup/plugin-commonjs": "^
|
|
74
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
75
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
76
76
|
"@rollup/plugin-json": "^6.1.0",
|
|
77
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
78
|
-
"@rollup/plugin-replace": "^
|
|
79
|
-
"@rushstack/eslint-patch": "^1.
|
|
80
|
-
"@types/jest": "^29.5.
|
|
77
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
78
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
79
|
+
"@rushstack/eslint-patch": "^1.10.4",
|
|
80
|
+
"@types/jest": "^29.5.13",
|
|
81
81
|
"@types/node": "^20.10.0",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
83
|
-
"@typescript-eslint/parser": "^7.
|
|
84
|
-
"@vitejs/plugin-vue": "^5.1.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
83
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
84
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
85
85
|
"@vue/eslint-config-typescript": "^13.0.0",
|
|
86
|
-
"@vue/test-utils": "^2.4.
|
|
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": "^3.
|
|
90
|
-
"@zipify/eslint-config": "^1.5.
|
|
89
|
+
"@zipify/colorpicker": "^3.3.0-0",
|
|
90
|
+
"@zipify/eslint-config": "^1.5.1",
|
|
91
91
|
"babel-jest": "^29.7.0",
|
|
92
92
|
"esbuild-jest": "^0.5.0",
|
|
93
|
-
"eslint": "^8.57.
|
|
93
|
+
"eslint": "^8.57.1",
|
|
94
94
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
95
|
-
"eslint-plugin-import": "^2.
|
|
95
|
+
"eslint-plugin-import": "^2.31.0",
|
|
96
96
|
"eslint-plugin-jest": "^27.9.0",
|
|
97
|
-
"eslint-plugin-vue": "^9.
|
|
98
|
-
"husky": "^9.
|
|
97
|
+
"eslint-plugin-vue": "^9.29.0",
|
|
98
|
+
"husky": "^9.1.6",
|
|
99
99
|
"jest": "^29.7.0",
|
|
100
100
|
"jest-environment-jsdom": "^29.7.0",
|
|
101
|
-
"lint-staged": "^15.2.
|
|
102
|
-
"postcss-html": "^1.
|
|
103
|
-
"release-it": "^17.
|
|
104
|
-
"rollup": "^4.
|
|
101
|
+
"lint-staged": "^15.2.10",
|
|
102
|
+
"postcss-html": "^1.7.0",
|
|
103
|
+
"release-it": "^17.8.2",
|
|
104
|
+
"rollup": "^4.24.0",
|
|
105
105
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
106
106
|
"rollup-plugin-esbuild-minify": "^1.1.2",
|
|
107
|
-
"simplebar": "^6.2.
|
|
107
|
+
"simplebar": "^6.2.7",
|
|
108
108
|
"stylelint": "^14.16.1",
|
|
109
|
-
"svgo": "^3.2
|
|
110
|
-
"typescript": "^5.
|
|
111
|
-
"vite": "^5.4.
|
|
112
|
-
"vue": "3.
|
|
113
|
-
"vue-tsc": "^2.
|
|
109
|
+
"svgo": "^3.3.2",
|
|
110
|
+
"typescript": "^5.6.3",
|
|
111
|
+
"vite": "^5.4.8",
|
|
112
|
+
"vue": "3.5.12",
|
|
113
|
+
"vue-tsc": "^2.1.6"
|
|
114
114
|
},
|
|
115
115
|
"engines": {
|
|
116
116
|
"node": ">=20.10.0"
|