@soma-vertical-web/multi-lib 1.0.20 → 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 (41) 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/Session.d.ts +1 -1
  8. package/contexts/contexts/lplojas/Context.d.ts +1 -1
  9. package/contexts/index.d.ts +3 -3
  10. package/data/api/checkout/order-form/shipping/update/index.d.ts +2 -2
  11. package/data/api/user/index.d.ts +3 -0
  12. package/index-BhiCzrut.mjs +2255 -0
  13. package/index-D61YFVi9.mjs +2261 -0
  14. package/index-DZ1MbO8M.js +4 -0
  15. package/index-DyKuIyRP.js +4 -0
  16. package/index.js +16 -16
  17. package/index.mjs +8267 -8056
  18. package/index2.js +8 -1
  19. package/index2.mjs +2266 -1114
  20. package/layout/index.d.ts +7 -3
  21. package/layout/template/LPLojas/Composite/Details/Details.d.ts +1 -1
  22. package/layout/template/LPLojas/Composite/Details/Item.d.ts +1 -1
  23. package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +1 -1
  24. package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +1 -1
  25. package/layout/template/LPLojas/Composite/Root.d.ts +1 -1
  26. package/layout/template/LPLojas/index.d.ts +3 -3
  27. package/layout/template/Politicas/Composite/Banner.d.ts +4 -0
  28. package/layout/template/Politicas/Composite/Container.d.ts +7 -0
  29. package/layout/template/Politicas/Composite/OneTrustPolicy.d.ts +14 -0
  30. package/layout/template/Politicas/Politicas.d.ts +10 -0
  31. package/layout/template/TrackingRouteWatcher/index.d.ts +5 -0
  32. package/package.json +1 -1
  33. package/server.d.ts +2 -0
  34. package/style.css +1 -1
  35. package/types/cms/ContentTypes/LPLojas/index.d.ts +22 -1
  36. package/types/cms/ContentTypes/PolicyPage/index.d.ts +17 -0
  37. package/types/contexts/contexts/session.d.ts +1 -0
  38. package/types/layout/templates/LPLojas/Details/index.d.ts +18 -0
  39. package/types/layout/templates/LPLojas/DropDown/index.d.ts +10 -0
  40. package/types/layout/templates/LPLojas/index.d.ts +18 -0
  41. package/types/layout/templates/Politicas/index.d.ts +27 -0
package/layout/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { helpers as FilterHelpers } from './team-component/Filter';
2
2
  import { default as LPCadastro } from './template/LPCadastro';
3
+ import { default as tracker } from './template/TrackingRouteWatcher';
4
+ import { default as Politicas } from './template/Politicas/Politicas';
3
5
  import * as pdp from './template/PDP';
4
6
  export declare const layout: {
5
7
  teamComponents: {
@@ -340,11 +342,11 @@ export declare const layout: {
340
342
  displayName: string;
341
343
  };
342
344
  Details: {
343
- ({ 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;
344
346
  displayName: string;
345
347
  };
346
348
  DropDown: {
347
- ({ 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;
348
350
  displayName: string;
349
351
  };
350
352
  ReturnButton: {
@@ -352,7 +354,7 @@ export declare const layout: {
352
354
  displayName: string;
353
355
  };
354
356
  Root: {
355
- ({ 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;
356
358
  displayName: string;
357
359
  };
358
360
  Section: {
@@ -368,6 +370,8 @@ export declare const layout: {
368
370
  displayName: string;
369
371
  };
370
372
  };
373
+ tracker: typeof tracker;
374
+ Politicas: typeof Politicas;
371
375
  };
372
376
  utils: {
373
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: {
@@ -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;
@@ -0,0 +1,5 @@
1
+ interface TrackerProps {
2
+ accountName: string;
3
+ }
4
+ export default function TrackingRouteWatcher({ accountName }: TrackerProps): null;
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as catalog from './data/api/catalog';
5
5
  import * as cms from './data/api/cms';
6
6
  import * as search from './data/api/search';
7
7
  import * as masterdata from './data/api/master-data';
8
+ import * as user from './data/api/user';
8
9
  import * as catalogHelpers from './data/helpers/catalog';
9
10
  import * as productHelpers from './data/helpers/product';
10
11
  declare const serverAPIs: {
@@ -13,6 +14,7 @@ declare const serverAPIs: {
13
14
  cms: typeof cms;
14
15
  search: typeof search;
15
16
  masterdata: typeof masterdata;
17
+ user: typeof user;
16
18
  wishlist: {
17
19
  getWishlistProducts({ body, apiUrl, extraData, fetchOptions }: import('./types/data/api').FetchFunctionsProps<any>): Promise<any>;
18
20
  };