Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Fix install:packages:link #769

Merged
merged 14 commits into from
Jul 8, 2019
110 changes: 55 additions & 55 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/components/psammead-brand/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 4.1.5 | [PR#769](https://github.com/bbc/psammead/pull/769) Fix stories not appearing in storybook when using `install:packages:link` |
| 4.1.4 | [PR#747](https://github.com/bbc/psammead/pull/747) Add text role to avoid link fragmented on ios voiceover |
| 4.1.3 | [PR#713](https://github.com/bbc/psammead/pull/713) Update `styled-components` to 4.3.2 |
| 4.1.2 | [PR#684](https://github.com/bbc/psammead/pull/684) Update brand spacing breakpoint to kick in at 25rem |
Expand Down
18 changes: 5 additions & 13 deletions packages/components/psammead-brand/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/psammead-brand/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-brand",
"version": "4.1.4",
"version": "4.1.5",
"main": "dist/index.js",
"description": "Provides the BBC News logo (as SVG), nested a hardcoded link to https://www.bbc.co.uk/news",
"repository": {
Expand All @@ -23,7 +23,7 @@
},
"devDependencies": {
pjlee11 marked this conversation as resolved.
Show resolved Hide resolved
"@bbc/psammead-assets": "^0.1.9",
"@bbc/psammead-storybook-helpers": "^2.1.1",
"@bbc/psammead-storybook-helpers": "^3.0.0",
"@bbc/psammead-test-helpers": "^0.3.3",
"react": "^16.8.6",
"styled-components": "^4.3.2"
Expand Down
1 change: 1 addition & 0 deletions packages/components/psammead-caption/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 1.1.10 | [PR#769](https://github.com/bbc/psammead/pull/769) Fix stories not appearing in storybook when using `install:packages:link` |
| 1.1.9 | [PR#745](https://github.com/bbc/psammead/pull/745) Use `@bbc/psammead-inline-link@1.1.1` and update 'with inline link' story |
| 1.1.8 | [PR#763](https://github.com/bbc/psammead/pull/763) Change text colour to `C_CLOUD_DARK` for `C_METAL` |
| 1.1.7 | [PR#713](https://github.com/bbc/psammead/pull/713) Update `styled-components` to 4.3.2 |
Expand Down
18 changes: 5 additions & 13 deletions packages/components/psammead-caption/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/psammead-caption/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-caption",
"version": "1.1.9",
"version": "1.1.10",
"main": "dist/index.js",
"description": "React styled components for a Caption",
"repository": {
Expand All @@ -23,7 +23,7 @@
"devDependencies": {
"@bbc/psammead-inline-link": "^1.1.1",
"@bbc/psammead-paragraph": "^1.0.3",
"@bbc/psammead-storybook-helpers": "^2.1.1",
"@bbc/psammead-storybook-helpers": "^3.0.0",
"@bbc/psammead-test-helpers": "^0.3.3",
"@bbc/psammead-visually-hidden-text": "^0.1.10",
"react": "^16.8.6",
Expand Down
17 changes: 10 additions & 7 deletions packages/components/psammead-caption/src/index.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ storiesOf('Components|Caption', module)
.addDecorator(withKnobs)
.add(
'default',
inputProvider([{ name: 'Caption' }], ([captionText], script) => (
<Caption script={script}>{captionText}</Caption>
)),
inputProvider(
ryanmccombe marked this conversation as resolved.
Show resolved Hide resolved
[{ name: 'Caption' }],
({ slotTexts: [captionText], script }) => (
<Caption script={script}>{captionText}</Caption>
),
),
{ notes, knobs: { escapeHTML: false } },
)
.add(
Expand All @@ -23,7 +26,7 @@ storiesOf('Components|Caption', module)
{ name: 'Visual hidden text', defaultText: 'visually hidden text' },
{ name: 'Caption', defaultText: 'caption' },
],
([hiddenText, captionText], script) => (
({ slotTexts: [hiddenText, captionText], script }) => (
<Caption script={script}>
<VisuallyHiddenText>{hiddenText}</VisuallyHiddenText>
{captionText}
Expand All @@ -39,7 +42,7 @@ storiesOf('Components|Caption', module)
{ name: 'Inline link', defaultText: 'inline link' },
{ name: 'Caption', defaultText: 'caption' },
],
([linkText, captionText], script) => (
({ slotTexts: [linkText, captionText], script }) => (
<Caption script={script}>
{`${captionText} `}
<InlineLink href="https://www.bbc.com">{linkText}</InlineLink>
Expand All @@ -55,7 +58,7 @@ storiesOf('Components|Caption', module)
.addDecorator(dirDecorator)
.add(
'containing italicisation',
inputProvider([], (inputs, script) => (
inputProvider([], ({ script }) => (
<Caption script={script}>
Example text with <i>italics</i>
</Caption>
Expand All @@ -64,7 +67,7 @@ storiesOf('Components|Caption', module)
)
.add(
'containing multiple paragraphs',
inputProvider([], (inputs, script) => (
inputProvider([], ({ script }) => (
<Caption script={script}>
<p>Paragraph with padding bottom.</p>
<p>
Expand Down
1 change: 1 addition & 0 deletions packages/components/psammead-figure/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 1.0.3 | [PR#769](https://github.com/bbc/psammead/pull/769) Fix stories not appearing in storybook when using `install:packages:link` |
| 1.0.2 | [PR#713](https://github.com/bbc/psammead/pull/713) Update `styled-components` to 4.3.2 |
| 1.0.1 | [PR#677](https://github.com/bbc/psammead/pull/677) Use `@bbc/gel-foundations@3.0.0` |
| 1.0.0 | [PR#679](https://github.com/bbc/psammead/pull/679) Bump version number |
Expand Down
18 changes: 5 additions & 13 deletions packages/components/psammead-figure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/psammead-figure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-figure",
"version": "1.0.2",
"version": "1.0.3",
"main": "dist/index.js",
"description": "React styled component that generates a figure element",
"repository": {
Expand All @@ -25,7 +25,7 @@
"@bbc/psammead-image": "^0.3.3",
"@bbc/psammead-image-placeholder": "^0.1.8",
"@bbc/psammead-paragraph": "^1.0.3",
"@bbc/psammead-storybook-helpers": "^2.0.0",
"@bbc/psammead-storybook-helpers": "^3.0.0",
"@bbc/psammead-test-helpers": "^0.3.3",
"@bbc/psammead-visually-hidden-text": "^0.1.10",
"react": "^16.8.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-figure/src/index.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ storiesOf('Components|Figure', module)
)
.add(
'containing Image, ImagePlaceholder, Copyright and Caption',
inputProvider([{ name: 'Caption' }], ([caption]) => (
inputProvider([{ name: 'Caption' }], ({ slotTexts: [caption] }) => (
<Figure>
<ImagePlaceholder ratio={imageRatio}>
<Image alt={imageAlt} src={imageSrc} width={imageWidth} />
Expand Down
1 change: 1 addition & 0 deletions packages/components/psammead-headings/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 2.0.3 | [PR#769](https://github.com/bbc/psammead/pull/769) Fix stories not appearing in storybook when using `install:packages:link` |
| 2.0.2 | [PR#713](https://github.com/bbc/psammead/pull/713) Update `styled-components` to 4.3.2 |
| 2.0.1 | [PR#677](https://github.com/bbc/psammead/pull/677) Use `@bbc/gel-foundations@3.0.0` |
| 2.0.0 | [PR#504](https://github.com/bbc/psammead/pull/504) Remove required text prop |
Expand Down
18 changes: 5 additions & 13 deletions packages/components/psammead-headings/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/psammead-headings/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-headings",
"version": "2.0.2",
"version": "2.0.3",
"main": "dist/index.js",
"description": "React styled components for a Headline and SubHeading",
"repository": {
Expand All @@ -21,7 +21,7 @@
"@bbc/psammead-styles": "^0.3.2"
},
"devDependencies": {
"@bbc/psammead-storybook-helpers": "^2.0.0",
"@bbc/psammead-storybook-helpers": "^3.0.0",
"@bbc/psammead-test-helpers": "^0.3.3",
"styled-components": "^4.3.2"
},
Expand Down
37 changes: 23 additions & 14 deletions packages/components/psammead-headings/src/index.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,39 @@ storiesOf('Components|Headline', module)
.addDecorator(withKnobs)
.add(
'default',
inputProvider([{ name: 'Headline' }], ([headline], script) => (
<Headline script={script}>{headline}</Headline>
)),
inputProvider(
[{ name: 'Headline' }],
({ slotTexts: [headline], script }) => (
<Headline script={script}>{headline}</Headline>
),
),
{ notes, knobs: { escapeHTML: false } },
);

storiesOf('Components|SubHeading', module)
.addDecorator(withKnobs)
.add(
'default',
inputProvider([{ name: 'SubHeading' }], ([subheader], script) => (
<SubHeading script={script}>{subheader}</SubHeading>
)),
inputProvider(
[{ name: 'SubHeading' }],
({ slotTexts: [subheader], script }) => (
<SubHeading script={script}>{subheader}</SubHeading>
),
),
{ notes, knobs: { escapeHTML: false } },
)
.add(
'with optional ID',
inputProvider([{ name: 'SubHeading' }], ([subheader], script) => {
const id = text('ID', 'foo', 'Other');
return (
<SubHeading id={id} script={script}>
{subheader}
</SubHeading>
);
}),
inputProvider(
[{ name: 'SubHeading' }],
({ slotTexts: [subheader], script }) => {
const id = text('ID', 'foo', 'Other');
return (
<SubHeading id={id} script={script}>
{subheader}
</SubHeading>
);
},
),
{ notes, knobs: { escapeHTML: false } },
);
1 change: 1 addition & 0 deletions packages/components/psammead-inline-link/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<! -- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 1.1.4 | [PR#769](https://github.com/bbc/psammead/pull/769) Fix stories not appearing in storybook when using `install:packages:link` |
| 1.1.3 | [PR#775](https://github.com/bbc/psammead/pull/775) Add section to readme regarding using this component without a wrapper and padding/margin |
| 1.1.2 | [PR#687](https://github.com/bbc/psammead/pull/687) Change visited text colour to `C_CLOUD_DARK` for `C_METAL` |
| 1.1.1 | [PR#761](https://github.com/bbc/psammead/pull/761) Link default `color` should be `Ebon` not `Postbox` |
Expand Down
16 changes: 8 additions & 8 deletions packages/components/psammead-inline-link/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading