Brunobkr commited on
Commit
d6e0cf0
·
verified ·
1 Parent(s): b3efa5d

Upload folder using huggingface_hub (part 44)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. tools/ui/node_modules/mermaid/dist/diagram-api/loadDiagram.d.ts +1 -0
  3. tools/ui/node_modules/mermaid/dist/diagram-api/regexes.d.ts +3 -0
  4. tools/ui/node_modules/mermaid/dist/diagram-api/types.d.ts +99 -0
  5. tools/ui/node_modules/mermaid/dist/diagram.spec.d.ts +1 -0
  6. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architecture.spec.d.ts +1 -0
  7. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDb.d.ts +48 -0
  8. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDetector.d.ts +3 -0
  9. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDiagram.d.ts +2 -0
  10. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureIcons.d.ts +2 -0
  11. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureParser.d.ts +2 -0
  12. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureRenderer.d.ts +5 -0
  13. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureStyles.d.ts +3 -0
  14. tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureTypes.d.ts +227 -0
  15. tools/ui/node_modules/mermaid/dist/diagrams/architecture/svgDraw.d.ts +8 -0
  16. tools/ui/node_modules/mermaid/dist/diagrams/architecture/svgDraw.spec.d.ts +1 -0
  17. tools/ui/node_modules/mermaid/dist/diagrams/block/blockDB.d.ts +65 -0
  18. tools/ui/node_modules/mermaid/dist/diagrams/block/blockDB.spec.d.ts +1 -0
  19. tools/ui/node_modules/mermaid/dist/diagrams/block/blockDetector.d.ts +3 -0
  20. tools/ui/node_modules/mermaid/dist/diagrams/block/blockDiagram.d.ts +2 -0
  21. tools/ui/node_modules/mermaid/dist/diagrams/block/blockRenderer.d.ts +8 -0
  22. tools/ui/node_modules/mermaid/dist/diagrams/block/blockTypes.d.ts +38 -0
  23. tools/ui/node_modules/mermaid/dist/diagrams/block/blockUtils.d.ts +1 -0
  24. tools/ui/node_modules/mermaid/dist/diagrams/block/layout.d.ts +13 -0
  25. tools/ui/node_modules/mermaid/dist/diagrams/block/layout.spec.d.ts +1 -0
  26. tools/ui/node_modules/mermaid/dist/diagrams/block/parser/block.spec.d.ts +1 -0
  27. tools/ui/node_modules/mermaid/dist/diagrams/block/renderHelpers.d.ts +10 -0
  28. tools/ui/node_modules/mermaid/dist/diagrams/block/styles.d.ts +18 -0
  29. tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Db.d.ts +127 -0
  30. tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Detector.d.ts +3 -0
  31. tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Diagram.d.ts +2 -0
  32. tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Renderer.d.ts +12 -0
  33. tools/ui/node_modules/mermaid/dist/diagrams/c4/styles.d.ts +2 -0
  34. tools/ui/node_modules/mermaid/dist/diagrams/c4/svgDraw.d.ts +34 -0
  35. tools/ui/node_modules/mermaid/dist/diagrams/class/classDb.d.ts +163 -0
  36. tools/ui/node_modules/mermaid/dist/diagrams/class/classDetector-V2.d.ts +3 -0
  37. tools/ui/node_modules/mermaid/dist/diagrams/class/classDetector.d.ts +3 -0
  38. tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram-v2.d.ts +2 -0
  39. tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram.d.ts +2 -0
  40. tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram.spec.d.ts +1 -0
  41. tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer-v2.d.ts +57 -0
  42. tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer-v3-unified.d.ts +18 -0
  43. tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer.d.ts +5 -0
  44. tools/ui/node_modules/mermaid/dist/diagrams/class/classTypes.d.ts +104 -0
  45. tools/ui/node_modules/mermaid/dist/diagrams/class/classTypes.spec.d.ts +1 -0
  46. tools/ui/node_modules/mermaid/dist/diagrams/class/shapeUtil.d.ts +6 -0
  47. tools/ui/node_modules/mermaid/dist/diagrams/class/styles.d.ts +2 -0
  48. tools/ui/node_modules/mermaid/dist/diagrams/class/svgDraw.d.ts +25 -0
  49. tools/ui/node_modules/mermaid/dist/diagrams/common/common.d.ts +112 -0
  50. tools/ui/node_modules/mermaid/dist/diagrams/common/common.spec.d.ts +1 -0
.gitattributes CHANGED
@@ -105,3 +105,5 @@ tools/ui/node_modules/@tailwindcss/oxide-linux-x64-gnu/tailwindcss-oxide.linux-x
105
  tools/ui/node_modules/@tailwindcss/oxide-linux-x64-musl/tailwindcss-oxide.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
106
  tools/ui/node_modules/lightningcss-linux-x64-gnu/lightningcss.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text
107
  tools/ui/node_modules/lightningcss-linux-x64-musl/lightningcss.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
 
 
 
105
  tools/ui/node_modules/@tailwindcss/oxide-linux-x64-musl/tailwindcss-oxide.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
106
  tools/ui/node_modules/lightningcss-linux-x64-gnu/lightningcss.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text
107
  tools/ui/node_modules/lightningcss-linux-x64-musl/lightningcss.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
108
+ tools/ui/node_modules/mermaid/dist/mermaid.js.map filter=lfs diff=lfs merge=lfs -text
109
+ tools/ui/node_modules/mermaid/dist/mermaid.min.js.map filter=lfs diff=lfs merge=lfs -text
tools/ui/node_modules/mermaid/dist/diagram-api/loadDiagram.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare const loadRegisteredDiagrams: () => Promise<void>;
tools/ui/node_modules/mermaid/dist/diagram-api/regexes.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ export declare const frontMatterRegex: RegExp;
2
+ export declare const directiveRegex: RegExp;
3
+ export declare const anyCommentRegex: RegExp;
tools/ui/node_modules/mermaid/dist/diagram-api/types.d.ts ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type * as d3 from 'd3';
2
+ import type { SetOptional, SetRequired } from 'type-fest';
3
+ import type { Diagram } from '../Diagram.js';
4
+ import type { BaseDiagramConfig, MermaidConfig } from '../config.type.js';
5
+ import type { DiagramOrientation } from '../diagrams/git/gitGraphTypes.js';
6
+ export interface DiagramMetadata {
7
+ title?: string;
8
+ config?: MermaidConfig;
9
+ }
10
+ export interface InjectUtils {
11
+ _log: any;
12
+ _setLogLevel: any;
13
+ _getConfig: any;
14
+ _sanitizeText: any;
15
+ _setupGraphViewbox: any;
16
+ _commonDb: any;
17
+ /** @deprecated as directives will be pre-processed since https://github.com/mermaid-js/mermaid/pull/4759 */
18
+ _parseDirective: any;
19
+ }
20
+ /**
21
+ * Generic Diagram DB that may apply to any diagram type.
22
+ */
23
+ export interface DiagramDB {
24
+ getConfig?: () => BaseDiagramConfig | undefined;
25
+ clear?: () => void;
26
+ setDiagramTitle?: (title: string) => void;
27
+ getDiagramTitle?: () => string;
28
+ setAccTitle?: (title: string) => void;
29
+ getAccTitle?: () => string;
30
+ setAccDescription?: (description: string) => void;
31
+ getAccDescription?: () => string;
32
+ getDirection?: () => string | undefined;
33
+ setDirection?: (dir: DiagramOrientation) => void;
34
+ setDisplayMode?: (title: string) => void;
35
+ setDiagramId?: (svgElementId: string) => void;
36
+ bindFunctions?: (element: Element) => void;
37
+ }
38
+ /**
39
+ * DiagramDB with fields that is required for all new diagrams.
40
+ */
41
+ export type DiagramDBBase<T extends BaseDiagramConfig> = {
42
+ getConfig: () => Required<T>;
43
+ } & SetRequired<DiagramDB, 'clear' | 'getAccTitle' | 'getDiagramTitle' | 'getAccDescription' | 'setAccDescription' | 'setAccTitle' | 'setDiagramTitle'>;
44
+ export interface DiagramStyleClassDef {
45
+ id: string;
46
+ /**
47
+ * The styles to apply to the class for HTML rendering.
48
+ * These are expected to be CSS property declarations without a trailing semicolon, e.g. `color: red`.
49
+ */
50
+ styles?: string[];
51
+ /**
52
+ * The styles to apply to `<tspan>` elements with the given class.
53
+ */
54
+ textStyles?: string[];
55
+ }
56
+ export interface DiagramRenderer {
57
+ draw: DrawDefinition;
58
+ getClasses?: (text: string, diagram: Pick<DiagramDefinition, 'db'>) => Map<string, DiagramStyleClassDef>;
59
+ }
60
+ export interface DiagramDefinition {
61
+ db: DiagramDB;
62
+ renderer: DiagramRenderer;
63
+ parser: ParserDefinition;
64
+ styles?: any;
65
+ init?: (config: MermaidConfig) => void;
66
+ injectUtils?: (_log: InjectUtils['_log'], _setLogLevel: InjectUtils['_setLogLevel'], _getConfig: InjectUtils['_getConfig'], _sanitizeText: InjectUtils['_sanitizeText'], _setupGraphViewbox: InjectUtils['_setupGraphViewbox'], _commonDb: InjectUtils['_commonDb'],
67
+ /** @deprecated as directives will be pre-processed since https://github.com/mermaid-js/mermaid/pull/4759 */
68
+ _parseDirective: InjectUtils['_parseDirective']) => void;
69
+ }
70
+ export interface ExternalDiagramDefinition {
71
+ id: string;
72
+ detector: DiagramDetector;
73
+ loader: DiagramLoader;
74
+ }
75
+ export type DetectorRecord = SetOptional<Omit<ExternalDiagramDefinition, 'id'>, 'loader'>;
76
+ export type DiagramDetector = (text: string, config?: MermaidConfig) => boolean;
77
+ export type DiagramLoader = () => Promise<{
78
+ id: string;
79
+ diagram: DiagramDefinition;
80
+ }>;
81
+ /**
82
+ * Type for function draws diagram in the tag with id: id based on the graph definition in text.
83
+ *
84
+ * @param text - The text of the diagram.
85
+ * @param id - The id of the diagram which will be used as a DOM element id.
86
+ * @param version - MermaidJS version from package.json.
87
+ * @param diagramObject - A standard diagram containing the DB and the text and type etc of the diagram.
88
+ */
89
+ export type DrawDefinition = (text: string, id: string, version: string, diagramObject: Diagram) => void | Promise<void>;
90
+ export interface ParserDefinition {
91
+ parse: (text: string) => void | Promise<void>;
92
+ parser?: {
93
+ yy: DiagramDB;
94
+ };
95
+ }
96
+ export type HTML = d3.Selection<HTMLIFrameElement, unknown, Element | null, unknown>;
97
+ export type SVG = d3.Selection<SVGSVGElement, unknown, Element | null, unknown>;
98
+ export type SVGGroup = d3.Selection<SVGGElement, unknown, Element | null, unknown>;
99
+ export type DiagramStylesProvider = (options?: any, svgId?: string) => string;
tools/ui/node_modules/mermaid/dist/diagram.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architecture.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDb.d.ts ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { ArchitectureDiagramConfig } from '../../config.type.js';
2
+ import type { DiagramDB } from '../../diagram-api/types.js';
3
+ import type { D3Element } from '../../types.js';
4
+ import type { ArchitectureEdge, ArchitectureGroup, ArchitectureJunction, ArchitectureNode, ArchitectureService } from './architectureTypes.js';
5
+ export declare class ArchitectureDB implements DiagramDB {
6
+ private nodes;
7
+ private groups;
8
+ private edges;
9
+ private registeredIds;
10
+ private dataStructures?;
11
+ private elements;
12
+ private diagramId;
13
+ constructor();
14
+ setDiagramId(id: string): void;
15
+ getDiagramId(): string;
16
+ clear(): void;
17
+ addService({ id, icon, in: parent, title, iconText, }: Omit<ArchitectureService, 'edges'>): void;
18
+ getServices(): ArchitectureService[];
19
+ addJunction({ id, in: parent }: Omit<ArchitectureJunction, 'edges'>): void;
20
+ getJunctions(): ArchitectureJunction[];
21
+ getNodes(): ArchitectureNode[];
22
+ getNode(id: string): ArchitectureNode | null;
23
+ addGroup({ id, icon, in: parent, title }: ArchitectureGroup): void;
24
+ getGroups(): ArchitectureGroup[];
25
+ addEdge({ lhsId, rhsId, lhsDir, rhsDir, lhsInto, rhsInto, lhsGroup, rhsGroup, title, }: ArchitectureEdge): void;
26
+ getEdges(): ArchitectureEdge[];
27
+ /**
28
+ * Returns the current diagram's adjacency list, spatial map, & group alignments.
29
+ * If they have not been created, run the algorithms to generate them.
30
+ * @returns
31
+ */
32
+ getDataStructures(): import("./architectureTypes.js").ArchitectureDataStructures;
33
+ setElementForId(id: string, element: D3Element): void;
34
+ getElementById(id: string): D3Element;
35
+ getConfig(): Required<ArchitectureDiagramConfig>;
36
+ getConfigField<T extends keyof ArchitectureDiagramConfig>(field: T): Required<ArchitectureDiagramConfig>[T];
37
+ setAccTitle: (txt: string) => void;
38
+ getAccTitle: () => string;
39
+ setDiagramTitle: (txt: string) => void;
40
+ getDiagramTitle: () => string;
41
+ getAccDescription: () => string;
42
+ setAccDescription: (txt: string) => void;
43
+ }
44
+ /**
45
+ * Typed wrapper for resolving an architecture diagram's config fields. Returns the default value if undefined
46
+ * @param field - the config field to access
47
+ * @returns
48
+ */
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDetector.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
2
+ declare const architecture: ExternalDiagramDefinition;
3
+ export default architecture;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureDiagram.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { DiagramDefinition } from '../../diagram-api/types.js';
2
+ export declare const diagram: DiagramDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureIcons.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { IconifyJSON } from '@iconify/types';
2
+ export declare const architectureIcons: IconifyJSON;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureParser.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { ParserDefinition } from '../../diagram-api/types.js';
2
+ export declare const parser: ParserDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureRenderer.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import type { DrawDefinition } from '../../diagram-api/types.js';
2
+ export declare const draw: DrawDefinition;
3
+ export declare const renderer: {
4
+ draw: DrawDefinition;
5
+ };
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureStyles.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { DiagramStylesProvider } from '../../diagram-api/types.js';
2
+ declare const getStyles: DiagramStylesProvider;
3
+ export default getStyles;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/architectureTypes.d.ts ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { DiagramDBBase } from '../../diagram-api/types.js';
2
+ import type { ArchitectureDiagramConfig } from '../../config.type.js';
3
+ import type { D3Element } from '../../types.js';
4
+ import type cytoscape from 'cytoscape';
5
+ export type ArchitectureAlignment = 'vertical' | 'horizontal' | 'bend';
6
+ export type ArchitectureDirection = 'L' | 'R' | 'T' | 'B';
7
+ export type ArchitectureDirectionX = Extract<ArchitectureDirection, 'L' | 'R'>;
8
+ export type ArchitectureDirectionY = Extract<ArchitectureDirection, 'T' | 'B'>;
9
+ /**
10
+ * Contains LL, RR, TT, BB which are impossible connections
11
+ */
12
+ export type InvalidArchitectureDirectionPair = `${ArchitectureDirection}${ArchitectureDirection}`;
13
+ export type ArchitectureDirectionPair = Exclude<InvalidArchitectureDirectionPair, 'LL' | 'RR' | 'TT' | 'BB'>;
14
+ export type ArchitectureDirectionPairXY = Exclude<InvalidArchitectureDirectionPair, 'LL' | 'RR' | 'TT' | 'BB' | 'LR' | 'RL' | 'TB' | 'BT'>;
15
+ export declare const ArchitectureDirectionName: {
16
+ readonly L: "left";
17
+ readonly R: "right";
18
+ readonly T: "top";
19
+ readonly B: "bottom";
20
+ };
21
+ export declare const ArchitectureDirectionArrow: {
22
+ readonly L: (scale: number) => string;
23
+ readonly R: (scale: number) => string;
24
+ readonly T: (scale: number) => string;
25
+ readonly B: (scale: number) => string;
26
+ };
27
+ export declare const ArchitectureDirectionArrowShift: {
28
+ readonly L: (orig: number, arrowSize: number) => number;
29
+ readonly R: (orig: number, _arrowSize: number) => number;
30
+ readonly T: (orig: number, arrowSize: number) => number;
31
+ readonly B: (orig: number, _arrowSize: number) => number;
32
+ };
33
+ export declare const getOppositeArchitectureDirection: (x: ArchitectureDirection) => ArchitectureDirection;
34
+ export declare const isArchitectureDirection: (x: unknown) => x is ArchitectureDirection;
35
+ export declare const isArchitectureDirectionX: (x: ArchitectureDirection) => x is ArchitectureDirectionX;
36
+ export declare const isArchitectureDirectionY: (x: ArchitectureDirection) => x is ArchitectureDirectionY;
37
+ export declare const isArchitectureDirectionXY: (a: ArchitectureDirection, b: ArchitectureDirection) => boolean;
38
+ export declare const isArchitecturePairXY: (pair: ArchitectureDirectionPair) => pair is ArchitectureDirectionPairXY;
39
+ /**
40
+ * Verifies that the architecture direction pair does not contain an invalid match (LL, RR, TT, BB)
41
+ * @param x - architecture direction pair which could potentially be invalid
42
+ * @returns true if the pair is not LL, RR, TT, or BB
43
+ */
44
+ export declare const isValidArchitectureDirectionPair: (x: InvalidArchitectureDirectionPair) => x is ArchitectureDirectionPair;
45
+ export type ArchitectureDirectionPairMap = Partial<Record<ArchitectureDirectionPair, string>>;
46
+ /**
47
+ * Creates a pair of the directions of each side of an edge. This function should be used instead of manually creating it to ensure that the source is always the first character.
48
+ *
49
+ * Note: Undefined is returned when sourceDir and targetDir are the same. In theory this should never happen since the diagram parser throws an error if a user defines it as such.
50
+ * @param sourceDir - source direction
51
+ * @param targetDir - target direction
52
+ * @returns
53
+ */
54
+ export declare const getArchitectureDirectionPair: (sourceDir: ArchitectureDirection, targetDir: ArchitectureDirection) => ArchitectureDirectionPair | undefined;
55
+ /**
56
+ * Given an x,y position for an arrow and the direction of the edge it belongs to, return a factor for slightly shifting the edge
57
+ * @param param0 - [x, y] coordinate pair
58
+ * @param pair - architecture direction pair
59
+ * @returns a new [x, y] coordinate pair
60
+ */
61
+ export declare const shiftPositionByArchitectureDirectionPair: ([x, y]: number[], pair: ArchitectureDirectionPair) => number[];
62
+ /**
63
+ * Given the directional pair of an XY edge, get the scale factors necessary to shift the coordinates inwards towards the edge
64
+ * @param pair - XY pair of an edge
65
+ * @returns - number[] containing [+/- 1, +/- 1]
66
+ */
67
+ export declare const getArchitectureDirectionXYFactors: (pair: ArchitectureDirectionPairXY) => number[];
68
+ export declare const getArchitectureDirectionAlignment: (a: ArchitectureDirection, b: ArchitectureDirection) => ArchitectureAlignment;
69
+ export interface ArchitectureStyleOptions {
70
+ archEdgeColor: string;
71
+ archEdgeArrowColor: string;
72
+ archEdgeWidth: string;
73
+ archGroupBorderColor: string;
74
+ archGroupBorderWidth: string;
75
+ }
76
+ export interface ArchitectureService {
77
+ id: string;
78
+ type: 'service';
79
+ edges: ArchitectureEdge[];
80
+ icon?: string;
81
+ iconText?: string;
82
+ title?: string;
83
+ in?: string;
84
+ width?: number;
85
+ height?: number;
86
+ }
87
+ export interface ArchitectureJunction {
88
+ id: string;
89
+ type: 'junction';
90
+ edges: ArchitectureEdge[];
91
+ in?: string;
92
+ width?: number;
93
+ height?: number;
94
+ }
95
+ export type ArchitectureNode = ArchitectureService | ArchitectureJunction;
96
+ export declare const isArchitectureService: (x: ArchitectureNode) => x is ArchitectureService;
97
+ export declare const isArchitectureJunction: (x: ArchitectureNode) => x is ArchitectureJunction;
98
+ export interface ArchitectureGroup {
99
+ id: string;
100
+ icon?: string;
101
+ title?: string;
102
+ in?: string;
103
+ }
104
+ export interface ArchitectureEdge<DT = ArchitectureDirection> {
105
+ lhsId: string;
106
+ lhsDir: DT;
107
+ lhsInto?: boolean;
108
+ lhsGroup?: boolean;
109
+ rhsId: string;
110
+ rhsDir: DT;
111
+ rhsInto?: boolean;
112
+ rhsGroup?: boolean;
113
+ title?: string;
114
+ }
115
+ export interface ArchitectureDB extends DiagramDBBase<ArchitectureDiagramConfig> {
116
+ clear: () => void;
117
+ addService: (service: Omit<ArchitectureService, 'edges'>) => void;
118
+ getServices: () => ArchitectureService[];
119
+ addJunction: (service: Omit<ArchitectureJunction, 'edges'>) => void;
120
+ getJunctions: () => ArchitectureJunction[];
121
+ getNodes: () => ArchitectureNode[];
122
+ getNode: (id: string) => ArchitectureNode | null;
123
+ addGroup: (group: ArchitectureGroup) => void;
124
+ getGroups: () => ArchitectureGroup[];
125
+ addEdge: (edge: ArchitectureEdge) => void;
126
+ getEdges: () => ArchitectureEdge[];
127
+ setElementForId: (id: string, element: D3Element) => void;
128
+ getElementById: (id: string) => D3Element;
129
+ getDataStructures: () => ArchitectureDataStructures;
130
+ }
131
+ export type ArchitectureAdjacencyList = Record<string, ArchitectureDirectionPairMap>;
132
+ export type ArchitectureSpatialMap = Record<string, number[]>;
133
+ /**
134
+ * Maps the direction that groups connect from.
135
+ *
136
+ * **Outer key**: ID of group A
137
+ *
138
+ * **Inner key**: ID of group B
139
+ *
140
+ * **Value**: 'vertical' or 'horizontal'
141
+ *
142
+ * Note: tmp[groupA][groupB] == tmp[groupB][groupA]
143
+ */
144
+ export type ArchitectureGroupAlignments = Record<string, Record<string, Exclude<ArchitectureAlignment, 'bend'>>>;
145
+ export interface ArchitectureDataStructures {
146
+ adjList: ArchitectureAdjacencyList;
147
+ spatialMaps: ArchitectureSpatialMap[];
148
+ groupAlignments: ArchitectureGroupAlignments;
149
+ }
150
+ export interface ArchitectureState extends Record<string, unknown> {
151
+ nodes: Record<string, ArchitectureNode>;
152
+ groups: Record<string, ArchitectureGroup>;
153
+ edges: ArchitectureEdge[];
154
+ registeredIds: Record<string, 'node' | 'group'>;
155
+ dataStructures?: ArchitectureDataStructures;
156
+ elements: Record<string, D3Element>;
157
+ config: ArchitectureDiagramConfig;
158
+ }
159
+ export interface EdgeSingularData {
160
+ id: string;
161
+ label?: string;
162
+ source: string;
163
+ sourceDir: ArchitectureDirection;
164
+ sourceArrow?: boolean;
165
+ sourceGroup?: boolean;
166
+ target: string;
167
+ targetDir: ArchitectureDirection;
168
+ targetArrow?: boolean;
169
+ targetGroup?: boolean;
170
+ [key: string]: any;
171
+ }
172
+ export declare const edgeData: (edge: cytoscape.EdgeSingular) => EdgeSingularData;
173
+ export interface EdgeSingular extends cytoscape.EdgeSingular {
174
+ _private: {
175
+ bodyBounds: unknown;
176
+ rscratch: {
177
+ startX: number;
178
+ startY: number;
179
+ midX: number;
180
+ midY: number;
181
+ endX: number;
182
+ endY: number;
183
+ };
184
+ };
185
+ data(): EdgeSingularData;
186
+ data<T extends keyof EdgeSingularData>(key: T): EdgeSingularData[T];
187
+ }
188
+ export type NodeSingularData = {
189
+ type: 'service';
190
+ id: string;
191
+ icon?: string;
192
+ label?: string;
193
+ parent?: string;
194
+ width: number;
195
+ height: number;
196
+ [key: string]: any;
197
+ } | {
198
+ type: 'junction';
199
+ id: string;
200
+ parent?: string;
201
+ width: number;
202
+ height: number;
203
+ [key: string]: any;
204
+ } | {
205
+ type: 'group';
206
+ id: string;
207
+ icon?: string;
208
+ label?: string;
209
+ parent?: string;
210
+ [key: string]: any;
211
+ };
212
+ export declare const nodeData: (node: cytoscape.NodeSingular) => NodeSingularData;
213
+ export interface NodeSingular extends cytoscape.NodeSingular {
214
+ _private: {
215
+ bodyBounds: {
216
+ h: number;
217
+ w: number;
218
+ x1: number;
219
+ x2: number;
220
+ y1: number;
221
+ y2: number;
222
+ };
223
+ children: cytoscape.NodeSingular[];
224
+ };
225
+ data(): NodeSingularData;
226
+ data<T extends keyof NodeSingularData>(key: T): NodeSingularData[T];
227
+ }
tools/ui/node_modules/mermaid/dist/diagrams/architecture/svgDraw.d.ts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import type cytoscape from 'cytoscape';
2
+ import type { D3Element } from '../../types.js';
3
+ import type { ArchitectureDB } from './architectureDb.js';
4
+ import { type ArchitectureJunction, type ArchitectureService } from './architectureTypes.js';
5
+ export declare const drawEdges: (edgesEl: D3Element, cy: cytoscape.Core, db: ArchitectureDB, diagramId: string) => Promise<void>;
6
+ export declare const drawGroups: (groupsEl: D3Element, cy: cytoscape.Core, db: ArchitectureDB, diagramId: string) => Promise<void>;
7
+ export declare const drawServices: (db: ArchitectureDB, elem: D3Element, services: ArchitectureService[], diagramId: string) => Promise<number>;
8
+ export declare const drawJunctions: (db: ArchitectureDB, elem: D3Element, junctions: ArchitectureJunction[], diagramId: string) => void;
tools/ui/node_modules/mermaid/dist/diagrams/architecture/svgDraw.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/blockDB.d.ts ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { DiagramDB } from '../../diagram-api/types.js';
2
+ import type { Block, ClassDef } from './blockTypes.js';
3
+ /**
4
+ * Called when the parser comes across a (style) class definition
5
+ * @example classDef my-style fill:#f96;
6
+ *
7
+ * @param id - the id of this (style) class
8
+ * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
9
+ */
10
+ export declare const addStyleClass: (id: string, styleAttributes?: string) => void;
11
+ /**
12
+ * Called when the parser comes across a style definition
13
+ * @example style my-block-id fill:#f96;
14
+ *
15
+ * @param id - the id of the block to style
16
+ * @param styles - the string with 1 or more style attributes (each separated by a comma)
17
+ */
18
+ export declare const addStyle2Node: (id: string, styles?: string) => void;
19
+ /**
20
+ * Add a CSS/style class to the block with the given id.
21
+ * If the block isn't already in the list of known blocks, add it.
22
+ * Might be called by parser when a CSS/style class should be applied to a block
23
+ *
24
+ * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
25
+ * @param cssClassName - CSS class name
26
+ */
27
+ export declare const setCssClass: (itemIds: string, cssClassName: string) => void;
28
+ export declare function typeStr2Type(typeStr: string): "stadium" | "subroutine" | "cylinder" | "circle" | "diamond" | "hexagon" | "lean_right" | "lean_left" | "trapezoid" | "inv_trapezoid" | "doublecircle" | "rect_left_inv_arrow" | "square" | "round" | "na" | "block_arrow";
29
+ export declare function edgeTypeStr2Type(typeStr: string): string;
30
+ export declare function edgeStrToEdgeData(typeStr: string): string;
31
+ export declare function edgeStrToEdgeStartData(typeStr: string): string;
32
+ export declare function edgeStrToThickness(typeStr: string): string;
33
+ export declare function edgeStrToPattern(typeStr: string): string;
34
+ export declare const generateId: () => string;
35
+ /**
36
+ * Return all of the style classes
37
+ */
38
+ export declare const getClasses: () => Map<string, ClassDef>;
39
+ declare const db: {
40
+ readonly getConfig: () => import("./blockTypes.js").BlockConfig | undefined;
41
+ readonly typeStr2Type: typeof typeStr2Type;
42
+ readonly edgeTypeStr2Type: typeof edgeTypeStr2Type;
43
+ readonly edgeStrToEdgeData: typeof edgeStrToEdgeData;
44
+ readonly edgeStrToEdgeStartData: typeof edgeStrToEdgeStartData;
45
+ readonly edgeStrToThickness: typeof edgeStrToThickness;
46
+ readonly edgeStrToPattern: typeof edgeStrToPattern;
47
+ readonly getLogger: () => Record<import("../../logger.js").LogLevel, {
48
+ (...data: any[]): void;
49
+ (message?: any, ...optionalParams: any[]): void;
50
+ }>;
51
+ readonly getBlocksFlat: () => Block[];
52
+ readonly getBlocks: () => Block[];
53
+ readonly getEdges: () => Block[];
54
+ readonly setHierarchy: (block: Block[]) => void;
55
+ readonly getBlock: (id: string) => Block | undefined;
56
+ readonly setBlock: (block: Block) => void;
57
+ readonly getColumns: (blockId: string) => number;
58
+ readonly getClasses: () => Map<string, ClassDef>;
59
+ readonly clear: () => void;
60
+ readonly generateId: () => string;
61
+ readonly setDiagramId: (id: string) => void;
62
+ readonly getDiagramId: () => string;
63
+ };
64
+ export type BlockDB = typeof db & DiagramDB;
65
+ export default db;
tools/ui/node_modules/mermaid/dist/diagrams/block/blockDB.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/blockDetector.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
2
+ declare const plugin: ExternalDiagramDefinition;
3
+ export default plugin;
tools/ui/node_modules/mermaid/dist/diagrams/block/blockDiagram.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { DiagramDefinition } from '../../diagram-api/types.js';
2
+ export declare const diagram: DiagramDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/block/blockRenderer.d.ts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import type { Diagram } from '../../Diagram.js';
2
+ export declare const getClasses: (text: any, diagObj: any) => any;
3
+ export declare const draw: (text: string, id: string, _version: string, diagObj: Diagram) => Promise<void>;
4
+ declare const _default: {
5
+ draw: (text: string, id: string, _version: string, diagObj: Diagram) => Promise<void>;
6
+ getClasses: (text: any, diagObj: any) => any;
7
+ };
8
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/block/blockTypes.d.ts ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type { BlockDiagramConfig as BlockConfig } from '../../config.type.js';
2
+ export type BlockType = 'na' | 'column-setting' | 'edge' | 'round' | 'block_arrow' | 'space' | 'square' | 'diamond' | 'hexagon' | 'odd' | 'lean_right' | 'lean_left' | 'trapezoid' | 'inv_trapezoid' | 'rect_left_inv_arrow' | 'odd_right' | 'circle' | 'ellipse' | 'stadium' | 'subroutine' | 'cylinder' | 'group' | 'doublecircle' | 'classDef' | 'applyClass' | 'applyStyles' | 'composite';
3
+ export interface Block {
4
+ start?: string;
5
+ end?: string;
6
+ arrowTypeEnd?: string;
7
+ arrowTypeStart?: string;
8
+ thickness?: string;
9
+ pattern?: string;
10
+ width?: number;
11
+ id: string;
12
+ label?: string;
13
+ intersect?: any;
14
+ parent?: Block;
15
+ type?: BlockType;
16
+ children: Block[];
17
+ size?: {
18
+ width: number;
19
+ height: number;
20
+ x: number;
21
+ y: number;
22
+ };
23
+ node?: any;
24
+ columns?: number;
25
+ classes?: string[];
26
+ directions?: string[];
27
+ css?: string;
28
+ styleClass?: string;
29
+ styles?: string[];
30
+ stylesStr?: string;
31
+ widthInColumns?: number;
32
+ }
33
+ export interface ClassDef {
34
+ id: string;
35
+ textStyles: string[];
36
+ styles: string[];
37
+ }
38
+ export type Direction = 'up' | 'down' | 'left' | 'right' | 'x' | 'y';
tools/ui/node_modules/mermaid/dist/diagrams/block/blockUtils.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare const prepareTextForParsing: (text: string) => string;
tools/ui/node_modules/mermaid/dist/diagrams/block/layout.d.ts ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { BlockDB } from './blockDB.js';
2
+ interface BlockPosition {
3
+ px: number;
4
+ py: number;
5
+ }
6
+ export declare function calculateBlockPosition(columns: number, position: number): BlockPosition;
7
+ export declare function layout(db: BlockDB): {
8
+ x: number;
9
+ y: number;
10
+ width: number;
11
+ height: number;
12
+ } | undefined;
13
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/layout.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/parser/block.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/renderHelpers.d.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { BlockDB } from './blockDB.js';
2
+ import type { Block } from './blockTypes.js';
3
+ declare function calculateBlockSize(elem: d3.Selection<SVGGElement, unknown, HTMLElement, any>, block: any, db: any): Promise<void>;
4
+ type ActionFun = typeof calculateBlockSize;
5
+ export declare function insertBlockPositioned(elem: any, block: Block, db: any): Promise<void>;
6
+ export declare function performOperations(elem: d3.Selection<SVGGElement, unknown, HTMLElement, any>, blocks: Block[], db: BlockDB, operation: ActionFun): Promise<void>;
7
+ export declare function calculateBlockSizes(elem: any, blocks: Block[], db: BlockDB): Promise<void>;
8
+ export declare function insertBlocks(elem: d3.Selection<SVGGElement, unknown, HTMLElement, any>, blocks: Block[], db: BlockDB): Promise<void>;
9
+ export declare function insertEdges(elem: any, edges: Block[], blocks: Block[], db: BlockDB, id: string): Promise<void>;
10
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/block/styles.d.ts ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /** Returns the styles given options */
2
+ export interface BlockChartStyleOptions {
3
+ arrowheadColor: string;
4
+ border2: string;
5
+ clusterBkg: string;
6
+ clusterBorder: string;
7
+ edgeLabelBackground: string;
8
+ fontFamily: string;
9
+ lineColor: string;
10
+ mainBkg: string;
11
+ nodeBorder: string;
12
+ nodeTextColor: string;
13
+ tertiaryColor: string;
14
+ textColor: string;
15
+ titleColor: string;
16
+ }
17
+ declare const getStyles: (options: BlockChartStyleOptions) => string;
18
+ export default getStyles;
tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Db.d.ts ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export function getC4Type(): any;
2
+ export function setC4Type(c4TypeParam: any): void;
3
+ export function addRel(type: any, from: any, to: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
4
+ export function addPersonOrSystem(typeC4Shape: any, alias: any, label: any, descr: any, sprite: any, tags: any, link: any): void;
5
+ export function addContainer(typeC4Shape: any, alias: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
6
+ export function addComponent(typeC4Shape: any, alias: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
7
+ export function addPersonOrSystemBoundary(alias: any, label: any, type: any, tags: any, link: any): void;
8
+ export function addContainerBoundary(alias: any, label: any, type: any, tags: any, link: any): void;
9
+ export function addDeploymentNode(nodeType: any, alias: any, label: any, type: any, descr: any, sprite: any, tags: any, link: any): void;
10
+ export function popBoundaryParseStack(): void;
11
+ export function updateElStyle(typeC4Shape: any, elementName: any, bgColor: any, fontColor: any, borderColor: any, shadowing: any, shape: any, sprite: any, techn: any, legendText: any, legendSprite: any): void;
12
+ export function updateRelStyle(typeC4Shape: any, from: any, to: any, textColor: any, lineColor: any, offsetX: any, offsetY: any): void;
13
+ export function updateLayoutConfig(typeC4Shape: any, c4ShapeInRowParam: any, c4BoundaryInRowParam: any): void;
14
+ export function getC4ShapeInRow(): number;
15
+ export function getC4BoundaryInRow(): number;
16
+ export function getCurrentBoundaryParse(): string;
17
+ export function getParentBoundaryParse(): string;
18
+ export function getC4ShapeArray(parentBoundary: any): any[];
19
+ export function getC4Shape(alias: any): any;
20
+ export function getC4ShapeKeys(parentBoundary: any): string[];
21
+ export function getBoundaries(parentBoundary: any): {
22
+ alias: string;
23
+ label: {
24
+ text: string;
25
+ };
26
+ type: {
27
+ text: string;
28
+ };
29
+ tags: null;
30
+ link: null;
31
+ parentBoundary: string;
32
+ }[];
33
+ export function getBoundarys(parentBoundary: any): {
34
+ alias: string;
35
+ label: {
36
+ text: string;
37
+ };
38
+ type: {
39
+ text: string;
40
+ };
41
+ tags: null;
42
+ link: null;
43
+ parentBoundary: string;
44
+ }[];
45
+ export function getRels(): any[];
46
+ export function getTitle(): string;
47
+ export function setWrap(wrapSetting: any): void;
48
+ export function autoWrap(): boolean;
49
+ export function clear(): void;
50
+ export namespace LINETYPE {
51
+ let SOLID: number;
52
+ let DOTTED: number;
53
+ let NOTE: number;
54
+ let SOLID_CROSS: number;
55
+ let DOTTED_CROSS: number;
56
+ let SOLID_OPEN: number;
57
+ let DOTTED_OPEN: number;
58
+ let LOOP_START: number;
59
+ let LOOP_END: number;
60
+ let ALT_START: number;
61
+ let ALT_ELSE: number;
62
+ let ALT_END: number;
63
+ let OPT_START: number;
64
+ let OPT_END: number;
65
+ let ACTIVE_START: number;
66
+ let ACTIVE_END: number;
67
+ let PAR_START: number;
68
+ let PAR_AND: number;
69
+ let PAR_END: number;
70
+ let RECT_START: number;
71
+ let RECT_END: number;
72
+ let SOLID_POINT: number;
73
+ let DOTTED_POINT: number;
74
+ }
75
+ export namespace ARROWTYPE {
76
+ let FILLED: number;
77
+ let OPEN: number;
78
+ }
79
+ export namespace PLACEMENT {
80
+ let LEFTOF: number;
81
+ let RIGHTOF: number;
82
+ let OVER: number;
83
+ }
84
+ export function setTitle(txt: any): void;
85
+ declare namespace _default {
86
+ export { addPersonOrSystem };
87
+ export { addPersonOrSystemBoundary };
88
+ export { addContainer };
89
+ export { addContainerBoundary };
90
+ export { addComponent };
91
+ export { addDeploymentNode };
92
+ export { popBoundaryParseStack };
93
+ export { addRel };
94
+ export { updateElStyle };
95
+ export { updateRelStyle };
96
+ export { updateLayoutConfig };
97
+ export { autoWrap };
98
+ export { setWrap };
99
+ export { getC4ShapeArray };
100
+ export { getC4Shape };
101
+ export { getC4ShapeKeys };
102
+ export { getBoundaries };
103
+ export { getBoundarys };
104
+ export { getCurrentBoundaryParse };
105
+ export { getParentBoundaryParse };
106
+ export { getRels };
107
+ export { getTitle };
108
+ export { getC4Type };
109
+ export { getC4ShapeInRow };
110
+ export { getC4BoundaryInRow };
111
+ export { setAccTitle };
112
+ export { getAccTitle };
113
+ export { getAccDescription };
114
+ export { setAccDescription };
115
+ export function getConfig(): import("../../config.type.js").C4DiagramConfig | undefined;
116
+ export { clear };
117
+ export { LINETYPE };
118
+ export { ARROWTYPE };
119
+ export { PLACEMENT };
120
+ export { setTitle };
121
+ export { setC4Type };
122
+ }
123
+ export default _default;
124
+ import { setAccTitle } from '../common/commonDb.js';
125
+ import { getAccTitle } from '../common/commonDb.js';
126
+ import { getAccDescription } from '../common/commonDb.js';
127
+ import { setAccDescription } from '../common/commonDb.js';
tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Detector.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
2
+ declare const plugin: ExternalDiagramDefinition;
3
+ export default plugin;
tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Diagram.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { DiagramDefinition } from '../../diagram-api/types.js';
2
+ export declare const diagram: DiagramDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/c4/c4Renderer.d.ts ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export function setConf(cnf: any): void;
2
+ export function drawBoundary(diagram: any, boundary: any, bounds: any): void;
3
+ export function drawC4ShapeArray(currentBounds: any, diagram: any, c4ShapeArray: any, c4ShapeKeys: any): void;
4
+ export function drawRels(diagram: any, rels: any, getC4ShapeObj: any, diagObj: any, diagramId: any): void;
5
+ export function draw(_text: any, id: any, _version: any, diagObj: any): void;
6
+ declare namespace _default {
7
+ export { drawC4ShapeArray as drawPersonOrSystemArray };
8
+ export { drawBoundary };
9
+ export { setConf };
10
+ export { draw };
11
+ }
12
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/c4/styles.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export default getStyles;
2
+ declare function getStyles(options: any): string;
tools/ui/node_modules/mermaid/dist/diagrams/c4/svgDraw.d.ts ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export function drawRect(elem: any, rectData: any): import("../common/commonTypes.js").D3RectElement;
2
+ export function drawImage(elem: any, width: any, height: any, x: any, y: any, link: any): void;
3
+ export function drawRels(elem: any, rels: any, conf: any, diagramId: any): void;
4
+ export function drawC4Shape(elem: any, c4Shape: any, conf: any): any;
5
+ export function insertDatabaseIcon(elem: any, id: any): void;
6
+ export function insertComputerIcon(elem: any, id: any): void;
7
+ export function insertClockIcon(elem: any, id: any): void;
8
+ export function insertArrowHead(elem: any, id: any): void;
9
+ export function insertArrowEnd(elem: any, id: any): void;
10
+ export function insertArrowFilledHead(elem: any, id: any): void;
11
+ export function insertArrowCrossHead(elem: any, id: any): void;
12
+ declare namespace _default {
13
+ export { drawRect };
14
+ export { drawBoundary };
15
+ export { drawC4Shape };
16
+ export { drawRels };
17
+ export { drawImage };
18
+ export { insertArrowHead };
19
+ export { insertArrowEnd };
20
+ export { insertArrowFilledHead };
21
+ export { insertArrowCrossHead };
22
+ export { insertDatabaseIcon };
23
+ export { insertComputerIcon };
24
+ export { insertClockIcon };
25
+ }
26
+ export default _default;
27
+ /**
28
+ * Draws a boundary in the diagram
29
+ *
30
+ * @param {any} elem - The diagram we'll draw to.
31
+ * @param {any} boundary - The boundary to draw.
32
+ * @param {any} conf - DrawText implementation discriminator object
33
+ */
34
+ declare function drawBoundary(elem: any, boundary: any, conf: any): void;
tools/ui/node_modules/mermaid/dist/diagrams/class/classDb.d.ts ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { ClassRelation, ClassNode, ClassNote, ClassNoteMap, ClassMap, NamespaceMap, NamespaceNode } from './classTypes.js';
2
+ import type { Node, Edge } from '../../rendering-util/types.js';
3
+ import type { DiagramDB } from '../../diagram-api/types.js';
4
+ export declare class ClassDB implements DiagramDB {
5
+ private relations;
6
+ private classes;
7
+ private readonly styleClasses;
8
+ private notes;
9
+ private interfaces;
10
+ private namespaces;
11
+ private namespaceCounter;
12
+ private namespaceStack;
13
+ private diagramId;
14
+ private functions;
15
+ constructor();
16
+ private splitClassNameAndType;
17
+ setClassLabel(_id: string, label: string): void;
18
+ /**
19
+ * Function called by parser when a node definition has been found.
20
+ *
21
+ * @param id - ID of the class to add
22
+ * @public
23
+ */
24
+ addClass(_id: string): void;
25
+ private addInterface;
26
+ /**
27
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
28
+ * across multiple diagrams on the same page.
29
+ */
30
+ setDiagramId(svgElementId: string): void;
31
+ /**
32
+ * Function to lookup domId from id in the graph definition.
33
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
34
+ *
35
+ * @param id - class ID to lookup
36
+ * @public
37
+ */
38
+ lookUpDomId(_id: string): string;
39
+ clear(): void;
40
+ getClass(id: string): ClassNode;
41
+ getClasses(): ClassMap;
42
+ getRelations(): ClassRelation[];
43
+ getNote(id: string | number): ClassNote;
44
+ getNotes(): ClassNoteMap;
45
+ addRelation(classRelation: ClassRelation): void;
46
+ /**
47
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
48
+ * (like 'interface' or 'service')
49
+ *
50
+ * @param className - The class name
51
+ * @param annotation - The name of the annotation without any brackets
52
+ * @public
53
+ */
54
+ addAnnotation(className: string, annotation: string): void;
55
+ /**
56
+ * Adds a member to the specified class
57
+ *
58
+ * @param className - The class name
59
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
60
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
61
+ * method Otherwise the member will be treated as a normal property
62
+ * @public
63
+ */
64
+ addMember(className: string, member: string): void;
65
+ addMembers(className: string, members: string[]): void;
66
+ addNote(text: string, className: string): string;
67
+ cleanupLabel(label: string): string;
68
+ /**
69
+ * Called by parser when assigning cssClass to a class
70
+ *
71
+ * @param ids - Comma separated list of ids
72
+ * @param className - Class to add
73
+ */
74
+ setCssClass(ids: string, className: string): void;
75
+ defineClass(ids: string[], style: string[]): void;
76
+ /**
77
+ * Called by parser when a tooltip is found, e.g. a clickable element.
78
+ *
79
+ * @param ids - Comma separated list of ids
80
+ * @param tooltip - Tooltip to add
81
+ */
82
+ setTooltip(ids: string, tooltip?: string): void;
83
+ getTooltip(id: string, namespace?: string): string | undefined;
84
+ /**
85
+ * Called by parser when a link is found. Adds the URL to the vertex data.
86
+ *
87
+ * @param ids - Comma separated list of ids
88
+ * @param linkStr - URL to create a link for
89
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
90
+ */
91
+ setLink(ids: string, linkStr: string, target: string): void;
92
+ /**
93
+ * Called by parser when a click definition is found. Registers an event handler.
94
+ *
95
+ * @param ids - Comma separated list of ids
96
+ * @param functionName - Function to be called on click
97
+ * @param functionArgs - Function args the function should be called with
98
+ */
99
+ setClickEvent(ids: string, functionName: string, functionArgs: string): void;
100
+ private setClickFunc;
101
+ bindFunctions(element: Element): void;
102
+ readonly lineType: {
103
+ LINE: number;
104
+ DOTTED_LINE: number;
105
+ };
106
+ readonly relationType: {
107
+ AGGREGATION: number;
108
+ EXTENSION: number;
109
+ COMPOSITION: number;
110
+ DEPENDENCY: number;
111
+ LOLLIPOP: number;
112
+ };
113
+ private escapeHtml;
114
+ private readonly setupToolTips;
115
+ private direction;
116
+ getDirection(): string;
117
+ setDirection(dir: string): void;
118
+ private static resolveQualifiedId;
119
+ private static getAncestorIds;
120
+ private createNamespaceNode;
121
+ private linkParentChild;
122
+ addNamespace(id: string, label?: string): string;
123
+ popNamespace(): void;
124
+ getNamespace(name: string): NamespaceNode;
125
+ getNamespaces(): NamespaceMap;
126
+ /**
127
+ * Function called by parser when a namespace definition has been found.
128
+ *
129
+ * @param id - ID of the namespace to add
130
+ * @param classNames - IDs of the class to add
131
+ * @param noteNames - IDs of the notes to add
132
+ * @public
133
+ */
134
+ addClassesToNamespace(id: string, classNames: string[], noteNames: string[]): void;
135
+ setCssStyle(id: string, styles: string[]): void;
136
+ /**
137
+ * Gets the arrow marker for a type index
138
+ *
139
+ * @param type - The type to look for
140
+ * @returns The arrow marker
141
+ */
142
+ private getArrowMarker;
143
+ /**
144
+ * Walks up the namespace tree from the given id and returns the nearest ancestor
145
+ * (or the id itself) that is marked as explicit. Used by compact rendering mode
146
+ * to reassign children to the nearest user-declared namespace.
147
+ */
148
+ private resolveExplicitAncestor;
149
+ getData(): {
150
+ nodes: Node[];
151
+ edges: Edge[];
152
+ other: {};
153
+ config: import("../../config.type.js").MermaidConfig;
154
+ direction: string;
155
+ };
156
+ setAccTitle: (txt: string) => void;
157
+ getAccTitle: () => string;
158
+ setAccDescription: (txt: string) => void;
159
+ getAccDescription: () => string;
160
+ setDiagramTitle: (txt: string) => void;
161
+ getDiagramTitle: () => string;
162
+ getConfig: () => import("../../config.type.js").ClassDiagramConfig | undefined;
163
+ }
tools/ui/node_modules/mermaid/dist/diagrams/class/classDetector-V2.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
2
+ declare const plugin: ExternalDiagramDefinition;
3
+ export default plugin;
tools/ui/node_modules/mermaid/dist/diagrams/class/classDetector.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
2
+ declare const plugin: ExternalDiagramDefinition;
3
+ export default plugin;
tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram-v2.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { DiagramDefinition } from '../../diagram-api/types.js';
2
+ export declare const diagram: DiagramDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { DiagramDefinition } from '../../diagram-api/types.js';
2
+ export declare const diagram: DiagramDefinition;
tools/ui/node_modules/mermaid/dist/diagrams/class/classDiagram.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer-v2.d.ts ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as graphlib from 'dagre-d3-es/src/graphlib/index.js';
2
+ import type { ClassRelation, ClassMap, ClassNoteMap, NamespaceMap } from './classTypes.js';
3
+ /**
4
+ * Function that adds the vertices found during parsing to the graph to be rendered.
5
+ *
6
+ * @param namespaces - Object containing the vertices.
7
+ * @param g - The graph that is to be drawn.
8
+ * @param _id - id of the graph
9
+ * @param diagObj - The diagram object
10
+ */
11
+ export declare const addNamespaces: (namespaces: NamespaceMap, g: graphlib.Graph, _id: string, diagObj: any) => void;
12
+ /**
13
+ * Function that adds the vertices found during parsing to the graph to be rendered.
14
+ *
15
+ * @param classes - Object containing the vertices.
16
+ * @param g - The graph that is to be drawn.
17
+ * @param _id - id of the graph
18
+ * @param diagObj - The diagram object
19
+ * @param parent - id of the parent namespace, if it exists
20
+ */
21
+ export declare const addClasses: (classes: ClassMap, g: graphlib.Graph, _id: string, diagObj: any, parent?: string) => void;
22
+ /**
23
+ * Function that adds the additional vertices (notes) found during parsing to the graph to be rendered.
24
+ *
25
+ * @param notes - Object containing the additional vertices (notes).
26
+ * @param g - The graph that is to be drawn.
27
+ * @param startEdgeId - starting index for note edge
28
+ * @param classes - Classes
29
+ */
30
+ export declare const addNotes: (notes: ClassNoteMap, g: graphlib.Graph, startEdgeId: number, classes: ClassMap, parent?: string) => void;
31
+ /**
32
+ * Add edges to graph based on parsed graph definition
33
+ *
34
+ * @param relations -
35
+ * @param g - The graph object
36
+ */
37
+ export declare const addRelations: (relations: ClassRelation[], g: graphlib.Graph) => void;
38
+ /**
39
+ * Merges the value of `conf` with the passed `cnf`
40
+ *
41
+ * @param cnf - Config to merge
42
+ */
43
+ export declare const setConf: (cnf: any) => void;
44
+ /**
45
+ * Draws a class diagram in the tag with id: id based on the definition in text.
46
+ *
47
+ * @param text -
48
+ * @param id -
49
+ * @param _version -
50
+ * @param diagObj -
51
+ */
52
+ export declare const draw: (text: string, id: string, _version: string, diagObj: any) => Promise<void>;
53
+ declare const _default: {
54
+ setConf: (cnf: any) => void;
55
+ draw: (text: string, id: string, _version: string, diagObj: any) => Promise<void>;
56
+ };
57
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer-v3-unified.d.ts ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { DiagramStyleClassDef } from '../../diagram-api/types.js';
2
+ /**
3
+ * Get the direction from the statement items.
4
+ * Look through all of the documents (docs) in the parsedItems
5
+ * Because is a _document_ direction, the default direction is not necessarily the same as the overall default _diagram_ direction.
6
+ * @param parsedItem - the parsed statement item to look through
7
+ * @param defaultDir - the direction to use if none is found
8
+ * @returns The direction to use
9
+ */
10
+ export declare const getDir: (parsedItem: any, defaultDir?: string) => string;
11
+ export declare const getClasses: (text: string, diagramObj: any) => Map<string, DiagramStyleClassDef>;
12
+ export declare const draw: (text: string, id: string, _version: string, diag: any) => Promise<void>;
13
+ declare const _default: {
14
+ getClasses: (text: string, diagramObj: any) => Map<string, DiagramStyleClassDef>;
15
+ draw: (text: string, id: string, _version: string, diag: any) => Promise<void>;
16
+ getDir: (parsedItem: any, defaultDir?: string) => string;
17
+ };
18
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/class/classRenderer.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export function draw(text: string, id: string, _version: any, diagObj: any): void;
2
+ declare namespace _default {
3
+ export { draw };
4
+ }
5
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/class/classTypes.d.ts ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export interface ClassNode {
2
+ id: string;
3
+ type: string;
4
+ label: string;
5
+ shape: 'classBox';
6
+ text: string;
7
+ cssClasses: string;
8
+ methods: ClassMember[];
9
+ members: ClassMember[];
10
+ annotations: string[];
11
+ domId: string;
12
+ styles: string[];
13
+ parent?: string;
14
+ link?: string;
15
+ linkTarget?: string;
16
+ haveCallback?: boolean;
17
+ tooltip?: string;
18
+ look?: string;
19
+ }
20
+ export type Visibility = '#' | '+' | '~' | '-' | '';
21
+ export declare const visibilityValues: string[];
22
+ /**
23
+ * Parses and stores class diagram member variables/methods.
24
+ *
25
+ */
26
+ export declare class ClassMember {
27
+ id: string;
28
+ cssStyle: string;
29
+ memberType: 'method' | 'attribute';
30
+ visibility: Visibility;
31
+ text: string;
32
+ /**
33
+ * denote if static or to determine which css class to apply to the node
34
+ * @defaultValue ''
35
+ */
36
+ classifier: string;
37
+ /**
38
+ * parameters for method
39
+ * @defaultValue ''
40
+ */
41
+ parameters: string;
42
+ /**
43
+ * return type for method
44
+ * @defaultValue ''
45
+ */
46
+ returnType: string;
47
+ constructor(input: string, memberType: 'method' | 'attribute');
48
+ getDisplayDetails(): {
49
+ displayText: string;
50
+ cssStyle: string;
51
+ };
52
+ parseMember(input: string): void;
53
+ parseClassifier(): "" | "font-style:italic;" | "text-decoration:underline;";
54
+ }
55
+ export interface ClassNote {
56
+ id: string;
57
+ class: string;
58
+ text: string;
59
+ index: number;
60
+ parent?: string;
61
+ }
62
+ export interface ClassRelation {
63
+ id1: string;
64
+ id2: string;
65
+ relationTitle1: string;
66
+ relationTitle2: string;
67
+ type: string;
68
+ title: string;
69
+ text: string;
70
+ style: string[];
71
+ relation: {
72
+ type1: number;
73
+ type2: number;
74
+ lineType: number;
75
+ };
76
+ }
77
+ export interface Interface {
78
+ id: string;
79
+ label: string;
80
+ classId: string;
81
+ }
82
+ export interface NamespaceNode {
83
+ id: string;
84
+ label: string;
85
+ domId: string;
86
+ classes: ClassMap;
87
+ notes: ClassNoteMap;
88
+ children: NamespaceMap;
89
+ parent?: string;
90
+ /**
91
+ * True if this namespace was explicitly declared by the user (e.g. `namespace A.B { ... }`).
92
+ * False for intermediate ancestors auto-created when parsing a dotted name.
93
+ * Used by compact (non-hierarchical) rendering mode to only emit declared namespaces.
94
+ */
95
+ explicit: boolean;
96
+ }
97
+ export interface StyleClass {
98
+ id: string;
99
+ styles: string[];
100
+ textStyles: string[];
101
+ }
102
+ export type ClassMap = Map<string, ClassNode>;
103
+ export type ClassNoteMap = Map<string, ClassNote>;
104
+ export type NamespaceMap = Map<string, NamespaceNode>;
tools/ui/node_modules/mermaid/dist/diagrams/class/classTypes.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
tools/ui/node_modules/mermaid/dist/diagrams/class/shapeUtil.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import type { MermaidConfig } from '../../config.type.js';
2
+ import type { D3Selection } from '../../types.js';
3
+ export declare function textHelper<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: any, config: MermaidConfig, useHtmlLabels: boolean, GAP?: number): Promise<{
4
+ shapeSvg: import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;
5
+ bbox: DOMRect;
6
+ }>;
tools/ui/node_modules/mermaid/dist/diagrams/class/styles.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export default getStyles;
2
+ declare function getStyles(options: any): string;
tools/ui/node_modules/mermaid/dist/diagrams/class/svgDraw.d.ts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export function drawEdge(elem: any, path: any, relation: any, conf: any, diagObj: any): void;
2
+ export function drawClass(elem: SVGSVGElement, classDef: any, conf: any, diagObj: any): {
3
+ id: any;
4
+ label: any;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export function getClassTitleString(classDef: any): any;
9
+ export function drawNote(elem: SVGSVGElement, note: {
10
+ id: string;
11
+ text: string;
12
+ class: string;
13
+ }, conf: any, _diagObj: any): {
14
+ id: string;
15
+ text: string;
16
+ width: number;
17
+ height: number;
18
+ };
19
+ declare namespace _default {
20
+ export { getClassTitleString };
21
+ export { drawClass };
22
+ export { drawEdge };
23
+ export { drawNote };
24
+ }
25
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/common/common.d.ts ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { evaluate } from '../../config.js';
2
+ import type { MermaidConfig } from '../../config.type.js';
3
+ export declare const lineBreakRegex: RegExp;
4
+ /**
5
+ * Gets the rows of lines in a string
6
+ *
7
+ * @param s - The string to check the lines for
8
+ * @returns The rows in that string
9
+ */
10
+ export declare const getRows: (s?: string) => string[];
11
+ /**
12
+ * Removes script tags from a text
13
+ *
14
+ * @param txt - The text to sanitize
15
+ * @returns The safer text
16
+ */
17
+ export declare const removeScript: (txt: string) => string;
18
+ export declare const sanitizeText: (text: string, config: MermaidConfig) => string;
19
+ export declare const sanitizeTextOrArray: (a: string | string[] | string[][], config: MermaidConfig) => string | string[];
20
+ /**
21
+ * Whether or not a text has any line breaks
22
+ *
23
+ * @param text - The text to test
24
+ * @returns Whether or not the text has breaks
25
+ */
26
+ export declare const hasBreaks: (text: string) => boolean;
27
+ /**
28
+ * Splits on <br> tags
29
+ *
30
+ * @param text - Text to split
31
+ * @returns List of lines as strings
32
+ */
33
+ export declare const splitBreaks: (text: string) => string[];
34
+ /**
35
+ * Gets the current URL
36
+ *
37
+ * @param useAbsolute - Whether to return the absolute URL or not
38
+ * @returns The current URL
39
+ */
40
+ export declare const getUrl: (useAbsolute: boolean) => string;
41
+ export { evaluate };
42
+ /**
43
+ * Wrapper around Math.max which removes non-numeric values
44
+ * Returns the larger of a set of supplied numeric expressions.
45
+ * @param values - Numeric expressions to be evaluated
46
+ * @returns The smaller value
47
+ */
48
+ export declare const getMax: (...values: number[]) => number;
49
+ /**
50
+ * Wrapper around Math.min which removes non-numeric values
51
+ * Returns the smaller of a set of supplied numeric expressions.
52
+ * @param values - Numeric expressions to be evaluated
53
+ * @returns The smaller value
54
+ */
55
+ export declare const getMin: (...values: number[]) => number;
56
+ /**
57
+ * Makes generics in typescript syntax
58
+ *
59
+ * @example
60
+ * Array of array of strings in typescript syntax
61
+ *
62
+ * ```js
63
+ * // returns "Array<Array<string>>"
64
+ * parseGenericTypes('Array~Array~string~~');
65
+ * ```
66
+ * @param text - The text to convert
67
+ * @returns The converted string
68
+ */
69
+ export declare const parseGenericTypes: (input: string) => string;
70
+ export declare const countOccurrence: (string: string, substring: string) => number;
71
+ export declare const isMathMLSupported: () => boolean;
72
+ export declare const katexRegex: RegExp;
73
+ /**
74
+ * Whether or not a text has KaTeX delimiters
75
+ *
76
+ * @param text - The text to test
77
+ * @returns Whether or not the text has KaTeX delimiters
78
+ */
79
+ export declare const hasKatex: (text: string) => boolean;
80
+ /**
81
+ * Computes the minimum dimensions needed to display a div containing MathML
82
+ *
83
+ * @param text - The text to test
84
+ * @param config - Configuration for Mermaid
85
+ * @returns Object containing \{width, height\}
86
+ */
87
+ export declare const calculateMathMLDimensions: (text: string, config: MermaidConfig) => Promise<{
88
+ width: number;
89
+ height: number;
90
+ }>;
91
+ /**
92
+ * Attempts to render and return the KaTeX portion of a string with MathML
93
+ *
94
+ * @param text - The text to test
95
+ * @param config - Configuration for Mermaid
96
+ * @returns String containing MathML if KaTeX is supported, or an error message if it is not and stylesheets aren't present
97
+ */
98
+ export declare const renderKatexSanitized: (text: string, config: MermaidConfig) => Promise<string>;
99
+ declare const _default: {
100
+ getRows: (s?: string) => string[];
101
+ sanitizeText: (text: string, config: MermaidConfig) => string;
102
+ sanitizeTextOrArray: (a: string | string[] | string[][], config: MermaidConfig) => string | string[];
103
+ hasBreaks: (text: string) => boolean;
104
+ splitBreaks: (text: string) => string[];
105
+ lineBreakRegex: RegExp;
106
+ removeScript: (txt: string) => string;
107
+ getUrl: (useAbsolute: boolean) => string;
108
+ evaluate: (val?: string | boolean | null) => boolean;
109
+ getMax: (...values: number[]) => number;
110
+ getMin: (...values: number[]) => number;
111
+ };
112
+ export default _default;
tools/ui/node_modules/mermaid/dist/diagrams/common/common.spec.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};