Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.1.3 #1474

Merged
merged 69 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
46a5ee4
init update
EdwinGuzman Oct 30, 2023
e953316
WIP example of default/custom title prop values
EdwinGuzman Oct 30, 2023
cee61b1
forgot to add updated NLS doc text
EdwinGuzman Oct 30, 2023
a6a9fa7
Updating structuredcontent and notification
EdwinGuzman Nov 3, 2023
d04223d
Updates zIndex for searchbar select icon
oliviawongnyc Nov 7, 2023
1d7ce9e
Updates CHANGELOG
oliviawongnyc Nov 7, 2023
8207d30
Updating the rest of components that use a title or headingText prop …
EdwinGuzman Nov 7, 2023
91d0045
Merge from development and fixing conflicts
EdwinGuzman Nov 7, 2023
e58fd31
empty
EdwinGuzman Nov 7, 2023
6d8c120
ugh
EdwinGuzman Nov 7, 2023
3096705
Updates per feedback
oliviawongnyc Nov 9, 2023
5c7173e
Merging and fixing conflicts from development
EdwinGuzman Nov 9, 2023
158fe85
Updating based on feedback
EdwinGuzman Nov 9, 2023
d8cdfbb
package-lock?
EdwinGuzman Nov 9, 2023
c5a79e0
Adds hasVisitedState prop to Link and updates documentation
oliviawongnyc Nov 14, 2023
6b35759
Cleans up theme file, updates changelog
oliviawongnyc Nov 14, 2023
5146785
More cleanup
oliviawongnyc Nov 14, 2023
f21b3e9
Updates per PR feedback
oliviawongnyc Nov 14, 2023
1c7c780
Merge branch 'development' into DSD-1607/searchbar-select-hover-fix
oliviawongnyc Nov 16, 2023
793e937
Adding and passing down isLazy from Card to its Image component
EdwinGuzman Nov 16, 2023
268598d
Merge pull request #1458 from NYPL/DSD-1607/searchbar-select-hover-fix
oliviawongnyc Nov 16, 2023
e709046
Merge branch 'development' into DSD-1624/hasVisitedState-prop
oliviawongnyc Nov 16, 2023
eda152a
Merges in development
oliviawongnyc Nov 16, 2023
fb1a639
Merging and fixing conflicts from development
EdwinGuzman Nov 16, 2023
7e5ea8e
Merge pull request #1461 from NYPL/DSD-1624/hasVisitedState-prop
oliviawongnyc Nov 16, 2023
102c352
Updates based on feedback and logging warnings if non-DS Heading or H…
EdwinGuzman Nov 16, 2023
8e2d887
updated font weight for subtitle styles
bigfishdesign13 Nov 16, 2023
d98c3f4
changelog for Text component
bigfishdesign13 Nov 16, 2023
8d07fec
Merge pull request #1463 from NYPL/DSD-1628/subtitle-font-weight
bigfishdesign13 Nov 20, 2023
c6a5457
NYPL color design tokens in DC logo
bigfishdesign13 Nov 20, 2023
7cd5a61
add sizeBasedOn prop to Image
jackiequach Nov 21, 2023
6cc6455
Merge branch 'development' into DSD-1521/image-sizeBasedOn
jackiequach Nov 21, 2023
1fa05c6
Merge pull request #1464 from NYPL/DSD-1590/dc-logo-colors
bigfishdesign13 Nov 21, 2023
6254b70
add test for size based on height
jackiequach Nov 22, 2023
b6c52d4
update snapshot
jackiequach Nov 27, 2023
e223764
Updating warning text
EdwinGuzman Nov 27, 2023
d185e59
Merge branch 'development' into DSD-1630/card-image-props
EdwinGuzman Nov 27, 2023
599ac49
Merge pull request #1462 from NYPL/DSD-1630/card-image-props
EdwinGuzman Nov 27, 2023
4852e81
Merging and fixing conflicts
EdwinGuzman Nov 27, 2023
6235220
package-lock
EdwinGuzman Nov 27, 2023
639b867
Merge pull request #1453 from NYPL/DSD-1613/pattern-for-title
EdwinGuzman Nov 27, 2023
eee227f
Updates DatePicker style so helper text does not shift
oliviawongnyc Nov 28, 2023
7b8ab9b
fix default example
jackiequach Nov 30, 2023
84de728
Merge branch 'development' into DSD-1521/image-sizeBasedOn
jackiequach Nov 30, 2023
d7d74f6
Updates component changelog per PR feedback
oliviawongnyc Nov 30, 2023
d1969c7
Merge pull request #1466 from NYPL/DSD-1599/helperText-style-fix
oliviawongnyc Nov 30, 2023
b3fef4d
updated spacing in FeaturedContent
bigfishdesign13 Nov 30, 2023
b80f6aa
prettier
bigfishdesign13 Nov 30, 2023
6b0421f
simplified styles
bigfishdesign13 Nov 30, 2023
28c5576
better style attributes
bigfishdesign13 Nov 30, 2023
be8df82
resolve comments
jackiequach Dec 1, 2023
6d5b3a7
campaign hero spacing and background image styles
bigfishdesign13 Dec 1, 2023
7720637
changelogs
bigfishdesign13 Dec 1, 2023
572964c
Merge pull request #1469 from NYPL/DSD-1633/featuredcontent-spacing
bigfishdesign13 Dec 1, 2023
051e317
updates based on feedback
bigfishdesign13 Dec 4, 2023
9771074
Merge branch 'development' into DSD-1634/campaign-hero-spacing
bigfishdesign13 Dec 4, 2023
324e5cb
another change based on feedback
bigfishdesign13 Dec 4, 2023
3cce2df
Merge branch 'DSD-1634/campaign-hero-spacing' of https://github.com/N…
bigfishdesign13 Dec 4, 2023
e565e37
Merge pull request #1470 from NYPL/DSD-1634/campaign-hero-spacing
bigfishdesign13 Dec 4, 2023
d48f35d
fix height scaling issue
jackiequach Dec 5, 2023
ec4241b
Merge branch 'development' into DSD-1521/image-sizeBasedOn
jackiequach Dec 5, 2023
b6cf6f7
enabled isDarkBackgroundImage prop for campaign hero in Storybook
bigfishdesign13 Dec 5, 2023
fbfc789
Merge branch 'development' into DSD-1521/image-sizeBasedOn
jackiequach Dec 6, 2023
7b3ae13
Merge pull request #1465 from NYPL/DSD-1521/image-sizeBasedOn
jackiequach Dec 6, 2023
cc93644
2.1.3
bigfishdesign13 Dec 7, 2023
d717550
Prep for Release v2.1.3
bigfishdesign13 Dec 7, 2023
6010c1b
forgot to update a changelog note to the right heading
EdwinGuzman Dec 7, 2023
ec42112
Merge pull request #1473 from NYPL/release-2.1.3
bigfishdesign13 Dec 7, 2023
6bc45ff
Merge branch 'release' into development
EdwinGuzman Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@ Currently, this repo is in Prerelease. When it is released, this project will ad

## Prerelease

## 2.1.3 (December 7, 2023)

### Adds

- Adds the `hasVisitedStyles` prop to `Link` which is used to include or omit the visited state styles. Default value is true.
- Adds the `useDSHeading` hook to render a default H2 heading or a custom heading element.
- Adds the `sizeBasedOn` prop to the `Image` component.
- Adds the `isDarkBackgroundImage` prop to the `Hero` component.

### Updates

- Removes `disabled` variant from `Link` theme file, as it isn't being used.
- Updates the `font-weight` to `"regular"` for the `subtitle1` and `subtitle2` text styles.
- Updates the `"digitalCollectionsBlack"` variant of the `Logo` component to use NYPL color design tokens.
- Updates the following components to accept `JSX.Element` type values into their `"title"` prop: `List`, `NewsletterSignup`,
- Updates the following components to accept `JSX.Element` type values into their `"headingText"` prop: `AlphabetFilter`, `AudioPlayer`, `ComponentWrapper`, `SearchBar`, `VideoPlayer`
- Updates the `Notification` component to accept `JSX.Element` type values into its `"notificationHeading"` prop.
- Updates the `StructuredContent` component to accept `JSX.Element` type values into its `"headingText"` and `"calloutText"` props.
- Updates the `FeaturedContent` component by adjusting the spacing in the `"fullScreen"` variant to better align the component text content with the page text content.
- Updates the `"campaign"` variant of the `Hero` component to improve the spacing around the component.
- Updates the `Card` component so that it accepts the `imageProps.isLazy` prop and passes it to its internal `Image` component.

## Fixes

- Adds z-index on hover to the `SearchBar`'s select icon so it no longer disappears.
- Adds z-index to the `DatePicker`'s calendar container so that the helper text does not shift when the calendar opens.

## 2.1.2 (November 9, 2023)

### Adds
Expand Down
76 changes: 38 additions & 38 deletions icons/svg/logo-digital-collections-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,596 changes: 4,942 additions & 1,654 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nypl/design-system-react-components",
"version": "2.1.2",
"version": "2.1.3",
"description": "NYPL Reservoir Design System React Components",
"repository": {
"type": "git",
Expand Down
28 changes: 27 additions & 1 deletion src/components/AlphabetFilter/AlphabetFilter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { ArgTypes, Canvas, Description, Meta, Source } from "@storybook/blocks";

import * as AlphabetFilterStories from "./AlphabetFilter.stories";
import Link from "../Link/Link";
import ComponentChangelogTable from "../../utils/ComponentChangelogTable";
import { changelogData } from "./alphabetFilterChangelogData";

<Meta of={AlphabetFilterStories} />

Expand All @@ -10,14 +12,16 @@ import Link from "../Link/Link";
| Component Version | DS Version |
| ----------------- | ---------- |
| Added | `1.2.0` |
| Latest | `2.0.0` |
| Latest | `2.1.3` |

## Table of Contents

- {<Link href="#overview" target="_self">Overview</Link>}
- {<Link href="#component-props" target="_self">Component Props</Link>}
- {<Link href="#accessibility" target="_self">Accessibility</Link>}
- {<Link href="#with-custom-heading" target="_self">With Custom Heading</Link>}
- {<Link href="#examples" target="_self">Examples</Link>}
- {<Link href="#changelog" target="_self">Changelog</Link>}

## Overview

Expand Down Expand Up @@ -76,6 +80,24 @@ the updated filter results must be the child of an element that has the
`role=”alert”` attribute applied or as a child of a Live Region container with
the `aria-live="polite"` attribute applied.

## With Custom Heading

By default, the `AlphabetFilter` will render an `h2` element when a string is
passed to the `headingText` component. If this is an accessibility issue, it's
possible to pass in a custom heading element.

In the following example, an `h4` is rendered through the DS `Heading` component.

<Source
code={`

const customH4 = <Heading level="h4">Custom H4 Heading</Heading>;

<AlphabetFilter headingText={customH4} {...props} />
`} language="tsx" />

<Canvas of={AlphabetFilterStories.WithCustomHeading} />

## Examples

### AlphabetFilter with activeLetters set
Expand Down Expand Up @@ -122,3 +144,7 @@ change.
/>

<Canvas of={AlphabetFilterStories.UsingOnClick} />

## Changelog

<ComponentChangelogTable changelogData={changelogData} />
9 changes: 9 additions & 0 deletions src/components/AlphabetFilter/AlphabetFilter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import { withDesign } from "storybook-addon-designs";

import AlphabetFilter from "./AlphabetFilter";
import Heading from "../Heading/Heading";

const meta: Meta<typeof AlphabetFilter> = {
title: "Components/Navigation/AlphabetFilter",
Expand Down Expand Up @@ -69,6 +70,14 @@ export const SetActiveLetters: Story = {
/>
),
};
export const WithCustomHeading: Story = {
render: () => (
<AlphabetFilter
onClick={undefined}
headingText={<Heading level="h4">Custom H4 Heading</Heading>}
/>
),
};
export const SetCurrentLetter: Story = {
render: () => <AlphabetFilter currentLetter="c" onClick={undefined} />,
};
Expand Down
21 changes: 18 additions & 3 deletions src/components/AlphabetFilter/AlphabetFilter.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import { axe } from "jest-axe";
import AlphabetFilter from "./AlphabetFilter";
import userEvent from "@testing-library/user-event";
import renderer from "react-test-renderer";
import { axe } from "jest-axe";
import React from "react";

import AlphabetFilter from "./AlphabetFilter";
import Heading from "../Heading/Heading";

const onClick = jest.fn();
describe("AlphabetFilter accessibility", () => {
Expand Down Expand Up @@ -59,6 +61,19 @@ describe("AlphabetFilter", () => {
expect(description).toBeInTheDocument();
});

it("should render a custom heading level", () => {
render(
<AlphabetFilter
onClick={onClick}
id="alphabet-filter-id"
headingText={<Heading level="h4">Custom H4 Heading</Heading>}
descriptionText="This is a description."
/>
);
const heading = screen.getByRole("heading", { level: 4 });
expect(heading).toBeInTheDocument();
});

it("should disable buttons with values not passed through activeLetters", () => {
render(
<AlphabetFilter
Expand Down
6 changes: 4 additions & 2 deletions src/components/AlphabetFilter/AlphabetFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export interface AlphabetFilterProps {
currentLetter?: string;
/** Value used to set the text for a `Text` component that will be displayed above the letter buttons. */
descriptionText?: string | JSX.Element;
/** Value used to set the text for a `Heading` component. */
headingText?: string;
/** Optional string value used to set the text for a `Heading` component, or
* a DS Heading component that can be passed in.
*/
headingText?: string | JSX.Element;
/** ID that other components can cross reference for accessibility purposes. */
id?: string;
/** Adds the `disabled` prop to the AlphabetFilter when true. */
Expand Down
21 changes: 21 additions & 0 deletions src/components/AlphabetFilter/alphabetFilterChangelogData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** This data is used to populate the ComponentChangelogTable component.
*
* date: string (when adding new entry during development, set value as "Prerelease")
* version: string (when adding new entry during development, set value as "Prerelease")
* type: "Bug Fix" | "New Feature" | "Update";
* affects: array["Accessibility" | "Documentation" | "Functionality" | "Styles"];
* notes: array (will render as a bulleted list, add one array element for each list element)
*/
import { ChangelogData } from "../../utils/ComponentChangelogTable";

export const changelogData: ChangelogData[] = [
{
date: "2023-12-07",
version: "2.1.3",
type: "Update",
affects: ["Accessibility", "Documentation"],
notes: [
"Updated the `headingText` prop to allow JSX to render custom heading elements for accessible heading hierarchy.",
],
},
];
28 changes: 27 additions & 1 deletion src/components/AudioPlayer/AudioPlayer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { ArgTypes, Canvas, Meta, Source } from "@storybook/blocks";

import * as AudioPlayerStories from "./AudioPlayer.stories";
import Link from "../Link/Link";
import ComponentChangelogTable from "../../utils/ComponentChangelogTable";
import { changelogData } from "./audioPlayerChangelogData";

<Meta of={AudioPlayerStories} />

Expand All @@ -10,15 +12,17 @@ import Link from "../Link/Link";
| Component Version | DS Version |
| ----------------- | ---------- |
| Added | `1.2.0` |
| Latest | `2.0.0` |
| Latest | `2.1.3` |

## Table of Contents

- {<Link href="#overview" target="_self">Overview</Link>}
- {<Link href="#component-props" target="_self">Component Props</Link>}
- {<Link href="#accessibility" target="_self">Accessibility</Link>}
- {<Link href="#with-custom-heading" target="_self">With Custom Heading</Link>}
- {<Link href="#example-embed-code-snippets" target="_self">Example Embed Code Snippets</Link>}
- {<Link href="#errored" target="_self">Errored</Link>}
- {<Link href="#changelog" target="_self">Changelog</Link>}

## Overview

Expand Down Expand Up @@ -67,6 +71,24 @@ Resources:
- [MDN iframe: The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)
- [Deque University Be Sure to Provide Titles for Iframes](https://dequeuniversity.com/tips/provide-iframe-titles)

## With Custom Heading

By default, the `AudioPlayer` will render an `h2` element when a string is
passed to the `headingText` component. If this is an accessibility issue, it's
possible to pass in a custom heading element.

In the following example, an `h4` is rendered through the DS `Heading` component.

<Source
code={`

const customH4 = <Heading level="h4">Custom H4 Heading</Heading>;

<AudioPlayer headingText={customH4} {...props} />
`} language="tsx" />

<Canvas of={AudioPlayerStories.WithCustomHeading} />

## Example Embed Code Snippets

The examples below are shown with precise HTML formatting. However, often the
Expand Down Expand Up @@ -166,3 +188,7 @@ If the necessary props are not passed to the `AudioPlayer` component, the
component UI will display an error message.

<Canvas of={AudioPlayerStories.ErroredExample} />

## Changelog

<ComponentChangelogTable changelogData={changelogData} />
19 changes: 15 additions & 4 deletions src/components/AudioPlayer/AudioPlayer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import { withDesign } from "storybook-addon-designs";

import AudioPlayer from "./AudioPlayer";
import Heading from "../Heading/Heading";

const meta: Meta<typeof AudioPlayer> = {
title: "Components/Media & Icons/AudioPlayer",
Expand All @@ -20,6 +21,9 @@ const meta: Meta<typeof AudioPlayer> = {
export default meta;
type Story = StoryObj<typeof AudioPlayer>;

const libsynPlayerEmbedCode =
'<iframe title="Libsyn Player" style="border: none" src="//html5-player.libsyn.com/embed/episode/id/18268511/height/90/theme/custom/thumbnail/yes/direction/backward/render-playlist/no/custom-color/87A93A/" height="90" width="100%" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>';

/**
* Main Story for the AudioPlayer component. This must contains the `args`
* and `parameters` properties in this object.
Expand All @@ -30,7 +34,7 @@ export const WithControls: Story = {
className: undefined,
descriptionText:
"Audio description lorem ipsum dolor simet. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed posuere consectetur est at lobortis.",
embedCode: `<iframe title="Libsyn Player" style="border: none" src="//html5-player.libsyn.com/embed/episode/id/18268511/height/90/theme/custom/thumbnail/yes/direction/backward/render-playlist/no/custom-color/87A93A/" height="90" width="100%" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>`,
embedCode: libsynPlayerEmbedCode,
headingText: "Audio Title",
helperText: "Audio helper text lorem ipsum dolor simet.",
id: "audioplayer-id",
Expand All @@ -45,15 +49,22 @@ export const WithControls: Story = {
},
};

// The following are additional AudioPlayer example Stories.
export const LibsynExample: Story = {
export const WithCustomHeading: Story = {
render: () => (
<AudioPlayer
embedCode='<iframe title="Libsyn Player" style="border: none" src="//html5-player.libsyn.com/embed/episode/id/18268511/height/90/theme/custom/thumbnail/yes/direction/backward/render-playlist/no/custom-color/87A93A/" height="90" width="100%" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen ></iframe>'
headingText={<Heading level="h4">Custom H4 Heading</Heading>}
embedCode={libsynPlayerEmbedCode}
audioType="libsyn"
/>
),
};

// The following are additional AudioPlayer example Stories.
export const LibsynExample: Story = {
render: () => (
<AudioPlayer embedCode={libsynPlayerEmbedCode} audioType="libsyn" />
),
};
export const SoundcloudExample: Story = {
render: () => (
<AudioPlayer
Expand Down
14 changes: 13 additions & 1 deletion src/components/AudioPlayer/AudioPlayer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { render, screen } from "@testing-library/react";
import { axe } from "jest-axe";
import * as React from "react";
import renderer from "react-test-renderer";

import AudioPlayer from "./AudioPlayer";
import Heading from "../Heading/Heading";

const libsynCode = `<iframe title="Libsyn Player" style="border: none" src="//html5-player.libsyn.com/embed/episode/id/18268511/height/90/theme/custom/thumbnail/yes/direction/backward/render-playlist/no/custom-color/87A93A/" height="90" width="100%" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen ></iframe> `;
const soundCloudCode = ` <iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/311382449&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true" ></iframe> <div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;" > <a href="https://soundcloud.com/nypl" title="New York Public Library" target="_blank" style="color: #cccccc; text-decoration: none;" >New York Public Library</a > · <a href="https://soundcloud.com/nypl/journalism-in-the-age-of-trump" title="Journalism in the Age of Trump" target="_blank" style="color: #cccccc; text-decoration: none;" >Journalism in the Age of Trump</a > </div> `;
Expand Down Expand Up @@ -76,6 +77,17 @@ describe("AudioPlayer valid render", () => {
expect(screen.getByText("Audio Player Heading")).toBeInTheDocument();
});

it("Renders a custom heading level", () => {
render(
<AudioPlayer
embedCode={libsynCode}
audioType="libsyn"
headingText={<Heading level="h4">Custom H4 Heading</Heading>}
/>
);
expect(screen.getByRole("heading", { level: 4 })).toBeInTheDocument();
});

it("Renders descriptionText", () => {
expect(
screen.getByText("Audio Player description text.")
Expand Down
6 changes: 4 additions & 2 deletions src/components/AudioPlayer/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ export interface AudioPlayerProps {
* TODO: This prop won't be used until a future version.
*/
/* filePath?: string; */
/** Optional string to set the text for a `Heading` component. */
headingText?: string;
/** Optional string value used to set the text for a `Heading` component, or
* a DS Heading component that can be passed in.
*/
headingText?: string | JSX.Element;
/** Optional string to set the text for a `HelperErrorText` component. */
helperText?: string;
/** ID that other components can cross reference for accessibility purposes. */
Expand Down
21 changes: 21 additions & 0 deletions src/components/AudioPlayer/audioPlayerChangelogData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** This data is used to populate the ComponentChangelogTable component.
*
* date: string (when adding new entry during development, set value as "Prerelease")
* version: string (when adding new entry during development, set value as "Prerelease")
* type: "Bug Fix" | "New Feature" | "Update";
* affects: array["Accessibility" | "Documentation" | "Functionality" | "Styles"];
* notes: array (will render as a bulleted list, add one array element for each list element)
*/
import { ChangelogData } from "../../utils/ComponentChangelogTable";

export const changelogData: ChangelogData[] = [
{
date: "2023-12-07",
version: "2.1.3",
type: "Update",
affects: ["Accessibility", "Documentation"],
notes: [
"Updated the `headingText` prop to allow JSX to render custom heading elements for accessible heading hierarchy.",
],
},
];
Loading
Loading