@dropins/tools 1.5.1-alpha003 → 1.6.0-alpha1
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/chunks/Image.js +1 -1
- package/chunks/Image.js.map +1 -1
- package/chunks/icons/Add.js +1 -1
- package/chunks/initializer.js +2 -2
- package/chunks/vcomponent.js +12 -12
- package/chunks/vcomponent.js.map +1 -1
- package/components.js +1 -1
- package/components.js.map +1 -1
- package/fetch-graphql.js +1 -1
- package/fetch-graphql.js.map +1 -1
- package/initializer.js +2 -2
- package/lib/aem/assets.js +1 -1
- package/lib/aem/configs.js +1 -1
- package/lib/aem/configs.js.map +1 -1
- package/lib.js +1 -1
- package/lib.js.map +1 -1
- package/package.json +1 -1
- package/preact-compat.js +1 -1
- package/types/elsie/src/components/Button/Button.d.ts +2 -0
- package/types/elsie/src/components/Incrementer/Incrementer.d.ts +1 -0
- package/types/elsie/src/components/MultiSelect/MultiSelect.d.ts +29 -0
- package/types/elsie/src/components/MultiSelect/index.d.ts +11 -0
- package/types/elsie/src/components/ProductItemCard/ProductItemCard.d.ts +0 -2
- package/types/elsie/src/components/Table/Table.d.ts +32 -0
- package/types/elsie/src/components/Table/index.d.ts +11 -0
- package/types/elsie/src/components/ToggleButton/ToggleButton.d.ts +1 -0
- package/types/elsie/src/components/index.d.ts +2 -0
- package/types/elsie/src/i18n/en_US.json.d.ts +38 -0
- package/types/elsie/src/i18n/index.d.ts +114 -0
- package/types/elsie/src/lib/aem/configs.d.ts +9 -2
- package/types/elsie/src/lib/render.d.ts +6 -1
- package/types/elsie/src/lib/slot.d.ts +7 -4
- package/types/fetch-graphql/src/index.d.ts +20 -3
- package/types/recaptcha/src/index.d.ts +4 -1
|
@@ -33,6 +33,7 @@ export type AfterHook<T = any> = (requestInit: RequestInit, response: {
|
|
|
33
33
|
};
|
|
34
34
|
declare class FetchGraphQLMesh {
|
|
35
35
|
_endpoint?: string;
|
|
36
|
+
_inheritHeaders?: boolean;
|
|
36
37
|
get endpoint(): string | undefined;
|
|
37
38
|
get fetchGraphQlHeaders(): Header;
|
|
38
39
|
_fetchGraphQlHeaders: Header;
|
|
@@ -41,8 +42,12 @@ declare class FetchGraphQLMesh {
|
|
|
41
42
|
/**
|
|
42
43
|
* Sets the GraphQL endpoint.
|
|
43
44
|
* @param endpoint - The GraphQL endpoint.
|
|
45
|
+
* @param options - Optional configuration.
|
|
46
|
+
* @param options.inheritHeaders - If true, headers from the global mesh will be inherited.
|
|
44
47
|
*/
|
|
45
|
-
setEndpoint(endpoint: string
|
|
48
|
+
setEndpoint(endpoint: string, options?: {
|
|
49
|
+
inheritHeaders?: boolean;
|
|
50
|
+
}): void;
|
|
46
51
|
/**
|
|
47
52
|
* Sets the GraphQL headers.
|
|
48
53
|
* @param key - The key of the header.
|
|
@@ -54,6 +59,12 @@ declare class FetchGraphQLMesh {
|
|
|
54
59
|
* @param key - The key of the header.
|
|
55
60
|
*/
|
|
56
61
|
removeFetchGraphQlHeader(key: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the value of a specific GraphQL header.
|
|
64
|
+
* @param key - The key of the header.
|
|
65
|
+
* @returns The value of the header, or undefined if not found.
|
|
66
|
+
*/
|
|
67
|
+
getFetchGraphQlHeader(key: string): string | null | undefined;
|
|
57
68
|
/**
|
|
58
69
|
* Sets the GraphQL headers.
|
|
59
70
|
* @param header - The header object or a function that returns a header object.
|
|
@@ -118,8 +129,11 @@ declare class FetchGraphQLMesh {
|
|
|
118
129
|
fetchGraphQlHeaders: Header;
|
|
119
130
|
};
|
|
120
131
|
getMethods(): {
|
|
121
|
-
setEndpoint: (endpoint: string
|
|
132
|
+
setEndpoint: (endpoint: string, options?: {
|
|
133
|
+
inheritHeaders?: boolean | undefined;
|
|
134
|
+
} | undefined) => void;
|
|
122
135
|
setFetchGraphQlHeader: (key: string, value: string | null) => void;
|
|
136
|
+
getFetchGraphQlHeader: (key: string) => string | null | undefined;
|
|
123
137
|
removeFetchGraphQlHeader: (key: string) => void;
|
|
124
138
|
setFetchGraphQlHeaders: (header: Header | ((prev: Header) => Header)) => void;
|
|
125
139
|
fetchGraphQl: <T = any>(query: string, options?: FetchOptions | undefined) => Promise<{
|
|
@@ -151,11 +165,14 @@ export declare class FetchGraphQL extends FetchGraphQLMesh {
|
|
|
151
165
|
* @property {Function} setEndpoint - Sets the GraphQL endpoint.
|
|
152
166
|
* @property {Function} setFetchGraphQlHeaders - Sets the GraphQL headers.
|
|
153
167
|
* @property {Function} setFetchGraphQlHeader - Sets a specific GraphQL header.
|
|
168
|
+
* @property {Function} getFetchGraphQlHeader - Gets the value of a specific GraphQL header.
|
|
154
169
|
* @property {Function} removeFetchGraphQlHeader - Removes a specific GraphQL header.
|
|
155
170
|
* @property {Function} fetchGraphQl - Fetches GraphQL data.
|
|
156
171
|
* @property {Function} getConfig - Gets the configuration.
|
|
157
172
|
*/
|
|
158
|
-
export declare const setEndpoint: (endpoint: string
|
|
173
|
+
export declare const setEndpoint: (endpoint: string, options?: {
|
|
174
|
+
inheritHeaders?: boolean;
|
|
175
|
+
}) => void, setFetchGraphQlHeaders: (header: Header | ((prev: Header) => Header)) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, getFetchGraphQlHeader: (key: string) => string | null | undefined, removeFetchGraphQlHeader: (key: string) => void, fetchGraphQl: <T = any>(query: string, options?: FetchOptions) => Promise<{
|
|
159
176
|
errors?: FetchQueryError | undefined;
|
|
160
177
|
data: T;
|
|
161
178
|
}>, getConfig: () => {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ReCaptchaV3Response, PropsFormTypes, ReCaptchaV3Model } from './types/recaptcha.types';
|
|
2
2
|
|
|
3
3
|
export declare const recaptchaFetchApi: {
|
|
4
|
-
setEndpoint: (endpoint: string
|
|
4
|
+
setEndpoint: (endpoint: string, options?: {
|
|
5
|
+
inheritHeaders?: boolean | undefined;
|
|
6
|
+
} | undefined) => void;
|
|
5
7
|
setFetchGraphQlHeader: (key: string, value: string | null) => void;
|
|
8
|
+
getFetchGraphQlHeader: (key: string) => string | null | undefined;
|
|
6
9
|
removeFetchGraphQlHeader: (key: string) => void;
|
|
7
10
|
setFetchGraphQlHeaders: (header: import('@adobe-commerce/fetch-graphql').Header | ((prev: import('@adobe-commerce/fetch-graphql').Header) => import('@adobe-commerce/fetch-graphql').Header)) => void;
|
|
8
11
|
fetchGraphQl: <T = any>(query: string, options?: import('@adobe-commerce/fetch-graphql').FetchOptions | undefined) => Promise<{
|