@szymonpiatek/nextwordpress 0.0.13 → 0.0.15
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 +68 -2
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +3 -2
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.js +67 -3
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +68 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +9 -2
- package/dist/hooks/index.d.ts +9 -2
- package/dist/hooks/index.js +67 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +185 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -19
- package/dist/index.d.ts +7 -19
- package/dist/index.js +185 -141
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +185 -140
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +185 -141
- package/dist/server/index.js.map +1 -1
- package/dist/{types-BELSHjQr.d.cts → types-D6rih4G8.d.cts} +24 -1
- package/dist/{types-BELSHjQr.d.ts → types-D6rih4G8.d.ts} +24 -1
- package/package.json +1 -1
|
@@ -22,6 +22,11 @@ declare const ErrorCode: {
|
|
|
22
22
|
readonly AUTH_JWT_FAILED: "AUTH_JWT_FAILED";
|
|
23
23
|
readonly AUTH_CREDENTIALS_INVALID: "AUTH_CREDENTIALS_INVALID";
|
|
24
24
|
readonly AUTH_TOKEN_INVALID: "AUTH_TOKEN_INVALID";
|
|
25
|
+
readonly CF7_MAIL_SENT: "CF7_MAIL_SENT";
|
|
26
|
+
readonly CF7_MAIL_FAILED: "CF7_MAIL_FAILED";
|
|
27
|
+
readonly CF7_VALIDATION_FAILED: "CF7_VALIDATION_FAILED";
|
|
28
|
+
readonly CF7_SPAM: "CF7_SPAM";
|
|
29
|
+
readonly CF7_ABORTED: "CF7_ABORTED";
|
|
25
30
|
};
|
|
26
31
|
type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
27
32
|
declare const defaultMessages: Record<ErrorCode, string>;
|
|
@@ -694,4 +699,22 @@ interface WPULikeCheckResponse {
|
|
|
694
699
|
status: WPULikeStatus | null;
|
|
695
700
|
}
|
|
696
701
|
|
|
697
|
-
|
|
702
|
+
type CF7SubmissionStatus = 'mail_sent' | 'mail_failed' | 'validation_failed' | 'spam' | 'aborted';
|
|
703
|
+
interface CF7ValidationError {
|
|
704
|
+
field: string;
|
|
705
|
+
message: string;
|
|
706
|
+
idref: string | null;
|
|
707
|
+
}
|
|
708
|
+
interface CF7SubmissionResponse {
|
|
709
|
+
status: CF7SubmissionStatus;
|
|
710
|
+
message: string;
|
|
711
|
+
invalid_fields?: CF7ValidationError[];
|
|
712
|
+
}
|
|
713
|
+
declare class CF7Error extends Error {
|
|
714
|
+
readonly code: ErrorCode;
|
|
715
|
+
readonly status: number;
|
|
716
|
+
readonly endpoint: string;
|
|
717
|
+
constructor(code: ErrorCode, status: number, endpoint: string, message: string);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export { type WCOrderLineItem as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7SubmissionStatus as D, type CF7ValidationError as E, type FeaturedMedia as F, type GQLPost as G, type CookieConsentConfig as H, type EditorBlock as I, type JwtAuthCredentials as J, type EmbeddedAuthor as K, type EmbeddedTerm as L, ErrorCode as M, type NextWordpressConfig as N, type GQLError as O, type Post as P, type GQLPageInfo as Q, type RenderedTitle as R, type MediaDetails as S, type Taxonomy as T, type UpdateCustomerInput as U, type MediaSize as V, type WordPressResponse as W, type PostEmbedded as X, type SearchResult as Y, type TemplatePart as Z, type WCDimensions as _, type WooCommerceConfig as a, type WCProductAttribute as a0, type WCProductDefaultAttribute as a1, type WCShippingLine as a2, WPGraphQLError as a3, type WPULikeItemType as a4, WooCommerceError as a5, type WooCommercePaginationHeaders as a6, WordPressAPIError as a7, createCookieConsentHandler as a8, defaultMessages as a9, defaultMessagesPl as aa, parseCookieConsent as ab, resolveMessage as ac, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, CF7Error as z };
|
|
@@ -22,6 +22,11 @@ declare const ErrorCode: {
|
|
|
22
22
|
readonly AUTH_JWT_FAILED: "AUTH_JWT_FAILED";
|
|
23
23
|
readonly AUTH_CREDENTIALS_INVALID: "AUTH_CREDENTIALS_INVALID";
|
|
24
24
|
readonly AUTH_TOKEN_INVALID: "AUTH_TOKEN_INVALID";
|
|
25
|
+
readonly CF7_MAIL_SENT: "CF7_MAIL_SENT";
|
|
26
|
+
readonly CF7_MAIL_FAILED: "CF7_MAIL_FAILED";
|
|
27
|
+
readonly CF7_VALIDATION_FAILED: "CF7_VALIDATION_FAILED";
|
|
28
|
+
readonly CF7_SPAM: "CF7_SPAM";
|
|
29
|
+
readonly CF7_ABORTED: "CF7_ABORTED";
|
|
25
30
|
};
|
|
26
31
|
type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
27
32
|
declare const defaultMessages: Record<ErrorCode, string>;
|
|
@@ -694,4 +699,22 @@ interface WPULikeCheckResponse {
|
|
|
694
699
|
status: WPULikeStatus | null;
|
|
695
700
|
}
|
|
696
701
|
|
|
697
|
-
|
|
702
|
+
type CF7SubmissionStatus = 'mail_sent' | 'mail_failed' | 'validation_failed' | 'spam' | 'aborted';
|
|
703
|
+
interface CF7ValidationError {
|
|
704
|
+
field: string;
|
|
705
|
+
message: string;
|
|
706
|
+
idref: string | null;
|
|
707
|
+
}
|
|
708
|
+
interface CF7SubmissionResponse {
|
|
709
|
+
status: CF7SubmissionStatus;
|
|
710
|
+
message: string;
|
|
711
|
+
invalid_fields?: CF7ValidationError[];
|
|
712
|
+
}
|
|
713
|
+
declare class CF7Error extends Error {
|
|
714
|
+
readonly code: ErrorCode;
|
|
715
|
+
readonly status: number;
|
|
716
|
+
readonly endpoint: string;
|
|
717
|
+
constructor(code: ErrorCode, status: number, endpoint: string, message: string);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export { type WCOrderLineItem as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7SubmissionStatus as D, type CF7ValidationError as E, type FeaturedMedia as F, type GQLPost as G, type CookieConsentConfig as H, type EditorBlock as I, type JwtAuthCredentials as J, type EmbeddedAuthor as K, type EmbeddedTerm as L, ErrorCode as M, type NextWordpressConfig as N, type GQLError as O, type Post as P, type GQLPageInfo as Q, type RenderedTitle as R, type MediaDetails as S, type Taxonomy as T, type UpdateCustomerInput as U, type MediaSize as V, type WordPressResponse as W, type PostEmbedded as X, type SearchResult as Y, type TemplatePart as Z, type WCDimensions as _, type WooCommerceConfig as a, type WCProductAttribute as a0, type WCProductDefaultAttribute as a1, type WCShippingLine as a2, WPGraphQLError as a3, type WPULikeItemType as a4, WooCommerceError as a5, type WooCommercePaginationHeaders as a6, WordPressAPIError as a7, createCookieConsentHandler as a8, defaultMessages as a9, defaultMessagesPl as aa, parseCookieConsent as ab, resolveMessage as ac, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, CF7Error as z };
|