@timardex/cluemart-shared 1.5.803 → 1.5.805

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.
@@ -1,9 +1,9 @@
1
1
  import "../chunk-VA5YN2K3.mjs";
2
- import "../chunk-VGOXRE34.mjs";
2
+ import "../chunk-GJO7X2Y4.mjs";
3
3
  import {
4
4
  SCHOOL_MIN_STUDENT_COUNT,
5
5
  normalizeUrl
6
- } from "../chunk-6633VMDB.mjs";
6
+ } from "../chunk-RITKFYRI.mjs";
7
7
  import {
8
8
  EnumAdShowOn,
9
9
  EnumAdStatus,
@@ -14,11 +14,11 @@ import {
14
14
  } from "../chunk-YVIZ4AWF.mjs";
15
15
  import "../chunk-G76ILLVZ.mjs";
16
16
  import "../chunk-NPFJ2CN2.mjs";
17
- import "../chunk-JD7CKX4S.mjs";
17
+ import "../chunk-LKMJ75YV.mjs";
18
18
  import {
19
19
  dateFormat,
20
20
  timeFormat
21
- } from "../chunk-E7ZEBZ3O.mjs";
21
+ } from "../chunk-4TP57ZL7.mjs";
22
22
  import {
23
23
  EnumEventDateStatus,
24
24
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -282,6 +282,7 @@ __export(index_exports, {
282
282
  toCalendarIsoDate: () => toCalendarIsoDate,
283
283
  toGraphqlQueryString: () => toGraphqlQueryString,
284
284
  toNZTime: () => toNZTime,
285
+ toShareSocialImageCacheVersion: () => toShareSocialImageCacheVersion,
285
286
  truncateText: () => truncateText,
286
287
  useAddParticipantToChat: () => useAddParticipantToChat,
287
288
  useAddUserFavouriteResource: () => useAddUserFavouriteResource,
@@ -1169,7 +1170,7 @@ function computeDailyClueState(dailyClue) {
1169
1170
  // src/sharing/relationShareTypes.ts
1170
1171
  var RELATION_SHARE_INVITATION = "invitation";
1171
1172
  var RELATION_SHARE_APPLICATION = "application";
1172
- var RELATION_OVERLAY_LAYOUT_VERSION = 36;
1173
+ var RELATION_OVERLAY_LAYOUT_VERSION = 40;
1173
1174
  var RELATION_SHARE_RESOURCE_TYPES = [
1174
1175
  RELATION_SHARE_INVITATION,
1175
1176
  RELATION_SHARE_APPLICATION
@@ -9036,6 +9037,25 @@ function shareSlugResourceId(resource) {
9036
9037
  return resource?._id ?? null;
9037
9038
  }
9038
9039
 
9040
+ // src/sharing/toShareSocialImageCacheVersion.ts
9041
+ function toShareSocialImageCacheVersion(updatedAt) {
9042
+ if (updatedAt == null || updatedAt === "") {
9043
+ return null;
9044
+ }
9045
+ let ms;
9046
+ if (typeof updatedAt === "number") {
9047
+ ms = updatedAt;
9048
+ } else if (updatedAt instanceof Date) {
9049
+ ms = updatedAt.getTime();
9050
+ } else {
9051
+ ms = Date.parse(String(updatedAt));
9052
+ }
9053
+ if (!Number.isFinite(ms)) {
9054
+ return null;
9055
+ }
9056
+ return String(Math.trunc(ms));
9057
+ }
9058
+
9039
9059
  // src/storage/index.ts
9040
9060
  var SAVED_PASSWORD_KEY = "savedPassword";
9041
9061
  var SAVED_EMAIL_KEY = "savedEmail";
@@ -9338,6 +9358,7 @@ var fonts = {
9338
9358
  toCalendarIsoDate,
9339
9359
  toGraphqlQueryString,
9340
9360
  toNZTime,
9361
+ toShareSocialImageCacheVersion,
9341
9362
  truncateText,
9342
9363
  useAddParticipantToChat,
9343
9364
  useAddUserFavouriteResource,