@react-fabric/lexical 1.0.0-beta.32 → 1.0.0-beta.34
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.
|
@@ -220,14 +220,18 @@ var ToolbarPlugin = function ToolbarPlugin() {
|
|
|
220
220
|
}), /*#__PURE__*/jsxRuntime.jsx(form.ColorInput, {
|
|
221
221
|
noOutline: true,
|
|
222
222
|
value: watch.fontColor,
|
|
223
|
-
onChange:
|
|
223
|
+
onChange: function onChange(v) {
|
|
224
|
+
return watch.onFontColorSelect(v !== null && v !== void 0 ? v : undefined);
|
|
225
|
+
},
|
|
224
226
|
decorateStart: /*#__PURE__*/jsxRuntime.jsx(core.Icon, {
|
|
225
227
|
icon: core.CoreIcons.formatText
|
|
226
228
|
})
|
|
227
229
|
}), /*#__PURE__*/jsxRuntime.jsx(form.ColorInput, {
|
|
228
230
|
noOutline: true,
|
|
229
231
|
value: watch.bgColor,
|
|
230
|
-
onChange:
|
|
232
|
+
onChange: function onChange(v) {
|
|
233
|
+
return watch.onBgColorSelect(v !== null && v !== void 0 ? v : undefined);
|
|
234
|
+
},
|
|
231
235
|
decorateStart: /*#__PURE__*/jsxRuntime.jsx(core.Icon, {
|
|
232
236
|
icon: core.CoreIcons.formatFill
|
|
233
237
|
})
|
|
@@ -220,14 +220,18 @@ var ToolbarPlugin = function ToolbarPlugin() {
|
|
|
220
220
|
}), /*#__PURE__*/jsx(ColorInput, {
|
|
221
221
|
noOutline: true,
|
|
222
222
|
value: watch.fontColor,
|
|
223
|
-
onChange:
|
|
223
|
+
onChange: function onChange(v) {
|
|
224
|
+
return watch.onFontColorSelect(v !== null && v !== void 0 ? v : undefined);
|
|
225
|
+
},
|
|
224
226
|
decorateStart: /*#__PURE__*/jsx(Icon, {
|
|
225
227
|
icon: CoreIcons.formatText
|
|
226
228
|
})
|
|
227
229
|
}), /*#__PURE__*/jsx(ColorInput, {
|
|
228
230
|
noOutline: true,
|
|
229
231
|
value: watch.bgColor,
|
|
230
|
-
onChange:
|
|
232
|
+
onChange: function onChange(v) {
|
|
233
|
+
return watch.onBgColorSelect(v !== null && v !== void 0 ? v : undefined);
|
|
234
|
+
},
|
|
231
235
|
decorateStart: /*#__PURE__*/jsx(Icon, {
|
|
232
236
|
icon: CoreIcons.formatFill
|
|
233
237
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/lexical",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.34",
|
|
4
4
|
"description": "RUF: Lexical editor",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@lexical/headless": "^0.17.1",
|
|
37
37
|
"@lexical/react": "^0.17.1",
|
|
38
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
39
|
-
"@react-fabric/form": "^1.0.0-beta.
|
|
40
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
38
|
+
"@react-fabric/core": "^1.0.0-beta.34",
|
|
39
|
+
"@react-fabric/form": "^1.0.0-beta.34",
|
|
40
|
+
"@react-fabric/utilities": "^1.0.0-beta.34",
|
|
41
41
|
"classnames": "^2.5.1",
|
|
42
42
|
"lexical": "^0.17.1"
|
|
43
43
|
},
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"node": ">=18.12.0",
|
|
52
52
|
"npm": ">=8.19.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "dcd1c1b247b6597b168a0649d2b3a53463b9c37e"
|
|
55
55
|
}
|
|
@@ -252,13 +252,13 @@ export const ToolbarPlugin = () => {
|
|
|
252
252
|
<ColorInput
|
|
253
253
|
{...{ noOutline: true }}
|
|
254
254
|
value={watch.fontColor}
|
|
255
|
-
onChange={watch.onFontColorSelect}
|
|
255
|
+
onChange={(v) => watch.onFontColorSelect(v ?? undefined)}
|
|
256
256
|
decorateStart={<Icon icon={CoreIcons.formatText} />}
|
|
257
257
|
/>
|
|
258
258
|
<ColorInput
|
|
259
259
|
{...{ noOutline: true }}
|
|
260
260
|
value={watch.bgColor}
|
|
261
|
-
onChange={watch.onBgColorSelect}
|
|
261
|
+
onChange={(v) => watch.onBgColorSelect(v ?? undefined)}
|
|
262
262
|
decorateStart={<Icon icon={CoreIcons.formatFill} />}
|
|
263
263
|
/>
|
|
264
264
|
<ButtonWrapper
|