@opensumi/ide-components 3.8.1-next-1740965430.0 → 3.8.1-next-1741061006.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 +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -7880,7 +7880,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
7880
7880
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7881
7881
|
|
|
7882
7882
|
"use strict";
|
|
7883
|
-
eval("/* provided dependency */ var process = __webpack_require__(/*! ../../node_modules/process/browser.js */ \"../../node_modules/process/browser.js\");\n\n/* ---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// Some code copied and modified from https://github.com/microsoft/vscode/blob/01d1ea52e639615c4513689ce66576829438f748/src/vs/base/common/platform.ts\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.isSafari = exports.isChrome = exports.userAgent = exports.OperatingSystem = exports.globals = exports.translationsConfigFile = exports.locale = exports.Language = exports.language = exports.isWebKit = exports.platform = exports.isWeb = exports.isNative = exports.isLinux = exports.isOSX = exports.isMacintosh = exports.isWindows = exports.LANGUAGE_DEFAULT = void 0;\nexports.PlatformToString = PlatformToString;\nexports.isRootUser = isRootUser;\nexports.
|
|
7883
|
+
eval("/* provided dependency */ var process = __webpack_require__(/*! ../../node_modules/process/browser.js */ \"../../node_modules/process/browser.js\");\n\n/* ---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// Some code copied and modified from https://github.com/microsoft/vscode/blob/01d1ea52e639615c4513689ce66576829438f748/src/vs/base/common/platform.ts\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.isSafari = exports.isChrome = exports.userAgent = exports.OperatingSystem = exports.globals = exports.translationsConfigFile = exports.locale = exports.Language = exports.language = exports.isWebKit = exports.platform = exports.isWeb = exports.isNative = exports.isLinux = exports.isOSX = exports.isMacintosh = exports.isWindows = exports.LANGUAGE_DEFAULT = void 0;\nexports.PlatformToString = PlatformToString;\nexports.isRootUser = isRootUser;\nexports.setImmediate = setImmediate;\nconst types_1 = __webpack_require__(/*! ./types */ \"../utils/lib/types.js\");\nexports.LANGUAGE_DEFAULT = 'en';\nlet _isWindows = false;\nlet _isMacintosh = false;\nlet _isLinux = false;\nlet _isNative = false;\nlet _isWeb = false;\nlet _locale;\nlet _language = exports.LANGUAGE_DEFAULT;\nlet _translationsConfigFile;\nlet _isWebKit = false;\nlet nodeProcess;\nif (typeof process !== 'undefined' && typeof ((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) === 'string') {\n nodeProcess = process;\n}\nconst isElectronRenderer = nodeProcess && (0, types_1.isString)((_b = nodeProcess === null || nodeProcess === void 0 ? void 0 : nodeProcess.versions) === null || _b === void 0 ? void 0 : _b.electron) && nodeProcess.type === 'renderer';\nconst isNodeNavigator = typeof navigator === 'object' && (0, types_1.isString)(navigator.userAgent) && navigator.userAgent.startsWith('Node.js');\n// OS detection\nif (typeof navigator === 'object' && !isNodeNavigator && !isElectronRenderer) {\n const userAgent = navigator.userAgent;\n // Node 21+ has navigator property\n _isWindows = userAgent.indexOf('Windows') >= 0;\n _isMacintosh = userAgent.indexOf('Macintosh') >= 0;\n _isLinux = userAgent.indexOf('Linux') >= 0;\n _isWeb = true;\n _locale = navigator.language;\n _language = _locale;\n _isWebKit = userAgent.indexOf('AppleWebKit') >= 0;\n}\nelse if (typeof nodeProcess === 'object') {\n _isWindows = nodeProcess.platform === 'win32';\n _isMacintosh = nodeProcess.platform === 'darwin';\n _isLinux = nodeProcess.platform === 'linux';\n _locale = exports.LANGUAGE_DEFAULT;\n _language = exports.LANGUAGE_DEFAULT;\n const rawNlsConfig = nodeProcess.env['VSCODE_NLS_CONFIG'];\n if (rawNlsConfig) {\n try {\n const nlsConfig = JSON.parse(rawNlsConfig);\n const resolved = nlsConfig.availableLanguages['*'];\n _locale = nlsConfig.locale;\n // VSCode's default language is 'en'\n _language = resolved ? resolved : exports.LANGUAGE_DEFAULT;\n _translationsConfigFile = nlsConfig._translationsConfigFile;\n }\n catch (e) { }\n }\n _isNative = true;\n}\nfunction PlatformToString(platform) {\n switch (platform) {\n case 0 /* Platform.Web */:\n return 'Web';\n case 1 /* Platform.Mac */:\n return 'Mac';\n case 2 /* Platform.Linux */:\n return 'Linux';\n case 3 /* Platform.Windows */:\n return 'Windows';\n }\n}\nlet _platform = 0 /* Platform.Web */;\nif (_isNative) {\n if (_isMacintosh) {\n _platform = 1 /* Platform.Mac */;\n }\n else if (_isWindows) {\n _platform = 3 /* Platform.Windows */;\n }\n else if (_isLinux) {\n _platform = 2 /* Platform.Linux */;\n }\n}\nexports.isWindows = _isWindows;\nexports.isMacintosh = _isMacintosh;\nexports.isOSX = _isMacintosh;\nexports.isLinux = _isLinux;\nexports.isNative = _isNative;\nexports.isWeb = _isWeb;\nexports.platform = _platform;\nexports.isWebKit = _isWebKit;\nfunction isRootUser() {\n return _isNative && !_isWindows && process.getuid() === 0;\n}\n/**\n * The language used for the user interface. The format of\n * the string is all lower case (e.g. zh-tw for Traditional\n * Chinese)\n */\nexports.language = _language;\nvar Language;\n(function (Language) {\n function value() {\n return exports.language;\n }\n Language.value = value;\n function isDefaultVariant() {\n if (exports.language.length === 2) {\n return exports.language === 'en';\n }\n else if (exports.language.length >= 3) {\n return exports.language[0] === 'e' && exports.language[1] === 'n' && exports.language[2] === '-';\n }\n else {\n return false;\n }\n }\n Language.isDefaultVariant = isDefaultVariant;\n function isDefault() {\n return exports.language === 'en';\n }\n Language.isDefault = isDefault;\n})(Language || (exports.Language = Language = {}));\n/**\n * The OS locale or the locale specified by --locale. The format of\n * the string is all lower case (e.g. zh-tw for Traditional\n * Chinese). The UI is not necessarily shown in the provided locale.\n */\nexports.locale = _locale;\n/**\n * The translatios that are available through language packs.\n */\nexports.translationsConfigFile = _translationsConfigFile;\nconst _globals = typeof self === 'object' ? self : typeof __webpack_require__.g === 'object' ? __webpack_require__.g : {};\nexports.globals = _globals;\nlet _setImmediate = null;\nfunction setImmediate(callback) {\n if (_setImmediate === null) {\n if (exports.globals.setImmediate) {\n _setImmediate = exports.globals.setImmediate.bind(exports.globals);\n }\n else if (typeof process !== 'undefined' && typeof process.nextTick === 'function') {\n _setImmediate = process.nextTick.bind(process);\n }\n else {\n _setImmediate = exports.globals.setTimeout.bind(exports.globals);\n }\n }\n return _setImmediate(callback);\n}\nvar OperatingSystem;\n(function (OperatingSystem) {\n OperatingSystem[OperatingSystem[\"Windows\"] = 1] = \"Windows\";\n OperatingSystem[OperatingSystem[\"Macintosh\"] = 2] = \"Macintosh\";\n OperatingSystem[OperatingSystem[\"Linux\"] = 3] = \"Linux\";\n})(OperatingSystem || (exports.OperatingSystem = OperatingSystem = {}));\nexports.userAgent = typeof navigator === 'object' ? navigator.userAgent : null;\nexports.isChrome = (exports.userAgent === null || exports.userAgent === void 0 ? void 0 : exports.userAgent.indexOf('Chrome')) >= 0;\nexports.isSafari = !exports.isChrome && (exports.userAgent === null || exports.userAgent === void 0 ? void 0 : exports.userAgent.indexOf('Safari')) >= 0;\n//# sourceMappingURL=platform.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/platform.js?");
|
|
7884
7884
|
|
|
7885
7885
|
/***/ }),
|
|
7886
7886
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-components",
|
|
3
|
-
"version": "3.8.1-next-
|
|
3
|
+
"version": "3.8.1-next-1741061006.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.8.1-next-
|
|
20
|
-
"@opensumi/ide-utils": "3.8.1-next-
|
|
19
|
+
"@opensumi/ide-core-common": "3.8.1-next-1741061006.0",
|
|
20
|
+
"@opensumi/ide-utils": "3.8.1-next-1741061006.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.8.1-next-
|
|
41
|
+
"@opensumi/ide-dev-tool": "3.8.1-next-1741061006.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": "82226cbbc03f9b5b875d581216035e858c57163c"
|
|
47
47
|
}
|