@blueking/ai-ui-sdk 0.0.15-beta.22 → 0.0.15-beta.24
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/component/render-input/index.vue.css +17 -17
- package/dist/component/render-input/index.vue.js +1 -1
- package/dist/component/render-input/render-drag.vue.css +5 -5
- package/dist/component/render-input/render-drag.vue.js +1 -1
- package/dist/component/render-input/render-quill.script.vue.js +2 -2
- package/dist/component/render-knowledge-icon/index.vue.css +1 -1
- package/dist/component/render-knowledge-icon/index.vue.js +1 -1
- package/dist/component/render-markdown/mark-down.js +1 -1
- package/dist/component/render-message/openai-message.vue.css +15 -15
- package/dist/component/render-message/openai-message.vue.js +1 -1
- package/dist/component/render-message/skeleton-message.vue.css +1 -1
- package/dist/component/render-message/skeleton-message.vue.js +1 -1
- package/dist/component/render-message/system-message.vue.css +2 -2
- package/dist/component/render-message/system-message.vue.js +1 -1
- package/dist/component/render-message/time-message.vue.css +1 -1
- package/dist/component/render-message/time-message.vue.js +1 -1
- package/dist/component/render-message/token-expired-message.vue.css +9 -9
- package/dist/component/render-message/token-expired-message.vue.js +1 -1
- package/dist/component/render-message/user-message.vue.css +15 -15
- package/dist/component/render-message/user-message.vue.js +1 -1
- package/dist/component/render-stop/index.vue.css +2 -2
- package/dist/component/render-stop/index.vue.js +1 -1
- package/dist/hooks/use-chat.js +22 -40
- package/package.json +11 -11
- package/dist/node_modules/call-bind/index.js +0 -24
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/dist/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/dist/node_modules/call-bound/index.js +0 -19
- package/dist/node_modules/deep-equal/index.js +0 -112
- package/dist/node_modules/define-data-property/index.js +0 -56
- package/dist/node_modules/define-properties/index.js +0 -47
- package/dist/node_modules/dunder-proto/get.js +0 -30
- package/dist/node_modules/es-define-property/index.js +0 -14
- package/dist/node_modules/es-errors/eval.js +0 -4
- package/dist/node_modules/es-errors/index.js +0 -4
- package/dist/node_modules/es-errors/range.js +0 -4
- package/dist/node_modules/es-errors/ref.js +0 -4
- package/dist/node_modules/es-errors/syntax.js +0 -4
- package/dist/node_modules/es-errors/type.js +0 -4
- package/dist/node_modules/es-errors/uri.js +0 -4
- package/dist/node_modules/es-object-atoms/index.js +0 -4
- package/dist/node_modules/extend/index.js +0 -117
- package/dist/node_modules/fast-diff/diff.js +0 -738
- package/dist/node_modules/function-bind/implementation.js +0 -84
- package/dist/node_modules/function-bind/index.js +0 -5
- package/dist/node_modules/functions-have-names/index.js +0 -31
- package/dist/node_modules/get-intrinsic/index.js +0 -378
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/dist/node_modules/get-proto/index.js +0 -27
- package/dist/node_modules/gopd/gOPD.js +0 -4
- package/dist/node_modules/gopd/index.js +0 -15
- package/dist/node_modules/has-property-descriptors/index.js +0 -22
- package/dist/node_modules/has-symbols/index.js +0 -14
- package/dist/node_modules/has-symbols/shams.js +0 -45
- package/dist/node_modules/has-tostringtag/shams.js +0 -8
- package/dist/node_modules/hasown/index.js +0 -8
- package/dist/node_modules/is-arguments/index.js +0 -44
- package/dist/node_modules/is-date-object/index.js +0 -27
- package/dist/node_modules/is-regex/index.js +0 -69
- package/dist/node_modules/math-intrinsics/abs.js +0 -4
- package/dist/node_modules/math-intrinsics/floor.js +0 -4
- package/dist/node_modules/math-intrinsics/isNaN.js +0 -6
- package/dist/node_modules/math-intrinsics/max.js +0 -4
- package/dist/node_modules/math-intrinsics/min.js +0 -4
- package/dist/node_modules/math-intrinsics/pow.js +0 -4
- package/dist/node_modules/math-intrinsics/round.js +0 -4
- package/dist/node_modules/math-intrinsics/sign.js +0 -11
- package/dist/node_modules/object-is/implementation.js +0 -19
- package/dist/node_modules/object-is/index.js +0 -18
- package/dist/node_modules/object-is/polyfill.js +0 -7
- package/dist/node_modules/object-is/shim.js +0 -14
- package/dist/node_modules/object-keys/implementation.js +0 -122
- package/dist/node_modules/object-keys/index.js +0 -32
- package/dist/node_modules/object-keys/isArguments.js +0 -17
- package/dist/node_modules/quill/dist/quill.js +0 -11562
- package/dist/node_modules/quill-delta/lib/delta.js +0 -344
- package/dist/node_modules/quill-delta/lib/op.js +0 -155
- package/dist/node_modules/regexp.prototype.flags/implementation.js +0 -39
- package/dist/node_modules/regexp.prototype.flags/index.js +0 -18
- package/dist/node_modules/regexp.prototype.flags/polyfill.js +0 -39
- package/dist/node_modules/regexp.prototype.flags/shim.js +0 -26
- package/dist/node_modules/set-function-length/index.js +0 -42
- package/dist/node_modules/set-function-name/index.js +0 -23
- package/dist/node_modules/x-mavon-editor/dist/mavon-editor.js +0 -31
@@ -1,44 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var hasToStringTag = require('../has-tostringtag/shams.js')();
|
4
|
-
var callBound = require('../call-bound/index.js');
|
5
|
-
|
6
|
-
var $toString = callBound('Object.prototype.toString');
|
7
|
-
|
8
|
-
/** @type {import('.')} */
|
9
|
-
var isStandardArguments = function isArguments(value) {
|
10
|
-
if (
|
11
|
-
hasToStringTag
|
12
|
-
&& value
|
13
|
-
&& typeof value === 'object'
|
14
|
-
&& Symbol.toStringTag in value
|
15
|
-
) {
|
16
|
-
return false;
|
17
|
-
}
|
18
|
-
return $toString(value) === '[object Arguments]';
|
19
|
-
};
|
20
|
-
|
21
|
-
/** @type {import('.')} */
|
22
|
-
var isLegacyArguments = function isArguments(value) {
|
23
|
-
if (isStandardArguments(value)) {
|
24
|
-
return true;
|
25
|
-
}
|
26
|
-
return value !== null
|
27
|
-
&& typeof value === 'object'
|
28
|
-
&& 'length' in value
|
29
|
-
&& typeof value.length === 'number'
|
30
|
-
&& value.length >= 0
|
31
|
-
&& $toString(value) !== '[object Array]'
|
32
|
-
&& 'callee' in value
|
33
|
-
&& $toString(value.callee) === '[object Function]';
|
34
|
-
};
|
35
|
-
|
36
|
-
var supportsStandardArguments = (function () {
|
37
|
-
return isStandardArguments(arguments);
|
38
|
-
}());
|
39
|
-
|
40
|
-
// @ts-expect-error TODO make this not error
|
41
|
-
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
42
|
-
|
43
|
-
/** @type {import('.')} */
|
44
|
-
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var callBound = require('../call-bound/index.js');
|
4
|
-
|
5
|
-
var getDay = callBound('Date.prototype.getDay');
|
6
|
-
/** @type {import('.')} */
|
7
|
-
var tryDateObject = function tryDateGetDayCall(value) {
|
8
|
-
try {
|
9
|
-
getDay(value);
|
10
|
-
return true;
|
11
|
-
} catch (e) {
|
12
|
-
return false;
|
13
|
-
}
|
14
|
-
};
|
15
|
-
|
16
|
-
/** @type {(value: unknown) => string} */
|
17
|
-
var toStr = callBound('Object.prototype.toString');
|
18
|
-
var dateClass = '[object Date]';
|
19
|
-
var hasToStringTag = require('../has-tostringtag/shams.js')();
|
20
|
-
|
21
|
-
/** @type {import('.')} */
|
22
|
-
module.exports = function isDateObject(value) {
|
23
|
-
if (typeof value !== 'object' || value === null) {
|
24
|
-
return false;
|
25
|
-
}
|
26
|
-
return hasToStringTag ? tryDateObject(value) : toStr(value) === dateClass;
|
27
|
-
};
|
@@ -1,69 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var callBound = require('../call-bound/index.js');
|
4
|
-
var hasToStringTag = require('../has-tostringtag/shams.js')();
|
5
|
-
var hasOwn = require('../hasown/index.js');
|
6
|
-
var gOPD = require('../gopd/index.js');
|
7
|
-
|
8
|
-
/** @type {import('.')} */
|
9
|
-
var fn;
|
10
|
-
|
11
|
-
if (hasToStringTag) {
|
12
|
-
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
13
|
-
var $exec = callBound('RegExp.prototype.exec');
|
14
|
-
/** @type {object} */
|
15
|
-
var isRegexMarker = {};
|
16
|
-
|
17
|
-
var throwRegexMarker = function () {
|
18
|
-
throw isRegexMarker;
|
19
|
-
};
|
20
|
-
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
21
|
-
var badStringifier = {
|
22
|
-
toString: throwRegexMarker,
|
23
|
-
valueOf: throwRegexMarker
|
24
|
-
};
|
25
|
-
|
26
|
-
if (typeof Symbol.toPrimitive === 'symbol') {
|
27
|
-
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
28
|
-
}
|
29
|
-
|
30
|
-
/** @type {import('.')} */
|
31
|
-
// @ts-expect-error TS can't figure out that the $exec call always throws
|
32
|
-
// eslint-disable-next-line consistent-return
|
33
|
-
fn = function isRegex(value) {
|
34
|
-
if (!value || typeof value !== 'object') {
|
35
|
-
return false;
|
36
|
-
}
|
37
|
-
|
38
|
-
// eslint-disable-next-line no-extra-parens
|
39
|
-
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
40
|
-
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
41
|
-
if (!hasLastIndexDataProperty) {
|
42
|
-
return false;
|
43
|
-
}
|
44
|
-
|
45
|
-
try {
|
46
|
-
// eslint-disable-next-line no-extra-parens
|
47
|
-
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
48
|
-
} catch (e) {
|
49
|
-
return e === isRegexMarker;
|
50
|
-
}
|
51
|
-
};
|
52
|
-
} else {
|
53
|
-
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
54
|
-
var $toString = callBound('Object.prototype.toString');
|
55
|
-
/** @const @type {'[object RegExp]'} */
|
56
|
-
var regexClass = '[object RegExp]';
|
57
|
-
|
58
|
-
/** @type {import('.')} */
|
59
|
-
fn = function isRegex(value) {
|
60
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
61
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
62
|
-
return false;
|
63
|
-
}
|
64
|
-
|
65
|
-
return $toString(value) === regexClass;
|
66
|
-
};
|
67
|
-
}
|
68
|
-
|
69
|
-
module.exports = fn;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var numberIsNaN = function (value) {
|
4
|
-
return value !== value;
|
5
|
-
};
|
6
|
-
|
7
|
-
module.exports = function is(a, b) {
|
8
|
-
if (a === 0 && b === 0) {
|
9
|
-
return 1 / a === 1 / b;
|
10
|
-
}
|
11
|
-
if (a === b) {
|
12
|
-
return true;
|
13
|
-
}
|
14
|
-
if (numberIsNaN(a) && numberIsNaN(b)) {
|
15
|
-
return true;
|
16
|
-
}
|
17
|
-
return false;
|
18
|
-
};
|
19
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var define = require('../define-properties/index.js');
|
4
|
-
var callBind = require('../call-bind/index.js');
|
5
|
-
|
6
|
-
var implementation = require('./implementation.js');
|
7
|
-
var getPolyfill = require('./polyfill.js');
|
8
|
-
var shim = require('./shim.js');
|
9
|
-
|
10
|
-
var polyfill = callBind(getPolyfill(), Object);
|
11
|
-
|
12
|
-
define(polyfill, {
|
13
|
-
getPolyfill: getPolyfill,
|
14
|
-
implementation: implementation,
|
15
|
-
shim: shim
|
16
|
-
});
|
17
|
-
|
18
|
-
module.exports = polyfill;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var getPolyfill = require('./polyfill.js');
|
4
|
-
var define = require('../define-properties/index.js');
|
5
|
-
|
6
|
-
module.exports = function shimObjectIs() {
|
7
|
-
var polyfill = getPolyfill();
|
8
|
-
define(Object, { is: polyfill }, {
|
9
|
-
is: function testObjectIs() {
|
10
|
-
return Object.is !== polyfill;
|
11
|
-
}
|
12
|
-
});
|
13
|
-
return polyfill;
|
14
|
-
};
|
@@ -1,122 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var keysShim;
|
4
|
-
if (!Object.keys) {
|
5
|
-
// modified from https://github.com/es-shims/es5-shim
|
6
|
-
var has = Object.prototype.hasOwnProperty;
|
7
|
-
var toStr = Object.prototype.toString;
|
8
|
-
var isArgs = require('./isArguments.js'); // eslint-disable-line global-require
|
9
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
10
|
-
var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
|
11
|
-
var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');
|
12
|
-
var dontEnums = [
|
13
|
-
'toString',
|
14
|
-
'toLocaleString',
|
15
|
-
'valueOf',
|
16
|
-
'hasOwnProperty',
|
17
|
-
'isPrototypeOf',
|
18
|
-
'propertyIsEnumerable',
|
19
|
-
'constructor'
|
20
|
-
];
|
21
|
-
var equalsConstructorPrototype = function (o) {
|
22
|
-
var ctor = o.constructor;
|
23
|
-
return ctor && ctor.prototype === o;
|
24
|
-
};
|
25
|
-
var excludedKeys = {
|
26
|
-
$applicationCache: true,
|
27
|
-
$console: true,
|
28
|
-
$external: true,
|
29
|
-
$frame: true,
|
30
|
-
$frameElement: true,
|
31
|
-
$frames: true,
|
32
|
-
$innerHeight: true,
|
33
|
-
$innerWidth: true,
|
34
|
-
$onmozfullscreenchange: true,
|
35
|
-
$onmozfullscreenerror: true,
|
36
|
-
$outerHeight: true,
|
37
|
-
$outerWidth: true,
|
38
|
-
$pageXOffset: true,
|
39
|
-
$pageYOffset: true,
|
40
|
-
$parent: true,
|
41
|
-
$scrollLeft: true,
|
42
|
-
$scrollTop: true,
|
43
|
-
$scrollX: true,
|
44
|
-
$scrollY: true,
|
45
|
-
$self: true,
|
46
|
-
$webkitIndexedDB: true,
|
47
|
-
$webkitStorageInfo: true,
|
48
|
-
$window: true
|
49
|
-
};
|
50
|
-
var hasAutomationEqualityBug = (function () {
|
51
|
-
/* global window */
|
52
|
-
if (typeof window === 'undefined') { return false; }
|
53
|
-
for (var k in window) {
|
54
|
-
try {
|
55
|
-
if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
56
|
-
try {
|
57
|
-
equalsConstructorPrototype(window[k]);
|
58
|
-
} catch (e) {
|
59
|
-
return true;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
} catch (e) {
|
63
|
-
return true;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
return false;
|
67
|
-
}());
|
68
|
-
var equalsConstructorPrototypeIfNotBuggy = function (o) {
|
69
|
-
/* global window */
|
70
|
-
if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
|
71
|
-
return equalsConstructorPrototype(o);
|
72
|
-
}
|
73
|
-
try {
|
74
|
-
return equalsConstructorPrototype(o);
|
75
|
-
} catch (e) {
|
76
|
-
return false;
|
77
|
-
}
|
78
|
-
};
|
79
|
-
|
80
|
-
keysShim = function keys(object) {
|
81
|
-
var isObject = object !== null && typeof object === 'object';
|
82
|
-
var isFunction = toStr.call(object) === '[object Function]';
|
83
|
-
var isArguments = isArgs(object);
|
84
|
-
var isString = isObject && toStr.call(object) === '[object String]';
|
85
|
-
var theKeys = [];
|
86
|
-
|
87
|
-
if (!isObject && !isFunction && !isArguments) {
|
88
|
-
throw new TypeError('Object.keys called on a non-object');
|
89
|
-
}
|
90
|
-
|
91
|
-
var skipProto = hasProtoEnumBug && isFunction;
|
92
|
-
if (isString && object.length > 0 && !has.call(object, 0)) {
|
93
|
-
for (var i = 0; i < object.length; ++i) {
|
94
|
-
theKeys.push(String(i));
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
if (isArguments && object.length > 0) {
|
99
|
-
for (var j = 0; j < object.length; ++j) {
|
100
|
-
theKeys.push(String(j));
|
101
|
-
}
|
102
|
-
} else {
|
103
|
-
for (var name in object) {
|
104
|
-
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
|
105
|
-
theKeys.push(String(name));
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
if (hasDontEnumBug) {
|
111
|
-
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
112
|
-
|
113
|
-
for (var k = 0; k < dontEnums.length; ++k) {
|
114
|
-
if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
|
115
|
-
theKeys.push(dontEnums[k]);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
return theKeys;
|
120
|
-
};
|
121
|
-
}
|
122
|
-
module.exports = keysShim;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var slice = Array.prototype.slice;
|
4
|
-
var isArgs = require('./isArguments.js');
|
5
|
-
|
6
|
-
var origKeys = Object.keys;
|
7
|
-
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation.js');
|
8
|
-
|
9
|
-
var originalKeys = Object.keys;
|
10
|
-
|
11
|
-
keysShim.shim = function shimObjectKeys() {
|
12
|
-
if (Object.keys) {
|
13
|
-
var keysWorksWithArguments = (function () {
|
14
|
-
// Safari 5.0 bug
|
15
|
-
var args = Object.keys(arguments);
|
16
|
-
return args && args.length === arguments.length;
|
17
|
-
}(1, 2));
|
18
|
-
if (!keysWorksWithArguments) {
|
19
|
-
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
|
20
|
-
if (isArgs(object)) {
|
21
|
-
return originalKeys(slice.call(object));
|
22
|
-
}
|
23
|
-
return originalKeys(object);
|
24
|
-
};
|
25
|
-
}
|
26
|
-
} else {
|
27
|
-
Object.keys = keysShim;
|
28
|
-
}
|
29
|
-
return Object.keys || keysShim;
|
30
|
-
};
|
31
|
-
|
32
|
-
module.exports = keysShim;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var toStr = Object.prototype.toString;
|
4
|
-
|
5
|
-
module.exports = function isArguments(value) {
|
6
|
-
var str = toStr.call(value);
|
7
|
-
var isArgs = str === '[object Arguments]';
|
8
|
-
if (!isArgs) {
|
9
|
-
isArgs = str !== '[object Array]' &&
|
10
|
-
value !== null &&
|
11
|
-
typeof value === 'object' &&
|
12
|
-
typeof value.length === 'number' &&
|
13
|
-
value.length >= 0 &&
|
14
|
-
toStr.call(value.callee) === '[object Function]';
|
15
|
-
}
|
16
|
-
return isArgs;
|
17
|
-
};
|