@raketa-builder/builder 1.5.4 → 1.5.9
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/forms/TextInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __spreadValues, __objRest } from '../chunk-BBZEL7EG.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { FormGroup, Label, Textarea, Input, Hint } from '@raketa-builder/ui';
|
|
5
5
|
import { randomString } from '../lists';
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ const TextField = (_a) => {
|
|
|
22
22
|
"value",
|
|
23
23
|
"placeholder"
|
|
24
24
|
]);
|
|
25
|
-
const id = randomString();
|
|
25
|
+
const id = React.useMemo(() => randomString(), []);
|
|
26
26
|
const Component = multiline ? Textarea : Input;
|
|
27
27
|
return /* @__PURE__ */ jsxs(FormGroup, { children: [
|
|
28
28
|
label ? /* @__PURE__ */ jsx(Label, { htmlFor: id, error, children: label }) : "",
|
package/dist/lib/AdminWidget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../chunk-BBZEL7EG.js';
|
|
1
|
+
import { __spreadProps, __spreadValues } from '../chunk-BBZEL7EG.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import AdminWidgetWrapper from './AdminWidgetWrapper';
|
|
@@ -95,7 +95,11 @@ const AdminWidget = ({
|
|
|
95
95
|
widgetData.title(currentAdminWidget),
|
|
96
96
|
widgetData.deprecated(currentAdminWidget) && " (deprecated)"
|
|
97
97
|
] }),
|
|
98
|
-
wrapWidget ? /* @__PURE__ */ jsx(Container, { settings: containerSettings, children: React.createElement(currentWidget,
|
|
98
|
+
wrapWidget ? /* @__PURE__ */ jsx(Container, { settings: containerSettings, children: React.createElement(currentWidget, __spreadProps(__spreadValues({}, widget.settings), {
|
|
99
|
+
widgetId: widget.widgetId
|
|
100
|
+
})) }) : React.createElement(currentWidget, __spreadProps(__spreadValues({}, widget.settings), {
|
|
101
|
+
widgetId: widget.widgetId
|
|
102
|
+
}))
|
|
99
103
|
] });
|
|
100
104
|
};
|
|
101
105
|
var AdminWidget_default = AdminWidget;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raketa-builder/builder",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"lint": "biome lint --max-diagnostics=5000 ."
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"react": "19.1.0",
|
|
30
|
-
"react-dom": "19.1.0"
|
|
29
|
+
"react": ">=19.1.0 && <=19.3.0",
|
|
30
|
+
"react-dom": ">=19.1.0 && <=19.3.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"react-sortablejs": "6.1.4",
|
|
34
|
-
"@raketa-builder/support": "1.5.
|
|
35
|
-
"@raketa-builder/ui": "1.5.
|
|
34
|
+
"@raketa-builder/support": "1.5.9",
|
|
35
|
+
"@raketa-builder/ui": "1.5.9"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@biomejs/biome": "2.1.2",
|
|
39
39
|
"@types/react": "19.1.8",
|
|
40
40
|
"prettier": "3.6.2",
|
|
41
|
-
"@types/react-dom": "19.1.
|
|
42
|
-
"react": "19.1.0",
|
|
41
|
+
"@types/react-dom": "19.1.8",
|
|
42
|
+
"react": ">=19.1.0 && <= 19.3.0",
|
|
43
43
|
"tsconfig": "*",
|
|
44
44
|
"tsup": "8.5.0",
|
|
45
45
|
"typescript": "5.8.3"
|