camunda / camunda-dmn-js

Embeddable Camunda modeling distributions based on dmn-js
MIT License
6 stars 3 forks source link

chore: expose modelers from root #8

Closed barmac closed 2 years ago

barmac commented 2 years ago

lib is no longer exposed but the modelers can be imported from the root of the package:

import { BaseModeler as Modeler } from 'camunda-dmn-js';

const modeler = new Modeler();

Closes #7

marstamm commented 2 years ago

Should we really remove lib from the dist? It might be usefull if you want to subclass/extend modules. The bpmn-js distro also includes lib: https://unpkg.com/browse/bpmn-js@9.0.2/lib/

barmac commented 2 years ago

I don't want to expose internal modules as this means any change within the structure is a breaking change. I think it's safe to start with a limited public API and expose more if we really need that.