@timardex/cluemart-shared 1.0.2 → 1.0.4

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.cjs CHANGED
@@ -209,10 +209,8 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
209
209
  EnumRegions2["Otago"] = "Otago";
210
210
  EnumRegions2["Southland"] = "Southland";
211
211
  EnumRegions2["Taranaki"] = "Taranaki";
212
- EnumRegions2["Tasman"] = "Tasman";
213
212
  EnumRegions2["Waikato"] = "Waikato";
214
213
  EnumRegions2["Wellington"] = "Wellington";
215
- EnumRegions2["WestCoast"] = "West Coast";
216
214
  return EnumRegions2;
217
215
  })(EnumRegions || {});
218
216
  var ImageTypeEnum = /* @__PURE__ */ ((ImageTypeEnum2) => {
@@ -340,8 +338,6 @@ var handleApiError = (error, message) => {
340
338
  };
341
339
  var useLocationSearch = (googleApi) => {
342
340
  const getPredictions = async (text) => {
343
- console.log("Fetching predictions for:", text);
344
- console.log("Using Google API key:", googleApi);
345
341
  try {
346
342
  const response = await fetch(
347
343
  `https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${text}&components=country:nz&key=${googleApi}`
@@ -350,7 +346,6 @@ var useLocationSearch = (googleApi) => {
350
346
  throw new Error(`HTTP error! Status: ${response.status}`);
351
347
  }
352
348
  const data = await response.json();
353
- console.log("Predictions data:", data);
354
349
  return data.predictions;
355
350
  } catch (error) {
356
351
  console.error("Error fetching predictions:", error);
@@ -400,7 +395,6 @@ var useLocationSearch = (googleApi) => {
400
395
  type: "Point"
401
396
  // Mongoose GeoJSON type
402
397
  };
403
- console.log("New location created:", newLocation);
404
398
  return newLocation;
405
399
  } catch (error) {
406
400
  handleApiError(error, "Failed to fetch place details.");
@@ -1070,11 +1064,11 @@ function useLoginForm() {
1070
1064
  var import_yup6 = require("@hookform/resolvers/yup");
1071
1065
  var import_react_hook_form6 = require("react-hook-form");
1072
1066
  var defaultValues3 = {
1073
- email: "timardex@gmail.com",
1074
- firstName: "Csaba",
1075
- lastName: "Timar",
1076
- password: "qwertyui",
1077
- role: "admin" /* ADMIN */
1067
+ email: "",
1068
+ firstName: "",
1069
+ lastName: "",
1070
+ password: "",
1071
+ role: "customer" /* CUSTOMER */
1078
1072
  };
1079
1073
  function useRegisterForm() {
1080
1074
  const {
package/dist/index.d.mts CHANGED
@@ -40,10 +40,8 @@ declare enum EnumRegions {
40
40
  Otago = "Otago",
41
41
  Southland = "Southland",
42
42
  Taranaki = "Taranaki",
43
- Tasman = "Tasman",
44
43
  Waikato = "Waikato",
45
- Wellington = "Wellington",
46
- WestCoast = "West Coast"
44
+ Wellington = "Wellington"
47
45
  }
48
46
  declare enum ImageTypeEnum {
49
47
  AVATAR = "avatar",
package/dist/index.d.ts CHANGED
@@ -40,10 +40,8 @@ declare enum EnumRegions {
40
40
  Otago = "Otago",
41
41
  Southland = "Southland",
42
42
  Taranaki = "Taranaki",
43
- Tasman = "Tasman",
44
43
  Waikato = "Waikato",
45
- Wellington = "Wellington",
46
- WestCoast = "West Coast"
44
+ Wellington = "Wellington"
47
45
  }
48
46
  declare enum ImageTypeEnum {
49
47
  AVATAR = "avatar",