diff --git a/.changeset/stepper-hover-text-popover.md b/.changeset/stepper-hover-text-popover.md deleted file mode 100644 index 91ba950..0000000 --- a/.changeset/stepper-hover-text-popover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@sourceacademy/common-stepper": patch ---- - -Add a `hoverText` `SyntaxProfile` capability: a node type can now show a fixed-text hover popover (e.g. `built-in function print`) alongside its normal inline rendering, without collapsing/replacing that rendering the way `functionValues`'s mu-term does. Unlike a function value's popover (the node's own template, i.e. a body, rendered on demand), this shows a single already-formatted line the language stashed on the node ahead of time — there is no body to expand. A language opts in by listing the node type and the property holding that text in its `SyntaxProfile.hoverText`; `web-stepper` renders the popover generically from the rule, no per-language host code. diff --git a/src/common/stepper/CHANGELOG.md b/src/common/stepper/CHANGELOG.md index b98ea3f..a53a305 100644 --- a/src/common/stepper/CHANGELOG.md +++ b/src/common/stepper/CHANGELOG.md @@ -1,5 +1,11 @@ # @sourceacademy/common-stepper +## 0.0.4 + +### Patch Changes + +- 7226fba: Add a `hoverText` `SyntaxProfile` capability: a node type can now show a fixed-text hover popover (e.g. `built-in function print`) alongside its normal inline rendering, without collapsing/replacing that rendering the way `functionValues`'s mu-term does. Unlike a function value's popover (the node's own template, i.e. a body, rendered on demand), this shows a single already-formatted line the language stashed on the node ahead of time — there is no body to expand. A language opts in by listing the node type and the property holding that text in its `SyntaxProfile.hoverText`; `web-stepper` renders the popover generically from the rule, no per-language host code. + ## 0.0.3 ### Patch Changes diff --git a/src/common/stepper/package.json b/src/common/stepper/package.json index 1424f8e..9097cff 100644 --- a/src/common/stepper/package.json +++ b/src/common/stepper/package.json @@ -1,6 +1,6 @@ { "name": "@sourceacademy/common-stepper", - "version": "0.0.3", + "version": "0.0.4", "packageManager": "yarn@4.18.0", "description": "Shared, language-agnostic protocol for the Source Academy stepper plugin pair", "scripts": {