Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jupyterlab/documentsearch

Package Overview
Dependencies
Maintainers
10
Versions
348
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/documentsearch - npm Package Compare versions

Comparing version 4.1.3 to 4.2.0-alpha.0

18

lib/searchview.js

@@ -230,8 +230,12 @@ // Copyright (c) Jupyter Development Team.

const filter = hasFilters ? (React.createElement("div", { className: SEARCH_OPTIONS_CLASS }, Object.keys(filters).map(name => {
var _a;
var _a, _b;
const filter = filters[name];
return (React.createElement(FilterSelection, { key: name, title: filter.title, description: filter.description +
(name == 'selection' ? selectionKeyHint : ''), isEnabled: !showReplace || filter.supportReplace, onToggle: async () => {
const isEnabled = !showReplace || filter.supportReplace;
// Show an alternate description, if one exists, when a filter is disabled in replace mode.
const description = isEnabled
? filter.description
: (_a = filter.disabledDescription) !== null && _a !== void 0 ? _a : filter.description;
return (React.createElement(FilterSelection, { key: name, title: filter.title, description: description + (name == 'selection' ? selectionKeyHint : ''), isEnabled: isEnabled, onToggle: async () => {
await this.props.onFilterChanged(name, !this.props.filters[name]);
}, value: (_a = this.props.filters[name]) !== null && _a !== void 0 ? _a : filter.default }));
}, value: (_b = this.props.filters[name]) !== null && _b !== void 0 ? _b : filter.default }));
}))) : null;

@@ -244,3 +248,5 @@ const icon = this.props.replaceEntryVisible

React.createElement("div", { className: OVERLAY_ROW_CLASS },
this.props.isReadOnly ? (React.createElement("div", { className: TOGGLE_PLACEHOLDER })) : (React.createElement("button", { className: TOGGLE_WRAPPER, onClick: () => this._onReplaceToggled(), tabIndex: 0, title: trans.__('Toggle Replace') },
this.props.isReadOnly ? (React.createElement("div", { className: TOGGLE_PLACEHOLDER })) : (React.createElement("button", { className: TOGGLE_WRAPPER, onClick: () => this._onReplaceToggled(), tabIndex: 0, title: showReplace
? trans.__('Hide Replace')
: trans.__('Show Replace') },
React.createElement(icon.react, { className: `${REPLACE_TOGGLE_CLASS} ${BUTTON_CONTENT_CLASS}`, tag: "span", elementPosition: "center", height: "20px", width: "20px" }))),

@@ -255,3 +261,3 @@ React.createElement(SearchEntry, { inputRef: this.props.searchInputRef, useRegex: this.props.useRegex, caseSensitive: this.props.caseSensitive, wholeWords: this.props.wholeWords, onCaseSensitiveToggled: this.props.onCaseSensitiveToggled, onRegexToggled: this.props.onRegexToggled, onWordToggled: this.props.onWordToggled, onKeydown: (e) => this._onSearchKeydown(e), onChange: (e) => this._onSearchChange(e), initialSearchText: this.props.initialSearchText, translator: this.translator }),

}, trans: trans, keyBindings: this.props.keyBindings }),
React.createElement("button", { className: BUTTON_WRAPPER_CLASS, onClick: () => this._onClose(), tabIndex: 0 },
React.createElement("button", { className: BUTTON_WRAPPER_CLASS, onClick: () => this._onClose(), tabIndex: 0, title: trans.__('Close Search Box') },
React.createElement(closeIcon.react, { className: "jp-icon-hover", elementPosition: "center", height: "16px", width: "16px" }))),

@@ -258,0 +264,0 @@ React.createElement("div", { className: OVERLAY_ROW_CLASS }, showReplace ? (React.createElement(React.Fragment, null,

@@ -23,2 +23,6 @@ import { ITranslator } from '@jupyterlab/translation';

/**
* Filter description to be used when the filter is disabled in replace mode.
*/
disabledDescription?: string;
/**
* Default value

@@ -25,0 +29,0 @@ */

{
"name": "@jupyterlab/documentsearch",
"version": "4.1.3",
"version": "4.2.0-alpha.0",
"description": "JupyterLab - Document Search",

@@ -41,5 +41,5 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"dependencies": {
"@jupyterlab/apputils": "^4.2.3",
"@jupyterlab/translation": "^4.1.3",
"@jupyterlab/ui-components": "^4.1.3",
"@jupyterlab/apputils": "^4.3.0-alpha.0",
"@jupyterlab/translation": "^4.2.0-alpha.0",
"@jupyterlab/ui-components": "^4.2.0-alpha.0",
"@lumino/commands": "^2.2.0",

@@ -55,3 +55,3 @@ "@lumino/coreutils": "^2.1.2",

"devDependencies": {
"@jupyterlab/testing": "^4.1.3",
"@jupyterlab/testing": "^4.2.0-alpha.0",
"@types/jest": "^29.2.0",

@@ -58,0 +58,0 @@ "jest": "^29.2.0",

@@ -33,2 +33,6 @@ // Copyright (c) Jupyter Development Team.

/**
* Filter description to be used when the filter is disabled in replace mode.
*/
disabledDescription?: string;
/**
* Default value

@@ -35,0 +39,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc