@vicaniddouglas/js_aide 1.17.0 → 1.19.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.
package/README.md CHANGED
@@ -420,7 +420,7 @@ Returns the input value as a **string** on submit, or `null` if cancelled.
420
420
  ```javascript
421
421
  const name = await popup.prompt("Enter your display name:", {
422
422
  placeholder: "e.g., Douglas",
423
- inputType: "text", // Options: text, number, currency, password
423
+ inputType: "text", // Options: text, number, float, comms, currency, password
424
424
  });
425
425
 
426
426
  if (name) {
@@ -430,7 +430,7 @@ if (name) {
430
430
 
431
431
  | Prompt Option | Description |
432
432
  | :------------- | :------------------------------------------------------------------ |
433
- | `inputType` | Controls input behavior (`text`, `number`, `currency`, `password`). |
433
+ | `inputType` | Controls input behavior (`text`, `number`, `float`, `comms`, `currency`, `password`). |
434
434
  | `defaultValue` | Initial text inside the input. |
435
435
  | `submitText` | Text for the action button (default: "Submit"). |
436
436
  | `cancelText` | Text for the dismiss button (default: "Cancel"). |
package/declarations.d.ts CHANGED
@@ -1328,8 +1328,8 @@ declare module "@vicaniddouglas/js_aide" {
1328
1328
  }
1329
1329
 
1330
1330
  interface PromptOptions extends PopupOptions {
1331
- /** Type of input: text, number, currency, or password */
1332
- inputType?: "text" | "number" | "currency" | "password";
1331
+ /** Type of input: text, number, float, comms, currency, or password */
1332
+ inputType?: "text" | "number" | "float" | "comms" | "currency" | "password";
1333
1333
  /** Input placeholder text */
1334
1334
  placeholder?: string;
1335
1335
  /** Initial value for the input */