@timardex/cluemart-shared 1.5.765 → 1.5.767

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.
Files changed (56) hide show
  1. package/dist/{ad-Orgg8VLY.d.mts → ad-DCHTDsSt.d.mts} +1 -1
  2. package/dist/{ad-12qIWwu_.d.ts → ad-Y0a_HMGC.d.ts} +1 -1
  3. package/dist/{chunk-BD52O2F5.mjs → chunk-3U53KFHU.mjs} +2 -2
  4. package/dist/{chunk-WN3TH5SG.mjs → chunk-4YP54WNB.mjs} +11 -5
  5. package/dist/chunk-4YP54WNB.mjs.map +1 -0
  6. package/dist/{chunk-4IFDECGL.mjs → chunk-AHL77AVZ.mjs} +23 -2
  7. package/dist/chunk-AHL77AVZ.mjs.map +1 -0
  8. package/dist/{chunk-YTHDXYNK.mjs → chunk-W5X2UU26.mjs} +1 -1
  9. package/dist/chunk-W5X2UU26.mjs.map +1 -0
  10. package/dist/{chunk-TWH7MY2Y.mjs → chunk-XYZO6N7X.mjs} +2 -2
  11. package/dist/{contactUs-bokiUF_R.d.mts → contactUs-HfiiUgnp.d.mts} +1 -1
  12. package/dist/{contactUs-CagyPoim.d.ts → contactUs-kHUGKh4g.d.ts} +1 -1
  13. package/dist/formFields/index.d.mts +1 -1
  14. package/dist/formFields/index.d.ts +1 -1
  15. package/dist/formFields/index.mjs +3 -3
  16. package/dist/{global-CDs9AQha.d.mts → global-Bw5idRO_.d.mts} +1 -1
  17. package/dist/{global-zbAVHr9-.d.ts → global-CPlgw1lx.d.ts} +1 -1
  18. package/dist/graphql/index.cjs +10 -4
  19. package/dist/graphql/index.cjs.map +1 -1
  20. package/dist/graphql/index.d.mts +3 -3
  21. package/dist/graphql/index.d.ts +3 -3
  22. package/dist/graphql/index.mjs +1 -1
  23. package/dist/hooks/index.cjs +11 -4
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.d.mts +3 -3
  26. package/dist/hooks/index.d.ts +3 -3
  27. package/dist/hooks/index.mjs +6 -5
  28. package/dist/hooks/index.mjs.map +1 -1
  29. package/dist/index.cjs +34 -4
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.mts +21 -2
  32. package/dist/index.d.ts +21 -2
  33. package/dist/index.mjs +31 -4
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/map/index.d.mts +1 -1
  36. package/dist/map/index.d.ts +1 -1
  37. package/dist/{resourceActivities-Dbxhm_Ax.d.mts → resourceActivities-BIkkzyzp.d.mts} +1 -1
  38. package/dist/{resourceActivities-dRHhkvN2.d.ts → resourceActivities-DkHxKIvs.d.ts} +1 -1
  39. package/dist/sharing/index.d.mts +1 -1
  40. package/dist/sharing/index.d.ts +1 -1
  41. package/dist/sharing/index.mjs +3 -3
  42. package/dist/types/index.cjs.map +1 -1
  43. package/dist/types/index.d.mts +5 -5
  44. package/dist/types/index.d.ts +5 -5
  45. package/dist/types/index.mjs +1 -1
  46. package/dist/utils/index.cjs +24 -0
  47. package/dist/utils/index.cjs.map +1 -1
  48. package/dist/utils/index.d.mts +21 -2
  49. package/dist/utils/index.d.ts +21 -2
  50. package/dist/utils/index.mjs +8 -2
  51. package/package.json +1 -1
  52. package/dist/chunk-4IFDECGL.mjs.map +0 -1
  53. package/dist/chunk-WN3TH5SG.mjs.map +0 -1
  54. package/dist/chunk-YTHDXYNK.mjs.map +0 -1
  55. /package/dist/{chunk-BD52O2F5.mjs.map → chunk-3U53KFHU.mjs.map} +0 -0
  56. /package/dist/{chunk-TWH7MY2Y.mjs.map → chunk-XYZO6N7X.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -222,6 +222,7 @@ __export(index_exports, {
222
222
  isIsoDateString: () => isIsoDateString,
223
223
  isPostShareResourceType: () => isPostShareResourceType,
224
224
  isRelationShareResourceType: () => isRelationShareResourceType,
225
+ isResourceImageActive: () => isResourceImageActive,
225
226
  joinShareDescriptionSections: () => joinShareDescriptionSections,
226
227
  joinShareOgDescriptionSections: () => joinShareOgDescriptionSections,
227
228
  licenseNiceNames: () => licenseNiceNames,
@@ -233,6 +234,7 @@ __export(index_exports, {
233
234
  mapArrayToOptions: () => mapArrayToOptions,
234
235
  matchesCategory: () => matchesCategory,
235
236
  matchesSelectedDate: () => matchesSelectedDate,
237
+ normalizeResourceImage: () => normalizeResourceImage,
236
238
  normalizeShareOgDescription: () => normalizeShareOgDescription,
237
239
  normalizeShareRouteId: () => normalizeShareRouteId,
238
240
  normalizeShareText: () => normalizeShareText,
@@ -258,6 +260,7 @@ __export(index_exports, {
258
260
  requestPasswordResetFields: () => requestPasswordResetFields,
259
261
  requirementsOptions: () => requirementsOptions,
260
262
  resetPasswordFields: () => resetPasswordFields,
263
+ resolveResourceImageActive: () => resolveResourceImageActive,
261
264
  rewardNiceNames: () => rewardNiceNames,
262
265
  seededShuffle: () => seededShuffle,
263
266
  shareMessageFooterPlacementForType: () => shareMessageFooterPlacementForType,
@@ -1342,6 +1345,24 @@ function computeDailyClueState(dailyClue) {
1342
1345
  };
1343
1346
  }
1344
1347
 
1348
+ // src/utils/resourceImage.ts
1349
+ function resolveResourceImageActive(image) {
1350
+ if (image?.active != null) {
1351
+ return image.active;
1352
+ }
1353
+ return false;
1354
+ }
1355
+ function normalizeResourceImage(image) {
1356
+ return {
1357
+ active: resolveResourceImageActive(image),
1358
+ source: image?.source ?? "",
1359
+ title: image?.title ?? ""
1360
+ };
1361
+ }
1362
+ function isResourceImageActive(image) {
1363
+ return resolveResourceImageActive(image);
1364
+ }
1365
+
1345
1366
  // src/utils/school.ts
1346
1367
  var SCHOOL_MIN_STUDENT_COUNT = 300;
1347
1368
  var SCHOOL_MAX_STUDENT_COUNT = 0;
@@ -4297,6 +4318,14 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client7.gql`
4297
4318
  }
4298
4319
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4299
4320
  `;
4321
+ var POST_RESOURCE_FIELDS_FRAGMENT = import_client7.gql`
4322
+ fragment PostResourceFields on PostResourceType {
4323
+ resourceId
4324
+ resourceSlug
4325
+ resourceRegion
4326
+ resourceType
4327
+ }
4328
+ `;
4300
4329
  var POST_FIELDS_FRAGMENT = import_client7.gql`
4301
4330
  fragment PostFields on PostType {
4302
4331
  _id
@@ -4312,10 +4341,7 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
4312
4341
  deletedAt
4313
4342
  postType
4314
4343
  resource {
4315
- resourceId
4316
- resourceSlug
4317
- resourceRegion
4318
- resourceType
4344
+ ...PostResourceFields
4319
4345
  }
4320
4346
  tags
4321
4347
  title
@@ -4324,6 +4350,7 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
4324
4350
  }
4325
4351
  ${POST_CONTENT_FIELDS_FRAGMENT}
4326
4352
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4353
+ ${POST_RESOURCE_FIELDS_FRAGMENT}
4327
4354
  `;
4328
4355
  var GET_POSTS = import_client7.gql`
4329
4356
  query getPosts {
@@ -8963,6 +8990,7 @@ var fonts = {
8963
8990
  isIsoDateString,
8964
8991
  isPostShareResourceType,
8965
8992
  isRelationShareResourceType,
8993
+ isResourceImageActive,
8966
8994
  joinShareDescriptionSections,
8967
8995
  joinShareOgDescriptionSections,
8968
8996
  licenseNiceNames,
@@ -8974,6 +9002,7 @@ var fonts = {
8974
9002
  mapArrayToOptions,
8975
9003
  matchesCategory,
8976
9004
  matchesSelectedDate,
9005
+ normalizeResourceImage,
8977
9006
  normalizeShareOgDescription,
8978
9007
  normalizeShareRouteId,
8979
9008
  normalizeShareText,
@@ -8999,6 +9028,7 @@ var fonts = {
8999
9028
  requestPasswordResetFields,
9000
9029
  requirementsOptions,
9001
9030
  resetPasswordFields,
9031
+ resolveResourceImageActive,
9002
9032
  rewardNiceNames,
9003
9033
  seededShuffle,
9004
9034
  shareMessageFooterPlacementForType,