@nanas-home/hub-common 0.25.509 → 0.28.597

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.
@@ -3,6 +3,26 @@ import { jwtDecode } from 'jwt-decode';
3
3
  import { FormatIcu } from '@tolgee/format-icu';
4
4
  import { Tolgee, DevTools, BackendFetch } from '@tolgee/web';
5
5
 
6
+ // src/constants/appType.ts
7
+ var AppType = /* @__PURE__ */ ((AppType2) => {
8
+ AppType2[AppType2["HubAdmin"] = 0] = "HubAdmin";
9
+ AppType2[AppType2["HubClient"] = 1] = "HubClient";
10
+ AppType2[AppType2["HubHost"] = 2] = "HubHost";
11
+ AppType2[AppType2["HubApi"] = 3] = "HubApi";
12
+ AppType2[AppType2["BookingManager"] = 4] = "BookingManager";
13
+ AppType2[AppType2["HostCalendar"] = 5] = "HostCalendar";
14
+ AppType2[AppType2["Landing"] = 6] = "Landing";
15
+ AppType2[AppType2["Test"] = 7] = "Test";
16
+ AppType2[AppType2["Interactive"] = 8] = "Interactive";
17
+ return AppType2;
18
+ })(AppType || {});
19
+ var webAppTypes = [
20
+ 0 /* HubAdmin */,
21
+ //
22
+ 1 /* HubClient */
23
+ ];
24
+ var isWebApp = (appType) => webAppTypes.includes(appType);
25
+
6
26
  // src/constants/calendar.constants.ts
7
27
  var weekdayTranslationKeyOrder = [
8
28
  "sun",
@@ -28,6 +48,18 @@ var monthTranslationKeyOrder = [
28
48
  "dec"
29
49
  ];
30
50
 
51
+ // src/constants/font.ts
52
+ var nanasFonts = {
53
+ default: "https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap"
54
+ };
55
+
56
+ // src/constants/links.ts
57
+ var socialLinks = {
58
+ instagram: "https://www.instagram.com/nanas.home.petconcierge/",
59
+ facebook: "https://www.facebook.com/NanasHomePetConcierge/",
60
+ linkedin: "https://www.linkedin.com/company/nanas-home-petconcierge/"
61
+ };
62
+
31
63
  // src/constants/mouseEvent.ts
32
64
  var MouseButton = {
33
65
  left: 0,
@@ -243,26 +275,6 @@ var AnswerLinkType = /* @__PURE__ */ ((AnswerLinkType2) => {
243
275
  return AnswerLinkType2;
244
276
  })(AnswerLinkType || {});
245
277
 
246
- // src/contracts/generated/enum/appType.ts
247
- var AppType = /* @__PURE__ */ ((AppType2) => {
248
- AppType2[AppType2["HubAdmin"] = 0] = "HubAdmin";
249
- AppType2[AppType2["HubClient"] = 1] = "HubClient";
250
- AppType2[AppType2["HubHost"] = 2] = "HubHost";
251
- AppType2[AppType2["HubApi"] = 3] = "HubApi";
252
- AppType2[AppType2["BookingManager"] = 4] = "BookingManager";
253
- AppType2[AppType2["HostCalendar"] = 5] = "HostCalendar";
254
- AppType2[AppType2["Landing"] = 6] = "Landing";
255
- AppType2[AppType2["Test"] = 7] = "Test";
256
- AppType2[AppType2["Interactive"] = 8] = "Interactive";
257
- return AppType2;
258
- })(AppType || {});
259
- var webAppTypes = [
260
- 0 /* HubAdmin */,
261
- //
262
- 1 /* HubClient */
263
- ];
264
- var isWebApp = (appType) => webAppTypes.includes(appType);
265
-
266
278
  // src/contracts/generated/enum/bookingAddonType.ts
267
279
  var BookingAddonType = /* @__PURE__ */ ((BookingAddonType2) => {
268
280
  BookingAddonType2[BookingAddonType2["None"] = 0] = "None";
@@ -1108,15 +1120,15 @@ var getPayloadFromJwt = (token) => {
1108
1120
 
1109
1121
  // src/assets/meta.json
1110
1122
  var meta_default = {
1111
- packageVersion: "0.25.0",
1112
- date: "2026-02-04",
1113
- gitCommitHash: "e42964be750dab5d24a5ddc2932b29a05fa83a9b"
1123
+ packageVersion: "0.28.0",
1124
+ date: "2026-02-07",
1125
+ gitCommitHash: "b2ebf6bc0593f270470fe318f609304b0488dabd"
1114
1126
  };
1115
1127
 
1116
1128
  // src/assets/packagesUsed.json
1117
1129
  var packagesUsed_default = {
1118
- generatedDate: "2026-02-04T15:40:59.074Z",
1119
- generatedDateFormat: "2026-02-04",
1130
+ generatedDate: "2026-02-07T22:44:53.951Z",
1131
+ generatedDateFormat: "2026-02-07",
1120
1132
  list: {
1121
1133
  dependencies: [],
1122
1134
  peerDependencies: [
@@ -1193,58 +1205,58 @@ var packagesUsed_default = {
1193
1205
  },
1194
1206
  {
1195
1207
  name: "@storybook/addon-a11y",
1196
- version: "10.2.0",
1208
+ version: "10.2.7",
1197
1209
  licenseType: "MIT",
1198
1210
  repoUrl: "https://github.com/storybookjs/storybook.git"
1199
1211
  },
1200
1212
  {
1201
1213
  name: "@storybook/addon-docs",
1202
- version: "10.2.0",
1214
+ version: "10.2.7",
1203
1215
  licenseType: "MIT",
1204
1216
  repoUrl: "https://github.com/storybookjs/storybook.git"
1205
1217
  },
1206
1218
  {
1207
1219
  name: "@storybook/addon-links",
1208
- version: "10.2.0",
1220
+ version: "10.2.7",
1209
1221
  licenseType: "MIT",
1210
1222
  repoUrl: "https://github.com/storybookjs/storybook.git"
1211
1223
  },
1212
1224
  {
1213
1225
  name: "@storybook/addon-onboarding",
1214
- version: "10.2.0",
1226
+ version: "10.2.7",
1215
1227
  licenseType: "MIT",
1216
1228
  repoUrl: "https://github.com/storybookjs/storybook.git"
1217
1229
  },
1218
1230
  {
1219
1231
  name: "@storybook/addon-vitest",
1220
- version: "10.2.0",
1232
+ version: "10.2.7",
1221
1233
  licenseType: "MIT",
1222
1234
  repoUrl: "https://github.com/storybookjs/storybook.git"
1223
1235
  },
1224
1236
  {
1225
1237
  name: "@types/node",
1226
- version: "25.0.9",
1238
+ version: "25.2.1",
1227
1239
  licenseType: "MIT",
1228
1240
  repoUrl: "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
1229
1241
  licenceUrl: "https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE"
1230
1242
  },
1231
1243
  {
1232
1244
  name: "@vitest/browser",
1233
- version: "4.0.17",
1245
+ version: "4.0.18",
1234
1246
  licenseType: "MIT",
1235
1247
  repoUrl: "https://github.com/vitest-dev/vitest.git",
1236
1248
  licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
1237
1249
  },
1238
1250
  {
1239
1251
  name: "@vitest/coverage-v8",
1240
- version: "4.0.17",
1252
+ version: "4.0.18",
1241
1253
  licenseType: "MIT",
1242
1254
  repoUrl: "https://github.com/vitest-dev/vitest.git",
1243
1255
  licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
1244
1256
  },
1245
1257
  {
1246
1258
  name: "@vitest/ui",
1247
- version: "4.0.17",
1259
+ version: "4.0.18",
1248
1260
  licenseType: "MIT",
1249
1261
  repoUrl: "https://github.com/vitest-dev/vitest.git",
1250
1262
  licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
@@ -1257,7 +1269,7 @@ var packagesUsed_default = {
1257
1269
  },
1258
1270
  {
1259
1271
  name: "jsdom",
1260
- version: "27.4.0",
1272
+ version: "28.0.0",
1261
1273
  licenseType: "MIT",
1262
1274
  repoUrl: "https://github.com/jsdom/jsdom.git"
1263
1275
  },
@@ -1270,14 +1282,14 @@ var packagesUsed_default = {
1270
1282
  },
1271
1283
  {
1272
1284
  name: "sass",
1273
- version: "1.97.2",
1285
+ version: "1.97.3",
1274
1286
  licenseType: "MIT",
1275
1287
  repoUrl: "https://github.com/sass/dart-sass",
1276
1288
  licenceUrl: "https://github.com/sass/dart-sass/blob/master/LICENSE"
1277
1289
  },
1278
1290
  {
1279
1291
  name: "storybook",
1280
- version: "10.2.0",
1292
+ version: "10.2.7",
1281
1293
  licenseType: "MIT",
1282
1294
  repoUrl: "https://github.com/storybookjs/storybook.git"
1283
1295
  },
@@ -1322,7 +1334,7 @@ var packagesUsed_default = {
1322
1334
  },
1323
1335
  {
1324
1336
  name: "vitest",
1325
- version: "4.0.17",
1337
+ version: "4.0.18",
1326
1338
  licenseType: "MIT",
1327
1339
  repoUrl: "https://github.com/vitest-dev/vitest.git"
1328
1340
  }
@@ -1706,4 +1718,4 @@ var shouldBeYoutubeUrl = (value) => {
1706
1718
  };
1707
1719
  };
1708
1720
 
1709
- export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMeta, getMimeTypeFromExtension, getPackagesUsed, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, monthTranslationKeyOrder, multiValidation, nameof, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
1721
+ export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMeta, getMimeTypeFromExtension, getPackagesUsed, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };