Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
121,909 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
v8.2.0-dev.4 | ||
v8.2.0-dev.3 | ||
v8.2.0-dev.2 | ||
v8.2.0-dev.1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
|
||
var Ref = {}; | ||
|
||
var Children = {}; | ||
|
||
var Context = {}; | ||
|
||
var Fragment = {}; | ||
|
||
var StrictMode = {}; | ||
|
||
var Suspense = {}; | ||
|
||
var SuspenseList = {}; | ||
|
||
var Uncurried = {}; | ||
|
||
exports.Ref = Ref; | ||
exports.Children = Children; | ||
exports.Context = Context; | ||
exports.Fragment = Fragment; | ||
exports.StrictMode = StrictMode; | ||
exports.Suspense = Suspense; | ||
exports.SuspenseList = SuspenseList; | ||
exports.Uncurried = Uncurried; | ||
/* No side effect */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
|
||
var Ref = {}; | ||
|
||
var Children = {}; | ||
|
||
var Context = {}; | ||
|
||
var Fragment = {}; | ||
|
||
var Suspense = {}; | ||
|
||
var SuspenseList = {}; | ||
|
||
exports.Ref = Ref; | ||
exports.Children = Children; | ||
exports.Context = Context; | ||
exports.Fragment = Fragment; | ||
exports.Suspense = Suspense; | ||
exports.SuspenseList = SuspenseList; | ||
/* No side effect */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
|
||
var Experimental = {}; | ||
|
||
var Ref = {}; | ||
|
||
var Props = {}; | ||
|
||
var Style; | ||
|
||
exports.Experimental = Experimental; | ||
exports.Ref = Ref; | ||
exports.Props = Props; | ||
exports.Style = Style; | ||
/* No side effect */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
'use strict'; | ||
|
||
var React = require("react"); | ||
var ReactDom = require("react-dom"); | ||
var Caml_option = require("bs-platform/lib/js/caml_option.js"); | ||
|
||
function renderToElementWithClassName(reactElement, className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
ReactDom.render(reactElement, elements[0]); | ||
} else { | ||
console.error("ReactDOMRe.renderToElementWithClassName: no element of class " + (className + " found in the HTML.")); | ||
} | ||
|
||
} | ||
|
||
function renderToElementWithId(reactElement, id) { | ||
var element = document.getElementById(id); | ||
if (element == null) { | ||
console.error("ReactDOMRe.renderToElementWithId : no element of id " + (id + " found in the HTML.")); | ||
} else { | ||
ReactDom.render(reactElement, element); | ||
} | ||
|
||
} | ||
|
||
function createRootWithClassName(className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
return Caml_option.some(ReactDom.createRoot(elements[0])); | ||
} | ||
|
||
} | ||
|
||
function createRootWithId(id) { | ||
var element = document.getElementById(id); | ||
if (!(element == null)) { | ||
return Caml_option.some(ReactDom.createRoot(element)); | ||
} | ||
|
||
} | ||
|
||
var Experimental = { | ||
createRootWithClassName: createRootWithClassName, | ||
createRootWithId: createRootWithId | ||
}; | ||
|
||
function hydrateToElementWithClassName(reactElement, className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
ReactDom.hydrate(reactElement, elements[0]); | ||
} else { | ||
console.error("ReactDOMRe.hydrateToElementWithClassName: no element of class " + (className + " found in the HTML.")); | ||
} | ||
|
||
} | ||
|
||
function hydrateToElementWithId(reactElement, id) { | ||
var element = document.getElementById(id); | ||
if (element == null) { | ||
console.error("ReactDOMRe.hydrateToElementWithId : no element of id " + (id + " found in the HTML.")); | ||
} else { | ||
ReactDom.hydrate(reactElement, element); | ||
} | ||
|
||
} | ||
|
||
var Ref = {}; | ||
|
||
function createElementVariadic(domClassName, props, children) { | ||
var variadicArguments = [ | ||
domClassName, | ||
props | ||
].concat(children); | ||
return React.createElement.apply(null, variadicArguments); | ||
} | ||
|
||
var Style; | ||
|
||
exports.renderToElementWithClassName = renderToElementWithClassName; | ||
exports.renderToElementWithId = renderToElementWithId; | ||
exports.Experimental = Experimental; | ||
exports.hydrateToElementWithClassName = hydrateToElementWithClassName; | ||
exports.hydrateToElementWithId = hydrateToElementWithId; | ||
exports.Ref = Ref; | ||
exports.createElementVariadic = createElementVariadic; | ||
exports.Style = Style; | ||
/* react Not a pure module */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
'use strict'; | ||
|
||
var React = require("react"); | ||
var ReactDom = require("react-dom"); | ||
|
||
function renderToElementWithClassName(reactElement, className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
ReactDom.render(reactElement, elements[0]); | ||
} else { | ||
console.error("ReactDOMRe.renderToElementWithClassName: no element of class " + (className + " found in the HTML.")); | ||
} | ||
|
||
} | ||
|
||
function renderToElementWithId(reactElement, id) { | ||
var element = document.getElementById(id); | ||
if (element == null) { | ||
console.error("ReactDOMRe.renderToElementWithId : no element of id " + (id + " found in the HTML.")); | ||
} else { | ||
ReactDom.render(reactElement, element); | ||
} | ||
|
||
} | ||
|
||
function createRootWithClassName(className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
return { | ||
TAG: /* Ok */0, | ||
_0: ReactDom.createRoot(elements[0]) | ||
}; | ||
} else { | ||
return { | ||
TAG: /* Error */1, | ||
_0: "ReactDOMRe.Unstable.createRootWithClassName: no element of class " + (className + " found in the HTML.") | ||
}; | ||
} | ||
} | ||
|
||
function createRootWithId(id) { | ||
var element = document.getElementById(id); | ||
if (element == null) { | ||
return { | ||
TAG: /* Error */1, | ||
_0: "ReactDOMRe.Unstable.createRootWithId: no element of id " + (id + " found in the HTML.") | ||
}; | ||
} else { | ||
return { | ||
TAG: /* Ok */0, | ||
_0: ReactDom.createRoot(element) | ||
}; | ||
} | ||
} | ||
|
||
var Experimental = { | ||
createRootWithClassName: createRootWithClassName, | ||
createRootWithId: createRootWithId | ||
}; | ||
|
||
function hydrateToElementWithClassName(reactElement, className) { | ||
var elements = document.getElementsByClassName(className); | ||
if (elements.length !== 0) { | ||
ReactDom.hydrate(reactElement, elements[0]); | ||
} else { | ||
console.error("ReactDOMRe.hydrateToElementWithClassName: no element of class " + (className + " found in the HTML.")); | ||
} | ||
|
||
} | ||
|
||
function hydrateToElementWithId(reactElement, id) { | ||
var element = document.getElementById(id); | ||
if (element == null) { | ||
throw { | ||
RE_EXN_ID: "Invalid_argument", | ||
_1: "ReactDOMRe.hydrateToElementWithId : no element of id " + (id + " found in the HTML."), | ||
Error: new Error() | ||
}; | ||
} | ||
ReactDom.hydrate(reactElement, element); | ||
|
||
} | ||
|
||
var Ref = {}; | ||
|
||
function createElementVariadic(domClassName, props, children) { | ||
var variadicArguments = [ | ||
domClassName, | ||
props | ||
].concat(children); | ||
return React.createElement.apply(null, variadicArguments); | ||
} | ||
|
||
function unsafeAddProp(style, key, value) { | ||
var dict = {}; | ||
dict[key] = value; | ||
return Object.assign({}, style, dict); | ||
} | ||
|
||
var Style = { | ||
unsafeAddProp: unsafeAddProp | ||
}; | ||
|
||
exports.renderToElementWithClassName = renderToElementWithClassName; | ||
exports.renderToElementWithId = renderToElementWithId; | ||
exports.Experimental = Experimental; | ||
exports.hydrateToElementWithClassName = hydrateToElementWithClassName; | ||
exports.hydrateToElementWithId = hydrateToElementWithId; | ||
exports.Ref = Ref; | ||
exports.createElementVariadic = createElementVariadic; | ||
exports.Style = Style; | ||
/* react Not a pure module */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
|
||
|
||
function unsafeAddProp(style, key, value) { | ||
var dict = {}; | ||
dict[key] = value; | ||
return Object.assign({}, style, dict); | ||
} | ||
|
||
exports.unsafeAddProp = unsafeAddProp; | ||
/* No side effect */ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
'use strict'; | ||
|
||
|
||
var Synthetic = {}; | ||
|
||
var Clipboard = {}; | ||
|
||
var Composition = {}; | ||
|
||
var Keyboard = {}; | ||
|
||
var Focus = {}; | ||
|
||
var Form = {}; | ||
|
||
var Mouse = {}; | ||
|
||
var Pointer = {}; | ||
|
||
var $$Selection = {}; | ||
|
||
var $$Touch = {}; | ||
|
||
var UI = {}; | ||
|
||
var Wheel = {}; | ||
|
||
var Media = {}; | ||
|
||
var $$Image = {}; | ||
|
||
var Animation = {}; | ||
|
||
var Transition = {}; | ||
|
||
exports.Synthetic = Synthetic; | ||
exports.Clipboard = Clipboard; | ||
exports.Composition = Composition; | ||
exports.Keyboard = Keyboard; | ||
exports.Focus = Focus; | ||
exports.Form = Form; | ||
exports.Mouse = Mouse; | ||
exports.Pointer = Pointer; | ||
exports.$$Selection = $$Selection; | ||
exports.$$Touch = $$Touch; | ||
exports.UI = UI; | ||
exports.Wheel = Wheel; | ||
exports.Media = Media; | ||
exports.$$Image = $$Image; | ||
exports.Animation = Animation; | ||
exports.Transition = Transition; | ||
/* No side effect */ |
Oops, something went wrong.