@carlonicora/nextjs-jsonapi 1.30.0 → 1.31.1
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-CEJE3YHQ.mjs → BlockNoteEditor-N5ODXWD2.mjs} +3 -3
- package/dist/{BlockNoteEditor-TUJ3VCS3.js → BlockNoteEditor-PJOOJ3LX.js} +13 -13
- package/dist/{BlockNoteEditor-TUJ3VCS3.js.map → BlockNoteEditor-PJOOJ3LX.js.map} +1 -1
- package/dist/billing/index.js +331 -331
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-BHKXZF2I.js → chunk-6GVSJFRG.js} +528 -444
- package/dist/chunk-6GVSJFRG.js.map +1 -0
- package/dist/{chunk-XY6HEWHI.mjs → chunk-CQCHSJLC.mjs} +977 -893
- package/dist/chunk-CQCHSJLC.mjs.map +1 -0
- package/dist/{chunk-5KQXRLK3.js → chunk-KYG2PIRB.js} +16 -1
- package/dist/chunk-KYG2PIRB.js.map +1 -0
- package/dist/{chunk-WQ3KF6BG.mjs → chunk-YCP2OMFD.mjs} +16 -1
- package/dist/{chunk-WQ3KF6BG.mjs.map → chunk-YCP2OMFD.mjs.map} +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.d.mts +17 -1
- package/dist/components/index.d.ts +17 -1
- package/dist/components/index.js +7 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{s3.service-DsXo9nop.d.ts → s3.service-CoC0k0iu.d.ts} +11 -0
- package/dist/{s3.service-BMT7W6KS.d.mts → s3.service-Duh9HW2n.d.mts} +11 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/GdprConsentCheckbox.tsx +45 -0
- package/src/components/forms/index.ts +1 -0
- package/src/features/auth/components/GdprConsentSection.tsx +50 -0
- package/src/features/auth/components/forms/Register.tsx +11 -0
- package/src/features/auth/components/index.ts +1 -0
- package/src/features/auth/data/auth.interface.ts +3 -0
- package/src/features/auth/data/auth.service.ts +21 -0
- package/src/features/auth/data/auth.ts +3 -0
- package/dist/chunk-5KQXRLK3.js.map +0 -1
- package/dist/chunk-BHKXZF2I.js.map +0 -1
- package/dist/chunk-XY6HEWHI.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-CEJE3YHQ.mjs.map → BlockNoteEditor-N5ODXWD2.mjs.map} +0 -0
|
@@ -2268,6 +2268,9 @@ var Auth = class extends AbstractApiData {
|
|
|
2268
2268
|
if (data.name !== void 0) response.data.attributes.name = data.name;
|
|
2269
2269
|
if (data.companyName !== void 0) response.data.attributes.companyName = data.companyName;
|
|
2270
2270
|
if (data.password !== void 0) response.data.attributes.password = data.password;
|
|
2271
|
+
if (data.termsAcceptedAt !== void 0) response.data.attributes.termsAcceptedAt = data.termsAcceptedAt;
|
|
2272
|
+
if (data.marketingConsent !== void 0) response.data.attributes.marketingConsent = data.marketingConsent;
|
|
2273
|
+
if (data.marketingConsentAt !== void 0) response.data.attributes.marketingConsentAt = data.marketingConsentAt;
|
|
2271
2274
|
return response;
|
|
2272
2275
|
}
|
|
2273
2276
|
};
|
|
@@ -2389,6 +2392,18 @@ var AuthService = class extends AbstractService {
|
|
|
2389
2392
|
});
|
|
2390
2393
|
}
|
|
2391
2394
|
}
|
|
2395
|
+
static async completeOAuthRegistration(params) {
|
|
2396
|
+
const endpoint = new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" });
|
|
2397
|
+
const response = await JsonApiPost({
|
|
2398
|
+
classKey: Modules.Auth,
|
|
2399
|
+
endpoint: endpoint.generate(),
|
|
2400
|
+
body: params,
|
|
2401
|
+
overridesJsonApiCreation: true,
|
|
2402
|
+
language: "en"
|
|
2403
|
+
});
|
|
2404
|
+
if (!response.ok) throw new Error(response.error);
|
|
2405
|
+
return response.data;
|
|
2406
|
+
}
|
|
2392
2407
|
};
|
|
2393
2408
|
|
|
2394
2409
|
// src/features/auth/enums/AuthComponent.ts
|
|
@@ -5328,4 +5343,4 @@ export {
|
|
|
5328
5343
|
AVAILABLE_OAUTH_SCOPES,
|
|
5329
5344
|
DEFAULT_GRANT_TYPES
|
|
5330
5345
|
};
|
|
5331
|
-
//# sourceMappingURL=chunk-
|
|
5346
|
+
//# sourceMappingURL=chunk-YCP2OMFD.mjs.map
|