@helpai/elements 0.50.0 → 0.50.1

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/index.d.ts CHANGED
@@ -1286,10 +1286,9 @@ interface ServerConfig {
1286
1286
  * `?helpai-debug=trace`, or the `options.debug` mount param all
1287
1287
  * converge on the same internal level. Persisted to
1288
1288
  * `localStorage["helpai.debug"]` so a refresh keeps visibility.
1289
- * • Co-hosted brand safety — every signal (query, global key, log
1290
- * tag) is brand-prefixed so `help-ai` and `go-ai` widgets on the
1291
- * same page don't fight over flags or pollute each other's
1292
- * transcripts.
1289
+ * • Co-hosted safety — every signal (query, global key, log tag) is
1290
+ * brand-prefixed so two widgets on the same page don't fight over
1291
+ * flags or pollute each other's transcripts.
1293
1292
  */
1294
1293
  type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
1295
1294
  /** One structured line, as forwarded to an external {@link setLogSink} sink. */
@@ -1575,7 +1574,7 @@ type HookListener = (instance: ChatWidgetInstance, event: EventName, data: unkno
1575
1574
  *
1576
1575
  * @example
1577
1576
  * ```ts
1578
- * import { mount } from '@helpai/elements'; // or '@goai/elements' for go.ai
1577
+ * import { mount } from '@helpai/elements';
1579
1578
  *
1580
1579
  * const chat = mount({
1581
1580
  * publicKey: 'agent_pk_...',
package/index.mjs CHANGED
@@ -10,9 +10,8 @@ var BRAND = {
10
10
  id: true ? "help-ai" : "help-ai",
11
11
  name: true ? "@helpai/elements" : "Help AI",
12
12
  global: true ? "HelpAI" : "HelpAI",
13
- // Custom-element tag — `web-ai-chat` for every brand. Brand-neutral
14
- // by design so docs and copy snippets work the same across @helpai
15
- // and @goai builds.
13
+ // Custom-element tag — `web-ai-chat`. Brand-neutral by design so docs
14
+ // and copy snippets stay stable regardless of which brand is built.
16
15
  tagName: true ? "web-ai-chat" : "web-ai-chat",
17
16
  cssPrefix: true ? "helpai" : "helpai",
18
17
  /**
@@ -21,16 +20,16 @@ var BRAND = {
21
20
  * `${defaultBaseUrl}/api/data`.
22
21
  */
23
22
  defaultBaseUrl: true ? "https://help.ai" : "",
24
- /** Public-facing brand label, e.g. "Help AI" / "Go AI". */
23
+ /** Public-facing brand label, e.g. "Help AI". */
25
24
  displayName: true ? "Help AI" : "Help AI",
26
- /** Bare host without protocol, e.g. "help.ai" / "go.ai". */
25
+ /** Bare host without protocol, e.g. "help.ai". */
27
26
  domain: true ? "help.ai" : "help.ai",
28
27
  /** Full marketing site URL, e.g. "https://help.ai". */
29
28
  siteUrl: true ? "https://help.ai" : "https://help.ai"
30
29
  };
31
30
 
32
31
  // src/core/version.ts
33
- var ELEMENTS_VERSION = true ? "0.50.0" : "0.0.0-dev";
32
+ var ELEMENTS_VERSION = true ? "0.50.1" : "0.0.0-dev";
34
33
  var ELEMENTS_VERSION_PARAM = "_ev";
35
34
 
36
35
  // src/i18n/strings.ts
@@ -5603,10 +5602,8 @@ function DecidedCard({
5603
5602
  }) {
5604
5603
  const output = useComputed3(() => part.outputSig.value);
5605
5604
  const approval = useComputed3(() => part.approvalSig.value);
5606
- const approved = approval.value?.approved;
5607
- const isConfirm = req.responseType === "confirmation";
5608
- const skipped = !isConfirm && approved === false;
5609
- const answer = isConfirm ? `${approved ? strings.confirmYes : strings.confirmNo}${approval.value?.reason ? ` \u2014 ${approval.value.reason}` : ""}` : approved !== void 0 ? approval.value?.reason ?? "" : summarizeOutput(output.value);
5605
+ const skipped = approval.value?.approved === false;
5606
+ const answer = approval.value?.approved !== void 0 ? approval.value.reason ?? "" : summarizeOutput(output.value);
5610
5607
  return /* @__PURE__ */ jsxs13("div", { class: `${p15}-toolui`, "data-testid": TID.toolDecision, children: [
5611
5608
  /* @__PURE__ */ jsxs13("div", { class: `${p15}-toolui-head`, children: [
5612
5609
  /* @__PURE__ */ jsx16("span", { class: `${p15}-toolui-badge ${p15}-toolui-badge-accent`, children: strings.inputBadge }),
package/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.50.0"
83
+ "version": "0.50.1"
84
84
  }
package/web-component.mjs CHANGED
@@ -10,9 +10,8 @@ var BRAND = {
10
10
  id: true ? "help-ai" : "help-ai",
11
11
  name: true ? "@helpai/elements" : "Help AI",
12
12
  global: true ? "HelpAI" : "HelpAI",
13
- // Custom-element tag — `web-ai-chat` for every brand. Brand-neutral
14
- // by design so docs and copy snippets work the same across @helpai
15
- // and @goai builds.
13
+ // Custom-element tag — `web-ai-chat`. Brand-neutral by design so docs
14
+ // and copy snippets stay stable regardless of which brand is built.
16
15
  tagName: true ? "web-ai-chat" : "web-ai-chat",
17
16
  cssPrefix: true ? "helpai" : "helpai",
18
17
  /**
@@ -21,9 +20,9 @@ var BRAND = {
21
20
  * `${defaultBaseUrl}/api/data`.
22
21
  */
23
22
  defaultBaseUrl: true ? "https://help.ai" : "",
24
- /** Public-facing brand label, e.g. "Help AI" / "Go AI". */
23
+ /** Public-facing brand label, e.g. "Help AI". */
25
24
  displayName: true ? "Help AI" : "Help AI",
26
- /** Bare host without protocol, e.g. "help.ai" / "go.ai". */
25
+ /** Bare host without protocol, e.g. "help.ai". */
27
26
  domain: true ? "help.ai" : "help.ai",
28
27
  /** Full marketing site URL, e.g. "https://help.ai". */
29
28
  siteUrl: true ? "https://help.ai" : "https://help.ai"
@@ -1795,7 +1794,7 @@ function createAuth(opts) {
1795
1794
  }
1796
1795
 
1797
1796
  // src/core/version.ts
1798
- var ELEMENTS_VERSION = true ? "0.50.0" : "0.0.0-dev";
1797
+ var ELEMENTS_VERSION = true ? "0.50.1" : "0.0.0-dev";
1799
1798
  var ELEMENTS_VERSION_PARAM = "_ev";
1800
1799
 
1801
1800
  // src/stream/types.ts
@@ -5562,10 +5561,8 @@ function DecidedCard({
5562
5561
  }) {
5563
5562
  const output = useComputed3(() => part.outputSig.value);
5564
5563
  const approval = useComputed3(() => part.approvalSig.value);
5565
- const approved = approval.value?.approved;
5566
- const isConfirm = req.responseType === "confirmation";
5567
- const skipped = !isConfirm && approved === false;
5568
- const answer = isConfirm ? `${approved ? strings.confirmYes : strings.confirmNo}${approval.value?.reason ? ` \u2014 ${approval.value.reason}` : ""}` : approved !== void 0 ? approval.value?.reason ?? "" : summarizeOutput(output.value);
5564
+ const skipped = approval.value?.approved === false;
5565
+ const answer = approval.value?.approved !== void 0 ? approval.value.reason ?? "" : summarizeOutput(output.value);
5569
5566
  return /* @__PURE__ */ jsxs13("div", { class: `${p15}-toolui`, "data-testid": TID.toolDecision, children: [
5570
5567
  /* @__PURE__ */ jsxs13("div", { class: `${p15}-toolui-head`, children: [
5571
5568
  /* @__PURE__ */ jsx16("span", { class: `${p15}-toolui-badge ${p15}-toolui-badge-accent`, children: strings.inputBadge }),