Skip to content

Commit

Permalink
docs(file-picker): add @since
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Jan 16, 2024
1 parent 5bf165c commit a61e487
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/file-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ Remove all listeners for this plugin.

#### PickMediaOptions

| Prop | Type | Description | Default |
| --------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| **`multiple`** | <code>boolean</code> | Whether multiple files may be selected. | <code>false</code> |
| **`readData`** | <code>boolean</code> | Whether to read the file data. | <code>false</code> |
| **`skipTranscoding`** | <code>boolean</code> | Whether to avoid transcoding, if possible. On iOS, for example, HEIC images are automatically transcoded to JPEG. Only available on iOS. | <code>false</code> |
| **`limit`** | <code>number</code> | The maximum number of files that the user can select. This option is ignored if `multiple` is set to `false`. Only available on iOS. | <code>0 (unlimited)</code> |
| **`ordered`** | <code>boolean</code> | Whether an ordered number is displayed instead of a check mark in the selection badge. Only available on iOS &gt;= 15. | <code>false (checkmark)</code> |
| Prop | Type | Description | Default | Since |
| --------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | ----- |
| **`multiple`** | <code>boolean</code> | Whether multiple files may be selected. | <code>false</code> | |
| **`readData`** | <code>boolean</code> | Whether to read the file data. | <code>false</code> | |
| **`skipTranscoding`** | <code>boolean</code> | Whether to avoid transcoding, if possible. On iOS, for example, HEIC images are automatically transcoded to JPEG. Only available on iOS. | <code>false</code> | |
| **`limit`** | <code>number</code> | The maximum number of files that the user can select. This option is ignored if `multiple` is set to `false`. Only available on iOS. | <code>0 (unlimited)</code> | |
| **`ordered`** | <code>boolean</code> | Whether an ordered number is displayed instead of a check mark in the selection badge. Only available on iOS (15+). | <code>false</code> | 5.3.0 |


#### PluginListenerHandle
Expand Down
5 changes: 3 additions & 2 deletions packages/file-picker/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ export interface PickMediaOptions {
/**
* Whether an ordered number is displayed instead of a check mark in the selection badge.
*
* Only available on iOS >= 15.
* Only available on iOS (15+).
*
* @default false (checkmark)
* @default false
* @since 5.3.0
*/
ordered?: boolean;
}
Expand Down

0 comments on commit a61e487

Please sign in to comment.