@sunrise-upc/sales-static-components 4.2.0-beta.6 → 4.2.0
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/dist/cjs/components/DeviceGallery/DeviceGalleryItem/DeviceGalleryItem.js +1 -1
- package/dist/cjs/components/DeviceGallery/DeviceGalleryItem/DeviceGalleryItem.js.map +1 -1
- package/dist/cjs/components/DeviceGallery/DeviceGalleryList.js +1 -1
- package/dist/cjs/components/DeviceGallery/DeviceGalleryList.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js +1 -1
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js +1 -1
- package/dist/cjs/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js.map +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.css +1 -47
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.js +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.js.map +1 -1
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.css +1 -47
- package/dist/cjs/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +2 -13
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonExpiredTimerRedefined.css +0 -11
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonTimerV2.module.scss.css +0 -11
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/AnalyticUtils.js +1 -1
- package/dist/cjs/utils/AnalyticUtils.js.map +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryItem/DeviceGalleryItem.js +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryItem/DeviceGalleryItem.js.map +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryList.js +1 -1
- package/dist/esm/components/DeviceGallery/DeviceGalleryList.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/NavigationMenuItem/NavigationMenuItem.js +1 -1
- package/dist/esm/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js +1 -1
- package/dist/esm/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js.map +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.css +1 -47
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.js +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.js.map +1 -1
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.css +1 -47
- package/dist/esm/components/GlobalPromoRibbon/GlobalPromoRibbon.module.scss.js +1 -1
- package/dist/esm/components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +2 -13
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.js.map +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonExpiredTimerRedefined.css +0 -11
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonTimerV2.module.scss.css +0 -11
- package/dist/esm/components/linecheck/LineCheckV2.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/AnalyticUtils.js +1 -1
- package/dist/esm/utils/AnalyticUtils.js.map +1 -1
- package/dist/index.d.ts +6 -61
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e}from"../node_modules/tslib/tslib.es6.js";
|
|
1
|
+
import{__rest as e}from"../node_modules/tslib/tslib.es6.js";let t;const n=(e,n,a,s)=>{const o={componentInfo:{type:a,subType:s},attributes:{title:e,targetLink:n}};Array.isArray(t)||(t=[]),t.push(o)},a=(e,t,n)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},n))},s=(e,t,n)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},n))},o=(e,t,n,a,s)=>{const o={address:e,eventAction:t,eventValue:n,id:a,timeStamp:Math.round(Date.now()/1e3),type:s};try{window.appEventData.push({event:s,eventInfo:o})}catch(e){}},r=(e,t,n)=>{const a={eventAction:e,eventValue:t,timeStamp:Math.round(Date.now()/1e3),type:n};try{"view"==n||"message"==n||window.appEventData.push({event:n,eventInfo:a})}catch(e){}},i=(t,n,a,s,o,r)=>{const i={description:t,source:n,title:a,type:s,guid:o,errorID:r};try{const{guid:t,errorID:n}=i,a=e(i,["guid","errorID"]);"error"==s&&null==t&&null==n||"success"==s||"general"==s?window.appEventData.push({event:"message",message:a}):void 0!==t&&void 0!==n&&window.appEventData.push({event:"message",message:i})}catch(e){}},p=(e,t,n,a)=>{const s={message_type:e,message_title:t,message_source:n,message_reason:a};try{window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},s))}catch(e){}};export{n as trackComponent,p as trackErrorEvent,r as trackEvent,s as trackGADatalayerEvent,o as trackLineEvent,i as trackMessageEvent,a as trackNewDatalayerEvent};
|
|
2
2
|
//# sourceMappingURL=AnalyticUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticUtils.js","sources":["../../../../src/utils/AnalyticUtils.ts"],"sourcesContent":[null],"names":["ComponentArray","trackComponent","title","targetLink","type","subType","component","componentInfo","attributes","Array","isArray","push","trackNewDatalayerEvent","event","eventName","eventInfo","window","dataLayer","event_name","trackGADatalayerEvent","
|
|
1
|
+
{"version":3,"file":"AnalyticUtils.js","sources":["../../../../src/utils/AnalyticUtils.ts"],"sourcesContent":[null],"names":["ComponentArray","trackComponent","title","targetLink","type","subType","component","componentInfo","attributes","Array","isArray","push","trackNewDatalayerEvent","event","eventName","eventInfo","window","dataLayer","event_name","trackGADatalayerEvent","trackLineEvent","address","eventAction","eventValue","id","timeStamp","Math","round","Date","now","appEventData","_a","trackEvent","trackMessageEvent","description","source","guid","errorID","validationmessage","__rest","undefined","message","trackErrorEvent","message_type","message_title","message_source","message_reason"],"mappings":"4DACA,IAAIA,EAUG,MAAMC,EAAiB,CAC5BC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAAY,CAChBC,cAAe,CACbH,KAAMA,EACNC,QAASA,GAEXG,WAAY,CACVN,MAAOA,EACPC,WAAYA,IAIXM,MAAMC,QAAQV,KAAiBA,EAAiB,IACrDA,EAAeW,KAAKL,IAITM,EAAyB,CAACC,EAAeC,EAAmBC,KACrEC,OAAOC,UAAUN,oBACfE,MAAOA,EACPK,WAAYJ,GACTC,KAKII,EAAwB,CACnCN,EACAC,EACAC,KAEAC,OAAOC,UAAUN,oBACfE,MAAOA,EACPK,WAAYJ,GACTC,KAYMK,EAAiB,CAC5BC,EACAC,EACAC,EACAC,EACApB,KAEA,MAAMW,EAAyC,CAC7CM,QAASA,EACTC,YAAaA,EACbC,WAAYA,EACZC,GAAIA,EACJC,UAAWC,KAAKC,MAAMC,KAAKC,MAAQ,KACnCzB,KAAMA,GAER,IACEY,OAAOc,aAAanB,KAAK,CACvBE,MAAOT,EACPW,UAAWA,GAEf,CAAE,MAAAgB,GAEF,GAIWC,EAAa,CACxBV,EACAC,EACAnB,KAEA,MAAMW,EAAiB,CACrBO,YAAaA,EACbC,WAAYA,EACZE,UAAWC,KAAKC,MAAMC,KAAKC,MAAQ,KACnCzB,KAAMA,GAKR,IACc,QAARA,GAOe,WAARA,GAMTY,OAAOc,aAAanB,KAAK,CACvBE,MAAOT,EACPW,UAAWA,GAGjB,CAAE,MAAAgB,GAEF,GAIWE,EAAoB,CAC/BC,EACAC,EACAjC,EACAE,EACAgC,EACAC,KAEA,MAAMtB,EAAiB,CACrBmB,YAAaA,EACbC,OAAQA,EACRjC,MAAOA,EACPE,KAAMA,EACNgC,KAAMA,EACNC,QAASA,GAKX,IACE,MAAMD,KAAEA,EAAIC,QAAEA,GAAkCtB,EAAtBuB,EAAiBC,EAAKxB,EAA1C,CAAA,OAAA,YAEK,SAARX,GAA2BoC,MAARJ,GAAgCI,MAAXH,GACjC,WAARjC,GACQ,WAARA,EAECY,OAAOc,aAAanB,KAAK,CACvBE,MAAO,UACN4B,QAASH,SAEOE,IAATJ,QAAkCI,IAAZH,GAC/BrB,OAAOc,aAAanB,KAAK,CACvBE,MAAO,UACP4B,QAAS1B,GAGjB,CAAE,MAAAgB,GAEF,GAUWW,EAAkB,CAC7BC,EACAC,EACAC,EACAC,KAEA,MAAM/B,EAAqC,CACzC4B,aAAcA,EACdC,cAAeA,EACfC,eAAgBA,EAChBC,eAAgBA,GAElB,IACE9B,OAAOC,UAAUN,oBACfE,MAAO,UACPK,WAAY,eACTH,GAEP,CAAE,MAAAgB,GAEF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface TimerSchema {
|
|
|
14
14
|
expiryLabel: string;
|
|
15
15
|
timerColor?: string;
|
|
16
16
|
backgroundColor: string;
|
|
17
|
-
backgroundColorTransparency: number
|
|
17
|
+
backgroundColorTransparency: number;
|
|
18
18
|
timerAlignment: string;
|
|
19
19
|
dayLabel: string;
|
|
20
20
|
hourLabel: string;
|
|
@@ -121,7 +121,6 @@ interface GlobalPromoRibbonSchema {
|
|
|
121
121
|
bannerLocation?: string;
|
|
122
122
|
buttons?: GlobalPromoRibbonButtonSchema[];
|
|
123
123
|
slimVersion?: boolean;
|
|
124
|
-
desktopBreakline?: boolean;
|
|
125
124
|
gradientBackgroundGlobal?: string;
|
|
126
125
|
customerType?: string | string[];
|
|
127
126
|
customerDeviceSegment?: string | string[];
|
|
@@ -382,9 +381,11 @@ interface DeviceGalleryListContent {
|
|
|
382
381
|
}
|
|
383
382
|
interface DeviceGalleryListProps {
|
|
384
383
|
content: DeviceGalleryListContent;
|
|
384
|
+
onEligibleItem?: (eventType: 'view' | 'select') => void;
|
|
385
|
+
onPrepareItemAnalytics?: (content: DeviceGalleryItemSchema) => void;
|
|
385
386
|
useFalconStyle?: boolean;
|
|
386
387
|
}
|
|
387
|
-
declare const DeviceGalleryList: ({ content, useFalconStyle, }: DeviceGalleryListProps) => React.JSX.Element;
|
|
388
|
+
declare const DeviceGalleryList: ({ content, onEligibleItem, onPrepareItemAnalytics, useFalconStyle, }: DeviceGalleryListProps) => React.JSX.Element;
|
|
388
389
|
|
|
389
390
|
interface InternetAndTvCardItemSchema {
|
|
390
391
|
_uid: string;
|
|
@@ -405,12 +406,6 @@ interface InternetAndTvCardItemSchema {
|
|
|
405
406
|
notToDisplay?: boolean;
|
|
406
407
|
[key: string]: any;
|
|
407
408
|
}
|
|
408
|
-
interface InternetAndTvCardItemProps {
|
|
409
|
-
content: InternetAndTvCardItemSchema;
|
|
410
|
-
metadata?: any;
|
|
411
|
-
index?: number;
|
|
412
|
-
}
|
|
413
|
-
declare const InternetAndTvCardItem: ({ content, metadata, index, }: InternetAndTvCardItemProps) => React.JSX.Element;
|
|
414
409
|
|
|
415
410
|
interface InternetAndTvCardsContent {
|
|
416
411
|
_uid: string;
|
|
@@ -660,7 +655,6 @@ interface HeaderCartContent {
|
|
|
660
655
|
mnthLbl?: string;
|
|
661
656
|
downPaymentLbl?: string;
|
|
662
657
|
downPaymentDesc?: string;
|
|
663
|
-
simPriceLbl?: string;
|
|
664
658
|
smartAndflexText?: string;
|
|
665
659
|
smartUpgradeTxt?: string;
|
|
666
660
|
flexUpgradeTxt?: string;
|
|
@@ -847,54 +841,5 @@ declare class CartPropConfig {
|
|
|
847
841
|
static create: (p_config: CartPropConfigSchema) => void;
|
|
848
842
|
}
|
|
849
843
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
appEventData: any;
|
|
853
|
-
dataLayer: any;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
declare const trackComponent: (title: string, targetLink: string | undefined, type: string, subType: string) => void;
|
|
857
|
-
declare const trackNewDatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
|
858
|
-
declare const trackGADatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
|
859
|
-
interface DeviceGalleryAnalyticsItem {
|
|
860
|
-
item_id: string;
|
|
861
|
-
item_name: string;
|
|
862
|
-
item_brand: string;
|
|
863
|
-
item_category: string;
|
|
864
|
-
item_category2: string;
|
|
865
|
-
item_category3: string;
|
|
866
|
-
item_category4: string;
|
|
867
|
-
item_category5: string;
|
|
868
|
-
item_list_id: string;
|
|
869
|
-
item_list_name: string;
|
|
870
|
-
item_variant: string;
|
|
871
|
-
price: number;
|
|
872
|
-
quantity: number;
|
|
873
|
-
}
|
|
874
|
-
declare const getDeviceGalleryAnalyticsItem: (content: {
|
|
875
|
-
title?: string;
|
|
876
|
-
}) => DeviceGalleryAnalyticsItem;
|
|
877
|
-
declare const trackDeviceGalleryEligibility: (eventType: "view" | "select", items: DeviceGalleryAnalyticsItem[], selectedItem?: DeviceGalleryAnalyticsItem) => void;
|
|
878
|
-
declare const getDeviceGallerySelectAnalyticsItem: (content: {
|
|
879
|
-
title?: string;
|
|
880
|
-
promoText?: string;
|
|
881
|
-
}, index: number) => DeviceGalleryAnalyticsItem & {
|
|
882
|
-
affiliation: string;
|
|
883
|
-
coupon: string;
|
|
884
|
-
discount: string;
|
|
885
|
-
index: number;
|
|
886
|
-
location_id: string;
|
|
887
|
-
};
|
|
888
|
-
declare const trackLineEvent: (address: string, eventAction: string, eventValue: string | number, id: string | undefined, type: string) => void;
|
|
889
|
-
declare const trackEvent: (eventAction: string, eventValue: string | number, type: string) => void;
|
|
890
|
-
declare const trackMessageEvent: (description: string, source: string, title: string, type: string, guid?: string, errorID?: string) => void;
|
|
891
|
-
interface ErrorEventInfoInterface {
|
|
892
|
-
message_type: string;
|
|
893
|
-
message_title: string;
|
|
894
|
-
message_source: string;
|
|
895
|
-
message_reason: string;
|
|
896
|
-
}
|
|
897
|
-
declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
|
|
898
|
-
|
|
899
|
-
export { BadgeContainer, ButtonGroup, CartPropConfig, CustomerPropConfig, DeviceGalleryList, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardItem, InternetAndTvCards, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, PromotionTeaser, QuickLinks, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, getDeviceGalleryAnalyticsItem, getDeviceGallerySelectAnalyticsItem, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment, trackComponent, trackDeviceGalleryEligibility, trackErrorEvent, trackEvent, trackGADatalayerEvent, trackLineEvent, trackMessageEvent, trackNewDatalayerEvent };
|
|
900
|
-
export type { CartPropConfigSchema, CreateCustomerGroupFetcherOptions, CustomerProfileResponse, CustomerPropConfigSchema, CustomerSegmentRefreshDetail, CustomerSegmentSyncApi, CustomerSegmentSyncOptions, DeviceGalleryAnalyticsItem, DeviceGalleryItemSchema, DeviceGalleryListContent, DeviceGalleryListProps, ErrorEventInfoInterface, InternetAndTvCardItemSchema, InternetAndTvCardsContent, InternetAndTvCardsProps, LinecheckBasicPropConfigSchema, PromotionTeaserProps, PromotionTeaserSchema, QuickLinkItemSchema, QuickLinksContent, QuickLinksProps, ResolveCustomerGroupOptions, RibbonComponentSchema, RibbonRendererProps, StageTeaserSlideContent, StageTeaserSwiperContent, StageTeaserSwiperProps, StageTeaserV3Content, StageTeaserV3Props };
|
|
844
|
+
export { BadgeContainer, ButtonGroup, CartPropConfig, CustomerPropConfig, DeviceGalleryList, FalconButtonV3, FalconMainNavigation, GlobalPromoRibbon, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCards, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, PromotionTeaser, QuickLinks, RibbonComponent, RibbonRenderer, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent, createCustomerGroupFetcher, createCustomerSegmentSync, customerGroup, dispatchCustomerSegmentRefreshEvent, extractCustomerGroupFromProfile, getCurrentCustomerSegment, hasCachedCustomerSegment, resolveCustomerGroup, setCustomerSegment, subscribeToCustomerSegmentRefresh, syncCustomerSegment };
|
|
845
|
+
export type { CartPropConfigSchema, CreateCustomerGroupFetcherOptions, CustomerProfileResponse, CustomerPropConfigSchema, CustomerSegmentRefreshDetail, CustomerSegmentSyncApi, CustomerSegmentSyncOptions, DeviceGalleryItemSchema, DeviceGalleryListContent, DeviceGalleryListProps, InternetAndTvCardItemSchema, InternetAndTvCardsContent, InternetAndTvCardsProps, LinecheckBasicPropConfigSchema, PromotionTeaserProps, PromotionTeaserSchema, QuickLinkItemSchema, QuickLinksContent, QuickLinksProps, ResolveCustomerGroupOptions, RibbonComponentSchema, RibbonRendererProps, StageTeaserSlideContent, StageTeaserSwiperContent, StageTeaserSwiperProps, StageTeaserV3Content, StageTeaserV3Props };
|