@opensumi/ide-components 3.2.6-next-1725007925.0 → 3.2.6-next-1725270864.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/dist/index.js +13 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5972,7 +5972,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
5972
5972
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5973
5973
|
|
|
5974
5974
|
"use strict";
|
|
5975
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.EventBusImpl = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst di_1 = __webpack_require__(/*! @opensumi/di */ \"../../node_modules/@opensumi/di/dist/index.js\");\nconst ide_utils_1 = __webpack_require__(/*! @opensumi/ide-utils */ \"../utils/lib/index.js\");\nconst basic_event_1 = __webpack_require__(/*! ./basic-event */ \"../core-common/lib/event-bus/basic-event.js\");\nlet EventBusImpl = class EventBusImpl {\n constructor() {\n this.emitterMap = new Map();\n }\n fire(e, opts = {}) {\n const Constructor = e && e.constructor;\n if (typeof Constructor === 'function' && basic_event_1.BasicEvent.isPrototypeOf(Constructor)) {\n const emitter = this.emitterMap.get(Constructor);\n if (emitter) {\n emitter.fire(e);\n }\n }\n }\n async fireAndAwait(e, opts = { timeout: 2000 }) {\n const Constructor = e && e.constructor;\n if (typeof Constructor === 'function' && basic_event_1.BasicEvent.isPrototypeOf(Constructor)) {\n const emitter = this.emitterMap.get(Constructor);\n if (emitter) {\n return emitter.fireAndAwait(e, opts.timeout);\n }\n }\n return [];\n }\n on(Constructor, listener) {\n const emitter = this.getOrCreateEmitter(Constructor);\n return emitter.event(listener);\n }\n once(Constructor, listener) {\n const emitter = this.getOrCreateEmitter(Constructor);\n return ide_utils_1.Event.once(emitter.event)(listener);\n }\n getOrCreateEmitter(key) {\n const current = this.emitterMap.get(key);\n if (current) {\n return current;\n }\n const emitter = new ide_utils_1.Emitter();\n this.emitterMap.set(key, emitter);\n return emitter;\n }\n};\nEventBusImpl = tslib_1.__decorate([\n (0, di_1.Injectable)()\n], EventBusImpl);\nexports.EventBusImpl = EventBusImpl;\n//# sourceMappingURL=event-bus.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/event-bus/event-bus.js?");
|
|
5975
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.EventBusImpl = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst di_1 = __webpack_require__(/*! @opensumi/di */ \"../../node_modules/@opensumi/di/dist/index.js\");\nconst ide_utils_1 = __webpack_require__(/*! @opensumi/ide-utils */ \"../utils/lib/index.js\");\nconst basic_event_1 = __webpack_require__(/*! ./basic-event */ \"../core-common/lib/event-bus/basic-event.js\");\nlet EventBusImpl = class EventBusImpl {\n constructor() {\n this.emitterMap = new Map();\n }\n fire(e, opts = {}) {\n const Constructor = e && e.constructor;\n if (typeof Constructor === 'function' && basic_event_1.BasicEvent.isPrototypeOf(Constructor)) {\n const emitter = this.emitterMap.get(Constructor);\n if (emitter) {\n emitter.fire(e);\n }\n }\n }\n async fireAndAwait(e, opts = { timeout: 2000 }) {\n const Constructor = e && e.constructor;\n if (typeof Constructor === 'function' && basic_event_1.BasicEvent.isPrototypeOf(Constructor)) {\n const emitter = this.emitterMap.get(Constructor);\n if (emitter) {\n return emitter.fireAndAwait(e, opts.timeout);\n }\n }\n return [];\n }\n on(Constructor, listener) {\n const emitter = this.getOrCreateEmitter(Constructor);\n return emitter.event(listener);\n }\n once(Constructor, listener) {\n const emitter = this.getOrCreateEmitter(Constructor);\n return ide_utils_1.Event.once(emitter.event)(listener);\n }\n getOrCreateEmitter(key) {\n const current = this.emitterMap.get(key);\n if (current) {\n return current;\n }\n const emitter = new ide_utils_1.Emitter();\n this.emitterMap.set(key, emitter);\n return emitter;\n }\n onDirective(directive, listener) {\n const emitter = this.getOrCreateEmitter(directive);\n return emitter.event(listener);\n }\n fireDirective(directive, payload) {\n const emitter = this.emitterMap.get(directive);\n if (emitter) {\n emitter.fire(payload);\n }\n }\n};\nEventBusImpl = tslib_1.__decorate([\n (0, di_1.Injectable)()\n], EventBusImpl);\nexports.EventBusImpl = EventBusImpl;\n//# sourceMappingURL=event-bus.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/event-bus/event-bus.js?");
|
|
5976
5976
|
|
|
5977
5977
|
/***/ }),
|
|
5978
5978
|
|
|
@@ -6790,6 +6790,17 @@ eval("\n/* ---------------------------------------------------------------------
|
|
|
6790
6790
|
|
|
6791
6791
|
/***/ }),
|
|
6792
6792
|
|
|
6793
|
+
/***/ "../utils/lib/heap.js":
|
|
6794
|
+
/*!****************************!*\
|
|
6795
|
+
!*** ../utils/lib/heap.js ***!
|
|
6796
|
+
\****************************/
|
|
6797
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6798
|
+
|
|
6799
|
+
"use strict";
|
|
6800
|
+
eval("\n/**\n * 大小堆(优先队列)\n */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Heap = void 0;\nclass Heap {\n constructor(options) {\n this.elements = [];\n // 堆元素数量\n this.size = 0;\n this.cmp = options.comparator;\n }\n peek() {\n return this.elements[0];\n }\n pop() {\n if (this.elements.length === 0) {\n return undefined;\n }\n if (this.elements.length === 1) {\n this.size--;\n return this.elements.pop();\n }\n const res = this.elements[0];\n this.elements[0] = this.elements.pop();\n this.size--;\n // 维护最大堆的特性:下沉操作\n this._sink(0);\n return res;\n }\n add(data) {\n this.elements.push(data);\n this.size++;\n this._float();\n }\n toArray() {\n return this.elements.slice(0, this.size);\n }\n _float() {\n let idx = this.size - 1;\n let p;\n while (idx > 0) {\n // 获取父节点索引\n p = (idx - 1) >> 1;\n if (this.cmp(this.elements[p], this.elements[idx]) <= 0) {\n break;\n }\n this.swap(p, idx);\n idx = p;\n }\n }\n _sink(start) {\n const halfLength = this.size >> 1;\n while (start < halfLength) {\n const l = (start << 1) | 1;\n const r = l + 1;\n const minIdx = r < this.size && this.cmp(this.elements[r], this.elements[l]) < 0 ? r : l;\n if (this.cmp(this.elements[minIdx], this.elements[start]) >= 0) {\n break;\n }\n this.swap(start, minIdx);\n start = minIdx;\n }\n }\n swap(i, j) {\n const tmp = this.elements[i];\n this.elements[i] = this.elements[j];\n this.elements[j] = tmp;\n }\n}\nexports.Heap = Heap;\n//# sourceMappingURL=heap.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/heap.js?");
|
|
6801
|
+
|
|
6802
|
+
/***/ }),
|
|
6803
|
+
|
|
6793
6804
|
/***/ "../utils/lib/index.js":
|
|
6794
6805
|
/*!*****************************!*\
|
|
6795
6806
|
!*** ../utils/lib/index.js ***!
|
|
@@ -6797,7 +6808,7 @@ eval("\n/* ---------------------------------------------------------------------
|
|
|
6797
6808
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6798
6809
|
|
|
6799
6810
|
"use strict";
|
|
6800
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.path = exports.objects = exports.arrays = exports.strings = exports.process = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\ntslib_1.__exportStar(__webpack_require__(/*! ./ansi */ \"../utils/lib/ansi.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./async */ \"../utils/lib/async.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./buffer */ \"../utils/lib/buffer.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./cache */ \"../utils/lib/cache.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./cancellation */ \"../utils/lib/cancellation.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./character-classifier */ \"../utils/lib/character-classifier.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./charCode */ \"../utils/lib/charCode.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./date */ \"../utils/lib/date.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./disposable */ \"../utils/lib/disposable.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./decorators */ \"../utils/lib/decorators.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./encoding */ \"../utils/lib/encoding.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./errors */ \"../utils/lib/errors.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./event */ \"../utils/lib/event.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./file-uri */ \"../utils/lib/file-uri.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./filters */ \"../utils/lib/filters.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./functional */ \"../utils/lib/functional.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./glob */ \"../utils/lib/glob.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./hash */ \"../utils/lib/hash.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./iterator */ \"../utils/lib/iterator.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./lifecycle */ \"../utils/lib/lifecycle.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./lru-map */ \"../utils/lib/lru-map.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./linked-list */ \"../utils/lib/linked-list.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./linked-text */ \"../utils/lib/linked-text.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./map */ \"../utils/lib/map.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./marshalling */ \"../utils/lib/marshalling.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./os */ \"../utils/lib/os.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./platform */ \"../utils/lib/platform.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./progress */ \"../utils/lib/progress.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./promises */ \"../utils/lib/promises.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./sequence */ \"../utils/lib/sequence.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./types */ \"../utils/lib/types.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uint */ \"../utils/lib/uint.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uri */ \"../utils/lib/uri.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uuid */ \"../utils/lib/uuid.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./const */ \"../utils/lib/const/index.js\"), exports);\
|
|
6811
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.path = exports.objects = exports.arrays = exports.strings = exports.process = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nexports.process = tslib_1.__importStar(__webpack_require__(/*! ./process */ \"../utils/lib/process.js\"));\nexports.strings = tslib_1.__importStar(__webpack_require__(/*! ./strings */ \"../utils/lib/strings.js\"));\nexports.arrays = tslib_1.__importStar(__webpack_require__(/*! ./arrays */ \"../utils/lib/arrays.js\"));\nexports.objects = tslib_1.__importStar(__webpack_require__(/*! ./objects */ \"../utils/lib/objects.js\"));\nexports.path = tslib_1.__importStar(__webpack_require__(/*! ./path */ \"../utils/lib/path.js\"));\ntslib_1.__exportStar(__webpack_require__(/*! ./ansi */ \"../utils/lib/ansi.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./async */ \"../utils/lib/async.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./buffer */ \"../utils/lib/buffer.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./cache */ \"../utils/lib/cache.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./cancellation */ \"../utils/lib/cancellation.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./character-classifier */ \"../utils/lib/character-classifier.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./charCode */ \"../utils/lib/charCode.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./date */ \"../utils/lib/date.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./disposable */ \"../utils/lib/disposable.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./decorators */ \"../utils/lib/decorators.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./encoding */ \"../utils/lib/encoding.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./errors */ \"../utils/lib/errors.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./event */ \"../utils/lib/event.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./file-uri */ \"../utils/lib/file-uri.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./filters */ \"../utils/lib/filters.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./functional */ \"../utils/lib/functional.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./glob */ \"../utils/lib/glob.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./hash */ \"../utils/lib/hash.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./iterator */ \"../utils/lib/iterator.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./lifecycle */ \"../utils/lib/lifecycle.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./lru-map */ \"../utils/lib/lru-map.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./linked-list */ \"../utils/lib/linked-list.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./linked-text */ \"../utils/lib/linked-text.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./map */ \"../utils/lib/map.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./marshalling */ \"../utils/lib/marshalling.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./os */ \"../utils/lib/os.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./platform */ \"../utils/lib/platform.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./progress */ \"../utils/lib/progress.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./promises */ \"../utils/lib/promises.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./sequence */ \"../utils/lib/sequence.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./types */ \"../utils/lib/types.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uint */ \"../utils/lib/uint.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uri */ \"../utils/lib/uri.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./uuid */ \"../utils/lib/uuid.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./const */ \"../utils/lib/const/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./heap */ \"../utils/lib/heap.js\"), exports);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/index.js?");
|
|
6801
6812
|
|
|
6802
6813
|
/***/ }),
|
|
6803
6814
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-components",
|
|
3
|
-
"version": "3.2.6-next-
|
|
3
|
+
"version": "3.2.6-next-1725270864.0",
|
|
4
4
|
"description": "@opensumi/ide-components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@ant-design/icons": "^4.6.4",
|
|
19
|
-
"@opensumi/ide-core-common": "3.2.6-next-
|
|
20
|
-
"@opensumi/ide-utils": "3.2.6-next-
|
|
19
|
+
"@opensumi/ide-core-common": "3.2.6-next-1725270864.0",
|
|
20
|
+
"@opensumi/ide-utils": "3.2.6-next-1725270864.0",
|
|
21
21
|
"@opensumi/react-custom-scrollbars-2": "^4.3.4",
|
|
22
22
|
"@rc-component/mini-decimal": "^1.0.1",
|
|
23
23
|
"fuzzy": "^0.1.3",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"react-window": "^1.8.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@opensumi/ide-dev-tool": "3.2.6-next-
|
|
41
|
+
"@opensumi/ide-dev-tool": "3.2.6-next-1725270864.0",
|
|
42
42
|
"@types/marked": "^4.0.7",
|
|
43
43
|
"@types/react-window": "^1.8.5",
|
|
44
44
|
"prop-types": "^15.8.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "822055085b8a4241bec312e5ff5af692301ef93f"
|
|
47
47
|
}
|