This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate @shopify/react-app-bridge-universal-provider
- Loading branch information
1 parent
3fe224f
commit 6d7a626
Showing
12 changed files
with
10 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,7 @@ | ||
# `@shopify/react-app-bridge-universal-provider` | ||
|
||
[![Build Status](https://github.com/Shopify/quilt/workflows/Node-CI/badge.svg?branch=main)](https://github.com/Shopify/quilt/actions?query=workflow%3ANode-CI) | ||
[![Build Status](https://github.com/Shopify/quilt/workflows/Ruby-CI/badge.svg?branch=main)](https://github.com/Shopify/quilt/actions?query=workflow%3ARuby-CI) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) [![npm version](https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider.svg)](https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider.svg) [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@shopify/react-app-bridge-universal-provider.svg)](https://img.shields.io/bundlephobia/minzip/@shopify/react-app-bridge-universal-provider.svg) | ||
⚠️ DEPRECATED | ||
|
||
A self-serializing/deserializing [`app-bridge-react`](https://github.com/Shopify/app-bridge/tree/master/packages/app-bridge-react) provider that works for isomorphic applications. | ||
This package has been deprecated and should no longer be used. | ||
|
||
## Installation | ||
|
||
```bash | ||
yarn add @shopify/react-app-bridge-universal-provider | ||
``` | ||
|
||
## Usage | ||
|
||
### Props | ||
|
||
The component takes children, `apiKey`, `shopOrigin`, and `forceRedirect`. Similar to `@shopify/app-bridge-react`'s Provider. | ||
|
||
### Example | ||
|
||
```tsx | ||
// App.tsx | ||
|
||
import {AppBridgeUniversalProvider} from '@shopify/react-app-bridge-universal-provider'; | ||
|
||
function App({apiKey, shopOrigin}: {apiKey?: string; shopOrigin?: string}) { | ||
return ( | ||
<AppBridgeUniversalProvider apiKey={apiKey} shopOrigin={shopOrigin}> | ||
{/* rest of the app */} | ||
</AppBridgeUniversalProvider> | ||
); | ||
} | ||
``` | ||
For legacy documentation, see [v3.1.4](https://github.com/Shopify/quilt/blob/%40shopify/react-app-bridge-universal-provider%403.1.4/packages/react-app-bridge-universal-provider/README.md). |
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/react-app-bridge-universal-provider/rollup.config.mjs
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
packages/react-app-bridge-universal-provider/src/AppBridgeUniversalProvider.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
packages/react-app-bridge-universal-provider/src/tests/AppBridgeUniversalProvider.test.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
packages/react-app-bridge-universal-provider/tsconfig.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters