Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit 8ed7b85

Browse files
author
Franco Correa
authored
TypeScript releases (#1581)
* Release 0.23.2 * Use node 10 in jenkins * Fix in jenkins node version * Compare master versions with beta tagged ones (test 1) * Test 2 * Last references to cosmos-tokens * Fix cosmos-fonts versions * Fix typing issue in Alert (release 0.23.7) * Fix avatar block typing * Release 0.23.8 * 0.23.8 changelog * Catchup
1 parent 80549c5 commit 8ed7b85

File tree

15 files changed

+44
-47
lines changed

15 files changed

+44
-47
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipeline {
44
}
55

66
tools {
7-
nodejs '8.9.1'
7+
nodejs '10.15.1'
88
}
99

1010
environment {

changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). Currently, this project is using an `0.x` versioning system to indicate its preview status. As such, it does _not_ currently adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). Once we reach production readiness, we will
66
follow semver beginning with our `1.0` release. In the meantime, please read this changelog for information on breaking changes!
77

8+
## 0.23.8 [April 22, 2019]
9+
10+
### Fixed
11+
12+
- [Avatar Block] Fixed issue with title prop typing.
13+
14+
## 0.23.7 [April 16, 2019]
15+
16+
### Fixed
17+
18+
- [Alert] Fixed issue with title prop typing.
19+
20+
## 0.23.6 [April 15, 2019]
21+
22+
### Added
23+
24+
- Refactored Cosmos using Typescript. [#1576]
25+
826
## 0.23.1 [March 20, 2019]
927

1028
### Fixed

core/babel-preset/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@auth0/babel-preset-cosmos",
33
"description": "babel preset to use cosmos",
4-
"version": "0.23.1",
4+
"version": "0.23.8",
55
"repository": "auth0/cosmos",
66
"main": "index.js",
77
"author": "siddharthkp",

core/components/atoms/alert/alert.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface IAlertProps {
1818
type?: IAlertAppearance // deprecated: use appearance
1919
appearance?: IAlertAppearance
2020
icon?: string
21-
title?: string
21+
title?: string | React.ReactNode
2222
/** @deprecated:children */
2323
text?: string
2424
/** @deprecated:children */
@@ -61,16 +61,13 @@ class Alert extends React.Component<IAlertProps, IAlertState> {
6161
this.state = { visible: true }
6262
}
6363

64-
65-
6664
componentDidMount() {
6765
if (this.props.dismissAfterSeconds) {
6866
/* timer to auto dismiss the component */
6967
this.timer = window.setTimeout(this.dismiss, this.props.dismissAfterSeconds * 1000)
7068
}
7169
}
7270

73-
7471
componentWillUnmount() {
7572
/*
7673
clear timer on unmount

core/components/molecules/avatar-block/avatar-block.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface IAvatarBlockProps {
7272
/** An image URL to display. */
7373
image?: string
7474
/** The primary line of text to display. */
75-
title: string
75+
title: string | React.ReactNode
7676
/** The type of item represented by the avatar block. */
7777
type: 'user' | 'resource'
7878
/** The size of the avatar block. */
@@ -82,7 +82,7 @@ export interface IAvatarBlockProps {
8282
/** @deprecated:link If specified, the main text will be rendered as a hyperlink */
8383
href?: string
8484
/** If specified, the main text will be rendered as a hyperlink */
85-
link?: string | { href: string, target?: string }
85+
link?: string | { href: string; target?: string }
8686
onClick?: Function
8787
}
8888

@@ -114,7 +114,6 @@ AvatarBlock.Element = styled.span`
114114
justify-content: start;
115115
`
116116

117-
118117
AvatarBlock.defaultProps = {
119118
size: 'default'
120119
}

core/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@auth0/cosmos",
33
"description": "Component library for Auth0 Design System",
4-
"version": "0.23.1",
4+
"version": "0.23.8",
55
"repository": "auth0/cosmos",
66
"scripts": {},
77
"keywords": [],

examples/perf-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"start": "cosmos-scripts start"
1111
},
1212
"dependencies": {
13-
"@auth0/cosmos": "0.23.1",
13+
"@auth0/cosmos": "0.23.8",
1414
"react": "16.8.4",
1515
"react-dom": "16.8.4"
1616
},
1717
"devDependencies": {
18-
"@auth0/cosmos-scripts": "0.23.1"
18+
"@auth0/cosmos-scripts": "0.23.8"
1919
}
2020
}

examples/webpack-hello-world/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"start": "cosmos-scripts start"
1111
},
1212
"dependencies": {
13-
"@auth0/cosmos": "0.23.1",
14-
"@auth0/cosmos-fonts": "0.0.1",
13+
"@auth0/cosmos": "0.23.8",
14+
"@auth0/cosmos-fonts": "0.0.5",
1515
"react": "16.8.4",
1616
"react-dom": "16.8.4"
1717
},
1818
"devDependencies": {
19-
"@auth0/cosmos-scripts": "0.23.1"
19+
"@auth0/cosmos-scripts": "0.23.8"
2020
}
2121
}

internal/cosmos-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@auth0/cosmos-scripts",
3-
"version": "0.23.1",
3+
"version": "0.23.8",
44
"description": "",
55
"bin": {
66
"cosmos-scripts": "cli.js"

internal/docs/docs-components/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from 'styled-components'
2-
import { fonts } from '@auth0/cosmos-tokens'
2+
import { fonts } from '@auth0/cosmos/tokens'
33

44
const List = styled.ul`
55
list-style: ${props => (props.nested ? 'circle' : 'disc')};

0 commit comments

Comments
 (0)