reactive-vscode 0.0.1-beta.3 → 0.0.1-beta.4

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.
@@ -1,7 +1,8 @@
1
1
  import { NotebookEditor } from 'vscode';
2
+ import { MaybeNullableRefOrGetter } from '../utils';
2
3
 
3
4
  /**
4
5
  * @reactive `NotebookEditor.selection`
5
6
  * @category editor
6
7
  */
7
- export declare const useNotebookEditorSelection: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').NotebookRange>;
8
+ export declare function useNotebookEditorSelection(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').WritableComputedRef<import('vscode').NotebookRange>;
@@ -1,7 +1,8 @@
1
1
  import { NotebookEditor } from 'vscode';
2
+ import { MaybeNullableRefOrGetter } from '../utils';
2
3
 
3
4
  /**
4
5
  * @reactive `NotebookEditor.selections`
5
6
  * @category editor
6
7
  */
7
- export declare const useNotebookEditorSelections: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').NotebookRange[]>;
8
+ export declare function useNotebookEditorSelections(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').WritableComputedRef<readonly import('vscode').NotebookRange[]>;
@@ -1,7 +1,8 @@
1
1
  import { NotebookEditor } from 'vscode';
2
+ import { MaybeNullableRefOrGetter } from '../utils';
2
3
 
3
4
  /**
4
5
  * @reactive `NotebookEditor.visibleRanges`
5
6
  * @category editor
6
7
  */
7
- export declare const useNotebookEditorVisibleRanges: (notebookEditor: NotebookEditor) => import('@vue/reactivity').ComputedRef<readonly import('vscode').NotebookRange[]>;
8
+ export declare function useNotebookEditorVisibleRanges(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').ComputedRef<readonly import('vscode').NotebookRange[]>;
@@ -1,7 +1,9 @@
1
- import { TextEditor } from 'vscode';
1
+ import { TextEditor, TextEditorSelectionChangeKind } from 'vscode';
2
+ import { MaybeRefOrGetter } from '../reactivity';
3
+ import { MaybeNullableRefOrGetter } from '../utils';
2
4
 
3
5
  /**
4
6
  * @reactive `TextEditor.selection`
5
7
  * @category editor
6
8
  */
7
- export declare const useTextEditorSelection: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').Selection>;
9
+ export declare function useTextEditorSelection(textEditor: MaybeNullableRefOrGetter<TextEditor>, acceptKind?: MaybeRefOrGetter<(TextEditorSelectionChangeKind | undefined)[]>): import('@vue/reactivity').WritableComputedRef<import('vscode').Selection>;
@@ -1,7 +1,9 @@
1
- import { TextEditor } from 'vscode';
1
+ import { TextEditor, TextEditorSelectionChangeKind } from 'vscode';
2
+ import { MaybeRefOrGetter } from '../reactivity';
3
+ import { MaybeNullableRefOrGetter } from '../utils';
2
4
 
3
5
  /**
4
6
  * @reactive `TextEditor.selections`
5
7
  * @category editor
6
8
  */
7
- export declare const useTextEditorSelections: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').Selection[]>;
9
+ export declare function useTextEditorSelections(textEditor: MaybeNullableRefOrGetter<TextEditor>, acceptKind?: MaybeRefOrGetter<(TextEditorSelectionChangeKind | undefined)[]>): import('@vue/reactivity').WritableComputedRef<readonly import('vscode').Selection[]>;
@@ -1,7 +1,8 @@
1
1
  import { TextEditor } from 'vscode';
2
+ import { MaybeNullableRefOrGetter } from '../utils';
2
3
 
3
4
  /**
4
5
  * @reactive `TextEditor.viewColumn`
5
6
  * @category editor
6
7
  */
7
- export declare const useTextEditorViewColumn: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<import('vscode').ViewColumn | undefined>;
8
+ export declare function useTextEditorViewColumn(textEditor: MaybeNullableRefOrGetter<TextEditor>): import('@vue/reactivity').ComputedRef<import('vscode').ViewColumn | undefined>;
@@ -1,7 +1,8 @@
1
1
  import { TextEditor } from 'vscode';
2
+ import { MaybeNullableRefOrGetter } from '../utils';
2
3
 
3
4
  /**
4
5
  * @reactive `TextEditor.visibleRanges`
5
6
  * @category editor
6
7
  */
7
- export declare const useTextEditorVisibleRanges: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<readonly import('vscode').Range[]>;
8
+ export declare function useTextEditorVisibleRanges(textEditor: MaybeNullableRefOrGetter<TextEditor>): import('@vue/reactivity').ComputedRef<readonly import('vscode').Range[]>;