@sunrise-upc/sales-static-components 1.1.1 → 2.0.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/FalconButton/falconButton.d.ts +1 -1
- package/dist/cjs/components/FalconButtonV2/FalconButtonV2.d.ts +3 -0
- package/dist/cjs/components/FalconDescription/FalconDescription.d.ts +2 -1
- package/dist/cjs/components/InternetAndTvCardsBenefits/DetailsModal/DetailsModal.d.ts +3 -0
- package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentExpiredTimer.d.ts +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.d.ts +1 -1
- package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonExpiredTimerRedefined.d.ts +1 -1
- package/dist/cjs/components/RibbonComponent/utils.d.ts +1 -0
- package/dist/cjs/index.js +19 -7
- package/dist/cjs/utils/AnalyticUtils.d.ts +0 -17
- package/dist/cjs/utils/AnalyticsConstants.d.ts +0 -7
- package/dist/esm/components/FalconButton/falconButton.d.ts +1 -1
- package/dist/esm/components/FalconButtonV2/FalconButtonV2.d.ts +3 -0
- package/dist/esm/components/FalconDescription/FalconDescription.d.ts +2 -1
- package/dist/esm/components/InternetAndTvCardsBenefits/DetailsModal/DetailsModal.d.ts +3 -0
- package/dist/esm/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentExpiredTimer.d.ts +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.d.ts +1 -1
- package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonExpiredTimerRedefined.d.ts +1 -1
- package/dist/esm/components/RibbonComponent/utils.d.ts +1 -0
- package/dist/esm/index.js +19 -7
- package/dist/esm/utils/AnalyticUtils.d.ts +0 -17
- package/dist/esm/utils/AnalyticsConstants.d.ts +0 -7
- package/dist/index.d.ts +1 -0
- package/package.json +15 -13
- package/dist/cjs/components/FalconMessage/FalconMessage.d.ts +0 -3
- package/dist/cjs/components/LineCheckLoader/LineCheckLoader.d.ts +0 -3
- package/dist/cjs/components/linecheck/AutoComplete.d.ts +0 -7
- package/dist/cjs/components/linecheck/IndividualLineCheck.d.ts +0 -2
- package/dist/cjs/components/linecheck/LineCheck.types.d.ts +0 -45
- package/dist/cjs/components/linecheck/LineCheckInput.d.ts +0 -3
- package/dist/cjs/components/linecheck/LineCheckOverlay.d.ts +0 -9
- package/dist/cjs/components/linecheck/LineCheckV2.d.ts +0 -5
- package/dist/cjs/components/linecheck/Success.d.ts +0 -18
- package/dist/cjs/components/linecheck/index.d.ts +0 -1
- package/dist/cjs/components/tooltip/ToolTip.d.ts +0 -3
- package/dist/cjs/components/tooltip/index.d.ts +0 -1
- package/dist/cjs/services/APIResourceConstants.d.ts +0 -8
- package/dist/cjs/services/LinecheckBasicPropConfig.d.ts +0 -12
- package/dist/cjs/services/LinecheckService.d.ts +0 -12
- package/dist/cjs/services/api-constants.d.ts +0 -1
- package/dist/cjs/services/index.d.ts +0 -1
- package/dist/cjs/utils/formatField.d.ts +0 -3
- package/dist/esm/components/FalconMessage/FalconMessage.d.ts +0 -3
- package/dist/esm/components/LineCheckLoader/LineCheckLoader.d.ts +0 -3
- package/dist/esm/components/linecheck/AutoComplete.d.ts +0 -7
- package/dist/esm/components/linecheck/IndividualLineCheck.d.ts +0 -2
- package/dist/esm/components/linecheck/LineCheck.types.d.ts +0 -45
- package/dist/esm/components/linecheck/LineCheckInput.d.ts +0 -3
- package/dist/esm/components/linecheck/LineCheckOverlay.d.ts +0 -9
- package/dist/esm/components/linecheck/LineCheckV2.d.ts +0 -5
- package/dist/esm/components/linecheck/Success.d.ts +0 -18
- package/dist/esm/components/linecheck/index.d.ts +0 -1
- package/dist/esm/components/tooltip/ToolTip.d.ts +0 -3
- package/dist/esm/components/tooltip/index.d.ts +0 -1
- package/dist/esm/services/APIResourceConstants.d.ts +0 -8
- package/dist/esm/services/LinecheckBasicPropConfig.d.ts +0 -12
- package/dist/esm/services/LinecheckService.d.ts +0 -12
- package/dist/esm/services/api-constants.d.ts +0 -1
- package/dist/esm/services/index.d.ts +0 -1
- package/dist/esm/utils/formatField.d.ts +0 -3
|
@@ -1,18 +1 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Window {
|
|
3
|
-
appEventData: any;
|
|
4
|
-
dataLayer: any;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
1
|
export declare const trackNewDatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
|
8
|
-
export declare const trackGADatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
|
9
|
-
export declare const trackLineEvent: (address: string, eventAction: string, eventValue: string | number, id: string | undefined, type: string) => void;
|
|
10
|
-
export declare const trackEvent: (eventAction: string, eventValue: string | number, type: string) => void;
|
|
11
|
-
export declare const trackMessageEvent: (description: string, source: string, title: string, type: string, guid?: string, errorID?: string) => void;
|
|
12
|
-
export interface ErrorEventInfoInterface {
|
|
13
|
-
message_type: string;
|
|
14
|
-
message_title: string;
|
|
15
|
-
message_source: string;
|
|
16
|
-
message_reason: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
|
|
@@ -239,10 +239,3 @@ export declare const RIBBON = "Ribbon";
|
|
|
239
239
|
export declare const WINREQUESTCALLBACK = "win_requestacallback";
|
|
240
240
|
export declare const WINCALLBACKBUTTON = "win_callback_button";
|
|
241
241
|
export declare const WINCALLBACKPOPUP = "win_callback_popup";
|
|
242
|
-
export declare const LINETABLERESULT = "lineCheckResult";
|
|
243
|
-
export declare const LINECHECKSTART = "lineCheckStart";
|
|
244
|
-
export declare const CHECKADDRESS = "Check address";
|
|
245
|
-
export declare const LINEADDRESS = "lineTableView Address";
|
|
246
|
-
export declare const CHANGE = "Change";
|
|
247
|
-
export declare const ERRORMESSAGE = "Missing or Invalid Error";
|
|
248
|
-
export declare const ERRORTYPE = "error";
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunrise-upc/sales-static-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Static Reusable Components Library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
37
37
|
"@rollup/plugin-terser": "^0.2.1",
|
|
38
38
|
"@rollup/plugin-typescript": "^10.0.1",
|
|
39
|
-
"@sunrise-upc/ajax-lib": "
|
|
40
|
-
"@types/node": "^18.
|
|
41
|
-
"@types/react": "^
|
|
42
|
-
"@types/react-dom": "^
|
|
43
|
-
"postcss": "
|
|
44
|
-
"react": "^
|
|
45
|
-
"react-dom": "^
|
|
39
|
+
"@sunrise-upc/ajax-lib": "1.0.1",
|
|
40
|
+
"@types/node": "^16.18.11",
|
|
41
|
+
"@types/react": "^18.0.26",
|
|
42
|
+
"@types/react-dom": "^18.0.10",
|
|
43
|
+
"postcss": "8.4.21",
|
|
44
|
+
"react": "^17.0.2",
|
|
45
|
+
"react-dom": "^17.0.2",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"rollup": "^3.9.1",
|
|
48
48
|
"rollup-plugin-dts": "^5.1.0",
|
|
@@ -53,18 +53,20 @@
|
|
|
53
53
|
"semver": "^7.3.8",
|
|
54
54
|
"tslib": "^2.4.1",
|
|
55
55
|
"typescript": "^4.9.4",
|
|
56
|
-
"storyblok-
|
|
56
|
+
"storyblok-react": "0.1.2",
|
|
57
|
+
"storyblok-js-client": "^4.1.3",
|
|
57
58
|
"react-bootstrap": "2.0.0-beta.4",
|
|
58
59
|
"@types/js-cookie": "^3.0.2",
|
|
59
|
-
"cookies-next": "^
|
|
60
|
+
"cookies-next": "^2.1.1"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
63
|
+
"cookies-next": "^2.1.1",
|
|
64
|
+
"react": "^17.0.2",
|
|
65
|
+
"react-dom": "^17.0.2",
|
|
62
66
|
"storyblok-rich-text-react-renderer-ts": "^3.1.3"
|
|
63
67
|
},
|
|
64
68
|
"dependencies": {
|
|
65
69
|
"react-multi-carousel": "^2.8.4",
|
|
66
|
-
"js-cookie": "^3.0.1"
|
|
67
|
-
"react-loading-skeleton": "^3.5.0",
|
|
68
|
-
"uuid": "^11.0.5"
|
|
70
|
+
"js-cookie": "^3.0.1"
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface LineCheckProps {
|
|
2
|
-
checkServiceText?: string;
|
|
3
|
-
showModemTitle: string;
|
|
4
|
-
modemTitle: string;
|
|
5
|
-
component: 'linecheck';
|
|
6
|
-
shouldAutomateLineCheck: boolean;
|
|
7
|
-
regexp: string;
|
|
8
|
-
uploadText: string;
|
|
9
|
-
downloadText: string;
|
|
10
|
-
title: string;
|
|
11
|
-
placeholder: string;
|
|
12
|
-
buttonvalue: string;
|
|
13
|
-
errorMsg: string;
|
|
14
|
-
noAddressFoundErrorMsg: string;
|
|
15
|
-
changeText?: string;
|
|
16
|
-
requiredFieldText: string;
|
|
17
|
-
changeTextMob?: string;
|
|
18
|
-
linecheckIcons?: any;
|
|
19
|
-
speedTooltip: string;
|
|
20
|
-
dataText: string;
|
|
21
|
-
speedUpgradeToolTip: string;
|
|
22
|
-
upgradeText: string;
|
|
23
|
-
reference?: any;
|
|
24
|
-
maximumSpeedText?: string;
|
|
25
|
-
}
|
|
26
|
-
interface ShippingAddressProps {
|
|
27
|
-
address: string;
|
|
28
|
-
address2: string;
|
|
29
|
-
building: string;
|
|
30
|
-
city: string;
|
|
31
|
-
country: string;
|
|
32
|
-
countryCode: string;
|
|
33
|
-
floor: string;
|
|
34
|
-
room: string;
|
|
35
|
-
zipcode: string;
|
|
36
|
-
}
|
|
37
|
-
export interface LineCheckSchema {
|
|
38
|
-
content: LineCheckProps;
|
|
39
|
-
metadata?: any;
|
|
40
|
-
shippingAddress?: ShippingAddressProps;
|
|
41
|
-
onSuccess: () => void;
|
|
42
|
-
onModemDetailsClick?: () => any;
|
|
43
|
-
fromLinetable?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
export interface LineCheckOverlaySchema {
|
|
3
|
-
props: any;
|
|
4
|
-
setAddressNotFilled: any;
|
|
5
|
-
setIndivialOpen: any;
|
|
6
|
-
indivialOpen: any;
|
|
7
|
-
}
|
|
8
|
-
declare const LineCheckOverlay: ({ props, setAddressNotFilled, setIndivialOpen, indivialOpen }: LineCheckOverlaySchema) => JSX.Element;
|
|
9
|
-
export default LineCheckOverlay;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
import "./LineCheck.css";
|
|
3
|
-
import { LineCheckProps } from "./LineCheck.types";
|
|
4
|
-
interface successInterface {
|
|
5
|
-
content: string | JSX.Element;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
uploadDownload: MaxDownloadUploadSpeed | Partial<MaxDownloadUploadSpeed>;
|
|
8
|
-
textContent: LineCheckProps;
|
|
9
|
-
eligibleBundle: any;
|
|
10
|
-
tooltipcontent: string | JSX.Element;
|
|
11
|
-
onModemDetailsClick?: () => any;
|
|
12
|
-
}
|
|
13
|
-
interface MaxDownloadUploadSpeed {
|
|
14
|
-
maxBandwidthDown: number;
|
|
15
|
-
maxBandwidthUp: number;
|
|
16
|
-
}
|
|
17
|
-
declare const Success: ({ content, uploadDownload, textContent, eligibleBundle, tooltipcontent, onModemDetailsClick }: successInterface) => JSX.Element;
|
|
18
|
-
export default Success;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LineCheckV2';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ToolTip';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface LinecheckBasicPropConfigSchema {
|
|
2
|
-
baseURL: string | '';
|
|
3
|
-
}
|
|
4
|
-
export declare class LinecheckBasicPropConfig {
|
|
5
|
-
private static instance;
|
|
6
|
-
config: LinecheckBasicPropConfigSchema;
|
|
7
|
-
private constructor();
|
|
8
|
-
getConfig: () => LinecheckBasicPropConfigSchema;
|
|
9
|
-
getBaseUrl: () => string;
|
|
10
|
-
static getInstance: () => LinecheckBasicPropConfig;
|
|
11
|
-
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const fetchAddress: (address: any, isValid: boolean) => Promise<any>;
|
|
2
|
-
export declare const getLineCheckService: (selectedAdd: any) => unknown;
|
|
3
|
-
export declare const fetchLineCheck: (payload: any) => Promise<{
|
|
4
|
-
corelationaId: any;
|
|
5
|
-
lineCheckResponse: any;
|
|
6
|
-
eligibleBundle: any;
|
|
7
|
-
maxUploadDownloadSpeed: any;
|
|
8
|
-
configEligibleBundle: string[];
|
|
9
|
-
plannedUpgrade: any;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const getCustomerData: () => string | Promise<any>;
|
|
12
|
-
export declare const automateLineCheck: (setFetchingLineCheck: any, setlinecheckResponse: any, onSuccess: () => void, shippingAddress: any) => Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const API_BASE_BASEPOINT: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LinecheckBasicPropConfig';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface LineCheckProps {
|
|
2
|
-
checkServiceText?: string;
|
|
3
|
-
showModemTitle: string;
|
|
4
|
-
modemTitle: string;
|
|
5
|
-
component: 'linecheck';
|
|
6
|
-
shouldAutomateLineCheck: boolean;
|
|
7
|
-
regexp: string;
|
|
8
|
-
uploadText: string;
|
|
9
|
-
downloadText: string;
|
|
10
|
-
title: string;
|
|
11
|
-
placeholder: string;
|
|
12
|
-
buttonvalue: string;
|
|
13
|
-
errorMsg: string;
|
|
14
|
-
noAddressFoundErrorMsg: string;
|
|
15
|
-
changeText?: string;
|
|
16
|
-
requiredFieldText: string;
|
|
17
|
-
changeTextMob?: string;
|
|
18
|
-
linecheckIcons?: any;
|
|
19
|
-
speedTooltip: string;
|
|
20
|
-
dataText: string;
|
|
21
|
-
speedUpgradeToolTip: string;
|
|
22
|
-
upgradeText: string;
|
|
23
|
-
reference?: any;
|
|
24
|
-
maximumSpeedText?: string;
|
|
25
|
-
}
|
|
26
|
-
interface ShippingAddressProps {
|
|
27
|
-
address: string;
|
|
28
|
-
address2: string;
|
|
29
|
-
building: string;
|
|
30
|
-
city: string;
|
|
31
|
-
country: string;
|
|
32
|
-
countryCode: string;
|
|
33
|
-
floor: string;
|
|
34
|
-
room: string;
|
|
35
|
-
zipcode: string;
|
|
36
|
-
}
|
|
37
|
-
export interface LineCheckSchema {
|
|
38
|
-
content: LineCheckProps;
|
|
39
|
-
metadata?: any;
|
|
40
|
-
shippingAddress?: ShippingAddressProps;
|
|
41
|
-
onSuccess: () => void;
|
|
42
|
-
onModemDetailsClick?: () => any;
|
|
43
|
-
fromLinetable?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
export interface LineCheckOverlaySchema {
|
|
3
|
-
props: any;
|
|
4
|
-
setAddressNotFilled: any;
|
|
5
|
-
setIndivialOpen: any;
|
|
6
|
-
indivialOpen: any;
|
|
7
|
-
}
|
|
8
|
-
declare const LineCheckOverlay: ({ props, setAddressNotFilled, setIndivialOpen, indivialOpen }: LineCheckOverlaySchema) => JSX.Element;
|
|
9
|
-
export default LineCheckOverlay;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
import "./LineCheck.css";
|
|
3
|
-
import { LineCheckProps } from "./LineCheck.types";
|
|
4
|
-
interface successInterface {
|
|
5
|
-
content: string | JSX.Element;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
uploadDownload: MaxDownloadUploadSpeed | Partial<MaxDownloadUploadSpeed>;
|
|
8
|
-
textContent: LineCheckProps;
|
|
9
|
-
eligibleBundle: any;
|
|
10
|
-
tooltipcontent: string | JSX.Element;
|
|
11
|
-
onModemDetailsClick?: () => any;
|
|
12
|
-
}
|
|
13
|
-
interface MaxDownloadUploadSpeed {
|
|
14
|
-
maxBandwidthDown: number;
|
|
15
|
-
maxBandwidthUp: number;
|
|
16
|
-
}
|
|
17
|
-
declare const Success: ({ content, uploadDownload, textContent, eligibleBundle, tooltipcontent, onModemDetailsClick }: successInterface) => JSX.Element;
|
|
18
|
-
export default Success;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LineCheckV2';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ToolTip';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface LinecheckBasicPropConfigSchema {
|
|
2
|
-
baseURL: string | '';
|
|
3
|
-
}
|
|
4
|
-
export declare class LinecheckBasicPropConfig {
|
|
5
|
-
private static instance;
|
|
6
|
-
config: LinecheckBasicPropConfigSchema;
|
|
7
|
-
private constructor();
|
|
8
|
-
getConfig: () => LinecheckBasicPropConfigSchema;
|
|
9
|
-
getBaseUrl: () => string;
|
|
10
|
-
static getInstance: () => LinecheckBasicPropConfig;
|
|
11
|
-
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const fetchAddress: (address: any, isValid: boolean) => Promise<any>;
|
|
2
|
-
export declare const getLineCheckService: (selectedAdd: any) => unknown;
|
|
3
|
-
export declare const fetchLineCheck: (payload: any) => Promise<{
|
|
4
|
-
corelationaId: any;
|
|
5
|
-
lineCheckResponse: any;
|
|
6
|
-
eligibleBundle: any;
|
|
7
|
-
maxUploadDownloadSpeed: any;
|
|
8
|
-
configEligibleBundle: string[];
|
|
9
|
-
plannedUpgrade: any;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const getCustomerData: () => string | Promise<any>;
|
|
12
|
-
export declare const automateLineCheck: (setFetchingLineCheck: any, setlinecheckResponse: any, onSuccess: () => void, shippingAddress: any) => Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const API_BASE_BASEPOINT: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LinecheckBasicPropConfig';
|