@difizen/libro-ai-native 0.2.41-next.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/LICENSE +21 -0
- package/README.md +1 -0
- package/es/ai-native-code-block.d.ts +4 -0
- package/es/ai-native-code-block.d.ts.map +1 -0
- package/es/ai-native-code-block.js +176 -0
- package/es/ai-native-command-contribution.d.ts +16 -0
- package/es/ai-native-command-contribution.d.ts.map +1 -0
- package/es/ai-native-command-contribution.js +297 -0
- package/es/ai-native-command.d.ts +5 -0
- package/es/ai-native-command.d.ts.map +1 -0
- package/es/ai-native-command.js +17 -0
- package/es/ai-native-for-cell-view.d.ts +20 -0
- package/es/ai-native-for-cell-view.d.ts.map +1 -0
- package/es/ai-native-for-cell-view.js +190 -0
- package/es/ai-native-output-top.d.ts +6 -0
- package/es/ai-native-output-top.d.ts.map +1 -0
- package/es/ai-native-output-top.js +37 -0
- package/es/ai-native-service.d.ts +13 -0
- package/es/ai-native-service.d.ts.map +1 -0
- package/es/ai-native-service.js +75 -0
- package/es/ai-side-toolbar-selector.d.ts +3 -0
- package/es/ai-side-toolbar-selector.d.ts.map +1 -0
- package/es/ai-side-toolbar-selector.js +47 -0
- package/es/chat-slot-contribution.d.ts +15 -0
- package/es/chat-slot-contribution.d.ts.map +1 -0
- package/es/chat-slot-contribution.js +71 -0
- package/es/chat-view.d.ts +15 -0
- package/es/chat-view.d.ts.map +1 -0
- package/es/chat-view.js +114 -0
- package/es/error-output-model.d.ts +8 -0
- package/es/error-output-model.d.ts.map +1 -0
- package/es/error-output-model.js +140 -0
- package/es/icon.d.ts +4 -0
- package/es/icon.d.ts.map +1 -0
- package/es/icon.js +92 -0
- package/es/index.d.ts +6 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +5 -0
- package/es/index.less +297 -0
- package/es/libro-ai-msg-item-model.d.ts +18 -0
- package/es/libro-ai-msg-item-model.d.ts.map +1 -0
- package/es/libro-ai-msg-item-model.js +85 -0
- package/es/libro-ai-native-chat-service.d.ts +8 -0
- package/es/libro-ai-native-chat-service.d.ts.map +1 -0
- package/es/libro-ai-native-chat-service.js +157 -0
- package/es/libro-ai-native-chat-view.d.ts +42 -0
- package/es/libro-ai-native-chat-view.d.ts.map +1 -0
- package/es/libro-ai-native-chat-view.js +88 -0
- package/es/libro-ai-native-color-registry.d.ts +6 -0
- package/es/libro-ai-native-color-registry.d.ts.map +1 -0
- package/es/libro-ai-native-color-registry.js +46 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +28 -0
- package/es/protocol.d.ts +10 -0
- package/es/protocol.d.ts.map +1 -0
- package/es/protocol.js +1 -0
- package/es/utils.js +114 -0
- package/package.json +74 -0
- package/src/ai-native-code-block.tsx +138 -0
- package/src/ai-native-command-contribution.tsx +248 -0
- package/src/ai-native-command.ts +23 -0
- package/src/ai-native-for-cell-view.tsx +156 -0
- package/src/ai-native-output-top.tsx +43 -0
- package/src/ai-native-service.ts +39 -0
- package/src/ai-side-toolbar-selector.tsx +51 -0
- package/src/chat-slot-contribution.ts +36 -0
- package/src/chat-view.tsx +141 -0
- package/src/error-output-model.tsx +103 -0
- package/src/icon.tsx +80 -0
- package/src/index.less +330 -0
- package/src/index.spec.ts +8 -0
- package/src/index.ts +5 -0
- package/src/libro-ai-msg-item-model.ts +69 -0
- package/src/libro-ai-native-chat-service.ts +95 -0
- package/src/libro-ai-native-chat-view.tsx +54 -0
- package/src/libro-ai-native-color-registry.ts +33 -0
- package/src/module.ts +44 -0
- package/src/protocol.ts +18 -0
- package/src/utils.tsx +115 -0
package/es/chat-view.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
3
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
4
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
19
|
+
import { LibroContextKey, LibroSlotManager, LibroSlotView } from '@difizen/libro-jupyter';
|
|
20
|
+
import { BaseView, prop, transient, view, inject, ViewManager, useInject, ViewInstance, ViewRender } from '@difizen/mana-app';
|
|
21
|
+
import { useRef } from 'react';
|
|
22
|
+
import { LibroAINativeService } from "./ai-native-service.js";
|
|
23
|
+
import { LibroAiNativeChatView } from "./libro-ai-native-chat-view.js";
|
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
export var ChatRender = function ChatRender() {
|
|
27
|
+
var containRef = useRef(null);
|
|
28
|
+
var libroChatView = useInject(ViewInstance);
|
|
29
|
+
var libroSlotManager = useInject(LibroSlotManager);
|
|
30
|
+
var libroContextKey = useInject(LibroContextKey);
|
|
31
|
+
var libroAINativeService = useInject(LibroAINativeService);
|
|
32
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
33
|
+
className: "chat-container",
|
|
34
|
+
ref: containRef,
|
|
35
|
+
onFocus: function onFocus() {
|
|
36
|
+
libroContextKey.disableCommandMode();
|
|
37
|
+
},
|
|
38
|
+
onBlur: function onBlur() {
|
|
39
|
+
libroContextKey.enableCommandMode();
|
|
40
|
+
},
|
|
41
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
42
|
+
className: "chat-header",
|
|
43
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
44
|
+
className: "chat-title",
|
|
45
|
+
children: "Libro AI"
|
|
46
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
47
|
+
className: "chat-right-toolbar",
|
|
48
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: "chat-type",
|
|
50
|
+
children: libroChatView.chatView.isCellChat ? 'Focused Cell' : 'General Chat'
|
|
51
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
52
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
53
|
+
className: "chat-close-icon",
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
if (libroChatView.parent) {
|
|
56
|
+
libroChatView.parent.model.libroViewClass = libroChatView.parent.model.libroViewClass.replace('ai-cell-chat', '');
|
|
57
|
+
libroAINativeService.showChatMap.set(libroChatView.parent.id, false);
|
|
58
|
+
var slotview = libroSlotManager.slotViewManager.getSlotView(libroSlotManager.getSlotName(libroChatView.parent, 'right'));
|
|
59
|
+
if (slotview instanceof LibroSlotView) {
|
|
60
|
+
slotview.revertActive();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
})]
|
|
67
|
+
}), libroChatView.chatView && /*#__PURE__*/_jsx(ViewRender, {
|
|
68
|
+
view: libroChatView.chatView
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
export var LibroChatView = (_dec = transient(), _dec2 = view('libro-chat-view'), _dec3 = inject(ViewManager), _dec4 = prop(), _dec5 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
73
|
+
_inherits(LibroChatView, _BaseView);
|
|
74
|
+
var _super = _createSuper(LibroChatView);
|
|
75
|
+
function LibroChatView(viewManager) {
|
|
76
|
+
var _this;
|
|
77
|
+
_classCallCheck(this, LibroChatView);
|
|
78
|
+
_this = _super.call(this);
|
|
79
|
+
_this.parent = undefined;
|
|
80
|
+
_initializerDefineProperty(_this, "viewManager", _descriptor, _assertThisInitialized(_this));
|
|
81
|
+
_this.view = ChatRender;
|
|
82
|
+
_initializerDefineProperty(_this, "chatView", _descriptor2, _assertThisInitialized(_this));
|
|
83
|
+
_initializerDefineProperty(_this, "isDisplay", _descriptor3, _assertThisInitialized(_this));
|
|
84
|
+
viewManager.getOrCreateView(LibroAiNativeChatView, {
|
|
85
|
+
id: _this.id,
|
|
86
|
+
chat_key: 'LLM:chatgpt'
|
|
87
|
+
}).then(function (chatView) {
|
|
88
|
+
_this.chatView = chatView;
|
|
89
|
+
return;
|
|
90
|
+
}).catch(function () {
|
|
91
|
+
//
|
|
92
|
+
});
|
|
93
|
+
return _this;
|
|
94
|
+
}
|
|
95
|
+
LibroChatView = inject(ViewManager)(LibroChatView, undefined, 0) || LibroChatView;
|
|
96
|
+
return _createClass(LibroChatView);
|
|
97
|
+
}(BaseView), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "viewManager", [_dec3], {
|
|
98
|
+
configurable: true,
|
|
99
|
+
enumerable: true,
|
|
100
|
+
writable: true,
|
|
101
|
+
initializer: null
|
|
102
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "chatView", [_dec4], {
|
|
103
|
+
configurable: true,
|
|
104
|
+
enumerable: true,
|
|
105
|
+
writable: true,
|
|
106
|
+
initializer: null
|
|
107
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "isDisplay", [_dec5], {
|
|
108
|
+
configurable: true,
|
|
109
|
+
enumerable: true,
|
|
110
|
+
writable: true,
|
|
111
|
+
initializer: function initializer() {
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
})), _class2)) || _class) || _class);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { ErrorOutputModel } from '@difizen/libro-jupyter';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare class AIErrorOutputModel extends ErrorOutputModel {
|
|
5
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
showChat: boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=error-output-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-output-model.d.ts","sourceRoot":"","sources":["../src/error-output-model.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,gBAAgB,EAIjB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,cAAc,CAAC;AAkFtB,qBAEa,kBAAmB,SAAQ,gBAAgB;IAC7C,IAAI,2FAA4B;IACjC,QAAQ,UAAS;CAC1B"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor;
|
|
3
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
4
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; 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; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; 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); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { 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); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; 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; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
19
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
20
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
21
|
+
import { concatMultilineString } from '@difizen/libro-jupyter';
|
|
22
|
+
import { ErrorOutputModel, defaultSanitizer, RenderMimeRegistry, renderText } from '@difizen/libro-jupyter';
|
|
23
|
+
import { prop, transient } from '@difizen/mana-app';
|
|
24
|
+
import { getOrigin, useInject, view, ViewInstance } from '@difizen/mana-app';
|
|
25
|
+
import { Button } from 'antd';
|
|
26
|
+
import { forwardRef, createRef, useEffect } from 'react';
|
|
27
|
+
import "./index.less";
|
|
28
|
+
import { LibroAINativeService } from "./ai-native-service.js";
|
|
29
|
+
import { AIIcon } from "./icon.js";
|
|
30
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
+
var AIErrorOutputModelRender = /*#__PURE__*/forwardRef(function ErrorOutputModelRender(_props, ref) {
|
|
33
|
+
var output = useInject(ViewInstance);
|
|
34
|
+
var model = getOrigin(output);
|
|
35
|
+
var source = getOrigin(output).raw;
|
|
36
|
+
var defaultRenderMime = useInject(RenderMimeRegistry);
|
|
37
|
+
var traceback = source.traceback.join('\n');
|
|
38
|
+
var defaultRenderMimeType = defaultRenderMime.preferredMimeType(model);
|
|
39
|
+
var streamRef = /*#__PURE__*/createRef();
|
|
40
|
+
var libroAINativeService = useInject(LibroAINativeService);
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
renderText({
|
|
43
|
+
host: streamRef.current,
|
|
44
|
+
sanitizer: defaultSanitizer,
|
|
45
|
+
source: traceback,
|
|
46
|
+
mimeType: defaultRenderMimeType || ''
|
|
47
|
+
});
|
|
48
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
|
+
}, []);
|
|
50
|
+
var handleShowErrorDetail = function handleShowErrorDetail() {
|
|
51
|
+
output.showErrorDetail = !output.showErrorDetail;
|
|
52
|
+
};
|
|
53
|
+
var handleFixWithAI = /*#__PURE__*/function () {
|
|
54
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
55
|
+
var libroAINativeForCellView;
|
|
56
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57
|
+
while (1) switch (_context.prev = _context.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
output.cell.parent.model.libroViewClass = 'ai-cell-chat';
|
|
60
|
+
_context.next = 3;
|
|
61
|
+
return libroAINativeService.getOrCreateLibroAINativeForCellView(output.cell.id, getOrigin(output.cell));
|
|
62
|
+
case 3:
|
|
63
|
+
libroAINativeForCellView = _context.sent;
|
|
64
|
+
libroAINativeForCellView.showAI = true;
|
|
65
|
+
libroAINativeForCellView.chatStream({
|
|
66
|
+
chat_key: 'LLM:debug-gpt4',
|
|
67
|
+
content: "\u4EE3\u7801\u4E3A:\n".concat(output.cell.model.value, "\n\u62A5\u9519\u4E3A:\n").concat(concatMultilineString(source.traceback))
|
|
68
|
+
});
|
|
69
|
+
case 6:
|
|
70
|
+
case "end":
|
|
71
|
+
return _context.stop();
|
|
72
|
+
}
|
|
73
|
+
}, _callee);
|
|
74
|
+
}));
|
|
75
|
+
return function handleFixWithAI() {
|
|
76
|
+
return _ref.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
}();
|
|
79
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
80
|
+
ref: ref,
|
|
81
|
+
className: "libro-error-container",
|
|
82
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
83
|
+
className: "libro-text-render-container",
|
|
84
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
85
|
+
className: "libro-error-label libro-text-render",
|
|
86
|
+
children: [/*#__PURE__*/_jsxs("pre", {
|
|
87
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
88
|
+
className: "ansi-red-fg",
|
|
89
|
+
children: source.ename
|
|
90
|
+
}), ': ' + source.evalue]
|
|
91
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
92
|
+
className: "libro-error-output-btn-container",
|
|
93
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
94
|
+
className: "libro-ai-native-fix-button",
|
|
95
|
+
icon: /*#__PURE__*/_jsx(AIIcon, {}),
|
|
96
|
+
onClick: handleFixWithAI,
|
|
97
|
+
children: "Fix with AI"
|
|
98
|
+
}), /*#__PURE__*/_jsxs(Button, {
|
|
99
|
+
className: "libro-show-error-detail-button",
|
|
100
|
+
danger: true,
|
|
101
|
+
onClick: handleShowErrorDetail,
|
|
102
|
+
children: [output.showErrorDetail ? 'Hide' : 'Show', " error details"]
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
107
|
+
className: "libro-text-render-container",
|
|
108
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
109
|
+
className: "libro-text-render",
|
|
110
|
+
ref: streamRef,
|
|
111
|
+
style: {
|
|
112
|
+
display: "".concat(output.showErrorDetail ? 'block' : 'none', " ")
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
export var AIErrorOutputModel = (_dec = transient(), _dec2 = view('libro-error-output-model'), _dec3 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_ErrorOutputModel) {
|
|
119
|
+
_inherits(AIErrorOutputModel, _ErrorOutputModel);
|
|
120
|
+
var _super = _createSuper(AIErrorOutputModel);
|
|
121
|
+
function AIErrorOutputModel() {
|
|
122
|
+
var _this;
|
|
123
|
+
_classCallCheck(this, AIErrorOutputModel);
|
|
124
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
125
|
+
args[_key] = arguments[_key];
|
|
126
|
+
}
|
|
127
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
128
|
+
_this.view = AIErrorOutputModelRender;
|
|
129
|
+
_initializerDefineProperty(_this, "showChat", _descriptor, _assertThisInitialized(_this));
|
|
130
|
+
return _this;
|
|
131
|
+
}
|
|
132
|
+
return _createClass(AIErrorOutputModel);
|
|
133
|
+
}(ErrorOutputModel), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "showChat", [_dec3], {
|
|
134
|
+
configurable: true,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
writable: true,
|
|
137
|
+
initializer: function initializer() {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
})), _class2)) || _class) || _class);
|
package/es/icon.d.ts
ADDED
package/es/icon.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../src/icon.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAgD1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA6B9B,CAAC"}
|
package/es/icon.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
export var AIIcon = function AIIcon() {
|
|
4
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
5
|
+
width: "16px",
|
|
6
|
+
height: "16px",
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
version: "1.1",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
11
|
+
className: "libro-ai-icon",
|
|
12
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
13
|
+
id: "libro-copilot-1",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
19
|
+
id: "libro-copilot-2",
|
|
20
|
+
transform: "translate(-1347.000000, -186.000000)",
|
|
21
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
22
|
+
id: "libro-copilot-3",
|
|
23
|
+
transform: "translate(1339.000000, 144.000000)",
|
|
24
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
25
|
+
id: "libro-copilot-4",
|
|
26
|
+
transform: "translate(8.000000, 42.000000)",
|
|
27
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
28
|
+
id: "libro-copilot-5",
|
|
29
|
+
x: "0",
|
|
30
|
+
y: "0",
|
|
31
|
+
width: "16",
|
|
32
|
+
height: "16"
|
|
33
|
+
}), /*#__PURE__*/_jsxs("g", {
|
|
34
|
+
id: "libro-copilot-6",
|
|
35
|
+
transform: "translate(0.300772, 0.470588)",
|
|
36
|
+
fill: "#BB50E1",
|
|
37
|
+
className: "libro-ai-inner-icon",
|
|
38
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
39
|
+
d: "M4.6251825,4.23305674 C5.89323061,5.80889295 7.29789772,6.58398704 8.83918382,6.55833903 C10.3804699,6.53269102 11.9554683,5.70801334 13.5641789,4.08430598 C11.9274189,5.7798156 11.0970322,7.34910485 11.0730185,8.79217375 C11.0490049,10.2352426 11.8298081,11.6456189 13.4154281,13.0233024 C11.8157864,11.6647772 10.2918193,10.9975649 8.84352682,11.0216655 C7.39523433,11.045766 5.93953597,11.7625619 4.47643174,13.1720531 C5.87320041,11.7759156 6.58428719,10.3145081 6.60969211,8.78783075 C6.63509702,7.26115339 5.97359381,5.74289539 4.6251825,4.23305674 Z",
|
|
40
|
+
id: "libro-copilot-5",
|
|
41
|
+
transform: "translate(9.020305, 8.628180) rotate(45.000000) translate(-9.020305, -8.628180) "
|
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
+
d: "M6.17780613,0.532367865 C6.5102071,0.945451143 6.8784208,1.14863115 7.28244726,1.14190788 C7.68647371,1.13518462 8.09933736,0.919006974 8.5210382,0.493374948 C8.09198462,0.937828925 7.87431041,1.34919601 7.86801558,1.72747621 C7.86172075,2.1057564 8.06639732,2.47546667 8.48204528,2.83660701 C8.06272172,2.48048877 7.6632352,2.30558846 7.28358571,2.31190607 C6.90393623,2.31822369 6.52234539,2.50612164 6.13881322,2.87559993 C6.50495646,2.50962212 6.69135785,2.12653473 6.69801739,1.72633775 C6.70467693,1.32614077 6.53127318,0.928150813 6.17780613,0.532367865 Z",
|
|
44
|
+
id: "libro-copilot-8",
|
|
45
|
+
transform: "translate(7.329926, 1.684487) rotate(45.000000) translate(-7.329926, -1.684487) "
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
d: "M1.02530107,2.42653997 C1.6654807,3.22210777 2.37463303,3.61341741 3.15275805,3.6004689 C3.93088308,3.58752039 4.72602788,3.17117825 5.53819246,2.3514425 C4.71186704,3.20742794 4.29264265,3.99969048 4.28051927,4.72823011 C4.26839589,5.45676975 4.6625878,6.16880434 5.46309499,6.86433388 C4.65550888,6.17847653 3.88612743,5.84163148 3.15495064,5.85379875 C2.42377385,5.86596601 1.68885817,6.22784354 0.950203604,6.93943135 C1.65536837,6.2345852 2.01436364,5.49678726 2.02718942,4.72603753 C2.0400152,3.9552878 1.70605242,3.18878861 1.02530107,2.42653997 Z",
|
|
48
|
+
id: "libro-copilot-9",
|
|
49
|
+
transform: "translate(3.244198, 4.645437) rotate(45.000000) translate(-3.244198, -4.645437) "
|
|
50
|
+
})]
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
export var AILoadding = function AILoadding() {
|
|
59
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
60
|
+
width: "14px",
|
|
61
|
+
height: "14px",
|
|
62
|
+
viewBox: "0 0 14 14",
|
|
63
|
+
version: "1.1",
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
66
|
+
className: "libro-lab-loadding",
|
|
67
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
68
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
69
|
+
stroke: "none",
|
|
70
|
+
strokeWidth: "1",
|
|
71
|
+
fill: "none",
|
|
72
|
+
fillRule: "evenodd",
|
|
73
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
74
|
+
id: "1.1\u5BB9\u5668\u52A0\u8F7D\u4E2D-\u5173\u95ED\u63D0\u793A",
|
|
75
|
+
transform: "translate(-1362.000000, -879.000000)",
|
|
76
|
+
fill: "#bd74e8",
|
|
77
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
78
|
+
id: "\u7F16\u7EC4-20",
|
|
79
|
+
transform: "translate(0.000000, 872.000000)",
|
|
80
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
81
|
+
id: "\u7F16\u7EC4-3",
|
|
82
|
+
transform: "translate(1302.000000, 5.000000)",
|
|
83
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
84
|
+
d: "M67,2 C70.8659932,2 74,5.13400675 74,9 C74,12.6840981 71.1539658,15.7034692 67.5405741,15.9794369 C67.4622857,15.9934347 67.3819096,16 67.3,16 C66.4715729,16 65.8,15.3284271 65.8,14.5 C65.8,13.6715729 66.4715729,13 67.3,13 L67.301026,12.9888432 C69.3695589,12.8349382 71,11.1078741 71,9 C71,6.790861 69.209139,5 67,5 C64.8578046,5 63.1089211,6.68396847 63.0048953,8.80035966 L63,9 C63,9.82842712 62.3284271,10.5 61.5,10.5 C60.6715729,10.5 60,9.82842712 60,9 C60,5.13400675 63.1340068,2 67,2 Z",
|
|
85
|
+
id: "\u5F62\u72B6\u7ED3\u5408"
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
};
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC"}
|