@weaverse/react 0.5.10 → 0.5.11
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/index.js +17 -7
- package/dist/index.mjs +17 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -219,10 +219,11 @@ var schema3 = {
|
|
|
219
219
|
display: "flex",
|
|
220
220
|
backgroundColor: "rgba(248,203,203,0.38)",
|
|
221
221
|
gridArea: "1 / 1 / 3 / 6",
|
|
222
|
-
minHeight: "96px"
|
|
222
|
+
minHeight: "96px",
|
|
223
|
+
overflow: "hidden"
|
|
223
224
|
},
|
|
224
225
|
"@mobile": {
|
|
225
|
-
|
|
226
|
+
width: "100%"
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
229
|
},
|
|
@@ -296,16 +297,14 @@ var layout_default = Layout;
|
|
|
296
297
|
var React5 = __toESM(require("react"));
|
|
297
298
|
var Text = React5.forwardRef((props, ref) => {
|
|
298
299
|
let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
|
|
299
|
-
return /* @__PURE__ */ React5.createElement("
|
|
300
|
+
return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
|
|
300
301
|
ref
|
|
301
302
|
}, rest), {
|
|
302
|
-
contentEditable: true,
|
|
303
303
|
dangerouslySetInnerHTML: { __html: value }
|
|
304
304
|
}));
|
|
305
305
|
});
|
|
306
306
|
Text.defaultProps = {
|
|
307
|
-
value: "sample text"
|
|
308
|
-
tag: "span"
|
|
307
|
+
value: "sample text"
|
|
309
308
|
};
|
|
310
309
|
var schema5 = {
|
|
311
310
|
type: "text",
|
|
@@ -327,7 +326,18 @@ var schema5 = {
|
|
|
327
326
|
}
|
|
328
327
|
]
|
|
329
328
|
}
|
|
330
|
-
]
|
|
329
|
+
],
|
|
330
|
+
data: {
|
|
331
|
+
css: {
|
|
332
|
+
"@desktop": {
|
|
333
|
+
width: "100%",
|
|
334
|
+
height: "fit-content",
|
|
335
|
+
"&:focus": {
|
|
336
|
+
outline: "none"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
331
341
|
};
|
|
332
342
|
var text_default = Text;
|
|
333
343
|
|
package/dist/index.mjs
CHANGED
|
@@ -192,10 +192,11 @@ var schema3 = {
|
|
|
192
192
|
display: "flex",
|
|
193
193
|
backgroundColor: "rgba(248,203,203,0.38)",
|
|
194
194
|
gridArea: "1 / 1 / 3 / 6",
|
|
195
|
-
minHeight: "96px"
|
|
195
|
+
minHeight: "96px",
|
|
196
|
+
overflow: "hidden"
|
|
196
197
|
},
|
|
197
198
|
"@mobile": {
|
|
198
|
-
|
|
199
|
+
width: "100%"
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
},
|
|
@@ -269,16 +270,14 @@ var layout_default = Layout;
|
|
|
269
270
|
import * as React5 from "react";
|
|
270
271
|
var Text = React5.forwardRef((props, ref) => {
|
|
271
272
|
let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
|
|
272
|
-
return /* @__PURE__ */ React5.createElement("
|
|
273
|
+
return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
|
|
273
274
|
ref
|
|
274
275
|
}, rest), {
|
|
275
|
-
contentEditable: true,
|
|
276
276
|
dangerouslySetInnerHTML: { __html: value }
|
|
277
277
|
}));
|
|
278
278
|
});
|
|
279
279
|
Text.defaultProps = {
|
|
280
|
-
value: "sample text"
|
|
281
|
-
tag: "span"
|
|
280
|
+
value: "sample text"
|
|
282
281
|
};
|
|
283
282
|
var schema5 = {
|
|
284
283
|
type: "text",
|
|
@@ -300,7 +299,18 @@ var schema5 = {
|
|
|
300
299
|
}
|
|
301
300
|
]
|
|
302
301
|
}
|
|
303
|
-
]
|
|
302
|
+
],
|
|
303
|
+
data: {
|
|
304
|
+
css: {
|
|
305
|
+
"@desktop": {
|
|
306
|
+
width: "100%",
|
|
307
|
+
height: "fit-content",
|
|
308
|
+
"&:focus": {
|
|
309
|
+
outline: "none"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
304
314
|
};
|
|
305
315
|
var text_default = Text;
|
|
306
316
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
2
|
+
"version": "0.5.11",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"name": "@weaverse/react",
|
|
32
32
|
"author": "Weaverse Team",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@weaverse/core": "0.5.
|
|
34
|
+
"@weaverse/core": "0.5.11"
|
|
35
35
|
}
|
|
36
36
|
}
|