@encatch/web-sdk 1.3.0-beta.4 → 1.3.0-beta.5
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/index.d.ts +8 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -523,6 +523,14 @@ export declare interface ShowFormOptions {
|
|
|
523
523
|
* Date values are automatically serialized to ISO 8601 strings.
|
|
524
524
|
*/
|
|
525
525
|
context?: Record<string, ContextValue>;
|
|
526
|
+
/**
|
|
527
|
+
* CSS selector for a host element to render the form inline into (highest-priority
|
|
528
|
+
* placement). If the selector matches an element, the form mounts there; if it
|
|
529
|
+
* doesn't match (or is invalid), placement falls back to the `#encatch` rules
|
|
530
|
+
* (a `<div id="encatch">`, optionally bound to a form via `data-encatch-form-id`)
|
|
531
|
+
* and then to the default modal. Example: `showForm('id', { selector: '#feedback-slot' })`.
|
|
532
|
+
*/
|
|
533
|
+
selector?: string;
|
|
526
534
|
}
|
|
527
535
|
|
|
528
536
|
/** Answer for a signature question. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/web-sdk",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.5",
|
|
4
4
|
"description": "A lightweight, type-safe JavaScript SDK for integrating Encatch forms and surveys",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/encatch.es.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vite": "^8.0.12",
|
|
40
40
|
"vite-plugin-dts": "^5.0.0",
|
|
41
41
|
"zod": "^4.0.0",
|
|
42
|
-
"@encatch/schema": "1.3.0-beta.
|
|
42
|
+
"@encatch/schema": "1.3.0-beta.6"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|