@bluemarble/bm-components 1.16.2 → 1.17.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.
package/dist/index.mjs CHANGED
@@ -3992,11 +3992,11 @@ import {
3992
3992
  Modal as MuiModal
3993
3993
  } from "@mui/material";
3994
3994
  var Modal = (_a) => {
3995
- var _b = _a, { open, onClose } = _b, rest = __objRest(_b, ["open", "onClose"]);
3995
+ var _b = _a, { open, onClose, BoxProps: BoxProps3 } = _b, rest = __objRest(_b, ["open", "onClose", "BoxProps"]);
3996
3996
  return /* @__PURE__ */ React22.createElement(MuiModal, __spreadValues({ open, onClose }, rest), /* @__PURE__ */ React22.createElement(
3997
3997
  Box5,
3998
- {
3999
- sx: {
3998
+ __spreadProps(__spreadValues({}, BoxProps3), {
3999
+ sx: __spreadValues({
4000
4000
  outline: "none",
4001
4001
  backgroundColor: "background.paper",
4002
4002
  position: "absolute",
@@ -4004,9 +4004,9 @@ var Modal = (_a) => {
4004
4004
  left: "50%",
4005
4005
  transform: "translate(-50%, -50%)",
4006
4006
  borderRadius: 1
4007
- }
4008
- },
4009
- /* @__PURE__ */ React22.createElement(React22.Fragment, null, rest.children)
4007
+ }, BoxProps3 == null ? void 0 : BoxProps3.sx)
4008
+ }),
4009
+ rest.children
4010
4010
  ));
4011
4011
  };
4012
4012
 
@@ -4454,55 +4454,7 @@ function useFormHelper() {
4454
4454
  // src/helpers/authHelper.ts
4455
4455
  import { serialize } from "cookie";
4456
4456
  import { parseCookies, setCookie } from "nookies";
4457
-
4458
- // node_modules/uuid/dist/esm-node/rng.js
4459
- import crypto from "crypto";
4460
- var rnds8Pool = new Uint8Array(256);
4461
- var poolPtr = rnds8Pool.length;
4462
- function rng() {
4463
- if (poolPtr > rnds8Pool.length - 16) {
4464
- crypto.randomFillSync(rnds8Pool);
4465
- poolPtr = 0;
4466
- }
4467
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
4468
- }
4469
-
4470
- // node_modules/uuid/dist/esm-node/stringify.js
4471
- var byteToHex = [];
4472
- for (let i = 0; i < 256; ++i) {
4473
- byteToHex.push((i + 256).toString(16).slice(1));
4474
- }
4475
- function unsafeStringify(arr, offset = 0) {
4476
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
4477
- }
4478
-
4479
- // node_modules/uuid/dist/esm-node/native.js
4480
- import crypto2 from "crypto";
4481
- var native_default = {
4482
- randomUUID: crypto2.randomUUID
4483
- };
4484
-
4485
- // node_modules/uuid/dist/esm-node/v4.js
4486
- function v4(options, buf, offset) {
4487
- if (native_default.randomUUID && !buf && !options) {
4488
- return native_default.randomUUID();
4489
- }
4490
- options = options || {};
4491
- const rnds = options.random || (options.rng || rng)();
4492
- rnds[6] = rnds[6] & 15 | 64;
4493
- rnds[8] = rnds[8] & 63 | 128;
4494
- if (buf) {
4495
- offset = offset || 0;
4496
- for (let i = 0; i < 16; ++i) {
4497
- buf[offset + i] = rnds[i];
4498
- }
4499
- return buf;
4500
- }
4501
- return unsafeStringify(rnds);
4502
- }
4503
- var v4_default = v4;
4504
-
4505
- // src/helpers/authHelper.ts
4457
+ import { v4 as uuid } from "uuid";
4506
4458
  import jwt from "jsonwebtoken";
4507
4459
  function decodeSessionToken({
4508
4460
  req,
@@ -4547,7 +4499,7 @@ var AuthHelper = class {
4547
4499
  expiresIn: this.tokenExpTimeInSeconds || 60 * 15
4548
4500
  // 15 minutos
4549
4501
  });
4550
- const uniqueToken = v4_default();
4502
+ const uniqueToken = uuid();
4551
4503
  yield this.onCreateRefreshToken(userId, uniqueToken);
4552
4504
  return {
4553
4505
  token,