@raketa-builder/builder 0.1.0 → 0.2.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.
@@ -5,4 +5,4 @@ CLI tsup v6.5.0
5
5
  CLI Target: es6
6
6
  CJS Build start
7
7
  CJS dist/index.js 123.74 KB
8
- CJS ⚡️ Build success in 255ms
8
+ CJS ⚡️ Build success in 406ms
@@ -1,13 +1,13 @@
1
1
  $ TIMING=1 eslint "**/*.js"
2
2
  Rule | Time (ms) | Relative
3
3
  :---------------------------------|----------:|--------:
4
- react/no-direct-mutation-state | 117.998 | 28.0%
5
- react/display-name | 110.604 | 26.2%
6
- react/require-render-return | 49.781 | 11.8%
7
- react-hooks/rules-of-hooks | 32.740 | 7.8%
8
- react/jsx-no-comment-textnodes | 28.803 | 6.8%
9
- react/no-deprecated | 28.777 | 6.8%
10
- react/no-unescaped-entities | 9.788 | 2.3%
11
- react/no-string-refs | 8.498 | 2.0%
12
- jsx-a11y/role-supports-aria-props | 4.824 | 1.1%
13
- react-hooks/exhaustive-deps | 3.890 | 0.9%
4
+ react/no-direct-mutation-state | 112.696 | 28.7%
5
+ react/display-name | 89.187 | 22.7%
6
+ react/require-render-return | 81.105 | 20.7%
7
+ react-hooks/exhaustive-deps | 21.685 | 5.5%
8
+ react/no-deprecated | 18.021 | 4.6%
9
+ react-hooks/rules-of-hooks | 10.621 | 2.7%
10
+ react/no-string-refs | 9.744 | 2.5%
11
+ jsx-a11y/role-supports-aria-props | 7.943 | 2.0%
12
+ react/no-unescaped-entities | 4.903 | 1.2%
13
+ react/jsx-no-comment-textnodes | 4.680 | 1.2%
package/dist/index.js CHANGED
@@ -842,7 +842,7 @@ var require_dist = __commonJS({
842
842
  pathname: router.pathname,
843
843
  query: __spreadValues2(__spreadValues2({}, router.query), { page: currentPage - 1 })
844
844
  },
845
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: "Previous" })
845
+ children: "Previous"
846
846
  }
847
847
  );
848
848
  };
@@ -857,7 +857,7 @@ var require_dist = __commonJS({
857
857
  pathname: router.pathname,
858
858
  query: __spreadValues2(__spreadValues2({}, router.query), { page: currentPage + 1 })
859
859
  },
860
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: "Next" })
860
+ children: "Next"
861
861
  }
862
862
  );
863
863
  };
@@ -888,7 +888,7 @@ var require_dist = __commonJS({
888
888
  pathname: router.pathname,
889
889
  query: __spreadValues2(__spreadValues2({}, router.query), { page: pageNum })
890
890
  },
891
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: pageNum })
891
+ children: pageNum
892
892
  },
893
893
  pageNum
894
894
  );
@@ -2188,7 +2188,7 @@ var import_react17 = __toESM(require("react"));
2188
2188
  var import_jsx_runtime13 = require("react/jsx-runtime");
2189
2189
  var ImagePicker = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
2190
2190
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { children: [
2191
- "ImagePicker is no longer part of @raketa-builder/builder. Please use @raketa-cms/raketa-image-input.",
2191
+ "ImagePicker is no longer part of @raketa-builder/builder. Please use @raketa-builder/image-input.",
2192
2192
  " "
2193
2193
  ] }),
2194
2194
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("strong", { children: "Update imports" }),
@@ -2527,7 +2527,7 @@ var import_react20 = __toESM(require("react"));
2527
2527
  var import_jsx_runtime16 = require("react/jsx-runtime");
2528
2528
  var ImageInput = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
2529
2529
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { children: [
2530
- "ImageInput is no longer part of @raketa-builder/builder. Please use @raketa-cms/raketa-image-input.",
2530
+ "ImageInput is no longer part of @raketa-builder/builder. Please use @raketa-builder/image-input.",
2531
2531
  " "
2532
2532
  ] }),
2533
2533
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("strong", { children: "Update imports" }),
@@ -2846,7 +2846,7 @@ var List_default = List;
2846
2846
  var import_react23 = __toESM(require("react"));
2847
2847
  var import_jsx_runtime19 = require("react/jsx-runtime");
2848
2848
  var Container2 = ({ settings, className, children }) => {
2849
- const _a = settings, { containerID } = _a, restSettings = __objRest(_a, ["containerID"]);
2849
+ const _a = settings || {}, { containerID } = _a, restSettings = __objRest(_a, ["containerID"]);
2850
2850
  const cssClasses = [...Object.values(restSettings), className].join(" ");
2851
2851
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { id: containerID, className: cssClasses, children });
2852
2852
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/builder",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
package/src/Container.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
3
  const Container = ({ settings, className, children }) => {
4
- const { containerID, ...restSettings } = settings;
4
+ const { containerID, ...restSettings } = settings || {};
5
5
 
6
6
  const cssClasses = [...Object.values(restSettings), className].join(" ");
7
7
 
@@ -4,7 +4,7 @@ const ImageInput = () => (
4
4
  <div>
5
5
  <p>
6
6
  ImageInput is no longer part of @raketa-builder/builder. Please use
7
- @raketa-cms/raketa-image-input.{" "}
7
+ @raketa-builder/image-input.{" "}
8
8
  </p>
9
9
 
10
10
  <strong>Update imports</strong>
@@ -4,7 +4,7 @@ const ImagePicker = () => (
4
4
  <div>
5
5
  <p>
6
6
  ImagePicker is no longer part of @raketa-builder/builder. Please use
7
- @raketa-cms/raketa-image-input.{" "}
7
+ @raketa-builder/image-input.{" "}
8
8
  </p>
9
9
 
10
10
  <strong>Update imports</strong>