@declarion/embed 0.57.0 → 0.59.2
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/server.d.ts +6 -0
- package/dist/server.js +3 -1
- package/package.json +4 -4
package/dist/server.d.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface CreateEmbedSessionOptions {
|
|
|
31
31
|
* 900 and raises values below 60 to 60.
|
|
32
32
|
*/
|
|
33
33
|
readonly ttlSeconds?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The language the iframe reads, one the deployment declares, e.g. `"es"`.
|
|
36
|
+
* Omitted, the target user's own language decides. An undeclared one is
|
|
37
|
+
* refused with `platform.language_not_declared`.
|
|
38
|
+
*/
|
|
39
|
+
readonly language?: string;
|
|
34
40
|
/**
|
|
35
41
|
* Optional `AbortSignal` to cancel the mint request (e.g. a host request
|
|
36
42
|
* timeout). Forwarded to `fetch`.
|
package/dist/server.js
CHANGED
|
@@ -22,7 +22,9 @@ async function r(r) {
|
|
|
22
22
|
user_email: r.userEmail,
|
|
23
23
|
screen_code: r.screenCode,
|
|
24
24
|
ttl_seconds: r.ttlSeconds ?? 600
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
|
+
r.language && (a.language = r.language);
|
|
27
|
+
let o = await fetch(i, {
|
|
26
28
|
method: "POST",
|
|
27
29
|
headers: {
|
|
28
30
|
"content-type": "application/json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/embed",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Host integration SDK for embedding Declarion screens as white-label iframes.",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@types/react-dom": "^19.3.0",
|
|
55
55
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
56
56
|
"@vitejs/plugin-react": "^6.1.1",
|
|
57
|
-
"eslint": "^10.
|
|
58
|
-
"jsdom": "^30.0
|
|
57
|
+
"eslint": "^10.11.0",
|
|
58
|
+
"jsdom": "^30.1.0",
|
|
59
59
|
"publint": "^0.3.24",
|
|
60
60
|
"react": "^19.3.0",
|
|
61
61
|
"react-dom": "^19.3.0",
|
|
62
62
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
63
63
|
"typescript-eslint": "^8.70.0",
|
|
64
64
|
"vite": "^8.3.0",
|
|
65
|
-
"vitest": "^5.0.
|
|
65
|
+
"vitest": "^5.0.1"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build:lib": "vite build --config vite.lib.config.ts && vite build --config vite.iife.config.ts && tsc -p tsconfig.lib.json && pnpm run check:pkg",
|