Skip to content

Commit

Permalink
deps: use bpmn-js-element-templates from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jan 25, 2024
1 parent d9795b9 commit cadc291
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 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 @@ -30,7 +30,7 @@
},
"homepage": "https://github.com/bpmn-io/element-templates-cli#readme",
"devDependencies": {
"bpmn-js-element-templates": "file:vendor/bpmn-js-element-templates-1.11.0.tgz",
"bpmn-js-element-templates": "^1.12.1",
"bpmn-js-headless": "^0.0.1",
"chai": "^4.3.7",
"esbuild": "^0.19.0",
Expand Down
4 changes: 2 additions & 2 deletions src/applyTemplate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Modeler from 'bpmn-js-headless/lib/Modeler';
import ZeebeModdleExtension from 'zeebe-bpmn-moddle/resources/zeebe.json';
import ElementTemplates from 'bpmn-js-element-templates/cloud-core';
import { CloudElementTemplatesCoreModule } from 'bpmn-js-element-templates/core';

export async function applyTemplate(diagram, template, element) {
const parsedTemplate = JSON.parse(template);
Expand All @@ -17,7 +17,7 @@ export async function applyTemplate(diagram, template, element) {
async function importDiagram(diagram) {
const modeler = new Modeler({
additionalModules: [
ElementTemplates
CloudElementTemplatesCoreModule
],
moddleExtensions: {
zeebe: ZeebeModdleExtension
Expand Down
Binary file removed vendor/bpmn-js-element-templates-1.11.0.tgz
Binary file not shown.

0 comments on commit cadc291

Please sign in to comment.