@ta-interaktiv/contentbricks
Advanced tools
Comparing version 1.3.0 to 1.3.4
@@ -5,2 +5,20 @@ # Change Log | ||
## [1.3.4](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.3.3...@ta-interaktiv/contentbricks@1.3.4) (2020-07-21) | ||
**Note:** Version bump only for package @ta-interaktiv/contentbricks | ||
## [1.3.3](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.3.2...@ta-interaktiv/contentbricks@1.3.3) (2020-07-21) | ||
**Note:** Version bump only for package @ta-interaktiv/contentbricks | ||
## [1.3.2](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.3.1...@ta-interaktiv/contentbricks@1.3.2) (2020-07-21) | ||
**Note:** Version bump only for package @ta-interaktiv/contentbricks | ||
## [1.3.1](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.3.0...@ta-interaktiv/contentbricks@1.3.1) (2020-07-21) | ||
### Bug Fixes | ||
- Icon never at end of line ([b4281c4](https://gitlab.com/ta-interaktiv/packages/commit/b4281c4683f86e3b119d652de2ec7a1ffd656dd6)) | ||
# [1.3.0](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.1.8...@ta-interaktiv/contentbricks@1.3.0) (2020-05-12) | ||
@@ -7,0 +25,0 @@ |
@@ -126,5 +126,14 @@ 'use strict'; | ||
} | ||
var kids = React__default.Children.toArray(children); | ||
var head = kids[0]; | ||
var tail = kids.slice(1); | ||
if (typeof head === 'string') { | ||
tail = head.slice(1).concat(tail); | ||
head = head[0]; | ||
} | ||
return (React__default.createElement("a", __assign({ href: href, target: openIn, className: className + ' cB', style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
!hideIcon && (React__default.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
children)); | ||
React__default.createElement("span", { style: { whiteSpace: 'nowrap' } }, | ||
!hideIcon && (React__default.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
head), | ||
tail)); | ||
}; | ||
@@ -131,0 +140,0 @@ Link.defaultProps = { |
@@ -119,5 +119,14 @@ import React, { forwardRef, useState, useEffect, useLayoutEffect, useRef } from 'react'; | ||
} | ||
var kids = React.Children.toArray(children); | ||
var head = kids[0]; | ||
var tail = kids.slice(1); | ||
if (typeof head === 'string') { | ||
tail = head.slice(1).concat(tail); | ||
head = head[0]; | ||
} | ||
return (React.createElement("a", __assign({ href: href, target: openIn, className: className + ' cB', style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
!hideIcon && (React.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
children)); | ||
React.createElement("span", { style: { whiteSpace: 'nowrap' } }, | ||
!hideIcon && (React.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
head), | ||
tail)); | ||
}; | ||
@@ -124,0 +133,0 @@ Link.defaultProps = { |
{ | ||
"name": "@ta-interaktiv/contentbricks", | ||
"version": "1.3.0", | ||
"version": "1.3.4", | ||
"description": "> TODO: description", | ||
@@ -52,3 +52,3 @@ "author": "Sebastian Broschinski <sebastian.broschinski@tamedia.ch>", | ||
}, | ||
"gitHead": "8f8e2f2833e7ef1baead561b54c1c73b64c9e064", | ||
"gitHead": "530e9c577c5e9b1e80ea2b439837d5439eb8de1d", | ||
"devDependencies": { | ||
@@ -55,0 +55,0 @@ "@types/mdx-js__react": "^1.5.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
3687
1
482165
150