Skip to content

Commit

Permalink
feat: added id tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ssikande committed Aug 1, 2024
1 parent 584154a commit f755d75
Show file tree
Hide file tree
Showing 10 changed files with 947 additions and 898 deletions.
298 changes: 147 additions & 151 deletions lib/platform-bible-react/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

28 changes: 23 additions & 5 deletions lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,16 +1052,20 @@ export type UpdateButtonProps = {
*/
export function UpdateButton({ isUpdating, handleClick }: UpdateButtonProps): import("react/jsx-runtime").JSX.Element;
export interface MarkdownRendererProps {
/** Optional unique identifier */
id?: string;
/** The markdown string to render */
markdown: string;
}
/**
* This component renders markdown content given a markdown string. It uses typography styles from
* the platform.
*
* @param markdown The markdown string to render.
* @param id Optional unique identifier
* @returns A div containing the rendered markdown content.
*/
export function MarkdownRenderer({ markdown }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;
export function MarkdownRenderer({ id, markdown }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;
export declare enum DropdownMenuItemType {
Check = 0,
Radio = 1
Expand Down Expand Up @@ -1104,17 +1108,23 @@ export function FilterDropdown({ groups }: FilterDropdownProps): import("react/j
*/
export declare const FilterButton: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLButtonElement>>;
export interface NoExtensionsFoundProps {
/** Optional unique identifier */
id?: string;
/** The message to display */
message: string;
}
/**
* This component displays a message to the user when no extensions are found in the marketplace.
*
* @param id Optional unique identifier
* @param message The message to display.
* @returns {JSX.Element} - Returns the message component that displays the message to the user.
*/
declare function NoExtensionsFound({ message }: NoExtensionsFoundProps): import("react/jsx-runtime").JSX.Element;
declare function NoExtensionsFound({ id, message }: NoExtensionsFoundProps): import("react/jsx-runtime").JSX.Element;
/** Interface that stores the parameters passed to the More Info component */
export interface MoreInfoProps {
/** Optional unique identifier */
id?: string;
/** The category of the extension */
category: string;
/** The number of downloads for the extension */
Expand All @@ -1128,14 +1138,15 @@ export interface MoreInfoProps {
* This component displays the more info section of the extension which includes the category,
* number of downloads, languages, and links to the website and support
*
* @param id Optional unique identifier
* @param category The category of the extension
* @param downloads The number of downloads for the extension
* @param languages The languages supported by the extension
* @param moreInfoUrl The URL to the more info page of the extension
* @returns {JSX.Element} - Returns the more info component that displays the category, number of
* downloads, languages, and links to the website and support
*/
export function MoreInfo({ category, downloads, languages, moreInfoUrl }: MoreInfoProps): import("react/jsx-runtime").JSX.Element;
export function MoreInfo({ id, category, downloads, languages, moreInfoUrl, }: MoreInfoProps): import("react/jsx-runtime").JSX.Element;
export type VersionInformation = {
/** Date the version was published */
date: string;
Expand All @@ -1146,18 +1157,24 @@ export type VersionInformation = {
export type VersionHistoryType = Record<string, VersionInformation>;
/** Interface that stores the parameters passed to the Version History component */
export interface VersionHistoryProps {
/** Optional unique identifier */
id?: string;
/** Object containing the versions mapped with their information */
versionHistory: VersionHistoryType;
}
/**
* Component to render the version history information shown in the footer component. Lists the 5
* most recent versions, with the options to show all versions by pressing a button.
*
* @param versionHistory Object containing the versions mapped with their information
* @param id Optional unique identifier
* @returns Rendered version history for the Footer component
*/
export function VersionHistory({ versionHistory }: VersionHistoryProps): import("react/jsx-runtime").JSX.Element;
export function VersionHistory({ id, versionHistory }: VersionHistoryProps): import("react/jsx-runtime").JSX.Element;
/** Interface to store the parameters passed to the Footer component */
export interface FooterProps {
/** Optional unique identifier */
id?: string;
/** Name of the publisher */
publisherDisplayName: string;
/** Size of the extension file in bytes */
Expand All @@ -1172,9 +1189,10 @@ export interface FooterProps {
* publisher, version history, languages, and file size.
*
* @param extension Instance of the current Extension being shown
* @param id Optional unique identifier
* @returns The rendered Footer component
*/
export function Footer({ publisherDisplayName, fileSize, locales, versionHistory, }: FooterProps): import("react/jsx-runtime").JSX.Element;
export function Footer({ id, publisherDisplayName, fileSize, locales, versionHistory, }: FooterProps): import("react/jsx-runtime").JSX.Element;
/**
* Adds an event handler to an event so the event handler runs when the event is emitted. Use
* `papi.network.getNetworkEvent` to use a networked event with this hook.
Expand Down
Loading

0 comments on commit f755d75

Please sign in to comment.