@principal-ai/subsystems-react 0.37.11 → 0.38.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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts.map +1 -1
- package/dist/stories/Subsystem/ComponentGraph/fixtures.js +0 -1
- package/dist/stories/Subsystem/ComponentGraph/fixtures.js.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.d.ts +14 -1
- package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.js +52 -20
- package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
- package/dist/subsystem/model.d.ts +123 -7
- package/dist/subsystem/model.d.ts.map +1 -1
- package/dist/subsystem/model.js +91 -12
- package/dist/subsystem/model.js.map +1 -1
- package/dist/subsystem/nodes.d.ts.map +1 -1
- package/dist/subsystem/nodes.js +9 -5
- package/dist/subsystem/nodes.js.map +1 -1
- package/dist/utils/elkLayout.d.ts +9 -0
- package/dist/utils/elkLayout.d.ts.map +1 -1
- package/dist/utils/elkLayout.js +21 -2
- package/dist/utils/elkLayout.js.map +1 -1
- package/package.json +1 -1
- package/src/graphify/__fixtures__/ego-samples.json +545 -0
- package/src/index.ts +12 -1
- package/src/stories/Subsystem/ComponentGraph/Basics.stories.tsx +2 -2
- package/src/stories/Subsystem/ComponentGraph/Captures.stories.tsx +9 -9
- package/src/stories/Subsystem/ComponentGraph/EdgeViews.stories.tsx +4 -4
- package/src/stories/Subsystem/ComponentGraph/ModuleBadges.stories.tsx +5 -5
- package/src/stories/Subsystem/ComponentGraph/Modules.stories.tsx +5 -5
- package/src/stories/Subsystem/ComponentGraph/Scenarios.stories.tsx +6 -6
- package/src/stories/Subsystem/ComponentGraph/fixtures.ts +0 -1
- package/src/stories/Subsystem/EgoGraph/EgoGraph.stories.tsx +354 -0
- package/src/subsystem/SubsystemComponentGraph.tsx +75 -25
- package/src/subsystem/model.test.ts +75 -2
- package/src/subsystem/model.ts +201 -17
- package/src/subsystem/nodes.tsx +10 -6
- package/src/subsystem/toC4.test.ts +3 -3
- package/src/utils/elkLayout.ts +32 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export { SubsystemDiagnosticToggle, diagnosticStatusColor, diagnosticTitle, } fr
|
|
|
32
32
|
export type { SubsystemDiagnostic, SubsystemDiagnosticStatus, SubsystemDiagnosticToggleProps, } from './subsystem/DiagnosticToggle';
|
|
33
33
|
export { SubsystemIssueList, SubsystemIssueCard, groupIssuesByTarget, groupIssuesByCategory, issueCategory, issueKindLabel, humanizeIssueKind, issueKindOrder, worstSeverity, severityRank, SUBSYSTEM_ISSUE_CATEGORIES, SUBSYSTEM_ISSUE_CATEGORY_LABEL, } from './subsystem/IssueList';
|
|
34
34
|
export type { SubsystemIssue, SubsystemIssueSeverity, SubsystemIssueTarget, SubsystemIssueTargetKind, SubsystemIssueCategory, SubsystemIssueGroup, SubsystemIssueCategoryGroup, SubsystemIssueCardProps, SubsystemIssueListProps, } from './subsystem/IssueList';
|
|
35
|
-
export { MECHANISM_COLOR, MECHANISM_STYLE } from './subsystem/model';
|
|
35
|
+
export { MECHANISM_COLOR, MECHANISM_STYLE, MECHANISM_FALLBACK_COLOR, GRAPHIFY_RELATION_COLOR, GRAPHIFY_RELATION_STYLE, GRAPHIFY_RELATION_FALLBACK_COLOR, edgeColor, edgeStrokeStyle, } from './subsystem/model';
|
|
36
36
|
export { BOUNDARY_COLOR, assignBoundaryColors, boundaryFill } from './subsystem/model';
|
|
37
37
|
export { CONSTRUCT_COLOR, componentColor, constructColorsFromPierreTheme } from './pierre/constructColors';
|
|
38
38
|
export { purlRepoKey, purlOwnerName, buildTreePathMapping, buildRepoGroups, repoAvatarUrl, } from './subsystem/paths';
|
|
@@ -46,7 +46,7 @@ export { GraphLayoutCover } from './subsystem/GraphLayoutCover';
|
|
|
46
46
|
export type { GraphLayoutCoverProps } from './subsystem/GraphLayoutCover';
|
|
47
47
|
export { SubsystemComponentNode, SubsystemCallbacksProvider, } from './subsystem/nodes';
|
|
48
48
|
export type { SubsystemGraphCallbacks } from './subsystem/nodes';
|
|
49
|
-
export type { SubsystemComponent, SubsystemGraphNodeData, SubsystemComponentEdge, SubsystemRelation, SubsystemRelationType, SubsystemWalkthrough, SubsystemWalkthroughStep, SubsystemWalkthroughMechanism, SubsystemModelDocument, SubsystemComponentConstruct, SubsystemComponentRole, SubsystemFramework, SubsystemStereotype, SubsystemEdgeMechanism, SubsystemEdgeView, SubsystemConstructDeclaration, SubsystemDeclarationProvenance, SubsystemSignatureClaim, SubsystemSignatureParameter, } from './subsystem/model';
|
|
49
|
+
export type { SubsystemComponent, SubsystemGraphNodeData, SubsystemComponentEdge, SubsystemRelation, SubsystemRelationType, SubsystemWalkthrough, SubsystemWalkthroughStep, SubsystemWalkthroughMechanism, SubsystemModelDocument, SubsystemComponentConstruct, SubsystemComponentRole, SubsystemFramework, SubsystemStereotype, SubsystemEdgeMechanism, SubsystemEdgeView, SubsystemEdgeProvenance, SubsystemGraphifyRelation, SubsystemConstructDeclaration, SubsystemDeclarationProvenance, SubsystemSignatureClaim, SubsystemSignatureParameter, } from './subsystem/model';
|
|
50
50
|
export { constructBadgeLabel, constructBadgeColor, rightBadgeLabel, rightBadgeColor, deriveNameFromSymbol, nodeMinWidthForBadges, deriveGraphEdges, isConstructsOnlyModel, derivedGraphEdgeId, walkthroughStepGraphEdgeId, reorderWalkthroughs, reorderTargetIndex, isRelationMechanism, isWalkthroughMechanism, SUBSYSTEM_RELATION_TYPES, SUBSYSTEM_WALKTHROUGH_MECHANISMS, ROLE_COLOR, ROLE_LABEL, FRAMEWORK_BADGE_COLOR, PROPOSED_COLOR, } from './subsystem/model';
|
|
51
51
|
export type { SubsystemDeclarationRef, SubsystemOpenFileOptions, DeclarationFreshness, } from './subsystem/declarationRef';
|
|
52
52
|
export { parseSourceLocation, normalizeDeclarationLine, extractDeclarationLine, DECLARATION_HASH_ALGO, } from './subsystem/declarationRef';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAGrC,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,gCAAgC,EAChC,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AAGpB,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BAAyB,EACzB,qBAAqB,EACrB,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAGrC,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,YAA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UAAU,EACV,UAAU,EACV,qBAAqB,EACrB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAC1I,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,8BAA8B,EAC9B,YAAY,EACZ,qBAAqB,GACtB,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { SymbolInspectionCard } from './subsystem/SymbolInspectionCard';
|
|
|
20
20
|
export { extractDeclarationSymbolRefs, isLimitedInspection, } from './subsystem/symbolRefs';
|
|
21
21
|
export { SubsystemDiagnosticToggle, diagnosticStatusColor, diagnosticTitle, } from './subsystem/DiagnosticToggle';
|
|
22
22
|
export { SubsystemIssueList, SubsystemIssueCard, groupIssuesByTarget, groupIssuesByCategory, issueCategory, issueKindLabel, humanizeIssueKind, issueKindOrder, worstSeverity, severityRank, SUBSYSTEM_ISSUE_CATEGORIES, SUBSYSTEM_ISSUE_CATEGORY_LABEL, } from './subsystem/IssueList';
|
|
23
|
-
export { MECHANISM_COLOR, MECHANISM_STYLE } from './subsystem/model';
|
|
23
|
+
export { MECHANISM_COLOR, MECHANISM_STYLE, MECHANISM_FALLBACK_COLOR, GRAPHIFY_RELATION_COLOR, GRAPHIFY_RELATION_STYLE, GRAPHIFY_RELATION_FALLBACK_COLOR, edgeColor, edgeStrokeStyle, } from './subsystem/model';
|
|
24
24
|
export { BOUNDARY_COLOR, assignBoundaryColors, boundaryFill } from './subsystem/model';
|
|
25
25
|
export { CONSTRUCT_COLOR, componentColor, constructColorsFromPierreTheme } from './pierre/constructColors';
|
|
26
26
|
export { purlRepoKey, purlOwnerName, buildTreePathMapping, buildRepoGroups, repoAvatarUrl, } from './subsystem/paths';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,sEAAsE;AACtE,OAAO,EACL,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AAyCrC,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAWpB,uBAAuB;AACvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG1E,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAQ9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAOlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EACL,4BAA4B,EAC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A0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,gCAAgC,EAChC,UAAU,EACV,UAAU,EACV,qBAAqB,EACrB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAGtC,6CAA6C;AAC7C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/stories/Subsystem/ComponentGraph/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAKjE,wBAAgB,UAAU,CACxB,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,uBAAuB,CAAC,CAAC,GAC3L,kBAAkB,EAAE,CAWtB;
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/stories/Subsystem/ComponentGraph/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,E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AACrF,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,GACvG;IAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAAE,CA+B3E;AAED,eAAO,MAAM,YAAY,EAAE,uBAY1B,CAAC;AAMF,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,EAuDzD,CAAC;AASF,eAAO,MAAM,wBAAwB,qBAA4B,CAAC;AAClE,eAAO,MAAM,2BAA2B,oCAA+B,CAAC;AAExE,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,sBAAsB,EAKvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../src/stories/Subsystem/ComponentGraph/fixtures.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,8EAA8E;AAC9E,wDAAwD;AACxD,8EAA8E;AAC9E,MAAM,UAAU,UAAU,CACxB,IAA4L;IAE5L,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;QACvF,KAAK;QACL,IAAI;QACJ,SAAS;QACT,IAAI;QACJ,IAAI;QACJ,OAAO;QACP,MAAM;QACN,WAAW;KACZ,CAAC,CAAC,CAAC;AACN,CAAC;AAED,MAAM,cAAc,GAAG,IAAI,GAAG,CAAS;IACrC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,UAAU;IACV,QAAQ;
|
|
1
|
+
{"version":3,"file":"fixtures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E,KAAK,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC,SAAS,CAAC;AAClE,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,YAAY,CAAC;AAExE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAA6B,KAAK,CAAC;IAClE,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC;IAC3B,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC;IAC3B,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;IACzB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* injection, onNodeClick) adapted to the subsystem model — read-only.
|
|
16
16
|
*/
|
|
17
17
|
import type { ReactNode } from 'react';
|
|
18
|
-
import { type SubsystemComponentEdge, type SubsystemComponent, type SubsystemEdgeView, type SubsystemRelation, type SubsystemWalkthrough } from './model';
|
|
18
|
+
import { type SubsystemComponentEdge, type SubsystemComponent, type SubsystemEdgeView, type SubsystemGraphifyRelation, type SubsystemRelation, type SubsystemWalkthrough } from './model';
|
|
19
19
|
import type { SubsystemOpenFileOptions } from './declarationRef';
|
|
20
20
|
import type { WalkthroughSymbolQuery } from '../pierre/PierreWalkthroughCodeView';
|
|
21
21
|
import { type SubsystemDiagnostic } from './DiagnosticToggle';
|
|
@@ -58,6 +58,19 @@ export interface SubsystemComponentGraphProps {
|
|
|
58
58
|
* (unselected ones dimmed); everything else is hidden.
|
|
59
59
|
*/
|
|
60
60
|
walkthroughs?: SubsystemWalkthrough[];
|
|
61
|
+
/**
|
|
62
|
+
* graphify-native relations (raw static-graph edges: `imports`, `contains`,
|
|
63
|
+
* `re_exports`, …). Display-only, drawn with the separate
|
|
64
|
+
* `GRAPHIFY_RELATION_COLOR` palette so they read as derived facts, distinct
|
|
65
|
+
* from authored subsystem mechanisms. Visible in the `relations` edge view.
|
|
66
|
+
*/
|
|
67
|
+
graphifyRelations?: readonly SubsystemGraphifyRelation[];
|
|
68
|
+
/**
|
|
69
|
+
* Order same-layer nodes by `component.line` (ascending) instead of ELK's
|
|
70
|
+
* crossing-minimizer — reads a source region top-to-bottom. Components need a
|
|
71
|
+
* `line` for this to have any effect. @default false
|
|
72
|
+
*/
|
|
73
|
+
orderByLine?: boolean;
|
|
61
74
|
/**
|
|
62
75
|
* Deep-link target: when set, the matching walkthrough is selected on mount
|
|
63
76
|
* — its steps expanded and its flow focused on the canvas. Hosts use this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubsystemComponentGraph.d.ts","sourceRoot":"","sources":["../../src/subsystem/SubsystemComponentGraph.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAiC,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBtE,OAAO,EAUL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SubsystemComponentGraph.d.ts","sourceRoot":"","sources":["../../src/subsystem/SubsystemComponentGraph.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAiC,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBtE,OAAO,EAUL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EAEvB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAElF,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC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uB,CAAC,KAAK,EAAE,4BAA4B,+BAiE1E"}
|
|
@@ -20,7 +20,7 @@ import { ReactFlow, ReactFlowProvider, useReactFlow, useViewport, applyNodeChang
|
|
|
20
20
|
import { useTheme } from '@principal-ade/industry-theme';
|
|
21
21
|
import { FileText, X } from 'lucide-react';
|
|
22
22
|
import { IndustryMarkdownSlide } from 'themed-markdown';
|
|
23
|
-
import { buildSubsystemGraph, deriveGraphEdges, isConstructsOnlyModel, isRelationMechanism, isWalkthroughMechanism,
|
|
23
|
+
import { buildSubsystemGraph, deriveGraphEdges, isConstructsOnlyModel, isRelationMechanism, isWalkthroughMechanism, edgeColor, MECHANISM_DESCRIPTIONS, subsystemGraphLayoutKey, walkthroughStepGraphEdgeId, } from './model';
|
|
24
24
|
import { ConstructsCatalog } from './ConstructsCatalog';
|
|
25
25
|
import { SubsystemComponentNode, SubsystemGroupNode, SubsystemEdge, SUBSYSTEM_CALLBACKS, hexWithAlpha, EDGE_DIM_ALPHA, fileMatchForNode, flowElementVisibility } from './nodes';
|
|
26
26
|
import { SubsystemDiagnosticToggle } from './DiagnosticToggle';
|
|
@@ -120,7 +120,7 @@ const WalkthroughDrawerContent = memo(function WalkthroughDrawerContent({ render
|
|
|
120
120
|
onSymbolClick,
|
|
121
121
|
}) }));
|
|
122
122
|
});
|
|
123
|
-
function Inner({ components, relations, walkthroughs, initialWalkthroughId, onReorderWalkthroughs, onSelect, onEdgeSelect, measured: _measured, maxNodeWidth, showEdgeLabels, showSingletonFrames = true, edgeView, title, hideSidebar, walkthroughStepMode = 'focus', autoPlayWalkthroughs = false, walkthroughAutoPlayIntervalMs = WALKTHROUGH_PLAY_PAUSE_MS, zoomOnWalkthroughFocus = true, walkthroughFocusDurationMs = 300, graphTitle, showWalkthroughTitle = false, description, canvasOverlay, sidebarExtra, sidebarAfterDescription, diagnostic, issues, showIssues, focusIssueCategory, onSelectIssue, onApplyIssueFix, onHoverIssue, renderFileView, renderFileViewer, renderWalkthroughViewer, onFileSelect, componentVerification, onInspectSymbol, boundaryColors, hideDrawer = false, persistKey }) {
|
|
123
|
+
function Inner({ components, relations, walkthroughs, graphifyRelations, orderByLine, initialWalkthroughId, onReorderWalkthroughs, onSelect, onEdgeSelect, measured: _measured, maxNodeWidth, showEdgeLabels, showSingletonFrames = true, edgeView, title, hideSidebar, walkthroughStepMode = 'focus', autoPlayWalkthroughs = false, walkthroughAutoPlayIntervalMs = WALKTHROUGH_PLAY_PAUSE_MS, zoomOnWalkthroughFocus = true, walkthroughFocusDurationMs = 300, graphTitle, showWalkthroughTitle = false, description, canvasOverlay, sidebarExtra, sidebarAfterDescription, diagnostic, issues, showIssues, focusIssueCategory, onSelectIssue, onApplyIssueFix, onHoverIssue, renderFileView, renderFileViewer, renderWalkthroughViewer, onFileSelect, componentVerification, onInspectSymbol, boundaryColors, hideDrawer = false, persistKey }) {
|
|
124
124
|
const { theme } = useTheme();
|
|
125
125
|
const { fitView, fitBounds } = useReactFlow();
|
|
126
126
|
const viewport = useViewport();
|
|
@@ -263,15 +263,24 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
263
263
|
return null;
|
|
264
264
|
return walkthroughs.find((t) => t.id === drawerTarget.walkthroughId) ?? null;
|
|
265
265
|
}, [drawerTarget, walkthroughs]);
|
|
266
|
+
// Autoplay focus: a sidebar-less embed has no expanded flow to "open", so
|
|
267
|
+
// branding every step as a selection would hide all other nodes. Instead the
|
|
268
|
+
// autoplay sets this (flow id + step) to frame the hop and dim the rest —
|
|
269
|
+
// same treatment as hover — without hiding anything. Declared before the
|
|
270
|
+
// overlay memos, which read it to title the canvas chip + step bar.
|
|
271
|
+
const [autoPlayFocus, setAutoPlayFocus] = useState(null);
|
|
266
272
|
// Ref mirror of the drawer's walkthrough id so the symbol resolver stays
|
|
267
273
|
// stable across graph re-renders (the drawer is memoized on callback identity).
|
|
268
274
|
const drawerWalkthroughIdRef = useRef(null);
|
|
269
275
|
drawerWalkthroughIdRef.current = focusedWalkthrough?.id ?? null;
|
|
270
|
-
// Walkthrough shown on the canvas title chip (focus
|
|
276
|
+
// Walkthrough shown on the canvas title chip (focus, hover highlight, or
|
|
277
|
+
// autoplay focus).
|
|
271
278
|
const overlayWalkthroughTitle = useMemo(() => {
|
|
272
279
|
if (!showWalkthroughTitle || !walkthroughs?.length)
|
|
273
280
|
return null;
|
|
274
|
-
const id = focusedWalkthroughId ??
|
|
281
|
+
const id = focusedWalkthroughId ??
|
|
282
|
+
autoPlayFocus?.walkthroughId ??
|
|
283
|
+
hoveredWalkthroughStep?.walkthroughId;
|
|
275
284
|
if (!id)
|
|
276
285
|
return null;
|
|
277
286
|
return walkthroughs.find((t) => t.id === id)?.title ?? null;
|
|
@@ -279,17 +288,24 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
279
288
|
showWalkthroughTitle,
|
|
280
289
|
walkthroughs,
|
|
281
290
|
focusedWalkthroughId,
|
|
291
|
+
autoPlayFocus,
|
|
282
292
|
hoveredWalkthroughStep,
|
|
283
293
|
]);
|
|
284
294
|
// Active step for the bottom-of-title progress + annotation chip.
|
|
285
295
|
const overlayWalkthroughStep = useMemo(() => {
|
|
286
296
|
if (!showWalkthroughTitle || !walkthroughs?.length)
|
|
287
297
|
return null;
|
|
288
|
-
const tlId = focusedWalkthroughId ??
|
|
298
|
+
const tlId = focusedWalkthroughId ??
|
|
299
|
+
autoPlayFocus?.walkthroughId ??
|
|
300
|
+
hoveredWalkthroughStep?.walkthroughId ??
|
|
301
|
+
null;
|
|
289
302
|
let stepIndex = null;
|
|
290
303
|
if (focusedWalkthroughId != null) {
|
|
291
304
|
stepIndex = focusedStepIndex;
|
|
292
305
|
}
|
|
306
|
+
else if (autoPlayFocus != null) {
|
|
307
|
+
stepIndex = autoPlayFocus.stepIndex;
|
|
308
|
+
}
|
|
293
309
|
else if (hoveredWalkthroughStep != null) {
|
|
294
310
|
stepIndex = hoveredWalkthroughStep.stepIndex;
|
|
295
311
|
}
|
|
@@ -309,6 +325,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
309
325
|
walkthroughs,
|
|
310
326
|
focusedWalkthroughId,
|
|
311
327
|
focusedStepIndex,
|
|
328
|
+
autoPlayFocus,
|
|
312
329
|
hoveredWalkthroughStep,
|
|
313
330
|
]);
|
|
314
331
|
const drawerTitle = useMemo(() => {
|
|
@@ -339,13 +356,15 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
339
356
|
// Pass 1: build with estimated widths so React Flow can measure the DOM.
|
|
340
357
|
// The pane stays hidden until Pass 2 completes. Key off layout-affecting
|
|
341
358
|
// fields only — declarationRef updates after verify must not re-run ELK.
|
|
342
|
-
const layoutKey = useMemo(() => subsystemGraphLayoutKey({ components, relations, walkthroughs }), [components, relations, walkthroughs]);
|
|
359
|
+
const layoutKey = useMemo(() => subsystemGraphLayoutKey({ components, relations, walkthroughs, graphifyRelations }), [components, relations, walkthroughs, graphifyRelations]);
|
|
343
360
|
const componentsRef = useRef(components);
|
|
344
361
|
const relationsRef = useRef(relations);
|
|
345
362
|
const walkthroughsRef = useRef(walkthroughs);
|
|
363
|
+
const graphifyRelationsRef = useRef(graphifyRelations);
|
|
346
364
|
componentsRef.current = components;
|
|
347
365
|
relationsRef.current = relations;
|
|
348
366
|
walkthroughsRef.current = walkthroughs;
|
|
367
|
+
graphifyRelationsRef.current = graphifyRelations;
|
|
349
368
|
// Track measured dimensions from React Flow's dimension changes.
|
|
350
369
|
// These arrive as { type: 'dimensions', id, dimensions } in onNodesChange.
|
|
351
370
|
// Retained across same-id layoutKey updates so Pass 2 can run without a remount.
|
|
@@ -369,6 +388,8 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
369
388
|
maxNodeWidth,
|
|
370
389
|
showEdgeLabels,
|
|
371
390
|
showSingletonFrames,
|
|
391
|
+
graphifyRelations: graphifyRelationsRef.current,
|
|
392
|
+
orderByLine,
|
|
372
393
|
})
|
|
373
394
|
.then(({ nodes, edges: e, absoluteRects }) => {
|
|
374
395
|
if (!alive)
|
|
@@ -419,7 +440,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
419
440
|
const measuredWidths = new Map(leafNodes.map((n) => [n.id, dims.get(n.id).width]));
|
|
420
441
|
const measuredHeights = new Map(leafNodes.map((n) => [n.id, dims.get(n.id).height]));
|
|
421
442
|
const gen = ++pass2GenRef.current;
|
|
422
|
-
void buildSubsystemGraph({ components, relations, walkthroughs }, { maxNodeWidth, showEdgeLabels, measuredWidths, measuredHeights, showSingletonFrames })
|
|
443
|
+
void buildSubsystemGraph({ components, relations, walkthroughs }, { maxNodeWidth, showEdgeLabels, measuredWidths, measuredHeights, showSingletonFrames, graphifyRelations, orderByLine })
|
|
423
444
|
.then(({ nodes, edges: e, absoluteRects }) => {
|
|
424
445
|
if (gen !== pass2GenRef.current)
|
|
425
446
|
return;
|
|
@@ -433,7 +454,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
433
454
|
// Reveal Pass 1 layout rather than leaving the cover up forever.
|
|
434
455
|
setLayoutReady(true);
|
|
435
456
|
});
|
|
436
|
-
}, [built.nodes, components, relations, walkthroughs, maxNodeWidth, showEdgeLabels]);
|
|
457
|
+
}, [built.nodes, components, relations, walkthroughs, graphifyRelations, orderByLine, maxNodeWidth, showEdgeLabels]);
|
|
437
458
|
// After Pass 1 commits, try Pass 2 immediately with retained measurements.
|
|
438
459
|
// Same-id live updates often get no new React Flow `dimensions` events, so
|
|
439
460
|
// waiting only on onNodesChange leaves the cover stuck.
|
|
@@ -517,11 +538,6 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
517
538
|
// without a stale closure value.
|
|
518
539
|
const selectedEdgeIdRef = useRef(null);
|
|
519
540
|
selectedEdgeIdRef.current = selectedEdgeId;
|
|
520
|
-
// Autoplay focus: a sidebar-less embed has no expanded flow to "open", so
|
|
521
|
-
// branding every step as a selection would hide all other nodes. Instead the
|
|
522
|
-
// autoplay sets this (flow id + step) to frame the hop and dim the rest —
|
|
523
|
-
// same treatment as hover — without hiding anything.
|
|
524
|
-
const [autoPlayFocus, setAutoPlayFocus] = useState(null);
|
|
525
541
|
// Edge ids in walkthrough focus (an active flow's edge set, or a single
|
|
526
542
|
// step's edge). Used to frame the camera. `null` = no walkthrough focus.
|
|
527
543
|
const focusEdgeIds = useMemo(() => {
|
|
@@ -729,11 +745,15 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
729
745
|
};
|
|
730
746
|
};
|
|
731
747
|
// Edges outside the selected view are hidden entirely (labels included).
|
|
748
|
+
// graphify-native edges belong to the relations view (they are static
|
|
749
|
+
// topology, not runtime hops) regardless of their verb.
|
|
732
750
|
const edgeInView = (e) => {
|
|
733
|
-
const
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
751
|
+
const d = e.data;
|
|
752
|
+
const mechanism = d?.mechanism ?? 'uses';
|
|
753
|
+
if (resolvedEdgeView === 'relations') {
|
|
754
|
+
return d?.provenance === 'graphify' || isRelationMechanism(mechanism);
|
|
755
|
+
}
|
|
756
|
+
return isWalkthroughMechanism(mechanism);
|
|
737
757
|
};
|
|
738
758
|
if (openedEdgeIds || focusEdgeIds || previewEdgeIds) {
|
|
739
759
|
return baseEdges.map((e) => {
|
|
@@ -1416,6 +1436,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
1416
1436
|
return {
|
|
1417
1437
|
id: e.id,
|
|
1418
1438
|
mechanism: d?.mechanism ?? 'uses',
|
|
1439
|
+
provenance: d?.provenance,
|
|
1419
1440
|
dimmed: d?.dimmed === true,
|
|
1420
1441
|
midX: d?.labelX ?? 0,
|
|
1421
1442
|
midY: d?.labelY ?? 0,
|
|
@@ -1559,14 +1580,24 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
1559
1580
|
zIndex: 5,
|
|
1560
1581
|
}, children: edgeLabels.map((lbl) => {
|
|
1561
1582
|
const mechanism = lbl.mechanism;
|
|
1562
|
-
const
|
|
1563
|
-
const
|
|
1583
|
+
const isGraphify = lbl.provenance === 'graphify';
|
|
1584
|
+
const color = edgeColor({ mechanism, provenance: lbl.provenance });
|
|
1585
|
+
// Label chrome stays the crisp rounded box for every edge — graphify
|
|
1586
|
+
// provenance is carried by hue (GRAPHIFY_RELATION_COLOR), the dashed
|
|
1587
|
+
// stroke, and the tooltip, NOT by the "ambiguous" cloud silhouette
|
|
1588
|
+
// (that idiom is reserved for soft authored mechanisms).
|
|
1589
|
+
const verifiable = true;
|
|
1590
|
+
const labelTitle = isGraphify
|
|
1591
|
+
? 'Derived from graphify (static symbol graph)'
|
|
1592
|
+
: MECHANISM_DESCRIPTIONS.find(([m]) => m === mechanism)?.[2] === false
|
|
1593
|
+
? 'Not directly verifiable with graphify'
|
|
1594
|
+
: undefined;
|
|
1564
1595
|
const screenX = lbl.midX * viewport.zoom + viewport.x;
|
|
1565
1596
|
const screenY = lbl.midY * viewport.zoom + viewport.y;
|
|
1566
1597
|
const text = lbl.stepNos?.length
|
|
1567
1598
|
? `${lbl.stepNos.map((n) => `${n}:`).join(' ')} ${lbl.mechanism}`
|
|
1568
1599
|
: lbl.mechanism;
|
|
1569
|
-
return (_jsxs("div", { "data-edge-label": lbl.id, title:
|
|
1600
|
+
return (_jsxs("div", { "data-edge-label": lbl.id, title: labelTitle, onClick: (e) => {
|
|
1570
1601
|
e.stopPropagation();
|
|
1571
1602
|
selectEdge(lbl.id);
|
|
1572
1603
|
}, style: {
|
|
@@ -1816,6 +1847,7 @@ export function SubsystemComponentGraph(props) {
|
|
|
1816
1847
|
components: props.components,
|
|
1817
1848
|
relations: props.relations,
|
|
1818
1849
|
walkthroughs: props.walkthroughs,
|
|
1850
|
+
graphifyRelations: props.graphifyRelations,
|
|
1819
1851
|
});
|
|
1820
1852
|
return (_jsx("div", { ref: wrapRef, style: {
|
|
1821
1853
|
position: 'relative',
|