sprintify-ui 0.11.21 → 0.11.22

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.21",
3
+ "version": "0.11.22",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "generate-llm-txt": "node scripts/generate-llm-txt.js",
@@ -40,6 +40,8 @@
40
40
  "dependencies": {
41
41
  "@floating-ui/vue": "^1.0.6",
42
42
  "@headlessui/vue": "^1.7.19",
43
+ "@tiptap/extension-subscript": "^3.20.4",
44
+ "@tiptap/extension-superscript": "^3.20.4",
43
45
  "color2k": "^2.0.3",
44
46
  "tailwind-merge": "^2.4.0"
45
47
  },
@@ -37,6 +37,8 @@
37
37
  import { Editor, EditorContent } from '@tiptap/vue-3';
38
38
  import Document from '@tiptap/extension-document';
39
39
  import Link from '@tiptap/extension-link';
40
+ import Superscript from '@tiptap/extension-superscript';
41
+ import Subscript from '@tiptap/extension-subscript';
40
42
  import { Placeholder } from '@tiptap/extensions'
41
43
  import { Footnotes, FootnoteReference, Footnote } from "tiptap-footnotes";
42
44
  import StarterKit from '@tiptap/starter-kit';
@@ -70,6 +72,8 @@ const editor = new Editor({
70
72
  Placeholder.configure({
71
73
  placeholder: props.placeholder || 'Start typing here...',
72
74
  }),
75
+ Superscript,
76
+ Subscript,
73
77
  Footnotes,
74
78
  Footnote,
75
79
  FootnoteReference,
@@ -219,6 +223,16 @@ const actions = computed<Action[]>(() => {
219
223
  icon: 'material-symbols:format-underlined',
220
224
  command: () => editor.chain().focus().toggleUnderline().run(),
221
225
  },
226
+ {
227
+ name: 'superscript',
228
+ icon: 'material-symbols:superscript',
229
+ command: () => editor.chain().focus().toggleSuperscript().run(),
230
+ },
231
+ {
232
+ name: 'subscript',
233
+ icon: 'material-symbols:subscript',
234
+ command: () => editor.chain().focus().toggleSubscript().run(),
235
+ },
222
236
  {
223
237
  name: 'link',
224
238
  icon: 'material-symbols:link',