@raycast/api 1.68.1 → 1.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/ray CHANGED
@@ -10,7 +10,7 @@ while [ -L "$source" ]; do
10
10
  # if $source was a relative symlink, we need to resolve it relative to the path where the symlink file was located
11
11
  [[ $source != /* ]] && source=$dir/$source
12
12
  done
13
- bin_dir=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
13
+ bin_dir=$( cd -P ./"$( dirname "$source" )" >/dev/null 2>&1 && pwd )
14
14
  dist_dir=$(dirname "$bin_dir")
15
15
 
16
16
  if [ -z "$bin_dir" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.68.1",
3
+ "version": "1.69.1",
4
4
  "description": "Build extensions for Raycast with React and Node.js.",
5
5
  "author": "Raycast Technologies Ltd.",
6
6
  "homepage": "https://developers.raycast.com",
package/types/index.d.ts CHANGED
@@ -4481,7 +4481,7 @@ declare interface GridMembers {
4481
4481
  Dropdown: typeof Dropdown_2;
4482
4482
  }
4483
4483
 
4484
- declare interface GridProps extends ActionsInterface, NavigationChildInterface, SearchBarInterface {
4484
+ declare interface GridProps extends ActionsInterface, NavigationChildInterface, SearchBarInterface, PaginationInterface {
4485
4485
  /**
4486
4486
  * A reference to an {@link ActionPanel}. It will only be shown when there aren't any children.
4487
4487
  */
@@ -4694,6 +4694,7 @@ export declare enum Icon {
4694
4694
  Document = "blank-document-16",
4695
4695
  Dot = "dot-16",
4696
4696
  Download = "download-16",
4697
+ Duplicate = "duplicate-16",
4697
4698
  EditShape = "edit-shape-16",
4698
4699
  Eject = "eject-16",
4699
4700
  Ellipsis = "ellipsis-16",
@@ -7029,7 +7030,26 @@ declare interface LabelProps {
7029
7030
  * Views that support pagination
7030
7031
  */
7031
7032
  declare interface PaginationInterface {
7032
-
7033
+ /**
7034
+ * Configuration for pagination
7035
+ */
7036
+ pagination?: {
7037
+ /**
7038
+ * Number of items per page. Used by Raycast to decide how many placeholders should be shown while the extension
7039
+ * is loading more items.
7040
+ */
7041
+ pageSize: number;
7042
+ /**
7043
+ * Indicates whether there are more items to load. If set to `true`, Raycast will call `onLoadMore` when the user
7044
+ * scrolls to the end of the view.
7045
+ */
7046
+ hasMore: boolean;
7047
+ /**
7048
+ * Called when the user scrolls to the bottom of the view and there are more items to load.
7049
+ * When this is called, the command should update the list of items to include the next page.
7050
+ */
7051
+ onLoadMore: (page: number) => void;
7052
+ };
7033
7053
  }
7034
7054
 
7035
7055
  /**