@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.
@@ -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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
1996
1998
  var readErrorField = (value, key) => {
1997
1999
  const candidate = value[key];
1998
2000
  if (typeof candidate === "string" && candidate.trim()) {