@uniformdev/canvas-vue 19.200.1-alpha.3 → 19.201.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/index.d.mts +44 -44
- package/dist/index.d.ts +44 -44
- package/dist/index.esm.js +26 -37
- package/dist/index.js +117 -121
- package/dist/index.mjs +26 -37
- package/package.json +16 -11
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/DefaultNotImplementedComponent.ts
|
|
2
2
|
import { CANVAS_LOCALIZATION_TYPE, EMPTY_COMPOSITION } from "@uniformdev/canvas";
|
|
3
|
-
import { defineComponent, h } from "vue
|
|
3
|
+
import { defineComponent, h } from "vue";
|
|
4
4
|
var wrapperStyles = {
|
|
5
5
|
borderLeft: "4px solid #e42535",
|
|
6
6
|
padding: "16px",
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
inject,
|
|
90
90
|
provide,
|
|
91
91
|
resolveComponent as nativeResolveComponent
|
|
92
|
-
} from "vue
|
|
92
|
+
} from "vue";
|
|
93
93
|
var uniformCurrentComponentInjectionKey = "uniformCurrentComponent";
|
|
94
94
|
var useUniformCurrentComponent = () => {
|
|
95
95
|
return inject(uniformCurrentComponentInjectionKey, {});
|
|
@@ -153,11 +153,7 @@ var UniformComponent = defineComponent2({
|
|
|
153
153
|
};
|
|
154
154
|
if (isUsingUniformContext()) {
|
|
155
155
|
const TrackComponent = props.behaviorTracking === "onLoad" ? TrackSlot : Track;
|
|
156
|
-
return () => h2(
|
|
157
|
-
TrackComponent,
|
|
158
|
-
{ behavior: enrichmentTags, key: componentKey.value },
|
|
159
|
-
renderChildren
|
|
160
|
-
);
|
|
156
|
+
return () => h2(TrackComponent, { behavior: enrichmentTags, key: componentKey.value }, renderChildren);
|
|
161
157
|
}
|
|
162
158
|
return renderChildren;
|
|
163
159
|
}
|
|
@@ -165,14 +161,7 @@ var UniformComponent = defineComponent2({
|
|
|
165
161
|
var UniformComponent_default = UniformComponent;
|
|
166
162
|
|
|
167
163
|
// src/components/UniformComposition.ts
|
|
168
|
-
import {
|
|
169
|
-
computed as computed4,
|
|
170
|
-
defineComponent as defineComponent5,
|
|
171
|
-
h as h5,
|
|
172
|
-
inject as inject2,
|
|
173
|
-
provide as provide2,
|
|
174
|
-
shallowRef
|
|
175
|
-
} from "vue-demi";
|
|
164
|
+
import { computed as computed4, defineComponent as defineComponent5, h as h5, inject as inject2, provide as provide2, shallowRef } from "vue";
|
|
176
165
|
|
|
177
166
|
// src/composables/useUniformContextualEditing.ts
|
|
178
167
|
import {
|
|
@@ -184,7 +173,7 @@ import {
|
|
|
184
173
|
isAllowedReferrer,
|
|
185
174
|
isUpdateCompositionInternalMessage
|
|
186
175
|
} from "@uniformdev/canvas";
|
|
187
|
-
import { computed as computed2, onMounted, ref, watch } from "vue
|
|
176
|
+
import { computed as computed2, onMounted, ref, watch } from "vue";
|
|
188
177
|
var registeredCompositionIds = /* @__PURE__ */ new Set();
|
|
189
178
|
var useUniformContextualEditing = ({
|
|
190
179
|
initialCompositionValue,
|
|
@@ -292,7 +281,7 @@ import {
|
|
|
292
281
|
IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
|
|
293
282
|
isComponentPlaceholderId
|
|
294
283
|
} from "@uniformdev/canvas";
|
|
295
|
-
import { defineComponent as defineComponent3, h as h3 } from "vue
|
|
284
|
+
import { defineComponent as defineComponent3, h as h3 } from "vue";
|
|
296
285
|
var ContextualEditingComponentWrapper = defineComponent3({
|
|
297
286
|
name: "ContextualEditingComponentWrapper",
|
|
298
287
|
inheritAttrs: false,
|
|
@@ -356,7 +345,7 @@ import {
|
|
|
356
345
|
mapSlotToTestVariations
|
|
357
346
|
} from "@uniformdev/canvas";
|
|
358
347
|
import { Personalize, Test } from "@uniformdev/context-vue";
|
|
359
|
-
import { computed as computed3, defineComponent as defineComponent4, h as h4 } from "vue
|
|
348
|
+
import { computed as computed3, defineComponent as defineComponent4, h as h4 } from "vue";
|
|
360
349
|
|
|
361
350
|
// src/helpers/convertComponentToProps.ts
|
|
362
351
|
function convertComponentToProps(component) {
|
|
@@ -589,7 +578,7 @@ var UniformComposition_default = UniformComposition;
|
|
|
589
578
|
|
|
590
579
|
// src/components/UniformPlayground.ts
|
|
591
580
|
import { EMPTY_COMPOSITION as EMPTY_COMPOSITION3 } from "@uniformdev/canvas";
|
|
592
|
-
import { defineComponent as defineComponent6, h as h6 } from "vue
|
|
581
|
+
import { defineComponent as defineComponent6, h as h6 } from "vue";
|
|
593
582
|
var UniformPlayground = defineComponent6({
|
|
594
583
|
name: "UniformPlayground",
|
|
595
584
|
inheritAttrs: false,
|
|
@@ -604,7 +593,7 @@ var UniformPlayground = defineComponent6({
|
|
|
604
593
|
});
|
|
605
594
|
|
|
606
595
|
// src/components/UniformRichText/nodes/HeadingRichTextNode.ts
|
|
607
|
-
import { h as h7 } from "vue
|
|
596
|
+
import { h as h7 } from "vue";
|
|
608
597
|
var HeadingRichTextNode = (props, context) => {
|
|
609
598
|
const { tag } = props.node;
|
|
610
599
|
return h7(tag != null ? tag : "h1", {}, context.slots);
|
|
@@ -612,7 +601,7 @@ var HeadingRichTextNode = (props, context) => {
|
|
|
612
601
|
|
|
613
602
|
// src/components/UniformRichText/nodes/LinkRichTextNode.ts
|
|
614
603
|
import { linkParamValueToHref } from "@uniformdev/richtext";
|
|
615
|
-
import { h as h8 } from "vue
|
|
604
|
+
import { h as h8 } from "vue";
|
|
616
605
|
var LinkRichTextNode = (props, context) => {
|
|
617
606
|
const { link } = props.node;
|
|
618
607
|
return h8(
|
|
@@ -625,7 +614,7 @@ var LinkRichTextNode = (props, context) => {
|
|
|
625
614
|
};
|
|
626
615
|
|
|
627
616
|
// src/components/UniformRichText/nodes/ListItemRichTextNode.ts
|
|
628
|
-
import { h as h9 } from "vue
|
|
617
|
+
import { h as h9 } from "vue";
|
|
629
618
|
var ListItemRichTextNode = (props, context) => {
|
|
630
619
|
const { value } = props.node;
|
|
631
620
|
return h9(
|
|
@@ -638,7 +627,7 @@ var ListItemRichTextNode = (props, context) => {
|
|
|
638
627
|
};
|
|
639
628
|
|
|
640
629
|
// src/components/UniformRichText/nodes/ListRichTextNode.ts
|
|
641
|
-
import { h as h10 } from "vue
|
|
630
|
+
import { h as h10 } from "vue";
|
|
642
631
|
var ListRichTextNode = (props, context) => {
|
|
643
632
|
const { tag } = props.node;
|
|
644
633
|
return h10(tag != null ? tag : "h1", {}, context.slots);
|
|
@@ -646,7 +635,7 @@ var ListRichTextNode = (props, context) => {
|
|
|
646
635
|
|
|
647
636
|
// src/components/UniformRichText/nodes/ParagraphRichTextNode.ts
|
|
648
637
|
import { isPureDirection, isPureTextAlign } from "@uniformdev/richtext";
|
|
649
|
-
import { h as h11 } from "vue
|
|
638
|
+
import { h as h11 } from "vue";
|
|
650
639
|
var ParagraphRichTextNode = (props, context) => {
|
|
651
640
|
const { format, direction } = props.node;
|
|
652
641
|
return h11(
|
|
@@ -660,20 +649,20 @@ var ParagraphRichTextNode = (props, context) => {
|
|
|
660
649
|
};
|
|
661
650
|
|
|
662
651
|
// src/components/UniformRichText/nodes/QuoteRichTextNode.ts
|
|
663
|
-
import { h as h12 } from "vue
|
|
652
|
+
import { h as h12 } from "vue";
|
|
664
653
|
var QuoteRichTextNode = (_, context) => {
|
|
665
654
|
return h12("blockquote", {}, context.slots);
|
|
666
655
|
};
|
|
667
656
|
|
|
668
657
|
// src/components/UniformRichText/nodes/RootRichTextNode.ts
|
|
669
|
-
import { h as h13 } from "vue
|
|
658
|
+
import { h as h13 } from "vue";
|
|
670
659
|
var RootRichTextNode = (props, c) => {
|
|
671
660
|
return h13(() => c.slots.default ? c.slots.default() : null);
|
|
672
661
|
};
|
|
673
662
|
|
|
674
663
|
// src/components/UniformRichText/nodes/TableCellRichTextNode.ts
|
|
675
664
|
import { getRichTextTagFromTableCellHeaderState } from "@uniformdev/richtext";
|
|
676
|
-
import { h as h14 } from "vue
|
|
665
|
+
import { h as h14 } from "vue";
|
|
677
666
|
var TableCellRichTextNode = (props, context) => {
|
|
678
667
|
const { headerState } = props.node;
|
|
679
668
|
const tag = getRichTextTagFromTableCellHeaderState(headerState);
|
|
@@ -681,20 +670,20 @@ var TableCellRichTextNode = (props, context) => {
|
|
|
681
670
|
};
|
|
682
671
|
|
|
683
672
|
// src/components/UniformRichText/nodes/TableRichTextNode.ts
|
|
684
|
-
import { h as h15 } from "vue
|
|
673
|
+
import { h as h15 } from "vue";
|
|
685
674
|
var TableRichTextNode = (_, context) => {
|
|
686
675
|
return h15("table", {}, h15("tbody", {}, context.slots));
|
|
687
676
|
};
|
|
688
677
|
|
|
689
678
|
// src/components/UniformRichText/nodes/TableRowRichTextNode.ts
|
|
690
|
-
import { h as h16 } from "vue
|
|
679
|
+
import { h as h16 } from "vue";
|
|
691
680
|
var TableRowRichTextNode = (_, context) => {
|
|
692
681
|
return h16("tr", {}, context.slots);
|
|
693
682
|
};
|
|
694
683
|
|
|
695
684
|
// src/components/UniformRichText/nodes/TextRichTextNode.ts
|
|
696
685
|
import { getRichTextTagsFromTextFormat } from "@uniformdev/richtext";
|
|
697
|
-
import { h as h17 } from "vue
|
|
686
|
+
import { h as h17 } from "vue";
|
|
698
687
|
var TextRichTextNode = (props) => {
|
|
699
688
|
const { format, text } = props.node;
|
|
700
689
|
const tags = getRichTextTagsFromTextFormat(format);
|
|
@@ -715,26 +704,26 @@ import {
|
|
|
715
704
|
ATTRIBUTE_PARAMETER_TYPE
|
|
716
705
|
} from "@uniformdev/canvas";
|
|
717
706
|
import { isRichTextNode as isRichTextNode2, isRichTextValueConsideredEmpty } from "@uniformdev/richtext";
|
|
718
|
-
import { computed as computed5, defineComponent as defineComponent8, h as h22 } from "vue
|
|
707
|
+
import { computed as computed5, defineComponent as defineComponent8, h as h22 } from "vue";
|
|
719
708
|
|
|
720
709
|
// src/components/UniformRichText/UniformRichTextNode.ts
|
|
721
710
|
import { isRichTextNode } from "@uniformdev/richtext";
|
|
722
|
-
import { defineComponent as defineComponent7, h as h21 } from "vue
|
|
711
|
+
import { defineComponent as defineComponent7, h as h21 } from "vue";
|
|
723
712
|
|
|
724
713
|
// src/components/UniformRichText/nodes/CodeRichTextNode.ts
|
|
725
|
-
import { h as h18 } from "vue
|
|
714
|
+
import { h as h18 } from "vue";
|
|
726
715
|
var CodeRichTextNode = (_, context) => {
|
|
727
716
|
return h18("pre", {}, h18("code", {}, context.slots));
|
|
728
717
|
};
|
|
729
718
|
|
|
730
719
|
// src/components/UniformRichText/nodes/LinebreakRichTextNode.ts
|
|
731
|
-
import { h as h19 } from "vue
|
|
720
|
+
import { h as h19 } from "vue";
|
|
732
721
|
var LinebreakRichTextNode = () => {
|
|
733
722
|
return h19("br", {});
|
|
734
723
|
};
|
|
735
724
|
|
|
736
725
|
// src/components/UniformRichText/nodes/TabRichTextNode.ts
|
|
737
|
-
import { h as h20 } from "vue
|
|
726
|
+
import { h as h20 } from "vue";
|
|
738
727
|
var TabRichTextNode = () => {
|
|
739
728
|
return h20("", {}, " ");
|
|
740
729
|
};
|
|
@@ -894,7 +883,7 @@ import {
|
|
|
894
883
|
ATTRIBUTE_PARAMETER_VALUE,
|
|
895
884
|
ATTRIBUTE_PLACEHOLDER
|
|
896
885
|
} from "@uniformdev/canvas";
|
|
897
|
-
import { computed as computed6, defineComponent as defineComponent9, h as h23, ref as ref2 } from "vue
|
|
886
|
+
import { computed as computed6, defineComponent as defineComponent9, h as h23, ref as ref2 } from "vue";
|
|
898
887
|
var DEFAULT_ELEMENT_TYPE = "span";
|
|
899
888
|
var UniformText = defineComponent9({
|
|
900
889
|
name: "UniformText",
|
|
@@ -986,7 +975,7 @@ import {
|
|
|
986
975
|
createEventBus,
|
|
987
976
|
subscribeToComposition
|
|
988
977
|
} from "@uniformdev/canvas";
|
|
989
|
-
import { watch as watch2 } from "vue
|
|
978
|
+
import { watch as watch2 } from "vue";
|
|
990
979
|
async function useCompositionEventEffect({
|
|
991
980
|
enabled,
|
|
992
981
|
projectId,
|