@iqauth/sdk 2.3.0 → 2.5.0
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 +110 -0
- package/dist/browser-session.d.mts +3 -2
- package/dist/browser-session.d.ts +3 -2
- package/dist/browser.d.mts +64 -29
- package/dist/browser.d.ts +64 -29
- package/dist/browser.js +782 -38
- package/dist/browser.mjs +43 -3
- package/dist/bundle-LUKDQYVQ.mjs +374 -0
- package/dist/chunk-3JULWS6F.mjs +106 -0
- package/dist/chunk-5T7GHBX6.mjs +1165 -0
- package/dist/{chunk-KGEPDXHU.mjs → chunk-6TDJJER7.mjs} +2 -2
- package/dist/{chunk-RACIPVLD.mjs → chunk-76W5TLQQ.mjs} +262 -220
- package/dist/{chunk-EKTNEZIH.mjs → chunk-BVV54LPI.mjs} +37 -5
- package/dist/chunk-LIZYFXH7.mjs +90 -0
- package/dist/chunk-MKKZULZR.mjs +241 -0
- package/dist/chunk-SL3KRS4W.mjs +54 -0
- package/dist/chunk-TKZTCPEK.mjs +232 -0
- package/dist/chunk-UKZLOHZG.mjs +83 -0
- package/dist/cli/index.js +144 -36
- package/dist/cli/index.mjs +1 -1
- package/dist/{client-DTX4hNdS.d.ts → client-BNQe3AgF.d.ts} +3 -62
- package/dist/{client-vdh2a9fJ.d.mts → client-kYlJFgPv.d.mts} +3 -62
- package/dist/doctor-YYNHNMLD.mjs +198 -0
- package/dist/{express-A0-dWEMy.d.mts → express-B6_1vBYZ.d.mts} +23 -2
- package/dist/{express-Bo_pJKHN.d.ts → express-CHpfa7D_.d.ts} +23 -2
- package/dist/express.d.mts +5 -4
- package/dist/express.d.ts +5 -4
- package/dist/express.js +36 -4
- package/dist/express.mjs +8 -8
- package/dist/fastify.js +2 -2
- package/dist/fastify.mjs +4 -4
- package/dist/hono.js +2 -2
- package/dist/hono.mjs +4 -4
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +500 -4
- package/dist/index.mjs +29 -9
- package/dist/locales.d.mts +53 -0
- package/dist/locales.d.ts +53 -0
- package/dist/locales.js +1202 -0
- package/dist/locales.mjs +29 -0
- package/dist/mobile.d.mts +3 -2
- package/dist/mobile.d.ts +3 -2
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.js +2 -2
- package/dist/next.mjs +1 -1
- package/dist/provisioningBridge-88xjOS2n.d.mts +86 -0
- package/dist/provisioningBridge-DnTfzdZK.d.ts +86 -0
- package/dist/react.d.mts +1349 -10
- package/dist/react.d.ts +1349 -10
- package/dist/react.js +2985 -567
- package/dist/react.mjs +1517 -94
- package/dist/reverify-4UEJXUS6.mjs +16 -0
- package/dist/server/handlers.d.mts +10 -1
- package/dist/server/handlers.d.ts +10 -1
- package/dist/server/handlers.js +2 -2
- package/dist/server/handlers.mjs +1 -1
- package/dist/server.d.mts +5 -3
- package/dist/server.d.ts +5 -3
- package/dist/server.js +89 -4
- package/dist/server.mjs +12 -8
- package/dist/service.d.mts +3 -2
- package/dist/service.d.ts +3 -2
- package/dist/signIn-CCY4JE5G.mjs +15 -0
- package/dist/{signIn-Cd0P4y9d.d.mts → signIn-CiIBTJIh.d.mts} +224 -4
- package/dist/{signIn-DKakyzeu.d.ts → signIn-OCr88Zf8.d.ts} +224 -4
- package/dist/test.d.mts +86 -0
- package/dist/test.d.ts +86 -0
- package/dist/test.js +289 -0
- package/dist/test.mjs +9 -0
- package/dist/tokens-DCyzzn8L.d.mts +63 -0
- package/dist/tokens-aHiGFr_E.d.ts +63 -0
- package/dist/types-6bNdxesb.d.mts +196 -0
- package/dist/types-6bNdxesb.d.ts +196 -0
- package/dist/{types-Cxl3bQHt.d.mts → types-DZAflmmq.d.mts} +6 -0
- package/dist/{types-Cxl3bQHt.d.ts → types-DZAflmmq.d.ts} +6 -0
- package/dist/webhooks.d.mts +61 -0
- package/dist/webhooks.d.ts +61 -0
- package/dist/webhooks.js +119 -0
- package/dist/webhooks.mjs +11 -0
- package/dist/ws.d.mts +73 -0
- package/dist/ws.d.ts +73 -0
- package/dist/ws.js +397 -0
- package/dist/ws.mjs +12 -0
- package/package.json +22 -2
- package/dist/doctor-A5E7LSFW.mjs +0 -90
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { I as IQAuthLocaleBundle, a as IQAuthLocaleOverride, b as IQAuthLocaleKey } from './types-6bNdxesb.js';
|
|
2
|
+
|
|
3
|
+
declare const enUS: IQAuthLocaleBundle;
|
|
4
|
+
|
|
5
|
+
declare const frFR: IQAuthLocaleBundle;
|
|
6
|
+
|
|
7
|
+
declare const esES: IQAuthLocaleBundle;
|
|
8
|
+
|
|
9
|
+
declare const deDE: IQAuthLocaleBundle;
|
|
10
|
+
|
|
11
|
+
declare const jaJP: IQAuthLocaleBundle;
|
|
12
|
+
|
|
13
|
+
declare const ptBR: IQAuthLocaleBundle;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Public entry point for `@iqauth/sdk/locales`.
|
|
17
|
+
*
|
|
18
|
+
* Exports the strict bundle type, the default `enUS` bundle, the five other
|
|
19
|
+
* shipped locales, the `t()` resolver, and helpers for error-code mapping
|
|
20
|
+
* and Accept-Language negotiation.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/** Bundles indexed by their canonical BCP-47 tag. */
|
|
24
|
+
declare const builtInLocales: Record<string, IQAuthLocaleBundle>;
|
|
25
|
+
/**
|
|
26
|
+
* Default bundle used when a key is missing from a contributor-supplied
|
|
27
|
+
* partial override, or when no `localization` prop is passed at all.
|
|
28
|
+
*/
|
|
29
|
+
declare const defaultBundle: IQAuthLocaleBundle;
|
|
30
|
+
/**
|
|
31
|
+
* Resolve a localized string from a bundle. Substitutes `{name}` placeholders
|
|
32
|
+
* with values from `vars`. If the key is missing from the bundle (which
|
|
33
|
+
* should never happen when contributors supply a fully typed bundle, but can
|
|
34
|
+
* happen with a `Partial<IQAuthLocaleBundle>` override), the default `enUS`
|
|
35
|
+
* value is used as a graceful fallback.
|
|
36
|
+
*/
|
|
37
|
+
declare function t(bundle: IQAuthLocaleBundle | IQAuthLocaleOverride | undefined | null, key: IQAuthLocaleKey, vars?: Record<string, string | number>): string;
|
|
38
|
+
/**
|
|
39
|
+
* Merge a partial override on top of the default bundle so callers always
|
|
40
|
+
* receive a fully populated `IQAuthLocaleBundle`. Used internally by
|
|
41
|
+
* `<IQAuthProvider localization={...}>`.
|
|
42
|
+
*/
|
|
43
|
+
declare function resolveBundle(override?: IQAuthLocaleBundle | IQAuthLocaleOverride | null): IQAuthLocaleBundle;
|
|
44
|
+
declare function localizeErrorCode(bundle: IQAuthLocaleBundle | IQAuthLocaleOverride | undefined | null, code: string | undefined | null, vars?: Record<string, string | number>): string;
|
|
45
|
+
/**
|
|
46
|
+
* Negotiate the best matching locale tag from a comma-separated
|
|
47
|
+
* `Accept-Language` header (or `navigator.language` value), preferring exact
|
|
48
|
+
* matches and falling back to the language subtag (e.g. `fr-CA` -> `fr-FR`).
|
|
49
|
+
* Returns `"en-US"` when no candidate matches a built-in locale.
|
|
50
|
+
*/
|
|
51
|
+
declare function negotiateLocale(acceptLanguage: string | null | undefined, available?: string[]): string;
|
|
52
|
+
|
|
53
|
+
export { IQAuthLocaleBundle, IQAuthLocaleKey, IQAuthLocaleOverride, builtInLocales, deDE, defaultBundle, enUS, esES, frFR, jaJP, localizeErrorCode, negotiateLocale, ptBR, resolveBundle, t };
|