@helpai/elements 1.3.8 → 1.3.10

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
@@ -400,7 +400,7 @@ interface FormDef {
400
400
  *
401
401
  * The data module trims `FormDef.translations` to the requested `?locale=` (≤1
402
402
  * entry) on read; the widget overlays that entry onto the default fields. Mirror
403
- * of `module-help-ai-data-api` `DynamicFormTranslation`.
403
+ * of `module-data-api` `DynamicFormTranslation`.
404
404
  */
405
405
  interface FieldOptionTranslation {
406
406
  /** The canonical option `value` this localizes. */
@@ -467,8 +467,6 @@ interface ResolvedForms {
467
467
  type LauncherVariant = "circle" | "pill" | "bar" | "minimal";
468
468
  /** Launcher size preset. Resolves to concrete CSS lengths in panel.css. */
469
469
  type LauncherSize = "sm" | "md" | "lg";
470
- /** Built-in icon presets. Anything else is treated as raw SVG source. */
471
- type LauncherIconPreset = "chat" | "spark" | "message" | "help" | "wand";
472
470
  /**
473
471
  * Visual variant of the launcher callout bubble.
474
472
  *
@@ -515,7 +513,7 @@ interface LauncherOptions {
515
513
  variant?: LauncherVariant;
516
514
  size?: LauncherSize;
517
515
  label?: string;
518
- icon?: LauncherIconPreset | string;
516
+ icon?: string;
519
517
  hidden?: boolean;
520
518
  /** Pre-engagement bubble next to the FAB. See {@link LauncherCalloutOptions}. */
521
519
  callout?: LauncherCalloutOptions;
@@ -741,7 +739,7 @@ interface HeaderOptions {
741
739
  */
742
740
  interface I18nOptions {
743
741
  locale?: string;
744
- defaultLocale?: "auto" | string;
742
+ defaultLocale?: string;
745
743
  availableLocales?: string[];
746
744
  strings?: StringsOverride;
747
745
  }
@@ -941,8 +939,8 @@ interface ChatWidgetOptions {
941
939
  baseUrl?: string;
942
940
  /**
943
941
  * Agent-API base (no trailing slash) — set it when the
944
- * `module-help-ai-agent-api` service is reached DIRECTLY (a standalone
945
- * local module, e.g. `http://localhost:3111`) instead of through the
942
+ * `module-agent-api` service is reached DIRECTLY (a standalone
943
+ * local module, e.g. `http://localhost:3069`) instead of through the
946
944
  * edge. Routes attach as-is (`${agentApiBaseUrl}/pai/handshake`).
947
945
  * Precedence: this option > derived from the main origin
948
946
  * (`${baseUrl}/api/agent`). Not server-pushable — the handshake already
@@ -950,10 +948,10 @@ interface ChatWidgetOptions {
950
948
  */
951
949
  agentApiBaseUrl?: string;
952
950
  /**
953
- * Data-API base (no trailing slash) — the `module-help-ai-data-api`
951
+ * Data-API base (no trailing slash) — the `module-data-api`
954
952
  * service serving content, form definitions, and form submissions under
955
953
  * `/pai/*` (`content`, `bootstrap`, `submit-form`).
956
- * Set it for a standalone local module (e.g. `http://localhost:3105`).
954
+ * Set it for a standalone local module (e.g. `http://localhost:3071`).
957
955
  * Precedence: this option > server-pushed `config.dataApiBaseUrl` > derived
958
956
  * from the main origin (`${baseUrl}/api/data`, e.g.
959
957
  * `https://help.ai/api/data`).
@@ -3354,7 +3352,7 @@ interface ChatWidgetInstance {
3354
3352
  * it from one instance applies everywhere). Equivalent to calling
3355
3353
  * `HelpAI.setDebug(level)` on the brand global.
3356
3354
  */
3357
- setDebug: (level: LogLevel | boolean | number | string) => void;
3355
+ setDebug: (level: boolean | number | string) => void;
3358
3356
  /** Current log level. Read-only. */
3359
3357
  readonly debugLevel: () => LogLevel;
3360
3358
  /**