@ampcode/plugin 0.0.0-20260722002806-g52a0c4a → 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.
- package/index.d.ts +9 -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
|
|
1052
|
-
*
|
|
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
|
}
|