@liveblocks/react-tiptap 3.4.0-alpha1 → 3.4.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/dist/mentions/Mention.cjs +5 -2
- package/dist/mentions/Mention.cjs.map +1 -1
- package/dist/mentions/Mention.js +5 -2
- package/dist/mentions/Mention.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +6 -6
|
@@ -10,13 +10,16 @@ const Mention = react.forwardRef((props, forwardedRef) => {
|
|
|
10
10
|
const id = props.node.attrs.id;
|
|
11
11
|
return /* @__PURE__ */ jsxRuntime.jsxs(react$1.NodeViewWrapper, {
|
|
12
12
|
className: _private.cn(
|
|
13
|
-
"lb-root lb-tiptap-mention",
|
|
13
|
+
"lb-root lb-mention lb-tiptap-mention",
|
|
14
14
|
props.selected ? "lb-mention-selected" : null
|
|
15
15
|
),
|
|
16
16
|
as: "span",
|
|
17
17
|
ref: forwardedRef,
|
|
18
18
|
children: [
|
|
19
|
-
|
|
19
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
20
|
+
className: "lb-mention-symbol",
|
|
21
|
+
children: MENTION_CHARACTER
|
|
22
|
+
}),
|
|
20
23
|
/* @__PURE__ */ jsxRuntime.jsx(_private.User, {
|
|
21
24
|
userId: id
|
|
22
25
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mention.cjs","sources":["../../src/mentions/Mention.tsx"],"sourcesContent":["import { cn, User } from \"@liveblocks/react-ui/_private\";\nimport type { Node } from \"@tiptap/pm/model\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { forwardRef } from \"react\";\n\nconst MENTION_CHARACTER = \"@\";\n\nexport const Mention = forwardRef<\n HTMLSpanElement,\n { node: Node; selected: boolean }\n>((props, forwardedRef) => {\n const id = (props.node.attrs as { id: string }).id;\n\n return (\n <NodeViewWrapper\n className={cn(\n \"lb-root lb-tiptap-mention\",\n props.selected ? \"lb-mention-selected\" : null\n )}\n as=\"span\"\n ref={forwardedRef}\n >\n {MENTION_CHARACTER}
|
|
1
|
+
{"version":3,"file":"Mention.cjs","sources":["../../src/mentions/Mention.tsx"],"sourcesContent":["import { cn, User } from \"@liveblocks/react-ui/_private\";\nimport type { Node } from \"@tiptap/pm/model\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { forwardRef } from \"react\";\n\nconst MENTION_CHARACTER = \"@\";\n\nexport const Mention = forwardRef<\n HTMLSpanElement,\n { node: Node; selected: boolean }\n>((props, forwardedRef) => {\n const id = (props.node.attrs as { id: string }).id;\n\n return (\n <NodeViewWrapper\n className={cn(\n \"lb-root lb-mention lb-tiptap-mention\",\n props.selected ? \"lb-mention-selected\" : null\n )}\n as=\"span\"\n ref={forwardedRef}\n >\n <span className=\"lb-mention-symbol\">{MENTION_CHARACTER}</span>\n <User userId={id} />\n </NodeViewWrapper>\n );\n});\n"],"names":["forwardRef","jsxs","NodeViewWrapper","cn","jsx","User"],"mappings":";;;;;;;AAKA,MAAM,iBAAoB,GAAA,GAAA,CAAA;AAEnB,MAAM,OAAU,GAAAA,gBAAA,CAGrB,CAAC,KAAA,EAAO,YAAiB,KAAA;AACzB,EAAM,MAAA,EAAA,GAAM,KAAM,CAAA,IAAA,CAAK,KAAyB,CAAA,EAAA,CAAA;AAEhD,EAAA,uBACGC,eAAA,CAAAC,uBAAA,EAAA;AAAA,IACC,SAAW,EAAAC,WAAA;AAAA,MACT,sCAAA;AAAA,MACA,KAAA,CAAM,WAAW,qBAAwB,GAAA,IAAA;AAAA,KAC3C;AAAA,IACA,EAAG,EAAA,MAAA;AAAA,IACH,GAAK,EAAA,YAAA;AAAA,IAEL,QAAA,EAAA;AAAA,sBAACC,cAAA,CAAA,MAAA,EAAA;AAAA,QAAK,SAAU,EAAA,mBAAA;AAAA,QAAqB,QAAA,EAAA,iBAAA;AAAA,OAAkB,CAAA;AAAA,sBACtDA,cAAA,CAAAC,aAAA,EAAA;AAAA,QAAK,MAAQ,EAAA,EAAA;AAAA,OAAI,CAAA;AAAA,KAAA;AAAA,GACpB,CAAA,CAAA;AAEJ,CAAC;;;;"}
|
package/dist/mentions/Mention.js
CHANGED
|
@@ -8,13 +8,16 @@ const Mention = forwardRef((props, forwardedRef) => {
|
|
|
8
8
|
const id = props.node.attrs.id;
|
|
9
9
|
return /* @__PURE__ */ jsxs(NodeViewWrapper, {
|
|
10
10
|
className: cn(
|
|
11
|
-
"lb-root lb-tiptap-mention",
|
|
11
|
+
"lb-root lb-mention lb-tiptap-mention",
|
|
12
12
|
props.selected ? "lb-mention-selected" : null
|
|
13
13
|
),
|
|
14
14
|
as: "span",
|
|
15
15
|
ref: forwardedRef,
|
|
16
16
|
children: [
|
|
17
|
-
|
|
17
|
+
/* @__PURE__ */ jsx("span", {
|
|
18
|
+
className: "lb-mention-symbol",
|
|
19
|
+
children: MENTION_CHARACTER
|
|
20
|
+
}),
|
|
18
21
|
/* @__PURE__ */ jsx(User, {
|
|
19
22
|
userId: id
|
|
20
23
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mention.js","sources":["../../src/mentions/Mention.tsx"],"sourcesContent":["import { cn, User } from \"@liveblocks/react-ui/_private\";\nimport type { Node } from \"@tiptap/pm/model\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { forwardRef } from \"react\";\n\nconst MENTION_CHARACTER = \"@\";\n\nexport const Mention = forwardRef<\n HTMLSpanElement,\n { node: Node; selected: boolean }\n>((props, forwardedRef) => {\n const id = (props.node.attrs as { id: string }).id;\n\n return (\n <NodeViewWrapper\n className={cn(\n \"lb-root lb-tiptap-mention\",\n props.selected ? \"lb-mention-selected\" : null\n )}\n as=\"span\"\n ref={forwardedRef}\n >\n {MENTION_CHARACTER}
|
|
1
|
+
{"version":3,"file":"Mention.js","sources":["../../src/mentions/Mention.tsx"],"sourcesContent":["import { cn, User } from \"@liveblocks/react-ui/_private\";\nimport type { Node } from \"@tiptap/pm/model\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { forwardRef } from \"react\";\n\nconst MENTION_CHARACTER = \"@\";\n\nexport const Mention = forwardRef<\n HTMLSpanElement,\n { node: Node; selected: boolean }\n>((props, forwardedRef) => {\n const id = (props.node.attrs as { id: string }).id;\n\n return (\n <NodeViewWrapper\n className={cn(\n \"lb-root lb-mention lb-tiptap-mention\",\n props.selected ? \"lb-mention-selected\" : null\n )}\n as=\"span\"\n ref={forwardedRef}\n >\n <span className=\"lb-mention-symbol\">{MENTION_CHARACTER}</span>\n <User userId={id} />\n </NodeViewWrapper>\n );\n});\n"],"names":[],"mappings":";;;;;AAKA,MAAM,iBAAoB,GAAA,GAAA,CAAA;AAEnB,MAAM,OAAU,GAAA,UAAA,CAGrB,CAAC,KAAA,EAAO,YAAiB,KAAA;AACzB,EAAM,MAAA,EAAA,GAAM,KAAM,CAAA,IAAA,CAAK,KAAyB,CAAA,EAAA,CAAA;AAEhD,EAAA,uBACG,IAAA,CAAA,eAAA,EAAA;AAAA,IACC,SAAW,EAAA,EAAA;AAAA,MACT,sCAAA;AAAA,MACA,KAAA,CAAM,WAAW,qBAAwB,GAAA,IAAA;AAAA,KAC3C;AAAA,IACA,EAAG,EAAA,MAAA;AAAA,IACH,GAAK,EAAA,YAAA;AAAA,IAEL,QAAA,EAAA;AAAA,sBAAC,GAAA,CAAA,MAAA,EAAA;AAAA,QAAK,SAAU,EAAA,mBAAA;AAAA,QAAqB,QAAA,EAAA,iBAAA;AAAA,OAAkB,CAAA;AAAA,sBACtD,GAAA,CAAA,IAAA,EAAA;AAAA,QAAK,MAAQ,EAAA,EAAA;AAAA,OAAI,CAAA;AAAA,KAAA;AAAA,GACpB,CAAA,CAAA;AAEJ,CAAC;;;;"}
|
package/dist/version.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const PKG_NAME = "@liveblocks/react-tiptap";
|
|
4
|
-
const PKG_VERSION = typeof "3.4.0
|
|
4
|
+
const PKG_VERSION = typeof "3.4.0" === "string" && "3.4.0";
|
|
5
5
|
const PKG_FORMAT = typeof "cjs" === "string" && "cjs";
|
|
6
6
|
|
|
7
7
|
exports.PKG_FORMAT = PKG_FORMAT;
|
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.cjs","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-tiptap\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":";;AAGO,MAAM,QAAW,GAAA,2BAAA;AACX,MAAA,WAAA,GAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"version.cjs","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-tiptap\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":";;AAGO,MAAM,QAAW,GAAA,2BAAA;AACX,MAAA,WAAA,GAAc,OAAO,OAAA,KAAgB,QAAY,IAAA,QAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;;;"}
|
package/dist/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const PKG_NAME = "@liveblocks/react-tiptap";
|
|
2
|
-
const PKG_VERSION = typeof "3.4.0
|
|
2
|
+
const PKG_VERSION = typeof "3.4.0" === "string" && "3.4.0";
|
|
3
3
|
const PKG_FORMAT = typeof "esm" === "string" && "esm";
|
|
4
4
|
|
|
5
5
|
export { PKG_FORMAT, PKG_NAME, PKG_VERSION };
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-tiptap\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":"AAGO,MAAM,QAAW,GAAA,2BAAA;AACX,MAAA,WAAA,GAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-tiptap\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":"AAGO,MAAM,QAAW,GAAA,2BAAA;AACX,MAAA,WAAA,GAAc,OAAO,OAAA,KAAgB,QAAY,IAAA,QAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react-tiptap",
|
|
3
|
-
"version": "3.4.0
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "An integration of TipTap + React to enable collaboration, comments, live cursors, and more with Liveblocks.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@floating-ui/react-dom": "^2.1.2",
|
|
46
|
-
"@liveblocks/client": "3.4.0
|
|
47
|
-
"@liveblocks/core": "3.4.0
|
|
48
|
-
"@liveblocks/react": "3.4.0
|
|
49
|
-
"@liveblocks/react-ui": "3.4.0
|
|
50
|
-
"@liveblocks/yjs": "3.4.0
|
|
46
|
+
"@liveblocks/client": "3.4.0",
|
|
47
|
+
"@liveblocks/core": "3.4.0",
|
|
48
|
+
"@liveblocks/react": "3.4.0",
|
|
49
|
+
"@liveblocks/react-ui": "3.4.0",
|
|
50
|
+
"@liveblocks/yjs": "3.4.0",
|
|
51
51
|
"@radix-ui/react-select": "^2.1.2",
|
|
52
52
|
"@radix-ui/react-toggle": "^1.1.0",
|
|
53
53
|
"@tiptap/core": "^2.7.2",
|