@opensumi/ide-components 3.8.1-next-1741080291.0 → 3.8.1-next-1741092802.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 CHANGED
@@ -6067,7 +6067,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
6067
6067
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6068
6068
 
6069
6069
  "use strict";
6070
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Popover = exports.PopoverPosition = exports.PopoverTriggerType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst rc_tooltip_1 = tslib_1.__importDefault(__webpack_require__(/*! rc-tooltip */ \"../../node_modules/rc-tooltip/es/index.js\"));\nconst react_1 = tslib_1.__importStar(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\n__webpack_require__(/*! ./styles.less */ \"./src/popover/styles.less\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nvar PopoverTriggerType;\n(function (PopoverTriggerType) {\n PopoverTriggerType[\"hover\"] = \"hover\";\n PopoverTriggerType[\"click\"] = \"click\";\n PopoverTriggerType[\"focus\"] = \"focus\";\n})(PopoverTriggerType || (exports.PopoverTriggerType = PopoverTriggerType = {}));\nvar PopoverPosition;\n(function (PopoverPosition) {\n PopoverPosition[\"top\"] = \"top\";\n PopoverPosition[\"bottom\"] = \"bottom\";\n PopoverPosition[\"left\"] = \"left\";\n PopoverPosition[\"right\"] = \"right\";\n PopoverPosition[\"topLeft\"] = \"topLeft\";\n PopoverPosition[\"topRight\"] = \"topRight\";\n PopoverPosition[\"bottomLeft\"] = \"bottomLeft\";\n PopoverPosition[\"bottomRight\"] = \"bottomRight\";\n PopoverPosition[\"leftTop\"] = \"leftTop\";\n PopoverPosition[\"leftBottom\"] = \"leftBottom\";\n PopoverPosition[\"rightTop\"] = \"rightTop\";\n PopoverPosition[\"rightBottom\"] = \"rightBottom\";\n})(PopoverPosition || (exports.PopoverPosition = PopoverPosition = {}));\nconst Popover = (_a) => {\n var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer } = _a, restProps = tslib_1.__rest(_a, [\"children\", \"trigger\", \"visible\", \"content\", \"position\", \"showArrow\", \"title\", \"titleClassName\", \"overlay\", \"overlayClassName\", \"overlayStyle\", \"action\", \"delay\", \"zIndex\", \"onClickAction\", \"onVisibleChange\", \"getTooltipContainer\"]);\n const handleActionClick = (0, react_1.useCallback)((event) => {\n if (onClickAction) {\n onClickAction(event);\n }\n }, [onClickAction]);\n const overlayContent = (0, react_1.useMemo)(() => {\n if (overlay) {\n return overlay;\n }\n else {\n if (!title && !content) {\n return null;\n }\n return (react_1.default.createElement(react_1.default.Fragment, null,\n title && (react_1.default.createElement(\"p\", { className: (0, classnames_1.default)('kt-popover-title', titleClassName) },\n title,\n action && (react_1.default.createElement(button_1.Button, { size: 'small', type: 'link', onClick: handleActionClick }, action)))),\n content || ''));\n }\n }, [overlay, content, action, handleActionClick]);\n if (!overlayContent) {\n return children;\n }\n return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, getTooltipContainer: getTooltipContainer, overlay: overlayContent, zIndex: zIndex }),\n react_1.default.createElement(\"div\", { className: 'kt-popover-trigger' }, children)));\n};\nexports.Popover = Popover;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/popover/index.tsx?");
6070
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Popover = exports.PopoverPosition = exports.PopoverTriggerType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst rc_tooltip_1 = tslib_1.__importDefault(__webpack_require__(/*! rc-tooltip */ \"../../node_modules/rc-tooltip/es/index.js\"));\nconst react_1 = tslib_1.__importStar(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\n__webpack_require__(/*! ./styles.less */ \"./src/popover/styles.less\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nvar PopoverTriggerType;\n(function (PopoverTriggerType) {\n PopoverTriggerType[\"hover\"] = \"hover\";\n PopoverTriggerType[\"click\"] = \"click\";\n PopoverTriggerType[\"focus\"] = \"focus\";\n})(PopoverTriggerType || (exports.PopoverTriggerType = PopoverTriggerType = {}));\nvar PopoverPosition;\n(function (PopoverPosition) {\n PopoverPosition[\"top\"] = \"top\";\n PopoverPosition[\"bottom\"] = \"bottom\";\n PopoverPosition[\"left\"] = \"left\";\n PopoverPosition[\"right\"] = \"right\";\n PopoverPosition[\"topLeft\"] = \"topLeft\";\n PopoverPosition[\"topRight\"] = \"topRight\";\n PopoverPosition[\"bottomLeft\"] = \"bottomLeft\";\n PopoverPosition[\"bottomRight\"] = \"bottomRight\";\n PopoverPosition[\"leftTop\"] = \"leftTop\";\n PopoverPosition[\"leftBottom\"] = \"leftBottom\";\n PopoverPosition[\"rightTop\"] = \"rightTop\";\n PopoverPosition[\"rightBottom\"] = \"rightBottom\";\n})(PopoverPosition || (exports.PopoverPosition = PopoverPosition = {}));\nconst Popover = (_a) => {\n var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay = 200, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer } = _a, restProps = tslib_1.__rest(_a, [\"children\", \"trigger\", \"visible\", \"content\", \"position\", \"showArrow\", \"title\", \"titleClassName\", \"overlay\", \"overlayClassName\", \"overlayStyle\", \"action\", \"delay\", \"zIndex\", \"onClickAction\", \"onVisibleChange\", \"getTooltipContainer\"]);\n const handleActionClick = (0, react_1.useCallback)((event) => {\n if (onClickAction) {\n onClickAction(event);\n }\n }, [onClickAction]);\n const overlayContent = (0, react_1.useMemo)(() => {\n if (overlay) {\n return overlay;\n }\n else {\n if (!title && !content) {\n return null;\n }\n return (react_1.default.createElement(react_1.default.Fragment, null,\n title && (react_1.default.createElement(\"p\", { className: (0, classnames_1.default)('kt-popover-title', titleClassName) },\n title,\n action && (react_1.default.createElement(button_1.Button, { size: 'small', type: 'link', onClick: handleActionClick }, action)))),\n content || ''));\n }\n }, [overlay, content, action, handleActionClick]);\n if (!overlayContent) {\n return children;\n }\n return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, getTooltipContainer: getTooltipContainer, overlay: overlayContent, zIndex: zIndex }),\n react_1.default.createElement(\"div\", { className: 'kt-popover-trigger' }, children)));\n};\nexports.Popover = Popover;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/popover/index.tsx?");
6071
6071
 
6072
6072
  /***/ }),
6073
6073
 
@@ -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.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?");
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.getOperatingSystemName = getOperatingSystemName;\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}\nfunction getOperatingSystemName() {\n if (exports.isWindows) {\n return 'Windows';\n }\n if (exports.isMacintosh) {\n return 'Macintosh';\n }\n return 'Linux';\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
 
@@ -28,7 +28,7 @@ var PopoverPosition;
28
28
  PopoverPosition["rightTop"] = "rightTop";
29
29
  PopoverPosition["rightBottom"] = "rightBottom";
30
30
  })(PopoverPosition || (exports.PopoverPosition = PopoverPosition = {}));
31
- const Popover = ({ children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer, ...restProps }) => {
31
+ const Popover = ({ children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay = 200, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer, ...restProps }) => {
32
32
  const handleActionClick = (0, react_1.useCallback)((event) => {
33
33
  if (onClickAction) {
34
34
  onClickAction(event);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.tsx"],"names":[],"mappings":";;;;AAAA,oEAA6B;AAC7B,oEAAiC;AACjC,uDAAoD;AAEpD,yBAAuB;AAEvB,sCAAmC;AAEnC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,eAaX;AAbD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,8CAA2B,CAAA;IAC3B,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC7B,CAAC,EAbW,eAAe,+BAAf,eAAe,QAa1B;AAwBM,MAAM,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AE,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,EACjD,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,MAAM;QAEd,uCAAK,SAAS,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CAC5C,CACX,CAAC;AACJ,CAAC,CAAC;AA7EW,QAAA,OAAO,WA6ElB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.8.1-next-1741080291.0",
3
+ "version": "3.8.1-next-1741092802.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-1741080291.0",
20
- "@opensumi/ide-utils": "3.8.1-next-1741080291.0",
19
+ "@opensumi/ide-core-common": "3.8.1-next-1741092802.0",
20
+ "@opensumi/ide-utils": "3.8.1-next-1741092802.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-1741080291.0",
41
+ "@opensumi/ide-dev-tool": "3.8.1-next-1741092802.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": "55ec31e1951ff2b2b124f34d48aaa0b223ae457c"
46
+ "gitHead": "7dc1c6d485b184de145a648f66959aa243447ea3"
47
47
  }