@soma-vertical-web/multi-lib 0.0.48 → 0.0.50
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/SearchPageScreening-BIyp1dAW.mjs +112 -0
- package/SearchPageScreening-gO7dG13l.js +1 -0
- package/cms/ContentTypes/Redirects/Redirects.d.ts +32 -0
- package/cms/ContentTypes/Search/SearchContent.d.ts +3 -0
- package/cms/ContentTypes/Search/SearchContentScreening.d.ts +3 -0
- package/cms/ContentTypes/Search/SearchPageContent.d.ts +3 -0
- package/cms/ContentTypes/Search/SearchPageScreening.d.ts +3 -0
- package/cms/index.d.ts +2 -0
- package/cms/server.d.ts +31 -0
- package/data/api/cms/index.d.ts +1 -1
- package/index-BJzBUeMp.js +1 -0
- package/index-Ba7fQCkk.js +1 -0
- package/index-Do5eAlCL.mjs +219 -0
- package/index-VkanwPXK.mjs +221 -0
- package/index.js +9 -9
- package/index.mjs +2328 -2320
- package/index2.js +1 -1
- package/index2.mjs +387 -419
- package/layout/index.d.ts +1 -1
- package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +1 -3
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -3
- package/layout/team-component/Header/Composite/SearchButton.d.ts +1 -5
- package/layout/team-component/Header/index.d.ts +1 -1
- package/package.json +1 -1
- package/types/cms/ContentTypes/Redirects/index.d.ts +4 -0
- package/types/cms/ContentTypes/Search/index.d.ts +31 -0
- package/types/data/api/cms/index.d.ts +2 -1
- package/types/layout/team-components/Header/index.d.ts +1 -5
package/layout/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const layout: {
|
|
|
4
4
|
teamComponents: {
|
|
5
5
|
FreightCalculation: ({ className, sellerId, skuId, quantity, size, seller, local, CONSTANTS_PROPS, }: import('../types/layout/team-components/FreightCalculation').FreightCalculationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Header: {
|
|
7
|
-
({ tipBar, miniCart
|
|
7
|
+
({ tipBar, miniCart }: import('../types/layout/team-components/Header').HeaderContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
10
10
|
Link: ({ children, adornments, className, disableUnderline, href, mode, size, title, onClick, disablePadding, ...props }: import('./team-component/Link/interfaces').TeamLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { HeaderWrappersProps } from '../../../../types/layout/team-components/Header';
|
|
2
|
-
|
|
3
1
|
declare const HeaderDesktopWrapper: {
|
|
4
|
-
(
|
|
2
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
5
3
|
displayName: string;
|
|
6
4
|
};
|
|
7
5
|
export default HeaderDesktopWrapper;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { HeaderWrappersProps } from '../../../../types/layout/team-components/Header';
|
|
2
|
-
|
|
3
1
|
declare const HeaderMobileWrapper: {
|
|
4
|
-
(
|
|
2
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
5
3
|
displayName: string;
|
|
6
4
|
};
|
|
7
5
|
export default HeaderMobileWrapper;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function SearchButton({ SearchModal }: {
|
|
4
|
-
SearchModal: ComponentType<any>;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare function SearchButton(): import("react/jsx-runtime").JSX.Element;
|
|
6
2
|
export default SearchButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeaderContainerProps } from '../../../types/layout/team-components/Header';
|
|
2
2
|
|
|
3
3
|
declare const Header: {
|
|
4
|
-
({ tipBar, miniCart
|
|
4
|
+
({ tipBar, miniCart }: HeaderContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default Header;
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GetContentTypeProps } from '../../../data/api/cms';
|
|
1
2
|
import { IContentTypeResponseBase } from '../../Factories';
|
|
2
3
|
|
|
3
4
|
export interface IRedirects extends IContentTypeResponseBase {
|
|
@@ -19,3 +20,6 @@ export interface IRedirects extends IContentTypeResponseBase {
|
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
}
|
|
23
|
+
export interface Redirects extends Omit<GetContentTypeProps, 'contentType'> {
|
|
24
|
+
slug: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { GetContentTypeProps } from '../../../data/api/cms';
|
|
3
|
+
import { IContentTypeResponseBase } from '../../Factories';
|
|
4
|
+
import { BannerSectionType } from '../../Sections/Banner';
|
|
5
|
+
import { NewsLetterSectionType } from '../../Sections/Newsletter';
|
|
6
|
+
import { ProductCarouselSectionType } from '../../Sections/ProductCarousel';
|
|
7
|
+
import { TextContentSectionType } from '../../Sections/TextContent';
|
|
8
|
+
|
|
9
|
+
export type DeviceType = 'mobile' | 'desktop';
|
|
10
|
+
export interface Config {
|
|
11
|
+
responsive: {
|
|
12
|
+
deviceType: DeviceType;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type SectionType = BannerSectionType | ProductCarouselSectionType | TextContentSectionType | NewsLetterSectionType;
|
|
16
|
+
export interface SearchContentType extends IContentTypeResponseBase {
|
|
17
|
+
config: Config;
|
|
18
|
+
sections: SectionType[];
|
|
19
|
+
}
|
|
20
|
+
export interface SearchPageScrenningProps extends PropsWithChildren {
|
|
21
|
+
data: SearchContentType[];
|
|
22
|
+
SectionZone: React.ComponentType<any>;
|
|
23
|
+
className: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SearchContentProps extends Omit<GetContentTypeProps, 'contentType'> {
|
|
26
|
+
SectionZone: React.ComponentType<any>;
|
|
27
|
+
}
|
|
28
|
+
export interface SearchPageContentProps extends PropsWithChildren, Omit<GetContentTypeProps, 'contentType'> {
|
|
29
|
+
SectionZone: React.ComponentType<any>;
|
|
30
|
+
className: string;
|
|
31
|
+
}
|
|
@@ -5,7 +5,8 @@ export interface ReplaceTargetForPreviewProps extends GetContentTypeProps {
|
|
|
5
5
|
}
|
|
6
6
|
export interface GetContentTypeProps {
|
|
7
7
|
contentType: string;
|
|
8
|
-
NextCookies
|
|
8
|
+
NextCookies?: () => ReadonlyRequestCookies;
|
|
9
|
+
previewId?: string;
|
|
9
10
|
CMS_PROJECT_NAME: string;
|
|
10
11
|
storeId: string;
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-components/src/lib/Header/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { PropsWithChildren, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
|
|
4
4
|
import { AddToCartProviderProps } from '../../team-components/AddToCart';
|
|
5
5
|
import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType } from '../../../constants';
|
|
@@ -56,10 +56,6 @@ export type HeaderConfigsType = {
|
|
|
56
56
|
};
|
|
57
57
|
export type HeaderContainerProps = {
|
|
58
58
|
miniCart: ReactNode;
|
|
59
|
-
SearchModal: ComponentType<any>;
|
|
60
59
|
tipBar?: ReactNode;
|
|
61
60
|
};
|
|
62
|
-
export type HeaderWrappersProps = {
|
|
63
|
-
SearchModal: ComponentType<any>;
|
|
64
|
-
};
|
|
65
61
|
export {};
|