@shopify/ui-extensions 2025.10.0-rc.3 → 2025.10.0-rc.5

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 (259) hide show
  1. package/build/ts/docs/shared/components/QueryContainer.d.ts +4 -0
  2. package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -0
  3. package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
  4. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  5. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  6. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  7. package/build/ts/surfaces/admin/components/Badge.d.ts +17 -6
  8. package/build/ts/surfaces/admin/components/Banner.d.ts +17 -6
  9. package/build/ts/surfaces/admin/components/Box.d.ts +28 -7
  10. package/build/ts/surfaces/admin/components/Button.d.ts +16 -6
  11. package/build/ts/surfaces/admin/components/Checkbox.d.ts +17 -2
  12. package/build/ts/surfaces/admin/components/Choice.d.ts +17 -2
  13. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +17 -6
  14. package/build/ts/surfaces/admin/components/Clickable.d.ts +28 -7
  15. package/build/ts/surfaces/admin/components/DatePicker.d.ts +11 -5
  16. package/build/ts/surfaces/admin/components/Divider.d.ts +12 -5
  17. package/build/ts/surfaces/admin/components/EmailField.d.ts +11 -5
  18. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/Grid.d.ts +28 -7
  20. package/build/ts/surfaces/admin/components/GridItem.d.ts +29 -7
  21. package/build/ts/surfaces/admin/components/Heading.d.ts +17 -6
  22. package/build/ts/surfaces/admin/components/Icon.d.ts +12 -5
  23. package/build/ts/surfaces/admin/components/Image.d.ts +22 -6
  24. package/build/ts/surfaces/admin/components/Link.d.ts +16 -6
  25. package/build/ts/surfaces/admin/components/ListItem.d.ts +18 -6
  26. package/build/ts/surfaces/admin/components/MoneyField.d.ts +11 -6
  27. package/build/ts/surfaces/admin/components/NumberField.d.ts +11 -5
  28. package/build/ts/surfaces/admin/components/Option.d.ts +17 -5
  29. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +18 -5
  30. package/build/ts/surfaces/admin/components/OrderedList.d.ts +18 -6
  31. package/build/ts/surfaces/admin/components/Page.d.ts +20 -5
  32. package/build/ts/surfaces/admin/components/Paragraph.d.ts +18 -6
  33. package/build/ts/surfaces/admin/components/PasswordField.d.ts +11 -5
  34. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
  35. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
  36. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +106 -0
  37. package/build/ts/surfaces/admin/components/SearchField.d.ts +14 -6
  38. package/build/ts/surfaces/admin/components/Section.d.ts +17 -6
  39. package/build/ts/surfaces/admin/components/Select.d.ts +16 -6
  40. package/build/ts/surfaces/admin/components/Spinner.d.ts +12 -2
  41. package/build/ts/surfaces/admin/components/Stack.d.ts +28 -7
  42. package/build/ts/surfaces/admin/components/Switch.d.ts +11 -2
  43. package/build/ts/surfaces/admin/components/Table.d.ts +17 -6
  44. package/build/ts/surfaces/admin/components/TableBody.d.ts +18 -6
  45. package/build/ts/surfaces/admin/components/TableCell.d.ts +18 -6
  46. package/build/ts/surfaces/admin/components/TableHeader.d.ts +18 -6
  47. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
  48. package/build/ts/surfaces/admin/components/TableRow.d.ts +18 -6
  49. package/build/ts/surfaces/admin/components/Text.d.ts +17 -6
  50. package/build/ts/surfaces/admin/components/TextArea.d.ts +11 -5
  51. package/build/ts/surfaces/admin/components/TextField.d.ts +13 -5
  52. package/build/ts/surfaces/admin/components/URLField.d.ts +11 -5
  53. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +18 -6
  54. package/build/ts/surfaces/admin/components/shared.d.ts +34 -44
  55. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +589 -219
  56. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +589 -219
  57. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +589 -219
  58. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +589 -219
  59. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +589 -219
  60. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +589 -219
  61. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +589 -219
  62. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +589 -219
  63. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +589 -219
  64. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +589 -219
  65. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +589 -219
  66. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +589 -219
  67. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +589 -219
  68. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +589 -219
  69. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +589 -219
  70. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +589 -219
  71. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +589 -219
  72. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +589 -219
  73. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +589 -219
  74. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +589 -219
  75. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +589 -219
  76. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +589 -219
  77. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +589 -219
  78. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +589 -219
  79. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +589 -219
  80. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +589 -219
  81. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +589 -219
  82. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +589 -219
  83. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +589 -219
  84. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +589 -219
  85. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +589 -219
  86. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +589 -219
  87. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +589 -219
  88. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +589 -219
  89. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +589 -219
  90. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +589 -219
  91. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +589 -219
  92. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +589 -219
  93. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +589 -219
  94. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +589 -219
  95. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +589 -219
  96. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +589 -219
  97. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +589 -219
  98. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +589 -219
  99. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +589 -219
  100. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +589 -219
  101. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +589 -219
  102. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +589 -219
  103. package/build/ts/surfaces/checkout/shared.d.ts +1 -1
  104. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  105. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +103 -1
  106. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +103 -1
  107. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +103 -1
  108. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +103 -1
  109. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +103 -1
  110. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +103 -1
  111. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +103 -1
  112. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +103 -1
  113. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +103 -1
  114. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +103 -1
  115. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +103 -1
  116. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +103 -1
  117. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +103 -1
  118. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +103 -1
  119. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +103 -1
  120. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +103 -1
  121. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +103 -1
  122. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +103 -1
  123. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +103 -1
  124. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +103 -1
  125. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +103 -1
  126. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +103 -1
  127. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +103 -1
  128. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +103 -1
  129. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +103 -1
  130. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +103 -1
  131. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +103 -1
  132. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +103 -1
  133. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +103 -1
  134. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +103 -1
  135. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +103 -1
  136. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +103 -1
  137. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +103 -1
  138. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +103 -1
  139. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +103 -1
  140. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +103 -1
  141. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +103 -1
  142. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +103 -1
  143. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +103 -1
  144. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +103 -1
  145. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +103 -1
  146. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +103 -1
  147. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +103 -1
  148. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +103 -1
  149. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +103 -1
  150. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +103 -1
  151. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +103 -1
  152. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +103 -1
  153. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +103 -1
  154. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +103 -1
  155. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +103 -1
  156. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +103 -1
  157. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +103 -1
  158. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +103 -1
  159. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +103 -1
  160. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +103 -1
  161. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +103 -1
  162. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +103 -1
  163. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +103 -1
  164. package/build/ts/surfaces/customer-account/api/docs.d.ts +1 -1
  165. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
  166. package/build/ts/surfaces/customer-account/api/shared.d.ts +0 -6
  167. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  168. package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
  169. package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
  170. package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -5
  171. package/build/ts/surfaces/customer-account/components/shared.d.ts +11 -0
  172. package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
  173. package/build/ts/surfaces/customer-account/components/shared.ts +17 -0
  174. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +109 -18
  175. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +109 -18
  176. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +109 -18
  177. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +109 -18
  178. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +109 -18
  179. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +109 -18
  180. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +109 -18
  181. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +109 -18
  182. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +109 -18
  183. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +109 -18
  184. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +109 -18
  185. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +109 -18
  186. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +109 -18
  187. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +109 -18
  188. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +109 -18
  189. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +109 -18
  190. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +109 -18
  191. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +109 -18
  192. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +109 -18
  193. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +109 -18
  194. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +109 -18
  195. package/build/tsconfig.tsbuildinfo +1 -1
  196. package/package.json +1 -1
  197. package/src/docs/shared/components/QueryContainer.ts +12 -0
  198. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  199. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  200. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  201. package/src/surfaces/admin/components/Badge.d.ts +17 -6
  202. package/src/surfaces/admin/components/Banner.d.ts +17 -6
  203. package/src/surfaces/admin/components/Box.d.ts +28 -7
  204. package/src/surfaces/admin/components/Button.d.ts +16 -6
  205. package/src/surfaces/admin/components/Checkbox.d.ts +17 -2
  206. package/src/surfaces/admin/components/Choice.d.ts +17 -2
  207. package/src/surfaces/admin/components/ChoiceList.d.ts +17 -6
  208. package/src/surfaces/admin/components/Clickable.d.ts +28 -7
  209. package/src/surfaces/admin/components/DatePicker.d.ts +11 -5
  210. package/src/surfaces/admin/components/Divider.d.ts +12 -5
  211. package/src/surfaces/admin/components/EmailField.d.ts +11 -5
  212. package/src/surfaces/admin/components/Form.d.ts +1 -1
  213. package/src/surfaces/admin/components/Grid.d.ts +28 -7
  214. package/src/surfaces/admin/components/GridItem.d.ts +29 -7
  215. package/src/surfaces/admin/components/Heading.d.ts +17 -6
  216. package/src/surfaces/admin/components/Icon.d.ts +12 -5
  217. package/src/surfaces/admin/components/Image.d.ts +22 -6
  218. package/src/surfaces/admin/components/Link.d.ts +16 -6
  219. package/src/surfaces/admin/components/ListItem.d.ts +18 -6
  220. package/src/surfaces/admin/components/MoneyField.d.ts +11 -6
  221. package/src/surfaces/admin/components/NumberField.d.ts +11 -5
  222. package/src/surfaces/admin/components/Option.d.ts +17 -5
  223. package/src/surfaces/admin/components/OptionGroup.d.ts +18 -5
  224. package/src/surfaces/admin/components/OrderedList.d.ts +18 -6
  225. package/src/surfaces/admin/components/Page.d.ts +20 -5
  226. package/src/surfaces/admin/components/Paragraph.d.ts +18 -6
  227. package/src/surfaces/admin/components/PasswordField.d.ts +11 -5
  228. package/src/surfaces/admin/components/QueryContainer/examples/default.html +5 -0
  229. package/src/surfaces/admin/components/QueryContainer.d.ts +106 -0
  230. package/src/surfaces/admin/components/SearchField.d.ts +14 -6
  231. package/src/surfaces/admin/components/Section.d.ts +17 -6
  232. package/src/surfaces/admin/components/Select.d.ts +16 -6
  233. package/src/surfaces/admin/components/Spinner.d.ts +12 -2
  234. package/src/surfaces/admin/components/Stack.d.ts +28 -7
  235. package/src/surfaces/admin/components/Switch.d.ts +11 -2
  236. package/src/surfaces/admin/components/Table.d.ts +17 -6
  237. package/src/surfaces/admin/components/TableBody.d.ts +18 -6
  238. package/src/surfaces/admin/components/TableCell.d.ts +18 -6
  239. package/src/surfaces/admin/components/TableHeader.d.ts +18 -6
  240. package/src/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
  241. package/src/surfaces/admin/components/TableRow.d.ts +18 -6
  242. package/src/surfaces/admin/components/Text.d.ts +17 -6
  243. package/src/surfaces/admin/components/TextArea.d.ts +11 -5
  244. package/src/surfaces/admin/components/TextField.d.ts +13 -5
  245. package/src/surfaces/admin/components/URLField.d.ts +11 -5
  246. package/src/surfaces/admin/components/UnorderedList.d.ts +18 -6
  247. package/src/surfaces/admin/components/shared.d.ts +34 -44
  248. package/src/surfaces/admin/components.d.ts +333 -513
  249. package/src/surfaces/checkout/shared.ts +3 -0
  250. package/src/surfaces/customer-account/api/docs.ts +1 -1
  251. package/src/surfaces/customer-account/api/shared.ts +0 -6
  252. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
  253. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
  254. package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
  255. package/src/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
  256. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +4 -4
  257. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +4 -4
  258. package/src/surfaces/customer-account/components/Page.d.ts +3 -5
  259. package/src/surfaces/customer-account/components/shared.ts +17 -0
@@ -0,0 +1,106 @@
1
+ /** VERSION: 1.1.0 **/
2
+ /* eslint-disable import/extensions */
3
+
4
+ /* eslint-disable @typescript-eslint/no-namespace */
5
+ /* eslint-disable @typescript-eslint/member-ordering */
6
+
7
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
+ /// <reference lib="DOM" />
9
+ import type {QueryContainerProps$1, ComponentChild} from './shared.d.ts';
10
+
11
+ export type Styles = string;
12
+ export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
13
+ ShadowRoot: (element: any) => ComponentChild;
14
+ styles?: Styles;
15
+ };
16
+ export interface ActivationEventEsque {
17
+ shiftKey: boolean;
18
+ metaKey: boolean;
19
+ ctrlKey: boolean;
20
+ button: number;
21
+ }
22
+ export interface ClickOptions {
23
+ /**
24
+ * The event you want to influence the synthetic click.
25
+ */
26
+ sourceEvent?: ActivationEventEsque;
27
+ }
28
+ /**
29
+ * Base class for creating custom elements with Preact.
30
+ * While this class could be used in both Node and the browser, the constructor will only be used in the browser.
31
+ * So we give it a type of HTMLElement to avoid typing issues later where it's used, which will only happen in the browser.
32
+ */
33
+ declare const BaseClass: typeof globalThis.HTMLElement;
34
+ declare abstract class PreactCustomElement extends BaseClass {
35
+ /** @private */
36
+ static get observedAttributes(): string[];
37
+ constructor({
38
+ styles,
39
+ ShadowRoot: renderFunction,
40
+ delegatesFocus,
41
+ ...options
42
+ }: RenderImpl);
43
+
44
+ /** @private */
45
+ setAttribute(name: string, value: string): void;
46
+ /** @private */
47
+ attributeChangedCallback(name: string): void;
48
+ /** @private */
49
+ connectedCallback(): void;
50
+ /** @private */
51
+ disconnectedCallback(): void;
52
+ /** @private */
53
+ adoptedCallback(): void;
54
+ /**
55
+ * Queue a run of the render function.
56
+ * You shouldn't need to call this manually - it should be handled by changes to @property values.
57
+ * @private
58
+ */
59
+ queueRender(): void;
60
+ /**
61
+ * Like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.
62
+ *
63
+ * For example, if the `sourceEvent` was a middle click, or has particular keys held down,
64
+ * components will attempt to produce the desired behavior on links, such as opening the page in the background tab.
65
+ * @private
66
+ * @param options
67
+ */
68
+ click({sourceEvent}?: ClickOptions): void;
69
+ }
70
+
71
+ export interface QueryContainerProps
72
+ extends Required<Pick<QueryContainerProps$1, 'id' | 'containerName'>> {}
73
+
74
+ declare class QueryContainer
75
+ extends PreactCustomElement
76
+ implements QueryContainerProps
77
+ {
78
+ accessor containerName: QueryContainerProps['containerName'];
79
+ /** @private */
80
+ static globalStylesApplied: boolean;
81
+ constructor();
82
+ }
83
+ declare global {
84
+ interface HTMLElementTagNameMap {
85
+ [tagName]: QueryContainer;
86
+ }
87
+ }
88
+ declare module 'preact' {
89
+ namespace createElement.JSX {
90
+ interface IntrinsicElements {
91
+ [tagName]: Omit<
92
+ HTMLAttributes<HTMLElement>,
93
+ Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
94
+ > &
95
+ QueryContainerJSXProps;
96
+ }
97
+ }
98
+ }
99
+
100
+ declare const tagName = 's-query-container';
101
+ export interface QueryContainerJSXProps
102
+ extends Partial<QueryContainerProps$1>,
103
+ Pick<QueryContainerProps$1, 'id'> {}
104
+
105
+ export {QueryContainer};
106
+ export type {QueryContainerJSXProps};
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -88,6 +88,15 @@ export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
88
88
  onFocus?: ((event: CallbackEvent<T>) => void) | null;
89
89
  onBlur?: ((event: CallbackEvent<T>) => void) | null;
90
90
  }
91
+ /** Used when an element does not have children. */
92
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
93
+ /** Assigns a unique key to this element. */
94
+ key?: preact.Key;
95
+ /** Assigns a ref (generally from `useRef()`) to this element. */
96
+ ref?: preact.Ref<TClass>;
97
+ /** Assigns this element to a parent's slot. */
98
+ slot?: Lowercase<string>;
99
+ }
91
100
 
92
101
  declare const internals: unique symbol;
93
102
  export type PreactInputProps = Required<
@@ -190,6 +199,9 @@ declare class PreactFieldElement<Autocomplete extends string = string>
190
199
  }
191
200
 
192
201
  export type SearchFieldProps = PreactFieldProps<
202
+ /**
203
+ * @default 'on'
204
+ */
193
205
  Required<TextFieldProps>['autocomplete']
194
206
  > &
195
207
  Required<
@@ -225,13 +237,9 @@ declare global {
225
237
  }
226
238
  }
227
239
  declare module 'preact' {
228
- interface BaseProps {
229
- children?: preact.ComponentChildren;
230
- slot?: Lowercase<string>;
231
- }
232
240
  namespace createElement.JSX {
233
241
  interface IntrinsicElements {
234
- [tagName]: SearchFieldJSXProps & BaseProps;
242
+ [tagName]: SearchFieldJSXProps & PreactBaseElementProps<SearchField>;
235
243
  }
236
244
  }
237
245
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -78,6 +78,21 @@ declare abstract class PreactCustomElement extends BaseClass {
78
78
  click({sourceEvent}?: ClickOptions): void;
79
79
  }
80
80
 
81
+ /** Used when an element does not have children. */
82
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
83
+ /** Assigns a unique key to this element. */
84
+ key?: preact.Key;
85
+ /** Assigns a ref (generally from `useRef()`) to this element. */
86
+ ref?: preact.Ref<TClass>;
87
+ /** Assigns this element to a parent's slot. */
88
+ slot?: Lowercase<string>;
89
+ }
90
+ /** Used when an element has children. */
91
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
92
+ extends PreactBaseElementProps<TClass> {
93
+ children?: preact.ComponentChildren;
94
+ }
95
+
81
96
  declare class Section extends PreactCustomElement implements SectionProps {
82
97
  constructor();
83
98
  /** @private */
@@ -92,13 +107,9 @@ declare global {
92
107
  }
93
108
  }
94
109
  declare module 'preact' {
95
- interface BaseProps {
96
- children?: preact.ComponentChildren;
97
- slot?: Lowercase<string>;
98
- }
99
110
  namespace createElement.JSX {
100
111
  interface IntrinsicElements {
101
- [tagName]: SectionJSXProps & BaseProps;
112
+ [tagName]: SectionJSXProps & PreactBaseElementPropsWithChildren<Section>;
102
113
  }
103
114
  }
104
115
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -86,6 +86,20 @@ export type CallbackEventListener<
86
86
  (event: CallbackEvent<TTagName, TEvent>): void;
87
87
  })
88
88
  | null;
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
+ /** Used when an element has children. */
99
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
100
+ extends PreactBaseElementProps<TClass> {
101
+ children?: preact.ComponentChildren;
102
+ }
89
103
 
90
104
  declare const internals: unique symbol;
91
105
  export type PreactInputProps = Required<
@@ -164,13 +178,9 @@ declare global {
164
178
  }
165
179
  }
166
180
  declare module 'preact' {
167
- interface BaseProps {
168
- children?: preact.ComponentChildren;
169
- slot?: Lowercase<string>;
170
- }
171
181
  namespace createElement.JSX {
172
182
  interface IntrinsicElements {
173
- [tagName]: SelectJSXProps & BaseProps;
183
+ [tagName]: SelectJSXProps & PreactBaseElementPropsWithChildren<Select>;
174
184
  }
175
185
  }
176
186
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -73,6 +73,16 @@ declare abstract class PreactCustomElement extends BaseClass {
73
73
  click({sourceEvent}?: ClickOptions): void;
74
74
  }
75
75
 
76
+ /** Used when an element does not have children. */
77
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
78
+ /** Assigns a unique key to this element. */
79
+ key?: preact.Key;
80
+ /** Assigns a ref (generally from `useRef()`) to this element. */
81
+ ref?: preact.Ref<TClass>;
82
+ /** Assigns this element to a parent's slot. */
83
+ slot?: Lowercase<string>;
84
+ }
85
+
76
86
  declare class Spinner extends PreactCustomElement implements SpinnerProps {
77
87
  accessor accessibilityLabel: string;
78
88
  accessor size: SpinnerProps['size'];
@@ -86,7 +96,7 @@ declare global {
86
96
  declare module 'preact' {
87
97
  namespace createElement.JSX {
88
98
  interface IntrinsicElements {
89
- [tagName]: SpinnerJSXProps;
99
+ [tagName]: SpinnerJSXProps & PreactBaseElementProps<Spinner>;
90
100
  }
91
101
  }
92
102
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -58,6 +58,7 @@ export type ResponsiveBoxProps = MakeResponsivePick<
58
58
  | 'paddingInline'
59
59
  | 'paddingInlineStart'
60
60
  | 'paddingInlineEnd'
61
+ | 'display'
61
62
  >;
62
63
  export interface BoxProps
63
64
  extends Pick<
@@ -72,7 +73,6 @@ export interface BoxProps
72
73
  | 'borderRadius'
73
74
  | 'borderStyle'
74
75
  | 'borderWidth'
75
- | 'display'
76
76
  | 'inlineSize'
77
77
  | 'maxBlockSize'
78
78
  | 'maxInlineSize'
@@ -197,6 +197,16 @@ export interface BoxProps
197
197
  * @default '' - meaning no override
198
198
  */
199
199
  paddingInlineEnd: ResponsiveBoxProps['paddingInlineEnd'];
200
+ /**
201
+ * Sets the outer display type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).
202
+ *
203
+ * - `auto` the component's initial value. The actual value depends on the component and context.
204
+ * - `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.
205
+ *
206
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
207
+ * @default 'auto'
208
+ */
209
+ display: ResponsiveBoxProps['display'];
200
210
  }
201
211
 
202
212
  export type AlignedStackProps = Required<StackProps$1>;
@@ -344,6 +354,21 @@ declare class BoxElement extends PreactCustomElement implements BoxProps {
344
354
  accessor display: BoxProps['display'];
345
355
  }
346
356
 
357
+ /** Used when an element does not have children. */
358
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
359
+ /** Assigns a unique key to this element. */
360
+ key?: preact.Key;
361
+ /** Assigns a ref (generally from `useRef()`) to this element. */
362
+ ref?: preact.Ref<TClass>;
363
+ /** Assigns this element to a parent's slot. */
364
+ slot?: Lowercase<string>;
365
+ }
366
+ /** Used when an element has children. */
367
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
368
+ extends PreactBaseElementProps<TClass> {
369
+ children?: preact.ComponentChildren;
370
+ }
371
+
347
372
  declare class Stack extends BoxElement implements StackProps {
348
373
  constructor();
349
374
  accessor direction: StackProps['direction'];
@@ -360,13 +385,9 @@ declare global {
360
385
  }
361
386
  }
362
387
  declare module 'preact' {
363
- interface BaseProps {
364
- children?: preact.ComponentChildren;
365
- slot?: Lowercase<string>;
366
- }
367
388
  namespace createElement.JSX {
368
389
  interface IntrinsicElements {
369
- [tagName]: StackJSXProps & BaseProps;
390
+ [tagName]: StackJSXProps & PreactBaseElementPropsWithChildren<Stack>;
370
391
  }
371
392
  }
372
393
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -87,6 +87,15 @@ export type CallbackEventListener<
87
87
  (event: CallbackEvent<TTagName, TEvent>): void;
88
88
  })
89
89
  | null;
90
+ /** Used when an element does not have children. */
91
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
92
+ /** Assigns a unique key to this element. */
93
+ key?: preact.Key;
94
+ /** Assigns a ref (generally from `useRef()`) to this element. */
95
+ ref?: preact.Ref<TClass>;
96
+ /** Assigns this element to a parent's slot. */
97
+ slot?: Lowercase<string>;
98
+ }
90
99
 
91
100
  declare const internals: unique symbol;
92
101
  export type PreactInputProps = Required<
@@ -164,7 +173,7 @@ declare global {
164
173
  declare module 'preact' {
165
174
  namespace createElement.JSX {
166
175
  interface IntrinsicElements {
167
- [tagName]: SwitchJSXProps;
176
+ [tagName]: SwitchJSXProps & PreactBaseElementProps<Switch>;
168
177
  }
169
178
  }
170
179
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -113,6 +113,20 @@ export type CallbackEventListener<
113
113
  (event: CallbackEvent<TTagName, TEvent>): void;
114
114
  })
115
115
  | null;
116
+ /** Used when an element does not have children. */
117
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
118
+ /** Assigns a unique key to this element. */
119
+ key?: preact.Key;
120
+ /** Assigns a ref (generally from `useRef()`) to this element. */
121
+ ref?: preact.Ref<TClass>;
122
+ /** Assigns this element to a parent's slot. */
123
+ slot?: Lowercase<string>;
124
+ }
125
+ /** Used when an element has children. */
126
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
127
+ extends PreactBaseElementProps<TClass> {
128
+ children?: preact.ComponentChildren;
129
+ }
116
130
 
117
131
  declare class Table extends PreactCustomElement implements TableProps {
118
132
  accessor variant: TableProps['variant'];
@@ -143,13 +157,10 @@ declare global {
143
157
  }
144
158
  }
145
159
  declare module 'preact' {
146
- interface BaseProps {
147
- children?: preact.ComponentChildren;
148
- slot?: Lowercase<string>;
149
- }
150
160
  namespace createElement.JSX {
151
161
  interface IntrinsicElements {
152
- [tagName]: Omit<TableJSXProps, 'filters'> & BaseProps;
162
+ [tagName]: Omit<TableJSXProps, 'filters'> &
163
+ PreactBaseElementPropsWithChildren<Table>;
153
164
  }
154
165
  }
155
166
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -69,6 +69,21 @@ declare abstract class PreactCustomElement extends BaseClass {
69
69
  click({sourceEvent}?: ClickOptions): void;
70
70
  }
71
71
 
72
+ /** Used when an element does not have children. */
73
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
74
+ /** Assigns a unique key to this element. */
75
+ key?: preact.Key;
76
+ /** Assigns a ref (generally from `useRef()`) to this element. */
77
+ ref?: preact.Ref<TClass>;
78
+ /** Assigns this element to a parent's slot. */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /** Used when an element has children. */
82
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
83
+ extends PreactBaseElementProps<TClass> {
84
+ children?: preact.ComponentChildren;
85
+ }
86
+
72
87
  declare class TableBody extends PreactCustomElement implements TableBodyProps {
73
88
  constructor();
74
89
  }
@@ -78,13 +93,10 @@ declare global {
78
93
  }
79
94
  }
80
95
  declare module 'preact' {
81
- interface BaseProps {
82
- children?: preact.ComponentChildren;
83
- slot?: Lowercase<string>;
84
- }
85
96
  namespace createElement.JSX {
86
97
  interface IntrinsicElements {
87
- [tagName]: TableBodyJSXProps & BaseProps;
98
+ [tagName]: TableBodyJSXProps &
99
+ PreactBaseElementPropsWithChildren<TableBody>;
88
100
  }
89
101
  }
90
102
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -69,6 +69,21 @@ declare abstract class PreactCustomElement extends BaseClass {
69
69
  click({sourceEvent}?: ClickOptions): void;
70
70
  }
71
71
 
72
+ /** Used when an element does not have children. */
73
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
74
+ /** Assigns a unique key to this element. */
75
+ key?: preact.Key;
76
+ /** Assigns a ref (generally from `useRef()`) to this element. */
77
+ ref?: preact.Ref<TClass>;
78
+ /** Assigns this element to a parent's slot. */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /** Used when an element has children. */
82
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
83
+ extends PreactBaseElementProps<TClass> {
84
+ children?: preact.ComponentChildren;
85
+ }
86
+
72
87
  declare class TableCell extends PreactCustomElement implements TableCellProps {
73
88
  constructor();
74
89
  }
@@ -78,13 +93,10 @@ declare global {
78
93
  }
79
94
  }
80
95
  declare module 'preact' {
81
- interface BaseProps {
82
- children?: preact.ComponentChildren;
83
- slot?: Lowercase<string>;
84
- }
85
96
  namespace createElement.JSX {
86
97
  interface IntrinsicElements {
87
- [tagName]: TableCellJSXProps & BaseProps;
98
+ [tagName]: TableCellJSXProps &
99
+ PreactBaseElementPropsWithChildren<TableCell>;
88
100
  }
89
101
  }
90
102
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -75,6 +75,21 @@ declare abstract class PreactCustomElement extends BaseClass {
75
75
  click({sourceEvent}?: ClickOptions): void;
76
76
  }
77
77
 
78
+ /** Used when an element does not have children. */
79
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
80
+ /** Assigns a unique key to this element. */
81
+ key?: preact.Key;
82
+ /** Assigns a ref (generally from `useRef()`) to this element. */
83
+ ref?: preact.Ref<TClass>;
84
+ /** Assigns this element to a parent's slot. */
85
+ slot?: Lowercase<string>;
86
+ }
87
+ /** Used when an element has children. */
88
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
89
+ extends PreactBaseElementProps<TClass> {
90
+ children?: preact.ComponentChildren;
91
+ }
92
+
78
93
  declare class TableHeader
79
94
  extends PreactCustomElement
80
95
  implements TableHeaderProps
@@ -88,13 +103,10 @@ declare global {
88
103
  }
89
104
  }
90
105
  declare module 'preact' {
91
- interface BaseProps {
92
- children?: preact.ComponentChildren;
93
- slot?: Lowercase<string>;
94
- }
95
106
  namespace createElement.JSX {
96
107
  interface IntrinsicElements {
97
- [tagName]: TableHeaderJSXProps & BaseProps;
108
+ [tagName]: TableHeaderJSXProps &
109
+ PreactBaseElementPropsWithChildren<TableHeader>;
98
110
  }
99
111
  }
100
112
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -69,6 +69,21 @@ declare abstract class PreactCustomElement extends BaseClass {
69
69
  click({sourceEvent}?: ClickOptions): void;
70
70
  }
71
71
 
72
+ /** Used when an element does not have children. */
73
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
74
+ /** Assigns a unique key to this element. */
75
+ key?: preact.Key;
76
+ /** Assigns a ref (generally from `useRef()`) to this element. */
77
+ ref?: preact.Ref<TClass>;
78
+ /** Assigns this element to a parent's slot. */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /** Used when an element has children. */
82
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
83
+ extends PreactBaseElementProps<TClass> {
84
+ children?: preact.ComponentChildren;
85
+ }
86
+
72
87
  declare class TableHeaderRow
73
88
  extends PreactCustomElement
74
89
  implements TableHeaderRowProps
@@ -84,13 +99,10 @@ declare global {
84
99
  }
85
100
  }
86
101
  declare module 'preact' {
87
- interface BaseProps {
88
- children?: preact.ComponentChildren;
89
- slot?: Lowercase<string>;
90
- }
91
102
  namespace createElement.JSX {
92
103
  interface IntrinsicElements {
93
- [tagName]: TableHeaderRowJSXProps & BaseProps;
104
+ [tagName]: TableHeaderRowJSXProps &
105
+ PreactBaseElementPropsWithChildren<TableHeaderRow>;
94
106
  }
95
107
  }
96
108
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -69,6 +69,21 @@ declare abstract class PreactCustomElement extends BaseClass {
69
69
  click({sourceEvent}?: ClickOptions): void;
70
70
  }
71
71
 
72
+ /** Used when an element does not have children. */
73
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
74
+ /** Assigns a unique key to this element. */
75
+ key?: preact.Key;
76
+ /** Assigns a ref (generally from `useRef()`) to this element. */
77
+ ref?: preact.Ref<TClass>;
78
+ /** Assigns this element to a parent's slot. */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /** Used when an element has children. */
82
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
83
+ extends PreactBaseElementProps<TClass> {
84
+ children?: preact.ComponentChildren;
85
+ }
86
+
72
87
  declare class TableRow extends PreactCustomElement implements TableRowProps {
73
88
  constructor();
74
89
  }
@@ -78,13 +93,10 @@ declare global {
78
93
  }
79
94
  }
80
95
  declare module 'preact' {
81
- interface BaseProps {
82
- children?: preact.ComponentChildren;
83
- slot?: Lowercase<string>;
84
- }
85
96
  namespace createElement.JSX {
86
97
  interface IntrinsicElements {
87
- [tagName]: TableRowJSXProps & BaseProps;
98
+ [tagName]: TableRowJSXProps &
99
+ PreactBaseElementPropsWithChildren<TableRow>;
88
100
  }
89
101
  }
90
102
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -95,6 +95,21 @@ declare abstract class PreactCustomElement extends BaseClass {
95
95
  click({sourceEvent}?: ClickOptions): void;
96
96
  }
97
97
 
98
+ /** Used when an element does not have children. */
99
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
100
+ /** Assigns a unique key to this element. */
101
+ key?: preact.Key;
102
+ /** Assigns a ref (generally from `useRef()`) to this element. */
103
+ ref?: preact.Ref<TClass>;
104
+ /** Assigns this element to a parent's slot. */
105
+ slot?: Lowercase<string>;
106
+ }
107
+ /** Used when an element has children. */
108
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
109
+ extends PreactBaseElementProps<TClass> {
110
+ children?: preact.ComponentChildren;
111
+ }
112
+
98
113
  declare class Text extends PreactCustomElement implements TextProps {
99
114
  accessor fontVariantNumeric: TextProps['fontVariantNumeric'];
100
115
  accessor color: TextProps['color'];
@@ -110,13 +125,9 @@ declare global {
110
125
  }
111
126
  }
112
127
  declare module 'preact' {
113
- interface BaseProps {
114
- children?: preact.ComponentChildren;
115
- slot?: Lowercase<string>;
116
- }
117
128
  namespace createElement.JSX {
118
129
  interface IntrinsicElements {
119
- [tagName]: TextJSXProps & BaseProps;
130
+ [tagName]: TextJSXProps & PreactBaseElementPropsWithChildren<Text>;
120
131
  }
121
132
  }
122
133
  }