@miragon/team-topologies-renderer 0.11.1 → 0.12.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 CHANGED
@@ -51,8 +51,13 @@ them together with the zoom panel.
51
51
 
52
52
  **Palette from the keyboard.** A host chrome that makes the palette a toolbar (the modeler shell)
53
53
  triggers an entry with a click whose `detail` is 0. On a creating entry that click places the
54
- element in the centre of the free part of the canvas (`freeRectCenter`, else the centre of the
55
- view), 24px further diagonally while that spot is taken, selects it and opens its label editor.
54
+ element in the centre of the free part of the canvas (`freeArea`, else the centre of the view), 24px
55
+ further diagonally while that spot is taken, selects it and opens its label editor.
56
+
57
+ **Label editor and the view.** A change of the view (a host's `setViewState` or fit, a wheel zoom or
58
+ scroll) never commits an open label editor: it stays open with what was typed and moves with its
59
+ element. Enter, a click or drag on the canvas and leaving the field commit; Escape discards (law L5
60
+ of `@miragon/modeler-api` 1.2).
56
61
 
57
62
  **Read-only lock.** `modeler.get("ttReadOnly").setReadOnly(true)` locks the canvas while the
58
63
  document behind it cannot be saved from it (an invalid file in an IDE host): no move, resize,
@@ -87,7 +92,9 @@ modeler.redo();
87
92
  > **The CSS is required.** Import `@miragon/team-topologies-renderer/assets/team-topologies.css`
88
93
  > (it also pulls in the Miragon design tokens, `diagram-js`'s own stylesheet and `cd-canvas.css`, in
89
94
  > that order) — without it the palette, context pad and label editor are unstyled. Every colour is a
90
- > `--cd-ui-*` role of design system 1.13.0, vendored unchanged under `src/theme/`.
95
+ > `--cd-ui-*` role of design system 1.13.0, vendored unchanged under `src/theme/`. The tokens sit in
96
+ > the cascade layer `team-topologies-tokens`, so a host page's own `--cd-*` tokens (unlayered) win
97
+ > over this copy.
91
98
 
92
99
  > **Typeface.** The canvas labels are drawn in the Miragon typeface **Geist**. The library does not
93
100
  > ship the font; self-host it in the host app (e.g. `@fontsource-variable/geist`) so the on-screen
@@ -107,7 +114,9 @@ new Modeler({
107
114
  height?: number | string, // canvas height (default "100%", or "600px" with no container)
108
115
  additionalModules?: ModuleDeclaration[], // extra diagram-js modules
109
116
  undoRedoKeys?: boolean, // bind Cmd/Ctrl+Z, Shift+Z, Y (default true; false: the host owns the history)
110
- freeRectCenter?: () => Point | undefined, // where keyboard creation places an element (diagram coordinates)
117
+ freeArea?: { insets: () => FreeAreaInsets } | { center: () => Point | undefined },
118
+ // the canvas part no chrome covers; keyboard creation lands in its centre
119
+ freeRectCenter?: () => Point | undefined, // deprecated since 0.12: freeArea: { center }
111
120
  });
112
121
  ```
113
122
 
@@ -130,9 +139,20 @@ await modeler.importText(text); // silent, fitted; rejects without a trace for a
130
139
  modeler.onContentChanged(() => save(modeler.exportText()));
131
140
  ```
132
141
 
133
- Options: `additionalModules`, `undoRedoKeys`, `freeRectCenter` and `fitOnImport` (default true: a
134
- fit of at most 100 % that keeps the palette's strip free; a host whose chrome fits the diagram
135
- itself passes false). `modeler.diagram` is the wrapped `Modeler`.
142
+ Options: the contract's `CollaborativeModelerOptions` (1.2) and `additionalModules`:
143
+
144
+ - `freeArea`: the part of the canvas no host chrome covers, `{ insets: () => shell.fitInsets() }`
145
+ (px from the container's edges) or `{ center: () => viewport.freeRectCenter() }` (diagram
146
+ coordinates); keyboard creation lands in its centre. Default: the whole view.
147
+ - `fitOnImport` (default true): a fit of at most 100 % that keeps the palette's strip free after
148
+ every import; a host whose chrome fits the diagram itself passes false.
149
+ - `undoRedoKeys` (default true): false when the host owns the history (VS Code).
150
+ - `freeRectCenter`: deprecated since 0.12, the old name of `freeArea: { center }`; given both,
151
+ `freeArea` wins. It goes in a later minor release.
152
+
153
+ The viewer takes the same options and ignores `freeArea` and `undoRedoKeys`. `modeler.diagram` is
154
+ the wrapped `Modeler`. `elements.bounds(id)` (contract 1.2) returns a team's, interaction's, flow's
155
+ or annotation's box in diagram coordinates from the live canvas, `undefined` for any other id.
136
156
 
137
157
  ### Shared methods (`Viewer` / `NavigatedViewer` / `Modeler`)
138
158
 
@@ -1,4 +1,5 @@
1
1
  import { ModuleDeclaration } from 'didi';
2
+ import { FreeArea } from '@miragon/modeler-api';
2
3
  import { TtDocument } from '@miragon/team-topologies-schema-model';
3
4
  import { ImportWarning, RootBusinessObject } from './io/types.js';
4
5
  import { Point } from './palette/TtPaletteProvider.js';
@@ -16,8 +17,14 @@ export interface TtViewerOptions {
16
17
  undoRedoKeys?: boolean | undefined;
17
18
  /**
18
19
  * Where Enter or Space on a creating palette entry places the element (guide §5.5): the centre
19
- * of the part of the canvas no chrome covers, in diagram coordinates. Without it, the centre of
20
- * the visible canvas.
20
+ * of the part of the canvas no chrome covers, given as its insets in px from the container's
21
+ * edges (`{ insets }`) or as that centre in diagram coordinates (`{ center }`). Without it, the
22
+ * centre of the visible canvas.
23
+ */
24
+ freeArea?: FreeArea | undefined;
25
+ /**
26
+ * @deprecated Since 0.12, the `@miragon/modeler-api` 1.2 name is `freeArea: { center }`; given
27
+ * both, `freeArea` wins. Accepted for one more minor release.
21
28
  */
22
29
  freeRectCenter?: (() => Point | undefined) | undefined;
23
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TtBaseViewer.d.ts","sourceRoot":"","sources":["../src/TtBaseViewer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAM9C,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAK5F,OAAO,EAAW,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAErF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAQ5D,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,iBAAiB,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AE,GAAG,EAAE,MAAM,CAAA;KAAE;IAI1B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAK/B,2DAA2D;IAC3D,MAAM,IAAI,IAAI;IAId,KAAK,IAAI,IAAI;IAIb,OAAO,IAAI,IAAI;IAQf,IAAI,SAAS,IAAI,WAAW,CAE3B;CACF"}
@@ -1,4 +1,4 @@
1
- import { CollaborativeModeler, ElementsSurface } from '@miragon/modeler-api';
1
+ import { CollaborativeModeler, CollaborativeModelerOptions, ElementBounds, ElementsSurface } from '@miragon/modeler-api';
2
2
  import { TtDocument } from '@miragon/team-topologies-schema-model';
3
3
  import { ModuleDeclaration } from 'didi';
4
4
  import { Modeler } from '../Modeler.js';
@@ -6,28 +6,32 @@ import { NavigatedViewer } from '../NavigatedViewer.js';
6
6
  import { Point } from '../palette/TtPaletteProvider.js';
7
7
  /** Stable notation id in `meta.notation` of the collaborative-modeler contract. */
8
8
  export declare const TEAM_TOPOLOGIES_NOTATION = "team-topologies";
9
- export interface CollaborativeTeamTopologiesOptions {
9
+ /**
10
+ * The contract's factory options (`freeArea`, `fitOnImport`, `undoRedoKeys`; the viewer ignores
11
+ * `freeArea` and `undoRedoKeys`) plus the renderer's own.
12
+ */
13
+ export interface CollaborativeTeamTopologiesOptions extends CollaborativeModelerOptions {
10
14
  /** Appended to the renderer's own modules (e.g. a host's chrome module). */
11
15
  additionalModules?: ModuleDeclaration[] | undefined;
12
- /** See `TtViewerOptions.undoRedoKeys` (default true). */
13
- undoRedoKeys?: boolean | undefined;
14
- /** See `TtViewerOptions.freeRectCenter`. */
15
- freeRectCenter?: (() => Point | undefined) | undefined;
16
16
  /**
17
- * Fit the diagram into view after every import (default true, contract law L5). A host whose
18
- * chrome fits the diagram itself (the modeler shell's viewport) passes false.
17
+ * @deprecated Since 0.12, the contract's name is `freeArea: { center }`; given both, `freeArea`
18
+ * wins. Accepted for one more minor release.
19
19
  */
20
- fitOnImport?: boolean | undefined;
20
+ freeRectCenter?: (() => Point | undefined) | undefined;
21
+ }
22
+ /** The elements surface with the optional `bounds` of contract 1.2, which this renderer has. */
23
+ export interface TtElementsSurface extends ElementsSurface {
24
+ bounds(id: string): ElementBounds | undefined;
21
25
  }
22
26
  /** The contract surface plus the wrapped diagram for host-specific wiring. */
23
27
  export interface CollaborativeTeamTopologiesModeler extends CollaborativeModeler {
24
- readonly elements: ElementsSurface;
28
+ readonly elements: TtElementsSurface;
25
29
  readonly diagram: Modeler | NavigatedViewer;
26
30
  }
27
31
  /** The editing mount (`meta.editable: true`) of the collaborative-modeler contract. */
28
32
  export declare function createCollaborativeModeler(options?: CollaborativeTeamTopologiesOptions): CollaborativeTeamTopologiesModeler;
29
33
  /** The read-only mount (`meta.editable: false`): imports, exports and reveals, never edits. */
30
- export declare function createCollaborativeViewer(options?: Pick<CollaborativeTeamTopologiesOptions, "additionalModules" | "fitOnImport">): CollaborativeTeamTopologiesModeler;
34
+ export declare function createCollaborativeViewer(options?: CollaborativeTeamTopologiesOptions): CollaborativeTeamTopologiesModeler;
31
35
  /**
32
36
  * The document text as the contract reads it: blank text is a new, empty diagram (a file just
33
37
  * created in an editor), anything else must be a valid document.
@@ -1 +1 @@
1
- {"version":3,"file":"CollaborativeTeamTopologies.d.ts","sourceRoot":"","sources":["../../src/collaborative/CollaborativeTeamTopologies.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAK9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAE7D,mFAAmF;A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C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAE7D,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,kCAAmC,SAAQ,2BAA2B;IACrF,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IACpD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;CACxD;AAED,gGAAgG;AAChG,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;CAC/C;AAED,8EAA8E;AAC9E,MAAM,WAAW,kCAAmC,SAAQ,oBAAoB;IAC9E,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;CAC7C;AASD,uFAAuF;AACvF,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,kCAAuC,GAC/C,kCAAkC,CAWpC;AAED,+FAA+F;AAC/F,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,kCAAuC,GAC/C,kCAAkC,CAMpC;AAMD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAI1D"}
@@ -1,2 +1,2 @@
1
- export { TEAM_TOPOLOGIES_NOTATION, createCollaborativeModeler, createCollaborativeViewer, parseDocumentText, type CollaborativeTeamTopologiesModeler, type CollaborativeTeamTopologiesOptions, } from './CollaborativeTeamTopologies.js';
1
+ export { TEAM_TOPOLOGIES_NOTATION, createCollaborativeModeler, createCollaborativeViewer, parseDocumentText, type CollaborativeTeamTopologiesModeler, type CollaborativeTeamTopologiesOptions, type TtElementsSurface, } from './CollaborativeTeamTopologies.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collaborative/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,GACxC,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collaborative/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { Modeler } from './Modeler.js';
4
4
  export { TtBaseViewer } from './TtBaseViewer.js';
5
5
  export type { TtViewerOptions, ImportOptions, EventCallback } from './TtBaseViewer.js';
6
6
  export { TEAM_TOPOLOGIES_NOTATION, createCollaborativeModeler, createCollaborativeViewer, parseDocumentText, } from './collaborative/index.js';
7
- export type { CollaborativeTeamTopologiesModeler, CollaborativeTeamTopologiesOptions, } from './collaborative/index.js';
7
+ export type { CollaborativeTeamTopologiesModeler, CollaborativeTeamTopologiesOptions, TtElementsSurface, } from './collaborative/index.js';
8
8
  export { ttModelModule, TtElementFactory } from './model/index.js';
9
9
  export { ttDrawModule, TeamTopologiesRenderer } from './draw/index.js';
10
10
  export { ioModule, TtImporter, TtExporter, TtViewport, saveSVG, ROOT_ID } from './io/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,s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