@vscode/markdown-editor 0.0.2-2 → 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.
Files changed (29) hide show
  1. package/dist/_observables/observableInternal/index.d.ts +1 -1
  2. package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +1 -1
  3. package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +1 -1
  4. package/dist/_observables/observableInternal/logging/logging.d.ts +1 -1
  5. package/dist/_observables/observableInternal/reactions/{autorun.d.ts → createEffect.d.ts} +11 -3
  6. package/dist/index.d.ts +1000 -52
  7. package/dist/index.js +4005 -2074
  8. package/dist/index.js.map +1 -1
  9. package/dist/markdown-editor.css +1 -0
  10. package/dist/observables.js +79 -101
  11. package/dist/observables.js.map +1 -1
  12. package/dist/{runOnChange-owE1SMC0.js → runOnChange-CkxK2gSn.js} +191 -163
  13. package/dist/runOnChange-CkxK2gSn.js.map +1 -0
  14. package/dist/stringEdit-DzLs4E1d.js +177 -0
  15. package/dist/stringEdit-DzLs4E1d.js.map +1 -0
  16. package/dist/web-editors.d.ts +125 -0
  17. package/dist/web-editors.js +5185 -0
  18. package/dist/web-editors.js.map +1 -0
  19. package/package.json +36 -9
  20. package/src/contrib/comments/commentInput.css +150 -0
  21. package/src/contrib/comments/comments.css +129 -0
  22. package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +166 -0
  23. package/src/view/editor.css +526 -32
  24. package/src/view/themes/default.css +11 -3
  25. package/src/view/themes/github.css +12 -9
  26. package/src/view/themes/vscode-default.css +347 -0
  27. package/src/view/themes/vscode-github.css +349 -0
  28. package/dist/runOnChange-owE1SMC0.js.map +0 -1
  29. /package/dist/_observables/observableInternal/reactions/{autorunImpl.d.ts → createEffectImpl.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  export { observableValueOpts } from './observables/observableValueOpts';
2
- export { autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges, autorunIterableDelta, autorunSelfDisposable } from './reactions/autorun';
2
+ export { createEffect, createEffectOpts, autorun, autorunDelta, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges, autorunIterableDelta, autorunSelfDisposable } from './reactions/createEffect';
3
3
  export { type IObservable, type IObservableWithChange, type IObserver, type IReader, type ISettable, type ISettableObservable, type ITransaction } from './base';
4
4
  export { disposableObservableValue } from './observables/observableValue';
5
5
  export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore } from './observables/derived';
@@ -3,7 +3,7 @@ import { TransactionImpl } from '../transaction';
3
3
  import { IObservableLogger, IChangeInformation } from './logging';
4
4
  import { FromEventObservable } from '../observables/observableFromEvent';
5
5
  import { Derived } from '../observables/derivedImpl';
6
- import { AutorunObserver } from '../reactions/autorunImpl';
6
+ import { AutorunObserver } from '../reactions/createEffectImpl';
7
7
  export declare function logObservableToConsole(obs: IObservable<any>): void;
8
8
  export declare class ConsoleObservableLogger implements IObservableLogger {
9
9
  private indentation;
@@ -1,4 +1,4 @@
1
- import { AutorunObserver } from '../../reactions/autorunImpl';
1
+ import { AutorunObserver } from '../../reactions/createEffectImpl';
2
2
  import { TransactionImpl } from '../../transaction';
3
3
  import { IChangeInformation, IObservableLogger } from '../logging';
4
4
  import { IObservable } from '../../base';
@@ -1,4 +1,4 @@
1
- import { AutorunObserver } from '../reactions/autorunImpl';
1
+ import { AutorunObserver } from '../reactions/createEffectImpl';
2
2
  import { IObservable } from '../base';
3
3
  import { TransactionImpl } from '../transaction';
4
4
  import type { Derived } from '../observables/derivedImpl';
@@ -5,14 +5,22 @@ import { IDebugNameData } from '../debugName';
5
5
  import { DebugLocation } from '../debugLocation';
6
6
  /**
7
7
  * Runs immediately and whenever a transaction ends and an observed observable changed.
8
- * {@link fn} should start with a JS Doc using `@description` to name the autorun.
8
+ * {@link fn} should start with a JS Doc using `@description` to name the effect.
9
+ */
10
+ export declare function createEffect(fn: (reader: IReaderWithStore) => void, debugLocation?: DebugLocation): IDisposable;
11
+ /**
12
+ * @deprecated Use {@link createEffect} instead.
9
13
  */
10
- export declare function autorun(fn: (reader: IReaderWithStore) => void, debugLocation?: DebugLocation): IDisposable;
14
+ export declare const autorun: typeof createEffect;
11
15
  /**
12
16
  * Runs immediately and whenever a transaction ends and an observed observable changed.
13
17
  * {@link fn} should start with a JS Doc using `@description` to name the autorun.
14
18
  */
15
- export declare function autorunOpts(options: IDebugNameData & {}, fn: (reader: IReaderWithStore) => void, debugLocation?: DebugLocation): IDisposable;
19
+ export declare function createEffectOpts(options: IDebugNameData & {}, fn: (reader: IReaderWithStore) => void, debugLocation?: DebugLocation): IDisposable;
20
+ /**
21
+ * @deprecated Use {@link createEffectOpts} instead.
22
+ */
23
+ export declare const autorunOpts: typeof createEffectOpts;
16
24
  /**
17
25
  * Runs immediately and whenever a transaction ends and an observed observable changed.
18
26
  * {@link fn} should start with a JS Doc using `@description` to name the autorun.