@vscode/markdown-editor 0.0.2-20 → 0.0.2-21

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
@@ -1052,6 +1052,7 @@ export declare class EditorView extends Disposable {
1052
1052
  private readonly _selectionView;
1053
1053
  private readonly _gutterMarkersView;
1054
1054
  private readonly _diffHighlightsView;
1055
+ private _readonlyToggleButton;
1055
1056
  /**
1056
1057
  * The mounted block sequence, in source order. Rebuilt (not mutated) each
1057
1058
  * frame by {@link DocumentViewNode.create}; the view just swaps one
@@ -1120,11 +1121,14 @@ export declare class EditorView extends Disposable {
1120
1121
  * {@link EditorModel.readonlyMode}: when locked (read-only) every block stays
1121
1122
  * in its clean rendered form (no markdown markers revealed) and edits are
1122
1123
  * ignored, while text selection still works. The control lives in a
1123
- * zero-height *sticky* host so the lock stays pinned to the top-right corner
1124
- * of the scroll container as the document scrolls. The current mode is also
1125
- * mirrored onto the root as `.md-readonly` for any CSS hooks.
1124
+ * zero-height *sticky* host inside the centered content container, so the
1125
+ * lock follows the content's right edge and remains pinned as the document
1126
+ * scrolls. The current mode is also mirrored onto the root as `.md-readonly`
1127
+ * for any CSS hooks.
1126
1128
  */
1127
1129
  private _setupReadonlyToggle;
1130
+ /** Draws attention to the mode toggle after text input is attempted while locked. */
1131
+ showReadonlyEditingAttempt(): void;
1128
1132
  focus(): void;
1129
1133
  /**
1130
1134
  * Own point→offset resolution. When `true` (the default),
@@ -1190,9 +1194,9 @@ export declare interface EditorViewOptions extends BlockViewOptions {
1190
1194
  */
1191
1195
  readonly classNames?: readonly string[];
1192
1196
  /**
1193
- * Whether to render the sticky edit/read-only toggle in the top-right
1194
- * corner. Defaults to `true`; set to `false` to omit it (e.g. in fixtures
1195
- * that focus on selection rendering).
1197
+ * Whether to render the sticky edit/read-only toggle at the top-right edge
1198
+ * of the content. Defaults to `true`; set to `false` to omit it (e.g. in
1199
+ * fixtures that focus on selection rendering).
1196
1200
  */
1197
1201
  readonly showReadonlyToggle?: boolean;
1198
1202
  /**