@soma-vertical-web/multi-lib 0.0.18 → 0.0.19
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/contexts/contexts/NextContext.d.ts +0 -2
- package/contexts/index.d.ts +0 -1
- package/index.js +3 -3
- package/index.mjs +435 -435
- package/package.json +1 -1
- package/types/constants.d.ts +1 -0
- package/types/contexts/contexts/next.d.ts +0 -2
- package/types/layout/team-components/ProductCard/index.d.ts +2 -1
package/package.json
CHANGED
package/types/constants.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type ADD_TO_CARTType = Record<string, Record<string, string>>;
|
|
|
24
24
|
export type ALIGNMENT_MENUType = 'flex-start' | 'center' | 'flex-end';
|
|
25
25
|
export type BUY_BUTTON_LABELSType = Record<string, string>;
|
|
26
26
|
export type COMPONENT_LISTType = Record<string, string>;
|
|
27
|
+
export type INFINITE_SCROLLType = boolean;
|
|
27
28
|
export type MAIN_IMAGEType = string;
|
|
28
29
|
export type MENU_INFOType = Record<string, Record<string, string>>;
|
|
29
30
|
export type NAME_SPLIT_SYMBOLType = string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
|
2
|
-
import { ReadonlyURLSearchParams } from 'next/navigation';
|
|
3
2
|
import { PropsWithChildren } from 'react';
|
|
4
3
|
|
|
5
4
|
type CommonType = {
|
|
6
5
|
pathname: string;
|
|
7
6
|
nextimage: React.ComponentType<any>;
|
|
8
7
|
router: AppRouterInstance;
|
|
9
|
-
searchParams: ReadonlyURLSearchParams;
|
|
10
8
|
};
|
|
11
9
|
export type NextContextProps = CommonType;
|
|
12
10
|
export type NextProviderProps = CommonType & PropsWithChildren;
|
|
@@ -3,7 +3,7 @@ import { ComponentType, Dispatch, HTMLAttributes, PropsWithChildren, RefObject,
|
|
|
3
3
|
import { TagProps } from '@soma-vertical-web/core-components/src/lib/Tag/interfaces';
|
|
4
4
|
import { HasVariant, ProductType_PDC } from '../../../global/product';
|
|
5
5
|
import { TagCommercialConsumer } from '../../../cms/ContentTypes/FlagsAndTags';
|
|
6
|
-
import { BUY_BUTTON_LABELSType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType } from '../../../constants';
|
|
6
|
+
import { BUY_BUTTON_LABELSType, INFINITE_SCROLLType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType } from '../../../constants';
|
|
7
7
|
import { SizeSkuItemProps, StyleSelectorProps } from './Selectors';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -19,6 +19,7 @@ export interface RootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
19
19
|
shelfTitle?: string;
|
|
20
20
|
CONSTANTS: {
|
|
21
21
|
BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
|
|
22
|
+
INFINITE_SCROLL: INFINITE_SCROLLType;
|
|
22
23
|
MAIN_IMAGE: MAIN_IMAGEType;
|
|
23
24
|
PLP_GRID_SCROLL_BACK: PLP_GRID_SCROLL_BACKType;
|
|
24
25
|
PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
|