diff --git a/.changeset/pre.json b/.changeset/pre.json index e5629376c..f6ab10ce1 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -30,13 +30,16 @@ "forty-dolls-pull", "great-avocados-knock", "hot-bobcats-share", + "lazy-poets-return", "mean-coats-push", "perfect-houses-join", + "pretty-crabs-repair", "proud-rabbits-add", "rich-countries-taste", "swift-chairs-rhyme", "tame-bags-kneel", "tasty-masks-turn", + "tricky-buses-decide", "two-dolphins-tan", "unlucky-pears-wash", "wet-brooms-tap", diff --git a/packages/fcl-wc/CHANGELOG.md b/packages/fcl-wc/CHANGELOG.md index e5f315f99..7a4891647 100644 --- a/packages/fcl-wc/CHANGELOG.md +++ b/packages/fcl-wc/CHANGELOG.md @@ -1,5 +1,50 @@ # @onflow/fcl-wc +## 1.0.0-alpha.3 + +### Patch Changes + +- [#1411](https://github.com/onflow/fcl-js/pull/1411) [`3c7a1bd6`](https://github.com/onflow/fcl-js/commit/3c7a1bd6686ff41dcd4953b471c54c1256a599a0) Thanks [@gregsantos](https://github.com/gregsantos)! - Adds additional options to `init` for `pairingModalOverride` and `wcRequestHook` + + ```js + import * as fcl from "@onflow/fcl" + import {init} from "@onflow/fcl-wc" + // example using pairing data from wcRequestHook and providing a custom pairing modal + const {FclWcServicePlugin, client} = await init({ + projectId: PROJECT_ID, + metadata: PROJECT_METADATA, + includeBaseWC: false, + wallets: [], + wcRequestHook: (data: WcRequestData) => { + const peerMetadata = data?.pairing?.peerMetadata + setSessionRequestData(peerMetadata) + setShowRequestModal(true) + }, + pairingModalOverride: ( + uri: string = "", + rejectPairingRequest: () => void + ) => { + openCustomPairingModal(uri) + // call rejectPairingRequest() to manually reject pairing request from client + }, + }) + + fcl.pluginRegistry.add(FclWcServicePlugin) + ``` + + ```ts + interface WcRequestData { + type: string // 'session_request' | 'pairing_request' + session: SessionTypes.Struct | undefined // https://www.npmjs.com/package/@walletconnect/types + pairing: PairingTypes.Struct | undefined // https://www.npmjs.com/package/@walletconnect/types + method: string // "flow_authn" | "flow_authz" | "flow_user_sign" + uri: string | undefined + } + ``` + +- Updated dependencies [[`15d77220`](https://github.com/onflow/fcl-js/commit/15d77220a90be66b440129b73ffe889fe20335ab), [`75d06938`](https://github.com/onflow/fcl-js/commit/75d069380c2dbb2040af57ce39a9847fb33a7db4)]: + - @onflow/fcl@1.3.0-alpha.9 + ## 1.0.0-alpha.2 ### Patch Changes diff --git a/packages/fcl-wc/package.json b/packages/fcl-wc/package.json index 8909ab4b3..0e61e3abc 100644 --- a/packages/fcl-wc/package.json +++ b/packages/fcl-wc/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/fcl-wc", - "version": "1.0.0-alpha.2", + "version": "1.0.0-alpha.3", "description": "WalletConnect adapter for FCL", "license": "Apache-2.0", "author": "Dapper Labs ", @@ -50,6 +50,6 @@ "@walletconnect/utils": "^2.0.0-rc.2" }, "peerDependencies": { - "@onflow/fcl": "^1.3.0-alpha.6" + "@onflow/fcl": "^1.3.0-alpha.9" } } diff --git a/packages/fcl/CHANGELOG.md b/packages/fcl/CHANGELOG.md index 8c844d683..8864c3731 100644 --- a/packages/fcl/CHANGELOG.md +++ b/packages/fcl/CHANGELOG.md @@ -1,5 +1,13 @@ # @onflow/fcl +## 1.3.0-alpha.9 + +### Patch Changes + +- [#1409](https://github.com/onflow/fcl-js/pull/1409) [`15d77220`](https://github.com/onflow/fcl-js/commit/15d77220a90be66b440129b73ffe889fe20335ab) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Hotfix to generate template interface id util + +* [#1407](https://github.com/onflow/fcl-js/pull/1407) [`75d06938`](https://github.com/onflow/fcl-js/commit/75d069380c2dbb2040af57ce39a9847fb33a7db4) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Fix circular dep in FCL prep-template-opts + ## 1.3.0-alpha.8 ### Patch Changes diff --git a/packages/fcl/package.json b/packages/fcl/package.json index 108c6b80b..35ae26a6f 100644 --- a/packages/fcl/package.json +++ b/packages/fcl/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/fcl", - "version": "1.3.0-alpha.8", + "version": "1.3.0-alpha.9", "description": "Flow Client Library", "license": "Apache-2.0", "author": "Dapper Labs ",