Skip to content

Commit

Permalink
Merge branch 'master' into updates
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhermoso committed Jun 18, 2023
2 parents 7352a64 + f46cf39 commit caf78c0
Show file tree
Hide file tree
Showing 7 changed files with 521 additions and 515 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.94.8 (2023-06-15)

## Improvements

- On RTL system, do not flip the direction of the virtual keyboard keycaps rows

## 0.94.7 (2023-06-08)

## Improvements
Expand Down
1,000 changes: 499 additions & 501 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kedyou/mathlive",
"version": "0.94.7",
"version": "0.94.8",
"description": "A web component for math input",
"license": "MIT",
"funding": {
Expand Down Expand Up @@ -127,7 +127,7 @@
},
"prettier": "@cortex-js/prettier-config",
"dependencies": {
"@cortex-js/compute-engine": "^0.12.2"
"@cortex-js/compute-engine": "0.12.2"
},
"devDependencies": {
"@arnog/esbuild-plugin-less": "^1.1.0",
Expand Down
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes
# set -x # for debuging, trace what is being executed.

export EMPH="\033[33m"

export BASENAME="\033[40m MathLive \033[0;0m " # `basename "$0"`
export DOT="\033[32m 羽 \033[0;0m" # Hourglass
export CHECK="\033[32m ✔ \033[0;0m"
export DIM="\033[0;2m"
export RESET="\033[0;0m"
export DOT="\033[32m 羽 \033[0;0m" # Hourglass
export EMPH="\033[33m"
export ERROR="\033[31;7m ERROR \033[0;0m"
export LINECLEAR="\033[1G\033[2K" # position to column 1; erase whole line
export RESET="\033[0;0m"

cd "$(dirname "$0")/.."

Expand Down
16 changes: 9 additions & 7 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context({
'./test/mathfield-states/index.html',
'./test/prompts/index.html',
'./test/playwright-test-page/index.html',
'./test/playwright-test-page/iframe_test.html'
'./test/playwright-test-page/iframe_test.html',
],
outdir: './dist',
loader: {
Expand All @@ -36,10 +36,12 @@ context({
sourceRoot: '../src',
sourcesContent: false,
}).then((ctx) =>
ctx.serve({ host: '127.0.0.1', port: 9029, servedir: '.' }).then(({ host, port }) => {
if (host === '0.0.0.0') host = 'localhost';
console.log(
` 🚀 Server ready \u001b[1;35m http://${host}:${port}/dist/smoke/\u001b[0m`
);
})
ctx
.serve({ host: '127.0.0.1', port: 9029, servedir: '.' })
.then(({ host, port }) => {
if (host === '0.0.0.0') host = 'localhost';
console.log(
` 🚀 Server ready \u001b[1;35m http://${host}:${port}/dist/smoke/\u001b[0m`
);
})
);
2 changes: 1 addition & 1 deletion src/virtual-keyboard/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ function makeLayer(
if (layer.rows) {
layerMarkup += `<div class='MLK__rows'>`;
for (const row of layer.rows) {
layerMarkup += `<div class=row>`;
layerMarkup += `<div dir='ltr' class=row>`;
for (const keycap of row) {
if (keycap) {
const keycapId = keyboard.registerKeycap(keycap);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// which include NodeJS definitions that are not applicable to a web app
// but only those type definitions that are required
"typeRoots": ["./src/public"],
"types": ["@cortex-js/compute-engine"],
// "types": ["@cortex-js/compute-engine"],

"emitDecoratorMetadata": false,
"experimentalDecorators": false,
Expand Down

0 comments on commit caf78c0

Please sign in to comment.