@cyberskill/cyber-editor 3.4.1 → 3.4.2

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 { NodeViewProps, Editor } from '@tiptap/react';
2
- import { default as React } from 'react';
1
+ import { NodeViewProps } from '@tiptap/react';
2
+ import React from 'react';
3
+ import 'react-resizable/css/styles.css';
4
+ import { Editor } from '@tiptap/react';
3
5
  interface ImageViewProps extends NodeViewProps {
4
6
  editor: Editor;
5
7
  }
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { Editor } from '@tiptap/react';
1
+ import React from "react";
2
+ import type { Editor } from "@tiptap/react";
3
3
  interface I_TableSelectorProps {
4
4
  editor: Editor;
5
5
  buttonClass: string;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default as CyberEditorProvider } from './extensions/editor-provider';
2
+ import './index.css';
@@ -1 +1 @@
1
- export declare const extensions: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<import('@tiptap/extension-color').ColorOptions, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any>)[];
1
+ export declare const extensions: (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/extension-color").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-underline").UnderlineOptions, any>)[];
package/package.json CHANGED
@@ -1,66 +1,67 @@
1
1
  {
2
2
  "name": "@cyberskill/cyber-editor",
3
- "version": "3.4.1",
4
- "description": "A reusable rich text editor with Tiptap, Antd, and TailwindCSS.",
5
- "main": "dist/cyber-editor.umd.js",
3
+ "version": "3.4.2",
4
+ "description": "Change build",
5
+ "main": "dist/cyber-editor.cjs.js",
6
6
  "module": "dist/cyber-editor.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": "./dist/cyber-editor.es.js",
11
- "require": "./dist/cyber-editor.umd.js",
11
+ "require": "./dist/cyber-editor.cjs.js",
12
12
  "types": "./dist/index.d.ts"
13
13
  },
14
- "./dist/assets/cyber.css": "./dist/assets/cyber.css"
14
+ "./index.css": "./dist/cyber-editor.css"
15
15
  },
16
16
  "files": [
17
17
  "dist"
18
18
  ],
19
19
  "scripts": {
20
- "build": "vite build",
20
+ "build": "vite build && tsc --project tsconfig.app.json --emitDeclarationOnly",
21
21
  "dev": "vite",
22
22
  "lint": "npx eslint . --ext .ts,.tsx --fix",
23
23
  "prepare": "husky install"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^18.0.0",
27
- "react-dom": "^18.0.0"
28
- },
29
- "dependencies": {
30
- "@tiptap/core": "2.11.3",
27
+ "react-dom": "^18.0.0",
28
+ "antd": "^5.23.0",
29
+ "@tiptap/core": "^2.11.3",
30
+ "@tiptap/react": "^2.11.5",
31
+ "@tiptap/starter-kit": "^2.11.3",
31
32
  "@tiptap/extension-color": "^2.9.1",
32
- "@tiptap/extension-highlight": "2.11.3",
33
- "@tiptap/extension-image": "2.11.5",
34
- "@tiptap/extension-list-item": "^2.9.1",
35
- "@tiptap/extension-subscript": "2.11.5",
36
- "@tiptap/extension-superscript": "2.11.5",
37
- "@tiptap/extension-table": "2.11.5",
38
- "@tiptap/extension-table-cell": "2.11.5",
39
- "@tiptap/extension-table-header": "2.11.5",
40
- "@tiptap/extension-table-row": "2.11.5",
41
- "@tiptap/extension-task-item": "2.11.5",
42
- "@tiptap/extension-task-list": "2.11.5",
43
- "@tiptap/extension-text-align": "2.11.5",
44
33
  "@tiptap/extension-text-style": "^2.9.1",
45
- "@tiptap/extension-underline": "2.11.5",
46
- "@tiptap/react": "2.11.5",
47
- "@tiptap/starter-kit": "2.11.3",
48
- "antd": "^5.23.0",
34
+ "@tiptap/extension-list-item": "^2.9.1",
35
+ "@tiptap/extension-highlight": "^2.11.3",
36
+ "@tiptap/extension-underline": "^2.11.5",
37
+ "@tiptap/extension-subscript": "^2.11.5",
38
+ "@tiptap/extension-superscript": "^2.11.5",
39
+ "@tiptap/extension-text-align": "^2.11.5",
40
+ "@tiptap/extension-task-list": "^2.11.5",
41
+ "@tiptap/extension-task-item": "^2.11.5",
42
+ "@tiptap/extension-table": "^2.11.5",
43
+ "@tiptap/extension-table-row": "^2.11.5",
44
+ "@tiptap/extension-table-header": "^2.11.5",
45
+ "@tiptap/extension-table-cell": "^2.11.5",
46
+ "@tiptap/extension-image": "^2.11.5"
47
+ },
48
+ "dependencies": {
49
49
  "clsx": "^2.1.1",
50
- "lucide-react": "0.474.0",
50
+ "lucide-react": "^0.474.0",
51
51
  "react-icons": "^5.4.0",
52
- "react-resizable": "3.0.5",
53
- "tailwindcss": "^3.0.0"
52
+ "react-resizable": "^3.0.5"
54
53
  },
55
54
  "devDependencies": {
56
55
  "@types/react": "^18.0.0",
57
56
  "@types/react-dom": "^18.0.0",
58
- "@types/react-resizable": "3.0.8",
57
+ "@types/react-resizable": "^3.0.8",
59
58
  "@vitejs/plugin-react-swc": "^3.7.1",
60
- "autoprefixer": "10.4.20",
61
- "husky": "9.1.7",
59
+ "autoprefixer": "^10.4.20",
60
+ "husky": "^9.1.7",
61
+ "postcss": "^8.4.47",
62
+ "tailwindcss": "^3.0.0",
62
63
  "typescript": "^5.0.0",
63
64
  "vite": "^5.0.0",
64
- "vite-plugin-dts": "4.5.0"
65
+ "vite-plugin-dts": "^4.5.0"
65
66
  }
66
67
  }