@qr-device-flow/react-native 0.1.0 → 0.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/dist/QRScanner.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/package.json +2 -6
package/dist/QRScanner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRScanner.d.ts","sourceRoot":"","sources":["../src/QRScanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"QRScanner.d.ts","sourceRoot":"","sources":["../src/QRScanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,KAAK,EACL,MAAa,GACd,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAiC5C"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { i as isRequesterInfo, n as DeviceFlowMobileClient, r as isChallengeDetailsResponse, t as DeviceFlowClientError } from "./client-BT1YFMee.js";
|
|
3
2
|
import { useCallback, useMemo, useRef } from "react";
|
|
3
|
+
import { CameraView } from "expo-camera";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
// \0rolldown/runtime.js
|
|
6
|
-
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
7
5
|
// src/use-device-flow.ts
|
|
8
6
|
/**
|
|
9
7
|
* React hook that returns a memoized DeviceFlowMobileClient instance.
|
|
@@ -57,7 +55,6 @@ function QRScanner({ onScan, style, active = true }) {
|
|
|
57
55
|
onScan(data);
|
|
58
56
|
}, [active, onScan]);
|
|
59
57
|
if (!active) return null;
|
|
60
|
-
const { CameraView } = __require("expo-camera");
|
|
61
58
|
return /* @__PURE__ */ jsx(CameraView, {
|
|
62
59
|
style: style ?? { flex: 1 },
|
|
63
60
|
barcodeScannerSettings: { barcodeTypes: ["qr"] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qr-device-flow/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React Native client for QR device flow authentication",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,11 +28,7 @@
|
|
|
28
28
|
"react": ">=18.0.0",
|
|
29
29
|
"react-native": ">=0.72.0"
|
|
30
30
|
},
|
|
31
|
-
"peerDependenciesMeta": {
|
|
32
|
-
"expo-camera": {
|
|
33
|
-
"optional": true
|
|
34
|
-
}
|
|
35
|
-
},
|
|
31
|
+
"peerDependenciesMeta": {},
|
|
36
32
|
"devDependencies": {
|
|
37
33
|
"@types/react": "^19.0.0",
|
|
38
34
|
"react": "^19.0.0",
|