Skip to content

graph-grammar-react@2.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Jul 11:14
Immutable release. Only release title and notes can be modified.

Minor Changes

  • Workbench accepts an optional controlled view prop ('graph' | 'editor') to drive the graph/rule-editor tab from outside — e.g. scripted walkthroughs. Omitted, the switcher behaves exactly as before.

Patch Changes

  • Harden the Workbench stats panel against host-page CSS when embedded

    The stats/legend panel uses common class names (.stats, .stat-row). When
    the Workbench is embedded in a host application whose own stylesheets define
    unscoped rules for those names (e.g. a centered-modal
    .stats { position: absolute; transform: translate(-50%, -50%); width: 640px }),
    the panel was hijacked out of its rail and rendered as a floating overlay on
    top of unrelated UI.

    .gg-root .stats and .gg-root .stat-row now pin their layout-critical
    properties explicitly (position: relative, transform: none, width: auto,
    top/left: auto, max-height: none, z-index: auto), so host globals can no
    longer reposition or resize the panel.