@nanas-home/hub-common 0.25.506 → 0.26.514
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/README.md +2 -2
- package/dist/chunk/{N6PYTYEE.js → KE2RZHGV.js} +46 -39
- package/dist/index.css +1 -1
- package/dist/node-utils/index.d.ts +2 -2
- package/dist/node-utils/index.js +2 -2
- package/dist/{textValidation-D2-ISJBn.d.ts → textValidation-BB_7jYAh.d.ts} +21 -15
- package/dist/web/index.d.ts +52 -20
- package/dist/web/index.js +223 -160
- package/dist/web/index.jsx +156 -89
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ By using the software and services provided, you agree to our [Terms and conditi
|
|
|
48
48
|
<br />
|
|
49
49
|
|
|
50
50
|
[nanasHomeWebsite]: https://nanashome.club?ref=AssistantAppsCBGithub
|
|
51
|
-
[nanasHomePrivacy]: https://nanashome.club/
|
|
52
|
-
[nanasHomeTerms]: https://nanashome.club/
|
|
51
|
+
[nanasHomePrivacy]: https://nanashome.club/privacy-policy.html?ref=AssistantAppsCBGithub
|
|
52
|
+
[nanasHomeTerms]: https://nanashome.club/terms-and-conditions.html?ref=AssistantAppsCBGithub
|
|
53
53
|
[picoCssWebsite]: https://picocss.com?ref=AssistantAppsCBGithub
|
|
54
54
|
[khaozTopsyGithub]: https://github.com/Khaoz-Topsy?ref=AssistantAppsCBGithub
|
|
@@ -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,13 @@ var monthTranslationKeyOrder = [
|
|
|
28
48
|
"dec"
|
|
29
49
|
];
|
|
30
50
|
|
|
51
|
+
// src/constants/links.ts
|
|
52
|
+
var socialLinks = {
|
|
53
|
+
instagram: "https://www.instagram.com/nanas.home.petconcierge/",
|
|
54
|
+
facebook: "https://www.facebook.com/NanasHomePetConcierge/",
|
|
55
|
+
linkedin: "https://www.linkedin.com/company/nanas-home-petconcierge/"
|
|
56
|
+
};
|
|
57
|
+
|
|
31
58
|
// src/constants/mouseEvent.ts
|
|
32
59
|
var MouseButton = {
|
|
33
60
|
left: 0,
|
|
@@ -243,26 +270,6 @@ var AnswerLinkType = /* @__PURE__ */ ((AnswerLinkType2) => {
|
|
|
243
270
|
return AnswerLinkType2;
|
|
244
271
|
})(AnswerLinkType || {});
|
|
245
272
|
|
|
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
273
|
// src/contracts/generated/enum/bookingAddonType.ts
|
|
267
274
|
var BookingAddonType = /* @__PURE__ */ ((BookingAddonType2) => {
|
|
268
275
|
BookingAddonType2[BookingAddonType2["None"] = 0] = "None";
|
|
@@ -1108,15 +1115,15 @@ var getPayloadFromJwt = (token) => {
|
|
|
1108
1115
|
|
|
1109
1116
|
// src/assets/meta.json
|
|
1110
1117
|
var meta_default = {
|
|
1111
|
-
packageVersion: "0.
|
|
1112
|
-
date: "2026-02-
|
|
1113
|
-
gitCommitHash: "
|
|
1118
|
+
packageVersion: "0.26.0",
|
|
1119
|
+
date: "2026-02-05",
|
|
1120
|
+
gitCommitHash: "6dcc850a7b4cc2017a24991ea942b52715754d0f"
|
|
1114
1121
|
};
|
|
1115
1122
|
|
|
1116
1123
|
// src/assets/packagesUsed.json
|
|
1117
1124
|
var packagesUsed_default = {
|
|
1118
|
-
generatedDate: "2026-02-
|
|
1119
|
-
generatedDateFormat: "2026-02-
|
|
1125
|
+
generatedDate: "2026-02-05T10:25:24.365Z",
|
|
1126
|
+
generatedDateFormat: "2026-02-05",
|
|
1120
1127
|
list: {
|
|
1121
1128
|
dependencies: [],
|
|
1122
1129
|
peerDependencies: [
|
|
@@ -1193,58 +1200,58 @@ var packagesUsed_default = {
|
|
|
1193
1200
|
},
|
|
1194
1201
|
{
|
|
1195
1202
|
name: "@storybook/addon-a11y",
|
|
1196
|
-
version: "10.2.
|
|
1203
|
+
version: "10.2.6",
|
|
1197
1204
|
licenseType: "MIT",
|
|
1198
1205
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1199
1206
|
},
|
|
1200
1207
|
{
|
|
1201
1208
|
name: "@storybook/addon-docs",
|
|
1202
|
-
version: "10.2.
|
|
1209
|
+
version: "10.2.6",
|
|
1203
1210
|
licenseType: "MIT",
|
|
1204
1211
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1205
1212
|
},
|
|
1206
1213
|
{
|
|
1207
1214
|
name: "@storybook/addon-links",
|
|
1208
|
-
version: "10.2.
|
|
1215
|
+
version: "10.2.6",
|
|
1209
1216
|
licenseType: "MIT",
|
|
1210
1217
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1211
1218
|
},
|
|
1212
1219
|
{
|
|
1213
1220
|
name: "@storybook/addon-onboarding",
|
|
1214
|
-
version: "10.2.
|
|
1221
|
+
version: "10.2.6",
|
|
1215
1222
|
licenseType: "MIT",
|
|
1216
1223
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1217
1224
|
},
|
|
1218
1225
|
{
|
|
1219
1226
|
name: "@storybook/addon-vitest",
|
|
1220
|
-
version: "10.2.
|
|
1227
|
+
version: "10.2.6",
|
|
1221
1228
|
licenseType: "MIT",
|
|
1222
1229
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1223
1230
|
},
|
|
1224
1231
|
{
|
|
1225
1232
|
name: "@types/node",
|
|
1226
|
-
version: "25.0
|
|
1233
|
+
version: "25.2.0",
|
|
1227
1234
|
licenseType: "MIT",
|
|
1228
1235
|
repoUrl: "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
1229
1236
|
licenceUrl: "https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE"
|
|
1230
1237
|
},
|
|
1231
1238
|
{
|
|
1232
1239
|
name: "@vitest/browser",
|
|
1233
|
-
version: "4.0.
|
|
1240
|
+
version: "4.0.18",
|
|
1234
1241
|
licenseType: "MIT",
|
|
1235
1242
|
repoUrl: "https://github.com/vitest-dev/vitest.git",
|
|
1236
1243
|
licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
|
|
1237
1244
|
},
|
|
1238
1245
|
{
|
|
1239
1246
|
name: "@vitest/coverage-v8",
|
|
1240
|
-
version: "4.0.
|
|
1247
|
+
version: "4.0.18",
|
|
1241
1248
|
licenseType: "MIT",
|
|
1242
1249
|
repoUrl: "https://github.com/vitest-dev/vitest.git",
|
|
1243
1250
|
licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
|
|
1244
1251
|
},
|
|
1245
1252
|
{
|
|
1246
1253
|
name: "@vitest/ui",
|
|
1247
|
-
version: "4.0.
|
|
1254
|
+
version: "4.0.18",
|
|
1248
1255
|
licenseType: "MIT",
|
|
1249
1256
|
repoUrl: "https://github.com/vitest-dev/vitest.git",
|
|
1250
1257
|
licenceUrl: "https://github.com/vitest-dev/vitest/blob/master/LICENSE"
|
|
@@ -1257,7 +1264,7 @@ var packagesUsed_default = {
|
|
|
1257
1264
|
},
|
|
1258
1265
|
{
|
|
1259
1266
|
name: "jsdom",
|
|
1260
|
-
version: "
|
|
1267
|
+
version: "28.0.0",
|
|
1261
1268
|
licenseType: "MIT",
|
|
1262
1269
|
repoUrl: "https://github.com/jsdom/jsdom.git"
|
|
1263
1270
|
},
|
|
@@ -1270,14 +1277,14 @@ var packagesUsed_default = {
|
|
|
1270
1277
|
},
|
|
1271
1278
|
{
|
|
1272
1279
|
name: "sass",
|
|
1273
|
-
version: "1.97.
|
|
1280
|
+
version: "1.97.3",
|
|
1274
1281
|
licenseType: "MIT",
|
|
1275
1282
|
repoUrl: "https://github.com/sass/dart-sass",
|
|
1276
1283
|
licenceUrl: "https://github.com/sass/dart-sass/blob/master/LICENSE"
|
|
1277
1284
|
},
|
|
1278
1285
|
{
|
|
1279
1286
|
name: "storybook",
|
|
1280
|
-
version: "10.2.
|
|
1287
|
+
version: "10.2.6",
|
|
1281
1288
|
licenseType: "MIT",
|
|
1282
1289
|
repoUrl: "https://github.com/storybookjs/storybook.git"
|
|
1283
1290
|
},
|
|
@@ -1322,7 +1329,7 @@ var packagesUsed_default = {
|
|
|
1322
1329
|
},
|
|
1323
1330
|
{
|
|
1324
1331
|
name: "vitest",
|
|
1325
|
-
version: "4.0.
|
|
1332
|
+
version: "4.0.18",
|
|
1326
1333
|
licenseType: "MIT",
|
|
1327
1334
|
repoUrl: "https://github.com/vitest-dev/vitest.git"
|
|
1328
1335
|
}
|
|
@@ -1706,4 +1713,4 @@ var shouldBeYoutubeUrl = (value) => {
|
|
|
1706
1713
|
};
|
|
1707
1714
|
};
|
|
1708
1715
|
|
|
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 };
|
|
1716
|
+
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, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
|