Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,834 changes: 0 additions & 1,834 deletions packages/@rescript/runtime/JsxDOMStyle.res

This file was deleted.

14 changes: 1 addition & 13 deletions packages/artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@
"lib/es6/Js_weakmap.mjs",
"lib/es6/Js_weakset.mjs",
"lib/es6/Jsx.mjs",
"lib/es6/JsxDOM.mjs",
"lib/es6/JsxDOMStyle.mjs",
"lib/es6/JsxEvent.mjs",
"lib/es6/Obj.mjs",
"lib/es6/Pervasives.mjs",
Expand Down Expand Up @@ -281,8 +279,6 @@
"lib/js/Js_weakmap.cjs",
"lib/js/Js_weakset.cjs",
"lib/js/Jsx.cjs",
"lib/js/JsxDOM.cjs",
"lib/js/JsxDOMStyle.cjs",
"lib/js/JsxEvent.cjs",
"lib/js/Obj.cjs",
"lib/js/Pervasives.cjs",
Expand Down Expand Up @@ -806,14 +802,6 @@
"lib/ocaml/Jsx.cmj",
"lib/ocaml/Jsx.cmt",
"lib/ocaml/Jsx.res",
"lib/ocaml/JsxDOM.cmi",
"lib/ocaml/JsxDOM.cmj",
"lib/ocaml/JsxDOM.cmt",
"lib/ocaml/JsxDOM.res",
"lib/ocaml/JsxDOMStyle.cmi",
"lib/ocaml/JsxDOMStyle.cmj",
"lib/ocaml/JsxDOMStyle.cmt",
"lib/ocaml/JsxDOMStyle.res",
"lib/ocaml/JsxEvent.cmi",
"lib/ocaml/JsxEvent.cmj",
"lib/ocaml/JsxEvent.cmt",
Expand Down Expand Up @@ -1296,4 +1284,4 @@
"lib/ocaml/Stdlib_WeakSet.res",
"package.json"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type fragmentProps = {children?: element}
/* The Elements module is the equivalent to the ReactDOM module in React. This holds things relevant to _lowercase_ JSX elements. */
module Elements = {
/* Here you can control what props lowercase JSX elements should have.
A base that the React JSX transform uses is provided via JsxDOM.domProps,
A base that the React JSX transform uses is provided via ReactDOMProps.t,
but you can make this anything. The editor tooling will support
autocompletion etc for your specific type. */
type props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@
addValueReference Hooks.res:10:75 --> Hooks.res:5:7
addValueReference Hooks.res:9:7 --> React.res:7:0
addValueReference Hooks.res:13:54 --> React.res:7:0
addValueReference Hooks.res:13:54 --> React.res:7:0
addValueReference Hooks.res:13:40 --> Hooks.res:5:7
addValueReference Hooks.res:13:26 --> Hooks.res:5:14
addValueReference Hooks.res:13:54 --> React.res:7:0
addValueReference Hooks.res:14:5 --> ImportHooks.res:13:0
addValueReference Hooks.res:17:7 --> React.res:7:0
addValueReference Hooks.res:17:32 --> React.res:7:0
Expand Down
2 changes: 1 addition & 1 deletion tests/analysis_tests/tests/src/expected/Completion.res.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,7 @@ Path event
ContextPath CArgument CJsxPropValue [div] onMouseEnter($0)
ContextPath CJsxPropValue [div] onMouseEnter
Path ReactDOM.domProps
Path JsxDOM.domProps
CPPipe pathFromEnv:JsxEvent.Mouse found:false
Path JsxEvent.Mouse.pr
Path pr
[{
"label": "JsxEvent.Mouse.preventDefault",
"kind": 12,
"tags": [],
"detail": "t => unit",
"documentation": null
}]
[]

Complete src/CompletionInferValues.res 44:50
posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:11->44:56]
Expand Down
10 changes: 2 additions & 8 deletions tests/analysis_tests/tests/src/expected/CompletionJsx.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,8 @@ Completable: Cjsx([h1], hidd, [hidd])
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Resolved opens 1 Stdlib
Path ReactDOM.domProps
Path JsxDOM.domProps
[{
"label": "hidden",
"kind": 4,
"tags": [],
"detail": "bool",
"documentation": null
}]
[completing-lowercase-jsx] could not find element props to complete from.
[]

Complete src/CompletionJsx.res 61:30
posCursor:[61:30] posNoWhite:[61:28] Found expr:[61:3->61:29]
Expand Down
27 changes: 2 additions & 25 deletions tests/analysis_tests/tests/src/expected/CompletionJsxProps.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,20 +223,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Resolved opens 1 Stdlib
ContextPath CJsxPropValue [div] muted
Path ReactDOM.domProps
Path JsxDOM.domProps
[{
"label": "true",
"kind": 4,
"tags": [],
"detail": "bool",
"documentation": null
}, {
"label": "false",
"kind": 4,
"tags": [],
"detail": "bool",
"documentation": null
}]
[]

Complete src/CompletionJsxProps.res 18:29
posCursor:[18:29] posNoWhite:[18:28] Found expr:[18:11->18:32]
Expand All @@ -246,17 +233,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Resolved opens 1 Stdlib
ContextPath CJsxPropValue [div] onMouseEnter
Path ReactDOM.domProps
Path JsxDOM.domProps
[{
"label": "event => event",
"kind": 12,
"tags": [],
"detail": "JsxEvent.Mouse.t => unit",
"documentation": null,
"sortText": "A",
"insertText": "{${1:event} => ${0:event}}",
"insertTextFormat": 2
}]
[]

Complete src/CompletionJsxProps.res 22:52
posCursor:[22:52] posNoWhite:[22:51] Found expr:[22:11->22:52]
Expand Down
10 changes: 2 additions & 8 deletions tests/analysis_tests/tests/src/expected/Div.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Completable: Cjsx([div], dangerous, [dangerous])
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Resolved opens 1 Stdlib
Path ReactDOM.domProps
Path JsxDOM.domProps
[{
"label": "dangerouslySetInnerHTML",
"kind": 4,
"tags": [],
"detail": "{\"__html\": string}",
"documentation": null
}]
[completing-lowercase-jsx] could not find element props to complete from.
[]

12 changes: 1 addition & 11 deletions tests/analysis_tests/tests/src/expected/Jsx2.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Resolved opens 1 Stdlib
ContextPath CJsxPropValue [div] x
Path ReactDOM.domProps
Path JsxDOM.domProps
[{
"label": "\"\"",
"kind": 12,
"tags": [],
"detail": "string",
"documentation": null,
"sortText": "A",
"insertText": "{\"$0\"}",
"insertTextFormat": 2
}]
[]

Complete src/Jsx2.res 150:21
posCursor:[150:21] posNoWhite:[150:20] Found expr:[150:11->150:32]
Expand Down
Loading
Loading