Update build and ui/menu so its builds with new highligher #1276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes a problem with building the
ui/menu
component. Thecomponents/bin/build
command is modified to handleexport async function
which was causing an error during the build phase. Thets/a11y/sre.ts
function also was causing problems when webpacking theui/menu
component. The the SRE functions for the preferences were not being found by webpack for some reason that I could not fully determine. I don't see anything wrong in any of the files, but it seems to be connected to the directexport
of those methods ints/a11y/res.ts
, so I've change those to an import followed by exports, which seems to do the trick.In addition, I've added a generic highlighter in
ts/a11y/explorer/Highlighter.ts
so that it can work in the absense of an output jax (I have an example in the documentation of a a role-you-own output jax for native MathML that causes an error otherwise).I also add a new named
STATE
value ints/handler/html/HTMLDocument.ts
just for convenience, and so that all the default render actions have a named state value.