@shopify/app-bridge-react 4.1.0 → 4.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/package.json +4 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ ## 4.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#69](https://github.com/Shopify/extensibility-client/pull/69) [`153c3dd`](https://github.com/Shopify/extensibility-client/commit/153c3dd5419db7d518bb5587fa72a606815c44c7) Thanks [@henrytao-me](https://github.com/henrytao-me)! - Bump app-brige-types
8
+
9
+ ## 4.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#66](https://github.com/Shopify/extensibility-client/pull/66) [`1678fe8`](https://github.com/Shopify/extensibility-client/commit/1678fe89ca019d81a4600feee7fff1116c2bcef2) Thanks [@charlesdobson](https://github.com/charlesdobson)! - expose CHANGELOG.md
14
+
15
+ ## 4.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#62](https://github.com/Shopify/extensibility-client/pull/62) [`8541115`](https://github.com/Shopify/extensibility-client/commit/8541115f0348e697b5d69f5a535c9c448b9972da) Thanks [@henrytao-me](https://github.com/henrytao-me)! - add src prop to Modal component to support iframe modals
20
+
21
+ - [#64](https://github.com/Shopify/extensibility-client/pull/64) [`b1fbf2b`](https://github.com/Shopify/extensibility-client/commit/b1fbf2bc44c65ae14b6ad80a9004120ff00f34be) Thanks [@henrytao-me](https://github.com/henrytao-me)! - add SaveBar component to declaratively control the contextual save bar
22
+
23
+ ## 4.0.0
24
+
25
+ See the [migration guide](https://shopify.dev/docs/api/app-bridge/migration-guide) for more details on how to migrate your app.
26
+
27
+ ### Major Changes
28
+
29
+ - Added requirement to add the `app-bridge.js` script tag in your app
30
+ - Added requirement to use `react` and `react-dom` 18 or higher
31
+ - Refactored `Modal` component to accept custom DOM content instead of `src` and `message` props
32
+ - Refactored `NavigationMenu` component (renamed `NavMenu`) to accept `<a>` elements as children instead of `navigationLinks` and `matcher` props
33
+ - Refactored `TitleBar` component to accept `<a>`, `<button>`, and `<section>` elements as children instead of primaryAction, secondaryActions, actionGroups, and breadcrumbs props
34
+ - Removed `ContextualSaveBar` component in favour of it being [automatically configured through `form` elements](https://shopify.dev/docs/api/app-bridge-library/apis/contextual-save-bar)
35
+ - Removed `Loading` component in favour of the [`shopify.loading` API](https://shopify.dev/docs/api/app-bridge-library/apis/loading)
36
+ - Removed `ResourcePicker` component in favour of the [`shopify.resourcePicker` API](https://shopify.dev/docs/api/app-bridge-library/apis/resource-picker)
37
+ - Removed `Toast` component in favour of the [`shopify.toast` API](https://shopify.dev/docs/api/app-bridge-library/apis/toast)
38
+ - Refactored `useAppBridge` hook to access the `shopify` global variable instead of the `app` instance
39
+ - Removed `useAppBridgeState` hook in favour of the [`shopify.user` API](https://shopify.dev/docs/api/app-bridge-library/apis/user) and others
40
+ - Removed `useAuthenticatedFetch` hook as the `app-bridge.js` script injects automatic authorization into the global `fetch` function
41
+ - Removed `useContextualSaveBar` hook in favour of it being [automatically configured through `form` elements](https://shopify.dev/docs/api/app-bridge-library/apis/contextual-save-bar)
42
+ - Removed `useNavigate` hook in favour of the [browser Navigation API](https://shopify.dev/docs/api/app-bridge-library/apis/navigation)
43
+ - Removed `useNavigationHistory` hook in favour of the [browser History API](https://shopify.dev/docs/api/app-bridge-library/apis/navigation)
44
+ - Removed `useToast` hook in favour of the [`shopify.toast` API](https://shopify.dev/docs/api/app-bridge-library/apis/toast)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/app-bridge-react",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "license": "MIT",
5
5
  "description": "React wrappers for the Shopify App Bridge library",
6
6
  "private": false,
@@ -40,10 +40,11 @@
40
40
  }
41
41
  },
42
42
  "files": [
43
- "dist"
43
+ "dist",
44
+ "CHANGELOG.md"
44
45
  ],
45
46
  "dependencies": {
46
- "@shopify/app-bridge-types": "^0.0.9"
47
+ "@shopify/app-bridge-types": "^0.0.10"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@rollup/plugin-commonjs": "^25.0.7",