@jylups/flowable-bpmn-moddle 0.0.0-stage → 0.0.1-next.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # @jylups/flowable-bpmn-moddle
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Flowable moddle extensions for BPMN 2.0.
4
+
5
+ > Work in progress. This package is being built in Phase 1 of the Flowable BPMN editor ([jylups/bpmn-js-env#7](https://github.com/jylups/bpmn-js-env/issues/7)). It is not published yet.
6
+
7
+ ## Usage
8
+
9
+ ```js
10
+ import BpmnModeler from 'bpmn-js/lib/Modeler';
11
+ import flowableDescriptor from '@jylups/flowable-bpmn-moddle';
12
+
13
+ const modeler = new BpmnModeler({
14
+ container: '#canvas',
15
+ moddleExtensions: {
16
+ flowable: flowableDescriptor
17
+ }
18
+ });
19
+ ```
20
+
21
+ The descriptor is also available as `@jylups/flowable-bpmn-moddle/resources/flowable.json`.
22
+
23
+ The extensions it covers are listed in [docs/flowable-bpmn-extensions.md](https://github.com/jylups/bpmn-js-env/blob/main/docs/flowable-bpmn-extensions.md).
24
+
25
+ ## Development
26
+
27
+ Work in the [bpmn-js-env](https://github.com/jylups/bpmn-js-env) workspace, which links this package with the others and with the playground. Issues for this package are tracked there.
28
+
29
+ ```sh
30
+ npm install
31
+ npm run lint
32
+ npm test
33
+ ```
34
+
35
+ ## License
36
+
37
+ MIT
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import flowableDescriptor from './resources/flowable.json' with { type: 'json' };
2
+
3
+ /**
4
+ * The Flowable moddle descriptor (namespace `http://flowable.org/bpmn`,
5
+ * prefix `flowable`).
6
+ *
7
+ * Pass it to bpmn-js or bpmn-moddle as `moddleExtensions: { flowable }`.
8
+ */
9
+ export default flowableDescriptor;
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@jylups/flowable-bpmn-moddle",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-next.0",
4
+ "description": "Flowable moddle extensions for BPMN 2.0",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./resources/flowable.json": "./resources/flowable.json",
9
+ "./package.json": "./package.json"
10
+ },
11
+ "files": [
12
+ "index.js",
13
+ "resources"
14
+ ],
15
+ "scripts": {
16
+ "lint": "eslint .",
17
+ "test": "vitest run",
18
+ "dev": "vitest",
19
+ "all": "npm run lint && npm test"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/jylups/flowable-bpmn-moddle.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/jylups/bpmn-js-env/issues"
27
+ },
28
+ "homepage": "https://github.com/jylups/flowable-bpmn-moddle#readme",
29
+ "keywords": [
30
+ "bpmn",
31
+ "moddle",
32
+ "flowable",
33
+ "bpmn-moddle",
34
+ "bpmn-js"
35
+ ],
36
+ "license": "MIT",
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "engines": {
41
+ "node": ">=24"
42
+ },
43
+ "devDependencies": {
44
+ "@eslint/js": "^10.0.1",
45
+ "bpmn-moddle": "^10.3.1",
46
+ "eslint": "^10.15.0",
47
+ "globals": "^17.14.0",
48
+ "vitest": "^5.1.1"
49
+ }
50
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "Flowable",
3
+ "uri": "http://flowable.org/bpmn",
4
+ "prefix": "flowable",
5
+ "xml": {
6
+ "tagAlias": "lowerCase"
7
+ },
8
+ "associations": [],
9
+ "types": [],
10
+ "enumerations": []
11
+ }