diff --git a/packages/components/psammead-paragraph/CHANGELOG.md b/packages/components/psammead-paragraph/CHANGELOG.md index c3bb82be65..27281424d9 100644 --- a/packages/components/psammead-paragraph/CHANGELOG.md +++ b/packages/components/psammead-paragraph/CHANGELOG.md @@ -3,6 +3,7 @@ | Version | Description | |---------|-------------| +| 1.0.7 | [PR#746](https://github.com/bbc/psammead/pull/746) Use `@bbc/psammead-inline-link@1.1.1` and add a 'with inline link' story | | 1.0.6 | [PR#713](https://github.com/bbc/psammead/pull/713) Update `styled-components` to 4.3.2 | | 1.0.5 | [PR#677](https://github.com/bbc/psammead/pull/677) Use `@bbc/gel-foundations@3.0.0` | | 1.0.4 | [PR#498](https://github.com/bbc/psammead/pull/498) Update stories to use new input provider | diff --git a/packages/components/psammead-paragraph/package-lock.json b/packages/components/psammead-paragraph/package-lock.json index 9eec7af339..9cadca49a9 100644 --- a/packages/components/psammead-paragraph/package-lock.json +++ b/packages/components/psammead-paragraph/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-paragraph", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -142,6 +142,23 @@ "resolved": "https://registry.npmjs.org/@bbc/gel-foundations/-/gel-foundations-3.0.0.tgz", "integrity": "sha512-dHVZ+ig1P/crQtvAOP0bB0PAuuqT2R8hs15pZDsJsO1wvPtbvEe2TO6AxXUIODk9TZgod2j+9K6TB4WV/I2LDw==" }, + "@bbc/psammead-inline-link": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@bbc/psammead-inline-link/-/psammead-inline-link-1.1.1.tgz", + "integrity": "sha512-2n94BFzp2coPhFmyIRGHit4RTjhp+X9L8BQm0NVvbZ/R7VxyK26d1oPPBKD3jw/AFzE2vtRLoOoi5MIjmhx0VA==", + "dev": true, + "requires": { + "@bbc/psammead-styles": "^1.0.0" + }, + "dependencies": { + "@bbc/psammead-styles": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@bbc/psammead-styles/-/psammead-styles-1.0.1.tgz", + "integrity": "sha512-lzbLfkMNpRgM+vyGLra9FFzaDrm2+2HDBMniKJmnWLGBmMPOm+qdRLYt1wEeiHdqQBwCju6sfrnBDqOKs29G8g==", + "dev": true + } + } + }, "@bbc/psammead-storybook-helpers": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@bbc/psammead-storybook-helpers/-/psammead-storybook-helpers-2.0.0.tgz", diff --git a/packages/components/psammead-paragraph/package.json b/packages/components/psammead-paragraph/package.json index 355ea4d396..07ec1f3f63 100644 --- a/packages/components/psammead-paragraph/package.json +++ b/packages/components/psammead-paragraph/package.json @@ -1,6 +1,6 @@ { "name": "@bbc/psammead-paragraph", - "version": "1.0.6", + "version": "1.0.7", "description": "React styled component for a Paragraph", "main": "dist/index.js", "repository": { @@ -26,6 +26,7 @@ "@bbc/psammead-styles": "^0.3.2" }, "devDependencies": { + "@bbc/psammead-inline-link": "1.1.1", "@bbc/psammead-storybook-helpers": "^2.0.0", "@bbc/psammead-test-helpers": "^0.3.3", "react": "^16.8.6", diff --git a/packages/components/psammead-paragraph/src/index.stories.jsx b/packages/components/psammead-paragraph/src/index.stories.jsx index b3477faca5..a6e60ee3cc 100644 --- a/packages/components/psammead-paragraph/src/index.stories.jsx +++ b/packages/components/psammead-paragraph/src/index.stories.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs } from '@storybook/addon-knobs'; import { inputProvider } from '@bbc/psammead-storybook-helpers'; +import InlineLink from '@bbc/psammead-inline-link'; import notes from '../README.md'; import Paragraph from './index'; @@ -13,4 +14,18 @@ storiesOf('Components|Paragraph', module) {paragraph} )), { notes, knobs: { escapeHTML: false } }, + ) + .add( + 'containing an inline link', + inputProvider( + [{ name: 'Paragraph' }, { name: 'Inline link' }], + ([paragraph, linkText], script) => ( + + {`${paragraph} `} + {linkText} + {` ${paragraph}`} + + ), + ), + { notes, knobs: { escapeHTML: false } }, );