@raketa-builder/builder 1.3.0 → 1.3.2
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 +4 -4
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -2095,7 +2095,7 @@ var PageBuilder = ({
|
|
|
2095
2095
|
console.warn("No adminLibrary provided to AdminBuilder.");
|
|
2096
2096
|
}
|
|
2097
2097
|
const currentWidget = selectedWidget ? adminLibrary[selectedWidget.component] : null;
|
|
2098
|
-
const factory = (widgetName) => __async(
|
|
2098
|
+
const factory = (widgetName) => __async(null, null, function* () {
|
|
2099
2099
|
const widget = adminLibrary[widgetName];
|
|
2100
2100
|
const settings = widgetData_default.defaults(widget);
|
|
2101
2101
|
const widgetId = randomString(6);
|
|
@@ -2112,7 +2112,7 @@ var PageBuilder = ({
|
|
|
2112
2112
|
};
|
|
2113
2113
|
});
|
|
2114
2114
|
const handleSelectAll = (items) => setSelectedWidgets(items);
|
|
2115
|
-
const handleAdd = (widgetName) => __async(
|
|
2115
|
+
const handleAdd = (widgetName) => __async(null, null, function* () {
|
|
2116
2116
|
const widgets2 = add(page.widgets, yield factory(widgetName));
|
|
2117
2117
|
const widgetTitle = widgetData_default.title(adminLibrary[widgetName]);
|
|
2118
2118
|
const newPage = __spreadProps(__spreadValues({}, page), {
|
|
@@ -2123,7 +2123,7 @@ var PageBuilder = ({
|
|
|
2123
2123
|
onSave(sanitizeWidgets(newPage), `${widgetTitle} added to page`);
|
|
2124
2124
|
notifyChange(newPage);
|
|
2125
2125
|
});
|
|
2126
|
-
const handleUpdate = (widget) => __async(
|
|
2126
|
+
const handleUpdate = (widget) => __async(null, null, function* () {
|
|
2127
2127
|
const widgets2 = updateFieldById(
|
|
2128
2128
|
page.widgets,
|
|
2129
2129
|
"settings",
|
|
@@ -2229,7 +2229,7 @@ var PageBuilder = ({
|
|
|
2229
2229
|
onSave(sanitizeWidgets(newPage), notificationText);
|
|
2230
2230
|
notifyChange(newPage);
|
|
2231
2231
|
};
|
|
2232
|
-
const handleSaveWidget = (settings) => __async(
|
|
2232
|
+
const handleSaveWidget = (settings) => __async(null, null, function* () {
|
|
2233
2233
|
yield handleUpdate(__spreadProps(__spreadValues({}, selectedWidget), {
|
|
2234
2234
|
settings
|
|
2235
2235
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raketa-builder/builder",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
"lint": "biome lint --max-diagnostics=5000 ."
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"react": "19.
|
|
15
|
-
"react-dom": "19.
|
|
14
|
+
"react": "19.1.0",
|
|
15
|
+
"react-dom": "19.1.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"react-sortablejs": "6.1.4",
|
|
19
|
-
"@raketa-builder/support": "1.3.
|
|
20
|
-
"@raketa-builder/ui": "1.3.
|
|
19
|
+
"@raketa-builder/support": "1.3.2",
|
|
20
|
+
"@raketa-builder/ui": "1.3.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@biomejs/biome": "1.9.4",
|
|
24
24
|
"@types/react": "19.0.12",
|
|
25
|
-
"@types/react-dom": "19.
|
|
25
|
+
"@types/react-dom": "19.1.5",
|
|
26
26
|
"prettier": "3.5.3",
|
|
27
|
-
"react": "19.
|
|
27
|
+
"react": "19.1.0",
|
|
28
28
|
"tsconfig": "*",
|
|
29
|
-
"tsup": "8.
|
|
30
|
-
"typescript": "5.8.
|
|
29
|
+
"tsup": "8.5.0",
|
|
30
|
+
"typescript": "5.8.3"
|
|
31
31
|
}
|
|
32
32
|
}
|