@raketa-builder/builder 0.8.0 → 0.9.0

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.
@@ -4,5 +4,5 @@ CLI Using tsconfig: tsconfig.json
4
4
  CLI tsup v6.5.0
5
5
  CLI Target: es6
6
6
  CJS Build start
7
- CJS dist/index.js 128.32 KB
8
- CJS ⚡️ Build success in 223ms
7
+ CJS dist/index.js 128.38 KB
8
+ CJS ⚡️ Build success in 44ms
@@ -1,13 +1,13 @@
1
1
  $ TIMING=1 eslint "**/*.js"
2
2
  Rule | Time (ms) | Relative
3
3
  :---------------------------------|----------:|--------:
4
- react/display-name | 86.473 | 28.1%
5
- react/no-direct-mutation-state | 79.777 | 25.9%
6
- react/require-render-return | 61.222 | 19.9%
7
- react/no-deprecated | 15.966 | 5.2%
8
- react/no-string-refs | 9.252 | 3.0%
9
- react-hooks/rules-of-hooks | 8.985 | 2.9%
10
- jsx-a11y/role-supports-aria-props | 4.664 | 1.5%
11
- react/no-unescaped-entities | 4.425 | 1.4%
12
- react/jsx-no-comment-textnodes | 4.237 | 1.4%
13
- react-hooks/exhaustive-deps | 4.217 | 1.4%
4
+ react/no-direct-mutation-state | 31.205 | 33.8%
5
+ react/display-name | 24.748 | 26.8%
6
+ react/require-render-return | 10.247 | 11.1%
7
+ react/no-deprecated | 6.985 | 7.6%
8
+ react-hooks/rules-of-hooks | 3.509 | 3.8%
9
+ react/no-string-refs | 3.039 | 3.3%
10
+ react-hooks/exhaustive-deps | 1.302 | 1.4%
11
+ jsx-a11y/role-supports-aria-props | 1.285 | 1.4%
12
+ react/no-unescaped-entities | 1.190 | 1.3%
13
+ react/jsx-no-comment-textnodes | 1.077 | 1.2%
package/dist/index.js CHANGED
@@ -1304,7 +1304,7 @@ var AdminWidget = ({
1304
1304
  });
1305
1305
  window.localStorage.setItem(`clipboard\u2013${identifier}`, storedWidget);
1306
1306
  };
1307
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AdminWidgetWrapper_default, { children: [
1307
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AdminWidgetWrapper_default, { "data-widget": widget.component, children: [
1308
1308
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AdminWidgetToolbar_default, { "data-toolbar": true, children: [
1309
1309
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(IconButton_default, { icon: "iconMove", "data-drag": true }),
1310
1310
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
@@ -3324,12 +3324,7 @@ var import_react31 = __toESM(require("react"));
3324
3324
  // src/lib/AdminWidgetMinimal.js
3325
3325
  var import_react30 = __toESM(require("react"));
3326
3326
  var import_jsx_runtime26 = require("react/jsx-runtime");
3327
- var AdminWidgetMinimal = ({
3328
- library,
3329
- adminLibrary,
3330
- identifier,
3331
- widget
3332
- }) => {
3327
+ var AdminWidgetMinimal = ({ library, adminLibrary, identifier, widget }) => {
3333
3328
  const currentWidget = library[widget.component];
3334
3329
  const currentAdminWidget = adminLibrary[widget.component];
3335
3330
  if (!currentWidget || !currentAdminWidget) {
@@ -3343,7 +3338,7 @@ var AdminWidgetMinimal = ({
3343
3338
  });
3344
3339
  window.localStorage.setItem(`clipboard\u2013${identifier}`, storedWidget);
3345
3340
  };
3346
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdminWidgetWrapper_default, { children: [
3341
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdminWidgetWrapper_default, { "data-widget": widget.component, children: [
3347
3342
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdminWidgetToolbar_default, { "data-toolbar": true, children: !widgetData_default.deprecated(currentAdminWidget) && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3348
3343
  IconButton_default,
3349
3344
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/builder",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@ const AdminWidget = ({
38
38
  };
39
39
 
40
40
  return (
41
- <AdminWidgetWrapper>
41
+ <AdminWidgetWrapper data-widget={widget.component}>
42
42
  <AdminWidgetToolbar data-toolbar>
43
43
  <IconButton icon="iconMove" data-drag />
44
44
  <IconButton
@@ -5,12 +5,7 @@ import AdminWidgetToolbar from "./AdminWidgetToolbar";
5
5
  import IconButton from "./IconButton";
6
6
  import widgetData from "../helpers/widgetData";
7
7
 
8
- const AdminWidgetMinimal = ({
9
- library,
10
- adminLibrary,
11
- identifier,
12
- widget,
13
- }) => {
8
+ const AdminWidgetMinimal = ({ library, adminLibrary, identifier, widget }) => {
14
9
  const currentWidget = library[widget.component];
15
10
  const currentAdminWidget = adminLibrary[widget.component];
16
11
 
@@ -29,7 +24,7 @@ const AdminWidgetMinimal = ({
29
24
  };
30
25
 
31
26
  return (
32
- <AdminWidgetWrapper>
27
+ <AdminWidgetWrapper data-widget={widget.component}>
33
28
  <AdminWidgetToolbar data-toolbar>
34
29
  {!widgetData.deprecated(currentAdminWidget) && (
35
30
  <IconButton