@k8slens/extensions 6.0.1-git.d78d009d41.0 → 6.0.1-git.feb2859b5d.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.
@@ -33398,7 +33398,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
33398
33398
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
33399
33399
 
33400
33400
  "use strict";
33401
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Badge\": () => (/* binding */ Badge)\n/* harmony export */ });\n/* harmony import */ var _badge_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge.module.scss */ \"./src/renderer/components/badge/badge.module.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mobx */ \"./node_modules/mobx/dist/mobx.esm.js\");\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils_cssNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/cssNames */ \"./src/renderer/utils/cssNames.ts\");\n/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tooltip */ \"./src/renderer/components/tooltip/index.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n\n\n\n\n// Common handler for all Badge instances\ndocument.addEventListener(\"selectionchange\", () => {\n var _a, _b;\n badgeMeta.hasTextSelected || (badgeMeta.hasTextSelected = ((_b = (_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString().trim().length) !== null && _b !== void 0 ? _b : 0) > 0);\n});\nconst badgeMeta = (0,mobx__WEBPACK_IMPORTED_MODULE_4__.observable)({\n hasTextSelected: false,\n});\nconst Badge = (0,_tooltip__WEBPACK_IMPORTED_MODULE_3__.withTooltip)((0,mobx_react__WEBPACK_IMPORTED_MODULE_5__.observer)(({ small, flat, label, expandable = false, disabled, scrollable, className, children, ...elemProps }) => {\n const elem = (0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)();\n const [isExpanded, setIsExpanded] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n const isExpandable = expandable && elem.current\n ? elem.current.clientWidth < elem.current.scrollWidth\n : false;\n const onMouseUp = (0,mobx__WEBPACK_IMPORTED_MODULE_4__.action)(() => {\n if (!isExpandable || badgeMeta.hasTextSelected) {\n badgeMeta.hasTextSelected = false;\n }\n else {\n setIsExpanded(!isExpanded);\n }\n });\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(\"div\", { ...elemProps, className: (0,_utils_cssNames__WEBPACK_IMPORTED_MODULE_2__.cssNames)(_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].badge, className, {\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].small]: small,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].flat]: flat,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clickable]: Boolean(elemProps.onClick) || isExpandable,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].interactive]: isExpandable,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isExpanded]: isExpanded,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].disabled]: disabled,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].scrollable]: scrollable,\n }), onMouseUp: onMouseUp, ref: elem },\n label,\n children));\n}));\n\n\n//# sourceURL=webpack://open-lens/./src/renderer/components/badge/badge.tsx?");
33401
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Badge\": () => (/* binding */ Badge)\n/* harmony export */ });\n/* harmony import */ var _badge_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge.module.scss */ \"./src/renderer/components/badge/badge.module.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mobx */ \"./node_modules/mobx/dist/mobx.esm.js\");\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils_cssNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/cssNames */ \"./src/renderer/utils/cssNames.ts\");\n/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tooltip */ \"./src/renderer/components/tooltip/index.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n\n\n\n\n// Common handler for all Badge instances\ndocument.addEventListener(\"selectionchange\", () => {\n var _a, _b;\n badgeMeta.hasTextSelected || (badgeMeta.hasTextSelected = ((_b = (_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString().trim().length) !== null && _b !== void 0 ? _b : 0) > 0);\n});\nconst badgeMeta = (0,mobx__WEBPACK_IMPORTED_MODULE_4__.observable)({\n hasTextSelected: false,\n});\nconst Badge = (0,_tooltip__WEBPACK_IMPORTED_MODULE_3__.withTooltip)((0,mobx_react__WEBPACK_IMPORTED_MODULE_5__.observer)(({ small, flat, label, expandable = true, disabled, scrollable, className, children, ...elemProps }) => {\n const elem = (0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)();\n const [isExpanded, setIsExpanded] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n const isExpandable = expandable && elem.current\n ? elem.current.clientWidth < elem.current.scrollWidth\n : false;\n const onMouseUp = (0,mobx__WEBPACK_IMPORTED_MODULE_4__.action)(() => {\n if (!isExpandable || badgeMeta.hasTextSelected) {\n badgeMeta.hasTextSelected = false;\n }\n else {\n setIsExpanded(!isExpanded);\n }\n });\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(\"div\", { ...elemProps, className: (0,_utils_cssNames__WEBPACK_IMPORTED_MODULE_2__.cssNames)(_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].badge, className, {\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].small]: small,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].flat]: flat,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clickable]: Boolean(elemProps.onClick) || isExpandable,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].interactive]: isExpandable,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isExpanded]: isExpanded,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].disabled]: disabled,\n [_badge_module_scss__WEBPACK_IMPORTED_MODULE_0__[\"default\"].scrollable]: scrollable,\n }), onMouseUp: onMouseUp, ref: elem },\n label,\n children));\n}));\n\n\n//# sourceURL=webpack://open-lens/./src/renderer/components/badge/badge.tsx?");
33402
33402
 
33403
33403
  /***/ }),
33404
33404
 
@@ -13,5 +13,5 @@ export interface SwitcherProps extends SwitchProps {
13
13
  /**
14
14
  * @deprecated Use <Switch/> instead from "../switch.tsx".
15
15
  */
16
- export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "key" | "value" | "id" | "name" | "className" | "form" | "slot" | "style" | "title" | "size" | "type" | "action" | "ref" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
16
+ export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "key" | "value" | "className" | "form" | "slot" | "style" | "title" | "size" | "type" | "action" | "ref" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
17
17
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@k8slens/extensions",
3
3
  "productName": "OpenLens extensions",
4
4
  "description": "OpenLens - Open Source Kubernetes IDE: extensions",
5
- "version": "6.0.1-git.d78d009d41.0",
5
+ "version": "6.0.1-git.feb2859b5d.0",
6
6
  "copyright": "© 2022 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",