@raycast/api 1.61.2 → 1.62.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/types/index.d.ts +30 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.61.2",
3
+ "version": "1.62.0",
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",
@@ -10,12 +10,12 @@
10
10
  "license": "MIT",
11
11
  "types": "types/index.d.ts",
12
12
  "dependencies": {
13
- "@types/node": "^18.18.4",
13
+ "@types/node": "^20.8.10",
14
14
  "@types/react": "^18.2.27",
15
15
  "react": "18.2.0"
16
16
  },
17
17
  "peerDependencies": {
18
- "@types/node": "18.18.4",
18
+ "@types/node": "20.8.10",
19
19
  "@types/react": "18.2.27",
20
20
  "react-devtools": "4.28.4"
21
21
  },
package/types/index.d.ts CHANGED
@@ -485,9 +485,9 @@ export declare namespace AI {
485
485
  export type Creativity = "none" | "low" | "medium" | "high" | "maximum" | number;
486
486
  /**
487
487
  * The AI model to use to answer to the prompt.
488
- * @defaultValue `"text-davinci-003"`
488
+ * @defaultValue `"gpt-3.5-turbo-instruct"`
489
489
  */
490
- export type Model = "text-davinci-003" | "gpt-3.5-turbo";
490
+ export type Model = "gpt-3.5-turbo" | "gpt-3.5-turbo-instruct" | "gpt-4" | "text-davinci-003";
491
491
  }
492
492
 
493
493
  export declare namespace Alert {
@@ -5442,6 +5442,16 @@ declare interface ItemProps_3 {
5442
5442
  * A shortcut used to invoke this item when its parent menu is open.
5443
5443
  */
5444
5444
  shortcut?: Keyboard.Shortcut;
5445
+ /**
5446
+ * A {@link MenuBarExtra.Item} to be displayed when a user presses the ⌥ (opt) key.
5447
+ *
5448
+ * @remarks
5449
+ * When used as an `alternate`, a {@link MenuBarExtra.Item} cannot specify its own shortcut shortcut. Instead, its
5450
+ * shortcut will automatically be set to whatever its parent's shortcut is, plus the ⌥ (opt) modifier.
5451
+ * Conversely, a {@link MenuBarExtra.Item} that provides an alternate cannot use ⌥ (opt) as a modifier. If it does,
5452
+ * the modifier will be removed.
5453
+ */
5454
+ alternate?: ReactElement<ItemProps_3>;
5445
5455
  }
5446
5456
 
5447
5457
  export declare namespace Keyboard {
@@ -6276,6 +6286,24 @@ declare interface LabelProps {
6276
6286
  * ```
6277
6287
  */
6278
6288
  export type ActionEvent = ItemActionEvent;
6289
+ export namespace Item {
6290
+ /**
6291
+ * Props of the {@link MenuBarExtra.Item} React component
6292
+ */
6293
+ export type Props = ItemProps_3;
6294
+ }
6295
+ export namespace Section {
6296
+ /**
6297
+ * Props of the {@link MenuBarExtra.Section} React component
6298
+ */
6299
+ export type Props = SectionProps_4;
6300
+ }
6301
+ export namespace Submenu {
6302
+ /**
6303
+ * Props of the {@link MenuBarExtra.Submenu} React component
6304
+ */
6305
+ export type Props = SubmenuProps_2;
6306
+ }
6279
6307
  }
6280
6308
 
6281
6309
  declare interface MenuBarExtraMembers {