@soma-vertical-web/multi-lib 1.0.24 → 1.0.25

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 (33) hide show
  1. package/cms/ContentTypes/Wishlist/WishlistContent.d.ts +3 -0
  2. package/cms/ContentTypes/Wishlist/WishlistScreening.d.ts +3 -0
  3. package/cms/index.d.ts +1 -0
  4. package/cms/server.d.ts +1 -0
  5. package/contexts/hooks/useOrderform.d.ts +16 -0
  6. package/data/api/maisCarrinho/Api.d.ts +9 -0
  7. package/data/api/maisCarrinho/URLGenerator.d.ts +4 -0
  8. package/data/api/maisCarrinho/encurtador.d.ts +1 -0
  9. package/data/api/maisCarrinho/utils.d.ts +2 -0
  10. package/data/api/marketingData/index.d.ts +25 -0
  11. package/{index-DjjGiBzS.mjs → index-BM8vTUKg.mjs} +745 -672
  12. package/index-CZjoMPpQ.js +4 -0
  13. package/index.js +16 -15
  14. package/index.mjs +5992 -5602
  15. package/index2.js +2 -2
  16. package/index2.mjs +471 -486
  17. package/layout/index.d.ts +6 -0
  18. package/layout/template/MaisCarrinho/WidgetVendedora.d.ts +8 -0
  19. package/layout/template/MaisCarrinho/components/ActionButton/ActionButton.d.ts +8 -0
  20. package/layout/template/MaisCarrinho/components/ActionButton/index.d.ts +1 -0
  21. package/layout/template/MaisCarrinho/components/SharePanel/SharePanel.d.ts +9 -0
  22. package/layout/template/MaisCarrinho/components/SharePanel/index.d.ts +1 -0
  23. package/layout/template/MaisCarrinho/index.d.ts +1 -0
  24. package/package.json +1 -1
  25. package/server.d.ts +2 -0
  26. package/style.css +1 -1
  27. package/types/cms/ContentTypes/Wishlist/index.d.ts +12 -0
  28. package/types/layout/templates/MaisCarrinho/index.d.ts +25 -0
  29. package/index-3re_PcOZ.mjs +0 -2234
  30. package/index-5ycwc4R2.mjs +0 -2230
  31. package/index-BngdrDvh.js +0 -4
  32. package/index-ByLB8d6o.js +0 -4
  33. package/index-Rwk0NGoh.js +0 -4
@@ -0,0 +1,3 @@
1
+ import { WishlistContentProps } from '../../../types/cms/ContentTypes/Wishlist';
2
+
3
+ export declare const WishlistContent: ({ children, SectionZone, WishlistScreening, ...props }: WishlistContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,3 @@
1
+ import { WishlistScreeningProps } from '../../../types/cms/ContentTypes/Wishlist';
2
+
3
+ export declare const WishlistScreening: ({ data, children, SectionZone, responsive, COMMON_PAGE_COLUMN_GAP, }: WishlistScreeningProps) => import("react/jsx-runtime").JSX.Element;
package/cms/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare const clientCMS: {
23
23
  PopupModalSection: ({ data, name, CONSTANTS, }: import('../types/cms/Sections/PopupModal').PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
24
24
  SectionZone: import('react').FunctionComponent<import('../types/cms/Sections/SectionZone').SectionZoneProps>;
25
25
  LPStoresClientWrapper: ({ content, data, showVendor, ICONS, entity, LPLOJAS_TEMPLATE_RETURN_BUTTON, }: import('../types/cms/ContentTypes/LPLojas').LPStoresClientWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
26
+ WishlistScreening: ({ data, children, SectionZone, responsive, COMMON_PAGE_COLUMN_GAP, }: import('../types/cms/ContentTypes/Wishlist').WishlistScreeningProps) => import("react/jsx-runtime").JSX.Element;
26
27
  };
27
28
  helpers: typeof helpers;
28
29
  };
package/cms/server.d.ts CHANGED
@@ -44,5 +44,6 @@ export declare const serverCMS: {
44
44
  LPLojasContent: ({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, entity, showVendor, LPStoresClientWrapper, ...props }: import('../types/cms/ContentTypes/LPLojas').LPLojasContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
45
45
  PolicyPageContent: ({ slug, Politicas, SectionZone, oneTrust, ...props }: import('../types/cms/ContentTypes/PolicyPage').PolicyPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
46
46
  NotFoundContent: ({ ERROR_TEMPLATE_RETURN_BUTTON, ErrorTemplate, ...props }: import('../types/cms/ContentTypes/NotFoundPage').NotFoundPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
47
+ WishlistContent: ({ children, SectionZone, WishlistScreening, ...props }: import('../types/cms/ContentTypes/Wishlist').WishlistContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
47
48
  };
48
49
  };
@@ -0,0 +1,16 @@
1
+ import { IConfig } from '../../types/layout/templates/MaisCarrinho';
2
+
3
+ interface IOrderformContext {
4
+ codVenderoda: string;
5
+ orderformId: string;
6
+ cupom: string;
7
+ setCodVendedora: (newVendorCode: string) => void;
8
+ setCupom: (newCoupom: string) => void;
9
+ setOrderformId: (newOrderId: string) => void;
10
+ setConfiguration: (newConfig: IConfig) => void;
11
+ update: (orderformId: string) => boolean;
12
+ isValidSharedCart: () => boolean;
13
+ }
14
+ export declare const OrderformContext: import('react').Context<IOrderformContext>;
15
+ export declare function useOrderform(): IOrderformContext;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ interface IfetchData {
2
+ getOrderFormApiURL: string | undefined;
3
+ base?: string;
4
+ orderformId?: string;
5
+ code?: string;
6
+ data?: any;
7
+ }
8
+ export declare function fetchData({ getOrderFormApiURL }: IfetchData): any;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function URLGenerator(config: {
2
+ base: string;
3
+ orderformId: string;
4
+ }, external: boolean | undefined, sellerCode: string): string;
@@ -0,0 +1 @@
1
+ export default function getShortUrl(originalUrl: string): Promise<any>;
@@ -0,0 +1,2 @@
1
+ export declare function getUrlParameter(name: string, url?: string): string | null | undefined;
2
+ export declare function resetOrderFormAndReload(): void;
@@ -0,0 +1,25 @@
1
+ import { FetchFunctionsProps } from '../../../types/data/api';
2
+
3
+ import * as yup from 'yup';
4
+ declare const schemaMarketingData: yup.ObjectSchema<{
5
+ orderFormId: string;
6
+ coupon: string | null | undefined;
7
+ utmSource: string | undefined;
8
+ utmMedium: string | undefined;
9
+ utmCampaign: string | undefined;
10
+ utmiCampaign: string | undefined;
11
+ utmiPart: string | undefined;
12
+ utmipage: string | undefined;
13
+ }, yup.AnyObject, {
14
+ orderFormId: undefined;
15
+ coupon: undefined;
16
+ utmSource: undefined;
17
+ utmMedium: undefined;
18
+ utmCampaign: undefined;
19
+ utmiCampaign: undefined;
20
+ utmiPart: undefined;
21
+ utmipage: undefined;
22
+ }, "">;
23
+ type MarketingDataSchema = yup.InferType<typeof schemaMarketingData>;
24
+ export declare function postMediaData({ apiUrl, body, }: FetchFunctionsProps<MarketingDataSchema>): Promise<any>;
25
+ export {};