@pelican-identity/react-native 1.2.9 → 1.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelican-identity/react-native",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "React Native components for Pelican Identity authentication",
5
5
  "main": "./dist/index.js",
6
6
  "react-native": "./src/index.ts",
@@ -22,7 +22,7 @@
22
22
  "react-native-get-random-values": "^1.7.0"
23
23
  },
24
24
  "dependencies": {
25
- "@pelican-identity/auth-core": "1.2.7"
25
+ "@pelican-identity/auth-core": "1.2.8"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^18.2.45",
@@ -1 +0,0 @@
1
- {"version":3,"file":"PelicanAuth.d.ts","sourceRoot":"","sources":["../../src/components/PelicanAuth.tsx"],"names":[],"mappings":"AAOA,OAAO,gCAAgC,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,QAAA,MAAM,WAAW,GAAI,OAAO,kBAAkB,4CA8C7C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ActivityIndicator, Image, Text, TouchableOpacity, View, } from "react-native";
3
- import "react-native-get-random-values";
4
- import { usePelicanAuth } from "../hooks/usePelicanAuth";
5
- const PelicanAuth = (props) => {
6
- const { initialize, loading } = usePelicanAuth(props);
7
- return (_jsx(View, { children: _jsx(TouchableOpacity, { onPress: initialize, disabled: loading, children: props.buttonComponent || (_jsxs(View, { style: [
8
- {
9
- flexDirection: "row",
10
- alignItems: "center",
11
- gap: 10,
12
- paddingHorizontal: 10,
13
- paddingVertical: 10,
14
- borderRadius: 20,
15
- borderWidth: 1,
16
- },
17
- props.style,
18
- ], children: [_jsx(Image, { source: {
19
- uri: "https://res.cloudinary.com/de0jr8mcm/image/upload/v1765904735/pelican/pelican_icon_r9ghqw.png",
20
- }, style: { width: 30, height: 30 } }), _jsx(Text, { style: [
21
- { fontSize: 16, fontWeight: "600" },
22
- props.buttonTextStyle,
23
- ], children: props.authType === "login"
24
- ? "Login with Pelican"
25
- : props.authType === "signup"
26
- ? "Signup with Pelican"
27
- : props.authType === "id-verification"
28
- ? "Verify with Pelican"
29
- : "Authenticate with Pelican" }), loading && _jsx(ActivityIndicator, { color: "#000" })] })) }) }));
30
- };
31
- export default PelicanAuth;
32
- //# sourceMappingURL=PelicanAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PelicanAuth.js","sourceRoot":"","sources":["../../src/components/PelicanAuth.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IACtD,OAAO,CACL,KAAC,IAAI,cACH,KAAC,gBAAgB,IAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,YACrD,KAAK,CAAC,eAAe,IAAI,CACxB,MAAC,IAAI,IACH,KAAK,EAAE;oBACL;wBACE,aAAa,EAAE,KAAK;wBACpB,UAAU,EAAE,QAAQ;wBACpB,GAAG,EAAE,EAAE;wBACP,iBAAiB,EAAE,EAAE;wBACrB,eAAe,EAAE,EAAE;wBACnB,YAAY,EAAE,EAAE;wBAChB,WAAW,EAAE,CAAC;qBACf;oBACD,KAAK,CAAC,KAAK;iBACZ,aAED,KAAC,KAAK,IACJ,MAAM,EAAE;4BACN,GAAG,EAAE,+FAA+F;yBACrG,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,GAChC,EACF,KAAC,IAAI,IACH,KAAK,EAAE;4BACL,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;4BACnC,KAAK,CAAC,eAAe;yBACtB,YAEA,KAAK,CAAC,QAAQ,KAAK,OAAO;4BACzB,CAAC,CAAC,oBAAoB;4BACtB,CAAC,CAAC,KAAK,CAAC,QAAQ,KAAK,QAAQ;gCAC7B,CAAC,CAAC,qBAAqB;gCACvB,CAAC,CAAC,KAAK,CAAC,QAAQ,KAAK,iBAAiB;oCACtC,CAAC,CAAC,qBAAqB;oCACvB,CAAC,CAAC,2BAA2B,GAC1B,EACN,OAAO,IAAI,KAAC,iBAAiB,IAAC,KAAK,EAAE,MAAM,GAAI,IAC3C,CACR,GACgB,GACd,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePelicanAuth.d.ts","sourceRoot":"","sources":["../../src/hooks/usePelicanAuth.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIpD,eAAO,MAAM,cAAc,GAAI,OAAO,kBAAkB;;;CA6IvD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,mBAAmB,6BAA6B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { IdentityResult, PelicanAuthConfig } from "@pelican-identity/auth-core";
2
- import { ViewStyle, StyleProp, TextStyle } from "react-native";
3
- export interface PelicanRNAuthProps extends Omit<PelicanAuthConfig, "continuousMode" | "forceQRCode"> {
4
- appId: string;
5
- onSuccess: (result: IdentityResult) => void;
6
- onError?: (error: Error) => void;
7
- onLoading?: (loading: boolean) => void;
8
- buttonComponent?: React.ReactElement;
9
- callBackUrl: string;
10
- style?: StyleProp<ViewStyle>;
11
- buttonTextStyle?: StyleProp<TextStyle>;
12
- }
13
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,aAAa,CAAC;IAKjE,KAAK,EAAE,MAAM,CAAC;IAOd,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAO5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAOjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAOvC,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAIrC,WAAW,EAAE,MAAM,CAAC;IAKpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAI7B,eAAe,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACxC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":""}