@clerk/expo 3.0.0-snapshot.v20251217194100 → 3.0.0-snapshot.v20251218183643
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/errorThrower.d.ts +1 -1
- package/dist/hooks/useSignInWithGoogle.types.d.ts +0 -1
- package/dist/hooks/useSignInWithGoogle.types.d.ts.map +1 -1
- package/dist/hooks/useSignInWithGoogle.types.js.map +1 -1
- package/dist/plugin/withClerkExpo.js +12 -2
- package/dist/plugin/withClerkExpo.js.map +1 -1
- package/dist/provider/ClerkProvider.js +1 -1
- package/dist/utils/errors.d.ts +1 -1
- package/package.json +8 -7
package/dist/errorThrower.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignInWithGoogle.types.d.ts","sourceRoot":"","sources":["../../src/hooks/useSignInWithGoogle.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"useSignInWithGoogle.types.d.ts","sourceRoot":"","sources":["../../src/hooks/useSignInWithGoogle.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErF,MAAM,MAAM,mCAAmC,GAAG;IAChD,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useSignInWithGoogle.types.ts"],"sourcesContent":["import type { SetActive, SignInResource, SignUpResource } from '@clerk/shared/types';\n\nexport type
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useSignInWithGoogle.types.ts"],"sourcesContent":["import type { SetActive, SignInResource, SignUpResource } from '@clerk/shared/types';\n\nexport type StartGoogleAuthenticationFlowParams = {\n unsafeMetadata?: SignUpUnsafeMetadata;\n};\n\nexport type StartGoogleAuthenticationFlowReturnType = {\n createdSessionId: string | null;\n setActive?: SetActive;\n signIn?: SignInResource;\n signUp?: SignUpResource;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var withClerkExpo_exports = {};
|
|
20
30
|
__export(withClerkExpo_exports, {
|
|
@@ -22,7 +32,7 @@ __export(withClerkExpo_exports, {
|
|
|
22
32
|
});
|
|
23
33
|
module.exports = __toCommonJS(withClerkExpo_exports);
|
|
24
34
|
var import_config_plugins = require("@expo/config-plugins");
|
|
25
|
-
|
|
35
|
+
var import_package = __toESM(require("../../package.json"));
|
|
26
36
|
const withClerkGoogleSignIn = (config) => {
|
|
27
37
|
var _a;
|
|
28
38
|
const iosUrlScheme = process.env.EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME || ((_a = config.extra) == null ? void 0 : _a.EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME);
|
|
@@ -47,5 +57,5 @@ const withClerkGoogleSignIn = (config) => {
|
|
|
47
57
|
return modConfig;
|
|
48
58
|
});
|
|
49
59
|
};
|
|
50
|
-
var withClerkExpo_default = (0, import_config_plugins.createRunOncePlugin)(withClerkGoogleSignIn,
|
|
60
|
+
var withClerkExpo_default = (0, import_config_plugins.createRunOncePlugin)(withClerkGoogleSignIn, import_package.default.name, import_package.default.version);
|
|
51
61
|
//# sourceMappingURL=withClerkExpo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugin/withClerkExpo.ts"],"sourcesContent":["import { type ConfigPlugin, createRunOncePlugin, withInfoPlist } from '@expo/config-plugins';\n\
|
|
1
|
+
{"version":3,"sources":["../../src/plugin/withClerkExpo.ts"],"sourcesContent":["import { type ConfigPlugin, createRunOncePlugin, withInfoPlist } from '@expo/config-plugins';\n\nimport pkg from '../../package.json';\n\n/**\n * Expo config plugin for @clerk/expo.\n *\n * This plugin configures the iOS URL scheme required for Google Sign-In.\n * The native Android module is automatically linked via expo-module.config.json.\n */\nconst withClerkGoogleSignIn: ConfigPlugin = config => {\n // Get the iOS URL scheme from environment or config.extra\n // We capture it here before entering the mod callback\n const iosUrlScheme =\n process.env.EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME ||\n (config as { extra?: Record<string, string> }).extra?.EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME;\n\n if (!iosUrlScheme) {\n // No URL scheme configured, skip iOS configuration\n return config;\n }\n\n // Add iOS URL scheme for Google Sign-In\n return withInfoPlist(config, modConfig => {\n if (!Array.isArray(modConfig.modResults.CFBundleURLTypes)) {\n modConfig.modResults.CFBundleURLTypes = [];\n }\n\n // Check if the scheme is already added to avoid duplicates\n const schemeExists = modConfig.modResults.CFBundleURLTypes.some(urlType =>\n urlType.CFBundleURLSchemes?.includes(iosUrlScheme),\n );\n\n if (!schemeExists) {\n // Add Google Sign-In URL scheme\n modConfig.modResults.CFBundleURLTypes.push({\n CFBundleURLSchemes: [iosUrlScheme],\n });\n }\n\n return modConfig;\n });\n};\n\nexport default createRunOncePlugin(withClerkGoogleSignIn, pkg.name, pkg.version);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAsE;AAEtE,qBAAgB;AAQhB,MAAM,wBAAsC,YAAU;AAVtD;AAaE,QAAM,eACJ,QAAQ,IAAI,6CACX,YAA8C,UAA9C,mBAAqD;AAExD,MAAI,CAAC,cAAc;AAEjB,WAAO;AAAA,EACT;AAGA,aAAO,qCAAc,QAAQ,eAAa;AACxC,QAAI,CAAC,MAAM,QAAQ,UAAU,WAAW,gBAAgB,GAAG;AACzD,gBAAU,WAAW,mBAAmB,CAAC;AAAA,IAC3C;AAGA,UAAM,eAAe,UAAU,WAAW,iBAAiB;AAAA,MAAK,aAAQ;AA7B5E,YAAAA;AA8BM,gBAAAA,MAAA,QAAQ,uBAAR,gBAAAA,IAA4B,SAAS;AAAA;AAAA,IACvC;AAEA,QAAI,CAAC,cAAc;AAEjB,gBAAU,WAAW,iBAAiB,KAAK;AAAA,QACzC,oBAAoB,CAAC,YAAY;AAAA,MACnC,CAAC;AAAA,IACH;AAEA,WAAO;AAAA,EACT,CAAC;AACH;AAEA,IAAO,4BAAQ,2CAAoB,uBAAuB,eAAAC,QAAI,MAAM,eAAAA,QAAI,OAAO;","names":["_a","pkg"]}
|
|
@@ -39,7 +39,7 @@ var import_runtime = require("../utils/runtime");
|
|
|
39
39
|
var import_singleton = require("./singleton");
|
|
40
40
|
const SDK_METADATA = {
|
|
41
41
|
name: "@clerk/expo",
|
|
42
|
-
version: "3.0.0-snapshot.
|
|
42
|
+
version: "3.0.0-snapshot.v20251218183643"
|
|
43
43
|
};
|
|
44
44
|
function ClerkProvider(props) {
|
|
45
45
|
const {
|
package/dist/utils/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const errorThrower: import("@clerk/shared/error-
|
|
1
|
+
export declare const errorThrower: import("@clerk/shared/error-o9rMDFII").y;
|
|
2
2
|
//# sourceMappingURL=errors.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/expo",
|
|
3
|
-
"version": "3.0.0-snapshot.
|
|
3
|
+
"version": "3.0.0-snapshot.v20251218183643",
|
|
4
4
|
"description": "Clerk React Native/Expo library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
"./legacy": {
|
|
60
60
|
"types": "./dist/legacy.d.ts",
|
|
61
61
|
"default": "./dist/legacy.js"
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"./app.plugin.js": "./app.plugin.js"
|
|
63
64
|
},
|
|
64
65
|
"main": "./dist/index.js",
|
|
65
66
|
"source": "./src/index.ts",
|
|
@@ -75,9 +76,9 @@
|
|
|
75
76
|
"base-64": "^1.0.0",
|
|
76
77
|
"react-native-url-polyfill": "2.0.0",
|
|
77
78
|
"tslib": "2.8.1",
|
|
78
|
-
"@clerk/clerk-js": "6.0.0-snapshot.
|
|
79
|
-
"@clerk/react": "6.0.0-snapshot.
|
|
80
|
-
"@clerk/shared": "4.0.0-snapshot.
|
|
79
|
+
"@clerk/clerk-js": "6.0.0-snapshot.v20251218183643",
|
|
80
|
+
"@clerk/react": "6.0.0-snapshot.v20251218183643",
|
|
81
|
+
"@clerk/shared": "4.0.0-snapshot.v20251218183643"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"@expo/config-plugins": "^54.0.4",
|
|
@@ -91,10 +92,10 @@
|
|
|
91
92
|
"expo-secure-store": "^12.8.1",
|
|
92
93
|
"expo-web-browser": "^12.8.2",
|
|
93
94
|
"react-native": "^0.81.4",
|
|
94
|
-
"@clerk/expo-passkeys": "1.0.0-snapshot.
|
|
95
|
+
"@clerk/expo-passkeys": "1.0.0-snapshot.v20251218183643"
|
|
95
96
|
},
|
|
96
97
|
"peerDependencies": {
|
|
97
|
-
"@clerk/expo-passkeys": "1.0.0-snapshot.
|
|
98
|
+
"@clerk/expo-passkeys": "1.0.0-snapshot.v20251218183643",
|
|
98
99
|
"expo": ">=53 <55",
|
|
99
100
|
"expo-apple-authentication": ">=7.0.0",
|
|
100
101
|
"expo-auth-session": ">=5",
|