@edgespark/web 0.0.0-beta.c422625
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/README.md +281 -0
- package/auth/styles/styles.css +270 -0
- package/dist/api/fetch.d.ts +8 -0
- package/dist/api/types.d.ts +13 -0
- package/dist/auth/create-auth.d.ts +18 -0
- package/dist/auth/types.d.ts +84 -0
- package/dist/auth-ui/ManagedAuthUI.d.ts +85 -0
- package/dist/auth-ui/appearance.d.ts +63 -0
- package/dist/auth-ui/config.d.ts +33 -0
- package/dist/auth-ui/default-labels.d.ts +2 -0
- package/dist/auth-ui/index.d.ts +4 -0
- package/dist/auth-ui/mount.d.ts +4 -0
- package/dist/auth-ui/runtime.d.ts +7 -0
- package/dist/auth-ui/types.d.ts +156 -0
- package/dist/browser.d.ts +2 -0
- package/dist/client.d.ts +43 -0
- package/dist/errors.d.ts +32 -0
- package/dist/index.cjs +147 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.es.js +2272 -0
- package/dist/locales/ar.d.ts +2 -0
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/es.d.ts +2 -0
- package/dist/locales/fr.d.ts +2 -0
- package/dist/locales/hi.d.ts +2 -0
- package/dist/locales/index.d.ts +21 -0
- package/dist/locales/it.d.ts +2 -0
- package/dist/locales/ja.d.ts +2 -0
- package/dist/locales/ko.d.ts +2 -0
- package/dist/locales/pt-BR.d.ts +2 -0
- package/dist/locales/ru.d.ts +2 -0
- package/dist/locales/zh-CN.d.ts +2 -0
- package/dist/redirect.d.ts +5 -0
- package/dist/shared/types.d.ts +6 -0
- package/package.json +45 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AuthUILabels } from '../auth-ui/types';
|
|
2
|
+
export { enUS } from './en-US';
|
|
3
|
+
export { zhCN } from './zh-CN';
|
|
4
|
+
export { ja } from './ja';
|
|
5
|
+
export { ko } from './ko';
|
|
6
|
+
export { es } from './es';
|
|
7
|
+
export { ptBR } from './pt-BR';
|
|
8
|
+
export { fr } from './fr';
|
|
9
|
+
export { de } from './de';
|
|
10
|
+
export { it } from './it';
|
|
11
|
+
export { ru } from './ru';
|
|
12
|
+
export { ar } from './ar';
|
|
13
|
+
export { hi } from './hi';
|
|
14
|
+
/**
|
|
15
|
+
* Returns the best locale preset for the browser's language preferences.
|
|
16
|
+
*
|
|
17
|
+
* Walks `navigator.languages` in preference order, checking each against
|
|
18
|
+
* available presets (exact match first, then base language code).
|
|
19
|
+
* Falls back to English if nothing matches.
|
|
20
|
+
*/
|
|
21
|
+
export declare function detectLocale(): AuthUILabels;
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@edgespark/web",
|
|
3
|
+
"version": "0.0.0-beta.c422625",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "EdgeSpark web SDK: same-origin auth, API, and managed auth UI.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.cjs",
|
|
9
|
+
"module": "dist/index.es.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"auth/styles/styles.css"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"auth/styles/styles.css"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.es.js",
|
|
22
|
+
"require": "./dist/index.cjs",
|
|
23
|
+
"default": "./dist/index.es.js"
|
|
24
|
+
},
|
|
25
|
+
"./styles.css": "./auth/styles/styles.css",
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"better-auth": "^1.5.6"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"typescript": "^5.6.3",
|
|
33
|
+
"vite": "^5.4.0",
|
|
34
|
+
"vite-plugin-dts": "^4.2.3"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=18"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "pnpm run clean && pnpm exec vite build -c vite.config.ts",
|
|
41
|
+
"clean": "rm -rf dist",
|
|
42
|
+
"test": "node ./scripts/audit-auth-contract.mjs",
|
|
43
|
+
"typecheck": "pnpm exec tsc --noEmit && pnpm exec tsc --noEmit -p tsconfig.type-tests.json"
|
|
44
|
+
}
|
|
45
|
+
}
|