-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PKG -- [fcl-wc] Add notifications prompting user to approve WC reques…
…ts in mobile wallet
- Loading branch information
Showing
32 changed files
with
4,833 additions
and
5,798 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@onflow/fcl-core": patch | ||
"@onflow/fcl-wc": patch | ||
--- | ||
|
||
Improve deeplinking for WC/RPC wallets using non-WC/RPC pre-authz services |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@onflow/fcl-core": minor | ||
"@onflow/fcl-wc": minor | ||
--- | ||
|
||
Fix deep linking issues to mobile wallets |
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
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const {createFilter} = require("@rollup/pluginutils") | ||
|
||
module.exports = function rawPlugin() { | ||
const filter = createFilter(["**/*?raw"]) // Match files ending with ?raw | ||
|
||
const rawList = [] | ||
return { | ||
name: "raw-suffix-plugin", | ||
|
||
// Use `resolveId` to handle the ?raw suffix | ||
resolveId(source, importer) { | ||
if (filter(source)) { | ||
// Strip ?raw, and let other plugins (like node-resolve) handle the resolution | ||
const actualSource = source.replace("?raw", "") | ||
return this.resolve(actualSource, importer, {skipSelf: true}).then( | ||
resolved => { | ||
// Append ?raw back after resolution | ||
if (resolved) { | ||
rawList.push(resolved.id) | ||
return `${resolved.id}` | ||
} | ||
return null | ||
} | ||
) | ||
} | ||
return null // Allow other plugins to resolve other files | ||
}, | ||
transform(code, id) { | ||
// Only transform files that match the filter | ||
if (!rawList.includes(id)) return null | ||
|
||
// Return the raw code directly as a JavaScript object | ||
return { | ||
code: `export default ${JSON.stringify(code)}`, | ||
map: {mappings: ""}, | ||
} | ||
}, | ||
} | ||
} |
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
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,3 +1,17 @@ | ||
{ | ||
"presets": [["@babel/preset-env"], "@babel/preset-typescript"] | ||
"presets": [ | ||
["@babel/preset-env"], | ||
[ | ||
"@babel/preset-typescript", | ||
{ | ||
"allowDeclareFields": true | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{"version": "2023-11", "decoratorsBeforeExport": true} | ||
] | ||
] | ||
} |
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
Oops, something went wrong.