@react-fabric/lexical 1.0.0-beta.59 → 1.0.0-beta.60

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.
@@ -158,7 +158,7 @@ var LexicalEditor = function LexicalEditor(_ref) {
158
158
  ref: setEditorContainer,
159
159
  children: [/*#__PURE__*/jsxRuntime.jsx(LexicalRichTextPlugin.RichTextPlugin, {
160
160
  contentEditable: /*#__PURE__*/jsxRuntime.jsx(LexicalContentEditable.ContentEditable, {
161
- readOnly: readOnly || publishMode,
161
+ readOnly: !!readOnly || publishMode,
162
162
  className: "lexical-editor px-[2cm] py-[1cm] min-h-screen"
163
163
  }),
164
164
  placeholder: /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -158,7 +158,7 @@ var LexicalEditor = function LexicalEditor(_ref) {
158
158
  ref: setEditorContainer,
159
159
  children: [/*#__PURE__*/jsx(RichTextPlugin, {
160
160
  contentEditable: /*#__PURE__*/jsx(ContentEditable, {
161
- readOnly: readOnly || publishMode,
161
+ readOnly: !!readOnly || publishMode,
162
162
  className: "lexical-editor px-[2cm] py-[1cm] min-h-screen"
163
163
  }),
164
164
  placeholder: /*#__PURE__*/jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/lexical",
3
- "version": "1.0.0-beta.59",
3
+ "version": "1.0.0-beta.60",
4
4
  "description": "RUF: Lexical editor",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@lexical/react": "~0.35.0",
39
- "@react-fabric/core": "^1.0.0-beta.59",
40
- "@react-fabric/form": "^1.0.0-beta.59",
41
- "@react-fabric/utilities": "^1.0.0-beta.59",
39
+ "@react-fabric/core": "^1.0.0-beta.60",
40
+ "@react-fabric/form": "^1.0.0-beta.60",
41
+ "@react-fabric/utilities": "^1.0.0-beta.60",
42
42
  "classnames": "~2.5.1",
43
43
  "lexical": "~0.35.0"
44
44
  },
@@ -52,5 +52,5 @@
52
52
  "node": ">=18.12.0",
53
53
  "npm": ">=8.19.0"
54
54
  },
55
- "gitHead": "74efd06c9c5ac629b6ef5cdc6d53ecb1c356f2eb"
55
+ "gitHead": "a79f053ee7e13422c06d7d9c35d4f0c2610cdf5d"
56
56
  }
@@ -223,7 +223,7 @@ export const LexicalEditor = ({
223
223
  <RichTextPlugin
224
224
  contentEditable={
225
225
  <ContentEditable
226
- readOnly={readOnly || publishMode}
226
+ readOnly={!!readOnly || publishMode}
227
227
  className="lexical-editor px-[2cm] py-[1cm] min-h-screen"
228
228
  />
229
229
  }