@8wave/ai-elements 0.103.0-beta.4 → 0.103.0

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.
@@ -6,15 +6,18 @@ type TelemetryContext = {
6
6
  /**
7
7
  * Initializes OpenTelemetry for the web component widget.
8
8
  *
9
- * The SDK is loaded via dynamic `import()` so it never blocks the initial
10
- * render. Calls to `trackAppEvent` / `trackAppException` made while the SDK
11
- * is still loading are queued and replayed once it's ready.
9
+ * The SDK is loaded through a dynamic `import()`, so it never blocks the
10
+ * first render: the browser build of OpenTelemetry weighs about 37 kB
11
+ * gzipped, and the widget is served from a CDN to pages that are not ours.
12
+ * Nothing waits for it. What it collects is automatic instrumentation
13
+ * (document load, fetch), so a call made before the chunk lands is simply
14
+ * not traced; `trackAppEvent` and the rest write to the logger and do not
15
+ * read the instance at all.
12
16
  *
13
- * Uses a singleton pattern — only the first call with a valid configuration
14
- * takes effect. Subsequent calls are no-ops.
15
- *
16
- * The implementation relies on the shared telemetry package and keeps side
17
- * effects minimal to avoid interfering with the host page.
17
+ * Uses a singleton pattern: only the first call with a valid configuration
18
+ * takes effect. Subsequent calls are no-ops, and so is every call when
19
+ * `VITE_OTEL_ENABLED` is not true, which is what keeps the chunk from being
20
+ * fetched at all.
18
21
  */
19
22
  export declare function initializeAppInsights(connectionString?: string): void;
20
23
  /**
package/dist-vue/index.js CHANGED
@@ -196,7 +196,7 @@ var Qr = { class: "flex items-center gap-4 mb-4" }, $r = { class: "font-semibold
196
196
  }
197
197
  });
198
198
  //#endregion
199
- //#region virtual:intlify-i18n-3
199
+ //#region virtual:intlify-i18n-0
200
200
  function ai(e) {
201
201
  let t = e;
202
202
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -305,7 +305,7 @@ var oi = ii, si = { class: "flex items-center gap-4 mb-4" }, ci = { class: "font
305
305
  }
306
306
  });
307
307
  //#endregion
308
- //#region virtual:intlify-i18n-0
308
+ //#region virtual:intlify-i18n-1
309
309
  function _i(e) {
310
310
  let t = e;
311
311
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -412,7 +412,7 @@ var vi = gi, yi = { class: "flex items-center gap-4 mb-4" }, bi = { class: "font
412
412
  }
413
413
  });
414
414
  //#endregion
415
- //#region virtual:intlify-i18n-1
415
+ //#region virtual:intlify-i18n-2
416
416
  function Ei(e) {
417
417
  let t = e;
418
418
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -16016,7 +16016,7 @@ var gS = /*#__PURE__*/ pS(mS, [["render", hS]]), _S = {
16016
16016
  }
16017
16017
  });
16018
16018
  //#endregion
16019
- //#region virtual:intlify-i18n-2
16019
+ //#region virtual:intlify-i18n-3
16020
16020
  function ES(e) {
16021
16021
  let t = e;
16022
16022
  t.__i18n = t.__i18n || [], t.__i18n.push({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.103.0-beta.4",
4
+ "version": "0.103.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",