@ampcode/plugin 0.0.0-20261025001826-g01ee656 → 0.0.0-20261026001758-g60a5f0a

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 +12 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1626,6 +1626,12 @@ declare module '@ampcode/plugin' {
1626
1626
  /** Allow a text field to span multiple lines */
1627
1627
  multiline?: boolean
1628
1628
 
1629
+ /**
1630
+ * Show a single-line text field's label to its left instead of above it, for a compact form
1631
+ * such as an email's To and Subject. Clients that cannot show it there show it above.
1632
+ */
1633
+ inlineLabel?: boolean
1634
+
1629
1635
  /** The MIME type of an attachment field's file, such as `application/pdf`; picks its preview */
1630
1636
  mimeType?: string
1631
1637
 
@@ -1642,6 +1648,12 @@ declare module '@ampcode/plugin' {
1642
1648
  /** Allow a text field to be left empty. Text fields are required unless this is set. */
1643
1649
  optional?: boolean
1644
1650
 
1651
+ /**
1652
+ * Hide an optional text field that starts empty behind a small button with its label, such
1653
+ * as CC on an email, until the user opens it. Clients that cannot collapse fields show it.
1654
+ */
1655
+ collapsed?: boolean
1656
+
1645
1657
  /** Placeholder shown in an empty text field */
1646
1658
  placeholder?: string
1647
1659
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20261025001826-g01ee656",
3
+ "version": "0.0.0-20261026001758-g60a5f0a",
4
4
  "description": "Amp Plugin API",
5
5
  "license": "Amp Commercial License",
6
6
  "homepage": "https://ampcode.com/docs/plugin-api",