@compilot/react-sdk 2.124.0-dev → 2.126.0-dev

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.
@@ -256,47 +256,77 @@ var useComPilotConfig = function useComPilotConfig() {
256
256
 
257
257
  function _regeneratorRuntime() {
258
258
  _regeneratorRuntime = function () {
259
- return e;
259
+ return r;
260
260
  };
261
261
  var t,
262
- e = {},
263
- r = Object.prototype,
264
- n = r.hasOwnProperty,
265
- o = Object.defineProperty || function (t, e, r) {
266
- t[e] = r.value;
267
- },
268
- i = "function" == typeof Symbol ? Symbol : {},
269
- a = i.iterator || "@@iterator",
270
- c = i.asyncIterator || "@@asyncIterator",
271
- u = i.toStringTag || "@@toStringTag";
272
- function define(t, e, r) {
273
- return Object.defineProperty(t, e, {
274
- value: r,
275
- enumerable: !0,
276
- configurable: !0,
277
- writable: !0
278
- }), t[e];
262
+ r = {},
263
+ e = Object.prototype,
264
+ n = e.hasOwnProperty,
265
+ o = "function" == typeof Symbol ? Symbol : {},
266
+ i = o.iterator || "@@iterator",
267
+ a = o.asyncIterator || "@@asyncIterator",
268
+ u = o.toStringTag || "@@toStringTag";
269
+ function c(t, r, e, n) {
270
+ return Object.defineProperty(t, r, {
271
+ value: e,
272
+ enumerable: !n,
273
+ configurable: !n,
274
+ writable: !n
275
+ });
279
276
  }
280
277
  try {
281
- define({}, "");
278
+ c({}, "");
282
279
  } catch (t) {
283
- define = function (t, e, r) {
284
- return t[e] = r;
280
+ c = function (t, r, e) {
281
+ return t[r] = e;
285
282
  };
286
283
  }
287
- function wrap(t, e, r, n) {
284
+ function h(r, e, n, o) {
288
285
  var i = e && e.prototype instanceof Generator ? e : Generator,
289
- a = Object.create(i.prototype),
290
- c = new Context(n || []);
291
- return o(a, "_invoke", {
292
- value: makeInvokeMethod(t, r, c)
293
- }), a;
286
+ a = Object.create(i.prototype);
287
+ return c(a, "_invoke", function (r, e, n) {
288
+ var o = 1;
289
+ return function (i, a) {
290
+ if (3 === o) throw Error("Generator is already running");
291
+ if (4 === o) {
292
+ if ("throw" === i) throw a;
293
+ return {
294
+ value: t,
295
+ done: !0
296
+ };
297
+ }
298
+ for (n.method = i, n.arg = a;;) {
299
+ var u = n.delegate;
300
+ if (u) {
301
+ var c = d(u, n);
302
+ if (c) {
303
+ if (c === f) continue;
304
+ return c;
305
+ }
306
+ }
307
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
308
+ if (1 === o) throw o = 4, n.arg;
309
+ n.dispatchException(n.arg);
310
+ } else "return" === n.method && n.abrupt("return", n.arg);
311
+ o = 3;
312
+ var h = s(r, e, n);
313
+ if ("normal" === h.type) {
314
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
315
+ return {
316
+ value: h.arg,
317
+ done: n.done
318
+ };
319
+ }
320
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
321
+ }
322
+ };
323
+ }(r, n, new Context(o || [])), !0), a;
294
324
  }
295
- function tryCatch(t, e, r) {
325
+ function s(t, r, e) {
296
326
  try {
297
327
  return {
298
328
  type: "normal",
299
- arg: t.call(e, r)
329
+ arg: t.call(r, e)
300
330
  };
301
331
  } catch (t) {
302
332
  return {
@@ -305,255 +335,193 @@ function _regeneratorRuntime() {
305
335
  };
306
336
  }
307
337
  }
308
- e.wrap = wrap;
309
- var h = "suspendedStart",
310
- l = "suspendedYield",
311
- f = "executing",
312
- s = "completed",
313
- y = {};
338
+ r.wrap = h;
339
+ var f = {};
314
340
  function Generator() {}
315
341
  function GeneratorFunction() {}
316
342
  function GeneratorFunctionPrototype() {}
317
- var p = {};
318
- define(p, a, function () {
343
+ var l = {};
344
+ c(l, i, function () {
319
345
  return this;
320
346
  });
321
- var d = Object.getPrototypeOf,
322
- v = d && d(d(values([])));
323
- v && v !== r && n.call(v, a) && (p = v);
324
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
325
- function defineIteratorMethods(t) {
326
- ["next", "throw", "return"].forEach(function (e) {
327
- define(t, e, function (t) {
328
- return this._invoke(e, t);
347
+ var p = Object.getPrototypeOf,
348
+ y = p && p(p(x([])));
349
+ y && y !== e && n.call(y, i) && (l = y);
350
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
351
+ function g(t) {
352
+ ["next", "throw", "return"].forEach(function (r) {
353
+ c(t, r, function (t) {
354
+ return this._invoke(r, t);
329
355
  });
330
356
  });
331
357
  }
332
- function AsyncIterator(t, e) {
333
- function invoke(r, o, i, a) {
334
- var c = tryCatch(t[r], t, o);
358
+ function AsyncIterator(t, r) {
359
+ function e(o, i, a, u) {
360
+ var c = s(t[o], t, i);
335
361
  if ("throw" !== c.type) {
336
- var u = c.arg,
337
- h = u.value;
338
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
339
- invoke("next", t, i, a);
362
+ var h = c.arg,
363
+ f = h.value;
364
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
365
+ e("next", t, a, u);
340
366
  }, function (t) {
341
- invoke("throw", t, i, a);
342
- }) : e.resolve(h).then(function (t) {
343
- u.value = t, i(u);
367
+ e("throw", t, a, u);
368
+ }) : r.resolve(f).then(function (t) {
369
+ h.value = t, a(h);
344
370
  }, function (t) {
345
- return invoke("throw", t, i, a);
371
+ return e("throw", t, a, u);
346
372
  });
347
373
  }
348
- a(c.arg);
374
+ u(c.arg);
349
375
  }
350
- var r;
351
- o(this, "_invoke", {
352
- value: function (t, n) {
353
- function callInvokeWithMethodAndArg() {
354
- return new e(function (e, r) {
355
- invoke(t, n, e, r);
356
- });
357
- }
358
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
359
- }
360
- });
361
- }
362
- function makeInvokeMethod(e, r, n) {
363
- var o = h;
364
- return function (i, a) {
365
- if (o === f) throw Error("Generator is already running");
366
- if (o === s) {
367
- if ("throw" === i) throw a;
368
- return {
369
- value: t,
370
- done: !0
371
- };
372
- }
373
- for (n.method = i, n.arg = a;;) {
374
- var c = n.delegate;
375
- if (c) {
376
- var u = maybeInvokeDelegate(c, n);
377
- if (u) {
378
- if (u === y) continue;
379
- return u;
380
- }
381
- }
382
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
383
- if (o === h) throw o = s, n.arg;
384
- n.dispatchException(n.arg);
385
- } else "return" === n.method && n.abrupt("return", n.arg);
386
- o = f;
387
- var p = tryCatch(e, r, n);
388
- if ("normal" === p.type) {
389
- if (o = n.done ? s : l, p.arg === y) continue;
390
- return {
391
- value: p.arg,
392
- done: n.done
393
- };
394
- }
395
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
376
+ var o;
377
+ c(this, "_invoke", function (t, n) {
378
+ function i() {
379
+ return new r(function (r, o) {
380
+ e(t, n, r, o);
381
+ });
396
382
  }
397
- };
383
+ return o = o ? o.then(i, i) : i();
384
+ }, !0);
398
385
  }
399
- function maybeInvokeDelegate(e, r) {
400
- var n = r.method,
401
- o = e.iterator[n];
402
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
403
- var i = tryCatch(o, e.iterator, r.arg);
404
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
386
+ function d(r, e) {
387
+ var n = e.method,
388
+ o = r.i[n];
389
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
390
+ var i = s(o, r.i, e.arg);
391
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
405
392
  var a = i.arg;
406
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
393
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
407
394
  }
408
- function pushTryEntry(t) {
409
- var e = {
410
- tryLoc: t[0]
411
- };
412
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
395
+ function w(t) {
396
+ this.tryEntries.push(t);
413
397
  }
414
- function resetTryEntry(t) {
415
- var e = t.completion || {};
416
- e.type = "normal", delete e.arg, t.completion = e;
398
+ function m(r) {
399
+ var e = r[4] || {};
400
+ e.type = "normal", e.arg = t, r[4] = e;
417
401
  }
418
402
  function Context(t) {
419
- this.tryEntries = [{
420
- tryLoc: "root"
421
- }], t.forEach(pushTryEntry, this), this.reset(!0);
403
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
422
404
  }
423
- function values(e) {
424
- if (e || "" === e) {
425
- var r = e[a];
426
- if (r) return r.call(e);
427
- if ("function" == typeof e.next) return e;
428
- if (!isNaN(e.length)) {
405
+ function x(r) {
406
+ if (null != r) {
407
+ var e = r[i];
408
+ if (e) return e.call(r);
409
+ if ("function" == typeof r.next) return r;
410
+ if (!isNaN(r.length)) {
429
411
  var o = -1,
430
- i = function next() {
431
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
432
- return next.value = t, next.done = !0, next;
412
+ a = function e() {
413
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
414
+ return e.value = t, e.done = !0, e;
433
415
  };
434
- return i.next = i;
416
+ return a.next = a;
435
417
  }
436
418
  }
437
- throw new TypeError(typeof e + " is not iterable");
419
+ throw new TypeError(typeof r + " is not iterable");
438
420
  }
439
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
440
- value: GeneratorFunctionPrototype,
441
- configurable: !0
442
- }), o(GeneratorFunctionPrototype, "constructor", {
443
- value: GeneratorFunction,
444
- configurable: !0
445
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
446
- var e = "function" == typeof t && t.constructor;
447
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
448
- }, e.mark = function (t) {
449
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
450
- }, e.awrap = function (t) {
421
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
422
+ var r = "function" == typeof t && t.constructor;
423
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
424
+ }, r.mark = function (t) {
425
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
426
+ }, r.awrap = function (t) {
451
427
  return {
452
428
  __await: t
453
429
  };
454
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
430
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
455
431
  return this;
456
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
432
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
457
433
  void 0 === i && (i = Promise);
458
- var a = new AsyncIterator(wrap(t, r, n, o), i);
459
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
434
+ var a = new AsyncIterator(h(t, e, n, o), i);
435
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
460
436
  return t.done ? t.value : a.next();
461
437
  });
462
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
438
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
463
439
  return this;
464
- }), define(g, "toString", function () {
440
+ }), c(v, "toString", function () {
465
441
  return "[object Generator]";
466
- }), e.keys = function (t) {
467
- var e = Object(t),
468
- r = [];
469
- for (var n in e) r.push(n);
470
- return r.reverse(), function next() {
471
- for (; r.length;) {
472
- var t = r.pop();
473
- if (t in e) return next.value = t, next.done = !1, next;
474
- }
475
- return next.done = !0, next;
442
+ }), r.keys = function (t) {
443
+ var r = Object(t),
444
+ e = [];
445
+ for (var n in r) e.unshift(n);
446
+ return function t() {
447
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
448
+ return t.done = !0, t;
476
449
  };
477
- }, e.values = values, Context.prototype = {
450
+ }, r.values = x, Context.prototype = {
478
451
  constructor: Context,
479
- reset: function (e) {
480
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
452
+ reset: function (r) {
453
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
481
454
  },
482
455
  stop: function () {
483
456
  this.done = !0;
484
- var t = this.tryEntries[0].completion;
457
+ var t = this.tryEntries[0][4];
485
458
  if ("throw" === t.type) throw t.arg;
486
459
  return this.rval;
487
460
  },
488
- dispatchException: function (e) {
489
- if (this.done) throw e;
490
- var r = this;
491
- function handle(n, o) {
492
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
461
+ dispatchException: function (r) {
462
+ if (this.done) throw r;
463
+ var e = this;
464
+ function n(t) {
465
+ a.type = "throw", a.arg = r, e.next = t;
493
466
  }
494
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
467
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
495
468
  var i = this.tryEntries[o],
496
- a = i.completion;
497
- if ("root" === i.tryLoc) return handle("end");
498
- if (i.tryLoc <= this.prev) {
499
- var c = n.call(i, "catchLoc"),
500
- u = n.call(i, "finallyLoc");
501
- if (c && u) {
502
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
503
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
504
- } else if (c) {
505
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
506
- } else {
507
- if (!u) throw Error("try statement without catch or finally");
508
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
509
- }
469
+ a = i[4],
470
+ u = this.prev,
471
+ c = i[1],
472
+ h = i[2];
473
+ if (-1 === i[0]) return n("end"), !1;
474
+ if (!c && !h) throw Error("try statement without catch or finally");
475
+ if (null != i[0] && i[0] <= u) {
476
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
477
+ if (u < h) return n(h), !1;
510
478
  }
511
479
  }
512
480
  },
513
- abrupt: function (t, e) {
514
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
515
- var o = this.tryEntries[r];
516
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
517
- var i = o;
481
+ abrupt: function (t, r) {
482
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
483
+ var n = this.tryEntries[e];
484
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
485
+ var o = n;
518
486
  break;
519
487
  }
520
488
  }
521
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
522
- var a = i ? i.completion : {};
523
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
489
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
490
+ var i = o ? o[4] : {};
491
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
524
492
  },
525
- complete: function (t, e) {
493
+ complete: function (t, r) {
526
494
  if ("throw" === t.type) throw t.arg;
527
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
495
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
528
496
  },
529
497
  finish: function (t) {
530
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
531
- var r = this.tryEntries[e];
532
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
498
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
499
+ var e = this.tryEntries[r];
500
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
533
501
  }
534
502
  },
535
503
  catch: function (t) {
536
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
537
- var r = this.tryEntries[e];
538
- if (r.tryLoc === t) {
539
- var n = r.completion;
504
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
505
+ var e = this.tryEntries[r];
506
+ if (e[0] === t) {
507
+ var n = e[4];
540
508
  if ("throw" === n.type) {
541
509
  var o = n.arg;
542
- resetTryEntry(r);
510
+ m(e);
543
511
  }
544
512
  return o;
545
513
  }
546
514
  }
547
515
  throw Error("illegal catch attempt");
548
516
  },
549
- delegateYield: function (e, r, n) {
517
+ delegateYield: function (r, e, n) {
550
518
  return this.delegate = {
551
- iterator: values(e),
552
- resultName: r,
553
- nextLoc: n
554
- }, "next" === this.method && (this.arg = t), y;
519
+ i: x(r),
520
+ r: e,
521
+ n: n
522
+ }, "next" === this.method && (this.arg = t), f;
555
523
  }
556
- }, e;
524
+ }, r;
557
525
  }
558
526
 
559
527
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/react-sdk",
3
- "version": "2.124.0",
3
+ "version": "2.126.0",
4
4
  "description": "ComPilot React SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/react-sdk",
3
- "version": "2.124.0-dev",
3
+ "version": "2.126.0-dev",
4
4
  "description": "ComPilot React SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -34,9 +34,9 @@
34
34
  "dependencies": {
35
35
  "pino": "^9.6.0",
36
36
  "zod": "^3.24.3",
37
- "@compilot/web-sdk": "2.123.0-dev",
37
+ "@compilot/web-sdk": "2.125.0-dev",
38
38
  "@nexeraid/identity-api-client": "2.35.1-dev",
39
- "@nexeraid/identity-schemas": "2.140.0-dev",
39
+ "@nexeraid/identity-schemas": "2.142.0-dev",
40
40
  "@nexeraid/logger": "2.35.1-dev"
41
41
  },
42
42
  "peerDependencies": {