@edifice.io/react 2.0.0-develop-pedago.20250115112809 → 2.0.0-develop-pedago.20250116124516

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.
@@ -4,7 +4,10 @@ const AudioRenderer = (props) => {
4
4
  const {
5
5
  node
6
6
  } = props;
7
- return /* @__PURE__ */ jsx(NodeViewWrapper, { children: /* @__PURE__ */ jsx("div", { className: "audio-wrapper", children: /* @__PURE__ */ jsx("audio", { src: node.attrs.src, controls: !0, "data-document-id": node.attrs.src, children: /* @__PURE__ */ jsx("track", { kind: "captions" }) }) }) });
7
+ return /* @__PURE__ */ jsx(NodeViewWrapper, { as: "span", contentEditable: !1, style: {
8
+ display: "inline-block",
9
+ width: "fit-content"
10
+ }, children: /* @__PURE__ */ jsx("div", { className: "audio-wrapper", "data-drag-handle": !0, children: /* @__PURE__ */ jsx("audio", { src: node.attrs.src, controls: !0, "data-document-id": node.attrs.src, children: /* @__PURE__ */ jsx("track", { kind: "captions" }) }) }) });
8
11
  };
9
12
  export {
10
13
  AudioRenderer as default
@@ -6,7 +6,7 @@ import { Content, HTMLContent } from '@tiptap/react';
6
6
  * @param content default rich content
7
7
  */
8
8
  export declare const useCommentEditor: (editable: boolean, content: Content, maxLength?: number) => {
9
- editor: import('@tiptap/react').Editor | null;
9
+ editor: import('@tiptap/core').Editor | null;
10
10
  commentLength: number;
11
11
  getComment: () => HTMLContent;
12
12
  resetComment: () => void;
@@ -11,6 +11,6 @@ import { WorkspaceVisibility } from '@edifice.io/client';
11
11
  export declare const useTipTapEditor: (editable: boolean, content: Content, focus?: FocusPosition, placeholder?: string, onContentChange?: ({ editor }: {
12
12
  editor: any;
13
13
  }) => void, visibility?: WorkspaceVisibility) => {
14
- editor: import('@tiptap/react').Editor | null;
14
+ editor: import('@tiptap/core').Editor | null;
15
15
  editable: boolean;
16
16
  };
@@ -58,7 +58,7 @@ const useTipTapEditor = (editable, content, focus, placeholder, onContentChange,
58
58
  }), Underline, TextStyle, Color, Subscript, Superscript, Table.configure({
59
59
  resizable: !0
60
60
  }), TableRow, TableHeader, TableCell, TextAlign.configure({
61
- types: ["heading", "paragraph", "custom-image", "video"]
61
+ types: ["heading", "paragraph", "video"]
62
62
  }), CustomHeading.configure({
63
63
  levels: [1, 2]
64
64
  }), Typography, FontSize, SpeechRecognition, SpeechSynthesis.configure({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.0.0-develop-pedago.20250115112809",
3
+ "version": "2.0.0-develop-pedago.20250116124516",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -80,30 +80,30 @@
80
80
  "@pixi/mixin-get-child-by-name": "7.4.2",
81
81
  "@pixi/react": "7.1.2",
82
82
  "@popperjs/core": "2.11.8",
83
- "@tiptap/core": "2.3.0",
84
- "@tiptap/extension-character-count": "2.3.0",
85
- "@tiptap/extension-color": "2.3.0",
86
- "@tiptap/extension-focus": "2.3.0",
87
- "@tiptap/extension-font-family": "2.3.0",
88
- "@tiptap/extension-heading": "2.3.0",
89
- "@tiptap/extension-highlight": "2.3.0",
90
- "@tiptap/extension-image": "2.3.0",
91
- "@tiptap/extension-link": "2.3.0",
92
- "@tiptap/extension-list-item": "2.3.0",
93
- "@tiptap/extension-placeholder": "2.3.0",
94
- "@tiptap/extension-subscript": "2.3.0",
95
- "@tiptap/extension-superscript": "2.3.0",
96
- "@tiptap/extension-table": "2.3.0",
97
- "@tiptap/extension-table-cell": "2.3.0",
98
- "@tiptap/extension-table-header": "2.3.0",
99
- "@tiptap/extension-table-row": "2.3.0",
100
- "@tiptap/extension-text-align": "2.3.0",
101
- "@tiptap/extension-text-style": "2.3.0",
102
- "@tiptap/extension-typography": "2.3.0",
103
- "@tiptap/extension-underline": "2.3.0",
104
- "@tiptap/pm": "2.3.0",
105
- "@tiptap/react": "2.3.0",
106
- "@tiptap/starter-kit": "2.3.0",
83
+ "@tiptap/core": "2.11.0",
84
+ "@tiptap/extension-character-count": "2.11.0",
85
+ "@tiptap/extension-color": "2.11.0",
86
+ "@tiptap/extension-focus": "2.11.0",
87
+ "@tiptap/extension-font-family": "2.11.0",
88
+ "@tiptap/extension-heading": "2.11.0",
89
+ "@tiptap/extension-highlight": "2.11.0",
90
+ "@tiptap/extension-image": "2.11.0",
91
+ "@tiptap/extension-link": "2.11.0",
92
+ "@tiptap/extension-list-item": "2.11.0",
93
+ "@tiptap/extension-placeholder": "2.11.0",
94
+ "@tiptap/extension-subscript": "2.11.0",
95
+ "@tiptap/extension-superscript": "2.11.0",
96
+ "@tiptap/extension-table": "2.11.0",
97
+ "@tiptap/extension-table-cell": "2.11.0",
98
+ "@tiptap/extension-table-header": "2.11.0",
99
+ "@tiptap/extension-table-row": "2.11.0",
100
+ "@tiptap/extension-text-align": "2.11.0",
101
+ "@tiptap/extension-text-style": "2.11.0",
102
+ "@tiptap/extension-typography": "2.11.0",
103
+ "@tiptap/extension-underline": "2.11.0",
104
+ "@tiptap/pm": "2.11.0",
105
+ "@tiptap/react": "2.11.0",
106
+ "@tiptap/starter-kit": "2.11.0",
107
107
  "@uidotdev/usehooks": "^2.4.1",
108
108
  "clsx": "^2.1.1",
109
109
  "dayjs": "1.11.10",
@@ -119,9 +119,9 @@
119
119
  "react-slugify": "^3.0.3",
120
120
  "swiper": "^10.1.0",
121
121
  "ua-parser-js": "^1.0.36",
122
- "@edifice.io/bootstrap": "2.0.0-develop-pedago.20250115112809",
123
- "@edifice.io/tiptap-extensions": "2.0.0-develop-pedago.20250115112809",
124
- "@edifice.io/utilities": "2.0.0-develop-pedago.20250115112809"
122
+ "@edifice.io/bootstrap": "2.0.0-develop-pedago.20250116124516",
123
+ "@edifice.io/tiptap-extensions": "2.0.0-develop-pedago.20250116124516",
124
+ "@edifice.io/utilities": "2.0.0-develop-pedago.20250116124516"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -147,7 +147,7 @@
147
147
  "typescript-eslint": "^8.8.1",
148
148
  "vite": "^5.4.11",
149
149
  "vite-plugin-dts": "^4.1.0",
150
- "@edifice.io/client": "2.0.0-develop-pedago.20250115112809"
150
+ "@edifice.io/client": "2.0.0-develop-pedago.20250116124516"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "@react-spring/web": "^9.7.5",