@shopify/app-bridge-types 0.5.1 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 0.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#810](https://github.com/Shopify/extensibility/pull/810) [`e41a88088b48ed9fa5f83a286a07d423b21d59f7`](https://github.com/Shopify/extensibility/commit/e41a88088b48ed9fa5f83a286a07d423b21d59f7) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Add `@standard-schema/spec` as a dependency
14
+
3
15
  ## 0.5.1
4
16
 
5
17
  ### 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 = (metrics: WebVitalsMetric) => void | Promise<void>;
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/app-bridge-types",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Companion types library for the Shopify App Bridge script",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -18,10 +18,12 @@
18
18
  "default": "./dist/index.js"
19
19
  },
20
20
  "devDependencies": {
21
- "@standard-schema/spec": "^1.0.0",
22
21
  "@types/node": "^22.9.0",
23
22
  "cjyes": "^0.3.1"
24
23
  },
24
+ "dependencies": {
25
+ "@standard-schema/spec": "^1.0.0"
26
+ },
25
27
  "files": [
26
28
  "dist",
27
29
  "CHANGELOG.md"