@zipify/wysiwyg 3.4.1 → 3.5.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/dist/cli.js +2 -2
- package/dist/wysiwyg.css +15 -10
- package/dist/wysiwyg.mjs +659 -534
- package/example/AiComponent.vue +27 -0
- package/example/ExampleApp.vue +5 -1
- package/lib/Wysiwyg.vue +7 -0
- package/lib/assets/icons/sparkles.svg +3 -0
- package/lib/components/toolbar/Toolbar.vue +7 -1
- package/lib/components/toolbar/controls/AiControl.vue +75 -0
- package/lib/components/toolbar/controls/index.js +1 -0
- package/lib/components/toolbar/layouts/ToolbarDesktop.vue +18 -2
- package/lib/extensions/proseMirror/PastePlugin.js +4 -6
- package/package.json +4 -1
package/dist/wysiwyg.css
CHANGED
|
@@ -639,7 +639,12 @@
|
|
|
639
639
|
width: 234px;
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
-
.zw-
|
|
642
|
+
.zw-ai-control__caption[data-v-4001e194] {
|
|
643
|
+
padding-left: var(--zw-offset-xxs);
|
|
644
|
+
padding-right: var(--zw-offset-xs);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.zw-toolbar[data-v-09336b0a] {
|
|
643
648
|
border: 1px solid rgba(var(--zw-color-white), 0.2);
|
|
644
649
|
border-radius: 2px;
|
|
645
650
|
background-color: rgb(var(--zw-color-n15));
|
|
@@ -648,8 +653,8 @@
|
|
|
648
653
|
text-align: left;
|
|
649
654
|
position: absolute;
|
|
650
655
|
}
|
|
651
|
-
.zw-toolbar[data-v-
|
|
652
|
-
.zw-toolbar[data-v-
|
|
656
|
+
.zw-toolbar[data-v-09336b0a]::before,
|
|
657
|
+
.zw-toolbar[data-v-09336b0a]::after {
|
|
653
658
|
content: "";
|
|
654
659
|
display: block;
|
|
655
660
|
width: 100%;
|
|
@@ -657,21 +662,21 @@
|
|
|
657
662
|
position: absolute;
|
|
658
663
|
--zw-toolbar-safe-zone: calc(-1 * var(--zw-toolbar-offset-y));
|
|
659
664
|
}
|
|
660
|
-
.zw-toolbar[data-v-
|
|
665
|
+
.zw-toolbar[data-v-09336b0a]::before {
|
|
661
666
|
top: var(--zw-toolbar-safe-zone);
|
|
662
667
|
}
|
|
663
|
-
.zw-toolbar[data-v-
|
|
668
|
+
.zw-toolbar[data-v-09336b0a]::after {
|
|
664
669
|
bottom: var(--zw-toolbar-safe-zone);
|
|
665
670
|
}
|
|
666
|
-
.zw-toolbar--enter-active[data-v-
|
|
667
|
-
.zw-toolbar--leave-active[data-v-
|
|
671
|
+
.zw-toolbar--enter-active[data-v-09336b0a],
|
|
672
|
+
.zw-toolbar--leave-active[data-v-09336b0a] {
|
|
668
673
|
transition: opacity 150ms ease-out;
|
|
669
674
|
}
|
|
670
|
-
.zw-toolbar--leave-active[data-v-
|
|
675
|
+
.zw-toolbar--leave-active[data-v-09336b0a] {
|
|
671
676
|
transition: opacity 0s ease-in;
|
|
672
677
|
}
|
|
673
|
-
.zw-toolbar--enter[data-v-
|
|
674
|
-
.zw-toolbar--leave-to[data-v-
|
|
678
|
+
.zw-toolbar--enter[data-v-09336b0a],
|
|
679
|
+
.zw-toolbar--leave-to[data-v-09336b0a] {
|
|
675
680
|
opacity: 0;
|
|
676
681
|
}
|
|
677
682
|
.zw-wysiwyg {
|