@vived/app 2.35.0 → 2.36.0

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.
@@ -18,6 +18,10 @@ export interface ShowConfirmDTO {
18
18
  confirmCallback: () => void;
19
19
  cancelCallback: () => void;
20
20
  }
21
+ export interface ShowMarkDownEditorDTO {
22
+ initialText: string;
23
+ confirmCallback: () => void;
24
+ }
21
25
  export declare abstract class AppDispatcher {
22
26
  abstract registerHostHandler: (hostHandler: Handler) => void;
23
27
  abstract dispatch: (request: Request) => void;
@@ -46,5 +50,6 @@ export declare abstract class AppDispatcher {
46
50
  abstract stopZSpace: () => void;
47
51
  abstract showAlert: (data: ShowAlertDTO) => void;
48
52
  abstract showConfirm: (data: ShowConfirmDTO) => void;
53
+ abstract showMarkDownEditor: (data: ShowMarkDownEditorDTO) => void;
49
54
  }
50
55
  export declare function makeAppDispatcher(): AppDispatcher;
@@ -299,6 +299,13 @@ class AppDistpatcherImp extends AppDispatcher {
299
299
  };
300
300
  this.formRequestAndDispatch("SHOW_CONFIRM", 1, payload);
301
301
  };
302
+ this.showMarkDownEditor = (data) => {
303
+ const payload = {
304
+ initialText: data.initialText,
305
+ confirmCallback: data.confirmCallback,
306
+ };
307
+ this.formRequestAndDispatch("SHOW_MARKDOWN_EDITOR", 1, payload);
308
+ };
302
309
  }
303
310
  formRequestAndDispatch(type, version, payload) {
304
311
  const request = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "2.35.0",
3
+ "version": "2.36.0",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",