Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Mar 1, 2024
1 parent 841f520 commit 5fcc17d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@node-projects/base-custom-webcomponent": "0.23.0",
"@node-projects/web-component-designer": "^0.1.96",
"@node-projects/web-component-designer-codeview-monaco": "^0.1.18",
"@node-projects/web-component-designer-zpl": "^0.1.13",
"@node-projects/web-component-designer-zpl": "^0.1.15",
"es-module-shims": "^1.8.3"
}
}
5 changes: 4 additions & 1 deletion src/initialize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DocumentContainer, PaletteView, PropertyGridWithHeader } from '@node-projects/web-component-designer';
import { CodeViewMonaco } from '@node-projects/web-component-designer-codeview-monaco';
import { createZplDesignerServiceContainer } from '@node-projects/web-component-designer-zpl';
import { addZplLanguageToMonaco, createZplDesignerServiceContainer } from '@node-projects/web-component-designer-zpl';

await window.customElements.whenDefined("node-projects-document-container");

Expand All @@ -13,6 +13,9 @@ serviceContainer.config.codeViewWidget = CodeViewMonaco;
const documentContainer = new DocumentContainer(serviceContainer);
documentContainer.style.gridArea = 'c';
document.getElementById('root').appendChild(documentContainer);
(<CodeViewMonaco>documentContainer.codeView).language = "zplLanguage";
(<CodeViewMonaco>documentContainer.codeView).theme = "zplTheme";
addZplLanguageToMonaco();

paletteView.loadControls(serviceContainer, serviceContainer.getServices('elementsService'));
propertyGridWithHeader.serviceContainer = serviceContainer;
Expand Down

0 comments on commit 5fcc17d

Please sign in to comment.