@helpai/elements 0.68.5 → 0.70.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/configurator.mjs +1 -1
- package/elements-web-component.esm.js +28 -28
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +28 -28
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +28 -28
- package/elements.esm.js.map +4 -4
- package/elements.js +30 -30
- package/elements.js.map +4 -4
- package/index.d.ts +5 -5
- package/index.mjs +5 -5
- package/package.json +1 -1
- package/schema.d.ts +9 -9
- package/schema.json +1 -1
- package/schema.mjs +1 -1
- package/web-component.mjs +5 -5
package/index.d.ts
CHANGED
|
@@ -535,7 +535,7 @@ interface FormDef {
|
|
|
535
535
|
* answers. Default `true`. Set `false` to keep the marker plain — e.g.
|
|
536
536
|
* sensitive answers that shouldn't linger on screen (pairs with
|
|
537
537
|
* `mirrorToContext: false`; the backend should also omit `values` from the
|
|
538
|
-
*
|
|
538
|
+
* `bootstrap` `formSubmissions` records for such forms).
|
|
539
539
|
*/
|
|
540
540
|
reviewable?: boolean;
|
|
541
541
|
/** BCP-47 locale the top-level strings (title / fields copy) are authored in. */
|
|
@@ -1098,8 +1098,8 @@ interface ChatWidgetOptions {
|
|
|
1098
1098
|
agentApiBaseUrl?: string;
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Data-API base (no trailing slash) — the `module-help-ai-data-api`
|
|
1101
|
-
* service serving content, form definitions, and form submissions
|
|
1102
|
-
*
|
|
1101
|
+
* service serving content, form definitions, and form submissions under
|
|
1102
|
+
* `/pai/*` (`content`, `bootstrap`, `submit-form`).
|
|
1103
1103
|
* Set it for a standalone local module (e.g. `http://localhost:3106`).
|
|
1104
1104
|
* Precedence: this option > server-pushed `config.dataApiBaseUrl` > derived
|
|
1105
1105
|
* from the main origin (`${baseUrl}/api/data`, e.g.
|
|
@@ -1263,7 +1263,7 @@ interface ResolvedOptions {
|
|
|
1263
1263
|
* and the public key are deliberately excluded — those are client concerns.
|
|
1264
1264
|
*
|
|
1265
1265
|
* Form definitions no longer ride this config: the widget fetches them from
|
|
1266
|
-
* the data-API (`GET /
|
|
1266
|
+
* the data-API (`GET /pai/bootstrap`). A stale backend still pushing
|
|
1267
1267
|
* `config.forms` is ignored.
|
|
1268
1268
|
*/
|
|
1269
1269
|
interface ServerConfig$1 {
|
|
@@ -2920,7 +2920,7 @@ type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
|
|
|
2920
2920
|
*
|
|
2921
2921
|
* Two deltas vs the editable surface:
|
|
2922
2922
|
* - `forms` is omitted — resolved form definitions are served by the
|
|
2923
|
-
* data-API (`GET /
|
|
2923
|
+
* data-API (`GET /pai/bootstrap`), not pushed on the handshake. A stale
|
|
2924
2924
|
* backend still sending `config.forms` passes through `.loose()` and is
|
|
2925
2925
|
* ignored by the runtime merge.
|
|
2926
2926
|
* - `dataApiBaseUrl` is pushable — lets a deployment point the widget at its
|