@soma-vertical-web/multi-lib 1.0.21 → 1.0.22

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.
Files changed (45) hide show
  1. package/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +1 -1
  2. package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +1 -1
  3. package/cms/ContentTypes/LPLojas/helpers.d.ts +1 -7
  4. package/cms/ContentTypes/PolicyPage/PolicyPageContent.d.ts +3 -0
  5. package/cms/index.d.ts +1 -1
  6. package/cms/server.d.ts +2 -1
  7. package/contexts/contexts/lplojas/Context.d.ts +1 -1
  8. package/contexts/index.d.ts +2 -2
  9. package/index-D61YFVi9.mjs +2261 -0
  10. package/index-DyKuIyRP.js +4 -0
  11. package/index.js +16 -16
  12. package/index.mjs +7158 -6900
  13. package/index2.js +2 -2
  14. package/index2.mjs +949 -999
  15. package/layout/index.d.ts +6 -4
  16. package/layout/template/LPLojas/Composite/Details/Details.d.ts +1 -1
  17. package/layout/template/LPLojas/Composite/Details/Item.d.ts +1 -1
  18. package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +1 -1
  19. package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +1 -1
  20. package/layout/template/LPLojas/Composite/Root.d.ts +1 -1
  21. package/layout/template/LPLojas/index.d.ts +3 -3
  22. package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
  23. package/layout/template/PDC/index.d.ts +1 -1
  24. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
  25. package/layout/template/PDP/index.d.ts +2 -2
  26. package/layout/template/Politicas/Composite/Banner.d.ts +4 -0
  27. package/layout/template/Politicas/Composite/Container.d.ts +7 -0
  28. package/layout/template/Politicas/Composite/OneTrustPolicy.d.ts +14 -0
  29. package/layout/template/Politicas/Politicas.d.ts +10 -0
  30. package/package.json +1 -1
  31. package/server.d.ts +1 -3
  32. package/style.css +1 -1
  33. package/types/cms/ContentTypes/LPLojas/index.d.ts +22 -1
  34. package/types/cms/ContentTypes/PolicyPage/index.d.ts +17 -0
  35. package/types/cms/Sections/SectionZone/index.d.ts +1 -0
  36. package/types/contexts/contexts/plp.d.ts +1 -0
  37. package/types/contexts/hooks/index.d.ts +12 -0
  38. package/types/layout/team-components/ProductCard/index.d.ts +1 -0
  39. package/types/layout/team-components/ProductList/index.d.ts +2 -1
  40. package/types/layout/templates/LPLojas/Details/index.d.ts +18 -0
  41. package/types/layout/templates/LPLojas/DropDown/index.d.ts +10 -0
  42. package/types/layout/templates/LPLojas/index.d.ts +18 -0
  43. package/types/layout/templates/PDP/index.d.ts +1 -2
  44. package/types/layout/templates/PLP/index.d.ts +1 -0
  45. package/types/layout/templates/Politicas/index.d.ts +27 -0
package/layout/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { helpers as FilterHelpers } from './team-component/Filter';
2
2
  import { default as LPCadastro } from './template/LPCadastro';
3
3
  import { default as tracker } from './template/TrackingRouteWatcher';
4
+ import { default as Politicas } from './template/Politicas/Politicas';
4
5
  import * as pdp from './template/PDP';
5
6
  export declare const layout: {
6
7
  teamComponents: {
@@ -298,7 +299,7 @@ export declare const layout: {
298
299
  displayName: string;
299
300
  };
300
301
  Products: {
301
- ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, }: import('../types/layout/templates/PLP').ProductsProps): import("react/jsx-runtime").JSX.Element;
302
+ ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, storeId, }: import('../types/layout/templates/PLP').ProductsProps): import("react/jsx-runtime").JSX.Element;
302
303
  displayName: string;
303
304
  };
304
305
  };
@@ -341,11 +342,11 @@ export declare const layout: {
341
342
  displayName: string;
342
343
  };
343
344
  Details: {
344
- ({ store, showVendor, ICONS }: import('./template/LPLojas/Composite/Details/interfaces').DetailsProps): import("react/jsx-runtime").JSX.Element;
345
+ ({ store, showVendor, ICONS }: import('../types/layout/templates/LPLojas/Details').DetailsProps): import("react/jsx-runtime").JSX.Element;
345
346
  displayName: string;
346
347
  };
347
348
  DropDown: {
348
- ({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('./template/LPLojas/Composite/DropDown/interfaces').DropDownProps): import("react/jsx-runtime").JSX.Element;
349
+ ({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('../types/layout/templates/LPLojas/DropDown').DropDownProps): import("react/jsx-runtime").JSX.Element;
349
350
  displayName: string;
350
351
  };
351
352
  ReturnButton: {
@@ -353,7 +354,7 @@ export declare const layout: {
353
354
  displayName: string;
354
355
  };
355
356
  Root: {
356
- ({ children, data }: import('./template/LPLojas/interfaces').RootProps): import("react/jsx-runtime").JSX.Element;
357
+ ({ children, data }: import('../types/layout/templates/LPLojas').RootProps): import("react/jsx-runtime").JSX.Element;
357
358
  displayName: string;
358
359
  };
359
360
  Section: {
@@ -370,6 +371,7 @@ export declare const layout: {
370
371
  };
371
372
  };
372
373
  tracker: typeof tracker;
374
+ Politicas: typeof Politicas;
373
375
  };
374
376
  utils: {
375
377
  EventCollector: ({ page, data }: import('react').PropsWithChildren & import('../types/data/events').CollectorProps) => null;
@@ -1,4 +1,4 @@
1
- import { DetailsProps } from './interfaces';
1
+ import { DetailsProps } from '../../../../../types/layout/templates/LPLojas/Details/index.js';
2
2
 
3
3
  declare const Details: {
4
4
  ({ store, showVendor, ICONS }: DetailsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ItemProps } from './interfaces';
1
+ import { ItemProps } from '../../../../../types/layout/templates/LPLojas/Details';
2
2
 
3
3
  declare const Item: {
4
4
  ({ title, text, type, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { VendorProps } from './interfaces';
1
+ import { VendorProps } from '../../../../../types/layout/templates/LPLojas/Details';
2
2
 
3
3
  declare const Vendor: {
4
4
  ({ vendor, ICONS }: VendorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { DropDownProps } from './interfaces';
1
+ import { DropDownProps } from '../../../../../types/layout/templates/LPLojas/DropDown';
2
2
 
3
3
  declare const DropDown: {
4
4
  ({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: DropDownProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { RootProps } from '../interfaces';
1
+ import { RootProps } from '../../../../types/layout/templates/LPLojas';
2
2
 
3
3
  declare const Root: {
4
4
  ({ children, data }: RootProps): import("react/jsx-runtime").JSX.Element;
@@ -4,11 +4,11 @@ declare const LPStores: {
4
4
  displayName: string;
5
5
  };
6
6
  Details: {
7
- ({ store, showVendor, ICONS }: import('./Composite/Details/interfaces').DetailsProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ store, showVendor, ICONS }: import('../../../types/layout/templates/LPLojas/Details').DetailsProps): import("react/jsx-runtime").JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  DropDown: {
11
- ({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('./Composite/DropDown/interfaces').DropDownProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('../../../types/layout/templates/LPLojas/DropDown').DropDownProps): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  ReturnButton: {
@@ -16,7 +16,7 @@ declare const LPStores: {
16
16
  displayName: string;
17
17
  };
18
18
  Root: {
19
- ({ children, data }: import('./interfaces').RootProps): import("react/jsx-runtime").JSX.Element;
19
+ ({ children, data }: import('../../../types/layout/templates/LPLojas').RootProps): import("react/jsx-runtime").JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  Section: {
@@ -1,7 +1,7 @@
1
1
  import { ProductsProps } from '../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Products: {
4
- ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, }: ProductsProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, storeId, }: ProductsProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default Products;
@@ -32,7 +32,7 @@ declare const PDC: {
32
32
  displayName: string;
33
33
  };
34
34
  Products: {
35
- ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, }: import('../../../types/layout/templates/PLP').ProductsProps): import("react/jsx-runtime").JSX.Element;
35
+ ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, storeId, }: import('../../../types/layout/templates/PLP').ProductsProps): import("react/jsx-runtime").JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  };
@@ -1,3 +1,3 @@
1
1
  import { PDPSimilarsType } from '../../../../../../../types/layout/templates/PDP';
2
2
 
3
- export declare const PDPSimilars: ({ children, apiUrl, productId, ClientItems, PDP_INFO, TEXTURE_IMAGE, TOGGLE_STYLE_MODIFIER }: PDPSimilarsType) => Promise<import("react/jsx-runtime").JSX.Element>;
3
+ export declare const PDPSimilars: ({ children, storeId, productId, PDP_INFO, TEXTURE_IMAGE, TOGGLE_STYLE_MODIFIER, }: PDPSimilarsType) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { PDPSimilars } from './Composite/Info/MainContent/Similars/index';
1
2
  import { default as AccessibilityInfo } from './Composite/Info/MainContent/Similars/AccessibilityInfo';
2
3
  import { default as Actions } from './Composite/Info/MainContent/Actions';
3
4
  import { default as BreadCrumb } from './Composite/BreadCrumb';
@@ -11,11 +12,10 @@ import { default as MainContent } from './Composite/Info/MainContent/Root';
11
12
  import { default as MainInfo } from './Composite/Info/Root';
12
13
  import { default as Price } from './Composite/Info/MainContent/Price';
13
14
  import { default as ProductMeasurements } from './Composite/Info/MainContent/ProductMeasurements';
14
- import { default as SimilarsItems } from './Composite/Info/MainContent/Similars/Items';
15
15
  import { default as Sizes } from './Composite/Info/MainContent/Sizes';
16
16
  import { default as SubSectionWrapper } from './Composite/Info/MainContent/SubSectionWrapper';
17
17
  import { containers } from './Composite/Containers';
18
18
  import { default as Divider } from './Composite/Info/Divider';
19
19
  import { default as GoldenTag } from './Composite/Info/MainContent/Header/GoldenTag';
20
20
 
21
- export { AccessibilityInfo, Actions, BreadCrumb, Credits, DescriptionsTabs, Divider, Freight, Gallery, GoldenTag, Header, Links, MainContent, MainInfo, Price, ProductMeasurements, SimilarsItems, Sizes, SubSectionWrapper, containers };
21
+ export { AccessibilityInfo, Actions, BreadCrumb, Credits, DescriptionsTabs, Divider, Freight, Gallery, GoldenTag, Header, Links, MainContent, MainInfo, Price, ProductMeasurements, Sizes, SubSectionWrapper, PDPSimilars, containers, };
@@ -0,0 +1,4 @@
1
+ import { BannerProps } from '../../../../types/layout/templates/Politicas';
2
+
3
+ declare function Banner({ title, srcImages, children, className, ...props }: BannerProps): import("react/jsx-runtime").JSX.Element;
4
+ export default Banner;
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ declare const Container: {
4
+ ({ children, className }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Container;
@@ -0,0 +1,14 @@
1
+ import { OneTrustProps } from '../../../../types/layout/templates/Politicas';
2
+
3
+ declare global {
4
+ interface Window {
5
+ OneTrust: {
6
+ NoticeApi: {
7
+ Initialized: Promise<() => void>;
8
+ LoadNotices: (key: Array<string>) => void;
9
+ };
10
+ };
11
+ }
12
+ }
13
+ declare const OneTrustPolicy: ({ oneTrust }: OneTrustProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default OneTrustPolicy;
@@ -0,0 +1,10 @@
1
+ import { IPolicyPage, IPolicyTab } from '../../../types/cms/ContentTypes/PolicyPage';
2
+ import { OneTrustConfig } from '../../../types/layout/templates/Politicas';
3
+
4
+ declare function Politicas({ slug, pageData, tabsData, oneTrust, }: {
5
+ slug: string;
6
+ pageData: IPolicyPage;
7
+ tabsData: IPolicyTab[];
8
+ oneTrust: OneTrustConfig;
9
+ }): Promise<import("react/jsx-runtime").JSX.Element>;
10
+ export default Politicas;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -52,9 +52,7 @@ declare const serverHelpers: {
52
52
  };
53
53
  declare const serverComponents: {
54
54
  template: {
55
- pdp: {
56
- PDPSimilars: ({ children, apiUrl, productId, ClientItems, PDP_INFO, TEXTURE_IMAGE, TOGGLE_STYLE_MODIFIER }: import('./types/layout/templates/PDP').PDPSimilarsType) => Promise<import("react/jsx-runtime").JSX.Element>;
57
- };
55
+ pdp: {};
58
56
  };
59
57
  };
60
58
  export { serverAPIs, serverHelpers, serverCMS, serverComponents };