@veevarts/design-system 0.1.19 → 0.1.21

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.
@@ -1,5 +1,7 @@
1
- import { Extensions } from '@tiptap/react';
1
+ import { Extension, Node, Mark } from '@tiptap/core';
2
2
  import { ModifierIdentifier, ModifierType } from '../types';
3
+ type AnyExtension = Extension<unknown, unknown> | Node<unknown, unknown> | Mark<unknown, unknown>;
4
+ type Extensions = AnyExtension[];
3
5
  /**
4
6
  * Creates TipTap extensions array from modifier identifiers
5
7
  *
@@ -1,5 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { Textarea } from '@heroui/react';
3
+ import { JSONContent } from '@tiptap/core';
3
4
  import { ModifierIdentifier } from './modifiers';
4
5
  /**
5
6
  * Editor content configuration props
@@ -66,7 +67,7 @@ export interface EditorContent {
66
67
  /**
67
68
  * JSON representation of content (ProseMirror document)
68
69
  */
69
- json: any;
70
+ json: JSONContent;
70
71
  /**
71
72
  * Plain text content (stripped of formatting)
72
73
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "0.1.19",
4
+ "version": "0.1.21",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -26,11 +26,30 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@heroui/react": ">=2.7.0",
29
+ "@tiptap/extension-color": "^2.27.0",
30
+ "@tiptap/extension-highlight": "^2.27.0",
31
+ "@tiptap/extension-link": "^2.27.0",
32
+ "@tiptap/extension-placeholder": "^2.27.0",
33
+ "@tiptap/extension-task-item": "^2.27.0",
34
+ "@tiptap/extension-task-list": "^2.27.0",
35
+ "@tiptap/extension-text-align": "^2.27.0",
36
+ "@tiptap/extension-underline": "^2.27.0",
37
+ "@tiptap/pm": "^2.27.0",
38
+ "@tiptap/react": "^2.27.0",
39
+ "@tiptap/starter-kit": "^2.27.0",
29
40
  "framer-motion": ">=11.5.6",
41
+ "lucide-react": "^0.562.0",
30
42
  "react": "^18.0.0 || ^19.0.0",
31
43
  "react-dom": "^18.0.0 || ^19.0.0"
32
44
  },
33
45
  "dependencies": {
46
+ "vite-plugin-css-injected-by-js": "3.5.2",
47
+ "vite-plugin-dts": "4.5.4"
48
+ },
49
+ "devDependencies": {
50
+ "@chromatic-com/storybook": "^4.1.3",
51
+ "@eslint/js": "^9.39.1",
52
+ "@heroui/react": "^2.8.7",
34
53
  "@tiptap/extension-color": "^2.27.0",
35
54
  "@tiptap/extension-highlight": "^2.27.2",
36
55
  "@tiptap/extension-link": "^2.27.2",
@@ -43,13 +62,6 @@
43
62
  "@tiptap/react": "^2.27.0",
44
63
  "@tiptap/starter-kit": "^2.27.0",
45
64
  "lucide-react": "^0.562.0",
46
- "vite-plugin-css-injected-by-js": "3.5.2",
47
- "vite-plugin-dts": "4.5.4"
48
- },
49
- "devDependencies": {
50
- "@chromatic-com/storybook": "^4.1.3",
51
- "@eslint/js": "^9.39.1",
52
- "@heroui/react": "^2.8.7",
53
65
  "@storybook/addon-a11y": "^10.0.8",
54
66
  "@storybook/addon-docs": "^10.0.8",
55
67
  "@storybook/addon-onboarding": "^10.0.8",