Implements RFC #2963.
Leftover tasks:
- [x] Provide companion PR to vscode-lean4 (leanprover/vscode-lean4#376)
- [x] Companion PR to std4 (leanprover/std4#467)
- [x] Companion PR to ProofWidgets4
(leanprover-community/ProofWidgets4#36)
- [X] Companion commit to mathlib4
(0f4660f655)
- [ ] ~~Update the manual chapter~~ (will do in a follow-up)
45 lines
2.1 KiB
Text
45 lines
2.1 KiB
Text
{"widgets":
|
|
[{"range":
|
|
{"start": {"line": 12, "character": 0},
|
|
"end": {"line": 12, "character": 19}},
|
|
"props": {},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"}]}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"widgets":
|
|
[{"range":
|
|
{"start": {"line": 19, "character": 0},
|
|
"end": {"line": 19, "character": 63}},
|
|
"props": {"name": "lean"},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"}]}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"widgets":
|
|
[{"range": null,
|
|
"props": {"name": "local"},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"},
|
|
{"range": null,
|
|
"props": {"name": "global"},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"}]}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"widgets":
|
|
[{"range": null,
|
|
"props": {"name": "scoped"},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"},
|
|
{"range": null,
|
|
"props": {"name": "global"},
|
|
"javascriptHash": "2874772427606622741",
|
|
"id": "helloWidget"}]}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"sourcetext":
|
|
"\n import * as React from 'react';\n export default function(props) {\n const name = props.name || 'world'\n return React.createElement('p', {}, name + '!')\n }"}
|
|
{"widgets": []}
|