Skip to content

Commit

Permalink
chore(release): 1.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# 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
semantic-release-bot committed Sep 8, 2021
1 parent a5ae2f5 commit ccf16ff
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
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))
7 changes: 7 additions & 0 deletions dist/es5/index.d.ts
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 {};
22 changes: 22 additions & 0 deletions dist/es5/index.js
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;
7 changes: 7 additions & 0 deletions dist/es6/index.d.ts
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 {};
18 changes: 18 additions & 0 deletions dist/es6/index.js
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);
};

0 comments on commit ccf16ff

Please sign in to comment.