@szymonpiatek/nextwordpress 0.0.16 → 0.0.17
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/client/index.cjs +5 -4
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +5 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +5 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +5 -4
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +5 -4
- package/dist/server/index.js.map +1 -1
- package/dist/{types-CvO7Ijbs.d.cts → types-DVzJO3P-.d.cts} +0 -3
- package/dist/{types-CvO7Ijbs.d.ts → types-DVzJO3P-.d.ts} +0 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NextWordpressConfig, J as JwtAuthCredentials, t as JwtAuthResponse, W as WPGraphQLConfig, c as WooCommerceConfig, f as WooCommerceResponse, b as WordPressResponse, T as Taxonomy, u as WPEntity, R as RenderedTitle, v as RenderedContent, P as Post, A as Author, F as FeaturedMedia, w as WCImage, x as WCProductVariation, d as WCProduct, i as WCCustomer, y as WCAddress, U as UpdateCustomerInput, g as WCCreateOrderInput, h as WCOrder, e as WCProductFilterParams, m as WPULikeStatsParams, n as WPULikeStats, q as WPULikeCheckParams, r as WPULikeCheckResponse, z as WPULikeVoteParams, p as WPULikeVoteResponse, s as CF7SubmissionResponse, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, l as GQLConnection, k as GQLPostFilter, j as GQLPost } from './types-
|
|
2
|
-
export { E as AuthenticationError, H as BlockType, I as CF7Error, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, X as GQLError, Y as GQLPageInfo, Z as MediaDetails, _ as MediaSize, $ as PostEmbedded, a0 as SearchResult, a1 as TemplatePart, a2 as WCDimensions, a3 as WCOrderLineItem, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, a6 as WCShippingLine, a7 as WPGraphQLError, a8 as WPULikeItemType, o as WPULikeStatus, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from './types-
|
|
1
|
+
import { N as NextWordpressConfig, J as JwtAuthCredentials, t as JwtAuthResponse, W as WPGraphQLConfig, c as WooCommerceConfig, f as WooCommerceResponse, b as WordPressResponse, T as Taxonomy, u as WPEntity, R as RenderedTitle, v as RenderedContent, P as Post, A as Author, F as FeaturedMedia, w as WCImage, x as WCProductVariation, d as WCProduct, i as WCCustomer, y as WCAddress, U as UpdateCustomerInput, g as WCCreateOrderInput, h as WCOrder, e as WCProductFilterParams, m as WPULikeStatsParams, n as WPULikeStats, q as WPULikeCheckParams, r as WPULikeCheckResponse, z as WPULikeVoteParams, p as WPULikeVoteResponse, s as CF7SubmissionResponse, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, l as GQLConnection, k as GQLPostFilter, j as GQLPost } from './types-DVzJO3P-.cjs';
|
|
2
|
+
export { E as AuthenticationError, H as BlockType, I as CF7Error, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, X as GQLError, Y as GQLPageInfo, Z as MediaDetails, _ as MediaSize, $ as PostEmbedded, a0 as SearchResult, a1 as TemplatePart, a2 as WCDimensions, a3 as WCOrderLineItem, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, a6 as WCShippingLine, a7 as WPGraphQLError, a8 as WPULikeItemType, o as WPULikeStatus, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from './types-DVzJO3P-.cjs';
|
|
3
3
|
|
|
4
4
|
declare function createApplicationPasswordToken(username: string, appPassword: string): string;
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NextWordpressConfig, J as JwtAuthCredentials, t as JwtAuthResponse, W as WPGraphQLConfig, c as WooCommerceConfig, f as WooCommerceResponse, b as WordPressResponse, T as Taxonomy, u as WPEntity, R as RenderedTitle, v as RenderedContent, P as Post, A as Author, F as FeaturedMedia, w as WCImage, x as WCProductVariation, d as WCProduct, i as WCCustomer, y as WCAddress, U as UpdateCustomerInput, g as WCCreateOrderInput, h as WCOrder, e as WCProductFilterParams, m as WPULikeStatsParams, n as WPULikeStats, q as WPULikeCheckParams, r as WPULikeCheckResponse, z as WPULikeVoteParams, p as WPULikeVoteResponse, s as CF7SubmissionResponse, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, l as GQLConnection, k as GQLPostFilter, j as GQLPost } from './types-
|
|
2
|
-
export { E as AuthenticationError, H as BlockType, I as CF7Error, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, X as GQLError, Y as GQLPageInfo, Z as MediaDetails, _ as MediaSize, $ as PostEmbedded, a0 as SearchResult, a1 as TemplatePart, a2 as WCDimensions, a3 as WCOrderLineItem, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, a6 as WCShippingLine, a7 as WPGraphQLError, a8 as WPULikeItemType, o as WPULikeStatus, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from './types-
|
|
1
|
+
import { N as NextWordpressConfig, J as JwtAuthCredentials, t as JwtAuthResponse, W as WPGraphQLConfig, c as WooCommerceConfig, f as WooCommerceResponse, b as WordPressResponse, T as Taxonomy, u as WPEntity, R as RenderedTitle, v as RenderedContent, P as Post, A as Author, F as FeaturedMedia, w as WCImage, x as WCProductVariation, d as WCProduct, i as WCCustomer, y as WCAddress, U as UpdateCustomerInput, g as WCCreateOrderInput, h as WCOrder, e as WCProductFilterParams, m as WPULikeStatsParams, n as WPULikeStats, q as WPULikeCheckParams, r as WPULikeCheckResponse, z as WPULikeVoteParams, p as WPULikeVoteResponse, s as CF7SubmissionResponse, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, l as GQLConnection, k as GQLPostFilter, j as GQLPost } from './types-DVzJO3P-.js';
|
|
2
|
+
export { E as AuthenticationError, H as BlockType, I as CF7Error, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, X as GQLError, Y as GQLPageInfo, Z as MediaDetails, _ as MediaSize, $ as PostEmbedded, a0 as SearchResult, a1 as TemplatePart, a2 as WCDimensions, a3 as WCOrderLineItem, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, a6 as WCShippingLine, a7 as WPGraphQLError, a8 as WPULikeItemType, o as WPULikeStatus, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from './types-DVzJO3P-.js';
|
|
3
3
|
|
|
4
4
|
declare function createApplicationPasswordToken(username: string, appPassword: string): string;
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -3397,9 +3397,6 @@ var GQL_SEND_PASSWORD_RESET_EMAIL = `
|
|
|
3397
3397
|
mutation SendPasswordResetEmail($input: SendPasswordResetEmailInput!) {
|
|
3398
3398
|
sendPasswordResetEmail(input: $input) {
|
|
3399
3399
|
success
|
|
3400
|
-
user {
|
|
3401
|
-
email
|
|
3402
|
-
}
|
|
3403
3400
|
}
|
|
3404
3401
|
}
|
|
3405
3402
|
`;
|
|
@@ -3418,7 +3415,11 @@ function createPasswordResetMutations(fetcher) {
|
|
|
3418
3415
|
const { gqlMutate } = fetcher;
|
|
3419
3416
|
async function sendPasswordResetEmail(input) {
|
|
3420
3417
|
const data = await gqlMutate(GQL_SEND_PASSWORD_RESET_EMAIL, { input });
|
|
3421
|
-
|
|
3418
|
+
const result = data.sendPasswordResetEmail;
|
|
3419
|
+
if (!result.success) {
|
|
3420
|
+
throw new WPGraphQLError(ErrorCode.GQL_ERRORS_IN_RESPONSE, 200, "sendPasswordResetEmail", "User not found");
|
|
3421
|
+
}
|
|
3422
|
+
return result;
|
|
3422
3423
|
}
|
|
3423
3424
|
async function resetUserPassword(input) {
|
|
3424
3425
|
const data = await gqlMutate(GQL_RESET_USER_PASSWORD, { input });
|