Files
self/sdk/qrcode/package.json
Kartik Mehta bebaebc872 QR code SDK Redesign (#1536)
* Refactor NFC scanner tests to use a global variable for platform OS, allowing dynamic switching between iOS and Android during tests. This change improves test isolation and avoids hoisting issues with jest.mock.

* Triggering GitHub workflows

* Add status animations and self logos

* Update utilities and styles for statuses

* Remove old LED implementation and occurences

* Update Self QR Code with new design

* Add status banner

* Remove console and use QRcodeSteps in styles

* Add ARIA and use Memo to prevent re-renders

* Add refs for success and error callbacks

* Use ref for self app in qrcode

* Use selfapp ref consistently

* Update connected state animtion

* Skip 'parses Android response' test in nfcScanner

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Javier Cortejoso <javier.cortejoso@gmail.com>
2026-01-21 23:07:24 +10:00

122 lines
3.7 KiB
JSON

{
"name": "@selfxyz/qrcode",
"version": "1.0.17-beta.2",
"repository": {
"type": "git",
"url": "https://github.com/selfxyz/self"
},
"license": "MIT",
"author": "turnoffthiscomputer",
"sideEffects": [
"**/websocket.js",
"**/websocket.cjs",
"**/SelfQRcode.js",
"**/SelfQRcode.cjs",
"**/animations/*.json"
],
"type": "module",
"exports": {
".": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"./components/SelfQRcode": {
"types": "./dist/esm/components/SelfQRcode.d.ts",
"import": "./dist/esm/components/SelfQRcode.js",
"require": "./dist/cjs/components/SelfQRcode.cjs"
},
"./utils/utils": {
"types": "./dist/esm/utils/utils.d.ts",
"import": "./dist/esm/utils/utils.js",
"require": "./dist/cjs/utils/utils.cjs"
},
"./utils/styles": {
"types": "./dist/esm/utils/styles.d.ts",
"import": "./dist/esm/utils/styles.js",
"require": "./dist/cjs/utils/styles.cjs"
},
"./utils/websocket": {
"types": "./dist/esm/utils/websocket.d.ts",
"import": "./dist/esm/utils/websocket.js",
"require": "./dist/cjs/utils/websocket.cjs"
}
},
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup && yarn build:types && yarn postbuild",
"postbuild": "node ./scripts/postBuild.mjs",
"build:deps": "yarn workspaces foreach --from @selfxyz/qrcode --topological-dev --recursive run build",
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
"build:watch": "tsup --watch",
"format": "prettier --write .",
"install-sdk": "yarn workspace focus @selfxyz/qrcode",
"lint": "prettier --check .",
"lint:imports": "eslint . --fix",
"lint:imports:check": "eslint .",
"nice": "yarn format && yarn lint:imports",
"nice:check": "yarn lint && yarn lint:imports:check",
"prepublishOnly": "yarn build",
"publish": "yarn npm publish --access public",
"test": "echo 'no tests found'",
"types": "yarn workspace @selfxyz/sdk-common build && tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@selfxyz/sdk-common": "workspace:^",
"js-sha1": "^0.7.0",
"js-sha256": "^0.11.0",
"js-sha512": "^0.9.0",
"lottie-react": "^2.4.0",
"node-forge": "^1.3.1",
"poseidon-lite": "^0.3.0",
"qrcode.react": "^4.1.0",
"react-spinners": "^0.14.1",
"socket.io-client": "^4.8.1",
"uuid": "^11.1.0"
},
"devDependencies": {
"@size-limit/preset-big-lib": "^11.2.0",
"@types/node": "^22.18.3",
"@types/node-forge": "^1",
"@types/react": ">=18.0.0 <20.0.0",
"@types/react-dom": ">=18.0.0 <20.0.0",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-exports": "^0.9.1",
"mocha": "^10.7.3",
"prettier": "^3.5.3",
"react": ">=18.0.0 <20.0.0",
"react-dom": ">=18.0.0 <20.0.0",
"size-limit": "^11.2.0",
"ts-loader": "^9.5.1",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
"webpack": "^5.95.0"
},
"peerDependencies": {
"lottie-react": "^2.4.0",
"react": ">=18.0.0 <20.0.0",
"react-dom": ">=18.0.0 <20.0.0"
},
"engines": {
"node": ">=22 <23"
},
"publishConfig": {
"access": "public"
}
}