@shopify/app-bridge-types 0.5.2 → 0.5.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/CHANGELOG.md +6 -0
- package/dist/shopify.ts +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#817](https://github.com/Shopify/extensibility/pull/817) [`196fc00a83f058c00a07ff0393cf7c82fd0e8537`](https://github.com/Shopify/extensibility/commit/196fc00a83f058c00a07ff0393cf7c82fd0e8537) Thanks [@olavoasantos](https://github.com/olavoasantos)! - Fix WebVitals onReport payload type
|
|
8
|
+
|
|
3
9
|
## 0.5.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/shopify.ts
CHANGED
|
@@ -1526,7 +1526,7 @@ interface WebVitalsApi {
|
|
|
1526
1526
|
onReport?: (callback: WebVitalsCallback | null) => Promise<void>;
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
|
-
type WebVitalsCallback = (
|
|
1529
|
+
type WebVitalsCallback = (payload: WebVitalsReport) => void | Promise<void>;
|
|
1530
1530
|
|
|
1531
1531
|
/**
|
|
1532
1532
|
* WebVitals API
|
|
@@ -1537,6 +1537,10 @@ interface WebVitalsMetric {
|
|
|
1537
1537
|
value: number;
|
|
1538
1538
|
}
|
|
1539
1539
|
|
|
1540
|
+
interface WebVitalsReport {
|
|
1541
|
+
metrics: WebVitalsMetric[];
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1540
1544
|
enum WeightUnit {
|
|
1541
1545
|
Kilograms = "KILOGRAMS",
|
|
1542
1546
|
Grams = "GRAMS",
|