sprintify-ui 0.11.8 → 0.11.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -46,6 +46,11 @@ body {
46
46
  @apply text-base leading-relaxed;
47
47
  margin: 1em 0;
48
48
  }
49
+
50
+ p:has(+ ol),
51
+ p:has(+ ul) {
52
+ margin-bottom: 0;
53
+ }
49
54
 
50
55
  h1,
51
56
  h2,
@@ -299,4 +304,4 @@ body .tiptap {
299
304
  height: 0;
300
305
  pointer-events: none;
301
306
  }
302
- }
307
+ }
@@ -54,3 +54,19 @@
54
54
  border-radius: 0;
55
55
  }
56
56
  }
57
+
58
+ /** prose overwrites */
59
+
60
+ body .prose {
61
+
62
+ line-height: 1.5;
63
+
64
+ & p:has(+ ol),
65
+ & p:has(+ ul) {
66
+ margin-bottom: 0;
67
+ }
68
+
69
+ ul, ol {
70
+ margin-top: 0;
71
+ }
72
+ }
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script lang="ts" setup>
16
- import { ClassicEditor, InlineEditor, BalloonEditor, Essentials, SourceEditing, MediaEmbed, Paragraph, Bold, Italic, List, Link, Autoformat, Heading, Underline, Code, CodeBlock, Table, TableToolbar, Image, ImageResize, ImageStyle, ImageToolbar, ImageInsert, AutoImage, Base64UploadAdapter, PasteFromOffice, BlockToolbar, Font, FindAndReplace, RemoveFormat } from 'ckeditor5';
16
+ import { ClassicEditor, InlineEditor, BalloonEditor, Essentials, SourceEditing, MediaEmbed, Paragraph, Bold, Italic, List, Link, Autoformat, Heading, Underline, Code, CodeBlock, Indent, IndentBlock, Table, TableToolbar, Image, ImageResize, ImageStyle, ImageToolbar, ImageInsert, AutoImage, Base64UploadAdapter, PasteFromOffice, BlockToolbar, Font, FindAndReplace, RemoveFormat } from 'ckeditor5';
17
17
  import { Ckeditor } from '@ckeditor/ckeditor5-vue';
18
18
  import { Size } from '@/utils/sizes';
19
19
  import { ToolbarOption } from '@/types/ToolbarOption';
@@ -33,11 +33,11 @@ const props = withDefaults(defineProps<{
33
33
  'undo',
34
34
  'redo',
35
35
  '|',
36
- 'sourceEditing',
37
36
  'heading',
38
37
  'bold',
39
38
  'italic',
40
39
  'underline',
40
+ 'fontBackgroundColor',
41
41
  '|',
42
42
  'link',
43
43
  'insertImage',
@@ -45,9 +45,6 @@ const props = withDefaults(defineProps<{
45
45
  'numberedList',
46
46
  'bulletedList',
47
47
  '|',
48
- 'code',
49
- 'codeblock',
50
- '|',
51
48
  'insertTable'
52
49
  ] as ToolbarOption[];
53
50
  },
@@ -99,6 +96,8 @@ const config = computed(() => {
99
96
  Code,
100
97
  CodeBlock,
101
98
  List,
99
+ Indent,
100
+ IndentBlock,
102
101
  Link,
103
102
  Autoformat,
104
103
  Heading,
@@ -42,6 +42,7 @@ const Template = (args) => ({
42
42
  },
43
43
  template: `
44
44
  <BaseRichText v-model="value" v-bind="args" class="w-full"></BaseRichText>
45
+ <div class="prose" v-html="value"></div>
45
46
  <ShowValue :value="value" />
46
47
  `,
47
48
  });