@zipify/wysiwyg 2.0.0-8 → 2.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.
Files changed (37) hide show
  1. package/config/build/cli.config.js +2 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/wysiwyg.css +9 -9
  4. package/dist/wysiwyg.mjs +199 -223
  5. package/lib/Wysiwyg.vue +3 -2
  6. package/lib/assets/icons/indicator.svg +1 -1
  7. package/lib/cli/commands/Command.js +5 -0
  8. package/lib/cli/commands/ToJsonCommand.js +16 -6
  9. package/lib/cli/commands/VersionCommand.js +11 -0
  10. package/lib/cli/commands/index.js +1 -0
  11. package/lib/components/toolbar/controls/AlignmentControl.vue +1 -1
  12. package/lib/components/toolbar/controls/FontColorControl.vue +1 -1
  13. package/lib/components/toolbar/controls/FontFamilyControl.vue +1 -1
  14. package/lib/components/toolbar/controls/FontSizeControl.vue +1 -1
  15. package/lib/components/toolbar/controls/FontWeightControl.vue +1 -1
  16. package/lib/components/toolbar/controls/ItalicControl.vue +1 -1
  17. package/lib/components/toolbar/controls/LineHeightControl.vue +1 -1
  18. package/lib/composables/__tests__/useEditor.test.js +1 -1
  19. package/lib/composables/useEditor.js +9 -8
  20. package/lib/entry-cli.js +3 -2
  21. package/lib/entry-lib.js +1 -1
  22. package/lib/extensions/StylePreset.js +2 -1
  23. package/lib/extensions/Superscript.js +25 -12
  24. package/lib/extensions/__tests__/StylePreset.test.js +4 -4
  25. package/lib/extensions/__tests__/__snapshots__/Superscript.test.js.snap +5 -5
  26. package/lib/extensions/core/NodeProcessor.js +0 -4
  27. package/lib/extensions/core/index.js +14 -7
  28. package/lib/extensions/core/plugins/PastePlugin.js +4 -0
  29. package/lib/extensions/core/plugins/PlaceholderPlugin.js +30 -0
  30. package/lib/extensions/core/plugins/ProseMirrorPlugin.js +4 -3
  31. package/lib/extensions/core/plugins/index.js +1 -0
  32. package/lib/extensions/index.js +2 -1
  33. package/lib/extensions/list/List.js +7 -4
  34. package/lib/extensions/list/ListItem.js +35 -4
  35. package/lib/styles/content.css +1 -1
  36. package/package.json +10 -3
  37. package/lib/extensions/core/CopyPasteProcessor.js +0 -10
package/dist/wysiwyg.css CHANGED
@@ -547,20 +547,20 @@
547
547
  color: rgb(var(--zw-color-white));
548
548
  }
549
549
 
550
- .zw-font-family-control[data-v-2f66bfa6] {
550
+ .zw-font-family-control[data-v-5f8e49dc] {
551
551
  width: 96px;
552
552
  }
553
- .zw-font-family-control__option[data-v-2f66bfa6] {
553
+ .zw-font-family-control__option[data-v-5f8e49dc] {
554
554
  font-weight: 400;
555
555
  font-family: var(--zw-font-family-option);
556
556
  width: 150px;
557
557
  }
558
558
 
559
- .zw-font-weight-control[data-v-5a87e48e] {
559
+ .zw-font-weight-control[data-v-00378d67] {
560
560
  width: 60px;
561
561
  }
562
562
 
563
- .zw-font-size-control[data-v-3f8185ea] {
563
+ .zw-font-size-control[data-v-13bfe2fe] {
564
564
  width: 72px;
565
565
  }
566
566
 
@@ -571,17 +571,17 @@
571
571
  flex-direction: column;
572
572
  }
573
573
 
574
- .zw-line-height-control__modal[data-v-c316d7dc] {
574
+ .zw-line-height-control__modal[data-v-2f58c40f] {
575
575
  padding: var(--zw-offset-sm);
576
576
  }
577
- .zw-line-height-control__row[data-v-c316d7dc] {
577
+ .zw-line-height-control__row[data-v-2f58c40f] {
578
578
  display: flex;
579
579
  align-items: center;
580
580
  }
581
- .zw-line-height-control__range[data-v-c316d7dc] {
581
+ .zw-line-height-control__range[data-v-2f58c40f] {
582
582
  width: 156px;
583
583
  }
584
- .zw-line-height-control__field[data-v-c316d7dc] {
584
+ .zw-line-height-control__field[data-v-2f58c40f] {
585
585
  width: 64px;
586
586
  margin-left: var(--zw-offset-sm);
587
587
  }
@@ -743,7 +743,7 @@ $font-height--xs: 1.33;
743
743
  $font-height--sm: 1.43;
744
744
  $font-height--md: 1.72;
745
745
  */
746
- .zw-wysiwyg__placeholder:first-child:last-child::before {
746
+ .zw-wysiwyg__placeholder::before {
747
747
  content: attr(data-placeholder);
748
748
  color: rgb(var(--zw-color-n70));
749
749
  float: left;