@react-fabric/draw 1.0.0-beta.49 → 1.0.0-beta.51
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.
|
@@ -210,7 +210,8 @@ var AvatarShapeUtil = /*#__PURE__*/function (_ShapeUtil) {
|
|
|
210
210
|
wrap: "off",
|
|
211
211
|
dir: "auto",
|
|
212
212
|
ref: function ref(el) {
|
|
213
|
-
|
|
213
|
+
el === null || el === void 0 || el.select();
|
|
214
|
+
el === null || el === void 0 || el.focus();
|
|
214
215
|
},
|
|
215
216
|
onKeyDown: function onKeyDown(e) {
|
|
216
217
|
return e.key === "Enter" && (e.stopPropagation(), _this3.onChange(shape, inputRef.current), _this3.editor.setEditingShape(null));
|
|
@@ -210,7 +210,8 @@ var AvatarShapeUtil = /*#__PURE__*/function (_ShapeUtil) {
|
|
|
210
210
|
wrap: "off",
|
|
211
211
|
dir: "auto",
|
|
212
212
|
ref: function ref(el) {
|
|
213
|
-
|
|
213
|
+
el === null || el === void 0 || el.select();
|
|
214
|
+
el === null || el === void 0 || el.focus();
|
|
214
215
|
},
|
|
215
216
|
onKeyDown: function onKeyDown(e) {
|
|
216
217
|
return e.key === "Enter" && (e.stopPropagation(), _this3.onChange(shape, inputRef.current), _this3.editor.setEditingShape(null));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/draw",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.51",
|
|
4
4
|
"description": "RUF: TLDraw canvas",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"watch": "npm-run-all -p watch:rollup watch:dts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
37
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
36
|
+
"@react-fabric/core": "^1.0.0-beta.51",
|
|
37
|
+
"@react-fabric/utilities": "^1.0.0-beta.50",
|
|
38
38
|
"@tldraw/assets": "^3.13.1",
|
|
39
39
|
"@tldraw/editor": "^3.13.1",
|
|
40
40
|
"@tldraw/tldraw": "^3.13.1",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"dom-to-image": "^2.6.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"i18next": "^
|
|
45
|
+
"i18next": "^25.2.1",
|
|
46
46
|
"react": "^19.0.0",
|
|
47
47
|
"react-dom": "^19.0.0",
|
|
48
|
-
"react-i18next": "^15.
|
|
48
|
+
"react-i18next": "^15.5.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/dom-to-image": "^2.6.7"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"node": ">=18.12.0",
|
|
55
55
|
"npm": ">=8.19.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a1b04de4663045f82992bff2aef8db26608eac74"
|
|
58
58
|
}
|
|
@@ -207,7 +207,10 @@ export class AvatarShapeUtil extends ShapeUtil<AvatarShape> {
|
|
|
207
207
|
spellCheck="true"
|
|
208
208
|
wrap="off"
|
|
209
209
|
dir="auto"
|
|
210
|
-
ref={(el) =>
|
|
210
|
+
ref={(el) => {
|
|
211
|
+
el?.select();
|
|
212
|
+
el?.focus();
|
|
213
|
+
}}
|
|
211
214
|
onKeyDown={(e) =>
|
|
212
215
|
e.key === "Enter" &&
|
|
213
216
|
(e.stopPropagation(),
|