@carlonicora/nextjs-jsonapi 2.2.0 → 2.2.2
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/{BlockNoteEditor-HAUE4EPR.mjs → BlockNoteEditor-ADT6II2V.mjs} +5 -5
- package/dist/{BlockNoteEditor-5TMQ5YCD.js → BlockNoteEditor-QTIDATPF.js} +20 -20
- package/dist/{BlockNoteEditor-5TMQ5YCD.js.map → BlockNoteEditor-QTIDATPF.js.map} +1 -1
- package/dist/{JsonApiRequest-F5LBESSA.mjs → JsonApiRequest-3UWVIIFL.mjs} +2 -2
- package/dist/JsonApiRequest-QRU3IPIU.js +26 -0
- package/dist/{JsonApiRequest-YAPUG4ND.js.map → JsonApiRequest-QRU3IPIU.js.map} +1 -1
- package/dist/billing/index.js +447 -447
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +62 -62
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-MAWTFEY3.mjs → chunk-7DJOQTNN.mjs} +3 -3
- package/dist/{chunk-P5TMD7GK.mjs → chunk-DLTMYGLR.mjs} +13 -5
- package/dist/chunk-DLTMYGLR.mjs.map +1 -0
- package/dist/{chunk-Z2CB63VG.mjs → chunk-E5YA5Z5X.mjs} +2 -2
- package/dist/chunk-E5YA5Z5X.mjs.map +1 -0
- package/dist/{chunk-HPKCZMQX.js → chunk-F3BPNQDB.js} +743 -739
- package/dist/chunk-F3BPNQDB.js.map +1 -0
- package/dist/{chunk-QWCAOLBD.js → chunk-FPO4DLZN.js} +12 -12
- package/dist/{chunk-QWCAOLBD.js.map → chunk-FPO4DLZN.js.map} +1 -1
- package/dist/{chunk-6YIZX26T.js → chunk-KSU6CCW6.js} +39 -31
- package/dist/chunk-KSU6CCW6.js.map +1 -0
- package/dist/{chunk-JG7MCYCW.js → chunk-LANOKEFZ.js} +9 -9
- package/dist/{chunk-JG7MCYCW.js.map → chunk-LANOKEFZ.js.map} +1 -1
- package/dist/{chunk-PGW2OP3L.mjs → chunk-YEPE2HT6.mjs} +13 -9
- package/dist/chunk-YEPE2HT6.mjs.map +1 -0
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.d.mts +15 -1
- package/dist/core/index.d.ts +15 -1
- package/dist/core/index.js +5 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +4 -2
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.js +72 -72
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +10 -1
- package/src/core/utils/__tests__/translateResponse.test.ts +64 -0
- package/src/core/utils/translateResponse.ts +4 -1
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +71 -68
- package/src/features/user/components/details/UserStandaloneDetails.tsx +2 -0
- package/src/features/user/components/forms/UserAvatarEditor.tsx +5 -1
- package/src/utils/index.ts +1 -0
- package/src/utils/isRemoteImageSrc.test.ts +29 -0
- package/src/utils/isRemoteImageSrc.ts +16 -0
- package/dist/JsonApiRequest-YAPUG4ND.js +0 -26
- package/dist/chunk-6YIZX26T.js.map +0 -1
- package/dist/chunk-HPKCZMQX.js.map +0 -1
- package/dist/chunk-P5TMD7GK.mjs.map +0 -1
- package/dist/chunk-PGW2OP3L.mjs.map +0 -1
- package/dist/chunk-Z2CB63VG.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-HAUE4EPR.mjs.map → BlockNoteEditor-ADT6II2V.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-F5LBESSA.mjs.map → JsonApiRequest-3UWVIIFL.mjs.map} +0 -0
- /package/dist/{chunk-MAWTFEY3.mjs.map → chunk-7DJOQTNN.mjs.map} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
AbstractService,
|
|
3
3
|
EndpointCreator,
|
|
4
4
|
Modules
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DLTMYGLR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
setBootstrapper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E5YA5Z5X.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
ACTION_TYPES,
|
|
297
297
|
RbacService
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-7DJOQTNN.mjs.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
setBootstrapper,
|
|
15
15
|
translateResponse,
|
|
16
16
|
tryBootstrap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E5YA5Z5X.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -335,7 +335,7 @@ var AbstractService = class {
|
|
|
335
335
|
* Make an API call with automatic environment detection and error handling.
|
|
336
336
|
*/
|
|
337
337
|
static async callApi(params) {
|
|
338
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-
|
|
338
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-3UWVIIFL.mjs");
|
|
339
339
|
let apiResponse;
|
|
340
340
|
let language = "en";
|
|
341
341
|
if (typeof window === "undefined") {
|
|
@@ -436,7 +436,7 @@ var AbstractService = class {
|
|
|
436
436
|
* Make an API call and return both data and meta from the response.
|
|
437
437
|
*/
|
|
438
438
|
static async callApiWithMeta(params) {
|
|
439
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-
|
|
439
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-3UWVIIFL.mjs");
|
|
440
440
|
let apiResponse;
|
|
441
441
|
let language = "en";
|
|
442
442
|
if (typeof window === "undefined") {
|
|
@@ -522,7 +522,7 @@ var AbstractService = class {
|
|
|
522
522
|
* Get raw JSON:API response data without deserialization.
|
|
523
523
|
*/
|
|
524
524
|
static async getRawData(params) {
|
|
525
|
-
const { JsonApiGet: JsonApiGet2 } = await import("./JsonApiRequest-
|
|
525
|
+
const { JsonApiGet: JsonApiGet2 } = await import("./JsonApiRequest-3UWVIIFL.mjs");
|
|
526
526
|
let language = "en";
|
|
527
527
|
if (typeof window === "undefined") {
|
|
528
528
|
const { getLocale } = await import("next-intl/server");
|
|
@@ -1353,6 +1353,13 @@ function getInitials(firstOrName, lastName) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
__name(getInitials, "getInitials");
|
|
1355
1355
|
|
|
1356
|
+
// src/utils/isRemoteImageSrc.ts
|
|
1357
|
+
function isRemoteImageSrc(src) {
|
|
1358
|
+
if (!src) return false;
|
|
1359
|
+
return src.startsWith("http://") || src.startsWith("https://");
|
|
1360
|
+
}
|
|
1361
|
+
__name(isRemoteImageSrc, "isRemoteImageSrc");
|
|
1362
|
+
|
|
1356
1363
|
// src/utils/italian-validators.ts
|
|
1357
1364
|
import CodiceFiscale from "codice-fiscale-js";
|
|
1358
1365
|
function validatePartitaIva(partitaIva) {
|
|
@@ -8205,6 +8212,7 @@ export {
|
|
|
8205
8212
|
userObjectSchema,
|
|
8206
8213
|
entityObjectSchema,
|
|
8207
8214
|
getInitials,
|
|
8215
|
+
isRemoteImageSrc,
|
|
8208
8216
|
validatePartitaIva,
|
|
8209
8217
|
validateCodiceFiscale,
|
|
8210
8218
|
validateItalianTaxCode,
|
|
@@ -8367,4 +8375,4 @@ export {
|
|
|
8367
8375
|
AuditLogService,
|
|
8368
8376
|
AuditLogModule
|
|
8369
8377
|
};
|
|
8370
|
-
//# sourceMappingURL=chunk-
|
|
8378
|
+
//# sourceMappingURL=chunk-DLTMYGLR.mjs.map
|