@timardex/cluemart-shared 2.0.15 → 2.0.17
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/{ad-DwFDtNp7.d.mts → ad-B4hhLfL-.d.mts} +7 -4
- package/dist/{ad-CpsTouG6.d.ts → ad-BaKxf-Rj.d.ts} +7 -4
- package/dist/{affiliate-6NsbC06m.d.mts → affiliate-Bv4PXBXC.d.mts} +2 -2
- package/dist/{affiliate-CYnVduRf.d.ts → affiliate-xDFlLdJI.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-NERMP6D5.mjs → chunk-5G3MQXQX.mjs} +42 -12
- package/dist/{chunk-NERMP6D5.mjs.map → chunk-5G3MQXQX.mjs.map} +1 -1
- package/dist/{chunk-KGPPKS5M.mjs → chunk-JESR7H4R.mjs} +7 -1
- package/dist/chunk-JESR7H4R.mjs.map +1 -0
- package/dist/{chunk-6HI3OSCZ.mjs → chunk-RNHDFZIC.mjs} +5 -9
- package/dist/chunk-RNHDFZIC.mjs.map +1 -0
- package/dist/{contactUs-DcSnfzb5.d.mts → contactUs-0IhAsiDW.d.mts} +1 -1
- package/dist/{contactUs-DYgB9q7k.d.ts → contactUs-DtKFwekV.d.ts} +1 -1
- package/dist/formFields/index.cjs +40 -10
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -2
- package/dist/formFields/index.d.ts +2 -2
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-DwPcHR4_.d.mts → global-C6w0hQ5Y.d.mts} +6 -2
- package/dist/{global-s3frnbGC.d.ts → global-Coz5Jgi2.d.ts} +6 -2
- package/dist/graphql/index.cjs +4 -8
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -6
- package/dist/graphql/index.d.ts +6 -6
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +42 -16
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +51 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.mjs +50 -18
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-D9-mYXe8.d.mts → resourceActivities-DIK3bwZg.d.mts} +1 -1
- package/dist/{resourceActivities-CJ2ivv01.d.ts → resourceActivities-DScv6fiM.d.ts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs +7 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +3 -1
- package/dist/{user-Ml-C8k8S.d.mts → user-BwcVKK-h.d.mts} +1 -1
- package/dist/{user-CteW0WdG.d.ts → user-DhxdbFT7.d.ts} +1 -1
- package/dist/utils/index.cjs +40 -10
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-6HI3OSCZ.mjs.map +0 -1
- package/dist/chunk-KGPPKS5M.mjs.map +0 -1
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType,
|
|
2
|
-
import { e as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData,
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-C6w0hQ5Y.mjs';
|
|
2
|
+
import { e as UserFormData, C as CreateUserFormData } from '../user-BwcVKK-h.mjs';
|
|
3
|
+
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-B4hhLfL-.mjs';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-Bv4PXBXC.mjs';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-0IhAsiDW.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.mjs';
|
|
8
8
|
import '../images/index.mjs';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType,
|
|
2
|
-
import { e as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData,
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-Coz5Jgi2.js';
|
|
2
|
+
import { e as UserFormData, C as CreateUserFormData } from '../user-DhxdbFT7.js';
|
|
3
|
+
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-BaKxf-Rj.js';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-xDFlLdJI.js';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DtKFwekV.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.js';
|
|
8
8
|
import '../images/index.js';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-5G3MQXQX.mjs";
|
|
11
11
|
import {
|
|
12
12
|
dateFormat,
|
|
13
13
|
timeFormat
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
EnumAffiliateParticipantType,
|
|
21
21
|
EnumPostContentType,
|
|
22
22
|
EnumPostType
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-JESR7H4R.mjs";
|
|
24
24
|
import "../chunk-RAYUJODN.mjs";
|
|
25
25
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-RNHDFZIC.mjs";
|
|
27
27
|
import "../chunk-ZSSVU6GY.mjs";
|
|
28
28
|
import "../chunk-7DQBUZXY.mjs";
|
|
29
29
|
import {
|
package/dist/index.cjs
CHANGED
|
@@ -58,6 +58,7 @@ __export(index_exports, {
|
|
|
58
58
|
EnumAdBookingState: () => EnumAdBookingState,
|
|
59
59
|
EnumAdEntitlementSource: () => EnumAdEntitlementSource,
|
|
60
60
|
EnumAdPaymentStatus: () => EnumAdPaymentStatus,
|
|
61
|
+
EnumAdPlatform: () => EnumAdPlatform,
|
|
61
62
|
EnumAdShowOn: () => EnumAdShowOn,
|
|
62
63
|
EnumAdStatus: () => EnumAdStatus,
|
|
63
64
|
EnumAdStyle: () => EnumAdStyle,
|
|
@@ -1480,6 +1481,11 @@ var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
|
1480
1481
|
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
1481
1482
|
return EnumAdShowOn2;
|
|
1482
1483
|
})(EnumAdShowOn || {});
|
|
1484
|
+
var EnumAdPlatform = /* @__PURE__ */ ((EnumAdPlatform2) => {
|
|
1485
|
+
EnumAdPlatform2["MOBILE"] = "mobile";
|
|
1486
|
+
EnumAdPlatform2["WEB"] = "web";
|
|
1487
|
+
return EnumAdPlatform2;
|
|
1488
|
+
})(EnumAdPlatform || {});
|
|
1483
1489
|
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
1484
1490
|
EnumAdStatus2["ACTIVE"] = "Active";
|
|
1485
1491
|
EnumAdStatus2["PAUSED"] = "Paused";
|
|
@@ -2830,16 +2836,46 @@ var vintageAndAntique = [
|
|
|
2830
2836
|
|
|
2831
2837
|
// src/formFields/categories/index.ts
|
|
2832
2838
|
var categoryColors = {
|
|
2833
|
-
"clothing-fashion":
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
"
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
"
|
|
2842
|
-
|
|
2839
|
+
"clothing-fashion": {
|
|
2840
|
+
primary: "#9D4EDD",
|
|
2841
|
+
secondary: "#fff"
|
|
2842
|
+
},
|
|
2843
|
+
"electronics-technology": {
|
|
2844
|
+
primary: "#3AF3FF",
|
|
2845
|
+
secondary: "#000"
|
|
2846
|
+
},
|
|
2847
|
+
"food-beverages": {
|
|
2848
|
+
primary: "#FF0D1F",
|
|
2849
|
+
secondary: "#fff"
|
|
2850
|
+
},
|
|
2851
|
+
"handmade-local-products": {
|
|
2852
|
+
primary: "#EE7E54",
|
|
2853
|
+
secondary: "#fff"
|
|
2854
|
+
},
|
|
2855
|
+
"health-wellness": {
|
|
2856
|
+
primary: "#E23794",
|
|
2857
|
+
secondary: "#fff"
|
|
2858
|
+
},
|
|
2859
|
+
"home-garden-household-goods": {
|
|
2860
|
+
primary: "#067325",
|
|
2861
|
+
secondary: "#fff"
|
|
2862
|
+
},
|
|
2863
|
+
"pet-products-animal-goods": {
|
|
2864
|
+
primary: "#68E788",
|
|
2865
|
+
secondary: "#000"
|
|
2866
|
+
},
|
|
2867
|
+
"services-experiences": {
|
|
2868
|
+
primary: "#2E16A5",
|
|
2869
|
+
secondary: "#fff"
|
|
2870
|
+
},
|
|
2871
|
+
"toys-childrens-items": {
|
|
2872
|
+
primary: "#FFF966",
|
|
2873
|
+
secondary: "#000"
|
|
2874
|
+
},
|
|
2875
|
+
"vintage-antique": {
|
|
2876
|
+
primary: "#8D6748",
|
|
2877
|
+
secondary: "#fff"
|
|
2878
|
+
}
|
|
2843
2879
|
};
|
|
2844
2880
|
var assignColorToCategories = (categories) => {
|
|
2845
2881
|
const result = categories.map((category) => ({
|
|
@@ -7371,12 +7407,8 @@ var GET_AD = import_client44.gql`
|
|
|
7371
7407
|
${AD_FIELDS_FRAGMENT}
|
|
7372
7408
|
`;
|
|
7373
7409
|
var GET_ADS_BY_REGION = import_client44.gql`
|
|
7374
|
-
query getAdsByRegion(
|
|
7375
|
-
$region:
|
|
7376
|
-
$platform: String!
|
|
7377
|
-
$status: AdStatusTypeEnum
|
|
7378
|
-
) {
|
|
7379
|
-
adsByRegion(region: $region, platform: $platform, status: $status) {
|
|
7410
|
+
query getAdsByRegion($region: String!, $platform: AdPlatformEnum!) {
|
|
7411
|
+
adsByRegion(region: $region, platform: $platform) {
|
|
7380
7412
|
...AdFields
|
|
7381
7413
|
}
|
|
7382
7414
|
}
|
|
@@ -7479,11 +7511,11 @@ var useGetAd = (_id) => {
|
|
|
7479
7511
|
refetch
|
|
7480
7512
|
};
|
|
7481
7513
|
};
|
|
7482
|
-
var useGetAdsByRegion = (region, platform
|
|
7514
|
+
var useGetAdsByRegion = (region, platform) => {
|
|
7483
7515
|
const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
|
|
7484
7516
|
fetchPolicy: "no-cache",
|
|
7485
7517
|
skip: !region || region === "",
|
|
7486
|
-
variables: { platform, region
|
|
7518
|
+
variables: { platform, region }
|
|
7487
7519
|
});
|
|
7488
7520
|
return {
|
|
7489
7521
|
adsByRegion: data?.adsByRegion || [],
|
|
@@ -9951,6 +9983,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9951
9983
|
EnumAdBookingState,
|
|
9952
9984
|
EnumAdEntitlementSource,
|
|
9953
9985
|
EnumAdPaymentStatus,
|
|
9986
|
+
EnumAdPlatform,
|
|
9954
9987
|
EnumAdShowOn,
|
|
9955
9988
|
EnumAdStatus,
|
|
9956
9989
|
EnumAdStyle,
|