@carlonicora/nextjs-jsonapi 6.30.0 → 6.32.0
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-SQQF7OCY.mjs → BlockNoteEditor-HQTBH527.mjs} +4 -4
- package/dist/{BlockNoteEditor-FTRTY4YJ.js → BlockNoteEditor-YONN45A3.js} +24 -24
- package/dist/{BlockNoteEditor-FTRTY4YJ.js.map → BlockNoteEditor-YONN45A3.js.map} +1 -1
- package/dist/{BlockNoteViewer-76CKL6W5.mjs → BlockNoteViewer-BNZEXGVT.mjs} +2 -2
- package/dist/{BlockNoteViewer-B25WKYQP.js → BlockNoteViewer-YONLBNXW.js} +3 -3
- package/dist/{BlockNoteViewer-B25WKYQP.js.map → BlockNoteViewer-YONLBNXW.js.map} +1 -1
- package/dist/billing/index.js +465 -465
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-77JC2UCF.js → chunk-5XP5G45B.js} +23 -10
- package/dist/chunk-5XP5G45B.js.map +1 -0
- package/dist/{chunk-MNN6MTEN.mjs → chunk-6DNGLY5Y.mjs} +156 -127
- package/dist/chunk-6DNGLY5Y.mjs.map +1 -0
- package/dist/{chunk-7MGXQIEP.mjs → chunk-FDKAVSZ6.mjs} +2 -2
- package/dist/{chunk-FJUKLVVX.mjs → chunk-HNK2O6YE.mjs} +23 -10
- package/dist/chunk-HNK2O6YE.mjs.map +1 -0
- package/dist/{chunk-S4FSGMKX.js → chunk-J37GJKCB.js} +798 -769
- package/dist/chunk-J37GJKCB.js.map +1 -0
- package/dist/{chunk-M7YK5CCE.mjs → chunk-JL6XL5NK.mjs} +9 -2
- package/dist/chunk-JL6XL5NK.mjs.map +1 -0
- package/dist/{chunk-F3EVYBMA.js → chunk-NQL2NDKH.js} +4 -4
- package/dist/{chunk-F3EVYBMA.js.map → chunk-NQL2NDKH.js.map} +1 -1
- package/dist/{chunk-ONU4WCDG.js → chunk-Q5SMFSE4.js} +11 -4
- package/dist/chunk-Q5SMFSE4.js.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/email-automations/index.js +105 -105
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +114 -114
- package/dist/features/analytics/index.mjs +3 -3
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/auth/components/GdprConsentSection.d.ts +2 -1
- package/dist/features/auth/components/GdprConsentSection.d.ts.map +1 -1
- package/dist/features/auth/components/forms/Login.d.ts.map +1 -1
- package/dist/features/auth/components/forms/Logout.d.ts +7 -1
- package/dist/features/auth/components/forms/Logout.d.ts.map +1 -1
- package/dist/features/auth/components/forms/Register.d.ts.map +1 -1
- package/dist/features/auth/data/auth.service.d.ts +8 -3
- package/dist/features/auth/data/auth.service.d.ts.map +1 -1
- package/dist/features/auth/data/pending-registration.d.ts +2 -0
- package/dist/features/auth/data/pending-registration.d.ts.map +1 -1
- package/dist/features/auth/data/pending-registration.interface.d.ts +1 -0
- package/dist/features/auth/data/pending-registration.interface.d.ts.map +1 -1
- package/dist/features/auth/hooks/useCompleteLogin.d.ts +9 -0
- package/dist/features/auth/hooks/useCompleteLogin.d.ts.map +1 -0
- package/dist/features/blog/index.js +129 -129
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +7 -7
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +114 -114
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/login/config.d.ts +3 -0
- package/dist/login/config.d.ts.map +1 -1
- package/dist/login/index.d.ts +1 -1
- package/dist/login/index.d.ts.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/features/auth/components/GdprConsentSection.tsx +3 -1
- package/src/features/auth/components/forms/Login.tsx +4 -32
- package/src/features/auth/components/forms/Logout.tsx +8 -2
- package/src/features/auth/components/forms/Register.tsx +66 -36
- package/src/features/auth/data/__tests__/auth.oauth-completion.spec.ts +44 -0
- package/src/features/auth/data/__tests__/pending-registration.spec.ts +8 -0
- package/src/features/auth/data/auth.service.ts +21 -15
- package/src/features/auth/data/pending-registration.interface.ts +1 -0
- package/src/features/auth/data/pending-registration.ts +6 -0
- package/src/features/auth/hooks/__tests__/useCompleteLogin.spec.tsx +85 -0
- package/src/features/auth/hooks/useCompleteLogin.ts +47 -0
- package/src/login/__tests__/config.spec.ts +21 -0
- package/src/login/config.ts +8 -0
- package/src/login/index.ts +1 -0
- package/dist/chunk-77JC2UCF.js.map +0 -1
- package/dist/chunk-FJUKLVVX.mjs.map +0 -1
- package/dist/chunk-M7YK5CCE.mjs.map +0 -1
- package/dist/chunk-MNN6MTEN.mjs.map +0 -1
- package/dist/chunk-ONU4WCDG.js.map +0 -1
- package/dist/chunk-S4FSGMKX.js.map +0 -1
- /package/dist/{BlockNoteEditor-SQQF7OCY.mjs.map → BlockNoteEditor-HQTBH527.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-76CKL6W5.mjs.map → BlockNoteViewer-BNZEXGVT.mjs.map} +0 -0
- /package/dist/{chunk-7MGXQIEP.mjs.map → chunk-FDKAVSZ6.mjs.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
VIEWPORT_COOKIE_NAME,
|
|
6
6
|
checkPermissionsFromServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HNK2O6YE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
ServerSession,
|
|
140
140
|
buildOfflineManifest
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-FDKAVSZ6.mjs.map
|
|
@@ -2922,17 +2922,25 @@ var AuthService = class extends AbstractService {
|
|
|
2922
2922
|
suppressGlobalError: true
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
|
+
/**
|
|
2926
|
+
* Completes an OAuth sign-up waiting for consent. A sign-up with a usable
|
|
2927
|
+
* waitlist invite sends no consent: the server copies it from the waitlist.
|
|
2928
|
+
* Throws an Error with message `"<status>:<message>"` on failure.
|
|
2929
|
+
*/
|
|
2925
2930
|
static async completeOAuthRegistration(params) {
|
|
2926
|
-
const
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2931
|
+
const input = {
|
|
2932
|
+
id: params.pendingId,
|
|
2933
|
+
termsAcceptedAt: params.termsAcceptedAt,
|
|
2934
|
+
marketingConsent: params.marketingConsent,
|
|
2935
|
+
marketingConsentAt: params.marketingConsentAt
|
|
2936
|
+
};
|
|
2937
|
+
return this.callApi({
|
|
2938
|
+
type: Modules.Auth,
|
|
2939
|
+
method: "POST" /* POST */,
|
|
2940
|
+
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" }).generate(),
|
|
2941
|
+
input,
|
|
2942
|
+
suppressGlobalError: true
|
|
2933
2943
|
});
|
|
2934
|
-
if (!response.ok) throw new Error(response.error);
|
|
2935
|
-
return response.data;
|
|
2936
2944
|
}
|
|
2937
2945
|
};
|
|
2938
2946
|
|
|
@@ -3265,6 +3273,7 @@ var PendingRegistration = class extends AbstractApiData {
|
|
|
3265
3273
|
_provider;
|
|
3266
3274
|
_hasPass;
|
|
3267
3275
|
_emailInUse;
|
|
3276
|
+
_hasInvite;
|
|
3268
3277
|
get name() {
|
|
3269
3278
|
return this._name ?? "";
|
|
3270
3279
|
}
|
|
@@ -3283,6 +3292,9 @@ var PendingRegistration = class extends AbstractApiData {
|
|
|
3283
3292
|
get emailInUse() {
|
|
3284
3293
|
return this._emailInUse ?? false;
|
|
3285
3294
|
}
|
|
3295
|
+
get hasInvite() {
|
|
3296
|
+
return this._hasInvite ?? false;
|
|
3297
|
+
}
|
|
3286
3298
|
rehydrate(data) {
|
|
3287
3299
|
super.rehydrate(data);
|
|
3288
3300
|
this._name = data.jsonApi.attributes.name;
|
|
@@ -3291,6 +3303,7 @@ var PendingRegistration = class extends AbstractApiData {
|
|
|
3291
3303
|
this._provider = data.jsonApi.attributes.provider;
|
|
3292
3304
|
this._hasPass = data.jsonApi.attributes.hasPass ?? false;
|
|
3293
3305
|
this._emailInUse = data.jsonApi.attributes.emailInUse ?? false;
|
|
3306
|
+
this._hasInvite = data.jsonApi.attributes.hasInvite ?? false;
|
|
3294
3307
|
return this;
|
|
3295
3308
|
}
|
|
3296
3309
|
/** Read-only resource: the payload only identifies it. */
|
|
@@ -12971,4 +12984,4 @@ export {
|
|
|
12971
12984
|
AuditLogService,
|
|
12972
12985
|
AuditLogModule
|
|
12973
12986
|
};
|
|
12974
|
-
//# sourceMappingURL=chunk-
|
|
12987
|
+
//# sourceMappingURL=chunk-HNK2O6YE.mjs.map
|