shortcutkit 0.3.0 → 0.4.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/dist/index.d.ts CHANGED
@@ -90,6 +90,16 @@ export declare class Shortcut {
90
90
  endIf(gid: string): void;
91
91
  repeatEach(items: Attachment): string;
92
92
  endRepeatEach(gid: string): void;
93
+ /** Open a Repeat block that runs `count` times; returns the grouping identifier for endRepeatCount(). */
94
+ repeatCount(count: number | Attachment): string;
95
+ endRepeatCount(gid: string): void;
96
+ /**
97
+ * Open a Choose from Menu block. Follow with one menuItem() per title, in order, each with the
98
+ * actions of that branch, then endMenu(). Returns the grouping identifier.
99
+ */
100
+ chooseFromMenu(prompt: string | TokenString, items: string[]): string;
101
+ menuItem(gid: string, title: string): void;
102
+ endMenu(gid: string): void;
93
103
  toPlist(): Record<string, PlistValue>;
94
104
  toXml(): string;
95
105
  /** Write the unsigned file. Shortcuts names an import after the file, so the default is "<name>.shortcut". Converts to binary plist via plutil when present. */