@sunrise-upc/mobile-prod-card 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/cjs/components/Breadcrumb/Breadcrumb.d.ts +3 -0
  2. package/dist/cjs/components/Breadcrumb/index.d.ts +1 -0
  3. package/dist/cjs/components/Breadcrumb/useScrollCheck.d.ts +4 -0
  4. package/dist/cjs/components/PretoPost/PreToPostSubsPopup.d.ts +3 -0
  5. package/dist/cjs/components/PretoPost/index.d.ts +1 -0
  6. package/dist/cjs/components/ProductTeaser/ProductTeaser.d.ts +1 -0
  7. package/dist/cjs/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
  8. package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +11 -0
  9. package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +8 -0
  10. package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -2
  11. package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +5 -0
  12. package/dist/cjs/components/index.d.ts +2 -0
  13. package/dist/cjs/index.js +1 -8
  14. package/dist/cjs/models/Analytics/items.d.ts +5 -0
  15. package/dist/cjs/services/LineTableService.d.ts +2 -2
  16. package/dist/cjs/utils/constants.d.ts +3 -0
  17. package/dist/esm/components/Breadcrumb/Breadcrumb.d.ts +3 -0
  18. package/dist/esm/components/Breadcrumb/index.d.ts +1 -0
  19. package/dist/esm/components/Breadcrumb/useScrollCheck.d.ts +4 -0
  20. package/dist/esm/components/PretoPost/PreToPostSubsPopup.d.ts +3 -0
  21. package/dist/esm/components/PretoPost/index.d.ts +1 -0
  22. package/dist/esm/components/ProductTeaser/ProductTeaser.d.ts +1 -0
  23. package/dist/esm/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
  24. package/dist/esm/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +11 -0
  25. package/dist/esm/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +8 -0
  26. package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -2
  27. package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +5 -0
  28. package/dist/esm/components/index.d.ts +2 -0
  29. package/dist/esm/index.js +1 -8
  30. package/dist/esm/models/Analytics/items.d.ts +5 -0
  31. package/dist/esm/services/LineTableService.d.ts +2 -2
  32. package/dist/esm/utils/constants.d.ts +3 -0
  33. package/dist/index.d.ts +7 -1
  34. package/package.json +2 -2
@@ -30,6 +30,11 @@ export interface ecomAddCartInfo {
30
30
  value: string | number;
31
31
  items: itemInfoEvent[];
32
32
  }
33
+ export declare const getItemCategory: (item: any) => {
34
+ prodCategory: string;
35
+ prodsubCategory: string;
36
+ prodsubscription: string;
37
+ };
33
38
  export declare const getItemData: (item: any, data?: any, isAvailable?: any) => itemInfoEvent;
34
39
  export declare const getEcomInfo: (items: any, category?: any, location?: any, eligibleBundle?: any) => any;
35
40
  export declare const getViewCartInfo: (items: any, category: any, location: any) => ecomViewCartInfo;
@@ -1,7 +1,7 @@
1
1
  export declare const fetchCountryList: (name: string, lang: string, url: string, TTL: number) => Promise<any>;
2
2
  export declare const fetchOfferingDataV2: (params: any, url: any) => Promise<any>;
3
- export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string, chooseGift?: any) => Promise<any>;
3
+ export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string, chooseGift?: any, enabledP2P?: any, P2PData?: any) => Promise<any>;
4
4
  export declare const fetchLinetableContent: (slugurl: string, params: any) => Promise<any>;
5
5
  export declare const getStaticContent: (language: any, endPoints: any) => Promise<any>;
6
- export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean) => Promise<any>;
6
+ export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean, P2PEnabled?: boolean) => Promise<any>;
7
7
  export declare const fetchSubscriptionData: (category: any, endpoint: any) => Promise<any>;
@@ -23,3 +23,6 @@ export declare const AVAILABLE_LANGUAGES: {
23
23
  DE: string;
24
24
  };
25
25
  export declare const ERROR_COLOR = "#C60047";
26
+ export declare const BREADCRUMB = "...";
27
+ export declare const PRE_TO_POST = "PRE_TO_POST";
28
+ export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
package/dist/index.d.ts CHANGED
@@ -131,6 +131,7 @@ interface ProductTeaserCompSchema extends GenericSBProps {
131
131
  interface ProductTeaserSchema {
132
132
  content: ProductTeaserCompSchema;
133
133
  lineCheckCallBack?: () => void;
134
+ linecheckSuccessCallBack?: () => void;
134
135
  changeAddressClicked?: boolean;
135
136
  offerDataCallBack?: (a: any, b: any, c?: string) => void;
136
137
  productCallBack?: (a: string) => void;
@@ -160,6 +161,7 @@ interface StaticLinetableSchema {
160
161
  metadata: any;
161
162
  loginSuccess?: boolean;
162
163
  changeAddressClicked?: any;
164
+ lineCheckCallBack?: any;
163
165
  linecheckSuccessCallBack?: any;
164
166
  selectedOption?: string;
165
167
  basicConfigUrl?: string;
@@ -173,6 +175,10 @@ declare const LincheckModal: FC<any>;
173
175
 
174
176
  declare const BenefitWrapper: ({ content, metadata, setGenericErrorModalDetails, loginSuccess, basicConfigUrl, setLoginSuccess }: any) => JSX.Element;
175
177
 
178
+ declare const Breadcrumb: FC<any>;
179
+
180
+ declare const PreToPostSubsPopup: ({ onClose, content, prepaid, }: any) => JSX.Element;
181
+
176
182
  interface LineTableBasicPropConfigSchema {
177
183
  baseURL: string | '';
178
184
  cartURL?: string | '';
@@ -229,4 +235,4 @@ declare class LinecheckBasicPropConfig {
229
235
  static create: (p_config: LinecheckBasicPropConfigSchema) => void;
230
236
  }
231
237
 
232
- export { AssetPathPropConfig, AssetPathPropConfigSchema, BenefitWrapper, Button, Card, CardEntitlement, CarouselComp, LineTableBasicPropConfig, LineTableBasicPropConfigSchema, LinecheckBasicPropConfig, LinecheckBasicPropConfigSchema, LincheckModal as LinecheckModal, LoginModal, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, StaticLineTable, StickyProductAnchor };
238
+ export { AssetPathPropConfig, AssetPathPropConfigSchema, BenefitWrapper, Breadcrumb, Button, Card, CardEntitlement, CarouselComp, LineTableBasicPropConfig, LineTableBasicPropConfigSchema, LinecheckBasicPropConfig, LinecheckBasicPropConfigSchema, LincheckModal as LinecheckModal, LoginModal, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, StaticLineTable, StickyProductAnchor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunrise-upc/mobile-prod-card",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "Starter project to create reusable functional component",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -57,7 +57,7 @@
57
57
  "cookies-next": "^2.1.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@sunrise-upc/ajax-lib": "^1.1.5",
60
+ "@sunrise-upc/ajax-lib": "^1.1.5.",
61
61
  "@sunrise-upc/b2c-login": "^2.2.4",
62
62
  "js-cookie": "^3.0.1",
63
63
  "react": "^17.0.2",