Skip to content

Commit

Permalink
Docs: update for the new API release
Browse files Browse the repository at this point in the history
  • Loading branch information
raycastbot committed Sep 6, 2023
1 parent 4fd1c4b commit 24f7f25
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.57.2"
"version": "1.58.0"
}
29 changes: 29 additions & 0 deletions docs/api-reference/user-interface/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,35 @@ export default function Command() {
| focus | <code>() => void</code> | Makes the item request focus. |
| reset | <code>() => void</code> | Resets the form item to its initial value, or `defaultValue` if specified. |

#### Form.DatePicker.isFullDay

A method that determines if a given date represents a full day or a specific time.

```ts
import { ActionPanel, Form, Action } from "@raycast/api";

export default function Command() {
return (
<Form
actions={
<ActionPanel>
<Action.SubmitForm title="Create Event" onSubmit={(values) => {
if (Form.DatePicker.isFullDay(values.reminderDate)) {
// the event is for a full day
} else {
// the event is at a specific time
}
}} />
</ActionPanel>
}
>
<Form.DatePicker id="eventTitle" title="Title" />
<Form.DatePicker id="eventDate" title="Date" />
</Form>
);
}
```

### Form.Dropdown

A form item with a dropdown menu.
Expand Down
2 changes: 1 addition & 1 deletion docs/basics/prepare-an-extension-for-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ You can use [Raycast Wallpapers](https://www.raycast.com/wallpapers) to make you
- Make it easier for users to see exactly what notable changes have been made between each release of your extension with a `CHANGELOG.md` file in your extension metadata
- To add Version History to your extension, add a `CHANGELOG.md` file to the root folder of your extension
- See an extension files structure with [screenshots and a changelog file](prepare-an-extension-for-store.md#adding-screenshots)
- With each change, provide clear and descriptive information around the latest update, providing a title as a h2 header followed by a date timestamp YYYY-MM-DD or a `{PR_MERGE_DATE}` placeholder. It will automatically be replaced with the date when the pull request was merged
- With each change, provide clear and descriptive information around the latest update, providing a title as a h2 header followed by a date timestamp YYYY-MM-DD
- Make sure your change title is within square brackets
- Separate your title and date with a hyphen `-` and spaces either side of the hyphen
- Below is an example of a changelog that follows the correct format
Expand Down
21 changes: 21 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 1.58.0 - 2023-09-06

### ✨ New

- **Alert**: Add a new option `rememberUserChoice` to show a checkbox to remember the user choice the next time the same Alert would be shown.
- **DatePicker**: You can know check whether the user picked a full day or a specific time with `Form.DatePicker.isFullDay(date)`.

### 💎 Improvements

- The “Fork Extension” action is now also available in the Store for installed extensions.
- All the APIs that accepts a file path will now resolve `~` if necessary.

### 🐞 Fixes

- Fix an issue where some Toasts would not disappear after the command was terminated.
- Fix an issue where List Item’s accessories with an icon could have their text cut off.
- Fix `getFrontmostApplication` failing for some applications.
- The “Fork Extension” will now be more robust dealing with unexpected `package.json` formats.
- Fixed an issue where newly created Extensions would not use the correct username after it had been updated.
- Fix an issue where it was possible to set a multiline `searchText`

## 1.57.0 - 2023-08-09

### 🐞 Fixes
Expand Down

0 comments on commit 24f7f25

Please sign in to comment.