chrome-devtools-frontend 1.0.941095 → 1.0.943017

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.
Files changed (254) hide show
  1. package/WATCHLISTS +1 -1
  2. package/config/gni/all_devtools_files.gni +0 -62
  3. package/config/gni/devtools_grd_files.gni +55 -19
  4. package/config/gni/devtools_image_files.gni +2 -3
  5. package/front_end/.eslintrc.js +12 -1
  6. package/front_end/Images/src/feedback_button_icon.svg +3 -0
  7. package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
  8. package/front_end/Tests.js +1 -32
  9. package/front_end/core/common/Color.ts +5 -0
  10. package/front_end/core/i18n/locales/en-US.json +20 -29
  11. package/front_end/core/i18n/locales/en-XL.json +20 -29
  12. package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
  13. package/front_end/core/sdk/ConsoleModel.ts +26 -28
  14. package/front_end/core/sdk/DebuggerModel.ts +4 -14
  15. package/front_end/core/sdk/sdk-meta.ts +17 -3
  16. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -11
  17. package/front_end/entrypoints/inspector/inspector.json +1 -3
  18. package/front_end/entrypoints/js_app/js_app.json +1 -3
  19. package/front_end/entrypoints/main/MainImpl.ts +26 -0
  20. package/front_end/entrypoints/node_app/node_app.json +1 -3
  21. package/front_end/entrypoints/shell/shell.js +0 -11
  22. package/front_end/entrypoints/shell/shell.json +1 -5
  23. package/front_end/entrypoints/worker_app/worker_app.json +1 -7
  24. package/front_end/generated/InspectorBackendCommands.js +19 -0
  25. package/front_end/generated/protocol-mapping.d.ts +31 -1
  26. package/front_end/generated/protocol-proxy-api.d.ts +34 -2
  27. package/front_end/generated/protocol.d.ts +81 -6
  28. package/front_end/global_typings/global_defs.d.ts +5 -0
  29. package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
  30. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +14 -2
  31. package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
  32. package/front_end/legacy_test_runner/test_runner/TestRunner.js +11 -0
  33. package/front_end/models/formatter/SourceFormatter.ts +0 -10
  34. package/front_end/models/workspace/UISourceCode.ts +9 -42
  35. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  36. package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
  37. package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
  38. package/front_end/panels/application/application-meta.ts +0 -3
  39. package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
  40. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  41. package/front_end/panels/console/ConsolePinPane.ts +21 -26
  42. package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
  43. package/front_end/panels/coverage/CoverageView.ts +2 -105
  44. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
  45. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
  46. package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
  47. package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
  48. package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
  49. package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
  50. package/front_end/panels/emulation/DeviceModeView.ts +2 -1
  51. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
  52. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
  53. package/front_end/panels/emulation/emulation-meta.ts +2 -4
  54. package/front_end/panels/issues/issues-meta.ts +0 -2
  55. package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -3
  56. package/front_end/panels/layers/module.json +0 -1
  57. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
  58. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
  59. package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
  60. package/front_end/panels/lighthouse/module.json +0 -6
  61. package/front_end/panels/media/media-meta.ts +0 -3
  62. package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
  63. package/front_end/panels/network/network-meta.ts +0 -3
  64. package/front_end/panels/profiler/CPUProfileView.ts +10 -3
  65. package/front_end/panels/profiler/profiler-meta.ts +0 -2
  66. package/front_end/panels/screencast/screencast-meta.ts +0 -3
  67. package/front_end/panels/security/security-meta.ts +0 -3
  68. package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
  69. package/front_end/panels/sources/CSSPlugin.ts +310 -331
  70. package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
  71. package/front_end/panels/sources/CoveragePlugin.ts +121 -6
  72. package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
  73. package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
  74. package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
  75. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  76. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
  77. package/front_end/panels/sources/Plugin.ts +20 -4
  78. package/front_end/panels/sources/ProfilePlugin.ts +185 -0
  79. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  80. package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
  81. package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
  82. package/front_end/panels/sources/SourcesPanel.ts +6 -5
  83. package/front_end/panels/sources/SourcesView.ts +10 -8
  84. package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
  85. package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
  86. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  87. package/front_end/panels/sources/sources-legacy.ts +0 -6
  88. package/front_end/panels/sources/sources-meta.ts +1 -4
  89. package/front_end/panels/sources/sources.ts +0 -2
  90. package/front_end/panels/timeline/timeline-meta.ts +0 -5
  91. package/front_end/third_party/codemirror.next/bundle.ts +9 -13
  92. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  93. package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
  94. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
  95. package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
  96. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  97. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
  98. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
  99. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
  100. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  101. package/front_end/third_party/codemirror.next/package.json +13 -11
  102. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
  103. package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
  104. package/front_end/third_party/lighthouse/locales/ar.json +213 -81
  105. package/front_end/third_party/lighthouse/locales/bg.json +211 -79
  106. package/front_end/third_party/lighthouse/locales/ca.json +212 -80
  107. package/front_end/third_party/lighthouse/locales/cs.json +211 -79
  108. package/front_end/third_party/lighthouse/locales/da.json +211 -79
  109. package/front_end/third_party/lighthouse/locales/de.json +211 -79
  110. package/front_end/third_party/lighthouse/locales/el.json +213 -81
  111. package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
  112. package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
  113. package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
  114. package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
  115. package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
  116. package/front_end/third_party/lighthouse/locales/es.json +212 -80
  117. package/front_end/third_party/lighthouse/locales/fi.json +211 -79
  118. package/front_end/third_party/lighthouse/locales/fil.json +211 -79
  119. package/front_end/third_party/lighthouse/locales/fr.json +211 -79
  120. package/front_end/third_party/lighthouse/locales/he.json +212 -80
  121. package/front_end/third_party/lighthouse/locales/hi.json +214 -82
  122. package/front_end/third_party/lighthouse/locales/hr.json +211 -79
  123. package/front_end/third_party/lighthouse/locales/hu.json +211 -79
  124. package/front_end/third_party/lighthouse/locales/id.json +211 -79
  125. package/front_end/third_party/lighthouse/locales/it.json +211 -79
  126. package/front_end/third_party/lighthouse/locales/ja.json +211 -79
  127. package/front_end/third_party/lighthouse/locales/ko.json +211 -79
  128. package/front_end/third_party/lighthouse/locales/lt.json +211 -79
  129. package/front_end/third_party/lighthouse/locales/lv.json +214 -82
  130. package/front_end/third_party/lighthouse/locales/nl.json +211 -79
  131. package/front_end/third_party/lighthouse/locales/no.json +211 -79
  132. package/front_end/third_party/lighthouse/locales/pl.json +211 -79
  133. package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
  134. package/front_end/third_party/lighthouse/locales/pt.json +211 -79
  135. package/front_end/third_party/lighthouse/locales/ro.json +212 -80
  136. package/front_end/third_party/lighthouse/locales/ru.json +211 -79
  137. package/front_end/third_party/lighthouse/locales/sk.json +211 -79
  138. package/front_end/third_party/lighthouse/locales/sl.json +211 -79
  139. package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
  140. package/front_end/third_party/lighthouse/locales/sr.json +211 -79
  141. package/front_end/third_party/lighthouse/locales/sv.json +211 -79
  142. package/front_end/third_party/lighthouse/locales/ta.json +218 -86
  143. package/front_end/third_party/lighthouse/locales/te.json +251 -119
  144. package/front_end/third_party/lighthouse/locales/th.json +211 -79
  145. package/front_end/third_party/lighthouse/locales/tr.json +211 -79
  146. package/front_end/third_party/lighthouse/locales/uk.json +212 -80
  147. package/front_end/third_party/lighthouse/locales/vi.json +211 -79
  148. package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
  149. package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
  150. package/front_end/third_party/lighthouse/locales/zh.json +211 -79
  151. package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
  152. package/front_end/third_party/lighthouse/report/bundle.js +698 -492
  153. package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
  154. package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
  155. package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
  156. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
  157. package/front_end/ui/components/data_grid/dataGrid.css +12 -10
  158. package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
  159. package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
  160. package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
  161. package/front_end/ui/components/docs/panel_feedback/button.html +25 -0
  162. package/front_end/ui/components/docs/panel_feedback/button.ts +18 -0
  163. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -14
  164. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  165. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +67 -0
  166. package/front_end/ui/components/panel_feedback/panel_feedback.ts +1 -0
  167. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  168. package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
  169. package/front_end/ui/components/text_editor/config.ts +42 -26
  170. package/front_end/ui/components/text_editor/javascript.ts +2 -3
  171. package/front_end/ui/components/text_editor/position.ts +17 -0
  172. package/front_end/ui/components/text_editor/text_editor.ts +1 -0
  173. package/front_end/ui/components/text_editor/theme.ts +5 -1
  174. package/front_end/ui/legacy/Dialog.ts +3 -1
  175. package/front_end/ui/legacy/DropTarget.ts +2 -1
  176. package/front_end/ui/legacy/EmptyWidget.ts +2 -1
  177. package/front_end/ui/legacy/FilterBar.ts +2 -1
  178. package/front_end/ui/legacy/GlassPane.ts +4 -2
  179. package/front_end/ui/legacy/Infobar.ts +5 -8
  180. package/front_end/ui/legacy/InspectorView.ts +6 -1
  181. package/front_end/ui/legacy/ListWidget.ts +2 -1
  182. package/front_end/ui/legacy/PopoverHelper.ts +2 -1
  183. package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
  184. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
  185. package/front_end/ui/legacy/ReportView.ts +2 -1
  186. package/front_end/ui/legacy/RootView.ts +2 -1
  187. package/front_end/ui/legacy/SearchableView.ts +2 -1
  188. package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
  189. package/front_end/ui/legacy/SoftContextMenu.ts +2 -1
  190. package/front_end/ui/legacy/SoftDropDown.ts +4 -2
  191. package/front_end/ui/legacy/SplitWidget.ts +2 -1
  192. package/front_end/ui/legacy/SuggestBox.ts +2 -1
  193. package/front_end/ui/legacy/TabbedPane.ts +2 -1
  194. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
  195. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  196. package/front_end/ui/legacy/Toolbar.ts +3 -2
  197. package/front_end/ui/legacy/Treeoutline.ts +3 -2
  198. package/front_end/ui/legacy/UIUtils.ts +16 -13
  199. package/front_end/ui/legacy/ViewManager.ts +2 -1
  200. package/front_end/ui/legacy/Widget.ts +1 -1
  201. package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -3
  202. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +2 -1
  203. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +3 -1
  204. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -1
  205. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
  206. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +2 -1
  207. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +3 -1
  208. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -1
  209. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -2
  210. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
  211. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
  212. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
  213. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
  214. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
  215. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +19 -14
  216. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +501 -252
  217. package/front_end/ui/legacy/components/source_frame/XMLView.ts +2 -0
  218. package/front_end/ui/legacy/components/source_frame/module.json +0 -3
  219. package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
  220. package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
  221. package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
  222. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
  223. package/front_end/ui/legacy/components/text_editor/module.json +0 -3
  224. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
  225. package/front_end/ui/legacy/radioButton.css +1 -13
  226. package/front_end/ui/legacy/textButton.css +5 -4
  227. package/front_end/ui/legacy/themeColors.css +36 -0
  228. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
  229. package/front_end/ui/legacy/utils/append-style.ts +9 -4
  230. package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
  231. package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
  232. package/package.json +1 -1
  233. package/scripts/build/generate_css_js_files.js +23 -9
  234. package/scripts/build/ninja/generate_css.gni +10 -1
  235. package/scripts/eslint_rules/lib/check_css_import.js +2 -2
  236. package/scripts/eslint_rules/tests/check_css_import_test.js +12 -0
  237. package/front_end/Images/radioDot-dark-theme.png +0 -0
  238. package/front_end/Images/radioDot.png +0 -0
  239. package/front_end/emulated_devices/module.json +0 -6
  240. package/front_end/panels/application/module.json +0 -7
  241. package/front_end/panels/emulation/module.json +0 -11
  242. package/front_end/panels/issues/module.json +0 -6
  243. package/front_end/panels/js_profiler/module.json +0 -5
  244. package/front_end/panels/layer_viewer/module.json +0 -6
  245. package/front_end/panels/media/module.json +0 -6
  246. package/front_end/panels/network/module.json +0 -6
  247. package/front_end/panels/profiler/module.json +0 -6
  248. package/front_end/panels/screencast/module.json +0 -6
  249. package/front_end/panels/security/module.json +0 -5
  250. package/front_end/panels/timeline/module.json +0 -8
  251. package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
  252. package/front_end/ui/legacy/components/perf_ui/module.json +0 -13
  253. package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
  254. package/front_end/ui/legacy/module.json +0 -41
@@ -280,7 +280,7 @@ A text iterator iterates over a sequence of strings. When
280
280
  iterating over a [`Text`](https://codemirror.net/6/docs/ref/#text.Text) document, result values will
281
281
  either be lines or line breaks.
282
282
  */
283
- interface TextIterator extends Iterator<string> {
283
+ interface TextIterator extends Iterator<string>, Iterable<string> {
284
284
  /**
285
285
  Retrieve the next string. Optionally skip a given number of
286
286
  positions after the current position. Always returns the object
@@ -361,7 +361,7 @@ declare abstract class Text implements Iterable<string> {
361
361
 
362
362
  When `from` and `to` are given, they should be 1-based line numbers.
363
363
  */
364
- iterLines(from?: number, to?: number): LineCursor;
364
+ iterLines(from?: number, to?: number): TextIterator;
365
365
  /**
366
366
  Convert the document to an array of lines (which can be
367
367
  deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#text.Text^of)).
@@ -382,15 +382,6 @@ declare abstract class Text implements Iterable<string> {
382
382
  */
383
383
  static empty: Text;
384
384
  }
385
- declare class LineCursor implements TextIterator {
386
- readonly inner: TextIterator;
387
- afterBreak: boolean;
388
- value: string;
389
- done: boolean;
390
- constructor(inner: TextIterator);
391
- next(skip?: number): this;
392
- get lineBreak(): boolean;
393
- }
394
385
  /**
395
386
  This type describes a line in the document. It is created
396
387
  on-demand when lines are [queried](https://codemirror.net/6/docs/ref/#text.Text.lineAt).
@@ -927,21 +918,39 @@ precedence and then by order within each precedence.
927
918
  */
928
919
  declare const Prec: {
929
920
  /**
930
- A precedence below the default precedence, which will cause
931
- default-precedence extensions to override it even if they are
932
- specified later in the extension ordering.
921
+ The lowest precedence level. Meant for things that should end up
922
+ near the end of the extension order.
933
923
  */
934
- fallback: (ext: Extension) => Extension;
924
+ lowest: (ext: Extension) => Extension;
935
925
  /**
936
- The regular default precedence.
926
+ A lower-than-default precedence, for extensions.
927
+ */
928
+ low: (ext: Extension) => Extension;
929
+ /**
930
+ The default precedence, which is also used for extensions
931
+ without an explicit precedence.
937
932
  */
938
933
  default: (ext: Extension) => Extension;
939
934
  /**
940
- A higher-than-default precedence.
935
+ A higher-than-default precedence, for extensions that should
936
+ come before those with default precedence.
937
+ */
938
+ high: (ext: Extension) => Extension;
939
+ /**
940
+ The highest precedence level, for extensions that should end up
941
+ near the start of the precedence ordering.
942
+ */
943
+ highest: (ext: Extension) => Extension;
944
+ /**
945
+ Backwards-compatible synonym for `Prec.lowest`.
946
+ */
947
+ fallback: (ext: Extension) => Extension;
948
+ /**
949
+ Backwards-compatible synonym for `Prec.high`.
941
950
  */
942
951
  extend: (ext: Extension) => Extension;
943
952
  /**
944
- Precedence above the `default` and `extend` precedences.
953
+ Backwards-compatible synonym for `Prec.highest`.
945
954
  */
946
955
  override: (ext: Extension) => Extension;
947
956
  };
@@ -1201,7 +1210,7 @@ declare class Transaction {
1201
1210
  has `"select.pointer"` as user event, `"select"` and
1202
1211
  `"select.pointer"` will match it.
1203
1212
  */
1204
- isUserEvent(event: string): boolean | "" | undefined;
1213
+ isUserEvent(event: string): boolean;
1205
1214
  /**
1206
1215
  Annotation used to store transaction timestamps.
1207
1216
  */
@@ -1680,6 +1689,12 @@ or the empty tree if there is no language available.
1680
1689
  */
1681
1690
  declare function syntaxTree(state: EditorState): Tree;
1682
1691
  /**
1692
+ Try to get a parse tree that spans at least up to `upto`. The
1693
+ method will do at most `timeout` milliseconds of work to parse
1694
+ up to that point if the tree isn't already available.
1695
+ */
1696
+ declare function ensureSyntaxTree(state: EditorState, upto: number, timeout?: number): Tree | null;
1697
+ /**
1683
1698
  This class bundles a [language object](https://codemirror.net/6/docs/ref/#language.Language) with an
1684
1699
  optional set of supporting extensions. Language packages are
1685
1700
  encouraged to export a function that optionally takes a
@@ -2273,7 +2288,8 @@ interface ReplaceDecorationSpec {
2273
2288
  /**
2274
2289
  Whether this range covers the positions on its sides. This
2275
2290
  influences whether new content becomes part of the range and
2276
- whether the cursor can be drawn on its sides. Defaults to false.
2291
+ whether the cursor can be drawn on its sides. Defaults to false
2292
+ for inline replacements, and true for block replacements.
2277
2293
  */
2278
2294
  inclusive?: boolean;
2279
2295
  /**
@@ -2301,6 +2317,10 @@ interface LineDecorationSpec {
2301
2317
  [key: string]: string;
2302
2318
  };
2303
2319
  /**
2320
+ Shorthand for `{attributes: {class: value}}`.
2321
+ */
2322
+ class?: string;
2323
+ /**
2304
2324
  Other properties are allowed.
2305
2325
  */
2306
2326
  [other: string]: any;
@@ -2768,7 +2788,9 @@ interface EditorConfig {
2768
2788
  /**
2769
2789
  If the view is going to be mounted in a shadow root or document
2770
2790
  other than the one held by the global variable `document` (the
2771
- default), you should pass it here.
2791
+ default), you should pass it here. If you provide `parent`, but
2792
+ not this option, the editor will automatically look up a root
2793
+ from the parent.
2772
2794
  */
2773
2795
  root?: Document | ShadowRoot;
2774
2796
  /**
@@ -3019,9 +3041,6 @@ declare class EditorView {
3019
3041
  used.
3020
3042
  */
3021
3043
  moveVertically(start: SelectionRange, forward: boolean, distance?: number): SelectionRange;
3022
- /**
3023
- Scroll the given document position into view.
3024
- */
3025
3044
  scrollPosIntoView(pos: number): void;
3026
3045
  /**
3027
3046
  Find the DOM parent node and offset (child offset if `node` is
@@ -3112,6 +3131,11 @@ declare class EditorView {
3112
3131
  */
3113
3132
  static scrollTo: StateEffectType<SelectionRange>;
3114
3133
  /**
3134
+ Effect that makes the editor scroll the given range to the
3135
+ center of the visible view.
3136
+ */
3137
+ static centerOn: StateEffectType<SelectionRange>;
3138
+ /**
3115
3139
  Facet to add a [style
3116
3140
  module](https://github.com/marijnh/style-mod#documentation) to
3117
3141
  an editor view. The view will ensure that the module is
@@ -3496,7 +3520,8 @@ interface CompletionConfig {
3496
3520
  Override the completion sources used. By default, they will be
3497
3521
  taken from the `"autocomplete"` [language
3498
3522
  data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) (which should hold
3499
- [completion sources](https://codemirror.net/6/docs/ref/#autocomplete.CompletionSource)).
3523
+ [completion sources](https://codemirror.net/6/docs/ref/#autocomplete.CompletionSource) or arrays
3524
+ of [completions](https://codemirror.net/6/docs/ref/#autocomplete.Completion)).
3500
3525
  */
3501
3526
  override?: readonly CompletionSource[] | null;
3502
3527
  /**
@@ -3563,7 +3588,9 @@ interface Completion {
3563
3588
  its [label](https://codemirror.net/6/docs/ref/#autocomplete.Completion.label). When this holds a
3564
3589
  string, the completion range is replaced by that string. When it
3565
3590
  is a function, that function is called to perform the
3566
- completion.
3591
+ completion. If it fires a transaction, it is responsible for
3592
+ adding the [`pickedCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.pickedCompletion)
3593
+ annotation to it.
3567
3594
  */
3568
3595
  apply?: string | ((view: EditorView, completion: Completion, from: number, to: number) => void);
3569
3596
  /**
@@ -4169,73 +4196,6 @@ declare namespace _codemirror_lang_json {
4169
4196
  };
4170
4197
  }
4171
4198
 
4172
- /**
4173
- A language provider based on the [Lezer JavaScript
4174
- parser](https://github.com/lezer-parser/javascript), extended with
4175
- highlighting and indentation information.
4176
- */
4177
- declare const javascriptLanguage: LRLanguage;
4178
- /**
4179
- A language provider for TypeScript.
4180
- */
4181
- declare const typescriptLanguage: LRLanguage;
4182
- /**
4183
- Language provider for JSX.
4184
- */
4185
- declare const jsxLanguage: LRLanguage;
4186
- /**
4187
- Language provider for JSX + TypeScript.
4188
- */
4189
- declare const tsxLanguage: LRLanguage;
4190
- /**
4191
- JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets)
4192
- completion.
4193
- */
4194
- declare function javascript$1(config?: {
4195
- jsx?: boolean;
4196
- typescript?: boolean;
4197
- }): LanguageSupport;
4198
-
4199
- /**
4200
- A collection of JavaScript-related
4201
- [snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
4202
- */
4203
- declare const snippets: readonly Completion[];
4204
-
4205
- /**
4206
- Connects an [ESLint](https://eslint.org/) linter to CodeMirror's
4207
- [lint](https://codemirror.net/6/docs/ref/#lint) integration. `eslint` should be an instance of the
4208
- [`Linter`](https://eslint.org/docs/developer-guide/nodejs-api#linter)
4209
- class, and `config` an optional ESLint configuration. The return
4210
- value of this function can be passed to [`linter`](https://codemirror.net/6/docs/ref/#lint.linter)
4211
- to create a JavaScript linting extension.
4212
-
4213
- Note that ESLint targets node, and is tricky to run in the
4214
- browser. The [eslint4b](https://github.com/mysticatea/eslint4b)
4215
- and
4216
- [eslint4b-prebuilt](https://github.com/marijnh/eslint4b-prebuilt/)
4217
- packages may help with that.
4218
- */
4219
- declare function esLint(eslint: any, config?: any): (view: EditorView) => Diagnostic[];
4220
-
4221
- declare const _codemirror_lang_javascript_esLint: typeof esLint;
4222
- declare const _codemirror_lang_javascript_javascriptLanguage: typeof javascriptLanguage;
4223
- declare const _codemirror_lang_javascript_jsxLanguage: typeof jsxLanguage;
4224
- declare const _codemirror_lang_javascript_snippets: typeof snippets;
4225
- declare const _codemirror_lang_javascript_tsxLanguage: typeof tsxLanguage;
4226
- declare const _codemirror_lang_javascript_typescriptLanguage: typeof typescriptLanguage;
4227
- declare namespace _codemirror_lang_javascript {
4228
- export {
4229
- _codemirror_lang_javascript_esLint as esLint,
4230
- javascript$1 as javascript,
4231
- _codemirror_lang_javascript_javascriptLanguage as javascriptLanguage,
4232
- _codemirror_lang_javascript_jsxLanguage as jsxLanguage,
4233
- _codemirror_lang_javascript_snippets as snippets,
4234
- _codemirror_lang_javascript_tsxLanguage as tsxLanguage,
4235
- _codemirror_lang_javascript_typescriptLanguage as typescriptLanguage,
4236
- };
4237
- }
4238
-
4239
4199
  /**
4240
4200
  A language provider based on the [Lezer Java
4241
4201
  parser](https://github.com/lezer-parser/java), extended with
@@ -4255,88 +4215,6 @@ declare namespace _codemirror_lang_java {
4255
4215
  };
4256
4216
  }
4257
4217
 
4258
- /**
4259
- HTML tag completion. Opens and closes tags and attributes in a
4260
- context-aware way.
4261
- */
4262
- declare function htmlCompletionSource(context: CompletionContext): CompletionResult | null;
4263
-
4264
- /**
4265
- A language provider based on the [Lezer HTML
4266
- parser](https://github.com/lezer-parser/html), extended with the
4267
- JavaScript and CSS parsers to parse the content of `<script>` and
4268
- `<style>` tags.
4269
- */
4270
- declare const htmlLanguage: LRLanguage;
4271
- declare const htmlCompletion: Extension;
4272
- /**
4273
- Language support for HTML, including
4274
- [`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
4275
- CSS support extensions.
4276
- */
4277
- declare function html$1(config?: {
4278
- /**
4279
- By default, the syntax tree will highlight mismatched closing
4280
- tags. Set this to `false` to turn that off (for example when you
4281
- expect to only be parsing a fragment of HTML text, not a full
4282
- document).
4283
- */
4284
- matchClosingTags?: boolean;
4285
- /**
4286
- Determines whether [`autoCloseTags`](https://codemirror.net/6/docs/ref/#lang-html.autoCloseTags)
4287
- is included in the support extensions. Defaults to true.
4288
- */
4289
- autoCloseTags?: boolean;
4290
- }): LanguageSupport;
4291
- /**
4292
- Extension that will automatically insert close tags when a `>` or
4293
- `/` is typed.
4294
- */
4295
- declare const autoCloseTags: Extension;
4296
-
4297
- declare const _codemirror_lang_html_autoCloseTags: typeof autoCloseTags;
4298
- declare const _codemirror_lang_html_htmlCompletion: typeof htmlCompletion;
4299
- declare const _codemirror_lang_html_htmlCompletionSource: typeof htmlCompletionSource;
4300
- declare const _codemirror_lang_html_htmlLanguage: typeof htmlLanguage;
4301
- declare namespace _codemirror_lang_html {
4302
- export {
4303
- _codemirror_lang_html_autoCloseTags as autoCloseTags,
4304
- html$1 as html,
4305
- _codemirror_lang_html_htmlCompletion as htmlCompletion,
4306
- _codemirror_lang_html_htmlCompletionSource as htmlCompletionSource,
4307
- _codemirror_lang_html_htmlLanguage as htmlLanguage,
4308
- };
4309
- }
4310
-
4311
- /**
4312
- CSS property and value keyword completion source.
4313
- */
4314
- declare const cssCompletionSource: CompletionSource;
4315
-
4316
- /**
4317
- A language provider based on the [Lezer CSS
4318
- parser](https://github.com/lezer-parser/css), extended with
4319
- highlighting and indentation information.
4320
- */
4321
- declare const cssLanguage: LRLanguage;
4322
- declare const cssCompletion: Extension;
4323
- /**
4324
- Language support for CSS.
4325
- */
4326
- declare function css$1(): LanguageSupport;
4327
-
4328
- declare const _codemirror_lang_css_cssCompletion: typeof cssCompletion;
4329
- declare const _codemirror_lang_css_cssCompletionSource: typeof cssCompletionSource;
4330
- declare const _codemirror_lang_css_cssLanguage: typeof cssLanguage;
4331
- declare namespace _codemirror_lang_css {
4332
- export {
4333
- css$1 as css,
4334
- _codemirror_lang_css_cssCompletion as cssCompletion,
4335
- _codemirror_lang_css_cssCompletionSource as cssCompletionSource,
4336
- _codemirror_lang_css_cssLanguage as cssLanguage,
4337
- };
4338
- }
4339
-
4340
4218
  /**
4341
4219
  A language provider based on the [Lezer C++
4342
4220
  parser](https://github.com/lezer-parser/cpp), extended with
@@ -4551,6 +4429,14 @@ Move the selection head one group or subword backward.
4551
4429
  */
4552
4430
  declare const selectSubwordBackward: Command;
4553
4431
  /**
4432
+ Replace the selection with a newline and indent the newly created
4433
+ line(s). If the current line consists only of whitespace, this
4434
+ will also delete that whitespace. When the cursor is between
4435
+ matching brackets, an additional newline will be inserted after
4436
+ the cursor.
4437
+ */
4438
+ declare const insertNewlineAndIndent: StateCommand;
4439
+ /**
4554
4440
  Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
4555
4441
  lines.
4556
4442
  */
@@ -4613,10 +4499,15 @@ declare const foldKeymap: readonly KeyBinding[];
4613
4499
  interface FoldConfig {
4614
4500
  /**
4615
4501
  A function that creates the DOM element used to indicate the
4616
- position of folded code. When not given, the `placeholderText`
4617
- option will be used instead.
4502
+ position of folded code. The `onclick` argument is the default
4503
+ click event handler, which toggles folding on the line that
4504
+ holds the element, and should probably be added as an event
4505
+ handler to the returned element.
4506
+
4507
+ When this option isn't given, the `placeholderText` option will
4508
+ be used to create the placeholder element.
4618
4509
  */
4619
- placeholderDOM?: (() => HTMLElement) | null;
4510
+ placeholderDOM?: ((view: EditorView, onclick: (event: Event) => void) => HTMLElement) | null;
4620
4511
  /**
4621
4512
  Text to use as placeholder for folded text. Defaults to `"…"`.
4622
4513
  Will be styled with the `"cm-foldPlaceholder"` class.
@@ -4738,6 +4629,10 @@ interface LineNumberConfig {
4738
4629
  domEventHandlers?: Handlers;
4739
4630
  }
4740
4631
  /**
4632
+ Facet used to provide markers to the line number gutter.
4633
+ */
4634
+ declare const lineNumberMarkers: Facet<RangeSet<GutterMarker>, readonly RangeSet<GutterMarker>[]>;
4635
+ /**
4741
4636
  Create a line number gutter extension.
4742
4637
  */
4743
4638
  declare function lineNumbers(config?: LineNumberConfig): Extension;
@@ -5335,6 +5230,158 @@ Default key bindings for the undo history.
5335
5230
  */
5336
5231
  declare const historyKeymap: readonly KeyBinding[];
5337
5232
 
5233
+ /**
5234
+ CSS property and value keyword completion source.
5235
+ */
5236
+ declare const cssCompletionSource: CompletionSource;
5237
+
5238
+ /**
5239
+ A language provider based on the [Lezer CSS
5240
+ parser](https://github.com/lezer-parser/css), extended with
5241
+ highlighting and indentation information.
5242
+ */
5243
+ declare const cssLanguage: LRLanguage;
5244
+ declare const cssCompletion: Extension;
5245
+ /**
5246
+ Language support for CSS.
5247
+ */
5248
+ declare function css(): LanguageSupport;
5249
+
5250
+ declare const index_d$2_css: typeof css;
5251
+ declare const index_d$2_cssCompletion: typeof cssCompletion;
5252
+ declare const index_d$2_cssCompletionSource: typeof cssCompletionSource;
5253
+ declare const index_d$2_cssLanguage: typeof cssLanguage;
5254
+ declare namespace index_d$2 {
5255
+ export {
5256
+ index_d$2_css as css,
5257
+ index_d$2_cssCompletion as cssCompletion,
5258
+ index_d$2_cssCompletionSource as cssCompletionSource,
5259
+ index_d$2_cssLanguage as cssLanguage,
5260
+ };
5261
+ }
5262
+
5263
+ /**
5264
+ HTML tag completion. Opens and closes tags and attributes in a
5265
+ context-aware way.
5266
+ */
5267
+ declare function htmlCompletionSource(context: CompletionContext): CompletionResult | null;
5268
+
5269
+ /**
5270
+ A language provider based on the [Lezer HTML
5271
+ parser](https://github.com/lezer-parser/html), extended with the
5272
+ JavaScript and CSS parsers to parse the content of `<script>` and
5273
+ `<style>` tags.
5274
+ */
5275
+ declare const htmlLanguage: LRLanguage;
5276
+ declare const htmlCompletion: Extension;
5277
+ /**
5278
+ Language support for HTML, including
5279
+ [`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
5280
+ CSS support extensions.
5281
+ */
5282
+ declare function html(config?: {
5283
+ /**
5284
+ By default, the syntax tree will highlight mismatched closing
5285
+ tags. Set this to `false` to turn that off (for example when you
5286
+ expect to only be parsing a fragment of HTML text, not a full
5287
+ document).
5288
+ */
5289
+ matchClosingTags?: boolean;
5290
+ /**
5291
+ Determines whether [`autoCloseTags`](https://codemirror.net/6/docs/ref/#lang-html.autoCloseTags)
5292
+ is included in the support extensions. Defaults to true.
5293
+ */
5294
+ autoCloseTags?: boolean;
5295
+ }): LanguageSupport;
5296
+ /**
5297
+ Extension that will automatically insert close tags when a `>` or
5298
+ `/` is typed.
5299
+ */
5300
+ declare const autoCloseTags: Extension;
5301
+
5302
+ declare const index_d$1_autoCloseTags: typeof autoCloseTags;
5303
+ declare const index_d$1_html: typeof html;
5304
+ declare const index_d$1_htmlCompletion: typeof htmlCompletion;
5305
+ declare const index_d$1_htmlCompletionSource: typeof htmlCompletionSource;
5306
+ declare const index_d$1_htmlLanguage: typeof htmlLanguage;
5307
+ declare namespace index_d$1 {
5308
+ export {
5309
+ index_d$1_autoCloseTags as autoCloseTags,
5310
+ index_d$1_html as html,
5311
+ index_d$1_htmlCompletion as htmlCompletion,
5312
+ index_d$1_htmlCompletionSource as htmlCompletionSource,
5313
+ index_d$1_htmlLanguage as htmlLanguage,
5314
+ };
5315
+ }
5316
+
5317
+ /**
5318
+ A language provider based on the [Lezer JavaScript
5319
+ parser](https://github.com/lezer-parser/javascript), extended with
5320
+ highlighting and indentation information.
5321
+ */
5322
+ declare const javascriptLanguage: LRLanguage;
5323
+ /**
5324
+ A language provider for TypeScript.
5325
+ */
5326
+ declare const typescriptLanguage: LRLanguage;
5327
+ /**
5328
+ Language provider for JSX.
5329
+ */
5330
+ declare const jsxLanguage: LRLanguage;
5331
+ /**
5332
+ Language provider for JSX + TypeScript.
5333
+ */
5334
+ declare const tsxLanguage: LRLanguage;
5335
+ /**
5336
+ JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets)
5337
+ completion.
5338
+ */
5339
+ declare function javascript(config?: {
5340
+ jsx?: boolean;
5341
+ typescript?: boolean;
5342
+ }): LanguageSupport;
5343
+
5344
+ /**
5345
+ A collection of JavaScript-related
5346
+ [snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
5347
+ */
5348
+ declare const snippets: readonly Completion[];
5349
+
5350
+ /**
5351
+ Connects an [ESLint](https://eslint.org/) linter to CodeMirror's
5352
+ [lint](https://codemirror.net/6/docs/ref/#lint) integration. `eslint` should be an instance of the
5353
+ [`Linter`](https://eslint.org/docs/developer-guide/nodejs-api#linter)
5354
+ class, and `config` an optional ESLint configuration. The return
5355
+ value of this function can be passed to [`linter`](https://codemirror.net/6/docs/ref/#lint.linter)
5356
+ to create a JavaScript linting extension.
5357
+
5358
+ Note that ESLint targets node, and is tricky to run in the
5359
+ browser. The [eslint4b](https://github.com/mysticatea/eslint4b)
5360
+ and
5361
+ [eslint4b-prebuilt](https://github.com/marijnh/eslint4b-prebuilt/)
5362
+ packages may help with that.
5363
+ */
5364
+ declare function esLint(eslint: any, config?: any): (view: EditorView) => Diagnostic[];
5365
+
5366
+ declare const index_d_esLint: typeof esLint;
5367
+ declare const index_d_javascript: typeof javascript;
5368
+ declare const index_d_javascriptLanguage: typeof javascriptLanguage;
5369
+ declare const index_d_jsxLanguage: typeof jsxLanguage;
5370
+ declare const index_d_snippets: typeof snippets;
5371
+ declare const index_d_tsxLanguage: typeof tsxLanguage;
5372
+ declare const index_d_typescriptLanguage: typeof typescriptLanguage;
5373
+ declare namespace index_d {
5374
+ export {
5375
+ index_d_esLint as esLint,
5376
+ index_d_javascript as javascript,
5377
+ index_d_javascriptLanguage as javascriptLanguage,
5378
+ index_d_jsxLanguage as jsxLanguage,
5379
+ index_d_snippets as snippets,
5380
+ index_d_tsxLanguage as tsxLanguage,
5381
+ index_d_typescriptLanguage as typescriptLanguage,
5382
+ };
5383
+ }
5384
+
5338
5385
  interface Config {
5339
5386
  /**
5340
5387
  Whether the bracket matching should look at the character after
@@ -5365,6 +5412,47 @@ highlighting style is used to indicate this.
5365
5412
  */
5366
5413
  declare function bracketMatching(config?: Config): Extension;
5367
5414
 
5415
+ /**
5416
+ Object that describes an active panel.
5417
+ */
5418
+ interface Panel {
5419
+ /**
5420
+ The element representing this panel. The library will add the
5421
+ `"cm-panel"` DOM class to this.
5422
+ */
5423
+ dom: HTMLElement;
5424
+ /**
5425
+ Optionally called after the panel has been added to the editor.
5426
+ */
5427
+ mount?(): void;
5428
+ /**
5429
+ Update the DOM for a given view update.
5430
+ */
5431
+ update?(update: ViewUpdate): void;
5432
+ /**
5433
+ Whether the panel should be at the top or bottom of the editor.
5434
+ Defaults to false.
5435
+ */
5436
+ top?: boolean;
5437
+ /**
5438
+ An optional number that is used to determine the ordering when
5439
+ there are multiple panels. Those with a lower `pos` value will
5440
+ come first. Defaults to 0.
5441
+ */
5442
+ pos?: number;
5443
+ }
5444
+ /**
5445
+ A function that initializes a panel. Used in
5446
+ [`showPanel`](https://codemirror.net/6/docs/ref/#panel.showPanel).
5447
+ */
5448
+ declare type PanelConstructor = (view: EditorView) => Panel;
5449
+ /**
5450
+ Opening a panel is done by providing a constructor function for
5451
+ the panel through this facet. (The panel is closed again when its
5452
+ constructor is no longer provided.) Values of `null` are ignored.
5453
+ */
5454
+ declare const showPanel: Facet<PanelConstructor | null, readonly (PanelConstructor | null)[]>;
5455
+
5368
5456
  /**
5369
5457
  Select next occurrence of the current selection.
5370
5458
  Expand selection to the word when selection range is empty.
@@ -5445,6 +5533,18 @@ interface TooltipView {
5445
5533
  */
5446
5534
  dom: HTMLElement;
5447
5535
  /**
5536
+ Adjust the position of the tooltip relative to its anchor
5537
+ position. A positive `x` value will move the tooltip
5538
+ horizontally along with the text direction (so right in
5539
+ left-to-right context, left in right-to-left). A positive `y`
5540
+ will move the tooltip up when it is above its anchor, and down
5541
+ otherwise.
5542
+ */
5543
+ offset?: {
5544
+ x: number;
5545
+ y: number;
5546
+ };
5547
+ /**
5448
5548
  Called after the tooltip is added to the DOM for the first time.
5449
5549
  */
5450
5550
  mount?(view: EditorView): void;
@@ -5461,30 +5561,11 @@ interface TooltipView {
5461
5561
  Behavior by which an extension can provide a tooltip to be shown.
5462
5562
  */
5463
5563
  declare const showTooltip: Facet<Tooltip | null, readonly (Tooltip | null)[]>;
5464
- /**
5465
- Enable a hover tooltip, which shows up when the pointer hovers
5466
- over ranges of text. The callback is called when the mouse hovers
5467
- over the document text. It should, if there is a tooltip
5468
- associated with position `pos` return the tooltip description
5469
- (either directly or in a promise). The `side` argument indicates
5470
- on which side of the position the pointer is—it will be -1 if the
5471
- pointer is before the position, 1 if after the position.
5472
-
5473
- Note that all hover tooltips are hosted within a single tooltip
5474
- container element. This allows multiple tooltips over the same
5475
- range to be "merged" together without overlapping.
5476
- */
5477
- declare function hoverTooltip(source: (view: EditorView, pos: number, side: -1 | 1) => Tooltip | null | Promise<Tooltip | null>, options?: {
5478
- hideOnChange?: boolean;
5479
- }): Extension;
5480
5564
 
5481
5565
  declare function clojure(): Promise<StreamLanguage<unknown>>;
5482
5566
  declare function coffeescript(): Promise<StreamLanguage<unknown>>;
5483
5567
  declare function cpp(): Promise<typeof _codemirror_lang_cpp>;
5484
- declare function css(): Promise<typeof _codemirror_lang_css>;
5485
- declare function html(): Promise<typeof _codemirror_lang_html>;
5486
5568
  declare function java(): Promise<typeof _codemirror_lang_java>;
5487
- declare function javascript(): Promise<typeof _codemirror_lang_javascript>;
5488
5569
  declare function json(): Promise<typeof _codemirror_lang_json>;
5489
5570
  declare function markdown(): Promise<typeof _codemirror_lang_markdown>;
5490
5571
  declare function php(): Promise<typeof _codemirror_lang_php>;
@@ -5493,4 +5574,4 @@ declare function shell(): Promise<StreamLanguage<unknown>>;
5493
5574
  declare function wast(): Promise<typeof _codemirror_lang_wast>;
5494
5575
  declare function xml(): Promise<typeof _codemirror_lang_xml>;
5495
5576
 
5496
- 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, MatchDecorator, NodeProp, NodeSet, NodeType, 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, codeFolding, coffeescript, completeAnyWord, cpp, css, currentCompletions, cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward, drawSelection, foldGutter, foldKeymap, gutter, gutters, highlightSpecialChars, highlightTree, history, historyKeymap, hoverTooltip, html, ifNotIn, indentLess, indentMore, indentOnInput, indentUnit, java, javascript, json, keymap, lineNumbers, markdown, php, placeholder, python, redo, redoSelection, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, shell, showTooltip, standardKeymap, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
5577
+ 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, 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, 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, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, shell, showPanel, showTooltip, standardKeymap, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
@@ -1,2 +1,2 @@
1
- export{$ as cursorMatchingBracket,_ as closeBracketsKeymap,A as clojure,a0 as cursorSubwordBackward,a1 as cursorSubwordForward,a2 as indentLess,a3 as indentMore,a4 as selectMatchingBracket,a5 as selectSubwordBackward,a6 as selectSubwordForward,a7 as standardKeymap,a8 as toggleComment,a9 as codeFolding,aA as Compartment,aa as foldGutter,aB as EditorState,ab as foldKeymap,aC as Facet,ac as gutter,ad as GutterMarker,aD as SelectionRange,aE as StateEffect,ae as gutters,aF as StateEffectType,af as lineNumbers,ag as HighlightStyle,aG as StateField,aH as Transaction,ah as highlightTree,aI as StreamLanguage,ai as Tag,aJ as StringStream,aj as history,aK as Line,ak as historyKeymap,aL as Text,al as redo,aM as hoverTooltip,am as redoSelection,aN as showTooltip,an as undo,aO as tooltips,ao as undoSelection,aP as Decoration,ap as indentOnInput,aQ as drawSelection,aq as indentUnit,ar as bracketMatching,aR as highlightSpecialChars,aS as MatchDecorator,as as Range,at as RangeSet,aT as placeholder,au as RangeSetBuilder,aU as scrollPastEnd,aV as ViewPlugin,av as selectNextOccurrence,aw as Annotation,aW as ViewUpdate,ax as AnnotationType,aX as WidgetType,ay as ChangeDesc,aY as TreeCursor,az as ChangeSet,aZ as StyleModule,B as coffeescript,D as cpp,e as LanguageSupport,F as css,G as html,g as syntaxTree,h as EditorView,H as java,I as javascript,j as EditorSelection,J as json,K as markdown,L as LRParser,m as ifNotIn,M as php,N as NodeProp,o as NodeType,O as python,P as Parser,q as NodeSet,Q as shell,R as wast,S as xml,T as Tree,t as tags,u as Language,U as acceptCompletion,v as Prec,V as autocompletion,W as completeAnyWord,w as keymap,X as CompletionContext,Y as currentCompletions,Z as closeBrackets}from"./chunk/codemirror.js";
1
+ export{$ as insertNewlineAndIndent,_ as indentMore,A as java,a$ as StyleModule,a0 as selectMatchingBracket,a1 as selectSubwordBackward,a2 as selectSubwordForward,a3 as standardKeymap,a4 as toggleComment,a5 as codeFolding,a6 as foldGutter,a7 as foldKeymap,a8 as gutter,a9 as GutterMarker,a_ as TreeCursor,aA as ChangeDesc,aa as gutters,aB as ChangeSet,ab as lineNumberMarkers,aC as Compartment,ac as lineNumbers,aD as EditorState,ad as HighlightStyle,aE as Facet,ae as highlightTree,aF as SelectionRange,af as Tag,aG as StateEffect,ag as history,aH as StateEffectType,ah as historyKeymap,aI as StateField,ai as redo,aJ as Transaction,aj as redoSelection,aK as StreamLanguage,ak as undo,aL as StringStream,al as undoSelection,aM as Line,am as css,aN as Text,an as html,ao as javascript,aO as showTooltip,ap as ensureSyntaxTree,aP as tooltips,aQ as Decoration,aq as indentOnInput,aR as drawSelection,ar as indentUnit,aS as EditorView,as as bracketMatching,aT as highlightSpecialChars,at as showPanel,aU as MatchDecorator,au as Range,av as RangeSet,aV as placeholder,aw as RangeSetBuilder,aW as scrollPastEnd,aX as ViewPlugin,ax as selectNextOccurrence,ay as Annotation,aY as ViewUpdate,az as AnnotationType,aZ as WidgetType,B as json,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 completeAnyWord,o as keymap,P as Parser,Q as CompletionContext,R as currentCompletions,S as ifNotIn,T as Tree,t as tags,U as closeBrackets,V as closeBracketsKeymap,W as cursorMatchingBracket,x as clojure,X as cursorSubwordBackward,y as coffeescript,Y as cursorSubwordForward,z as cpp,Z as indentLess}from"./chunk/codemirror.js";
2
2