-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 1.0.0 (2021-09-08) ### Bug Fixes * man and module paths ([931bc9f](931bc9f)) ### Features * added callback wrapper ([bcaa7cb](bcaa7cb)) * adds automated release workflow ([edbb496](edbb496)) * semantic release setup ([2e6ee76](2e6ee76))
- Loading branch information
1 parent
a5ae2f5
commit ccf16ff
Showing
5 changed files
with
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 1.0.0 (2021-09-08) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* man and module paths ([931bc9f](https://github.com/Tyson-Skiba/react-callback/commit/931bc9fd6353feb6efe2d7f84acd33e98116c2fa)) | ||
|
||
|
||
### Features | ||
|
||
* added callback wrapper ([bcaa7cb](https://github.com/Tyson-Skiba/react-callback/commit/bcaa7cb3f3e5951f12d85fa8f1fd96d30aed3793)) | ||
* adds automated release workflow ([edbb496](https://github.com/Tyson-Skiba/react-callback/commit/edbb4966f8709e430355dd334d9fc3d5b37781bf)) | ||
* semantic release setup ([2e6ee76](https://github.com/Tyson-Skiba/react-callback/commit/2e6ee76b09b23a23a5ffd427ef94b0befad70b73)) |
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,7 @@ | ||
import React from 'react'; | ||
interface CallbackProps { | ||
callback?: () => void; | ||
children: React.ReactChild | React.ReactNodeArray; | ||
} | ||
export declare const CallbackWrapper: React.FC<CallbackProps>; | ||
export {}; |
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 __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CallbackWrapper = void 0; | ||
var jsx_runtime_1 = require("react/jsx-runtime"); | ||
var CallbackWrapper = function (_a) { | ||
var callback = _a.callback, children = _a.children; | ||
return callback | ||
? (0, jsx_runtime_1.jsx)("div", __assign({ ref: callback }, { children: children }), void 0) | ||
: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }, void 0); | ||
}; | ||
exports.CallbackWrapper = CallbackWrapper; |
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,7 @@ | ||
import React from 'react'; | ||
interface CallbackProps { | ||
callback?: () => void; | ||
children: React.ReactChild | React.ReactNodeArray; | ||
} | ||
export declare const CallbackWrapper: React.FC<CallbackProps>; | ||
export {}; |
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,18 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; | ||
export var CallbackWrapper = function (_a) { | ||
var callback = _a.callback, children = _a.children; | ||
return callback | ||
? _jsx("div", __assign({ ref: callback }, { children: children }), void 0) | ||
: _jsx(_Fragment, { children: children }, void 0); | ||
}; |