@getspot/spot-widget-vue2 2.1.1 → 3.0.2

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @getspot/spot-widget-vue2
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f3c5aed: fix rerender errors
8
+ - Updated dependencies [f3c5aed]
9
+ - @getspot/spot-widget@3.0.2
10
+
11
+ ## 3.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - a7c82e3: Update to possible values of QuoteUpdates; Also, handle the yesOptionText replacement for spotPriceWithFees
16
+ - Updated dependencies [a7c82e3]
17
+ - @getspot/spot-widget@3.0.1
18
+
19
+ ## 3.0.0
20
+
21
+ ### Major Changes
22
+
23
+ - c1cce5f: Add ability to override displayed price in onQuoteRetrieved callback
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [c1cce5f]
28
+ - @getspot/spot-widget@3.0.0
29
+
3
30
  ## 2.1.1
4
31
 
5
32
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import Vue from 'vue';
2
- import type { SpotWidgetOptions, SelectionData, Quote } from '@getspot/spot-widget';
2
+ import type { SpotWidgetOptions, SelectionData, Quote, QuoteUpdates } from '@getspot/spot-widget';
3
3
 
4
4
  export interface Vue2SpotWidgetProps extends Omit<SpotWidgetOptions, 'location' | 'callbacks'> {
5
- onQuoteRetrieved?: (quote: Quote) => void;
5
+ onQuoteRetrieved?: (quote: Quote) => QuoteUpdates | void;
6
6
  onOptIn?: (data: SelectionData) => void;
7
7
  onOptOut?: (data: SelectionData) => void;
8
8
  onError?: (error: { message: string; status?: number; responseBody?: any }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getspot/spot-widget-vue2",
3
- "version": "2.1.1",
3
+ "version": "3.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,7 +13,7 @@
13
13
  "CHANGELOG.md"
14
14
  ],
15
15
  "dependencies": {
16
- "@getspot/spot-widget": "2.1.1"
16
+ "@getspot/spot-widget": "3.0.2"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^2.6.0"