@szymonpiatek/nextwordpress 0.0.12 → 0.0.13
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 +45 -6
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +45 -7
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +45 -6
- 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 +45 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +55 -0
- 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 +54 -1
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +55 -0
- 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 +54 -1
- package/dist/server/index.js.map +1 -1
- package/dist/{types-WcyioRuq.d.cts → types-BELSHjQr.d.cts} +13 -1
- package/dist/{types-WcyioRuq.d.ts → types-BELSHjQr.d.ts} +13 -1
- package/package.json +1 -1
|
@@ -84,6 +84,18 @@ declare class AuthenticationError extends Error {
|
|
|
84
84
|
constructor(code: ErrorCode, status: number, message: string, detail?: string);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
interface CookieConsentCategories {
|
|
88
|
+
necessary: true;
|
|
89
|
+
analytics: boolean;
|
|
90
|
+
marketing: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface CookieConsentConfig {
|
|
93
|
+
cookieName?: string;
|
|
94
|
+
maxAge?: number;
|
|
95
|
+
}
|
|
96
|
+
declare function createCookieConsentHandler(config?: CookieConsentConfig): (request: Request) => Promise<Response>;
|
|
97
|
+
declare function parseCookieConsent(request: Request, cookieName?: string): CookieConsentCategories | null;
|
|
98
|
+
|
|
87
99
|
interface MediaSize {
|
|
88
100
|
file: string;
|
|
89
101
|
width: number;
|
|
@@ -682,4 +694,4 @@ interface WPULikeCheckResponse {
|
|
|
682
694
|
status: WPULikeStatus | null;
|
|
683
695
|
}
|
|
684
696
|
|
|
685
|
-
export {
|
|
697
|
+
export { WPGraphQLError as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type EmbeddedTerm as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, ErrorCode as H, type GQLError as I, type JwtAuthCredentials as J, type GQLPageInfo as K, type MediaSize as L, type MediaDetails as M, type NextWordpressConfig as N, type PostEmbedded as O, type Post as P, type TemplatePart as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCDimensions as V, type WordPressResponse as W, type WCOrderLineItem as X, type WCProductAttribute as Y, type WCProductDefaultAttribute as Z, type WCShippingLine as _, type WooCommerceConfig as a, type WPULikeItemType as a0, WooCommerceError as a1, type WooCommercePaginationHeaders as a2, WordPressAPIError as a3, createCookieConsentHandler as a4, defaultMessages as a5, defaultMessagesPl as a6, parseCookieConsent as a7, resolveMessage as a8, 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 JwtAuthResponse as q, type WPEntity as r, type RenderedContent as s, type WCImage as t, type WCProductVariation as u, type WCAddress as v, type WPULikeVoteParams as w, AuthenticationError as x, type CookieConsentConfig as y, type EmbeddedAuthor as z };
|
|
@@ -84,6 +84,18 @@ declare class AuthenticationError extends Error {
|
|
|
84
84
|
constructor(code: ErrorCode, status: number, message: string, detail?: string);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
interface CookieConsentCategories {
|
|
88
|
+
necessary: true;
|
|
89
|
+
analytics: boolean;
|
|
90
|
+
marketing: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface CookieConsentConfig {
|
|
93
|
+
cookieName?: string;
|
|
94
|
+
maxAge?: number;
|
|
95
|
+
}
|
|
96
|
+
declare function createCookieConsentHandler(config?: CookieConsentConfig): (request: Request) => Promise<Response>;
|
|
97
|
+
declare function parseCookieConsent(request: Request, cookieName?: string): CookieConsentCategories | null;
|
|
98
|
+
|
|
87
99
|
interface MediaSize {
|
|
88
100
|
file: string;
|
|
89
101
|
width: number;
|
|
@@ -682,4 +694,4 @@ interface WPULikeCheckResponse {
|
|
|
682
694
|
status: WPULikeStatus | null;
|
|
683
695
|
}
|
|
684
696
|
|
|
685
|
-
export {
|
|
697
|
+
export { WPGraphQLError as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type EmbeddedTerm as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, ErrorCode as H, type GQLError as I, type JwtAuthCredentials as J, type GQLPageInfo as K, type MediaSize as L, type MediaDetails as M, type NextWordpressConfig as N, type PostEmbedded as O, type Post as P, type TemplatePart as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCDimensions as V, type WordPressResponse as W, type WCOrderLineItem as X, type WCProductAttribute as Y, type WCProductDefaultAttribute as Z, type WCShippingLine as _, type WooCommerceConfig as a, type WPULikeItemType as a0, WooCommerceError as a1, type WooCommercePaginationHeaders as a2, WordPressAPIError as a3, createCookieConsentHandler as a4, defaultMessages as a5, defaultMessagesPl as a6, parseCookieConsent as a7, resolveMessage as a8, 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 JwtAuthResponse as q, type WPEntity as r, type RenderedContent as s, type WCImage as t, type WCProductVariation as u, type WCAddress as v, type WPULikeVoteParams as w, AuthenticationError as x, type CookieConsentConfig as y, type EmbeddedAuthor as z };
|