@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.
Files changed (49) hide show
  1. package/dist/{BlockNoteEditor-CEJE3YHQ.mjs → BlockNoteEditor-N5ODXWD2.mjs} +3 -3
  2. package/dist/{BlockNoteEditor-TUJ3VCS3.js → BlockNoteEditor-PJOOJ3LX.js} +13 -13
  3. package/dist/{BlockNoteEditor-TUJ3VCS3.js.map → BlockNoteEditor-PJOOJ3LX.js.map} +1 -1
  4. package/dist/billing/index.js +331 -331
  5. package/dist/billing/index.mjs +2 -2
  6. package/dist/{chunk-BHKXZF2I.js → chunk-6GVSJFRG.js} +528 -444
  7. package/dist/chunk-6GVSJFRG.js.map +1 -0
  8. package/dist/{chunk-XY6HEWHI.mjs → chunk-CQCHSJLC.mjs} +977 -893
  9. package/dist/chunk-CQCHSJLC.mjs.map +1 -0
  10. package/dist/{chunk-5KQXRLK3.js → chunk-KYG2PIRB.js} +16 -1
  11. package/dist/chunk-KYG2PIRB.js.map +1 -0
  12. package/dist/{chunk-WQ3KF6BG.mjs → chunk-YCP2OMFD.mjs} +16 -1
  13. package/dist/{chunk-WQ3KF6BG.mjs.map → chunk-YCP2OMFD.mjs.map} +1 -1
  14. package/dist/client/index.js +3 -3
  15. package/dist/client/index.mjs +2 -2
  16. package/dist/components/index.d.mts +17 -1
  17. package/dist/components/index.d.ts +17 -1
  18. package/dist/components/index.js +7 -3
  19. package/dist/components/index.js.map +1 -1
  20. package/dist/components/index.mjs +6 -2
  21. package/dist/contexts/index.js +3 -3
  22. package/dist/contexts/index.mjs +2 -2
  23. package/dist/core/index.d.mts +2 -2
  24. package/dist/core/index.d.ts +2 -2
  25. package/dist/core/index.js +2 -2
  26. package/dist/core/index.mjs +1 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +2 -2
  30. package/dist/index.mjs +1 -1
  31. package/dist/{s3.service-DsXo9nop.d.ts → s3.service-CoC0k0iu.d.ts} +11 -0
  32. package/dist/{s3.service-BMT7W6KS.d.mts → s3.service-Duh9HW2n.d.mts} +11 -0
  33. package/dist/server/index.d.mts +1 -1
  34. package/dist/server/index.d.ts +1 -1
  35. package/dist/server/index.js +3 -3
  36. package/dist/server/index.mjs +1 -1
  37. package/package.json +1 -1
  38. package/src/components/forms/GdprConsentCheckbox.tsx +45 -0
  39. package/src/components/forms/index.ts +1 -0
  40. package/src/features/auth/components/GdprConsentSection.tsx +50 -0
  41. package/src/features/auth/components/forms/Register.tsx +11 -0
  42. package/src/features/auth/components/index.ts +1 -0
  43. package/src/features/auth/data/auth.interface.ts +3 -0
  44. package/src/features/auth/data/auth.service.ts +21 -0
  45. package/src/features/auth/data/auth.ts +3 -0
  46. package/dist/chunk-5KQXRLK3.js.map +0 -1
  47. package/dist/chunk-BHKXZF2I.js.map +0 -1
  48. package/dist/chunk-XY6HEWHI.mjs.map +0 -1
  49. /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-WQ3KF6BG.mjs.map
5346
+ //# sourceMappingURL=chunk-YCP2OMFD.mjs.map