@wayke-se/ecom-web 0.0.8-beta.2 → 0.0.8-beta.3
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/README.md +0 -2
- package/dist/index.d.ts +24 -7
- package/dist/index.js +235 -238
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +213 -216
- package/dist/index.mjs.map +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -61,7 +61,6 @@ The associated css is injected into head by default once a `new WaykeEcomWeb(...
|
|
|
61
61
|
```js
|
|
62
62
|
new WaykeEcomWeb({
|
|
63
63
|
id: "36364808-671a-49da-b69a-5e0fc4cfe83e",
|
|
64
|
-
useBankId: true,
|
|
65
64
|
rootId: "random-element-id",
|
|
66
65
|
vehicle: {
|
|
67
66
|
title: 'Lorem ipsum',
|
|
@@ -96,7 +95,6 @@ Instance contains two public methods, `.start()` and `.close()`.
|
|
|
96
95
|
|
|
97
96
|
|
|
98
97
|
### Optional
|
|
99
|
-
* `useBankId` Enable Swedish BankID.
|
|
100
98
|
* `rootId` Choose the element, id, that WakeEcomWeb should append to, by default it will be appended to the body.
|
|
101
99
|
* `vehicle` Used to override specific vehicle data properties provided from Wayke.
|
|
102
100
|
* `ecomSdkConfig.bankIdThumbprint` By default Wayke's BankId certificate is used to verify customer identity. There is an optional configuration property `bankIdThumbprint` which allows for dealers to use their own BankId certificate. If the certificate's thumbprint is set that certificate will be used instead, given that it is correctly setup in the Dealer back-office.
|
package/dist/index.d.ts
CHANGED
|
@@ -354,7 +354,6 @@ declare module '@wayke-se/ecom-web/src/App' {
|
|
|
354
354
|
id: string;
|
|
355
355
|
vehicle?: Vehicle;
|
|
356
356
|
ecomSdkConfig: EcomSdkConfig;
|
|
357
|
-
useBankid?: boolean;
|
|
358
357
|
onEvent?: (view: EcomView, event: EcomEvent, currentStep?: EcomStep) => void;
|
|
359
358
|
}
|
|
360
359
|
class App {
|
|
@@ -702,6 +701,21 @@ declare module '@wayke-se/ecom-web/src/Components/Disclaimer/DisclaimerPadlock'
|
|
|
702
701
|
}
|
|
703
702
|
export default DisclaimerPadlock;
|
|
704
703
|
|
|
704
|
+
}
|
|
705
|
+
declare module '@wayke-se/ecom-web/src/Components/ErrorAlert/index' {
|
|
706
|
+
import HtmlNode from '@wayke-se/ecom-web/src/Components/Extension/HtmlNode';
|
|
707
|
+
interface ErrorAlertProps {
|
|
708
|
+
error?: string | Element;
|
|
709
|
+
}
|
|
710
|
+
class ErrorAlert extends HtmlNode {
|
|
711
|
+
private readonly props;
|
|
712
|
+
private error?;
|
|
713
|
+
constructor(element: HTMLElement | null, props: ErrorAlertProps);
|
|
714
|
+
update(error?: string | Element): void;
|
|
715
|
+
render(): void;
|
|
716
|
+
}
|
|
717
|
+
export default ErrorAlert;
|
|
718
|
+
|
|
705
719
|
}
|
|
706
720
|
declare module '@wayke-se/ecom-web/src/Components/Extension/HtmlNode' {
|
|
707
721
|
interface Attribute {
|
|
@@ -924,13 +938,17 @@ declare module '@wayke-se/ecom-web/src/Components/Input/InputRange' {
|
|
|
924
938
|
onClickInformation?: (visible: boolean) => void;
|
|
925
939
|
}
|
|
926
940
|
class InputRange extends HtmlNode {
|
|
927
|
-
private props;
|
|
941
|
+
private readonly props;
|
|
928
942
|
private value;
|
|
929
943
|
private inputFieldValue;
|
|
944
|
+
private min;
|
|
945
|
+
private max;
|
|
930
946
|
private rangeSpan;
|
|
947
|
+
private isDisabled?;
|
|
931
948
|
private currentValueInPercentage;
|
|
932
949
|
private contexts;
|
|
933
950
|
constructor(element: HTMLDivElement | null, props: InputRangeProps);
|
|
951
|
+
update(value: number, min: number, max: number): void;
|
|
934
952
|
disabled(disabled: boolean): void;
|
|
935
953
|
onOpenInformation(): void;
|
|
936
954
|
onChange(e: Event): void;
|
|
@@ -2301,9 +2319,8 @@ declare module '@wayke-se/ecom-web/src/Views/Main/Financial/Loan' {
|
|
|
2301
2319
|
class Loan extends HtmlNode {
|
|
2302
2320
|
private readonly props;
|
|
2303
2321
|
private paymentState;
|
|
2322
|
+
private previousState;
|
|
2304
2323
|
private paymentLookupResponse;
|
|
2305
|
-
private paymentRequestFailed?;
|
|
2306
|
-
private lastEditedField;
|
|
2307
2324
|
private contexts;
|
|
2308
2325
|
constructor(element: HTMLDivElement, props: LoanProps);
|
|
2309
2326
|
private payment;
|
|
@@ -2448,7 +2465,6 @@ declare module '@wayke-se/ecom-web/src/Views/Main/Financial/index' {
|
|
|
2448
2465
|
class Financial extends HtmlNode {
|
|
2449
2466
|
private readonly props;
|
|
2450
2467
|
private paymentType?;
|
|
2451
|
-
private paymentLookupResponse?;
|
|
2452
2468
|
constructor(element: HTMLDivElement, props: FinancialProps);
|
|
2453
2469
|
private onChange;
|
|
2454
2470
|
private onProceed;
|
|
@@ -2916,14 +2932,12 @@ declare module '@wayke-se/ecom-web/src/devConfig' {
|
|
|
2916
2932
|
export const devConfig: {
|
|
2917
2933
|
BANKID_TRADE_IN_HOME_DELIVERY: {
|
|
2918
2934
|
id: string;
|
|
2919
|
-
useBankid: boolean;
|
|
2920
2935
|
};
|
|
2921
2936
|
DEFAULT: {
|
|
2922
2937
|
id: string;
|
|
2923
2938
|
};
|
|
2924
2939
|
MULTIPLE_FINANCIAL: {
|
|
2925
2940
|
id: string;
|
|
2926
|
-
useBankid: boolean;
|
|
2927
2941
|
};
|
|
2928
2942
|
INSURANCE: {
|
|
2929
2943
|
id: string;
|
|
@@ -2946,6 +2960,9 @@ declare module '@wayke-se/ecom-web/src/devConfig' {
|
|
|
2946
2960
|
TRYGG_HANSA: {
|
|
2947
2961
|
id: string;
|
|
2948
2962
|
};
|
|
2963
|
+
TEST: {
|
|
2964
|
+
id: string;
|
|
2965
|
+
};
|
|
2949
2966
|
};
|
|
2950
2967
|
|
|
2951
2968
|
}
|