chrome-devtools-frontend 1.0.972865 → 1.0.973253

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.
@@ -5641,6 +5641,30 @@ constructor is no longer provided.) Values of `null` are ignored.
5641
5641
  */
5642
5642
  declare const showPanel: Facet<PanelConstructor | null, readonly (PanelConstructor | null)[]>;
5643
5643
 
5644
+ declare type HighlightOptions = {
5645
+ /**
5646
+ Determines whether, when nothing is selected, the word around
5647
+ the cursor is matched instead. Defaults to false.
5648
+ */
5649
+ highlightWordAroundCursor?: boolean;
5650
+ /**
5651
+ The minimum length of the selection before it is highlighted.
5652
+ Defaults to 1 (always highlight non-cursor selections).
5653
+ */
5654
+ minSelectionLength?: number;
5655
+ /**
5656
+ The amount of matches (in the viewport) at which to disable
5657
+ highlighting. Defaults to 100.
5658
+ */
5659
+ maxMatches?: number;
5660
+ };
5661
+ /**
5662
+ This extension highlights text that matches the selection. It uses
5663
+ the `"cm-selectionMatch"` class for the highlighting. When
5664
+ `highlightWordAroundCursor` is enabled, the word at the cursor
5665
+ itself will be highlighted with `"cm-selectionMatch-main"`.
5666
+ */
5667
+ declare function highlightSelectionMatches(options?: HighlightOptions): Extension;
5644
5668
  /**
5645
5669
  Select next occurrence of the current selection.
5646
5670
  Expand selection to the word when selection range is empty.
@@ -5788,4 +5812,4 @@ declare function shell(): Promise<StreamLanguage<unknown>>;
5788
5812
  declare function wast(): Promise<typeof _codemirror_lang_wast>;
5789
5813
  declare function xml(): Promise<typeof _codemirror_lang_xml>;
5790
5814
 
5791
- export { Annotation, AnnotationType, ChangeDesc, ChangeSet, ChangeSpec, Command, Compartment, Completion, CompletionContext, CompletionResult, CompletionSource, Decoration, DecorationSet, EditorSelection, EditorState, EditorStateConfig, EditorView, Extension, Facet, GutterMarker, HighlightStyle, KeyBinding, LRParser, Language, LanguageSupport, Line$1 as Line, MapMode, MatchDecorator, NodeProp, NodeSet, NodeType, Panel, Parser, Prec, Range, RangeSet, RangeSetBuilder, SelectionRange, StateEffect, StateEffectType, StateField, StreamLanguage, StreamParser, StringStream, StyleModule, SyntaxNode, Tag, TagStyle, Text, TextIterator, Tooltip, TooltipView, Transaction, TransactionSpec, Tree, TreeCursor, ViewPlugin, ViewUpdate, WidgetType, acceptCompletion, autocompletion, bracketMatching, clojure, closeBrackets, closeBracketsKeymap, closeCompletion, codeFolding, coffeescript, completeAnyWord, cpp, index_d$2 as css, currentCompletions, cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward, drawSelection, ensureSyntaxTree, foldGutter, foldKeymap, gutter, gutters, highlightSpecialChars, highlightTree, history, historyKeymap, index_d$1 as html, ifNotIn, indentLess, indentMore, indentOnInput, indentUnit, insertNewlineAndIndent, java, index_d as javascript, json, keymap, lineNumberMarkers, lineNumbers, markdown, php, placeholder, python, redo, redoSelection, repositionTooltips, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, selectedCompletion, shell, showPanel, showTooltip, standardKeymap, startCompletion, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
5815
+ export { Annotation, AnnotationType, ChangeDesc, ChangeSet, ChangeSpec, Command, Compartment, Completion, CompletionContext, CompletionResult, CompletionSource, Decoration, DecorationSet, EditorSelection, EditorState, EditorStateConfig, EditorView, Extension, Facet, GutterMarker, HighlightStyle, KeyBinding, LRParser, Language, LanguageSupport, Line$1 as Line, MapMode, MatchDecorator, NodeProp, NodeSet, NodeType, Panel, Parser, Prec, Range, RangeSet, RangeSetBuilder, SelectionRange, StateEffect, StateEffectType, StateField, StreamLanguage, StreamParser, StringStream, StyleModule, SyntaxNode, Tag, TagStyle, Text, TextIterator, Tooltip, TooltipView, Transaction, TransactionSpec, Tree, TreeCursor, ViewPlugin, ViewUpdate, WidgetType, acceptCompletion, autocompletion, bracketMatching, clojure, closeBrackets, closeBracketsKeymap, closeCompletion, codeFolding, coffeescript, completeAnyWord, cpp, index_d$2 as css, currentCompletions, cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward, drawSelection, ensureSyntaxTree, foldGutter, foldKeymap, gutter, gutters, highlightSelectionMatches, highlightSpecialChars, highlightTree, history, historyKeymap, index_d$1 as html, ifNotIn, indentLess, indentMore, indentOnInput, indentUnit, insertNewlineAndIndent, java, index_d as javascript, json, keymap, lineNumberMarkers, lineNumbers, markdown, php, placeholder, python, redo, redoSelection, repositionTooltips, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, selectedCompletion, shell, showPanel, showTooltip, standardKeymap, startCompletion, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
@@ -1,2 +1,2 @@
1
- export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as scrollPastEnd,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as placeholder,aa as foldKeymap,aA as selectNextOccurrence,aB as Annotation,ab as gutter,aC as AnnotationType,ac as GutterMarker,aD as ChangeDesc,ad as gutters,aE as ChangeSet,ae as lineNumberMarkers,aF as Compartment,af as lineNumbers,aG as EditorState,ag as HighlightStyle,aH as Facet,ah as highlightTree,aI as MapMode,ai as Tag,aJ as SelectionRange,aj as history,aK as StateEffect,ak as historyKeymap,aL as StateEffectType,al as redo,aM as StateField,am as redoSelection,aN as Transaction,an as undo,aO as StreamLanguage,ao as undoSelection,aP as StringStream,ap as css,aQ as Line,aq as html,aR as Text,ar as javascript,as as ensureSyntaxTree,aS as repositionTooltips,at as indentOnInput,aT as showTooltip,au as indentUnit,aU as tooltips,aV as Decoration,av as bracketMatching,aW as drawSelection,aw as showPanel,aX as EditorView,ax as Range,ay as RangeSet,aY as highlightSpecialChars,aZ as MatchDecorator,az as RangeSetBuilder,B as json,b0 as ViewPlugin,b1 as ViewUpdate,b2 as WidgetType,b3 as TreeCursor,b4 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
1
+ export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as placeholder,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as MatchDecorator,aa as foldKeymap,aA as selectNextOccurrence,ab as gutter,aB as highlightSelectionMatches,aC as Annotation,ac as GutterMarker,aD as AnnotationType,ad as gutters,aE as ChangeDesc,ae as lineNumberMarkers,aF as ChangeSet,af as lineNumbers,aG as Compartment,ag as HighlightStyle,aH as EditorState,ah as highlightTree,aI as Facet,ai as Tag,aJ as MapMode,aj as history,aK as SelectionRange,ak as historyKeymap,aL as StateEffect,al as redo,aM as StateEffectType,am as redoSelection,aN as StateField,an as undo,aO as Transaction,ao as undoSelection,aP as StreamLanguage,ap as css,aQ as StringStream,aq as html,aR as Line,ar as javascript,aS as Text,as as ensureSyntaxTree,at as indentOnInput,aT as repositionTooltips,au as indentUnit,aU as showTooltip,av as bracketMatching,aV as tooltips,aW as Decoration,aw as showPanel,ax as Range,aX as drawSelection,aY as EditorView,ay as RangeSet,az as RangeSetBuilder,aZ as highlightSpecialChars,B as json,b0 as scrollPastEnd,b1 as ViewPlugin,b2 as ViewUpdate,b3 as WidgetType,b4 as TreeCursor,b5 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
2
2
 
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@codemirror/autocomplete": "0.19.12",
6
+ "@codemirror/autocomplete": "0.19.13",
7
7
  "@codemirror/closebrackets": "0.19.0",
8
8
  "@codemirror/commands": "0.19.8",
9
9
  "@codemirror/comment": "0.19.1",
@@ -17,7 +17,7 @@ div {
17
17
 
18
18
  .arrow-icon {
19
19
  display: inline-block;
20
- -webkit-mask-image: url("Images/treeoutlineTriangles.svg");
20
+ -webkit-mask-image: var(--image-file-treeoutlineTriangles);
21
21
  -webkit-mask-size: 32px 24px;
22
22
  -webkit-mask-position: 0 0;
23
23
  background-color: var(--color-text-primary);
@@ -224,6 +224,7 @@ export function baseConfiguration(text: string): CM.Extension {
224
224
  return [
225
225
  theme(),
226
226
  CM.highlightSpecialChars(),
227
+ CM.highlightSelectionMatches(),
227
228
  CM.history(),
228
229
  CM.drawSelection(),
229
230
  CM.EditorState.allowMultipleSelections.of(true),
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
55
55
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
56
56
  },
57
- "version": "1.0.972865"
57
+ "version": "1.0.973253"
58
58
  }