Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RickoNoNo3 committed Apr 18, 2022
1 parent f59317a commit cc3f728
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ declare type WinBoxState = {
/**
* # WinBox React Component
*
* Use refs to call focus(), isMax(), isMin(), getId() method if need. But for others, use props instead of refs.
* Use refs to call focus(), isMax(), isMin(), getId(), isClosed() methods if need. But for others, use props instead of refs.
* @see https://github.com/rickonono3/react-winbox
* @see https://github.com/nextapps-de/winbox
*/
Expand All @@ -69,6 +69,7 @@ declare class WinBox extends Component<WinBoxPropType, WinBoxState> {
getId: () => string | undefined;
isMax: () => boolean;
isMin: () => boolean;
isClosed: () => boolean;
renderChildren: () => void;
maintainStyle: () => void;
maintain: (args?: {
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var client_1 = require("react-dom/client");
/**
* # WinBox React Component
*
* Use refs to call focus(), isMax(), isMin(), getId() method if need. But for others, use props instead of refs.
* Use refs to call focus(), isMax(), isMin(), getId(), isClosed() methods if need. But for others, use props instead of refs.
* @see https://github.com/rickonono3/react-winbox
* @see https://github.com/nextapps-de/winbox
*/
Expand All @@ -48,6 +48,7 @@ var WinBox = /** @class */ (function (_super) {
_this.getId = function () { var _a; return ((_a = _this.winBoxObj) === null || _a === void 0 ? void 0 : _a.id); };
_this.isMax = function () { var _a, _b; return ((_b = (_a = _this.winBoxObj) === null || _a === void 0 ? void 0 : _a.max) !== null && _b !== void 0 ? _b : false); };
_this.isMin = function () { var _a, _b; return ((_b = (_a = _this.winBoxObj) === null || _a === void 0 ? void 0 : _a.min) !== null && _b !== void 0 ? _b : false); };
_this.isClosed = function () { return (_this.state.closed); };
_this.renderChildren = function () {
if (_this.state.closed || !_this.winBoxObj)
return;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-winbox",
"version": "1.1.2",
"version": "1.2.0",
"description": "The React component for WinBox.js. Full Reactful props and state. A window manager for React",
"private": false,
"homepage": "https://github.com/rickonono3/react-winbox",
Expand Down

0 comments on commit cc3f728

Please sign in to comment.