@cgboiler/biz-basic 1.0.35 → 1.0.36
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/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/rich-text-editor/useExtensions.js +15 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/rich-text-editor/useExtensions.js +15 -1
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -11,7 +11,21 @@ import HtmlBlock from "./extensions/HtmlBlock";
|
|
|
11
11
|
import { Placeholder } from "@tiptap/extensions";
|
|
12
12
|
function useExtensions({ props, emit }) {
|
|
13
13
|
const HashTag = Mention.extend({
|
|
14
|
-
name: "hashTag"
|
|
14
|
+
name: "hashTag",
|
|
15
|
+
renderHTML({ node, HTMLAttributes }) {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
const id = (_b = (_a = node == null ? void 0 : node.attrs) == null ? void 0 : _a.id) != null ? _b : "";
|
|
18
|
+
const label = (_d = (_c = node == null ? void 0 : node.attrs) == null ? void 0 : _c.label) != null ? _d : "";
|
|
19
|
+
const attrs = {
|
|
20
|
+
class: "hash-tag",
|
|
21
|
+
"data-type": "hashTag",
|
|
22
|
+
"data-id": id,
|
|
23
|
+
"data-label": label,
|
|
24
|
+
"data-hash-tag": "#",
|
|
25
|
+
contenteditable: "false"
|
|
26
|
+
};
|
|
27
|
+
return ["span", attrs, `#${label}`];
|
|
28
|
+
}
|
|
15
29
|
}).configure({
|
|
16
30
|
HTMLAttributes: {
|
|
17
31
|
class: "hash-tag"
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(stdin_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(stdin_exports);
|
|
37
37
|
var import_rich_text_editor = __toESM(require("./rich-text-editor"));
|
|
38
38
|
__reExport(stdin_exports, require("./rich-text-editor"), module.exports);
|
|
39
|
-
const version = "1.0.
|
|
39
|
+
const version = "1.0.35";
|
|
40
40
|
function install(app) {
|
|
41
41
|
const components = [
|
|
42
42
|
import_rich_text_editor.default
|
|
@@ -43,7 +43,21 @@ var import_HtmlBlock = __toESM(require("./extensions/HtmlBlock"));
|
|
|
43
43
|
var import_extensions = require("@tiptap/extensions");
|
|
44
44
|
function useExtensions({ props, emit }) {
|
|
45
45
|
const HashTag = import_extension_mention.default.extend({
|
|
46
|
-
name: "hashTag"
|
|
46
|
+
name: "hashTag",
|
|
47
|
+
renderHTML({ node, HTMLAttributes }) {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
const id = (_b = (_a = node == null ? void 0 : node.attrs) == null ? void 0 : _a.id) != null ? _b : "";
|
|
50
|
+
const label = (_d = (_c = node == null ? void 0 : node.attrs) == null ? void 0 : _c.label) != null ? _d : "";
|
|
51
|
+
const attrs = {
|
|
52
|
+
class: "hash-tag",
|
|
53
|
+
"data-type": "hashTag",
|
|
54
|
+
"data-id": id,
|
|
55
|
+
"data-label": label,
|
|
56
|
+
"data-hash-tag": "#",
|
|
57
|
+
contenteditable: "false"
|
|
58
|
+
};
|
|
59
|
+
return ["span", attrs, `#${label}`];
|
|
60
|
+
}
|
|
47
61
|
}).configure({
|
|
48
62
|
HTMLAttributes: {
|
|
49
63
|
class: "hash-tag"
|