@vscode/markdown-editor 0.0.2-67 → 0.0.2-69

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.d.ts CHANGED
@@ -1099,11 +1099,12 @@ export declare class EditorModel {
1099
1099
  /**
1100
1100
  * Read-only mode. When `true`, the editor never reveals a block's source
1101
1101
  * markers (markdown special characters like `**`, `#`, list bullets, code
1102
- * fences, `$…$`) — every block stays in its clean rendered form regardless
1103
- * of where the caret/selection is — and source-mutating edits are ignored.
1104
- * Plain text selection still works everywhere (so the user can copy). The
1105
- * default (`false`) is the normal editing mode where the active block
1106
- * reveals its markers.
1102
+ * fences, `$…$`) — every block stays in its clean rendered form regardless of
1103
+ * where the caret/selection is — and text-editing commands are ignored.
1104
+ * Explicit interactions with rendered controls, such as task checkboxes,
1105
+ * remain available. Plain text selection still works everywhere (so the user
1106
+ * can copy). The default (`false`) is the normal editing mode where the active
1107
+ * block reveals its markers.
1107
1108
  */
1108
1109
  readonly readonlyMode: ISettableObservable<boolean, void>;
1109
1110
  /**
@@ -1155,8 +1156,8 @@ export declare class EditorModel {
1155
1156
  * The parsed document. Threads the previous document into the parser so
1156
1157
  * unchanged blocks keep their object identity across reparses (see
1157
1158
  * {@link MarkdownParser.parse}). Writing `previous` inside the compute is
1158
- * a safe optimization: `derived` only recomputes when `sourceText`
1159
- * changes, and the result is structurally identical to a full reparse.
1159
+ * safe: unchanged source reuses it directly, while changed source produces
1160
+ * a result structurally identical to a full reparse.
1160
1161
  */
1161
1162
  readonly document: IObservableWithChange<DocumentAstNode, void>;
1162
1163
  /**
@@ -1218,6 +1219,8 @@ export declare class EditorModel {
1218
1219
  * by blank lines, and place the caret after it.
1219
1220
  */
1220
1221
  materializePendingParagraph(text: string): void;
1222
+ /** Sets a rendered task checkbox state in either editing or read-only mode. */
1223
+ setTaskCheckboxChecked(item: ListItemAstNode, checked: boolean): void;
1221
1224
  applyEdit(edit: StringEdit, selection?: Selection_2): void;
1222
1225
  applyEditForSelection(edit: StringEdit): void;
1223
1226
  private _applySourceEdit;
@@ -1438,12 +1441,13 @@ export declare class EditorView extends Disposable {
1438
1441
  */
1439
1442
  isPointInContent(point: Point2D): boolean;
1440
1443
  /**
1441
- * Whether `node` sits inside the rendered source text — the region whose
1442
- * selection this editor paints itself from `model.selection`. Overlays
1443
- * anchored beside the text (comment widgets and the like) are *not* part of
1444
- * it and keep their own native selection behaviour.
1444
+ * Whether `range` intersects the rendered source text — the region whose
1445
+ * selection this editor paints itself from `model.selection`. This also
1446
+ * catches select-all ranges whose endpoints surround the rendered content.
1447
+ * Overlays anchored beside the text (comment widgets and the like) are *not*
1448
+ * part of it and keep their own native selection behaviour.
1445
1449
  */
1446
- containsRenderedContent(node: Node | null | undefined): boolean;
1450
+ intersectsRenderedContent(range: Range): boolean;
1447
1451
  private readonly _renderAutorun;
1448
1452
  /** Current mounted blocks, or empty before the first render. */
1449
1453
  private get _blocks();