@shopify/app-bridge-react 4.1.0 → 4.1.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 +38 -0
- package/package.json +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 4.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
## 4.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
15
|
+
- [#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
|
|
16
|
+
|
|
17
|
+
## 4.0.0
|
|
18
|
+
|
|
19
|
+
See the [migration guide](https://shopify.dev/docs/api/app-bridge/migration-guide) for more details on how to migrate your app.
|
|
20
|
+
|
|
21
|
+
### Major Changes
|
|
22
|
+
|
|
23
|
+
- Added requirement to add the `app-bridge.js` script tag in your app
|
|
24
|
+
- Added requirement to use `react` and `react-dom` 18 or higher
|
|
25
|
+
- Refactored `Modal` component to accept custom DOM content instead of `src` and `message` props
|
|
26
|
+
- Refactored `NavigationMenu` component (renamed `NavMenu`) to accept `<a>` elements as children instead of `navigationLinks` and `matcher` props
|
|
27
|
+
- Refactored `TitleBar` component to accept `<a>`, `<button>`, and `<section>` elements as children instead of primaryAction, secondaryActions, actionGroups, and breadcrumbs props
|
|
28
|
+
- 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)
|
|
29
|
+
- Removed `Loading` component in favour of the [`shopify.loading` API](https://shopify.dev/docs/api/app-bridge-library/apis/loading)
|
|
30
|
+
- Removed `ResourcePicker` component in favour of the [`shopify.resourcePicker` API](https://shopify.dev/docs/api/app-bridge-library/apis/resource-picker)
|
|
31
|
+
- Removed `Toast` component in favour of the [`shopify.toast` API](https://shopify.dev/docs/api/app-bridge-library/apis/toast)
|
|
32
|
+
- Refactored `useAppBridge` hook to access the `shopify` global variable instead of the `app` instance
|
|
33
|
+
- Removed `useAppBridgeState` hook in favour of the [`shopify.user` API](https://shopify.dev/docs/api/app-bridge-library/apis/user) and others
|
|
34
|
+
- Removed `useAuthenticatedFetch` hook as the `app-bridge.js` script injects automatic authorization into the global `fetch` function
|
|
35
|
+
- 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)
|
|
36
|
+
- Removed `useNavigate` hook in favour of the [browser Navigation API](https://shopify.dev/docs/api/app-bridge-library/apis/navigation)
|
|
37
|
+
- Removed `useNavigationHistory` hook in favour of the [browser History API](https://shopify.dev/docs/api/app-bridge-library/apis/navigation)
|
|
38
|
+
- 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.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React wrappers for the Shopify App Bridge library",
|
|
6
6
|
"private": false,
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
|
-
"dist"
|
|
43
|
+
"dist",
|
|
44
|
+
"CHANGELOG.md"
|
|
44
45
|
],
|
|
45
46
|
"dependencies": {
|
|
46
47
|
"@shopify/app-bridge-types": "^0.0.9"
|