@webbycrown/webbycommerce 1.0.1 → 1.0.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/README.md CHANGED
@@ -580,6 +580,11 @@ Authorization: Bearer YOUR_JWT_TOKEN
580
580
 
581
581
  ## 📜 Changelog
582
582
 
583
+ ## [1.0.2] – Patch Release
584
+
585
+ ### Fixed
586
+ - Fix critical bugs
587
+
583
588
  ## [1.0.1] – Patch Release
584
589
 
585
590
  ### Changed
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import React__default, { useContext, useRef, useCallback, useDebugValue, useMemo, useState, useEffect, useLayoutEffect, createContext as createContext$1, createElement, useReducer } from "react";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { Flex, Box, Popover, Typography, Button, LinkButton, Link as Link$1, Portal, Alert, Field, SubNav, Badge, TextInput, Pagination, PreviousLink, Dots, PageLink, NextLink, Modal, Main } from "@strapi/design-system";
6
- import { P as PLUGIN_ID } from "./index-rT-5a8Cs.mjs";
6
+ import { P as PLUGIN_ID } from "./index-Cgnv1DYN.mjs";
7
7
  import { WarningCircle, CaretDown, Trash } from "@strapi/icons";
8
8
  import "react-dom/client";
9
9
  import ReactDOM, { unstable_batchedUpdates as unstable_batchedUpdates$1 } from "react-dom";
@@ -10289,7 +10289,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
10289
10289
  var ys = arrObjKeys(obj, inspect2);
10290
10290
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
10291
10291
  var protoTag = obj instanceof Object ? "" : "null prototype";
10292
- var stringTag2 = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
10292
+ var stringTag2 = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
10293
10293
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
10294
10294
  var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
10295
10295
  if (ys.length === 0) {
@@ -10314,25 +10314,25 @@ function canTrustToString(obj) {
10314
10314
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
10315
10315
  }
10316
10316
  function isArray$4(obj) {
10317
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
10317
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
10318
10318
  }
10319
10319
  function isDate$2(obj) {
10320
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
10320
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
10321
10321
  }
10322
10322
  function isRegExp$2(obj) {
10323
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
10323
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
10324
10324
  }
10325
10325
  function isError(obj) {
10326
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
10326
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
10327
10327
  }
10328
10328
  function isString$1(obj) {
10329
- return toStr(obj) === "[object String]" && canTrustToString(obj);
10329
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
10330
10330
  }
10331
10331
  function isNumber$1(obj) {
10332
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
10332
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
10333
10333
  }
10334
10334
  function isBoolean$1(obj) {
10335
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
10335
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
10336
10336
  }
10337
10337
  function isSymbol(obj) {
10338
10338
  if (hasShammedSymbols) {
@@ -10368,7 +10368,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
10368
10368
  function has$5(obj, key) {
10369
10369
  return hasOwn$1.call(obj, key);
10370
10370
  }
10371
- function toStr(obj) {
10371
+ function toStr$1(obj) {
10372
10372
  return objectToString.call(obj);
10373
10373
  }
10374
10374
  function nameOf(f2) {
@@ -10677,7 +10677,7 @@ var syntax = SyntaxError;
10677
10677
  var uri = URIError;
10678
10678
  var abs$1 = Math.abs;
10679
10679
  var floor$1 = Math.floor;
10680
- var max$1 = Math.max;
10680
+ var max$2 = Math.max;
10681
10681
  var min$1 = Math.min;
10682
10682
  var pow$1 = Math.pow;
10683
10683
  var round$1 = Math.round;
@@ -10806,99 +10806,78 @@ function requireObject_getPrototypeOf() {
10806
10806
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
10807
10807
  return Object_getPrototypeOf;
10808
10808
  }
10809
- var implementation;
10810
- var hasRequiredImplementation;
10811
- function requireImplementation() {
10812
- if (hasRequiredImplementation) return implementation;
10813
- hasRequiredImplementation = 1;
10814
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
10815
- var toStr2 = Object.prototype.toString;
10816
- var max2 = Math.max;
10817
- var funcType = "[object Function]";
10818
- var concatty = function concatty2(a2, b2) {
10819
- var arr = [];
10820
- for (var i2 = 0; i2 < a2.length; i2 += 1) {
10821
- arr[i2] = a2[i2];
10822
- }
10823
- for (var j2 = 0; j2 < b2.length; j2 += 1) {
10824
- arr[j2 + a2.length] = b2[j2];
10825
- }
10826
- return arr;
10827
- };
10828
- var slicy = function slicy2(arrLike, offset) {
10829
- var arr = [];
10830
- for (var i2 = offset, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
10831
- arr[j2] = arrLike[i2];
10809
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
10810
+ var toStr = Object.prototype.toString;
10811
+ var max$1 = Math.max;
10812
+ var funcType = "[object Function]";
10813
+ var concatty = function concatty2(a2, b2) {
10814
+ var arr = [];
10815
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
10816
+ arr[i2] = a2[i2];
10817
+ }
10818
+ for (var j2 = 0; j2 < b2.length; j2 += 1) {
10819
+ arr[j2 + a2.length] = b2[j2];
10820
+ }
10821
+ return arr;
10822
+ };
10823
+ var slicy = function slicy2(arrLike, offset) {
10824
+ var arr = [];
10825
+ for (var i2 = offset, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
10826
+ arr[j2] = arrLike[i2];
10827
+ }
10828
+ return arr;
10829
+ };
10830
+ var joiny = function(arr, joiner) {
10831
+ var str = "";
10832
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
10833
+ str += arr[i2];
10834
+ if (i2 + 1 < arr.length) {
10835
+ str += joiner;
10832
10836
  }
10833
- return arr;
10834
- };
10835
- var joiny = function(arr, joiner) {
10836
- var str = "";
10837
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
10838
- str += arr[i2];
10839
- if (i2 + 1 < arr.length) {
10840
- str += joiner;
10837
+ }
10838
+ return str;
10839
+ };
10840
+ var implementation$1 = function bind(that) {
10841
+ var target = this;
10842
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
10843
+ throw new TypeError(ERROR_MESSAGE + target);
10844
+ }
10845
+ var args = slicy(arguments, 1);
10846
+ var bound;
10847
+ var binder = function() {
10848
+ if (this instanceof bound) {
10849
+ var result = target.apply(
10850
+ this,
10851
+ concatty(args, arguments)
10852
+ );
10853
+ if (Object(result) === result) {
10854
+ return result;
10841
10855
  }
10856
+ return this;
10842
10857
  }
10843
- return str;
10858
+ return target.apply(
10859
+ that,
10860
+ concatty(args, arguments)
10861
+ );
10844
10862
  };
10845
- implementation = function bind2(that) {
10846
- var target = this;
10847
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
10848
- throw new TypeError(ERROR_MESSAGE + target);
10849
- }
10850
- var args = slicy(arguments, 1);
10851
- var bound;
10852
- var binder = function() {
10853
- if (this instanceof bound) {
10854
- var result = target.apply(
10855
- this,
10856
- concatty(args, arguments)
10857
- );
10858
- if (Object(result) === result) {
10859
- return result;
10860
- }
10861
- return this;
10862
- }
10863
- return target.apply(
10864
- that,
10865
- concatty(args, arguments)
10866
- );
10863
+ var boundLength = max$1(0, target.length - args.length);
10864
+ var boundArgs = [];
10865
+ for (var i2 = 0; i2 < boundLength; i2++) {
10866
+ boundArgs[i2] = "$" + i2;
10867
+ }
10868
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
10869
+ if (target.prototype) {
10870
+ var Empty = function Empty2() {
10867
10871
  };
10868
- var boundLength = max2(0, target.length - args.length);
10869
- var boundArgs = [];
10870
- for (var i2 = 0; i2 < boundLength; i2++) {
10871
- boundArgs[i2] = "$" + i2;
10872
- }
10873
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
10874
- if (target.prototype) {
10875
- var Empty = function Empty2() {
10876
- };
10877
- Empty.prototype = target.prototype;
10878
- bound.prototype = new Empty();
10879
- Empty.prototype = null;
10880
- }
10881
- return bound;
10882
- };
10883
- return implementation;
10884
- }
10885
- var functionBind;
10886
- var hasRequiredFunctionBind;
10887
- function requireFunctionBind() {
10888
- if (hasRequiredFunctionBind) return functionBind;
10889
- hasRequiredFunctionBind = 1;
10890
- var implementation2 = requireImplementation();
10891
- functionBind = Function.prototype.bind || implementation2;
10892
- return functionBind;
10893
- }
10894
- var functionCall;
10895
- var hasRequiredFunctionCall;
10896
- function requireFunctionCall() {
10897
- if (hasRequiredFunctionCall) return functionCall;
10898
- hasRequiredFunctionCall = 1;
10899
- functionCall = Function.prototype.call;
10900
- return functionCall;
10901
- }
10872
+ Empty.prototype = target.prototype;
10873
+ bound.prototype = new Empty();
10874
+ Empty.prototype = null;
10875
+ }
10876
+ return bound;
10877
+ };
10878
+ var implementation = implementation$1;
10879
+ var functionBind = Function.prototype.bind || implementation;
10880
+ var functionCall = Function.prototype.call;
10902
10881
  var functionApply;
10903
10882
  var hasRequiredFunctionApply;
10904
10883
  function requireFunctionApply() {
@@ -10908,14 +10887,14 @@ function requireFunctionApply() {
10908
10887
  return functionApply;
10909
10888
  }
10910
10889
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
10911
- var bind$3 = requireFunctionBind();
10890
+ var bind$3 = functionBind;
10912
10891
  var $apply$1 = requireFunctionApply();
10913
- var $call$2 = requireFunctionCall();
10892
+ var $call$2 = functionCall;
10914
10893
  var $reflectApply = reflectApply;
10915
10894
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
10916
- var bind$2 = requireFunctionBind();
10895
+ var bind$2 = functionBind;
10917
10896
  var $TypeError$4 = type;
10918
- var $call$1 = requireFunctionCall();
10897
+ var $call$1 = functionCall;
10919
10898
  var $actualApply = actualApply;
10920
10899
  var callBindApplyHelpers = function callBindBasic(args) {
10921
10900
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -10981,8 +10960,8 @@ function requireHasown() {
10981
10960
  hasRequiredHasown = 1;
10982
10961
  var call = Function.prototype.call;
10983
10962
  var $hasOwn = Object.prototype.hasOwnProperty;
10984
- var bind2 = requireFunctionBind();
10985
- hasown = bind2.call(call, $hasOwn);
10963
+ var bind3 = functionBind;
10964
+ hasown = bind3.call(call, $hasOwn);
10986
10965
  return hasown;
10987
10966
  }
10988
10967
  var undefined$1;
@@ -10996,7 +10975,7 @@ var $TypeError$3 = type;
10996
10975
  var $URIError = uri;
10997
10976
  var abs = abs$1;
10998
10977
  var floor = floor$1;
10999
- var max = max$1;
10978
+ var max = max$2;
11000
10979
  var min = min$1;
11001
10980
  var pow = pow$1;
11002
10981
  var round = round$1;
@@ -11030,7 +11009,7 @@ var getProto = requireGetProto();
11030
11009
  var $ObjectGPO = requireObject_getPrototypeOf();
11031
11010
  var $ReflectGPO = requireReflect_getPrototypeOf();
11032
11011
  var $apply = requireFunctionApply();
11033
- var $call = requireFunctionCall();
11012
+ var $call = functionCall;
11034
11013
  var needsEval = {};
11035
11014
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
11036
11015
  var INTRINSICS = {
@@ -11201,7 +11180,7 @@ var LEGACY_ALIASES = {
11201
11180
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
11202
11181
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
11203
11182
  };
11204
- var bind$1 = requireFunctionBind();
11183
+ var bind$1 = functionBind;
11205
11184
  var hasOwn = requireHasown();
11206
11185
  var $concat = bind$1.call($call, Array.prototype.concat);
11207
11186
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -15532,7 +15511,7 @@ const admin = adminApi.enhanceEndpoints({
15532
15511
  overrideExisting: false
15533
15512
  });
15534
15513
  const { useInitQuery, useTelemetryPropertiesQuery, useInformationQuery, useProjectSettingsQuery, useUpdateProjectSettingsMutation, useGetPluginsQuery, useGetLicenseLimitsQuery, useGetLicenseTrialTimeLeftQuery, useGetGuidedTourMetaQuery } = admin;
15535
- function bind(fn2, thisArg) {
15514
+ function bind2(fn2, thisArg) {
15536
15515
  return function wrap() {
15537
15516
  return fn2.apply(thisArg, arguments);
15538
15517
  };
@@ -15669,7 +15648,7 @@ function merge2() {
15669
15648
  const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
15670
15649
  forEach$1(b2, (val, key) => {
15671
15650
  if (thisArg && isFunction$1(val)) {
15672
- a2[key] = bind(val, thisArg);
15651
+ a2[key] = bind2(val, thisArg);
15673
15652
  } else {
15674
15653
  a2[key] = val;
15675
15654
  }
@@ -17949,7 +17928,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
17949
17928
  });
17950
17929
  function createInstance(defaultConfig) {
17951
17930
  const context = new Axios$1(defaultConfig);
17952
- const instance = bind(Axios$1.prototype.request, context);
17931
+ const instance = bind2(Axios$1.prototype.request, context);
17953
17932
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
17954
17933
  utils$1.extend(instance, context, null, { allOwnKeys: true });
17955
17934
  instance.create = function create2(instanceConfig) {
@@ -19124,6 +19103,7 @@ new QueryClient({
19124
19103
  });
19125
19104
  const HEIGHT_TOP_NAVIGATION = "6.4rem";
19126
19105
  const HEIGHT_TOP_NAVIGATION_MEDIUM = "5.6rem";
19106
+ const WIDTH_SIDE_NAVIGATION = "23.2rem";
19127
19107
  styled(Alert)`
19128
19108
  & > div:first-child {
19129
19109
  display: none;
@@ -21358,6 +21338,8 @@ flatRest(function(object2, paths) {
21358
21338
  styled(Field.Root)`
21359
21339
  height: 3.2rem;
21360
21340
  width: 3.2rem;
21341
+ align-items: center;
21342
+ justify-content: center;
21361
21343
 
21362
21344
  > label,
21363
21345
  ~ input {
@@ -21408,21 +21390,30 @@ create().shape({
21408
21390
  if (!value || typeof value !== "string") return true;
21409
21391
  const byteSize = getByteSize(value);
21410
21392
  return byteSize <= 72;
21411
- }).matches(/[a-z]/, {
21393
+ }).test("lowercase", {
21412
21394
  message: {
21413
21395
  id: "components.Input.error.contain.lowercase",
21414
21396
  defaultMessage: "Password must contain at least 1 lowercase letter"
21415
21397
  }
21416
- }).matches(/[A-Z]/, {
21398
+ }, (value) => {
21399
+ if (!value) return true;
21400
+ return /[a-z]/.test(value);
21401
+ }).test("uppercase", {
21417
21402
  message: {
21418
21403
  id: "components.Input.error.contain.uppercase",
21419
21404
  defaultMessage: "Password must contain at least 1 uppercase letter"
21420
21405
  }
21421
- }).matches(/\d/, {
21406
+ }, (value) => {
21407
+ if (!value) return true;
21408
+ return /[A-Z]/.test(value);
21409
+ }).test("number", {
21422
21410
  message: {
21423
21411
  id: "components.Input.error.contain.number",
21424
21412
  defaultMessage: "Password must contain at least 1 number"
21425
21413
  }
21414
+ }, (value) => {
21415
+ if (!value) return true;
21416
+ return /\d/.test(value);
21426
21417
  }).required({
21427
21418
  id: errorsTrads.required.id,
21428
21419
  defaultMessage: "Password is required"
@@ -21460,21 +21451,30 @@ create().shape({
21460
21451
  }, function(value) {
21461
21452
  if (!value) return true;
21462
21453
  return new TextEncoder().encode(value).length <= 72;
21463
- }).matches(/[a-z]/, {
21454
+ }).test("lowercase", {
21464
21455
  message: {
21465
21456
  id: "components.Input.error.contain.lowercase",
21466
21457
  defaultMessage: "Password must contain at least 1 lowercase letter"
21467
21458
  }
21468
- }).matches(/[A-Z]/, {
21459
+ }, (value) => {
21460
+ if (!value) return true;
21461
+ return /[a-z]/.test(value);
21462
+ }).test("uppercase", {
21469
21463
  message: {
21470
21464
  id: "components.Input.error.contain.uppercase",
21471
21465
  defaultMessage: "Password must contain at least 1 uppercase letter"
21472
21466
  }
21473
- }).matches(/\d/, {
21467
+ }, (value) => {
21468
+ if (!value) return true;
21469
+ return /[A-Z]/.test(value);
21470
+ }).test("number", {
21474
21471
  message: {
21475
21472
  id: "components.Input.error.contain.number",
21476
21473
  defaultMessage: "Password must contain at least 1 number"
21477
21474
  }
21475
+ }, (value) => {
21476
+ if (!value) return true;
21477
+ return /\d/.test(value);
21478
21478
  }).required({
21479
21479
  id: errorsTrads.required.id,
21480
21480
  defaultMessage: "Password is required"
@@ -21517,21 +21517,30 @@ create().shape({
21517
21517
  if (!value || typeof value !== "string") return true;
21518
21518
  const byteSize = getByteSize(value);
21519
21519
  return byteSize <= 72;
21520
- }).matches(/[a-z]/, {
21520
+ }).test("lowercase", {
21521
21521
  message: {
21522
21522
  id: "components.Input.error.contain.lowercase",
21523
21523
  defaultMessage: "Password must contain at least 1 lowercase letter"
21524
21524
  }
21525
- }).matches(/[A-Z]/, {
21525
+ }, (value) => {
21526
+ if (!value) return true;
21527
+ return /[a-z]/.test(value);
21528
+ }).test("uppercase", {
21526
21529
  message: {
21527
21530
  id: "components.Input.error.contain.uppercase",
21528
21531
  defaultMessage: "Password must contain at least 1 uppercase letter"
21529
21532
  }
21530
- }).matches(/\d/, {
21533
+ }, (value) => {
21534
+ if (!value) return true;
21535
+ return /[A-Z]/.test(value);
21536
+ }).test("number", {
21531
21537
  message: {
21532
21538
  id: "components.Input.error.contain.number",
21533
21539
  defaultMessage: "Password must contain at least 1 number"
21534
21540
  }
21541
+ }, (value) => {
21542
+ if (!value) return true;
21543
+ return /\d/.test(value);
21535
21544
  }).required({
21536
21545
  id: errorsTrads.required.id,
21537
21546
  defaultMessage: "Password is required"
@@ -21591,7 +21600,7 @@ const MainSubNav = styled(SubNav)`
21591
21600
  z-index: 2;
21592
21601
 
21593
21602
  ${({ theme }) => theme.breakpoints.medium} {
21594
- width: 23.2rem;
21603
+ width: ${WIDTH_SIDE_NAVIGATION};
21595
21604
  position: sticky;
21596
21605
  top: 0;
21597
21606
  border-right: 1px solid ${({ theme }) => theme.colors.neutral150};
@@ -21684,12 +21693,28 @@ styled(Box)`
21684
21693
  }
21685
21694
  `;
21686
21695
  styled(Badge)`
21696
+ width: 100%;
21687
21697
  background: linear-gradient(
21688
21698
  90deg,
21689
21699
  ${({ theme }) => theme.colors.primary600} 0%,
21690
21700
  ${({ theme }) => theme.colors.alternative600} 121.48%
21691
21701
  );
21692
- padding: 0.4rem 1rem;
21702
+ padding: 1.1rem 1rem;
21703
+
21704
+ ${({ theme }) => theme.breakpoints.small} {
21705
+ padding: 1.2rem 1rem;
21706
+ }
21707
+ ${({ theme }) => theme.breakpoints.medium} {
21708
+ padding: 0.4rem 1rem;
21709
+ }
21710
+ `;
21711
+ styled(Typography)`
21712
+ font-size: 1.2rem;
21713
+
21714
+ ${({ theme }) => theme.breakpoints.small} {
21715
+ font-size: 1.4rem;
21716
+ line-height: 1.6rem;
21717
+ }
21693
21718
  `;
21694
21719
  const useFetchClient = () => {
21695
21720
  const controller = React.useRef(null);