@copilotkit/web-inspector 1.67.1 → 1.68.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.
package/dist/index.umd.js CHANGED
@@ -282,7 +282,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
282
282
 
283
283
  //#endregion
284
284
  //#region package.json
285
- var version = "1.67.1";
285
+ var version = "1.68.0";
286
286
 
287
287
  //#endregion
288
288
  //#region src/lib/telemetry.ts
@@ -4275,10 +4275,9 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(stateValue))}</p
4275
4275
  }
4276
4276
  `;
4277
4277
  var ɵCpkThreadDetails = class extends CpkThreadInspector {};
4278
- if (!customElements.get("cpk-thread-list")) customElements.define("cpk-thread-list", CpkThreadList);
4279
- if (!customElements.get(THREAD_INSPECTOR_TAG)) customElements.define(THREAD_INSPECTOR_TAG, CpkThreadInspector);
4280
- if (!customElements.get("cpk-thread-details")) customElements.define("cpk-thread-details", ɵCpkThreadDetails);
4281
- if (!customElements.get("cpk-memory-list")) customElements.define("cpk-memory-list", CpkMemoryList);
4278
+ function defineElementOnce(registry, tag, ctor) {
4279
+ if (!registry.get(tag)) registry.define(tag, ctor);
4280
+ }
4282
4281
  var WebInspectorElement = class extends lit.LitElement {
4283
4282
  constructor(..._args4) {
4284
4283
  super(..._args4);
@@ -10462,8 +10461,13 @@ ${prettyEvent}</pre
10462
10461
  color: #010507 !important;
10463
10462
  }
10464
10463
  `];
10465
- function defineWebInspector() {
10466
- if (!customElements.get(WEB_INSPECTOR_TAG)) customElements.define(WEB_INSPECTOR_TAG, WebInspectorElement);
10464
+ function defineWebInspector(registry = globalThis.customElements) {
10465
+ if (!registry) return;
10466
+ defineElementOnce(registry, "cpk-thread-list", CpkThreadList);
10467
+ defineElementOnce(registry, THREAD_INSPECTOR_TAG, CpkThreadInspector);
10468
+ defineElementOnce(registry, "cpk-thread-details", ɵCpkThreadDetails);
10469
+ defineElementOnce(registry, "cpk-memory-list", CpkMemoryList);
10470
+ defineElementOnce(registry, WEB_INSPECTOR_TAG, WebInspectorElement);
10467
10471
  }
10468
10472
  defineWebInspector();
10469
10473