@getspot/spot-widget 4.3.1 → 4.4.1
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/CHANGELOG.md +14 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +216 -192
- package/dist/index.umd.js +4 -4
- package/dist/ui.d.ts +2 -2
- package/dist/ui.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.4.1](https://gitlab.com/getspot/spot-widget/compare/@getspot/spot-widget@4.4.0...@getspot/spot-widget@4.4.1) (2026-07-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **core:** prevent duplicate widget render when unmounted mid-init ([5e16427](https://gitlab.com/getspot/spot-widget/commit/5e1642796b42b8fb6b7937616ba74454e63e3eac))
|
|
7
|
+
|
|
8
|
+
# [4.4.0](https://gitlab.com/getspot/spot-widget/compare/@getspot/spot-widget@4.3.1...@getspot/spot-widget@4.4.0) (2026-07-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **core:** explain lack of coverage when non-US resident is selected [ST-5295] ([333435d](https://gitlab.com/getspot/spot-widget/commit/333435d9b760d70351551f559068b7643cbbbbce))
|
|
14
|
+
|
|
1
15
|
## [4.3.1](https://gitlab.com/getspot/spot-widget/compare/@getspot/spot-widget@4.3.0...@getspot/spot-widget@4.3.1) (2026-06-29)
|
|
2
16
|
|
|
3
17
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const NON_US_RESIDENT_VALUE = "non-us-resident";
|
|
2
|
+
export declare const NON_US_RESIDENT_ERROR_TEXT = "Unfortunately, we are currently unable to offer coverage or process claims for non-US residents.";
|
|
2
3
|
export declare const US_STATES: {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,eAAO,MAAM,SAAS,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAyDvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,eAAO,MAAM,0BAA0B,qGAC6D,CAAC;AAErG,eAAO,MAAM,SAAS,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAyDvD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare class SpotWidget {
|
|
|
11
11
|
private _stateSelectEl?;
|
|
12
12
|
private _onResize;
|
|
13
13
|
private _resizeObserver?;
|
|
14
|
+
private _destroyed;
|
|
14
15
|
constructor(options?: Partial<SpotWidgetOptions>);
|
|
15
16
|
private _init;
|
|
16
17
|
private _renderWidget;
|
|
@@ -24,6 +25,7 @@ declare class SpotWidget {
|
|
|
24
25
|
private _validState;
|
|
25
26
|
private _isQuotingAvailable;
|
|
26
27
|
private _setRadiosDisabled;
|
|
28
|
+
private _setNonUsResidentError;
|
|
27
29
|
private _setupStateDropdownListener;
|
|
28
30
|
private _setupOptionListeners;
|
|
29
31
|
showSelectionError(): void;
|
|
@@ -32,6 +34,7 @@ declare class SpotWidget {
|
|
|
32
34
|
updateQuote(newQuoteRequestData: SpotWidgetOptions["quoteRequestData"]): Promise<boolean>;
|
|
33
35
|
getSelection(): SelectionData | null;
|
|
34
36
|
destroy(): void;
|
|
37
|
+
private _teardownDom;
|
|
35
38
|
}
|
|
36
39
|
export default SpotWidget;
|
|
37
40
|
export { SelectionEnum } from "./types.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAKnB,MAAM,YAAY,CAAC;AAkBpB,cAAM,UAAU;IACd,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,KAAK,CAAC,CAAQ;IACtB,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,eAAe,CAAC,CAAiB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAKnB,MAAM,YAAY,CAAC;AAkBpB,cAAM,UAAU;IACd,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,KAAK,CAAC,CAAQ;IACtB,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CA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