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