@elice/material-exercise 1.230111.0-mobexercise.0 → 1.230111.0-mobexercise.1

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var reactUse = require('react-use');
5
+ var utils = require('@elice/utils');
5
6
  var monaco = require('monaco-editor/esm/vs/editor/editor.api');
6
7
  var MonacoEditor = require('./MonacoEditor.js');
7
8
 
@@ -149,6 +150,9 @@ const MonacoEditorMobile = React.forwardRef((props, ref) => {
149
150
 
150
151
  addKeyboardButtonOverlayWidget(editor);
151
152
  exposeWindowGlobalEvents(editor);
153
+ editor.onDidChangeModelContent(() => {
154
+ utils.FlutterApp.onDidChangeContent();
155
+ });
152
156
  }; //
153
157
  //
154
158
  //
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { useEnsuredForwardedRef } from 'react-use';
3
+ import { FlutterApp } from '@elice/utils';
3
4
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
4
5
  import MonacoEditor from './MonacoEditor.js';
5
6
 
@@ -124,6 +125,9 @@ const MonacoEditorMobile = forwardRef((props, ref) => {
124
125
 
125
126
  addKeyboardButtonOverlayWidget(editor);
126
127
  exposeWindowGlobalEvents(editor);
128
+ editor.onDidChangeModelContent(() => {
129
+ FlutterApp.onDidChangeContent();
130
+ });
127
131
  }; //
128
132
  //
129
133
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-exercise",
3
- "version": "1.230111.0-mobexercise.0",
3
+ "version": "1.230111.0-mobexercise.1",
4
4
  "description": "User view and editing components of Elice material exercise",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -79,8 +79,8 @@
79
79
  "@elice/design-tokens": "^1.220803.0",
80
80
  "@elice/icons": "^1.220803.0",
81
81
  "@elice/markdown": "^1.220803.0",
82
- "@elice/material-shared-types": "1.230111.0-mobexercise.0",
83
- "@elice/material-shared-utils": "1.230111.0-mobexercise.0",
82
+ "@elice/material-shared-types": "1.230111.0-mobexercise.1",
83
+ "@elice/material-shared-utils": "1.230111.0-mobexercise.1",
84
84
  "@elice/types": "1.221217.0",
85
85
  "@elice/websocket": "^1.220803.0",
86
86
  "@types/classnames": "^2.3.1",
@@ -102,5 +102,5 @@
102
102
  "recoil": "^0.6.1",
103
103
  "styled-components": "^5.2.0"
104
104
  },
105
- "gitHead": "5a62dfe0601abca6b8a227bc53b8c4ed13a576f0"
105
+ "gitHead": "8d7bcbe80aecd631228336b1ab73bfc4d2c751cb"
106
106
  }