@automattic/agenttic-client 0.1.13 → 0.1.14
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/{BarChart-Cid6YH81.js → BarChart-CeqsqG1F.js} +23 -23
- package/dist/client/index.d.ts.map +1 -1
- package/dist/index.js +1035 -993
- package/dist/marked.esm-CXPn2rbO.js +1090 -0
- package/dist/mocks.js +1 -1
- package/dist/parseBlocks-DtWG2dnE.js +34 -0
- package/dist/parseIncompleteMarkdown-Di9Hun9H.js +211 -0
- package/dist/react/agentManager.d.ts +1 -0
- package/dist/react/agentManager.d.ts.map +1 -1
- package/dist/react/useAgentChat.d.ts +2 -2
- package/dist/react/useAgentChat.d.ts.map +1 -1
- package/dist/utils/createMessageRenderer.d.ts +3 -1
- package/dist/utils/createMessageRenderer.d.ts.map +1 -1
- package/dist/utils/streaming/parseBlocks.d.ts +26 -0
- package/dist/utils/streaming/parseBlocks.d.ts.map +1 -0
- package/dist/utils/streaming/parseIncompleteMarkdown.d.ts +24 -0
- package/dist/utils/streaming/parseIncompleteMarkdown.d.ts.map +1 -0
- package/package.json +5 -3
- package/dist/utils/markdownParser.d.ts +0 -25
- package/dist/utils/markdownParser.d.ts.map +0 -1
|
@@ -62,10 +62,10 @@ function hr() {
|
|
|
62
62
|
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var q = !1, K = !1, V = !1, Ie = !1, Me = !1, ie;
|
|
66
66
|
ie = Symbol.for("react.module.reference");
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === p || e === j ||
|
|
67
|
+
function $e(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === p || e === j || Me || e === _ || e === C || e === y || Ie || e === A || q || K || V || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === S || e.$$typeof === a || e.$$typeof === m || e.$$typeof === v || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -126,13 +126,13 @@ function hr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var k = Object.assign,
|
|
129
|
+
var k = Object.assign, M = 0, ue, le, ce, fe, de, ve, ge;
|
|
130
130
|
function pe() {
|
|
131
131
|
}
|
|
132
132
|
pe.__reactDisabledLog = !0;
|
|
133
133
|
function We() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
135
|
+
if (M === 0) {
|
|
136
136
|
ue = console.log, le = console.info, ce = console.warn, fe = console.error, de = console.group, ve = console.groupCollapsed, ge = console.groupEnd;
|
|
137
137
|
var e = {
|
|
138
138
|
configurable: !0,
|
|
@@ -150,12 +150,12 @@ function hr() {
|
|
|
150
150
|
groupEnd: e
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
M++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function Ne() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (M--, M === 0) {
|
|
159
159
|
var e = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
@@ -185,7 +185,7 @@ function hr() {
|
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
M < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
var G = O.ReactCurrentDispatcher, H;
|
|
@@ -314,8 +314,8 @@ function hr() {
|
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var $ = Object.prototype.hasOwnProperty, he = {}, ye = O.ReactDebugCurrentFrame;
|
|
318
|
+
function J(e) {
|
|
319
319
|
if (e) {
|
|
320
320
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
321
321
|
ye.setExtraStackFrame(t);
|
|
@@ -324,7 +324,7 @@ function hr() {
|
|
|
324
324
|
}
|
|
325
325
|
function Ue(e, r, t, n, u) {
|
|
326
326
|
{
|
|
327
|
-
var l = Function.call.bind(
|
|
327
|
+
var l = Function.call.bind($);
|
|
328
328
|
for (var i in e)
|
|
329
329
|
if (l(e, i)) {
|
|
330
330
|
var o = void 0;
|
|
@@ -337,7 +337,7 @@ function hr() {
|
|
|
337
337
|
} catch (d) {
|
|
338
338
|
o = d;
|
|
339
339
|
}
|
|
340
|
-
o && !(o instanceof Error) && (
|
|
340
|
+
o && !(o instanceof Error) && (J(u), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), J(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, J(u), c("Failed %s type: %s", t, o.message), J(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -345,13 +345,13 @@ function hr() {
|
|
|
345
345
|
function Z(e) {
|
|
346
346
|
return ze(e);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Je(e) {
|
|
349
349
|
{
|
|
350
350
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function qe(e) {
|
|
355
355
|
try {
|
|
356
356
|
return be(e), !1;
|
|
357
357
|
} catch {
|
|
@@ -362,8 +362,8 @@ function hr() {
|
|
|
362
362
|
return "" + e;
|
|
363
363
|
}
|
|
364
364
|
function Ee(e) {
|
|
365
|
-
if (
|
|
366
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
365
|
+
if (qe(e))
|
|
366
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), be(e);
|
|
367
367
|
}
|
|
368
368
|
var _e = O.ReactCurrentOwner, Ke = {
|
|
369
369
|
key: !0,
|
|
@@ -372,7 +372,7 @@ function hr() {
|
|
|
372
372
|
__source: !0
|
|
373
373
|
}, Re, Se;
|
|
374
374
|
function Ge(e) {
|
|
375
|
-
if (
|
|
375
|
+
if ($.call(e, "ref")) {
|
|
376
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
377
|
if (r && r.isReactWarning)
|
|
378
378
|
return !1;
|
|
@@ -380,7 +380,7 @@ function hr() {
|
|
|
380
380
|
return e.ref !== void 0;
|
|
381
381
|
}
|
|
382
382
|
function He(e) {
|
|
383
|
-
if (
|
|
383
|
+
if ($.call(e, "key")) {
|
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
385
|
if (r && r.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -446,7 +446,7 @@ function hr() {
|
|
|
446
446
|
var l, i = {}, o = null, b = null;
|
|
447
447
|
t !== void 0 && (Ee(t), o = "" + t), He(r) && (Ee(r.key), o = "" + r.key), Ge(r) && (b = r.ref, Xe(r, u));
|
|
448
448
|
for (l in r)
|
|
449
|
-
|
|
449
|
+
$.call(r, l) && !Ke.hasOwnProperty(l) && (i[l] = r[l]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
451
451
|
var d = e.defaultProps;
|
|
452
452
|
for (l in d)
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
572
572
|
var Pe = {};
|
|
573
573
|
function je(e, r, t, n, u, l) {
|
|
574
574
|
{
|
|
575
|
-
var i =
|
|
575
|
+
var i = $e(e);
|
|
576
576
|
if (!i) {
|
|
577
577
|
var o = "";
|
|
578
578
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -597,7 +597,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
597
597
|
else
|
|
598
598
|
Oe(R, e);
|
|
599
599
|
}
|
|
600
|
-
if (
|
|
600
|
+
if ($.call(r, "key")) {
|
|
601
601
|
var D = P(e), E = Object.keys(r).filter(function(fr) {
|
|
602
602
|
return fr !== "key";
|
|
603
603
|
}), te = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -737,8 +737,8 @@ const yr = (f, s = "") => {
|
|
|
737
737
|
if (m === "item-comparison" && s && s.length > 0) {
|
|
738
738
|
let c = "";
|
|
739
739
|
return s.forEach((w) => {
|
|
740
|
-
w != null && w.data && w.data.forEach((
|
|
741
|
-
const K =
|
|
740
|
+
w != null && w.data && w.data.forEach((q) => {
|
|
741
|
+
const K = q.label || "", V = x(K, C);
|
|
742
742
|
V.length > c.length && (c = V);
|
|
743
743
|
});
|
|
744
744
|
}), ae(80, 6, 25, c.length);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EACN,YAAY,EAGZ,iBAAiB,EAEjB,UAAU,EAIV,MAAM,eAAe,CAAC;AAsEvB;;GAEG;AACH,iBAAS,uBAAuB,IAAI,IAAI,CAEvC;AAED;;;;GAIG;AACH,iBAAS,qCAAqC,CAAE,WAAW,EAAE,GAAG,EAAE,GAAI,GAAG,EAAE,CA4B1E;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EACN,YAAY,EAGZ,iBAAiB,EAEjB,UAAU,EAIV,MAAM,eAAe,CAAC;AAsEvB;;GAEG;AACH,iBAAS,uBAAuB,IAAI,IAAI,CAEvC;AAED;;;;GAIG;AACH,iBAAS,qCAAqC,CAAE,WAAW,EAAE,GAAG,EAAE,GAAI,GAAG,EAAE,CA4B1E;AAusBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,qCAAqC,EAAE,uBAAuB,EAAE,CAAC;AAE1E,wBAAgB,YAAY,CAAE,MAAM,EAAE,YAAY,GAAI,MAAM,CAsV3D;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAAE,UAAU,CAAE,CAavB"}
|