Version Packages - #654
Merged
Merged
Version Packages#654
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@bitflow/core@0.8.0
Minor Changes
e235646Thanks @mikebarkmin! -parseExpressionandparseQuantity— the small, hand-parsed arithmeticlanguage task-numeric reads answers with — are exported from core, with
optional named variables (
{ variables: { x: 2 } }) and, when there are any,multiplication by juxtaposition (
3x). Nothing is ever passed toevalorFunction; a name nobody gave a value is not arithmetic.7d7de7fThanks @mikebarkmin! - A dark theme. Every colour token is alight-dark()pair, so bitflow followsthe
color-schemeof the page around it: setcolor-scheme: darkon acontainer (or
light darkon the page to follow the OS) and the flow, itsnative controls and its scrollbars go dark. A page that says nothing stays
light, whatever the OS prefers.
08d3067Thanks @mikebarkmin! - New theme token--bitflow-color-on-primaryfor text drawn on the primarycolour (filled buttons, numbered badges), so a host with a light brand colour
can keep those labels readable.
--bitflow-shadow-outlinenow derives from--bitflow-color-primary.7d7de7fThanks @mikebarkmin! - bitflow no longer asks for Montserrat:--bitflow-font-familydefaults toinherit, so a flow is set in the font of the page it sits on. Set the tokento a font stack to give bitflow its own.
@bitflow/web-component@0.2.0
Minor Changes
7d7de7fThanks @mikebarkmin! - A dark theme. Every colour token is alight-dark()pair, so bitflow followsthe
color-schemeof the page around it: setcolor-scheme: darkon acontainer (or
light darkon the page to follow the OS) and the flow, itsnative controls and its scrollbars go dark. A page that says nothing stays
light, whatever the OS prefers.
e235646Thanks @mikebarkmin! - Nine new task types, for the questions a school computer science book asks:task-array-steps— the array after each step of an algorithm, answered byswapping boxes for a sort or typing into them for a stack or a queue.
task-binary-tree— a binary tree walked in a traversal order, searched, orgrown by inserting keys; the right answer is worked out from the tree.
task-pixel-grid— a grid painted from a palette, marked cell by cell; theform reads a pasted PBM listing.
task-table— a table with blanks to fill in, for a predicted query result(rows in any order), a value table or a copied spreadsheet formula.
task-point-plot— points on a plot assigned to classes, for anearest-neighbour prediction or a k-means step.
task-call-stack— the call stack at moments of a program's run, built bypushing and popping frames; the code is never run.
task-cardinality— an entity-relationship diagram whose relationship endsare labelled in Chen, min-max or UML notation.
task-number-line— values placed on a number line, each marked by howclose it lands.
task-function-plot— a graph sketched by setting its value at a few xpositions, marked against the function the author wrote.
A Parsons puzzle can also be drawn as a structogram (
display: "structogram"),a Nassi–Shneiderman diagram of the same lines: a line reading "wenn"/"if" is
drawn as a Verzweigung with its ja/nein triangle, "sonst"/"else" as the start
of its other case, and any other block as a loop's frame.
A code trace takes
1,5for 1.5 where a number is expected, andwahrandfalschfortrueandfalseunless the author made case count.All nine can be answered by tapping or typing, so they work the same on a
phone.
08d3067Thanks @mikebarkmin! - New theme token--bitflow-color-on-primaryfor text drawn on the primarycolour (filled buttons, numbered badges), so a host with a light brand colour
can keep those labels readable.
--bitflow-shadow-outlinenow derives from--bitflow-color-primary.7d7de7fThanks @mikebarkmin! - bitflow no longer asks for Montserrat:--bitflow-font-familydefaults toinherit, so a flow is set in the font of the page it sits on. Set the tokento a font stack to give bitflow its own.
e235646Thanks @mikebarkmin! -createShareableReport(doc, attempt, subject)— an attempt's report with everyanswer taken out, for a page that tells a teacher how a learner is doing
without telling them what the learner wrote. Exported from the package and from
@bitflow/web-component/flow, together withparseFlowandflowProgress, soa page embedding a flow for a class needs nothing else.
Patch Changes
08d3067Thanks @mikebarkmin! -<bitflow-flow>fits the box its host gives it instead of clipping whateverdoes not fit — the result page in a fixed-height box lost its bottom half. The
progress bar stays at the top and the buttons at the bottom, in a compact bar
under a divider; only the step between them scrolls. With a fixed
heighttheflow fills it; with only a
max-heightit grows with the step up to the cap;with neither it grows with the step. Moving to a new step scrolls back to the
top, and the step no longer draws a focus ring round itself when it takes
focus on arrival.
08d3067Thanks @mikebarkmin! - Parsons puzzles wrap long lines of code inside their block, with continuationshanging one step in, and an indented line no longer sticks out past its column
by its own indentation.
171964bThanks @mikebarkmin! - Tasks work on a phone.anywhere else on a line scrolls the step instead of being swallowed, and a
Parsons line can now be reordered and indented on a touch screen at all. A
drag held near the edge of the step or the page scrolls it. On a touch
screen every placed Parsons line also has buttons to move it up and down and
to indent and outdent it.
the picture.
a narrow screen instead of shrinking with it.
keypad has no minus; a hexadecimal answer gets a keyboard with letters; code,
short answers and blanks are no longer capitalised or autocorrected.
longer make iOS zoom the page.
screens; highlighting spaces its words out for a finger; matching keeps the
held card in view while the learner scrolls to its partner.
result will not be comparable. Nothing about the device is recorded.
with
--bitflow-controls-inset-end, and a printed flow shows the whole steprather than the part scrolled into view.
bitflow-studio@0.1.2
Patch Changes
e235646,7d7de7f,08d3067,7d7de7f]: