@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/elements-web-component.esm.js +8 -8
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +2 -2
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +2 -2
- package/elements.esm.js.map +3 -3
- package/elements.js +2 -2
- package/elements.js.map +3 -3
- package/index.d.ts +4 -5
- package/index.mjs +7 -10
- package/package.json +1 -1
- package/web-component.mjs +7 -10
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
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
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';
|
|
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
|
|
14
|
-
//
|
|
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"
|
|
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"
|
|
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.
|
|
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
|
|
5607
|
-
const
|
|
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
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
|
|
14
|
-
//
|
|
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"
|
|
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"
|
|
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.
|
|
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
|
|
5566
|
-
const
|
|
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 }),
|