@miragon/team-topologies-renderer 0.10.1 → 0.11.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/README.md +98 -31
- package/dist/Modeler.d.ts +2 -1
- package/dist/Modeler.d.ts.map +1 -1
- package/dist/TtBaseViewer.d.ts +47 -7
- package/dist/TtBaseViewer.d.ts.map +1 -1
- package/dist/collaborative/CollaborativeTeamTopologies.d.ts +36 -0
- package/dist/collaborative/CollaborativeTeamTopologies.d.ts.map +1 -0
- package/dist/collaborative/index.d.ts +2 -0
- package/dist/collaborative/index.d.ts.map +1 -0
- package/dist/context-pad/TtContextPadProvider.d.ts +9 -1
- package/dist/context-pad/TtContextPadProvider.d.ts.map +1 -1
- package/dist/copy-paste/TtCopyPasteProps.d.ts.map +1 -1
- package/dist/draw/icons.d.ts +51 -11
- package/dist/draw/icons.d.ts.map +1 -1
- package/dist/draw/label-layout.d.ts +5 -0
- package/dist/draw/label-layout.d.ts.map +1 -1
- package/dist/draw/palette-icons.d.ts +1 -1
- package/dist/draw/palette-icons.d.ts.map +1 -1
- package/dist/draw/styles.d.ts +4 -5
- package/dist/draw/styles.d.ts.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1019 -497
- package/dist/index.js.map +1 -1
- package/dist/io/TtExporter.d.ts.map +1 -1
- package/dist/io/TtImporter.d.ts +4 -1
- package/dist/io/TtImporter.d.ts.map +1 -1
- package/dist/io/TtViewport.d.ts +19 -0
- package/dist/io/TtViewport.d.ts.map +1 -0
- package/dist/io/fontEmbedding.d.ts +18 -0
- package/dist/io/fontEmbedding.d.ts.map +1 -0
- package/dist/io/index.d.ts +4 -1
- package/dist/io/index.d.ts.map +1 -1
- package/dist/io/saveSvg.d.ts.map +1 -1
- package/dist/io/types.d.ts +3 -0
- package/dist/io/types.d.ts.map +1 -1
- package/dist/keyboard/TtKeyboard.d.ts +9 -1
- package/dist/keyboard/TtKeyboard.d.ts.map +1 -1
- package/dist/keyboard/index.d.ts +2 -1
- package/dist/keyboard/index.d.ts.map +1 -1
- package/dist/label-editing/TtLabelEditing.d.ts +33 -2
- package/dist/label-editing/TtLabelEditing.d.ts.map +1 -1
- package/dist/model/TtElementFactory.d.ts +2 -0
- package/dist/model/TtElementFactory.d.ts.map +1 -1
- package/dist/model/di-types.d.ts +11 -5
- package/dist/model/di-types.d.ts.map +1 -1
- package/dist/modeling/TtModeling.d.ts +2 -0
- package/dist/modeling/TtModeling.d.ts.map +1 -1
- package/dist/modeling/cmd/UpdateTitleHandler.d.ts +16 -0
- package/dist/modeling/cmd/UpdateTitleHandler.d.ts.map +1 -0
- package/dist/palette/TtPaletteProvider.d.ts +28 -1
- package/dist/palette/TtPaletteProvider.d.ts.map +1 -1
- package/dist/read-only/TtReadOnly.d.ts +14 -0
- package/dist/read-only/TtReadOnly.d.ts.map +1 -0
- package/dist/read-only/index.d.ts +5 -0
- package/dist/read-only/index.d.ts.map +1 -0
- package/dist/team-topologies.css +1 -1
- package/dist/theme/palette.d.ts +29 -9
- package/dist/theme/palette.d.ts.map +1 -1
- package/package.json +10 -9
package/dist/theme/palette.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Values mirror the Miragon corporate identity: the `miragon-brand:modeler-tool-design` skill in
|
|
5
5
|
* `Miragon/corporate-identity`, whose vendored `cd-tokens.generated.css` (next to this file) defines
|
|
6
6
|
* the `--cd-*` custom properties, generated from `brand/tokens.json`. Re-copy that CSS from the skill
|
|
7
|
-
* to update; never fork the hex values by hand. `
|
|
8
|
-
* from the vendored CSS.
|
|
7
|
+
* to update; never fork the hex values by hand. `packages/renderer/src/theme/theme.sync.test.ts`
|
|
8
|
+
* fails if this mirror drifts from the vendored CSS.
|
|
9
9
|
*
|
|
10
10
|
* Pure data — no DOM, no imports — so it stays inside the P1 DOM-free discipline and can be consumed
|
|
11
11
|
* by the SVG-drawing constants in `draw/styles.ts`.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* interaction colours are the official notation and live in `schema-model/notation.ts` — they are NOT
|
|
16
16
|
* part of this brand ramp.
|
|
17
17
|
*/
|
|
18
|
-
/** Raw Miragon brand ramp + functional layer — exact `--cd-*` values. */
|
|
18
|
+
/** Raw Miragon brand ramp + UI neutrals + functional layer — exact `--cd-*` values. */
|
|
19
19
|
export declare const MIRAGON: {
|
|
20
20
|
/** Primary: surfaces, buttons, links, selection, backgrounds. */
|
|
21
21
|
readonly blau: "#335DE5";
|
|
@@ -30,18 +30,38 @@ export declare const MIRAGON: {
|
|
|
30
30
|
/** Text on light; not pure black. */
|
|
31
31
|
readonly schwarz: "#1D1D1D";
|
|
32
32
|
readonly weiss: "#FFFFFF";
|
|
33
|
-
/**
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
33
|
+
/** Dividers and decorative borders; no contrast requirement. */
|
|
34
|
+
readonly linie: "#E6E2E2";
|
|
35
|
+
/** Non-text elements that need ≥ 3:1 (input borders, structural strokes and connectors). */
|
|
36
|
+
readonly kontur: "#8F8A8A";
|
|
37
|
+
/** Secondary text, ≥ 4.5:1 on `weiss` and on `grau`. */
|
|
38
|
+
readonly textLeise: "#6B6666";
|
|
39
|
+
/**
|
|
40
|
+
* Functional / status layer. `success` and `warning` are fills, borders, icons and dots only —
|
|
41
|
+
* never text or thin strokes on light (1.67:1 / 1.83:1). `danger` and `info` also carry text
|
|
42
|
+
* (AA on white). Each `-soft` is an opaque tint for notice boxes and badges.
|
|
43
|
+
*/
|
|
44
|
+
readonly success: "#00E676";
|
|
45
|
+
readonly successSoft: "#DAFBEB";
|
|
46
|
+
readonly warning: "#FFB000";
|
|
47
|
+
readonly warningSoft: "#FFF1D2";
|
|
48
|
+
readonly danger: "#CD1839";
|
|
49
|
+
readonly dangerSoft: "#FBEEF0";
|
|
50
|
+
readonly info: "#335DE5";
|
|
51
|
+
readonly infoSoft: "#EEF1FD";
|
|
52
|
+
/** Each `-hell` is the status colour for dark surfaces (unused here — the canvas is light-only). */
|
|
53
|
+
readonly successHell: "#00E676";
|
|
54
|
+
readonly warningHell: "#FFB000";
|
|
55
|
+
readonly dangerHell: "#FB6D73";
|
|
56
|
+
readonly infoHell: "#6B8AFF";
|
|
38
57
|
/** Signature brand gradient — brand moments only. Use verbatim. */
|
|
39
58
|
readonly gradientBrand: "linear-gradient(120deg, #335DE5 30%, #00E676)";
|
|
40
59
|
};
|
|
41
60
|
/**
|
|
42
61
|
* Every `--cd-*` token this repo depends on, mapped to the value it MUST hold. The drift test parses
|
|
43
62
|
* `cd-tokens.generated.css` and asserts each entry matches, so re-copying the vendored CSS with a
|
|
44
|
-
* changed value fails CI until this mirror (and `MIRAGON`) is updated too.
|
|
63
|
+
* changed value fails CI until this mirror (and `MIRAGON`) is updated too. `--cd-gradient-format`
|
|
64
|
+
* stays unmirrored: nothing here uses the format-tile gradient.
|
|
45
65
|
*/
|
|
46
66
|
export declare const CD_TOKENS: Record<string, string>;
|
|
47
67
|
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,uFAAuF;AACvF,eAAO,MAAM,OAAO;IAClB,iEAAiE;;IAEjE,sEAAsE;;IAEtE,4FAA4F;;IAE5F,gGAAgG;;IAEhG,kEAAkE;;IAElE,qCAAqC;;;IAGrC,gEAAgE;;IAEhE,4FAA4F;;IAE5F,wDAAwD;;IAExD;;;;OAIG;;;;;;;;;IASH,oGAAoG;;;;;IAKpG,mEAAmE;;CAE3D,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwB5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miragon/team-topologies-renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Render and edit Team Topologies diagrams in the browser, with a framework-agnostic viewer and modeler built on diagram-js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -37,22 +37,23 @@
|
|
|
37
37
|
"test:browser": "npm --prefix ../.. run test:browser"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@miragon/
|
|
40
|
+
"@miragon/modeler-api": "1.1.0",
|
|
41
|
+
"@miragon/team-topologies-schema-model": "0.11.0"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
|
-
"diagram-js": "^15.
|
|
44
|
-
"didi": "^11.0.0",
|
|
44
|
+
"diagram-js": "^15.28.0",
|
|
45
|
+
"didi": "^11.0.0 || ^12.0.0",
|
|
45
46
|
"tiny-svg": "^4.1.4",
|
|
46
47
|
"zod": "^4.6.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"diagram-js": "15.28.
|
|
50
|
-
"didi": "
|
|
50
|
+
"diagram-js": "15.28.1",
|
|
51
|
+
"didi": "12.0.0",
|
|
51
52
|
"tiny-svg": "4.1.4",
|
|
52
53
|
"typescript": "6.0.3",
|
|
53
|
-
"vite": "8.3.
|
|
54
|
+
"vite": "8.3.4",
|
|
54
55
|
"vite-plugin-dts": "5.1.2",
|
|
55
|
-
"vitest": "5.0.
|
|
56
|
-
"zod": "4.6.
|
|
56
|
+
"vitest": "5.0.4",
|
|
57
|
+
"zod": "4.6.7"
|
|
57
58
|
}
|
|
58
59
|
}
|