@fibery/prosemirror-schema 4.9.0 → 4.10.0
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/lib/src/marks/link.js
CHANGED
|
@@ -13,7 +13,11 @@ const makeLink = (baseLink) => {
|
|
|
13
13
|
fixedHref = `https://${href}`;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
return [
|
|
16
|
+
return [
|
|
17
|
+
"a",
|
|
18
|
+
{ href: fixedHref, target: "_blank", class: "prosemirror-link", rel: "noopener noreferrer nofollow" },
|
|
19
|
+
0,
|
|
20
|
+
];
|
|
17
21
|
},
|
|
18
22
|
};
|
|
19
23
|
};
|
package/lib/src/nodes/file.d.ts
CHANGED
package/lib/src/nodes/file.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.file = void 0;
|
|
4
|
+
const transcription_node_attrs_1 = require("../transcription-node-attrs");
|
|
4
5
|
exports.file = {
|
|
5
6
|
attrs: {
|
|
6
7
|
src: {},
|
|
7
8
|
title: { default: "Untitled" },
|
|
8
9
|
size: {},
|
|
9
10
|
type: {},
|
|
11
|
+
...(0, transcription_node_attrs_1.createDefaultAttrs)(),
|
|
10
12
|
},
|
|
11
13
|
inline: true,
|
|
12
14
|
group: "inline",
|
package/lib/src/nodes/video.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.video = void 0;
|
|
4
4
|
const resizable_node_attrs_1 = require("../resizable-node-attrs");
|
|
5
|
+
const transcription_node_attrs_1 = require("../transcription-node-attrs");
|
|
5
6
|
const DEFAULT_VIDEO_WIDTH = 400;
|
|
6
7
|
const DEFAULT_VIDEO_HEIGHT = 200;
|
|
7
8
|
exports.video = {
|
|
@@ -14,6 +15,7 @@ exports.video = {
|
|
|
14
15
|
title: { default: "" },
|
|
15
16
|
alignment: { default: ":alignment/block-center" },
|
|
16
17
|
...(0, resizable_node_attrs_1.createDefaultAttrs)(),
|
|
18
|
+
...(0, transcription_node_attrs_1.createDefaultAttrs)(),
|
|
17
19
|
},
|
|
18
20
|
group: "block",
|
|
19
21
|
draggable: true,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDefaultAttrs = void 0;
|
|
4
|
+
function createDefaultAttrs() {
|
|
5
|
+
return {
|
|
6
|
+
transcription: {
|
|
7
|
+
default: { status: "IDLE", userId: "", inserted: false },
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.createDefaultAttrs = createDefaultAttrs;
|