sample-ui-component-library 0.0.65-dev → 0.0.66-dev
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/package.json
CHANGED
|
@@ -155,7 +155,7 @@ export const MonacoInstance = forwardRef(({ onSelectAbstraction }, ref) => {
|
|
|
155
155
|
const layoutModel = useCallback(() => {
|
|
156
156
|
editorRef.current?.layout();
|
|
157
157
|
updateOverlays();
|
|
158
|
-
}, []);
|
|
158
|
+
}, [editorRef, state.activeTab, state.mode, onSelectAbstraction]);
|
|
159
159
|
|
|
160
160
|
const api = useMemo(() => {
|
|
161
161
|
return {
|
|
@@ -145,8 +145,11 @@ const Template = (args) => {
|
|
|
145
145
|
if (tool === "mapping-mode") {
|
|
146
146
|
editorRef.current.setMode(EDITOR_MODES.MAPPING);
|
|
147
147
|
} else if (tool === "implementation-mode") {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
console.log("draing");
|
|
149
|
+
editorRef.current.layoutEditor();
|
|
150
|
+
// editorRef.current.setMode(EDITOR_MODES.MAPPING);
|
|
151
|
+
// editorRef.current.setMode(EDITOR_MODES.DESIGN);
|
|
152
|
+
}
|
|
150
153
|
}, [editorRef]);
|
|
151
154
|
|
|
152
155
|
const onSelectAbstraction = useCallback((entry) => {
|