Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 29ee4b6

Browse files
Updated change log for v1.0.0 release. Default export is now DatGui rather than just Dat
1 parent cadb831 commit 29ee4b6

File tree

9 files changed

+32
-21
lines changed

9 files changed

+32
-21
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release Notes
22

3+
## (2017-10-09) `v1.0.0`
4+
5+
### Added
6+
7+
* A lot of documentation to the README
8+
* Deploy script to `./example` app which deploys to github pages
9+
10+
### Changed
11+
12+
* Changed default export from `Dat` to `DatGui`
13+
314
## (2017-10-08) `v0.0.21`
415

516
### Changed

build/react-dat-gui.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35758,21 +35758,21 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
3575835758

3575935759
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3576035760

35761-
var Dat = function (_Component) {
35762-
_inherits(Dat, _Component);
35761+
var DatGui = function (_Component) {
35762+
_inherits(DatGui, _Component);
3576335763

35764-
function Dat() {
35764+
function DatGui() {
3576535765
var _ref;
3576635766

3576735767
var _temp, _this, _ret;
3576835768

35769-
_classCallCheck(this, Dat);
35769+
_classCallCheck(this, DatGui);
3577035770

3577135771
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
3577235772
args[_key] = arguments[_key];
3577335773
}
3577435774

35775-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Dat.__proto__ || Object.getPrototypeOf(Dat)).call.apply(_ref, [this].concat(args))), _this), _this.handleUpdateValue = function (path, value) {
35775+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatGui.__proto__ || Object.getPrototypeOf(DatGui)).call.apply(_ref, [this].concat(args))), _this), _this.handleUpdateValue = function (path, value) {
3577635776
var _this$props = _this.props,
3577735777
data = _this$props.data,
3577835778
onUpdate = _this$props.onUpdate;
@@ -35783,7 +35783,7 @@ var Dat = function (_Component) {
3578335783
}, _temp), _possibleConstructorReturn(_this, _ret);
3578435784
}
3578535785

35786-
_createClass(Dat, [{
35786+
_createClass(DatGui, [{
3578735787
key: 'renderChildren',
3578835788
value: function renderChildren() {
3578935789
var _this2 = this;
@@ -35826,10 +35826,10 @@ var Dat = function (_Component) {
3582635826
}
3582735827
}]);
3582835828

35829-
return Dat;
35829+
return DatGui;
3583035830
}(_react.Component);
3583135831

35832-
Dat.propTypes = {
35832+
DatGui.propTypes = {
3583335833
data: _propTypes2.default.object.isRequired,
3583435834
children: _propTypes2.default.node.isRequired,
3583535835
onUpdate: _propTypes2.default.func.isRequired,
@@ -35838,11 +35838,11 @@ Dat.propTypes = {
3583835838
className: _propTypes2.default.string,
3583935839
style: _propTypes2.default.object
3584035840
};
35841-
Dat.defaultProps = {
35841+
DatGui.defaultProps = {
3584235842
liveUpdate: true,
3584335843
labelWidth: 40
3584435844
};
35845-
exports.default = Dat;
35845+
exports.default = DatGui;
3584635846

3584735847
/***/ })
3584835848
/******/ ]);

build/react-dat-gui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import './react-dat-gui/style/dat.css';
22

3-
import Dat, {
3+
import DatGui, {
44
DatBoolean,
55
DatButton,
66
DatColor,
@@ -97,7 +97,7 @@ class App extends Component {
9797
<b>Nested string value:</b> {data.nested.string}
9898
</div>
9999
</section>
100-
<Dat data={data} onUpdate={this.handleUpdate}>
100+
<DatGui data={data} onUpdate={this.handleUpdate}>
101101
<DatPresets label='Presets' options={presets} onUpdate={this.handleUpdate} />
102102
<DatString path="string" label="String" />
103103
<DatNumber path="minMaxNumber" label="Number" min={0} max={100} step={1} />
@@ -118,7 +118,7 @@ class App extends Component {
118118
</DatFolder>
119119
</DatFolder>
120120
</DatFolder>
121-
</Dat>
121+
</DatGui>
122122
</main>
123123
);
124124
}

dev/src/react-dat-gui/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import cx from 'classnames';
66
import isUndefined from 'lodash.isundefined';
77
import set from 'lodash.set';
88

9-
export default class Dat extends Component {
9+
export default class DatGui extends Component {
1010
static propTypes = {
1111
data: PropTypes.object.isRequired,
1212
children: PropTypes.node.isRequired,

example/src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '../node_modules/react-dat-gui/build/react-dat-gui.css';
22

3-
import Dat, {
3+
import DatGui, {
44
DatBoolean,
55
DatButton,
66
DatColor,
@@ -97,7 +97,7 @@ class App extends Component {
9797
<b>Nested string value:</b> {data.nested.string}
9898
</div>
9999
</section>
100-
<Dat data={data} onUpdate={this.handleUpdate}>
100+
<DatGui data={data} onUpdate={this.handleUpdate}>
101101
<DatPresets label='Presets' options={presets} onUpdate={this.handleUpdate} />
102102
<DatString path="string" label="String" />
103103
<DatNumber path="minMaxNumber" label="Number" min={0} max={100} step={1} />
@@ -118,7 +118,7 @@ class App extends Component {
118118
</DatFolder>
119119
</DatFolder>
120120
</DatFolder>
121-
</Dat>
121+
</DatGui>
122122
</main>
123123
);
124124
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dat-gui",
3-
"version": "0.0.21",
3+
"version": "1.0.0",
44
"description": "dat.GUI reimagined for React",
55
"main": "build/react-dat-gui.js",
66
"style": "build/react-dat-gui.css",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import cx from 'classnames';
66
import isUndefined from 'lodash.isundefined';
77
import set from 'lodash.set';
88

9-
export default class Dat extends Component {
9+
export default class DatGui extends Component {
1010
static propTypes = {
1111
data: PropTypes.object.isRequired,
1212
children: PropTypes.node.isRequired,

0 commit comments

Comments
 (0)