@blackbelt-technology/pi-dashboard-forms-bpmn 0.7.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/.pi/skills/bpmn-package-explorer/SKILL.md +120 -0
- package/.pi/skills/bpmn-package-explorer/assets/LICENSE.bpmn-io.txt +23 -0
- package/.pi/skills/bpmn-package-explorer/assets/VENDORED.md +90 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn-codes.css +108 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn-embedded.css +166 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn.css +164 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.eot +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.svg +224 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.ttf +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.woff +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.woff2 +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-navigated-viewer.production.min.js +22 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn.css +145 -0
- package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/diagram-js.css +1249 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/diagram-js.css +1133 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn-codes.css +41 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn-embedded.css +98 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn.css +97 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.eot +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.svg +90 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.ttf +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.woff +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.woff2 +0 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-decision-table.css +580 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-drd.css +108 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-literal-expression.css +165 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-shared.css +221 -0
- package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-viewer.production.min.js +16 -0
- package/.pi/skills/bpmn-package-explorer/assets/lib/bpmn-pipeline.mjs +6981 -0
- package/.pi/skills/bpmn-package-explorer/assets/lib/yaml.mjs +7372 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g1-identical-bounds.bpmn +17 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g2-zero-size.bpmn +17 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g3-child-outside.bpmn +16 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g4-negative-coord.bpmn +17 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g5-overlap.bpmn +17 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/1-linear.bpmn +12 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/2-gateway.bpmn +19 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/3-boundary.bpmn +13 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/4-subprocess.bpmn +17 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/5-pools.bpmn +21 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/6-lanes-only.bpmn +16 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/7-loop.bpmn +13 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/measured/8-long-chain.bpmn +32 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/nesting/expanded-subprocess-ok.bpmn +25 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/call-activity.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/intermediate-catch.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/intermediate-throw.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/manual-task.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/multi-boundary.bpmn +16 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/parallel-gateway.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/receive-task.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/rule-task.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/script-task.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/fixtures/provisional/send-task.bpmn +10 -0
- package/.pi/skills/bpmn-package-explorer/references/authoring-envelope.md +52 -0
- package/.pi/skills/bpmn-package-explorer/references/identifiers.md +102 -0
- package/.pi/skills/bpmn-package-explorer/references/layout-envelope.md +105 -0
- package/.pi/skills/bpmn-package-explorer/references/licensing.md +48 -0
- package/.pi/skills/bpmn-package-explorer/references/package-manifest.md +104 -0
- package/.pi/skills/bpmn-package-explorer/scripts/build-fixtures.mjs +299 -0
- package/.pi/skills/bpmn-package-explorer/scripts/demo.mjs +128 -0
- package/.pi/skills/bpmn-package-explorer/scripts/diagnostics.mjs +37 -0
- package/.pi/skills/bpmn-package-explorer/scripts/envelope.mjs +160 -0
- package/.pi/skills/bpmn-package-explorer/scripts/fixtures.mjs +140 -0
- package/.pi/skills/bpmn-package-explorer/scripts/generate-cli.mjs +31 -0
- package/.pi/skills/bpmn-package-explorer/scripts/generate.mjs +103 -0
- package/.pi/skills/bpmn-package-explorer/scripts/guard.mjs +335 -0
- package/.pi/skills/bpmn-package-explorer/scripts/harness.mjs +12 -0
- package/.pi/skills/bpmn-package-explorer/scripts/identifiers.mjs +117 -0
- package/.pi/skills/bpmn-package-explorer/scripts/ingest.mjs +95 -0
- package/.pi/skills/bpmn-package-explorer/scripts/manifest.mjs +374 -0
- package/.pi/skills/bpmn-package-explorer/scripts/pipeline.mjs +49 -0
- package/.pi/skills/bpmn-package-explorer/scripts/render.mjs +130 -0
- package/.pi/skills/bpmn-package-explorer/scripts/runguard.mjs +38 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest-e2e.mjs +87 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest-guard.mjs +99 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest-manifest.mjs +170 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest-more.mjs +87 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest-workflow.mjs +73 -0
- package/.pi/skills/bpmn-package-explorer/scripts/selftest.mjs +57 -0
- package/.pi/skills/bpmn-package-explorer/scripts/vendor.mjs +141 -0
- package/.pi/skills/bpmn-package-explorer/scripts/view-cli.mjs +19 -0
- package/.pi/skills/bpmn-package-explorer/templates/shell.html +141 -0
- package/.pi/skills/bpmn-package-explorer/templates/viewer.js +301 -0
- package/.pi/skills/canvas-webapp/SKILL.md +104 -0
- package/.pi/skills/openforms-mui/SKILL.md +187 -0
- package/.pi/skills/openforms-mui/references/a11y.md +68 -0
- package/.pi/skills/openforms-mui/references/field-widget-map.md +64 -0
- package/.pi/skills/openforms-mui/references/hu-locale.md +45 -0
- package/.pi/skills/openforms-mui/references/logic.md +94 -0
- package/.pi/skills/openforms-mui/references/schema.md +94 -0
- package/.pi/skills/openforms-mui/references/theme-bridge.md +65 -0
- package/.pi/skills/openforms-mui/tools/canvas-serve.mjs +51 -0
- package/.pi/skills/openforms-mui/tools/demo-schema.json +80 -0
- package/.pi/skills/openforms-mui/tools/mockups/tokens.css +27 -0
- package/.pi/skills/openforms-mui/tools/mockups/ui-contract.tokens.json +16 -0
- package/.pi/skills/openforms-mui/tools/package-lock.json +5919 -0
- package/.pi/skills/openforms-mui/tools/package.json +61 -0
- package/.pi/skills/openforms-mui/tools/preview/RenderPanel.tsx +105 -0
- package/.pi/skills/openforms-mui/tools/preview/canvas-app.tsx +66 -0
- package/.pi/skills/openforms-mui/tools/preview/canvas-index.html +16 -0
- package/.pi/skills/openforms-mui/tools/preview/cli.ts +99 -0
- package/.pi/skills/openforms-mui/tools/preview/index.html +17 -0
- package/.pi/skills/openforms-mui/tools/preview/main.tsx +228 -0
- package/.pi/skills/openforms-mui/tools/preview/vite-plugin.ts +41 -0
- package/.pi/skills/openforms-mui/tools/scripts/assert-peer-deps.mjs +39 -0
- package/.pi/skills/openforms-mui/tools/src/OpenFormsMui.tsx +391 -0
- package/.pi/skills/openforms-mui/tools/src/css.d.ts +2 -0
- package/.pi/skills/openforms-mui/tools/src/fields/ErrorSummary.tsx +72 -0
- package/.pi/skills/openforms-mui/tools/src/fields/FieldRenderer.tsx +328 -0
- package/.pi/skills/openforms-mui/tools/src/fields/FieldShell.tsx +50 -0
- package/.pi/skills/openforms-mui/tools/src/fields/FileField.tsx +91 -0
- package/.pi/skills/openforms-mui/tools/src/fields/MatrixField.tsx +146 -0
- package/.pi/skills/openforms-mui/tools/src/fields/RepeaterField.tsx +82 -0
- package/.pi/skills/openforms-mui/tools/src/fields/SignatureCanvas.tsx +121 -0
- package/.pi/skills/openforms-mui/tools/src/fields/context.tsx +34 -0
- package/.pi/skills/openforms-mui/tools/src/fields/index.ts +7 -0
- package/.pi/skills/openforms-mui/tools/src/fields/label.ts +42 -0
- package/.pi/skills/openforms-mui/tools/src/fonts.ts +8 -0
- package/.pi/skills/openforms-mui/tools/src/i18n/dictionary.ts +58 -0
- package/.pi/skills/openforms-mui/tools/src/i18n/hu.ts +56 -0
- package/.pi/skills/openforms-mui/tools/src/i18n/index.ts +43 -0
- package/.pi/skills/openforms-mui/tools/src/index.ts +27 -0
- package/.pi/skills/openforms-mui/tools/src/logic/cnf.ts +206 -0
- package/.pi/skills/openforms-mui/tools/src/logic/formula.ts +285 -0
- package/.pi/skills/openforms-mui/tools/src/logic/index.ts +4 -0
- package/.pi/skills/openforms-mui/tools/src/logic/operators.ts +43 -0
- package/.pi/skills/openforms-mui/tools/src/logic/state.ts +183 -0
- package/.pi/skills/openforms-mui/tools/src/payload.ts +83 -0
- package/.pi/skills/openforms-mui/tools/src/provenance.ts +21 -0
- package/.pi/skills/openforms-mui/tools/src/schema/diagnose.ts +256 -0
- package/.pi/skills/openforms-mui/tools/src/schema/index.ts +4 -0
- package/.pi/skills/openforms-mui/tools/src/schema/normalize.ts +163 -0
- package/.pi/skills/openforms-mui/tools/src/schema/types.ts +299 -0
- package/.pi/skills/openforms-mui/tools/src/schema/walk.ts +68 -0
- package/.pi/skills/openforms-mui/tools/src/theme/from-tokens.ts +102 -0
- package/.pi/skills/openforms-mui/tools/src/theme/index.ts +1 -0
- package/.pi/skills/openforms-mui/tools/src/validation/constrain.ts +83 -0
- package/.pi/skills/openforms-mui/tools/src/validation/diagnostics.ts +62 -0
- package/.pi/skills/openforms-mui/tools/src/validation/empty.ts +53 -0
- package/.pi/skills/openforms-mui/tools/src/validation/index.ts +5 -0
- package/.pi/skills/openforms-mui/tools/src/validation/resolver.ts +14 -0
- package/.pi/skills/openforms-mui/tools/src/validation/zod-from-schema.ts +169 -0
- package/.pi/skills/openforms-mui/tools/tests/a11y.test.tsx +82 -0
- package/.pi/skills/openforms-mui/tools/tests/cli.test.ts +74 -0
- package/.pi/skills/openforms-mui/tools/tests/component.test.tsx +295 -0
- package/.pi/skills/openforms-mui/tools/tests/diagnose.test.ts +163 -0
- package/.pi/skills/openforms-mui/tools/tests/fixtures/all-field-types.json +45 -0
- package/.pi/skills/openforms-mui/tools/tests/logic.test.ts +175 -0
- package/.pi/skills/openforms-mui/tools/tests/normalize.test.ts +105 -0
- package/.pi/skills/openforms-mui/tools/tests/reference-semantics.test.ts +131 -0
- package/.pi/skills/openforms-mui/tools/tests/responsive.test.tsx +158 -0
- package/.pi/skills/openforms-mui/tools/tests/setup.ts +16 -0
- package/.pi/skills/openforms-mui/tools/tests/singleton.test.tsx +31 -0
- package/.pi/skills/openforms-mui/tools/tests/theme.test.ts +65 -0
- package/.pi/skills/openforms-mui/tools/tests/toolchain.test.ts +33 -0
- package/.pi/skills/openforms-mui/tools/tests/validation.test.ts +222 -0
- package/.pi/skills/openforms-mui/tools/tsconfig.json +21 -0
- package/.pi/skills/openforms-mui/tools/vite.canvas.config.ts +21 -0
- package/.pi/skills/openforms-mui/tools/vitest.config.ts +17 -0
- package/NOTICE +46 -0
- package/README.md +62 -0
- package/package.json +46 -0
- package/scripts/ensure-openforms-deps.mjs +38 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bpmn-package-explorer
|
|
3
|
+
description: >-
|
|
4
|
+
Generate, validate and view BPMN 2.0 process packages from a prose
|
|
5
|
+
description, and render existing .bpmn / .dmn files. Turns a described
|
|
6
|
+
business process into plain vendor-neutral BPMN semantics, auto-lays it out
|
|
7
|
+
with a verifying layout guard (never emits a corrupt diagram), wires
|
|
8
|
+
decisions (.dmn), forms (.form) and sub-processes through a sidecar
|
|
9
|
+
package.yaml manifest, and serves a buildless offline bpmn-js / dmn-js viewer
|
|
10
|
+
on the canvas. Use when the user wants to "model a business process", "make a
|
|
11
|
+
BPMN diagram", "generate a process from this description", "draw the workflow",
|
|
12
|
+
"view / open a .bpmn or .dmn file", "build a decision table", or asks in
|
|
13
|
+
Hungarian to "csinálj egy folyamatábrát", "rajzold meg a folyamatot",
|
|
14
|
+
"BPMN ábra", "folyamat modellezés", "döntési tábla", "nézd meg ezt a .bpmn
|
|
15
|
+
fájlt", "folyamatcsomag".
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# BPMN Package Explorer
|
|
19
|
+
|
|
20
|
+
Generate and view BPMN 2.0 process **packages**: a process plus the decisions its
|
|
21
|
+
rule tasks evaluate, the forms its user tasks present, and a manifest binding
|
|
22
|
+
them — kept as plain, vendor-neutral BPMN 2.0. **Buildless and offline**: it
|
|
23
|
+
vendors pre-built viewers and a self-contained Node layout bundle; generating or
|
|
24
|
+
rendering a package needs no `npm install`, no bundler and no network. Requires
|
|
25
|
+
**Node ≥ 20.12** and a browser.
|
|
26
|
+
|
|
27
|
+
## When to use
|
|
28
|
+
|
|
29
|
+
Model a business process from a prose description; make/view a BPMN diagram or a
|
|
30
|
+
DMN decision table; build a cross-linked process package. Hungarian triggers:
|
|
31
|
+
„csinálj egy folyamatábrát”, „rajzold meg a folyamatot”, „döntési tábla”,
|
|
32
|
+
„nézd meg ezt a .bpmn fájlt”.
|
|
33
|
+
|
|
34
|
+
## The two guarantees
|
|
35
|
+
|
|
36
|
+
- **Never a corrupt diagram.** A language model can author correct BPMN
|
|
37
|
+
*semantics* but not a readable coordinate set. `bpmn-auto-layout` fills that
|
|
38
|
+
gap but **fails silently** on sub-processes, pools and lanes (all outputs stay
|
|
39
|
+
schema-valid). A **layout guard** verifies every laid-out diagram against its
|
|
40
|
+
own semantics and **aborts** on any corruption, in strict mode.
|
|
41
|
+
- **Vendor-neutral.** The `.bpmn`/`.dmn`/`.form` files carry no engine
|
|
42
|
+
extension. A sidecar `package.yaml` holds the link graph (`bindings`, `roles`),
|
|
43
|
+
so a package opens in Camunda Modeler, Signavio or any conformant tool.
|
|
44
|
+
|
|
45
|
+
## Generation workflow
|
|
46
|
+
|
|
47
|
+
The agent authors the artifacts (guided by the references); the pipeline runs the
|
|
48
|
+
mechanical steps, each failing loudly:
|
|
49
|
+
|
|
50
|
+
1. **Author semantics** — one or more semantics-only `.bpmn` (no geometry),
|
|
51
|
+
applying the authoring envelope and identifier rules. Emit
|
|
52
|
+
`<bpmn:incoming>`/`<bpmn:outgoing>` on every connected flow node.
|
|
53
|
+
2. **Author artifacts** — the `.dmn` decisions and `.form` schemas.
|
|
54
|
+
3. **Write `package.yaml`** — the `bindings` and `roles`.
|
|
55
|
+
4. **Validate the manifest** — `node scripts/generate-cli.mjs <packageDir>`
|
|
56
|
+
runs the envelope check, manifest validation, layout + guard, and assembles a
|
|
57
|
+
render root; it **stops before serving** on any error.
|
|
58
|
+
5. **Serve + canvas** — serve the printed render-root path with `serve_mockup`
|
|
59
|
+
and open the URL on the canvas (never `file://`).
|
|
60
|
+
|
|
61
|
+
## Display / view workflow
|
|
62
|
+
|
|
63
|
+
- Package: `node scripts/generate-cli.mjs <packageDir>` → `serve_mockup` →
|
|
64
|
+
`canvas`.
|
|
65
|
+
- Standalone file (no manifest): `node scripts/view-cli.mjs <file.bpmn|.dmn>`.
|
|
66
|
+
A file with DI renders as authored; a semantics-only `.bpmn` is laid out into a
|
|
67
|
+
**separate** render artifact (the source is never overwritten). A DI-less file
|
|
68
|
+
containing a rejected construct is refused with that construct's diagnostic.
|
|
69
|
+
|
|
70
|
+
## Canvas / sandboxed-iframe rendering (if the viewer shows blank)
|
|
71
|
+
|
|
72
|
+
The dashboard opens a loopback `canvas(kind:"url")` target inside a
|
|
73
|
+
`sandbox="allow-scripts"` iframe with **no `allow-same-origin`** (opaque origin),
|
|
74
|
+
proxied under `/live/<id>/`. The vendored bpmn-js / dmn-js viewers are buildless
|
|
75
|
+
and offline, so they usually render fine — but if the canvas comes up **blank**
|
|
76
|
+
or **404s**, it is almost always one of these, not a viewer bug:
|
|
77
|
+
|
|
78
|
+
- **Absolute asset paths.** Anything the served page references with a
|
|
79
|
+
leading-slash path (`/vendor/...`, `/main.js`) resolves to the dashboard root
|
|
80
|
+
under the `/live/<id>/` prefix → 404. Keep every path in the render root
|
|
81
|
+
**relative** (`./vendor/...`). Serve the render root with `serve_mockup` (never
|
|
82
|
+
`file://`) and open the returned URL on the canvas.
|
|
83
|
+
- **ES-module `<script type="module">` without CORS.** In the opaque-origin
|
|
84
|
+
iframe a module is fetched with `Origin: null`, so the server must send
|
|
85
|
+
`Access-Control-Allow-Origin: *` or the module is blocked. The vendored viewers
|
|
86
|
+
use classic scripts to avoid this; if you add a module entry, the static server
|
|
87
|
+
must set CORS headers.
|
|
88
|
+
- **Self-verify** by iframing your served render root with
|
|
89
|
+
`sandbox="allow-scripts"` and screenshotting before trusting the canvas — that
|
|
90
|
+
reproduces the exact dashboard sandbox.
|
|
91
|
+
|
|
92
|
+
Full rationale, the CORS static-server pattern, and adjacent pitfalls (IPv6-only
|
|
93
|
+
dev binds → `ECONNREFUSED`, `kill %1` not persisting across tool calls) are in
|
|
94
|
+
the **`canvas-webapp`** skill (bundled with the pi-dashboard extension).
|
|
95
|
+
|
|
96
|
+
## Rejected constructs → manifest substitutions
|
|
97
|
+
|
|
98
|
+
Inline `subProcess` → `callActivity` + separate `.bpmn` + `kind: process`
|
|
99
|
+
(drill-down). Pools (`collaboration`) → one `.bpmn` per participant +
|
|
100
|
+
`kind: participant` (switcher). `laneSet` → manifest `roles` (markers + legend).
|
|
101
|
+
`messageFlow` → unrepresentable (rejected). ≥2 boundary events on one activity →
|
|
102
|
+
rejected. See `references/authoring-envelope.md`.
|
|
103
|
+
|
|
104
|
+
## Verify the toolchain
|
|
105
|
+
|
|
106
|
+
- `node scripts/fixtures.mjs` — layout regression suite (catches upstream drift).
|
|
107
|
+
- `node scripts/selftest.mjs` — envelope / identifier / manifest / guard /
|
|
108
|
+
workflow unit tests.
|
|
109
|
+
- `node scripts/vendor.mjs` — verify vendored bundle hashes
|
|
110
|
+
(`--rebuild` re-vendors from pinned inputs).
|
|
111
|
+
|
|
112
|
+
## References
|
|
113
|
+
|
|
114
|
+
- `references/authoring-envelope.md` — generation contract + rejected constructs.
|
|
115
|
+
- `references/identifiers.md` — deterministic ids, Hungarian deburring,
|
|
116
|
+
uniqueness errors, authoring-vs-ingestion.
|
|
117
|
+
- `references/package-manifest.md` — the `package.yaml` contract, reconciliation.
|
|
118
|
+
- `references/layout-envelope.md` — the measured fixtures and outcomes.
|
|
119
|
+
- `references/licensing.md` — the bpmn.io watermark obligation and Apache 2.0.
|
|
120
|
+
- `assets/VENDORED.md` — pinned versions, hashes, the Node floor (20.12).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2014-present Camunda Services GmbH
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in the
|
|
5
|
+
Software without restriction, including without limitation the rights to use, copy,
|
|
6
|
+
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
|
7
|
+
and to permit persons to whom the Software is furnished to do so, subject to the
|
|
8
|
+
following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
The source code responsible for displaying the bpmn.io project watermark that
|
|
14
|
+
links back to https://bpmn.io as part of rendered diagrams MUST NOT be
|
|
15
|
+
removed or changed. When this software is being used in a website or application,
|
|
16
|
+
the watermark must stay fully visible and not visually overlapped by other elements.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
19
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
20
|
+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
21
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
22
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
23
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Vendored assets
|
|
2
|
+
|
|
3
|
+
Every bundle below is pinned to an **exact** version — never a range — with a
|
|
4
|
+
content hash and licence. Two vendoring forms are used, per design decision D1.
|
|
5
|
+
|
|
6
|
+
- **Browser bundles** are the published pre-built artifacts, copied verbatim and
|
|
7
|
+
hash-compared whole-file against the upstream distribution.
|
|
8
|
+
- **The Node pipeline** is a *single self-contained ESM module* bundled at
|
|
9
|
+
vendoring time by `scripts/vendor.mjs`. It is a build output, so its **inputs**
|
|
10
|
+
are hash-recorded (the published `dist/index.js` of each closure package)
|
|
11
|
+
rather than the output being compared to a published file.
|
|
12
|
+
|
|
13
|
+
**Minimum host Node version: `20.12`** — the strictest `engines.node` in the
|
|
14
|
+
closure, declared by `bpmn-moddle` and `saxen`. (`bpmn-auto-layout` and
|
|
15
|
+
`moddle-xml` declare `>= 18`; `moddle` and `min-dash` declare none.)
|
|
16
|
+
|
|
17
|
+
Regenerate with `node scripts/vendor.mjs --rebuild`; verify with
|
|
18
|
+
`node scripts/vendor.mjs`. After any re-vendor, run `node scripts/fixtures.mjs`
|
|
19
|
+
and record the result before accepting the upgrade (upstream drift detector).
|
|
20
|
+
|
|
21
|
+
## Browser bundles (published artifacts, whole-file hash-compared)
|
|
22
|
+
|
|
23
|
+
| package | version | licence | file | sha256 |
|
|
24
|
+
|---|---|---|---|---|
|
|
25
|
+
| `bpmn-js` | 18.24.0 | bpmn.io License | `assets/bpmn-js/bpmn-navigated-viewer.production.min.js` | `e815dba42e3864eafc1621fab15e9c22e8ebcd07cf1e89650a9ca4ad2fe45f49` |
|
|
26
|
+
| `dmn-js` | 17.10.1 | bpmn.io License | `assets/dmn-js/dmn-viewer.production.min.js` | `0e3e4504b17bad6b570b93441807d4b322a1e10b33452b80497177499a8d72b9` |
|
|
27
|
+
|
|
28
|
+
Accompanying stylesheets and icon fonts are copied from the same package at the
|
|
29
|
+
same version: `assets/bpmn-js/{diagram-js.css,bpmn.css,bpmn-font/}` and
|
|
30
|
+
`assets/dmn-js/{diagram-js.css,dmn-js-shared.css,dmn-js-drd.css,dmn-js-decision-table.css,dmn-js-literal-expression.css,dmn-font/}`.
|
|
31
|
+
|
|
32
|
+
The **watermark-rendering source** lives inside the two `*.production.min.js`
|
|
33
|
+
bundles above; the whole-file hash match is the guarantee it is byte-identical to
|
|
34
|
+
upstream (bpmn.io License requirement, and viewer spec "Watermark source is
|
|
35
|
+
unmodified").
|
|
36
|
+
|
|
37
|
+
## Node pipeline (self-contained bundle — INPUTS hash-recorded)
|
|
38
|
+
|
|
39
|
+
Bundled output: `assets/lib/bpmn-pipeline.mjs` (exports `layoutProcess`,
|
|
40
|
+
`BpmnModdle`). Build tool: `esbuild@0.24.0`
|
|
41
|
+
(`--bundle --format=esm --platform=node --target=node20.12`).
|
|
42
|
+
|
|
43
|
+
| package | version | licence | input file | input sha256 |
|
|
44
|
+
|---|---|---|---|---|
|
|
45
|
+
| `bpmn-auto-layout` | 1.3.0 | MIT | `bpmn-auto-layout/dist/index.js` | `1443e3f710c45db7bf4cdcfcb960fe48a5e0cae8214a1451deca5784424e211e` |
|
|
46
|
+
| `bpmn-moddle` | 10.1.0 | MIT | `bpmn-moddle/dist/index.js` | `ece57e2fae965e1372cfb21b983fba06818c318ad0d35b6b8b8b6da2e27a0c9b` |
|
|
47
|
+
| `moddle` | 8.2.1 | MIT | `moddle/dist/index.js` | `fc20cb48373cf2a6e09143492626dbc77efb8d8e3660a9e132b5bc9dcb7a558c` |
|
|
48
|
+
| `moddle-xml` | 12.1.0 | MIT | `moddle-xml/dist/index.js` | `35480f3eb2f0baf57d1f07e812ae47b65df68217e273b427ed07f2d442e7da14` |
|
|
49
|
+
| `min-dash` | 5.1.0 | MIT | `min-dash/dist/index.js` | `0eacee75abc8df5349304a6c1a7377f3d36142cb182cbb95c2227ca8a3349a7c` |
|
|
50
|
+
| `saxen` | 11.1.1 | MIT | `saxen/dist/index.js` | `6303cae8a9787409db5671c958897ec8e5a3bf9e26f4b490c760b4d6d4257279` |
|
|
51
|
+
|
|
52
|
+
The closure parses BPMN and generic XML but carries **no DMN semantic parser**,
|
|
53
|
+
so DMN reference checks are structural only (XML namespace + `<decision>` count +
|
|
54
|
+
DRD-DI presence), never a semantic or rendering validation.
|
|
55
|
+
|
|
56
|
+
### YAML parser (self-contained bundle — INPUT hash-recorded)
|
|
57
|
+
|
|
58
|
+
Bundled output: `assets/lib/yaml.mjs` (exports `parse`, `parseDocument`,
|
|
59
|
+
`Document`). Used to parse `package.yaml` with **duplicate-key detection**
|
|
60
|
+
(`uniqueKeys: true` → `DUPLICATE_KEY` error). Same esbuild invocation, plus a
|
|
61
|
+
`createRequire` banner so the CJS closure's `require('process')` resolves under
|
|
62
|
+
ESM.
|
|
63
|
+
|
|
64
|
+
| package | version | licence | input file | input sha256 |
|
|
65
|
+
|---|---|---|---|---|
|
|
66
|
+
| `yaml` | 2.9.0 | ISC | `yaml/dist/index.js` | `2d58984e0ae80de4acbd8f009fab332f5ce77d9e1a5f138a3058a0ada6567fb9` |
|
|
67
|
+
|
|
68
|
+
## Licences
|
|
69
|
+
|
|
70
|
+
- **bpmn.io License** (`bpmn-js`, `dmn-js`): reproduced verbatim in
|
|
71
|
+
`assets/LICENSE.bpmn-io.txt`. Grants free use; requires the bpmn.io watermark
|
|
72
|
+
linking to https://bpmn.io to stay unmodified and fully visible, not visually
|
|
73
|
+
overlapped.
|
|
74
|
+
- **MIT** (`bpmn-auto-layout`, `bpmn-moddle`, `moddle`, `moddle-xml`, `min-dash`,
|
|
75
|
+
`saxen`).
|
|
76
|
+
- **ISC** (`yaml`).
|
|
77
|
+
- **Apache 2.0** — OpenForms schema contract, attributed when a form renders
|
|
78
|
+
(`assets/openforms/`, populated once `add-openforms-mui-skill` ships its
|
|
79
|
+
standalone IIFE build).
|
|
80
|
+
|
|
81
|
+
## Total payload
|
|
82
|
+
|
|
83
|
+
Approximately **1.4 MB** resident in `assets/`. The bundles exist **once** on
|
|
84
|
+
disk; generated packages symlink the shared asset root into their render root
|
|
85
|
+
(viewer spec "Single-origin serving"), so no bundle is duplicated per package.
|
|
86
|
+
|
|
87
|
+
## No version ranges
|
|
88
|
+
|
|
89
|
+
Every version above is exact. There is no `^`, `~`, `*` or range specifier in
|
|
90
|
+
this manifest or in `scripts/vendor.mjs` `PINS`.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
|
|
2
|
+
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
|
3
|
+
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
|
4
|
+
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
|
5
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
|
6
|
+
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
|
7
|
+
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
|
8
|
+
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
|
9
|
+
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
|
10
|
+
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
|
11
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
|
12
|
+
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
|
13
|
+
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
|
14
|
+
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
|
15
|
+
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
|
16
|
+
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
|
17
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
|
18
|
+
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
|
19
|
+
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
|
20
|
+
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
|
21
|
+
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
|
22
|
+
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
|
23
|
+
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
|
24
|
+
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
|
25
|
+
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
|
26
|
+
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
|
27
|
+
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
|
28
|
+
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
|
29
|
+
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
|
30
|
+
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
|
31
|
+
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
|
32
|
+
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
|
33
|
+
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
|
34
|
+
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
|
35
|
+
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
|
36
|
+
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
|
37
|
+
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
|
38
|
+
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
|
39
|
+
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
|
40
|
+
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
|
41
|
+
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
|
42
|
+
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
|
43
|
+
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
|
44
|
+
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
|
45
|
+
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
|
46
|
+
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
|
47
|
+
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
|
48
|
+
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
|
49
|
+
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
|
50
|
+
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
|
51
|
+
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
|
52
|
+
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
|
53
|
+
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
|
54
|
+
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
|
55
|
+
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
|
56
|
+
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
|
57
|
+
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
|
58
|
+
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
|
59
|
+
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
|
60
|
+
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
|
61
|
+
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
|
62
|
+
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
|
63
|
+
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
|
64
|
+
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
|
65
|
+
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
|
66
|
+
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
|
67
|
+
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
|
68
|
+
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
|
69
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
|
70
|
+
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
|
71
|
+
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
|
72
|
+
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
|
73
|
+
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
|
74
|
+
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
|
75
|
+
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
|
76
|
+
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
|
77
|
+
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
|
78
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
|
79
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
|
80
|
+
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
|
81
|
+
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
|
82
|
+
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
|
83
|
+
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
|
84
|
+
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
|
85
|
+
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
|
86
|
+
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
|
87
|
+
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
|
88
|
+
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
|
89
|
+
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
|
90
|
+
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
|
91
|
+
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
|
92
|
+
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
|
93
|
+
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
|
94
|
+
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
|
95
|
+
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
|
96
|
+
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
|
97
|
+
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
|
98
|
+
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
|
99
|
+
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
|
100
|
+
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
|
101
|
+
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
|
102
|
+
.bpmn-icon-group:before { content: '\e869'; } /* '' */
|
|
103
|
+
.bpmn-icon-text-annotation:before { content: '\e86b'; } /* '' */
|
|
104
|
+
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
|
105
|
+
.bpmn-icon-screw-wrench:before { content: '\e8db'; } /* '' */
|
|
106
|
+
.bpmn-icon-connection:before { content: '\e8dc'; } /* '' */
|
|
107
|
+
.bpmn-icon-conditional-flow:before { content: '\e8e0'; } /* '' */
|
|
108
|
+
.bpmn-icon-default-flow:before { content: '\e8e1'; } /* '' */
|