@shopify/ui-extensions 2025.10.0-rc.42 → 2025.10.0-rc.44

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 (384) hide show
  1. package/build/cjs/surfaces/checkout/shared.js +1 -1
  2. package/build/esm/surfaces/checkout/shared.mjs +1 -1
  3. package/build/esnext/surfaces/checkout/shared.esnext +1 -1
  4. package/build/ts/docs/shared/components/Announcement.d.ts +4 -0
  5. package/build/ts/docs/shared/components/Announcement.d.ts.map +1 -0
  6. package/build/ts/docs/shared/components/FunctionSettings.d.ts +4 -0
  7. package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +1 -0
  8. package/build/ts/docs/shared/components/ScrollBox.d.ts +4 -0
  9. package/build/ts/docs/shared/components/ScrollBox.d.ts.map +1 -0
  10. package/build/ts/docs/shared/components/index.d.ts +4 -0
  11. package/build/ts/docs/shared/components/index.d.ts.map +1 -1
  12. package/build/ts/index.d.ts.map +1 -1
  13. package/build/ts/surfaces/admin/components/AdminAction.d.ts +5 -5
  14. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +3 -3
  15. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
  16. package/build/ts/surfaces/admin/components/Avatar.d.ts +4 -9
  17. package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
  18. package/build/ts/surfaces/admin/components/Badge.d.ts +3 -3
  19. package/build/ts/surfaces/admin/components/Banner.d.ts +18 -18
  20. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
  21. package/build/ts/surfaces/admin/components/Box.d.ts +66 -9
  22. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
  23. package/build/ts/surfaces/admin/components/Button.d.ts +26 -26
  24. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +9 -6
  25. package/build/ts/surfaces/admin/components/Checkbox.d.ts +22 -28
  26. package/build/ts/surfaces/admin/components/Chip.d.ts +4 -4
  27. package/build/ts/surfaces/admin/components/Choice.d.ts +6 -11
  28. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +18 -18
  29. package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
  30. package/build/ts/surfaces/admin/components/Clickable.d.ts +89 -32
  31. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +17 -17
  32. package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -3
  33. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +8 -8
  34. package/build/ts/surfaces/admin/components/DateField.d.ts +12 -12
  35. package/build/ts/surfaces/admin/components/DatePicker.d.ts +3 -3
  36. package/build/ts/surfaces/admin/components/Divider.d.ts +3 -3
  37. package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +1 -1
  38. package/build/ts/surfaces/admin/components/EmailField.d.ts +27 -27
  39. package/build/ts/surfaces/admin/components/Form.d.ts +7 -3
  40. package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts +4 -0
  41. package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts.map +1 -0
  42. package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts +4 -0
  43. package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +1 -0
  44. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +3 -3
  45. package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts +4 -0
  46. package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts.map +1 -0
  47. package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
  48. package/build/ts/surfaces/admin/components/Grid.d.ts +119 -12
  49. package/build/ts/surfaces/admin/components/GridItem.d.ts +66 -9
  50. package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
  51. package/build/ts/surfaces/admin/components/Heading.d.ts +3 -3
  52. package/build/ts/surfaces/admin/components/Icon.d.ts +3 -3
  53. package/build/ts/surfaces/admin/components/Image.d.ts +84 -27
  54. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
  55. package/build/ts/surfaces/admin/components/Link.d.ts +22 -22
  56. package/build/ts/surfaces/admin/components/ListItem.d.ts +3 -3
  57. package/build/ts/surfaces/admin/components/Menu.d.ts +3 -3
  58. package/build/ts/surfaces/admin/components/Modal.d.ts +16 -16
  59. package/build/ts/surfaces/admin/components/MoneyField.d.ts +30 -29
  60. package/build/ts/surfaces/admin/components/NumberField.d.ts +29 -27
  61. package/build/ts/surfaces/admin/components/Option.d.ts +6 -4
  62. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +6 -4
  63. package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
  64. package/build/ts/surfaces/admin/components/OrderedList.d.ts +3 -3
  65. package/build/ts/surfaces/admin/components/Page.d.ts +14 -9
  66. package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
  67. package/build/ts/surfaces/admin/components/Paragraph.d.ts +3 -3
  68. package/build/ts/surfaces/admin/components/PasswordField.d.ts +27 -27
  69. package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
  70. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
  71. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +3 -3
  72. package/build/ts/surfaces/admin/components/SearchField.d.ts +27 -27
  73. package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
  74. package/build/ts/surfaces/admin/components/Section.d.ts +3 -3
  75. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
  76. package/build/ts/surfaces/admin/components/Select.d.ts +29 -27
  77. package/build/ts/surfaces/admin/components/Spinner.d.ts +3 -3
  78. package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
  79. package/build/ts/surfaces/admin/components/Stack.d.ts +83 -9
  80. package/build/ts/surfaces/admin/components/Switch.d.ts +21 -21
  81. package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
  82. package/build/ts/surfaces/admin/components/Table.d.ts +4 -4
  83. package/build/ts/surfaces/admin/components/TableBody.d.ts +3 -3
  84. package/build/ts/surfaces/admin/components/TableCell.d.ts +3 -3
  85. package/build/ts/surfaces/admin/components/TableHeader.d.ts +3 -3
  86. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +3 -3
  87. package/build/ts/surfaces/admin/components/TableRow.d.ts +3 -3
  88. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
  89. package/build/ts/surfaces/admin/components/Text.d.ts +3 -3
  90. package/build/ts/surfaces/admin/components/TextArea.d.ts +27 -27
  91. package/build/ts/surfaces/admin/components/TextField.d.ts +28 -28
  92. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +11 -11
  93. package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
  94. package/build/ts/surfaces/admin/components/Tooltip.d.ts +3 -3
  95. package/build/ts/surfaces/admin/components/URLField.d.ts +27 -27
  96. package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
  97. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +3 -3
  98. package/build/ts/surfaces/admin/components/shared.d.ts +2 -2
  99. package/build/ts/surfaces/admin/extension-targets.d.ts +5 -5
  100. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  101. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -1
  102. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +2 -0
  103. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +2 -0
  104. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +2 -0
  105. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +8 -0
  106. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -0
  107. package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts +4 -0
  108. package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts.map +1 -0
  109. package/build/ts/surfaces/checkout/components/Announcement.d.ts +95 -0
  110. package/build/ts/surfaces/checkout/components/Badge.d.ts +7 -1
  111. package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts +4 -0
  112. package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts.map +1 -0
  113. package/build/ts/surfaces/checkout/components/Chip.d.ts +56 -0
  114. package/build/ts/surfaces/checkout/components/Choice.d.ts +67 -0
  115. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
  116. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
  117. package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +65 -0
  118. package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
  119. package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
  120. package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +83 -0
  121. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
  122. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
  123. package/build/ts/surfaces/checkout/components/DateField.d.ts +87 -0
  124. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
  125. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
  126. package/build/ts/surfaces/checkout/components/DatePicker.d.ts +77 -0
  127. package/build/ts/surfaces/checkout/components/Icon.d.ts +7 -1
  128. package/build/ts/surfaces/checkout/components/Option.d.ts +46 -0
  129. package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts +4 -0
  130. package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
  131. package/build/ts/surfaces/checkout/components/PasswordField.d.ts +93 -0
  132. package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
  133. package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
  134. package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +48 -0
  135. package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
  136. package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
  137. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
  138. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
  139. package/build/ts/surfaces/checkout/components/Select.d.ts +79 -0
  140. package/build/ts/surfaces/checkout/components/TextField.d.ts +7 -1
  141. package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts +4 -0
  142. package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts.map +1 -0
  143. package/build/ts/surfaces/checkout/components/UrlField.d.ts +93 -0
  144. package/build/ts/surfaces/checkout/components/components-shared.d.ts +89 -0
  145. package/build/ts/surfaces/checkout/components/components.d.ts +252 -24
  146. package/build/ts/surfaces/checkout/extension-targets.d.ts +61 -61
  147. package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
  148. package/build/ts/surfaces/checkout/shared.d.ts +6 -3
  149. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  150. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +11 -0
  151. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +11 -0
  152. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +11 -0
  153. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +11 -0
  154. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +11 -0
  155. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +11 -0
  156. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +11 -0
  157. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +11 -0
  158. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +11 -0
  159. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +11 -0
  160. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +11 -0
  161. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +11 -0
  162. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +11 -0
  163. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +11 -0
  164. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +11 -0
  165. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +11 -0
  166. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +11 -0
  167. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +11 -0
  168. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +11 -0
  169. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +11 -0
  170. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +11 -0
  171. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +11 -0
  172. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +11 -0
  173. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +11 -0
  174. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +11 -0
  175. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +11 -0
  176. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +11 -0
  177. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +11 -0
  178. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +11 -0
  179. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +11 -0
  180. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +11 -0
  181. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +11 -0
  182. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +11 -0
  183. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +11 -0
  184. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +11 -0
  185. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +11 -0
  186. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +11 -0
  187. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +11 -0
  188. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +11 -0
  189. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +11 -0
  190. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +11 -0
  191. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +11 -0
  192. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +11 -0
  193. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +11 -0
  194. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +11 -0
  195. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +11 -0
  196. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +11 -0
  197. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +11 -0
  198. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +11 -0
  199. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +11 -0
  200. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +11 -0
  201. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +11 -0
  202. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +11 -0
  203. package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +12 -0
  204. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +11 -0
  205. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +11 -0
  206. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +11 -0
  207. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +11 -0
  208. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +11 -0
  209. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +11 -0
  210. package/build/ts/surfaces/checkout.d.ts +1 -0
  211. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  212. package/build/ts/surfaces/customer-account/components/Announcement.d.ts +95 -0
  213. package/build/ts/surfaces/customer-account/components/Badge.d.ts +7 -1
  214. package/build/ts/surfaces/customer-account/components/Chip.d.ts +56 -0
  215. package/build/ts/surfaces/customer-account/components/Choice.d.ts +67 -0
  216. package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +65 -0
  217. package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +83 -0
  218. package/build/ts/surfaces/customer-account/components/DateField.d.ts +87 -0
  219. package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +77 -0
  220. package/build/ts/surfaces/customer-account/components/Icon.d.ts +7 -1
  221. package/build/ts/surfaces/customer-account/components/Option.d.ts +46 -0
  222. package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +93 -0
  223. package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +48 -0
  224. package/build/ts/surfaces/customer-account/components/Select.d.ts +79 -0
  225. package/build/ts/surfaces/customer-account/components/TextField.d.ts +7 -1
  226. package/build/ts/surfaces/customer-account/components/UrlField.d.ts +93 -0
  227. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +89 -0
  228. package/build/ts/surfaces/customer-account/components/components.d.ts +252 -24
  229. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +12 -0
  230. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +12 -0
  231. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +12 -0
  232. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +12 -0
  233. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +12 -0
  234. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +12 -0
  235. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +12 -0
  236. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +12 -0
  237. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +12 -0
  238. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +12 -0
  239. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +12 -0
  240. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +12 -0
  241. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +12 -0
  242. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +12 -0
  243. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +12 -0
  244. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +12 -0
  245. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +12 -0
  246. package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +12 -0
  247. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +12 -0
  248. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +12 -0
  249. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +12 -0
  250. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +12 -0
  251. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +12 -0
  252. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +12 -0
  253. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -2
  254. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  255. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
  256. package/build/tsconfig.tsbuildinfo +1 -1
  257. package/package.json +2 -2
  258. package/src/docs/shared/components/Announcement.ts +12 -0
  259. package/src/docs/shared/components/FunctionSettings.ts +28 -0
  260. package/src/docs/shared/components/ScrollBox.ts +12 -0
  261. package/src/docs/shared/components/index.ts +4 -0
  262. package/src/index.ts +1 -0
  263. package/src/surfaces/admin/components/AdminAction.d.ts +5 -5
  264. package/src/surfaces/admin/components/AdminBlock.d.ts +3 -3
  265. package/src/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
  266. package/src/surfaces/admin/components/Avatar.d.ts +4 -9
  267. package/src/surfaces/admin/components/Badge.d.ts +3 -3
  268. package/src/surfaces/admin/components/Banner.d.ts +18 -18
  269. package/src/surfaces/admin/components/Box.d.ts +66 -9
  270. package/src/surfaces/admin/components/Button.d.ts +26 -26
  271. package/src/surfaces/admin/components/ButtonGroup.d.ts +9 -6
  272. package/src/surfaces/admin/components/Checkbox.d.ts +22 -28
  273. package/src/surfaces/admin/components/Chip.d.ts +4 -4
  274. package/src/surfaces/admin/components/Choice.d.ts +6 -11
  275. package/src/surfaces/admin/components/ChoiceList.d.ts +18 -18
  276. package/src/surfaces/admin/components/Clickable.d.ts +89 -32
  277. package/src/surfaces/admin/components/ClickableChip.d.ts +17 -17
  278. package/src/surfaces/admin/components/ColorField.d.ts +3 -3
  279. package/src/surfaces/admin/components/ColorPicker.d.ts +8 -8
  280. package/src/surfaces/admin/components/DateField.d.ts +12 -12
  281. package/src/surfaces/admin/components/DatePicker.d.ts +3 -3
  282. package/src/surfaces/admin/components/Divider.d.ts +3 -3
  283. package/src/surfaces/admin/components/EmailField.d.ts +27 -27
  284. package/src/surfaces/admin/components/Form.d.ts +7 -3
  285. package/src/surfaces/admin/components/FormExtensionComponents.ts +5 -0
  286. package/src/surfaces/admin/components/FunctionSettings/examples/default.tsx +38 -0
  287. package/src/surfaces/admin/components/FunctionSettings.d.ts +3 -3
  288. package/src/surfaces/admin/components/FunctionSettingsComponents.ts +7 -0
  289. package/src/surfaces/admin/components/Grid.d.ts +119 -12
  290. package/src/surfaces/admin/components/GridItem.d.ts +66 -9
  291. package/src/surfaces/admin/components/Heading.d.ts +3 -3
  292. package/src/surfaces/admin/components/Icon.d.ts +3 -3
  293. package/src/surfaces/admin/components/Image.d.ts +84 -27
  294. package/src/surfaces/admin/components/Link.d.ts +22 -22
  295. package/src/surfaces/admin/components/ListItem.d.ts +3 -3
  296. package/src/surfaces/admin/components/Menu.d.ts +3 -3
  297. package/src/surfaces/admin/components/Modal.d.ts +16 -16
  298. package/src/surfaces/admin/components/MoneyField.d.ts +30 -29
  299. package/src/surfaces/admin/components/NumberField.d.ts +29 -27
  300. package/src/surfaces/admin/components/Option.d.ts +6 -4
  301. package/src/surfaces/admin/components/OptionGroup.d.ts +6 -4
  302. package/src/surfaces/admin/components/OrderedList.d.ts +3 -3
  303. package/src/surfaces/admin/components/Page.d.ts +14 -9
  304. package/src/surfaces/admin/components/Paragraph.d.ts +3 -3
  305. package/src/surfaces/admin/components/PasswordField.d.ts +27 -27
  306. package/src/surfaces/admin/components/QueryContainer.d.ts +3 -3
  307. package/src/surfaces/admin/components/SearchField.d.ts +27 -27
  308. package/src/surfaces/admin/components/Section.d.ts +3 -3
  309. package/src/surfaces/admin/components/Select.d.ts +29 -27
  310. package/src/surfaces/admin/components/Spinner.d.ts +3 -3
  311. package/src/surfaces/admin/components/Stack.d.ts +83 -9
  312. package/src/surfaces/admin/components/Switch.d.ts +21 -21
  313. package/src/surfaces/admin/components/Table.d.ts +4 -4
  314. package/src/surfaces/admin/components/TableBody.d.ts +3 -3
  315. package/src/surfaces/admin/components/TableCell.d.ts +3 -3
  316. package/src/surfaces/admin/components/TableHeader.d.ts +3 -3
  317. package/src/surfaces/admin/components/TableHeaderRow.d.ts +3 -3
  318. package/src/surfaces/admin/components/TableRow.d.ts +3 -3
  319. package/src/surfaces/admin/components/Text.d.ts +3 -3
  320. package/src/surfaces/admin/components/TextArea.d.ts +27 -27
  321. package/src/surfaces/admin/components/TextField.d.ts +28 -28
  322. package/src/surfaces/admin/components/Thumbnail.d.ts +11 -11
  323. package/src/surfaces/admin/components/Tooltip.d.ts +3 -3
  324. package/src/surfaces/admin/components/URLField.d.ts +27 -27
  325. package/src/surfaces/admin/components/UnorderedList.d.ts +3 -3
  326. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -3
  327. package/src/surfaces/admin/components/shared.d.ts +2 -2
  328. package/src/surfaces/admin/components/using-polaris-web-components/examples/event-handling.jsx +1 -1
  329. package/src/surfaces/admin/components/using-polaris-web-components/examples/using-with-react.jsx +1 -1
  330. package/src/surfaces/admin/components.d.ts +655 -105
  331. package/src/surfaces/admin/extension-targets.ts +5 -5
  332. package/src/surfaces/checkout/api/announcement/announcement.ts +7 -0
  333. package/src/surfaces/checkout/components/Announcement/examples/basic-announcement.example.html +16 -0
  334. package/src/surfaces/checkout/components/Announcement.d.ts +95 -0
  335. package/src/surfaces/checkout/components/Badge.d.ts +7 -1
  336. package/src/surfaces/checkout/components/Box/examples/basic-box.example.html +1 -1
  337. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -1
  338. package/src/surfaces/checkout/components/Chip/examples/basic-chip.example.html +1 -0
  339. package/src/surfaces/checkout/components/Chip.d.ts +56 -0
  340. package/src/surfaces/checkout/components/Choice.d.ts +67 -0
  341. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choice-list.example.html +7 -0
  342. package/src/surfaces/checkout/components/ChoiceList.d.ts +65 -0
  343. package/src/surfaces/checkout/components/ClickableChip/examples/basic-clickable-chip.example.html +1 -0
  344. package/src/surfaces/checkout/components/ClickableChip.d.ts +83 -0
  345. package/src/surfaces/checkout/components/DateField/examples/basic-date-field.example.html +1 -0
  346. package/src/surfaces/checkout/components/DateField.d.ts +87 -0
  347. package/src/surfaces/checkout/components/DatePicker/examples/basic-date-picker.example.html +1 -0
  348. package/src/surfaces/checkout/components/DatePicker.d.ts +77 -0
  349. package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +1 -1
  350. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.html +4 -4
  351. package/src/surfaces/checkout/components/Icon.d.ts +7 -1
  352. package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
  353. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +1 -1
  354. package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -1
  355. package/src/surfaces/checkout/components/Option.d.ts +46 -0
  356. package/src/surfaces/checkout/components/PasswordField/examples/basic-password-field.example.html +1 -0
  357. package/src/surfaces/checkout/components/PasswordField.d.ts +93 -0
  358. package/src/surfaces/checkout/components/PaymentIcon/examples/basic-payment-icon.example.html +7 -7
  359. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -1
  360. package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
  361. package/src/surfaces/checkout/components/QueryContainer/examples/basic-query-container.example.html +8 -0
  362. package/src/surfaces/checkout/components/QueryContainer.d.ts +48 -0
  363. package/src/surfaces/checkout/components/ScrollBox/examples/basic-scroll-box.example.html +5 -0
  364. package/src/surfaces/checkout/components/Select/examples/basic-select.example.html +5 -0
  365. package/src/surfaces/checkout/components/Select.d.ts +79 -0
  366. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
  367. package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -20
  368. package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -1
  369. package/src/surfaces/checkout/components/TextField/examples/basic-text-field.example.html +1 -1
  370. package/src/surfaces/checkout/components/TextField.d.ts +7 -1
  371. package/src/surfaces/checkout/components/UrlField/examples/basic-url-field.example.html +1 -0
  372. package/src/surfaces/checkout/components/UrlField.d.ts +93 -0
  373. package/src/surfaces/checkout/components/components-shared.d.ts +89 -0
  374. package/src/surfaces/checkout/components/components.d.ts +252 -24
  375. package/src/surfaces/checkout/extension-targets.ts +63 -62
  376. package/src/surfaces/checkout/shared.ts +15 -8
  377. package/src/surfaces/checkout.ts +1 -0
  378. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +2 -2
  379. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +5 -11
  380. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -2
  381. package/build/ts/surfaces/admin/components/DropZone.d.ts +0 -160
  382. package/build/ts/surfaces/admin/components/Popover.d.ts +0 -379
  383. package/src/surfaces/admin/components/DropZone.d.ts +0 -160
  384. package/src/surfaces/admin/components/Popover.d.ts +0 -379
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,14 +6,14 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {ComponentChild, ChipProps$1} from './shared.d.ts';
9
+ import type {ComponentChildren, ChipProps$1} from './shared.d.ts';
10
10
 
11
11
  export interface ChipProps
12
12
  extends Required<Pick<ChipProps$1, 'color' | 'accessibilityLabel'>> {}
13
13
 
14
14
  export type Styles = string;
15
15
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
16
- ShadowRoot: (element: any) => ComponentChild;
16
+ ShadowRoot: (element: any) => ComponentChildren;
17
17
  styles?: Styles;
18
18
  };
19
19
  export interface ActivationEventEsque {
@@ -118,7 +118,7 @@ export interface ChipJSXProps
118
118
  *
119
119
  * Only accepts `Icon` components.
120
120
  */
121
- graphic?: ComponentChild;
121
+ graphic?: ComponentChildren;
122
122
  }
123
123
 
124
124
  export {Chip};
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,11 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {
10
- ComponentChildren,
11
- ComponentChild,
12
- ChoiceProps$1,
13
- } from './shared.d.ts';
9
+ import type {ComponentChildren, ChoiceProps$1} from './shared.d.ts';
14
10
 
15
11
  export interface ChoiceProps
16
12
  extends Required<
@@ -26,7 +22,7 @@ export interface ChoiceProps
26
22
 
27
23
  export type Styles = string;
28
24
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
29
- ShadowRoot: (element: any) => ComponentChild;
25
+ ShadowRoot: (element: any) => ComponentChildren;
30
26
  styles?: Styles;
31
27
  };
32
28
  export interface ActivationEventEsque {
@@ -120,7 +116,8 @@ declare global {
120
116
  declare module 'preact' {
121
117
  namespace createElement.JSX {
122
118
  interface IntrinsicElements {
123
- [tagName]: ChoiceJSXProps & PreactBaseElementPropsWithChildren<Choice>;
119
+ [tagName]: Omit<ChoiceJSXProps, 'details'> &
120
+ PreactBaseElementPropsWithChildren<Choice>;
124
121
  }
125
122
  }
126
123
  }
@@ -128,9 +125,7 @@ declare module 'preact' {
128
125
  declare const tagName = 's-choice';
129
126
  export interface ChoiceJSXProps
130
127
  extends Partial<ChoiceProps>,
131
- Pick<ChoiceProps$1, 'id'> {
132
- details?: ComponentChild;
133
- }
128
+ Pick<ChoiceProps$1, 'id' | 'details'> {}
134
129
 
135
130
  export {Choice};
136
131
  export type {ChoiceJSXProps};
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,22 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {ChoiceListProps$1, ComponentChild} from './shared.d.ts';
10
-
11
- export interface ChoiceListProps
12
- extends Required<
13
- Pick<
14
- ChoiceListProps$1,
15
- | 'details'
16
- | 'disabled'
17
- | 'error'
18
- | 'label'
19
- | 'labelAccessibilityVisibility'
20
- | 'multiple'
21
- | 'name'
22
- | 'values'
23
- >
24
- > {}
9
+ import type {ComponentChildren, ChoiceListProps$1} from './shared.d.ts';
25
10
 
26
11
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
27
12
  currentTarget: HTMLElementTagNameMap[T];
@@ -46,9 +31,24 @@ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
46
31
  children?: preact.ComponentChildren;
47
32
  }
48
33
 
34
+ export interface ChoiceListProps
35
+ extends Required<
36
+ Pick<
37
+ ChoiceListProps$1,
38
+ | 'details'
39
+ | 'disabled'
40
+ | 'error'
41
+ | 'label'
42
+ | 'labelAccessibilityVisibility'
43
+ | 'multiple'
44
+ | 'name'
45
+ | 'values'
46
+ >
47
+ > {}
48
+
49
49
  export type Styles = string;
50
50
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
51
- ShadowRoot: (element: any) => ComponentChild;
51
+ ShadowRoot: (element: any) => ComponentChildren;
52
52
  styles?: Styles;
53
53
  };
54
54
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -7,14 +7,39 @@
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
9
  import type {
10
+ ComponentChildren,
10
11
  BoxProps$1,
11
12
  ClickableProps$1,
12
13
  MaybeAllValuesShorthandProperty,
14
+ SizeUnitsOrAuto,
13
15
  SizeUnits,
16
+ SizeUnitsOrNone,
14
17
  InteractionProps,
15
- ComponentChild,
16
18
  } from './shared.d.ts';
17
19
 
20
+ export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
21
+ currentTarget: HTMLElementTagNameMap[T];
22
+ };
23
+ export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
24
+ | (EventListener & {
25
+ (event: CallbackEvent<T>): void;
26
+ })
27
+ | null;
28
+ /** Used when an element does not have children. */
29
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
30
+ /** Assigns a unique key to this element. */
31
+ key?: preact.Key;
32
+ /** Assigns a ref (generally from `useRef()`) to this element. */
33
+ ref?: preact.Ref<TClass>;
34
+ /** Assigns this element to a parent's slot. */
35
+ slot?: Lowercase<string>;
36
+ }
37
+ /** Used when an element has children. */
38
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
39
+ extends PreactBaseElementProps<TClass> {
40
+ children?: preact.ComponentChildren;
41
+ }
42
+
18
43
  export type MakeResponsive<T> = T | `@container${string}`;
19
44
  /**
20
45
  * Makes a property's value potentially responsive.
@@ -83,10 +108,20 @@ export interface BoxProps
83
108
  | 'minInlineSize'
84
109
  | 'overflow'
85
110
  > {
111
+ /**
112
+ * Adjust the background of the component.
113
+ *
114
+ * @default 'transparent'
115
+ */
86
116
  background: Extract<
87
117
  RequiredBoxProps['background'],
88
118
  'transparent' | 'base' | 'subdued' | 'strong'
89
119
  >;
120
+ /**
121
+ * Adjust the width of the border.
122
+ *
123
+ * @default '' - meaning no override
124
+ */
90
125
  borderWidth:
91
126
  | MaybeAllValuesShorthandProperty<
92
127
  Extract<
@@ -95,13 +130,28 @@ export interface BoxProps
95
130
  >
96
131
  >
97
132
  | Extract<RequiredBoxProps['borderWidth'], ''>;
133
+ /**
134
+ * Adjust the style of the border.
135
+ *
136
+ * @default '' - meaning no override
137
+ */
98
138
  borderStyle:
99
139
  | MaybeAllValuesShorthandProperty<BoxBorderStyles>
100
140
  | Extract<RequiredBoxProps['borderStyle'], ''>;
141
+ /**
142
+ * Adjust the color of the border.
143
+ *
144
+ * @default '' - meaning no override
145
+ */
101
146
  borderColor: Extract<
102
147
  RequiredBoxProps['borderColor'],
103
148
  'subdued' | 'base' | 'strong' | ''
104
149
  >;
150
+ /**
151
+ * Adjust the radius of the border.
152
+ *
153
+ * @default 'none'
154
+ */
105
155
  borderRadius: MaybeAllValuesShorthandProperty<BoxBorderRadii>;
106
156
  /**
107
157
  * Adjust the padding of all edges.
@@ -198,12 +248,42 @@ export interface BoxProps
198
248
  * @default 'auto'
199
249
  */
200
250
  display: ResponsiveBoxProps['display'];
201
- blockSize: SizeUnits | 'auto';
202
- minBlockSize: SizeUnits | '0';
203
- maxBlockSize: SizeUnits | 'none';
204
- inlineSize: SizeUnits | 'auto';
205
- minInlineSize: SizeUnits | '0';
206
- maxInlineSize: SizeUnits | 'none';
251
+ /**
252
+ * Adjust the [block size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).
253
+ *
254
+ * @default 'auto'
255
+ */
256
+ blockSize: SizeUnitsOrAuto;
257
+ /**
258
+ * Adjust the [minimum block size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).
259
+ *
260
+ * @default '0'
261
+ */
262
+ minBlockSize: SizeUnits;
263
+ /**
264
+ * Adjust the [maximum block size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).
265
+ *
266
+ * @default 'none'
267
+ */
268
+ maxBlockSize: SizeUnitsOrNone;
269
+ /**
270
+ * Adjust the [inline size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).
271
+ *
272
+ * @default 'auto'
273
+ */
274
+ inlineSize: SizeUnitsOrAuto;
275
+ /**
276
+ * Adjust the [minimum inline size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).
277
+ *
278
+ * @default '0'
279
+ */
280
+ minInlineSize: SizeUnits;
281
+ /**
282
+ * Adjust the [maximum inline size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).
283
+ *
284
+ * @default 'none'
285
+ */
286
+ maxInlineSize: SizeUnitsOrNone;
207
287
  }
208
288
 
209
289
  export type ClickableBaseProps = Required<
@@ -226,32 +306,9 @@ export interface ClickableProps
226
306
  extends Required<BoxProps>,
227
307
  ClickableBaseProps {}
228
308
 
229
- export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
230
- currentTarget: HTMLElementTagNameMap[T];
231
- };
232
- export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
233
- | (EventListener & {
234
- (event: CallbackEvent<T>): void;
235
- })
236
- | null;
237
- /** Used when an element does not have children. */
238
- export interface PreactBaseElementProps<TClass extends HTMLElement> {
239
- /** Assigns a unique key to this element. */
240
- key?: preact.Key;
241
- /** Assigns a ref (generally from `useRef()`) to this element. */
242
- ref?: preact.Ref<TClass>;
243
- /** Assigns this element to a parent's slot. */
244
- slot?: Lowercase<string>;
245
- }
246
- /** Used when an element has children. */
247
- export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
248
- extends PreactBaseElementProps<TClass> {
249
- children?: preact.ComponentChildren;
250
- }
251
-
252
309
  export type Styles = string;
253
310
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
254
- ShadowRoot: (element: any) => ComponentChild;
311
+ ShadowRoot: (element: any) => ComponentChildren;
255
312
  styles?: Styles;
256
313
  };
257
314
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,20 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {ClickableChipProps$1, ComponentChild} from './shared.d.ts';
10
-
11
- export interface ClickableChipProps
12
- extends Required<
13
- Pick<
14
- ClickableChipProps$1,
15
- | 'color'
16
- | 'accessibilityLabel'
17
- | 'removable'
18
- | 'hidden'
19
- | 'href'
20
- | 'disabled'
21
- >
22
- > {}
9
+ import type {ComponentChildren, ClickableChipProps$1} from './shared.d.ts';
23
10
 
24
11
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
25
12
  currentTarget: HTMLElementTagNameMap[T];
@@ -44,9 +31,22 @@ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
44
31
  children?: preact.ComponentChildren;
45
32
  }
46
33
 
34
+ export interface ClickableChipProps
35
+ extends Required<
36
+ Pick<
37
+ ClickableChipProps$1,
38
+ | 'color'
39
+ | 'accessibilityLabel'
40
+ | 'removable'
41
+ | 'hidden'
42
+ | 'href'
43
+ | 'disabled'
44
+ >
45
+ > {}
46
+
47
47
  export type Styles = string;
48
48
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
49
- ShadowRoot: (element: any) => ComponentChild;
49
+ ShadowRoot: (element: any) => ComponentChildren;
50
50
  styles?: Styles;
51
51
  };
52
52
  export interface ActivationEventEsque {
@@ -146,7 +146,7 @@ export interface ClickableChipJSXProps
146
146
  *
147
147
  * Only accepts `Icon` components.
148
148
  */
149
- graphic?: ComponentChild;
149
+ graphic?: ComponentChildren;
150
150
  onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
151
151
  onRemove?: ((event: CallbackEvent<typeof tagName>) => void) | null;
152
152
  onAfterHide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -9,7 +9,7 @@
9
9
  import type {
10
10
  TextFieldProps,
11
11
  ColorFieldProps$1,
12
- ComponentChild,
12
+ ComponentChildren,
13
13
  } from './shared.d.ts';
14
14
 
15
15
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
@@ -38,7 +38,7 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
38
38
 
39
39
  export type Styles = string;
40
40
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
41
- ShadowRoot: (element: any) => ComponentChild;
41
+ ShadowRoot: (element: any) => ComponentChildren;
42
42
  styles?: Styles;
43
43
  };
44
44
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,12 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {ColorPickerProps$1, ComponentChild} from './shared.d.ts';
10
-
11
- export interface ColorPickerProps
12
- extends Required<
13
- Pick<ColorPickerProps$1, 'id' | 'alpha' | 'value' | 'defaultValue' | 'name'>
14
- > {}
9
+ import type {ColorPickerProps$1, ComponentChildren} from './shared.d.ts';
15
10
 
16
11
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
17
12
  currentTarget: HTMLElementTagNameMap[T];
@@ -22,9 +17,14 @@ export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
22
17
  })
23
18
  | null;
24
19
 
20
+ export interface ColorPickerProps
21
+ extends Required<
22
+ Pick<ColorPickerProps$1, 'id' | 'alpha' | 'value' | 'defaultValue' | 'name'>
23
+ > {}
24
+
25
25
  export type Styles = string;
26
26
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
27
- ShadowRoot: (element: any) => ComponentChild;
27
+ ShadowRoot: (element: any) => ComponentChildren;
28
28
  styles?: Styles;
29
29
  };
30
30
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -10,12 +10,21 @@ import type {
10
10
  TextFieldProps,
11
11
  DateAutocompleteField,
12
12
  DateFieldProps$1,
13
- ComponentChild,
13
+ ComponentChildren,
14
14
  } from './shared.d.ts';
15
15
 
16
+ export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
17
+ currentTarget: HTMLElementTagNameMap[T];
18
+ };
19
+ export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
20
+ | (EventListener & {
21
+ (event: CallbackEvent<T>): void;
22
+ })
23
+ | null;
24
+
16
25
  export type Styles = string;
17
26
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
18
- ShadowRoot: (element: any) => ComponentChild;
27
+ ShadowRoot: (element: any) => ComponentChildren;
19
28
  styles?: Styles;
20
29
  };
21
30
  export interface ActivationEventEsque {
@@ -73,15 +82,6 @@ declare abstract class PreactCustomElement extends BaseClass {
73
82
  click({sourceEvent}?: ClickOptions): void;
74
83
  }
75
84
 
76
- export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
77
- currentTarget: HTMLElementTagNameMap[T];
78
- };
79
- export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
80
- | (EventListener & {
81
- (event: CallbackEvent<T>): void;
82
- })
83
- | null;
84
-
85
85
  declare const internals: unique symbol;
86
86
  export type PreactInputProps = Required<
87
87
  Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,7 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {DatePickerProps$1, ComponentChild} from './shared.d.ts';
9
+ import type {DatePickerProps$1, ComponentChildren} from './shared.d.ts';
10
10
 
11
11
  export interface DatePickerProps
12
12
  extends Required<
@@ -46,7 +46,7 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
46
46
 
47
47
  export type Styles = string;
48
48
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
49
- ShadowRoot: (element: any) => ComponentChild;
49
+ ShadowRoot: (element: any) => ComponentChildren;
50
50
  styles?: Styles;
51
51
  };
52
52
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,7 +6,7 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {DividerProps$1, ComponentChild} from './shared.d.ts';
9
+ import type {DividerProps$1, ComponentChildren} from './shared.d.ts';
10
10
 
11
11
  export interface DividerProps
12
12
  extends Pick<DividerProps$1, 'direction' | 'color'> {
@@ -16,7 +16,7 @@ export interface DividerProps
16
16
 
17
17
  export type Styles = string;
18
18
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
19
- ShadowRoot: (element: any) => ComponentChild;
19
+ ShadowRoot: (element: any) => ComponentChildren;
20
20
  styles?: Styles;
21
21
  };
22
22
  export interface ActivationEventEsque {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -9,12 +9,36 @@
9
9
  import type {
10
10
  TextFieldProps,
11
11
  EmailFieldProps$1,
12
- ComponentChild,
12
+ ComponentChildren,
13
13
  } from './shared.d.ts';
14
14
 
15
+ export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
16
+ currentTarget: HTMLElementTagNameMap[T];
17
+ };
18
+ export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
19
+ | (EventListener & {
20
+ (event: CallbackEvent<T>): void;
21
+ })
22
+ | null;
23
+ export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
24
+ onInput?: ((event: CallbackEvent<T>) => void) | null;
25
+ onChange?: ((event: CallbackEvent<T>) => void) | null;
26
+ onFocus?: ((event: CallbackEvent<T>) => void) | null;
27
+ onBlur?: ((event: CallbackEvent<T>) => void) | null;
28
+ }
29
+ /** Used when an element does not have children. */
30
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
31
+ /** Assigns a unique key to this element. */
32
+ key?: preact.Key;
33
+ /** Assigns a ref (generally from `useRef()`) to this element. */
34
+ ref?: preact.Ref<TClass>;
35
+ /** Assigns this element to a parent's slot. */
36
+ slot?: Lowercase<string>;
37
+ }
38
+
15
39
  export type Styles = string;
16
40
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
17
- ShadowRoot: (element: any) => ComponentChild;
41
+ ShadowRoot: (element: any) => ComponentChildren;
18
42
  styles?: Styles;
19
43
  };
20
44
  export interface ActivationEventEsque {
@@ -72,30 +96,6 @@ declare abstract class PreactCustomElement extends BaseClass {
72
96
  click({sourceEvent}?: ClickOptions): void;
73
97
  }
74
98
 
75
- export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
76
- currentTarget: HTMLElementTagNameMap[T];
77
- };
78
- export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
79
- | (EventListener & {
80
- (event: CallbackEvent<T>): void;
81
- })
82
- | null;
83
- export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
84
- onInput?: ((event: CallbackEvent<T>) => void) | null;
85
- onChange?: ((event: CallbackEvent<T>) => void) | null;
86
- onFocus?: ((event: CallbackEvent<T>) => void) | null;
87
- onBlur?: ((event: CallbackEvent<T>) => void) | null;
88
- }
89
- /** Used when an element does not have children. */
90
- export interface PreactBaseElementProps<TClass extends HTMLElement> {
91
- /** Assigns a unique key to this element. */
92
- key?: preact.Key;
93
- /** Assigns a ref (generally from `useRef()`) to this element. */
94
- ref?: preact.Ref<TClass>;
95
- /** Assigns this element to a parent's slot. */
96
- slot?: Lowercase<string>;
97
- }
98
-
99
99
  declare const internals: unique symbol;
100
100
  export type PreactInputProps = Required<
101
101
  Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
@@ -1,11 +1,15 @@
1
- /** VERSION: 1.19.0 **/
1
+ /** VERSION: 1.20.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
5
5
 
6
6
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
7
7
  /// <reference lib="DOM" />
8
- import type {ExtendableEvent, FormProps$1, ComponentChild} from './shared.d.ts';
8
+ import type {
9
+ ExtendableEvent,
10
+ FormProps$1,
11
+ ComponentChildren,
12
+ } from './shared.d.ts';
9
13
 
10
14
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
11
15
  currentTarget: HTMLElementTagNameMap[T];
@@ -43,7 +47,7 @@ export interface FormJSXProps extends Partial<FormProps> {
43
47
 
44
48
  export type Styles = string;
45
49
  export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
46
- ShadowRoot: (element: any) => ComponentChild;
50
+ ShadowRoot: (element: any) => ComponentChildren;
47
51
  styles?: Styles;
48
52
  };
49
53
  export interface ActivationEventEsque {
@@ -0,0 +1,5 @@
1
+ import {StandardComponents} from './StandardComponents';
2
+
3
+ export type FormExtensionComponents = StandardComponents | 'Form';
4
+
5
+ export default FormExtensionComponents;
@@ -0,0 +1,38 @@
1
+ import {render} from 'preact';
2
+ import {useState} from 'preact/hooks';
3
+
4
+ export default async () => {
5
+ render(<Extension />, document.body);
6
+ };
7
+
8
+ function Extension() {
9
+ const [percentage, setPercentage] = useState(
10
+ shopify.data.metafields[0].value,
11
+ );
12
+
13
+ async function applyExtensionMetafieldChange() {
14
+ await shopify.applyMetafieldChange({
15
+ type: 'updateMetafield',
16
+ namespace: '$app:discounts-percentage',
17
+ key: 'function-configuration',
18
+ value: percentage,
19
+ valueType: 'integer',
20
+ });
21
+ }
22
+
23
+ return (
24
+ <s-function-settings
25
+ onSubmit={(e) => e.waitUntil(applyExtensionMetafieldChange())}
26
+ onReset={resetForm}
27
+ >
28
+ <s-number-field
29
+ step="1"
30
+ suffix="%"
31
+ label="Percentage"
32
+ name="percentage"
33
+ value={shopify.data.metafields[0].value}
34
+ onChange={(event) => setPercentage(event.currentTarget.value)}
35
+ />
36
+ </s-function-settings>
37
+ );
38
+ }