@ampcode/plugin 0.0.0-20260723002940-g7ff29e6 → 0.0.0-20260724002649-ga3413e7

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/index.d.ts +9 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1019,6 +1019,12 @@ declare module '@ampcode/plugin' {
1019
1019
  /** Dialog title */
1020
1020
  title: string
1021
1021
 
1022
+ /**
1023
+ * Append a final inline text field with "Other" as its placeholder.
1024
+ * A non-empty entered value is trimmed and returned like any other selected value.
1025
+ */
1026
+ allowOther?: boolean
1027
+
1022
1028
  /** Message body shown below the title */
1023
1029
  message?: string
1024
1030
 
@@ -1048,8 +1054,9 @@ declare module '@ampcode/plugin' {
1048
1054
  confirm(options: PluginConfirmOptions): Promise<boolean>
1049
1055
 
1050
1056
  /**
1051
- * Show a select dialog with user provided options.
1052
- * @returns the selected value, undefined if they cancelled
1057
+ * Show a select dialog with user-provided options and, when enabled, a final
1058
+ * inline text field for another value.
1059
+ * @returns The selected or entered value, or undefined if the user cancelled.
1053
1060
  */
1054
1061
  select(options: PluginSelectOptions): Promise<string | undefined>
1055
1062
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260723002940-g7ff29e6",
3
+ "version": "0.0.0-20260724002649-ga3413e7",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {