@nizza/core 0.5.0-beta.15 → 0.5.0-beta.16
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1548 -4823
- package/dist/index.mjs.map +1 -1
- package/dist/lib/add-to-cart/hooks.d.ts +7 -1
- package/dist/lib/types/api-graphql-types.d.ts +26 -26
- package/dist/lib/types/nizza/main.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HooksInitConfig } from '../types';
|
|
1
|
+
import { AddToCartActionFactory, HooksInitConfig, HookState } from '../types';
|
|
2
2
|
export declare const addToCartMessages: {
|
|
3
3
|
errorAddingToCart: string;
|
|
4
4
|
errorOpeningVariationSelector: string;
|
|
@@ -11,3 +11,9 @@ export declare const addToCartMessages: {
|
|
|
11
11
|
* @param {HooksInitConfig} config - The initial configuration for the add to cart operation.
|
|
12
12
|
*/
|
|
13
13
|
export declare function runAddToCartHooks<ContextData extends Record<string, any>>(config: HooksInitConfig<ContextData>): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Creates an action factory based on the current state.
|
|
16
|
+
* @param {HookState} state - The current state of the add to cart operation.
|
|
17
|
+
* @returns {AddToCartActionFactory} The created action factory.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createActionFactory(state: HookState): AddToCartActionFactory;
|
|
@@ -1017,29 +1017,6 @@ export type UpdateCustomizationMutation = {
|
|
|
1017
1017
|
timestamp: string;
|
|
1018
1018
|
};
|
|
1019
1019
|
};
|
|
1020
|
-
export type FindByProductSnackVideoQueryVariables = Exact<{
|
|
1021
|
-
data: FindByProductSnackVideoInput;
|
|
1022
|
-
}>;
|
|
1023
|
-
export type FindByProductSnackVideoQuery = {
|
|
1024
|
-
__typename?: 'Query';
|
|
1025
|
-
findByProductSnackVideo: {
|
|
1026
|
-
__typename: 'ErrorGeneral';
|
|
1027
|
-
message: string;
|
|
1028
|
-
statusCode: string;
|
|
1029
|
-
timestamp: string;
|
|
1030
|
-
} | {
|
|
1031
|
-
__typename: 'SnackVideoArray';
|
|
1032
|
-
data?: Array<{
|
|
1033
|
-
__typename?: 'SnackVideo';
|
|
1034
|
-
id: string;
|
|
1035
|
-
name: string;
|
|
1036
|
-
url: string;
|
|
1037
|
-
thumbnailUrl: string;
|
|
1038
|
-
duration: number;
|
|
1039
|
-
transmitionType?: string | null;
|
|
1040
|
-
}> | null;
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
1020
|
export type GetTimeLineQueryVariables = Exact<{
|
|
1044
1021
|
data: GetTimeLineInput;
|
|
1045
1022
|
}>;
|
|
@@ -1229,6 +1206,29 @@ export type SearchSnackVideosQuery = {
|
|
|
1229
1206
|
} | null;
|
|
1230
1207
|
};
|
|
1231
1208
|
};
|
|
1209
|
+
export type FindByProductSnackVideoQueryVariables = Exact<{
|
|
1210
|
+
data: FindByProductSnackVideoInput;
|
|
1211
|
+
}>;
|
|
1212
|
+
export type FindByProductSnackVideoQuery = {
|
|
1213
|
+
__typename?: 'Query';
|
|
1214
|
+
findByProductSnackVideo: {
|
|
1215
|
+
__typename: 'ErrorGeneral';
|
|
1216
|
+
message: string;
|
|
1217
|
+
statusCode: string;
|
|
1218
|
+
timestamp: string;
|
|
1219
|
+
} | {
|
|
1220
|
+
__typename: 'SnackVideoArray';
|
|
1221
|
+
data?: Array<{
|
|
1222
|
+
__typename?: 'SnackVideo';
|
|
1223
|
+
id: string;
|
|
1224
|
+
name: string;
|
|
1225
|
+
url: string;
|
|
1226
|
+
thumbnailUrl: string;
|
|
1227
|
+
duration: number;
|
|
1228
|
+
transmitionType?: string | null;
|
|
1229
|
+
}> | null;
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
1232
|
export declare const AddCollectionDocument: DocumentNode<AddCollectionMutation, Exact<{
|
|
1233
1233
|
data: CreateCollectionInput;
|
|
1234
1234
|
}>>;
|
|
@@ -1283,9 +1283,6 @@ export declare const GetAllCustomizationDocument: DocumentNode<GetAllCustomizati
|
|
|
1283
1283
|
export declare const UpdateCustomizationDocument: DocumentNode<UpdateCustomizationMutation, Exact<{
|
|
1284
1284
|
data: CustomPlayerInput;
|
|
1285
1285
|
}>>;
|
|
1286
|
-
export declare const FindByProductSnackVideoDocument: DocumentNode<FindByProductSnackVideoQuery, Exact<{
|
|
1287
|
-
data: FindByProductSnackVideoInput;
|
|
1288
|
-
}>>;
|
|
1289
1286
|
export declare const GetTimeLineDocument: DocumentNode<GetTimeLineQuery, Exact<{
|
|
1290
1287
|
data: GetTimeLineInput;
|
|
1291
1288
|
}>>;
|
|
@@ -1313,3 +1310,6 @@ export declare const GetSnackVideoRelationshipsDocument: DocumentNode<GetSnackVi
|
|
|
1313
1310
|
export declare const SearchSnackVideosDocument: DocumentNode<SearchSnackVideosQuery, Exact<{
|
|
1314
1311
|
data: SearchInput;
|
|
1315
1312
|
}>>;
|
|
1313
|
+
export declare const FindByProductSnackVideoDocument: DocumentNode<FindByProductSnackVideoQuery, Exact<{
|
|
1314
|
+
data: FindByProductSnackVideoInput;
|
|
1315
|
+
}>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NizzaProduct } from './product';
|
|
2
2
|
export type NizzaAddToCartHandlerParams = {
|
|
3
3
|
product: NizzaProduct;
|
|
4
|
-
quantity
|
|
4
|
+
quantity?: number;
|
|
5
5
|
};
|
|
6
6
|
export type NizzaAddToCartHandler = (params: NizzaAddToCartHandlerParams) => Promise<void>;
|
|
7
7
|
export type NizzaSetUTMHandler = (utm: string) => Promise<void>;
|
package/dist/package.json
CHANGED