@edifice.io/tiptap-extensions 2.0.0-develop-rc.0 → 2.0.0-develop-rc.7

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 (62) hide show
  1. package/README.md +1 -1
  2. package/dist/abbr/abbr.cjs +1 -32
  3. package/dist/abbr/abbr.d.ts +12 -12
  4. package/dist/abbr/abbr.js +13 -17
  5. package/dist/alert/alert.cjs +1 -32
  6. package/dist/alert/alert.js +22 -20
  7. package/dist/attachment/attachment.cjs +1 -73
  8. package/dist/attachment/attachment.d.ts +6 -6
  9. package/dist/attachment/attachment.js +29 -40
  10. package/dist/audio/audio.cjs +2 -52
  11. package/dist/audio/audio.d.ts +13 -17
  12. package/dist/audio/audio.js +25 -28
  13. package/dist/font-size/font-size.cjs +1 -48
  14. package/dist/font-size/font-size.d.ts +13 -13
  15. package/dist/font-size/font-size.js +17 -29
  16. package/dist/heading/heading.cjs +1 -61
  17. package/dist/heading/heading.d.ts +12 -10
  18. package/dist/heading/heading.js +25 -39
  19. package/dist/highlight/highlight.cjs +1 -25
  20. package/dist/highlight/highlight.d.ts +1 -4
  21. package/dist/highlight/highlight.js +13 -11
  22. package/dist/hyperlink/hyperlink.cjs +1 -47
  23. package/dist/hyperlink/hyperlink.d.ts +24 -27
  24. package/dist/hyperlink/hyperlink.js +19 -21
  25. package/dist/iframe/iframe.cjs +1 -69
  26. package/dist/iframe/iframe.d.ts +14 -12
  27. package/dist/iframe/iframe.js +32 -48
  28. package/dist/image/custom-image.cjs +1 -162
  29. package/dist/image/custom-image.d.ts +16 -19
  30. package/dist/image/custom-image.js +130 -179
  31. package/dist/index.cjs +1 -43
  32. package/dist/index.js +21 -21
  33. package/dist/line-height/line-height.cjs +1 -33
  34. package/dist/line-height/line-height.js +15 -18
  35. package/dist/linker/linker.cjs +1 -95
  36. package/dist/linker/linker.d.ts +17 -17
  37. package/dist/linker/linker.js +49 -57
  38. package/dist/mathjax/mathjax.cjs +1 -47
  39. package/dist/mathjax/mathjax.js +20 -30
  40. package/dist/paragraph/paragraph.cjs +1 -13
  41. package/dist/paragraph/paragraph.d.ts +1 -4
  42. package/dist/paragraph/paragraph.js +8 -6
  43. package/dist/speech-recognition/speech-recognition.cjs +1 -76
  44. package/dist/speech-recognition/speech-recognition.cjs.map +1 -1
  45. package/dist/speech-recognition/speech-recognition.d.ts +12 -12
  46. package/dist/speech-recognition/speech-recognition.js +41 -57
  47. package/dist/speech-recognition/speech-recognition.js.map +1 -1
  48. package/dist/speech-synthesis/speech-synthesis.cjs +1 -32
  49. package/dist/speech-synthesis/speech-synthesis.d.ts +9 -9
  50. package/dist/speech-synthesis/speech-synthesis.js +10 -19
  51. package/dist/table-cell/table-cell.cjs +1 -27
  52. package/dist/table-cell/table-cell.d.ts +1 -4
  53. package/dist/table-cell/table-cell.js +12 -17
  54. package/dist/transform/html-to-json/html-to-json.cjs +1 -4
  55. package/dist/transform/html-to-json/html-to-json.d.ts +1 -4
  56. package/dist/transform/html-to-json/html-to-json.js +4 -2
  57. package/dist/transform/json-to-html/json-to-html.cjs +1 -4
  58. package/dist/transform/json-to-html/json-to-html.js +4 -2
  59. package/dist/video/video.cjs +2 -111
  60. package/dist/video/video.d.ts +19 -28
  61. package/dist/video/video.js +90 -114
  62. package/package.json +47 -36
@@ -1,91 +1,4 @@
1
- 'use strict';
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
- const core = require('@tiptap/core'),
4
- VIDEO_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,
5
- Video = core.Node.create({
6
- name: 'video',
7
- group: 'block',
8
- draggable: !0,
9
- selectable: !0,
10
- addAttributes() {
11
- return {
12
- src: {
13
- default: null,
14
- parseHTML: (el) => el.getAttribute('src'),
15
- renderHTML: (attrs) => ({ src: attrs.src }),
16
- },
17
- controls: {
18
- default: !0,
19
- parseHTML: (el) =>
20
- el.getAttribute('controls')
21
- ? el.getAttribute('controls')
22
- : !!el.hasAttribute('controls'),
23
- renderHTML: (attrs) => ({ controls: attrs.controls }),
24
- },
25
- documentId: {
26
- default: '',
27
- renderHTML: (attributes) => ({
28
- 'data-document-id': attributes.documentId,
29
- }),
30
- parseHTML: (element) => element.getAttribute('data-document-id'),
31
- },
32
- isCaptation: {
33
- default: !1,
34
- renderHTML: (attributes) => ({
35
- 'data-document-is-captation': attributes.isCaptation,
36
- }),
37
- parseHTML: (element) =>
38
- element.getAttribute('data-document-is-captation'),
39
- },
40
- videoResolution: {
41
- default: '404x720',
42
- renderHTML: (attributes) => ({
43
- 'data-video-resolution': attributes.videoResolution,
44
- }),
45
- parseHTML: (element) => element.getAttribute('data-video-resolution'),
46
- },
47
- width: {
48
- renderHTML: (attributes) => ({ width: parseInt(attributes.width) }),
49
- parseHTML: (element) => element.getAttribute('width'),
50
- },
51
- height: {
52
- renderHTML: (attributes) => ({ height: parseInt(attributes.height) }),
53
- parseHTML: (element) => element.getAttribute('height'),
54
- },
55
- };
56
- },
57
- parseHTML() {
58
- return [
59
- {
60
- tag: 'div.video-wrapper>video,video',
61
- getAttrs: (el) => ({ src: el.getAttribute('src') }),
62
- },
63
- ];
64
- },
65
- renderHTML({ HTMLAttributes }) {
66
- return [
67
- 'div',
68
- { class: 'video-wrapper' },
69
- ['video', core.mergeAttributes(HTMLAttributes)],
70
- ];
71
- },
72
- addCommands() {
73
- return {
74
- setVideo:
75
- (
76
- id,
77
- src,
78
- isCaptation,
79
- width = 350,
80
- height = 197,
81
- controls = !0,
82
- controlslist = 'nodownload',
83
- options,
84
- ) =>
85
- ({ commands, state }) =>
86
- commands.insertContentAt(
87
- state.selection,
88
- `<video
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@tiptap/core"),VIDEO_INPUT_REGEX=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,Video=core.Node.create({name:"video",group:"block",draggable:!0,selectable:!0,addAttributes(){return{src:{default:null,parseHTML:el=>el.getAttribute("src"),renderHTML:attrs=>({src:attrs.src})},controls:{default:!0,parseHTML:el=>el.getAttribute("controls")?el.getAttribute("controls"):!!el.hasAttribute("controls"),renderHTML:attrs=>({controls:attrs.controls})},documentId:{default:"",renderHTML:attributes=>({"data-document-id":attributes.documentId}),parseHTML:element=>element.getAttribute("data-document-id")},isCaptation:{default:!1,renderHTML:attributes=>({"data-document-is-captation":attributes.isCaptation}),parseHTML:element=>element.getAttribute("data-document-is-captation")},videoResolution:{default:"404x720",renderHTML:attributes=>({"data-video-resolution":attributes.videoResolution}),parseHTML:element=>element.getAttribute("data-video-resolution")},width:{renderHTML:attributes=>({width:parseInt(attributes.width)}),parseHTML:element=>element.getAttribute("width")},height:{renderHTML:attributes=>({height:parseInt(attributes.height)}),parseHTML:element=>element.getAttribute("height")}}},parseHTML(){return[{tag:"div.video-wrapper>video,video",getAttrs:el=>({src:el.getAttribute("src")})}]},renderHTML({HTMLAttributes}){return["div",{class:"video-wrapper"},["video",core.mergeAttributes(HTMLAttributes)]]},addCommands(){return{setVideo:(id,src,isCaptation,width=350,height=197,controls=!0,controlslist="nodownload",options)=>({commands,state})=>commands.insertContentAt(state.selection,`<video
89
2
  controls="${controls}"
90
3
  controlslist="${controlslist}"
91
4
  src="${src}"
@@ -93,27 +6,5 @@ const core = require('@tiptap/core'),
93
6
  height="${height}"
94
7
  data-document-id="${id}"
95
8
  data-document-is-captation="${isCaptation}"
96
- data-video-resolution="${width}x${height}" />`,
97
- options,
98
- ),
99
- toggleVideo:
100
- () =>
101
- ({ commands }) =>
102
- commands.toggleNode(this.name, 'paragraph'),
103
- };
104
- },
105
- addInputRules() {
106
- return [
107
- core.nodeInputRule({
108
- find: VIDEO_INPUT_REGEX,
109
- type: this.type,
110
- getAttributes: (match) => {
111
- const [, , src] = match;
112
- return { src };
113
- },
114
- }),
115
- ];
116
- },
117
- });
118
- exports.Video = Video;
9
+ data-video-resolution="${width}x${height}" />`,options),toggleVideo:()=>({commands})=>commands.toggleNode(this.name,"paragraph")}},addInputRules(){return[core.nodeInputRule({find:VIDEO_INPUT_REGEX,type:this.type,getAttributes:match=>{const[,,src]=match;return{src}}})]}});exports.Video=Video;
119
10
  //# sourceMappingURL=video.cjs.map
@@ -1,34 +1,25 @@
1
1
  import { Node } from '@tiptap/core';
2
2
  export interface VideoOptions {
3
- url: string;
4
- width: number;
5
- height: number;
6
- HTMLAttributes: Record<string, any>;
3
+ url: string;
4
+ width: number;
5
+ height: number;
6
+ HTMLAttributes: Record<string, any>;
7
7
  }
8
8
  declare module '@tiptap/core' {
9
- interface Commands<ReturnType> {
10
- video: {
11
- /**
12
- * Set a video node
13
- * @param options.updateSelection set to true will select the newly inserted content
14
- */
15
- setVideo: (
16
- id: string,
17
- src: string,
18
- isCaptation: boolean,
19
- width?: number,
20
- height?: number,
21
- controls?: boolean,
22
- controlslist?: string,
23
- options?: {
24
- updateSelection: boolean;
25
- },
26
- ) => ReturnType;
27
- /**
28
- * Toggle a video
29
- */
30
- toggleVideo: (src: string) => ReturnType;
31
- };
32
- }
9
+ interface Commands<ReturnType> {
10
+ video: {
11
+ /**
12
+ * Set a video node
13
+ * @param options.updateSelection set to true will select the newly inserted content
14
+ */
15
+ setVideo: (id: string, src: string, isCaptation: boolean, width?: number, height?: number, controls?: boolean, controlslist?: string, options?: {
16
+ updateSelection: boolean;
17
+ }) => ReturnType;
18
+ /**
19
+ * Toggle a video
20
+ */
21
+ toggleVideo: (src: string) => ReturnType;
22
+ };
23
+ }
33
24
  }
34
25
  export declare const Video: Node<any, any>;
@@ -1,95 +1,72 @@
1
- import { Node, mergeAttributes, nodeInputRule } from '@tiptap/core';
2
- const VIDEO_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,
3
- Video = Node.create({
4
- name: 'video',
5
- group: 'block',
6
- draggable: !0,
7
- selectable: !0,
8
- addAttributes() {
9
- return {
10
- src: {
11
- default: null,
12
- parseHTML: (el) => el.getAttribute('src'),
13
- renderHTML: (attrs) => ({ src: attrs.src }),
14
- },
15
- controls: {
16
- default: !0,
17
- parseHTML: (el) =>
18
- el.getAttribute('controls')
19
- ? el.getAttribute('controls')
20
- : !!el.hasAttribute('controls'),
21
- renderHTML: (attrs) => ({ controls: attrs.controls }),
22
- },
23
- documentId: {
24
- default: '',
25
- renderHTML: (attributes) => ({
26
- 'data-document-id': attributes.documentId,
27
- }),
28
- parseHTML: (element) => element.getAttribute('data-document-id'),
29
- },
30
- isCaptation: {
31
- default: !1,
32
- renderHTML: (attributes) => ({
33
- 'data-document-is-captation': attributes.isCaptation,
34
- }),
35
- parseHTML: (element) =>
36
- element.getAttribute('data-document-is-captation'),
37
- },
38
- videoResolution: {
39
- default: '404x720',
40
- renderHTML: (attributes) => ({
41
- 'data-video-resolution': attributes.videoResolution,
42
- }),
43
- parseHTML: (element) => element.getAttribute('data-video-resolution'),
44
- },
45
- width: {
46
- renderHTML: (attributes) => ({
47
- width: parseInt(attributes.width),
48
- }),
49
- parseHTML: (element) => element.getAttribute('width'),
50
- },
51
- height: {
52
- renderHTML: (attributes) => ({
53
- height: parseInt(attributes.height),
54
- }),
55
- parseHTML: (element) => element.getAttribute('height'),
56
- },
57
- };
58
- },
59
- parseHTML() {
60
- return [
61
- {
62
- tag: 'div.video-wrapper>video,video',
63
- getAttrs: (el) => ({
64
- src: el.getAttribute('src'),
65
- }),
66
- },
67
- ];
68
- },
69
- renderHTML({ HTMLAttributes }) {
70
- return [
71
- 'div',
72
- { class: 'video-wrapper' },
73
- ['video', mergeAttributes(HTMLAttributes)],
74
- ];
75
- },
76
- addCommands() {
77
- return {
78
- setVideo:
79
- (
80
- id,
81
- src,
82
- isCaptation,
83
- width = 350,
84
- height = 197,
85
- controls = !0,
86
- controlslist = 'nodownload',
87
- options,
88
- ) =>
89
- ({ commands, state }) =>
90
- commands.insertContentAt(
91
- state.selection,
92
- `<video
1
+ import { Node, mergeAttributes, nodeInputRule } from "@tiptap/core";
2
+ const VIDEO_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, Video = Node.create({
3
+ name: "video",
4
+ group: "block",
5
+ draggable: !0,
6
+ selectable: !0,
7
+ addAttributes() {
8
+ return {
9
+ src: {
10
+ default: null,
11
+ parseHTML: (el) => el.getAttribute("src"),
12
+ renderHTML: (attrs) => ({ src: attrs.src })
13
+ },
14
+ controls: {
15
+ default: !0,
16
+ parseHTML: (el) => el.getAttribute("controls") ? el.getAttribute("controls") : !!el.hasAttribute("controls"),
17
+ renderHTML: (attrs) => ({ controls: attrs.controls })
18
+ },
19
+ documentId: {
20
+ default: "",
21
+ renderHTML: (attributes) => ({ "data-document-id": attributes.documentId }),
22
+ parseHTML: (element) => element.getAttribute("data-document-id")
23
+ },
24
+ isCaptation: {
25
+ default: !1,
26
+ renderHTML: (attributes) => ({ "data-document-is-captation": attributes.isCaptation }),
27
+ parseHTML: (element) => element.getAttribute("data-document-is-captation")
28
+ },
29
+ videoResolution: {
30
+ default: "404x720",
31
+ renderHTML: (attributes) => ({ "data-video-resolution": attributes.videoResolution }),
32
+ parseHTML: (element) => element.getAttribute("data-video-resolution")
33
+ },
34
+ width: {
35
+ renderHTML: (attributes) => ({
36
+ width: parseInt(attributes.width)
37
+ }),
38
+ parseHTML: (element) => element.getAttribute("width")
39
+ },
40
+ height: {
41
+ renderHTML: (attributes) => ({
42
+ height: parseInt(attributes.height)
43
+ }),
44
+ parseHTML: (element) => element.getAttribute("height")
45
+ }
46
+ };
47
+ },
48
+ parseHTML() {
49
+ return [
50
+ {
51
+ tag: "div.video-wrapper>video,video",
52
+ getAttrs: (el) => ({
53
+ src: el.getAttribute("src")
54
+ })
55
+ }
56
+ ];
57
+ },
58
+ renderHTML({ HTMLAttributes }) {
59
+ return [
60
+ "div",
61
+ { class: "video-wrapper" },
62
+ ["video", mergeAttributes(HTMLAttributes)]
63
+ ];
64
+ },
65
+ addCommands() {
66
+ return {
67
+ setVideo: (id, src, isCaptation, width = 350, height = 197, controls = !0, controlslist = "nodownload", options) => ({ commands, state }) => commands.insertContentAt(
68
+ state.selection,
69
+ `<video
93
70
  controls="${controls}"
94
71
  controlslist="${controlslist}"
95
72
  src="${src}"
@@ -98,26 +75,25 @@ const VIDEO_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,
98
75
  data-document-id="${id}"
99
76
  data-document-is-captation="${isCaptation}"
100
77
  data-video-resolution="${width}x${height}" />`,
101
- options,
102
- ),
103
- toggleVideo:
104
- () =>
105
- ({ commands }) =>
106
- commands.toggleNode(this.name, 'paragraph'),
107
- };
108
- },
109
- addInputRules() {
110
- return [
111
- nodeInputRule({
112
- find: VIDEO_INPUT_REGEX,
113
- type: this.type,
114
- getAttributes: (match) => {
115
- const [, , src] = match;
116
- return { src };
117
- },
118
- }),
119
- ];
120
- },
121
- });
122
- export { Video };
78
+ options
79
+ ),
80
+ toggleVideo: () => ({ commands }) => commands.toggleNode(this.name, "paragraph")
81
+ };
82
+ },
83
+ addInputRules() {
84
+ return [
85
+ nodeInputRule({
86
+ find: VIDEO_INPUT_REGEX,
87
+ type: this.type,
88
+ getAttributes: (match) => {
89
+ const [, , src] = match;
90
+ return { src };
91
+ }
92
+ })
93
+ ];
94
+ }
95
+ });
96
+ export {
97
+ Video
98
+ };
123
99
  //# sourceMappingURL=video.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/tiptap-extensions",
3
- "version": "2.0.0-develop-rc.0",
3
+ "version": "2.0.0-develop-rc.7",
4
4
  "description": "Edifice Rich Text Editor Extensions",
5
5
  "homepage": "https://github.com/edificeio/edifice-ui/tree/main/packages/tiptap/extensions#readme",
6
6
  "bugs": {
@@ -21,79 +21,98 @@
21
21
  },
22
22
  "./abbr": {
23
23
  "import": "./dist/abbr/abbr.js",
24
- "require": "./dist/abbr/abbr.cjs"
24
+ "require": "./dist/abbr/abbr.cjs",
25
+ "types": "./dist/abbr/index.d.ts"
25
26
  },
26
27
  "./alert": {
27
28
  "import": "./dist/alert/alert.js",
28
- "require": "./dist/alert/alert.cjs"
29
+ "require": "./dist/alert/alert.cjs",
30
+ "types": "./dist/alert/index.d.ts"
29
31
  },
30
32
  "./attachment": {
31
33
  "import": "./dist/attachment/attachment.js",
32
- "require": "./dist/attachment/attachment.cjs"
34
+ "require": "./dist/attachment/attachment.cjs",
35
+ "types": "./dist/attachment/index.d.ts"
33
36
  },
34
37
  "./audio": {
35
38
  "import": "./dist/audio/audio.js",
36
- "require": "./dist/audio/audio.cjs"
39
+ "require": "./dist/audio/audio.cjs",
40
+ "types": "./dist/audio/index.d.ts"
37
41
  },
38
42
  "./font-size": {
39
43
  "import": "./dist/font-size/font-size.js",
40
- "require": "./dist/font-size/font-size.cjs"
44
+ "require": "./dist/font-size/font-size.cjs",
45
+ "types": "./dist/font-size/index.d.ts"
41
46
  },
42
47
  "./heading": {
43
48
  "import": "./dist/heading/heading.js",
44
- "require": "./dist/heading/heading.cjs"
49
+ "require": "./dist/heading/heading.cjs",
50
+ "types": "./dist/heading/index.d.ts"
45
51
  },
46
52
  "./highlight": {
47
53
  "import": "./dist/highlight/highlight.js",
48
- "require": "./dist/highlight/highlight.cjs"
54
+ "require": "./dist/highlight/highlight.cjs",
55
+ "types": "./dist/highlight/index.d.ts"
49
56
  },
50
57
  "./hyperlink": {
51
58
  "import": "./dist/hyperlink/hyperlink.js",
52
- "require": "./dist/hyperlink/hyperlink.cjs"
59
+ "require": "./dist/hyperlink/hyperlink.cjs",
60
+ "types": "./dist/hyperlink/index.d.ts"
53
61
  },
54
62
  "./iframe": {
55
63
  "import": "./dist/iframe/iframe.js",
56
- "require": "./dist/iframe/iframe.cjs"
64
+ "require": "./dist/iframe/iframe.cjs",
65
+ "types": "./dist/iframe/index.d.ts"
57
66
  },
58
67
  "./image": {
59
68
  "import": "./dist/image/image.js",
60
- "require": "./dist/image/image.cjs"
69
+ "require": "./dist/image/image.cjs",
70
+ "types": "./dist/image/index.d.ts"
61
71
  },
62
72
  "./line-height": {
63
73
  "import": "./dist/line-height/line-height.js",
64
- "require": "./dist/line-height/line-height.cjs"
74
+ "require": "./dist/line-height/line-height.cjs",
75
+ "types": "./dist/line-height/index.d.ts"
65
76
  },
66
77
  "./linker": {
67
78
  "import": "./dist/linker/linker.js",
68
- "require": "./dist/linker/linker.cjs"
79
+ "require": "./dist/linker/linker.cjs",
80
+ "types": "./dist/linker/index.d.ts"
69
81
  },
70
82
  "./mathjax": {
71
83
  "import": "./dist/mathjax/mathjax.js",
72
- "require": "./dist/mathjax/mathjax.cjs"
84
+ "require": "./dist/mathjax/mathjax.cjs",
85
+ "types": "./dist/mathjax/index.d.ts"
73
86
  },
74
87
  "./paragraph": {
75
88
  "import": "./dist/paragraph/paragraph.js",
76
- "require": "./dist/paragraph/paragraph.cjs"
89
+ "require": "./dist/paragraph/paragraph.cjs",
90
+ "types": "./dist/paragraph/index.d.ts"
77
91
  },
78
92
  "./speech-recognition": {
79
93
  "import": "./dist/speech-recognition/speech-recognition.js",
80
- "require": "./dist/speech-recognition/speech-recognition.cjs"
94
+ "require": "./dist/speech-recognition/speech-recognition.cjs",
95
+ "types": "./dist/speech-recognition/index.d.ts"
81
96
  },
82
97
  "./speech-synthesis": {
83
98
  "import": "./dist/speech-synthesis/speech-synthesis.js",
84
- "require": "./dist/speech-synthesis/speech-synthesis.cjs"
99
+ "require": "./dist/speech-synthesis/speech-synthesis.cjs",
100
+ "types": "./dist/speech-synthesis/index.d.ts"
85
101
  },
86
102
  "./table-cell": {
87
103
  "import": "./dist/table-cell/table-cell.js",
88
- "require": "./dist/table-cell/table-cell.cjs"
104
+ "require": "./dist/table-cell/table-cell.cjs",
105
+ "types": "./dist/table-cell/index.d.ts"
89
106
  },
90
107
  "./transform": {
91
108
  "import": "./dist/transform/transform.js",
92
- "require": "./dist/transform/transform.cjs"
109
+ "require": "./dist/transform/transform.cjs",
110
+ "types": "./dist/transform/index.d.ts"
93
111
  },
94
112
  "./video": {
95
113
  "import": "./dist/video/video.js",
96
- "require": "./dist/video/video.cjs"
114
+ "require": "./dist/video/video.cjs",
115
+ "types": "./dist/video/index.d.ts"
97
116
  }
98
117
  },
99
118
  "main": "dist/index.cjs",
@@ -102,29 +121,16 @@
102
121
  "files": [
103
122
  "dist"
104
123
  ],
105
- "scripts": {
106
- "build": "vite build",
107
- "fix": "eslint . --ext ts --report-unused-disable-directives --max-warnings 0",
108
- "format": "pnpm run format:write && pnpm run format:check",
109
- "format:check": "npx prettier --check .",
110
- "format:write": "npx prettier --write .",
111
- "lint": "eslint \"**/*.ts\""
112
- },
113
124
  "dependencies": {
114
125
  "@tiptap/core": "2.3.0",
115
- "@tiptap/extension-bold": "2.3.0",
116
- "@tiptap/extension-document": "2.3.0",
117
126
  "@tiptap/extension-heading": "2.3.0",
118
127
  "@tiptap/extension-highlight": "2.3.0",
119
128
  "@tiptap/extension-image": "2.3.0",
120
129
  "@tiptap/extension-link": "2.3.0",
121
130
  "@tiptap/extension-paragraph": "2.3.0",
122
131
  "@tiptap/extension-table-cell": "2.3.0",
123
- "@tiptap/extension-text": "2.3.0",
124
132
  "@tiptap/extension-text-style": "2.3.0",
125
- "@tiptap/html": "2.3.0",
126
- "@tiptap/pm": "2.3.0",
127
- "@tiptap/starter-kit": "2.3.0"
133
+ "@tiptap/pm": "2.3.0"
128
134
  },
129
135
  "devDependencies": {
130
136
  "@types/dom-speech-recognition": "^0.0.1"
@@ -132,5 +138,10 @@
132
138
  "publishConfig": {
133
139
  "access": "public"
134
140
  },
135
- "gitHead": "6f136eacef86c18be3da824cbf7b9b6bea784457"
136
- }
141
+ "scripts": {
142
+ "build": "vite build",
143
+ "format": "pnpm run format:write && pnpm run format:check",
144
+ "format:check": "npx prettier --check .",
145
+ "format:write": "npx prettier --write ."
146
+ }
147
+ }