Skip to content

Commit b94be92

Browse files
chore(release): 1.5.4 [skip ci]
## [1.5.4](v1.5.3...v1.5.4) (2023-04-22) ### Bug Fixes * use keyword args ([4a8423b](4a8423b))
1 parent 5948e22 commit b94be92

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.5.4](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.5.3...v1.5.4) (2023-04-22)
2+
3+
4+
### Bug Fixes
5+
6+
* use keyword args ([4a8423b](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/4a8423b8179f5ec1c08c25613e46ee576ddc55f8))
7+
18
## [1.5.3](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.5.2...v1.5.3) (2023-04-22)
29

310

lib/cjs/helpers.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import React from 'react';
22
import { DividerProps } from '@mui/material';
33
export declare function openInNewTab(url: string, target?: string): void;
4-
export declare function insertDividerBetweenElements(elements: React.ReactElement[], dividerProps?: DividerProps): React.ReactElement[];
4+
export declare function insertDividerBetweenElements({ elements, dividerProps }: {
5+
elements: React.ReactElement[];
6+
dividerProps?: DividerProps;
7+
}): React.ReactElement[];

lib/cjs/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ function openInNewTab(url, target) {
2222
window.open(url, target);
2323
}
2424
exports.openInNewTab = openInNewTab;
25-
function insertDividerBetweenElements(elements, dividerProps) {
25+
function insertDividerBetweenElements(_a) {
26+
var elements = _a.elements, dividerProps = _a.dividerProps;
2627
return elements.map(function (element, index) { return react_1.default.createElement(react_1.default.Fragment, null,
2728
element,
2829
index !== elements.length - 1

lib/esm/helpers.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import React from 'react';
22
import { DividerProps } from '@mui/material';
33
export declare function openInNewTab(url: string, target?: string): void;
4-
export declare function insertDividerBetweenElements(elements: React.ReactElement[], dividerProps?: DividerProps): React.ReactElement[];
4+
export declare function insertDividerBetweenElements({ elements, dividerProps }: {
5+
elements: React.ReactElement[];
6+
dividerProps?: DividerProps;
7+
}): React.ReactElement[];

lib/esm/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export function openInNewTab(url, target) {
1515
if (target === void 0) { target = '_blank'; }
1616
window.open(url, target);
1717
}
18-
export function insertDividerBetweenElements(elements, dividerProps) {
18+
export function insertDividerBetweenElements(_a) {
19+
var elements = _a.elements, dividerProps = _a.dividerProps;
1920
return elements.map(function (element, index) { return React.createElement(React.Fragment, null,
2021
element,
2122
index !== elements.length - 1

0 commit comments

Comments
 (0)