@slashid/jump-page 1.0.24 → 1.0.25
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 +4 -0
- package/package/astro.config.d.mts +1 -1
- package/package/config.js +22 -0
- package/package/main.js +2433 -2432
- package/package/main.js.map +1 -1
- package/package/package/config.d.ts +0 -0
- package/package/package/main.d.ts +10 -12
- package/package/public/config.d.ts +0 -0
- package/package/src/components/app/app.context.d.ts +0 -1
- package/package/src/components/card/card.component.d.ts +0 -1
- package/package/src/components/text/text.component.d.ts +0 -1
- package/package/src/components/text/use-i18n.d.ts +1 -1
- package/package/src/runtime-config.d.ts +14 -0
- package/package/style.css +1 -1
- package/package.json +37 -25
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# /id - SDK Verification page
|
|
2
2
|
|
|
3
|
+
## Self-hosting
|
|
4
|
+
|
|
5
|
+
See [SELF_HOSTING.md](./SELF_HOSTING.md) for injecting `apiBaseUrl` / `sdkUrl` at deploy time.
|
|
6
|
+
|
|
3
7
|
This package implements the SlashID verification page as a React component.
|
|
4
8
|
This allows self hosting the verification page as this component can be rendered in any React application.
|
|
5
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("astro").AstroUserConfig<never, never>;
|
|
1
|
+
declare const _default: import("astro").AstroUserConfig<never, never, never>;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Self-host runtime configuration.
|
|
3
|
+
*
|
|
4
|
+
* Edit this file at deploy time to point the app(s) at your own endpoints.
|
|
5
|
+
* When both apps are served from the same origin, host ONE copy of this file
|
|
6
|
+
* at the origin root (/config.js) and both apps read it.
|
|
7
|
+
*
|
|
8
|
+
* - All values MUST be strings.
|
|
9
|
+
* - Supported keys (anything else is ignored):
|
|
10
|
+
* apiBaseUrl — API / Gate base URL
|
|
11
|
+
* sdkUrl — SDK URL
|
|
12
|
+
* brandfetchClientId — Brandfetch client ID (dashboard only; jump-page ignores it)
|
|
13
|
+
* - A key left blank or removed falls back to the value baked into the build.
|
|
14
|
+
*
|
|
15
|
+
* This file only takes effect in runtime-config builds; in normal builds it is
|
|
16
|
+
* ignored.
|
|
17
|
+
*/
|
|
18
|
+
window.__APP_CONFIG__ = {
|
|
19
|
+
// apiBaseUrl: "https://gate.example.com",
|
|
20
|
+
// sdkUrl: "https://jump.example.com/sdk.html",
|
|
21
|
+
// brandfetchClientId: "your-brandfetch-client-id",
|
|
22
|
+
};
|