@miragon/dmn-modeler 0.4.0 → 0.6.0
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/CHANGELOG.md +57 -0
- package/README.md +16 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.js +2363 -103
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0](https://github.com/Miragon/bpmn-modeler/compare/dmn-modeler-v0.5.0...dmn-modeler-v0.6.0) (2026-11-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🎉 New Features
|
|
7
|
+
|
|
8
|
+
* **bpmn-webview:** preview forms linked to user tasks ([#1929](https://github.com/Miragon/bpmn-modeler/issues/1929)) [sync 52ec1dd] ([d07a689](https://github.com/Miragon/bpmn-modeler/commit/d07a68985cdabf0daa9be4421048eb061b170a80))
|
|
9
|
+
* **editor:** edit element templates in a graphical builder ([#2047](https://github.com/Miragon/bpmn-modeler/issues/2047)) [sync cda8154] ([3e04c5a](https://github.com/Miragon/bpmn-modeler/commit/3e04c5a6512f5b3d947a7d424d50e684cec57123))
|
|
10
|
+
* **editor:** preview element templates beside their JSON ([#2028](https://github.com/Miragon/bpmn-modeler/issues/2028)) [sync be6babb] ([452b644](https://github.com/Miragon/bpmn-modeler/commit/452b6440f99984b9603ddb07a8c8d8d30cfa921f))
|
|
11
|
+
* **modeler-core:** configure automatic form preview ([#2146](https://github.com/Miragon/bpmn-modeler/issues/2146)) [sync 210c621] ([e346554](https://github.com/Miragon/bpmn-modeler/commit/e346554c625b2ca24223ab13243fdaea470ecef1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### 🛠️ Misc
|
|
15
|
+
|
|
16
|
+
* **architecture-testing:** add the role folders and one rule set per workspace kind ([#2138](https://github.com/Miragon/bpmn-modeler/issues/2138)) ([12ff0d9](https://github.com/Miragon/bpmn-modeler/commit/12ff0d9db708da7289457d545cee116f3a6795ba))
|
|
17
|
+
|
|
18
|
+
## [0.5.0](https://github.com/Miragon/bpmn-modeler/compare/dmn-modeler-v0.4.0...dmn-modeler-v0.5.0) (2026-11-01)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🎉 New Features
|
|
22
|
+
|
|
23
|
+
* **bpmn-modeler:** translate popup-menu search keywords ([#1781](https://github.com/Miragon/bpmn-modeler/issues/1781)) [sync cae0009] ([432bbd7](https://github.com/Miragon/bpmn-modeler/commit/432bbd773e762ffa383631020639f90004f1b8e5))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 🐞 Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **bpmn-modeler:** flush panel input on save and read the bound engine ([#2064](https://github.com/Miragon/bpmn-modeler/issues/2064)) [sync 33c466b] ([66e60bb](https://github.com/Miragon/bpmn-modeler/commit/66e60bb7c28f0bd7e6b0dfe5b4ff367edf83d4ec))
|
|
29
|
+
* **bpmn-modeler:** keep theme in step across destroy and mode switches ([#1734](https://github.com/Miragon/bpmn-modeler/issues/1734)) ([6fb3ba9](https://github.com/Miragon/bpmn-modeler/commit/6fb3ba91f490f0c7e065cdf63d585a2d7d7971bd))
|
|
30
|
+
* **element-template-chooser:** show "1 property" for a single template property ([#1794](https://github.com/Miragon/bpmn-modeler/issues/1794)) [sync abfa4ee] ([965a8e8](https://github.com/Miragon/bpmn-modeler/commit/965a8e8ad927a1c07ca32b94fa2cff4899b799d4))
|
|
31
|
+
* **i18n:** offer every shipped language in the language settings ([#2006](https://github.com/Miragon/bpmn-modeler/issues/2006)) [sync bf9de92] ([fa0344d](https://github.com/Miragon/bpmn-modeler/commit/fa0344df48c474092b5f094b4d2461bdd90ee297))
|
|
32
|
+
* **modeler-core:** read the executable process id under any bpmn prefix ([#1949](https://github.com/Miragon/bpmn-modeler/issues/1949)) [sync db53e2e] ([52b0e3f](https://github.com/Miragon/bpmn-modeler/commit/52b0e3ff93e954fa59447237cc37a82d7b41cf6f))
|
|
33
|
+
* **modeler-core:** stop migration from stamping duplicate execution-platform attributes ([#1862](https://github.com/Miragon/bpmn-modeler/issues/1862)) [sync 18c157a] ([6aab597](https://github.com/Miragon/bpmn-modeler/commit/6aab5979a4576ee7190b6239f273a68c480931c6))
|
|
34
|
+
* **modeler-types:** flush pending edits before a save or a mode switch ([#2114](https://github.com/Miragon/bpmn-modeler/issues/2114)) ([a7eb551](https://github.com/Miragon/bpmn-modeler/commit/a7eb55170672bec09ab03dc7386a3b20eccb95b2))
|
|
35
|
+
* **modeler-types:** scan xml comments and cdata in document order ([#1970](https://github.com/Miragon/bpmn-modeler/issues/1970)) [sync 249398c] ([7d61046](https://github.com/Miragon/bpmn-modeler/commit/7d610469dd8abdf246f37f26ca9643a180dd385e))
|
|
36
|
+
* **shared:** hold a quickly narrowed properties panel at its minimum width ([#1698](https://github.com/Miragon/bpmn-modeler/issues/1698)) [sync f92e122] ([74417fa](https://github.com/Miragon/bpmn-modeler/commit/74417fac1d705768bac5a2fce16e30ca200f8e23))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### 🔨 Refactoring
|
|
40
|
+
|
|
41
|
+
* **modeler-core:** share document sync and surface lifecycles ([#1776](https://github.com/Miragon/bpmn-modeler/issues/1776)) ([f4c099f](https://github.com/Miragon/bpmn-modeler/commit/f4c099fbeef9c8ab0bc09338ad959569bf55614f))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### 📔 Documentation
|
|
45
|
+
|
|
46
|
+
* **bpmn-modeler:** document yarn berry resolutions for upstream carets ([#1782](https://github.com/Miragon/bpmn-modeler/issues/1782)) ([0246c4d](https://github.com/Miragon/bpmn-modeler/commit/0246c4d2595866a8cb86197ab3ad5e405295267e))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### 🛠️ Misc
|
|
50
|
+
|
|
51
|
+
* **architecture-testing:** keep the architecture spec under the test timeout on CI ([#2122](https://github.com/Miragon/bpmn-modeler/issues/2122)) ([2f8e905](https://github.com/Miragon/bpmn-modeler/commit/2f8e905b61eea0179f037257e7811747cb372731))
|
|
52
|
+
* **architecture-testing:** run the modeler package specs on the engine ([#2085](https://github.com/Miragon/bpmn-modeler/issues/2085)) ([286c9e0](https://github.com/Miragon/bpmn-modeler/commit/286c9e0302f5068bb1bb0e1eed7b02f8236aca02))
|
|
53
|
+
* **ci:** gate coverage reports on code changes and enforce thresholds ([#1682](https://github.com/Miragon/bpmn-modeler/issues/1682)) ([e2bf365](https://github.com/Miragon/bpmn-modeler/commit/e2bf3650949daf8d445466ace1eb769a89a87b4f))
|
|
54
|
+
* **ci:** raise drifted coverage floors and type-check spec files ([#1796](https://github.com/Miragon/bpmn-modeler/issues/1796)) ([88359d4](https://github.com/Miragon/bpmn-modeler/commit/88359d4ef080929e369a6736134e1cd282f0e17b))
|
|
55
|
+
* **ci:** run every vitest workspace from one target registry ([#1687](https://github.com/Miragon/bpmn-modeler/issues/1687)) ([b0c1940](https://github.com/Miragon/bpmn-modeler/commit/b0c19402c84b2a1f496fa20728e97f9a254b8885))
|
|
56
|
+
* **deps:** bump @bpmn-io/properties-panel from 3.56.1 to 3.57.0 in the bpmn-io group ([#1665](https://github.com/Miragon/bpmn-modeler/issues/1665)) ([00808c7](https://github.com/Miragon/bpmn-modeler/commit/00808c70f667d6eb6848e943ead9d7a2577105ca))
|
|
57
|
+
* **deps:** bump the npm-minor-patch group across 1 directory with 10 updates ([#1667](https://github.com/Miragon/bpmn-modeler/issues/1667)) ([4fb5db5](https://github.com/Miragon/bpmn-modeler/commit/4fb5db55c3e1f5891598189d720ed292691634ca))
|
|
58
|
+
* **deps:** bump the npm-minor-patch group across 1 directory with 8 updates ([#1758](https://github.com/Miragon/bpmn-modeler/issues/1758)) ([c1a1cd3](https://github.com/Miragon/bpmn-modeler/commit/c1a1cd3279cbf9137b337422ed71f05d416c9347))
|
|
59
|
+
|
|
3
60
|
## [0.4.0](https://github.com/Miragon/bpmn-modeler/compare/dmn-modeler-v0.3.1...dmn-modeler-v0.4.0) (2026-10-16)
|
|
4
61
|
|
|
5
62
|
|
package/README.md
CHANGED
|
@@ -112,6 +112,22 @@ const eventBus = modeler.getService( "eventBus" );
|
|
|
112
112
|
- **Locale is page-global** in this release (the i18n instance is a singleton); theming is
|
|
113
113
|
per-instance via the `data-dmn-theme` attribute (see
|
|
114
114
|
[Theming](#theming)).
|
|
115
|
+
- **Yarn Berry installs.** This package pins `diagram-js` exactly, but the dmn-js packages
|
|
116
|
+
declare it with caret ranges. Yarn 2+ resolves each range to the newest matching version, so
|
|
117
|
+
once diagram-js publishes a release newer than this package's pin, a second copy is nested
|
|
118
|
+
under dmn-js and the modeler splits across two versions. npm and pnpm reuse the pinned
|
|
119
|
+
version. With Yarn, pin it in your root `package.json` to the version that
|
|
120
|
+
`node_modules/@miragon/dmn-modeler/package.json` declares, and update it whenever you upgrade
|
|
121
|
+
`@miragon/dmn-modeler`:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"resolutions": {
|
|
126
|
+
"diagram-js": "<pin from @miragon/dmn-modeler>"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
115
131
|
- **Bundler dedupe.** The modeler and its plugins must share single copies of
|
|
116
132
|
`inferno` and the properties-panel / CodeMirror stack. If you build with Vite, add these to
|
|
117
133
|
`resolve.dedupe`:
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,8 @@ export declare interface DmnModelerHandle {
|
|
|
46
46
|
isCanvasFocused(): boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Switch the colour theme live. Toggles this instance's `data-dmn-theme`
|
|
49
|
-
* attribute and mirrors it to a legacy `#theme-link` when present.
|
|
49
|
+
* attribute and mirrors it to a legacy `#theme-link` when present. A no-op
|
|
50
|
+
* once the instance is destroyed.
|
|
50
51
|
*/
|
|
51
52
|
setTheme(theme: DmnThemeMode): void;
|
|
52
53
|
/**
|
|
@@ -57,7 +58,11 @@ export declare interface DmnModelerHandle {
|
|
|
57
58
|
* re-import; the DRD viewbox is preserved.
|
|
58
59
|
*/
|
|
59
60
|
setLocale(locale: string): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Tear down this instance and all of its listeners and observers. Idempotent.
|
|
63
|
+
* Afterwards every other member except the no-op `setTheme` throws
|
|
64
|
+
* `NoModelerError` (async members reject with it).
|
|
65
|
+
*/
|
|
61
66
|
destroy(): void;
|
|
62
67
|
/**
|
|
63
68
|
* Unstable escape hatch into the active dmn-js viewer's DI graph. The
|
|
@@ -113,6 +118,8 @@ export declare interface DmnOperationResult {
|
|
|
113
118
|
readonly warnings: DmnWarning[];
|
|
114
119
|
}
|
|
115
120
|
|
|
121
|
+
/* Excluded from this release type: DmnPendingInputHandle */
|
|
122
|
+
|
|
116
123
|
/**
|
|
117
124
|
* Theme selection for a single instance. The modeler toggles a
|
|
118
125
|
* `data-dmn-theme` attribute on its container + panel parent (the authoritative
|
|
@@ -163,6 +170,12 @@ export declare interface DmnWarningError {
|
|
|
163
170
|
readonly stack?: string;
|
|
164
171
|
}
|
|
165
172
|
|
|
173
|
+
export declare class NoModelerError extends Error {
|
|
174
|
+
constructor() {
|
|
175
|
+
super("Modeler is not initialized!");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
166
179
|
export { }
|
|
167
180
|
|
|
168
181
|
declare module "diagram-js/lib/core/EventBus" {
|