@opensumi/ide-components 3.5.1-next-1731935606.0 → 3.5.1-next-1732847732.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -6179,6 +6179,17 @@ eval("\n/* ---------------------------------------------------------------------
6179
6179
 
6180
6180
  /***/ }),
6181
6181
 
6182
+ /***/ "../core-common/lib/collections.js":
6183
+ /*!*****************************************!*\
6184
+ !*** ../core-common/lib/collections.js ***!
6185
+ \*****************************************/
6186
+ /***/ ((__unused_webpack_module, exports) => {
6187
+
6188
+ "use strict";
6189
+ eval("\n// *****************************************************************************\n// Copyright (C) 2023 STMicroelectronics and others.\n//\n// This program and the accompanying materials are made available under the\n// terms of the Eclipse Public License v. 2.0 which is available at\n// http://www.eclipse.org/legal/epl-2.0.\n//\n// This Source Code may also be made available under the following Secondary\n// Licenses when the conditions for such availability set forth in the Eclipse\n// Public License v. 2.0 are satisfied: GNU General Public License, version 2\n// with the GNU Classpath Exception which is available at\n// https://www.gnu.org/software/classpath/license.html.\n//\n// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0\n// *****************************************************************************\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.MultiKeyMap = void 0;\n/**\n * A convenience class for managing a \"map of maps\" of arbitrary depth\n */\nclass MultiKeyMap {\n constructor(keyLength) {\n this.keyLength = keyLength;\n this.rootMap = new Map();\n }\n static create(keyLength, data) {\n const result = new MultiKeyMap(keyLength);\n for (const entry of data) {\n result.set(entry[0], entry[1]);\n }\n return result;\n }\n set(key, value) {\n if (this.keyLength !== key.length) {\n throw new Error(`inappropriate key length: ${key.length}, should be ${this.keyLength}`);\n }\n let map = this.rootMap;\n for (let i = 0; i < this.keyLength - 1; i++) {\n let existing = map.get(key[i]);\n if (!existing) {\n existing = new Map();\n map.set(key[i], existing);\n }\n map = existing;\n }\n const oldValue = map.get(key[this.keyLength - 1]);\n map.set(key[this.keyLength - 1], value);\n return oldValue;\n }\n get(key) {\n if (this.keyLength !== key.length) {\n throw new Error(`inappropriate key length: ${key.length}, should be ${this.keyLength}`);\n }\n let map = this.rootMap;\n for (let i = 0; i < this.keyLength - 1; i++) {\n map = map.get(key[i]);\n if (!map) {\n return undefined;\n }\n }\n return map.get(key[this.keyLength - 1]);\n }\n /**\n * Checks whether the given key is present in the map\n * @param key the key to test. It can have a length < the key length\n * @returns whether the key exists\n */\n has(key) {\n if (this.keyLength < key.length) {\n throw new Error(`inappropriate key length: ${key.length}, should <= ${this.keyLength}`);\n }\n let map = this.rootMap;\n for (let i = 0; i < key.length - 1; i++) {\n map = map.get(key[i]);\n if (!map) {\n return false;\n }\n }\n return map.has(key[key.length - 1]);\n }\n /**\n * Deletes the value with the given key from the map\n * @param key the key to remove. It can have a length < the key length\n * @returns whether the key was present in the map\n */\n delete(key) {\n if (this.keyLength < key.length) {\n throw new Error(`inappropriate key length: ${key.length}, should <= ${this.keyLength}`);\n }\n let map = this.rootMap;\n for (let i = 0; i < this.keyLength - 1; i++) {\n map = map.get(key[i]);\n if (!map) {\n return false;\n }\n }\n return map.delete(key[key.length - 1]);\n }\n /**\n * Iterates over all entries in the map. The ordering semantics are like iterating over a map of maps.\n * @param handler Handler for each entry\n */\n forEach(handler) {\n this.doForeach(handler, this.rootMap, []);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n doForeach(handler, currentMap, keys) {\n if (keys.length === this.keyLength - 1) {\n currentMap.forEach((v, k) => {\n handler(v, [...keys, k]);\n });\n }\n else {\n currentMap.forEach((v, k) => {\n this.doForeach(handler, v, [...keys, k]);\n });\n }\n }\n}\nexports.MultiKeyMap = MultiKeyMap;\n//# sourceMappingURL=collections.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/collections.js?");
6190
+
6191
+ /***/ }),
6192
+
6182
6193
  /***/ "../core-common/lib/command.js":
6183
6194
  /*!*************************************!*\
6184
6195
  !*** ../core-common/lib/command.js ***!
@@ -6373,7 +6384,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
6373
6384
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6374
6385
 
6375
6386
  "use strict";
6376
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\ntslib_1.__exportStar(__webpack_require__(/*! ./di-helper */ \"../core-common/lib/di-helper/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./event-bus */ \"../core-common/lib/event-bus/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./contribution-provider */ \"../core-common/lib/contribution-provider.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./declare */ \"../core-common/lib/declare.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./editor */ \"../core-common/lib/editor.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./reference */ \"../core-common/lib/reference.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./module */ \"../core-common/lib/module.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./command */ \"../core-common/lib/command.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./menu */ \"../core-common/lib/menu.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./localize */ \"../core-common/lib/localize.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./types */ \"../core-common/lib/types/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./preferences */ \"../core-common/lib/preferences/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./storage */ \"../core-common/lib/storage.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./network */ \"../core-common/lib/network.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./log */ \"../core-common/lib/log.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./json-schema */ \"../core-common/lib/json-schema.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./reporter */ \"../core-common/lib/reporter.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./connection */ \"../core-common/lib/connection.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./comparers */ \"../core-common/lib/comparers.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./problem-pattern */ \"../core-common/lib/problem-pattern.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./problem-matcher */ \"../core-common/lib/problem-matcher.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./task-definition */ \"../core-common/lib/task-definition.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./line-text */ \"../core-common/lib/line-text.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./keyboard */ \"../core-common/lib/keyboard/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./theme */ \"../core-common/lib/theme.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./env */ \"../core-common/lib/env.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./credential */ \"../core-common/lib/credential.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./crypto */ \"../core-common/lib/crypto.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./markdown */ \"../core-common/lib/markdown.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./settings */ \"../core-common/lib/settings/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./utils */ \"../core-common/lib/utils/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./clipboard */ \"../core-common/lib/clipboard.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./mime */ \"../core-common/lib/mime.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./application.lifecycle */ \"../core-common/lib/application.lifecycle.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./extension.schema */ \"../core-common/lib/extension.schema.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./ai-native */ \"../core-common/lib/ai-native/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./remote-service */ \"../core-common/lib/remote-service/index.js\"), exports);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/index.js?");
6387
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\ntslib_1.__exportStar(__webpack_require__(/*! ./di-helper */ \"../core-common/lib/di-helper/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./event-bus */ \"../core-common/lib/event-bus/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./contribution-provider */ \"../core-common/lib/contribution-provider.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./declare */ \"../core-common/lib/declare.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./editor */ \"../core-common/lib/editor.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./reference */ \"../core-common/lib/reference.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./module */ \"../core-common/lib/module.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./command */ \"../core-common/lib/command.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./menu */ \"../core-common/lib/menu.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./localize */ \"../core-common/lib/localize.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./types */ \"../core-common/lib/types/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./preferences */ \"../core-common/lib/preferences/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./storage */ \"../core-common/lib/storage.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./network */ \"../core-common/lib/network.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./log */ \"../core-common/lib/log.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./json-schema */ \"../core-common/lib/json-schema.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./reporter */ \"../core-common/lib/reporter.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./connection */ \"../core-common/lib/connection.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./comparers */ \"../core-common/lib/comparers.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./problem-pattern */ \"../core-common/lib/problem-pattern.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./problem-matcher */ \"../core-common/lib/problem-matcher.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./task-definition */ \"../core-common/lib/task-definition.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./line-text */ \"../core-common/lib/line-text.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./keyboard */ \"../core-common/lib/keyboard/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./theme */ \"../core-common/lib/theme.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./env */ \"../core-common/lib/env.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./credential */ \"../core-common/lib/credential.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./crypto */ \"../core-common/lib/crypto.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./markdown */ \"../core-common/lib/markdown.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./settings */ \"../core-common/lib/settings/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./utils */ \"../core-common/lib/utils/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./clipboard */ \"../core-common/lib/clipboard.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./mime */ \"../core-common/lib/mime.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./application.lifecycle */ \"../core-common/lib/application.lifecycle.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./extension.schema */ \"../core-common/lib/extension.schema.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./ai-native */ \"../core-common/lib/ai-native/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./remote-service */ \"../core-common/lib/remote-service/index.js\"), exports);\ntslib_1.__exportStar(__webpack_require__(/*! ./collections */ \"../core-common/lib/collections.js\"), exports);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/index.js?");
6377
6388
 
6378
6389
  /***/ }),
6379
6390
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.5.1-next-1731935606.0",
3
+ "version": "3.5.1-next-1732847732.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.5.1-next-1731935606.0",
20
- "@opensumi/ide-utils": "3.5.1-next-1731935606.0",
19
+ "@opensumi/ide-core-common": "3.5.1-next-1732847732.0",
20
+ "@opensumi/ide-utils": "3.5.1-next-1732847732.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.5.1-next-1731935606.0",
41
+ "@opensumi/ide-dev-tool": "3.5.1-next-1732847732.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": "5849361f31f3affe436c41a791112e3c7352c98c"
46
+ "gitHead": "fc4ad0d13ee8e3b0553fff08c7831719e88003b2"
47
47
  }