@absolutejs/voice 0.0.22-beta.528 → 0.0.22-beta.529
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/angular/index.js +3 -1
- package/dist/client/htmxBootstrap.js +3 -1
- package/dist/client/index.js +290 -304
- package/dist/embed/index.js +3 -1
- package/dist/embed/voice-widget.js +7 -7
- package/dist/index.d.ts +4 -6
- package/dist/index.js +513 -892
- package/dist/internal/html.d.ts +6 -0
- package/dist/internal/status.d.ts +9 -0
- package/dist/react/index.js +287 -300
- package/dist/svelte/index.js +181 -198
- package/dist/testing/index.js +57 -62
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +231 -239
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -1600,6 +1600,9 @@ var createVoiceController = (path, options = {}) => {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
};
|
|
1602
1602
|
|
|
1603
|
+
// src/internal/html.ts
|
|
1604
|
+
var escapeHtml = (value) => String(value).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
1605
|
+
|
|
1603
1606
|
// src/agentState.ts
|
|
1604
1607
|
var deriveVoiceAgentUIState = (input) => {
|
|
1605
1608
|
if (!input.isConnected) {
|
|
@@ -1708,7 +1711,6 @@ var createVoiceWidgetViewModel = (input) => {
|
|
|
1708
1711
|
title: input.title ?? "Voice"
|
|
1709
1712
|
};
|
|
1710
1713
|
};
|
|
1711
|
-
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
1712
1714
|
var resolveRadius = (radius) => typeof radius === "number" ? `${radius}px` : radius;
|
|
1713
1715
|
var renderVoiceWidgetHTML = (model) => {
|
|
1714
1716
|
const t = model.theme;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/internal/html.ts
|
|
2
|
+
var escapeHtml = (value) => String(value).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
3
|
+
|
|
1
4
|
// src/client/htmx.ts
|
|
2
5
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
3
6
|
var DEFAULT_QUERY_PARAM = "sessionId";
|
|
@@ -1992,7 +1995,6 @@ var DEFAULT_GUIDED_PROMPTS = [
|
|
|
1992
1995
|
"Finish with any detail that feels blocked, risky, or unclear."
|
|
1993
1996
|
];
|
|
1994
1997
|
var clamp = (value, min, max2) => Math.min(max2, Math.max(min, value));
|
|
1995
|
-
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
1996
1998
|
var readErrorField = (value, key) => {
|
|
1997
1999
|
const candidate = value[key];
|
|
1998
2000
|
if (typeof candidate === "string" && candidate.trim()) {
|