Skip to content

Commit 5883798

Browse files
authored
material updates (#255)
* various updates * fix color * updated devicescript * more details
1 parent 909f7f1 commit 5883798

File tree

5 files changed

+1197
-689
lines changed

5 files changed

+1197
-689
lines changed

jacdac-ts

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,51 @@
55
"version": "0.1.0",
66
"author": "Microsoft",
77
"dependencies": {
8-
"@axe-core/react": "^4.4.5",
8+
"@axe-core/react": "^4.6.0",
99
"@blockly/block-dynamic-connection": "^0.1.14",
1010
"@blockly/continuous-toolbox": "^1.0.18",
1111
"@blockly/disable-top-blocks": "^0.1.20",
1212
"@blockly/field-slider": "^2.1.30",
1313
"@blockly/theme-dark": "^2.0.6",
1414
"@blockly/theme-modern": "^2.1.24",
15-
"@emotion/react": "^11.10.4",
16-
"@emotion/styled": "^11.10.4",
15+
"@emotion/react": "^11.10.5",
16+
"@emotion/styled": "^11.10.5",
1717
"@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^3.0.2",
18-
"@jscad/modeling": "^2.10.0",
19-
"@jscad/stl-serializer": "^2.1.12",
18+
"@jscad/modeling": "^2.11.0",
19+
"@jscad/stl-serializer": "^2.1.13",
2020
"@mdx-js/react": "^2.1.3",
21-
"@microsoft/applicationinsights-web": "^2.8.9",
22-
"@mui/icons-material": "^5.10.6",
23-
"@mui/lab": "^5.0.0-alpha.102",
24-
"@mui/material": "^5.10.8",
25-
"@mui/x-data-grid": "^5.17.7",
26-
"@octokit/core": "^4.0.5",
27-
"@parcel/transformer-typescript-types": "^2.7.0",
28-
"@react-three/drei": "^9.32.7",
29-
"@react-three/fiber": "^8.8.8",
30-
"@tidyjs/tidy": "^2.5.1",
21+
"@microsoft/applicationinsights-web": "^2.8.10",
22+
"@mui/icons-material": "^5.11.9",
23+
"@mui/lab": "^5.0.0-alpha.120",
24+
"@mui/material": "^5.11.9",
25+
"@mui/x-data-grid": "^5.17.23",
26+
"@octokit/core": "^4.2.0",
27+
"@parcel/transformer-typescript-types": "^2.8.3",
28+
"@react-three/drei": "^9.56.24",
29+
"@react-three/fiber": "^8.11.1",
30+
"@tidyjs/tidy": "^2.5.2",
3131
"@types/json-schema": "^7.0.11",
32-
"@types/react": "^18.0.21",
33-
"@types/three": "^0.144.0",
32+
"@types/react": "^18.0.28",
33+
"@types/three": "^0.149.0",
3434
"@types/use-sync-external-store": "^0.0.3",
35-
"@types/w3c-web-serial": "^1.0.2",
35+
"@types/w3c-web-serial": "^1.0.3",
3636
"@types/w3c-web-usb": "^1.0.6",
37-
"@types/web-bluetooth": "^0.0.15",
37+
"@types/web-bluetooth": "^0.0.16",
3838
"@types/wicg-file-system-access": "^2020.9.5",
39-
"@typescript-eslint/eslint-plugin": "^5.39.0",
40-
"@typescript-eslint/parser": "^5.39.0",
39+
"@typescript-eslint/eslint-plugin": "^5.52.0",
40+
"@typescript-eslint/parser": "^5.52.0",
4141
"accessible-nprogress": "^2.1.2",
4242
"assert": "^2.0.0",
4343
"blockly": "^6.20210701.0",
4444
"bowser": "^2.11.0",
45-
"compare-versions": "^5.0.1",
45+
"compare-versions": "^5.0.3",
4646
"concurrently": "^7.4.0",
47-
"console-feed": "^3.4.0",
48-
"d3-array": "^3.2.0",
47+
"console-feed": "^3.4.3",
48+
"d3-array": "^3.2.2",
4949
"dns-packet": "^5.4.0",
50-
"eslint": "^8.24.0",
51-
"eslint-plugin-jsx-a11y": "^6.6.1",
52-
"eslint-plugin-react": "^7.31.8",
50+
"eslint": "^8.34.0",
51+
"eslint-plugin-jsx-a11y": "^6.7.1",
52+
"eslint-plugin-react": "^7.32.2",
5353
"gatsby": "^4.24.1",
5454
"gatsby-plugin-catch-links": "^4.24.0",
5555
"gatsby-plugin-image": "^2.24.0",
@@ -79,50 +79,50 @@
7979
"gltfjsx": "^5.0.2",
8080
"howler": "^2.2.3",
8181
"is-svg": "^4.3.2",
82-
"jsep": "^1.3.6",
83-
"makerjs": "^0.17.1",
82+
"jsep": "^1.3.8",
83+
"makerjs": "^0.17.6",
8484
"microbundle": "^0.14.2",
85-
"minisearch": "^5.0.0",
86-
"notistack": "^2.0.5",
85+
"minisearch": "^6.0.1",
86+
"notistack": "^2.0.8",
8787
"octokit-plugin-create-pull-request": "pelikhan/octokit-plugin-create-pull-request#forkbinarydist",
8888
"paho-mqtt": "^1.1.0",
8989
"papaparse": "^5.3.2",
90-
"postcss": "^8.4.17",
91-
"prettier": "2.7.1",
90+
"postcss": "^8.4.21",
91+
"prettier": "2.8.4",
9292
"prism-react-renderer": "^1.3.5",
9393
"prismjs": "^1.29.0",
9494
"prop-types": "^15.8.1",
95-
"puppeteer": "^18.0.5",
95+
"puppeteer": "^19.7.0",
9696
"qrcode": "^1.5.1",
9797
"react": "^18.2.0",
9898
"react-blockly": "^7.0.1",
9999
"react-color": "^2.19.3",
100100
"react-dom": "^18.2.0",
101101
"react-draggable": "^4.4.5",
102-
"react-intersection-observer": "^9.4.0",
103-
"react-markdown": "^8.0.3",
104-
"react-minisearch": "^5.0.0",
102+
"react-intersection-observer": "^9.4.2",
103+
"react-markdown": "^8.0.5",
104+
"react-minisearch": "^6.0.2",
105105
"react-piano": "^3.1.3",
106-
"react-player": "^2.11.0",
107-
"react-simple-keyboard": "^3.4.221",
106+
"react-player": "^2.11.2",
107+
"react-simple-keyboard": "^3.5.26",
108108
"react-vega": "^7.6.0",
109109
"react-virtualized-auto-sizer": "^1.0.7",
110-
"react-window": "^1.8.7",
111-
"regenerator-runtime": "^0.13.9",
110+
"react-window": "^1.8.8",
111+
"regenerator-runtime": "^0.13.11",
112112
"remark-gfm": "^1",
113-
"sanitize-html": "^2.7.2",
114-
"simple-statistics": "^7.7.6",
113+
"sanitize-html": "^2.9.0",
114+
"simple-statistics": "^7.8.3",
115115
"slug": "^8.2.2",
116-
"three": "^0.145.0",
116+
"three": "^0.149.0",
117117
"trim": "^1.0.1",
118118
"use-debounce": "^7.0.1",
119119
"use-editable": "^2.3.3",
120120
"use-sync-external-store": "^1.2.0",
121-
"util": "^0.12.4",
121+
"util": "^0.12.5",
122122
"vega": "^5.22.1",
123-
"vega-lite": "^5.5.0",
124-
"ws": "^8.9.0",
125-
"xmlhttprequest-ssl": "^2.0.0"
123+
"vega-lite": "^5.6.1",
124+
"ws": "^8.12.1",
125+
"xmlhttprequest-ssl": "^2.1.0"
126126
},
127127
"keywords": [
128128
"jacdac"

src/components/layout.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,6 @@ function LayoutWithDarkMode(props: LayoutProps) {
176176
function LayoutWithMdx(props: LayoutProps) {
177177
const { darkMode } = useContext(DarkModeContext)
178178
const isDark = darkMode === "dark"
179-
const background = isDark
180-
? {
181-
default: "#1e1e1e",
182-
paper: "#070707",
183-
}
184-
: undefined
185179
const themeDef: DeprecatedThemeOptions = {
186180
palette: {
187181
primary: {
@@ -192,9 +186,14 @@ function LayoutWithMdx(props: LayoutProps) {
192186
},
193187
contrastThreshold: isDark ? 5.1 : 3.1,
194188
mode: darkMode,
195-
background,
196189
},
197190
}
191+
if (isDark)
192+
themeDef.palette.background = {
193+
default: "#1e1e1e",
194+
paper: "#070707",
195+
}
196+
198197
const rawTheme = createTheme(themeDef)
199198
const theme = responsiveFontSizes(rawTheme)
200199

src/pages/clients/devicescript.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ order: 4
55

66
# DeviceScript (beta)
77

8-
**Beta: the python layer is still in pre-release mode and beta quality.**
8+
Microsoft DeviceScript is a TypeScript-like language and portable runtime built on top of Jacdac service abstractions.
99

10-
Microsoft DeviceScript is a TypeScript-like language built on top Jacdac services.
10+
DeviceScript comes with a full Visual Studio Code integration,
11+
with TypeScript syntax and type checking, debugging
12+
and live device interaction.
1113

1214
```typescript
1315
const sensor = new ds.AirPressure()
@@ -25,4 +27,4 @@ DeviceScript uses the Jacdac services to provide an abstraction layer between th
2527

2628
## More information
2729

28-
- read the [MicroCode user guide](https://microsoft.github.io/devicescript)
30+
- read the [DeviceScript user guide](https://microsoft.github.io/devicescript/)

0 commit comments

Comments
 (0)