@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.
- package/README.md +1 -1
- package/dist/abbr/abbr.cjs +1 -32
- package/dist/abbr/abbr.d.ts +12 -12
- package/dist/abbr/abbr.js +13 -17
- package/dist/alert/alert.cjs +1 -32
- package/dist/alert/alert.js +22 -20
- package/dist/attachment/attachment.cjs +1 -73
- package/dist/attachment/attachment.d.ts +6 -6
- package/dist/attachment/attachment.js +29 -40
- package/dist/audio/audio.cjs +2 -52
- package/dist/audio/audio.d.ts +13 -17
- package/dist/audio/audio.js +25 -28
- package/dist/font-size/font-size.cjs +1 -48
- package/dist/font-size/font-size.d.ts +13 -13
- package/dist/font-size/font-size.js +17 -29
- package/dist/heading/heading.cjs +1 -61
- package/dist/heading/heading.d.ts +12 -10
- package/dist/heading/heading.js +25 -39
- package/dist/highlight/highlight.cjs +1 -25
- package/dist/highlight/highlight.d.ts +1 -4
- package/dist/highlight/highlight.js +13 -11
- package/dist/hyperlink/hyperlink.cjs +1 -47
- package/dist/hyperlink/hyperlink.d.ts +24 -27
- package/dist/hyperlink/hyperlink.js +19 -21
- package/dist/iframe/iframe.cjs +1 -69
- package/dist/iframe/iframe.d.ts +14 -12
- package/dist/iframe/iframe.js +32 -48
- package/dist/image/custom-image.cjs +1 -162
- package/dist/image/custom-image.d.ts +16 -19
- package/dist/image/custom-image.js +130 -179
- package/dist/index.cjs +1 -43
- package/dist/index.js +21 -21
- package/dist/line-height/line-height.cjs +1 -33
- package/dist/line-height/line-height.js +15 -18
- package/dist/linker/linker.cjs +1 -95
- package/dist/linker/linker.d.ts +17 -17
- package/dist/linker/linker.js +49 -57
- package/dist/mathjax/mathjax.cjs +1 -47
- package/dist/mathjax/mathjax.js +20 -30
- package/dist/paragraph/paragraph.cjs +1 -13
- package/dist/paragraph/paragraph.d.ts +1 -4
- package/dist/paragraph/paragraph.js +8 -6
- package/dist/speech-recognition/speech-recognition.cjs +1 -76
- package/dist/speech-recognition/speech-recognition.cjs.map +1 -1
- package/dist/speech-recognition/speech-recognition.d.ts +12 -12
- package/dist/speech-recognition/speech-recognition.js +41 -57
- package/dist/speech-recognition/speech-recognition.js.map +1 -1
- package/dist/speech-synthesis/speech-synthesis.cjs +1 -32
- package/dist/speech-synthesis/speech-synthesis.d.ts +9 -9
- package/dist/speech-synthesis/speech-synthesis.js +10 -19
- package/dist/table-cell/table-cell.cjs +1 -27
- package/dist/table-cell/table-cell.d.ts +1 -4
- package/dist/table-cell/table-cell.js +12 -17
- package/dist/transform/html-to-json/html-to-json.cjs +1 -4
- package/dist/transform/html-to-json/html-to-json.d.ts +1 -4
- package/dist/transform/html-to-json/html-to-json.js +4 -2
- package/dist/transform/json-to-html/json-to-html.cjs +1 -4
- package/dist/transform/json-to-html/json-to-html.js +4 -2
- package/dist/video/video.cjs +2 -111
- package/dist/video/video.d.ts +19 -28
- package/dist/video/video.js +90 -114
- package/package.json +47 -36
package/dist/video/video.cjs
CHANGED
|
@@ -1,91 +1,4 @@
|
|
|
1
|
-
|
|
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
|
package/dist/video/video.d.ts
CHANGED
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import { Node } from '@tiptap/core';
|
|
2
2
|
export interface VideoOptions {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
url: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
HTMLAttributes: Record<string, any>;
|
|
7
7
|
}
|
|
8
8
|
declare module '@tiptap/core' {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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>;
|
package/dist/video/video.js
CHANGED
|
@@ -1,95 +1,72 @@
|
|
|
1
|
-
import { Node, mergeAttributes, nodeInputRule } from
|
|
2
|
-
const VIDEO_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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.
|
|
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/
|
|
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
|
-
"
|
|
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
|
+
}
|