79 Commits

Author SHA1 Message Date
9f41690c22 fix(Modeler): re-add outline feature
Turns out our custom outlines got missing with 583195a,
time to restore them (for modeling).

Related to #2135
2024-11-06 10:55:59 +01:00
ae7d4acafe deps: update to diagram-js@15.0.0 2024-11-04 20:53:37 +01:00
fcc38bacc4 deps: replace axe-core with @bpmn-io/a11y 2024-06-25 09:43:47 +02:00
ed2ddae4e0 test: no longer translate errors 2024-04-26 15:15:40 +02:00
4689b35bce test: setup accessibility tests with axe 2024-04-10 13:21:49 +02:00
6e92713cb9 feat: handle adding vertical lanes
Related to #2086

---------

Co-authored-by: Maciej Barelkowski <maciej.barelkowski@camunda.com>
2024-01-30 18:16:03 +01:00
72fcec91dc fix: ensure all error translations are collected 2023-12-04 08:29:51 +01:00
b7be98b649 chore: drop node-style callback support from public API
BREAKING CHANGES:

* use promise based support, available since 7.0.0
2023-08-10 16:45:52 +02:00
65894488c4 test: translate special strings
Ensures these are not removed when collecting translations.
2023-05-17 14:28:47 +02:00
42042fc62d feat: remove create-append-anything module 2023-03-23 12:30:49 +01:00
1574e3572e feat(create-append-anything): add create shortcut
Trigger create with 'n' and 'a' if no selection

Closes #1814
2023-01-25 12:38:21 +01:00
57068d1552 feat(create-append-anything): encapsulate editor actions 2023-01-23 20:44:37 +01:00
11a7666ff1 feat(editor-actions): add append action
Closes #1808
2023-01-18 16:37:56 +01:00
0e8cb2fe18 feat(editor-actions): register 'replaceElement' action 2022-12-12 23:47:02 +01:00
603f541a3e test: increase complex copy+paste test timeout 2022-09-30 10:00:08 +02:00
a8fa78935b test(copy + paste): add integration test 2022-08-16 13:14:13 +00:00
fc92433376 test: add generic logging facility
This allows us to enable different sorts of logging conveniently
via the test helper and control it via query parameters.
2022-07-07 13:33:08 +00:00
482559ea7a test: export diagram during singleStart
This allows us to easier debug XML changes during
manual integration testing.
2022-06-09 13:52:46 +02:00
574a674381 fix(drilldown): create overlays on viewer.open 2022-03-23 11:13:39 +00:00
bd419fedf9 test(drilldown): add integration test for group creation 2022-02-17 11:07:13 +00:00
f2b47e17f3 test: verify drill down into legacy sub-processes 2022-01-12 09:14:15 +01:00
b2fd342054 feat(drilldown): make breadcrumbs reactive
* react to palette state
* expose own state to djs-container
2021-11-18 10:27:48 +00:00
946a0ecdb8 test: add drill down spec for Modeler and Viewer 2021-10-21 11:05:08 +02:00
96255cdd96 Merge branch 'master' into develop 2021-10-20 17:11:00 +02:00
97e1ad14ba test: verify copy and paste between Modeler instances 2021-10-20 17:07:26 +02:00
597c417dce chore: throw error when accessing DI from business object
Related to https://github.com/bpmn-io/bpmn-js/issues/1472
2021-09-03 15:14:00 +02:00
ca8488b2c9 test: adjust to use getDi utility function
Related to https://github.com/bpmn-io/bpmn-js/issues/1472
2021-09-03 15:14:00 +02:00
44301d1830 chore: add <npm start> script
This script is the one stop utility that allows users to open a modeler
or viewer instance, directly within your browser.

Works via a custom launcher that openes the {KARMA_BASE}/debug.html
page in your default web browser.

Closes https://github.com/bpmn-io/bpmn-js/issues/1396
2020-12-21 22:43:43 +01:00
3ff287266c chore: resurrect translation reporter
This restores the translation reporter that allows us to extract
translations from the library, as we test it.
2020-11-03 20:39:20 +00:00
04ca31fac9 feat(lib): Promisify public APIs
This commit promisifies following APIs:

   BaseViewer#importXML
   BaseViewer#importDefinitions
   BaseViewer#open
   BaseViewer#saveXML
   BaseViewer#saveSVG
   Modeler#createDiagram

Related to https://github.com/bpmn-io/bpmn-js/issues/812

BREAKING CHANGES:

* Users are now expected to have Promises either by default or
polyfilled as the APIs return a Promise now.
2020-04-29 11:12:23 +02:00
a1be2ea631 test(project): register BpmnJS in integration tests 2019-12-09 08:32:04 +00:00
0affb3b3bc test(Viewer): simplify multiple-diagrams test cases 2019-04-16 15:20:12 +02:00
7b03e5289a test(import): verify duplicate DI import behavior 2019-04-16 15:20:12 +02:00
4c270a01e4 test(Modeler): add data input / output editing spec 2019-03-26 11:55:36 +01:00
e6c073ebea test(Modeler): add regression test for correct module injection 2018-11-06 13:56:53 +00:00
a94406e423 feat(modeler): (re-)integrate selection moving via keyboard
Closes #376
2018-10-29 14:52:41 +00:00
37e38e9a2a test(Modeler): verify existing editorActions 2018-10-29 14:52:41 +00:00
82a37e7253 chore(test): clean up test setup 2018-07-09 12:30:45 +02:00
9be61259bd chore(project): drop 'use strict'
We use ES modules, so 'use strict' is not necessary anymore.
2018-04-03 18:09:53 +02:00
d3449ca87c chore(project): es6ify source code
* use ES6 import / export
* UTILS: export individual utilities
* TESTS: localize TestHelper includes

BREAKING CHANGE:

* all utilities export independent functions
* library sources got ported to ES6. You must now use
  a ES module bundler such as Browserify + babelify or
  Webpack to consume this library (or parts of it).
2018-04-03 16:32:14 +02:00
0f04b76ad2 test(Modeler): minor test style improvements 2018-04-02 09:24:21 +02:00
44a08ae6a3 test(Modeler): bind keyboard 2018-04-02 09:12:44 +02:00
ce791b8e17 test(Modeler): verify color support
Related to #756
2018-01-31 12:22:31 +01:00
37a06a378d chore(tests): use absolute lib requires 2018-01-24 11:41:21 +01:00
7ffb865023 chore(project): consistent async error handling
Async utilities properly propagate _all_ errors to the
specified _done_ callback. Failing in _done_ does not
re-invoke it.

Adjustments made in

* Viewer#importXML
* Viewer#saveSVG
* Importer#importBpmnDiagram

Tests cleaned up to remove un-necessary `if (err) { ...` snippets.
2017-12-09 22:31:15 +01:00
6dc4af5396 feat(Viewer): allow dynamic attach / detach from DOM
Closes #655

BREAKING CHANGE:

* Viewer / Modeler do not attach to `body` anymore per
  default. Use `new Viewer({ container: 'body' })` to
  restore the old behavior.
2017-01-27 13:28:27 +01:00
c111bea876 fix(label-bounds): fix failing test case 2016-11-01 15:20:22 +01:00
db0ce65aa4 feat(graphics): remove snapsvg
Related to bpmn-io/diagram-js#50
2016-11-01 15:20:22 +01:00
ea47cdea30 test(modeler): add complex diagram test (skipped) 2016-06-27 14:14:07 +02:00
62d9b6f993 feat(Modeler): expose Viewer and NavigatedViewer constructors
This allows bundled users (f.ex without browserify)
to use the modeler + viewers easily without having to monkey patch or
load more than one bundled file.

Closes #541
2016-05-12 15:38:41 +02:00