@stacksjs/defaults 0.75.318 → 0.75.321

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 (252) hide show
  1. package/ai/skills/stacks-browse/SKILL.md +8 -0
  2. package/ai/skills/stacks-browse/scripts/browse.ts +16 -6
  3. package/ai/skills/stacks-browse/scripts/chrome.ts +4 -0
  4. package/ai/skills/stacks-database/SKILL.md +1 -1
  5. package/ai/skills/stacks-desktop/SKILL.md +23 -0
  6. package/ai/skills/stacks-migrations/SKILL.md +2 -2
  7. package/ai/skills/stacks-native/CATALOG.md +8 -8
  8. package/app/Actions/Cms/AuthorUpdateAction.ts +4 -4
  9. package/app/Actions/Cms/CategorizableUpdateAction.ts +4 -4
  10. package/app/Actions/Cms/PostUpdateAction.ts +4 -5
  11. package/app/Actions/Cms/TaggableUpdateAction.ts +4 -2
  12. package/app/Actions/Commerce/CustomerStoreAction.ts +4 -6
  13. package/app/Actions/Commerce/CustomerUpdateAction.ts +4 -6
  14. package/app/Actions/Commerce/PaymentStoreAction.ts +5 -8
  15. package/app/Actions/Commerce/PaymentUpdateAction.ts +20 -17
  16. package/app/Actions/Dashboard/Commerce/commerce-product-records.test.ts +7 -0
  17. package/app/Actions/Dashboard/Commerce/commerce-product-records.ts +14 -3
  18. package/app/Actions/Dashboard/Commerce/review-records.test.ts +12 -0
  19. package/app/Actions/Dashboard/Commerce/review-records.ts +10 -5
  20. package/app/Actions/Dashboard/Content/AuthorStoreAction.ts +2 -0
  21. package/app/Actions/Dashboard/Content/CategoryStoreAction.ts +4 -1
  22. package/app/Actions/Dashboard/Content/PageStoreAction.ts +2 -0
  23. package/app/Actions/Dashboard/Content/PostStoreAction.ts +2 -0
  24. package/app/Actions/Dashboard/Content/TagStoreAction.ts +2 -0
  25. package/app/Actions/Dashboard/Content/content-input.ts +9 -4
  26. package/app/Actions/Dashboard/Content/content-record-input.test.ts +20 -1
  27. package/app/Actions/Dashboard/Marketing/CampaignIndexAction.ts +1 -1
  28. package/app/Actions/Dashboard/Marketing/ListIndexAction.ts +1 -1
  29. package/app/Actions/Dashboard/Models/ModelStoreAction.ts +5 -1
  30. package/app/Actions/Dashboard/Models/ModelUpdateAction.ts +5 -1
  31. package/app/Actions/Dashboard/Notifications/NotificationDeliveryOverviewAction.ts +1 -1
  32. package/app/Actions/Storefront/AddToCartAction.ts +5 -2
  33. package/app/Actions/Storefront/PlaceOrderAction.ts +6 -11
  34. package/app/Actions/Storefront/SubmitReviewAction.ts +6 -5
  35. package/app/Models/Activity.ts +1 -0
  36. package/app/Models/AnalyticsEvent.ts +1 -0
  37. package/app/Models/AutomationRun.ts +1 -1
  38. package/app/Models/BoardColumn.ts +0 -1
  39. package/app/Models/Campaign.ts +1 -1
  40. package/app/Models/CampaignSend.ts +3 -3
  41. package/app/Models/Card.ts +0 -1
  42. package/app/Models/CardComment.ts +0 -2
  43. package/app/Models/Content/Author.ts +2 -0
  44. package/app/Models/Content/Categorizable.ts +1 -0
  45. package/app/Models/Content/Menu.ts +2 -0
  46. package/app/Models/Content/MenuItem.ts +2 -0
  47. package/app/Models/Content/PageRevision.ts +2 -0
  48. package/app/Models/Content/Post.ts +2 -0
  49. package/app/Models/Content/Redirect.ts +2 -0
  50. package/app/Models/EmailListSubscriber.ts +2 -2
  51. package/app/Models/Error.ts +5 -0
  52. package/app/Models/Forms/Form.ts +2 -0
  53. package/app/Models/Forms/FormField.ts +2 -0
  54. package/app/Models/Forms/FormSubmission.ts +2 -0
  55. package/app/Models/Label.ts +0 -1
  56. package/app/Models/Log.ts +3 -1
  57. package/app/Models/MagicLinkToken.ts +0 -7
  58. package/app/Models/PaymentProduct.ts +1 -0
  59. package/app/Models/PaymentTransaction.ts +1 -0
  60. package/app/Models/Release.ts +3 -0
  61. package/app/Models/Request.ts +1 -0
  62. package/app/Models/SenderDomain.ts +2 -0
  63. package/app/Models/SmsOptOut.ts +0 -7
  64. package/app/Models/Subscription.ts +2 -0
  65. package/app/Models/commerce/Auction.ts +1 -0
  66. package/app/Models/commerce/AuctionItem.ts +1 -0
  67. package/app/Models/commerce/Cart.ts +83 -2
  68. package/app/Models/commerce/Category.ts +5 -1
  69. package/app/Models/commerce/Coupon.ts +4 -1
  70. package/app/Models/commerce/DigitalDelivery.ts +1 -0
  71. package/app/Models/commerce/GiftCard.ts +1 -0
  72. package/app/Models/commerce/LoyaltyPoint.ts +1 -0
  73. package/app/Models/commerce/LoyaltyReward.ts +3 -1
  74. package/app/Models/commerce/Order.ts +4 -1
  75. package/app/Models/commerce/OrderItem.ts +1 -0
  76. package/app/Models/commerce/Payment.ts +1 -0
  77. package/app/Models/commerce/Product.ts +15 -0
  78. package/app/Models/commerce/ProductVariant.ts +2 -0
  79. package/app/Models/commerce/Receipt.ts +1 -0
  80. package/app/Models/commerce/Review.ts +3 -1
  81. package/app/Models/commerce/Transaction.ts +1 -0
  82. package/app/Models/realtime/Websocket.ts +4 -1
  83. package/functions/dashboard-form.test.ts +10 -1
  84. package/functions/dashboard-form.ts +17 -0
  85. package/ide/vscode/package.json +1 -1
  86. package/package.json +4 -4
  87. package/resources/components/Dashboard/Analytics/AnalyticsPageHeader.stx +1 -1
  88. package/resources/components/Dashboard/App/RequestDetailsDialog.stx +1 -1
  89. package/resources/components/Dashboard/Auth/AccessTokenCreateDialog.stx +1 -1
  90. package/resources/components/Dashboard/Auth/ForgotPassword.stx +1 -1
  91. package/resources/components/Dashboard/Auth/Login.stx +1 -1
  92. package/resources/components/Dashboard/Auth/Register.stx +1 -1
  93. package/resources/components/Dashboard/Auth/ResetPassword.stx +1 -1
  94. package/resources/components/Dashboard/Auth/TwoFactorLogin.stx +1 -1
  95. package/resources/components/Dashboard/CodeEditor.stx +1 -1
  96. package/resources/components/Dashboard/Commerce/CommerceCategoriesDashboard.stx +1 -1
  97. package/resources/components/Dashboard/Commerce/CommerceCategoriesTable.stx +1 -1
  98. package/resources/components/Dashboard/Commerce/CommerceCategoryDeleteDialog.stx +1 -1
  99. package/resources/components/Dashboard/Commerce/CommerceCategoryDetailsDialog.stx +1 -1
  100. package/resources/components/Dashboard/Commerce/CommerceCategoryDialog.stx +4 -13
  101. package/resources/components/Dashboard/Commerce/CommerceCouponDeleteDialog.stx +1 -1
  102. package/resources/components/Dashboard/Commerce/CommerceCouponDetailsDialog.stx +1 -1
  103. package/resources/components/Dashboard/Commerce/CommerceCouponDialog.stx +1 -1
  104. package/resources/components/Dashboard/Commerce/CommerceCouponsTable.stx +1 -1
  105. package/resources/components/Dashboard/Commerce/CommerceCustomerDeleteDialog.stx +1 -1
  106. package/resources/components/Dashboard/Commerce/CommerceCustomerDetailsDialog.stx +1 -1
  107. package/resources/components/Dashboard/Commerce/CommerceCustomerDialog.stx +1 -1
  108. package/resources/components/Dashboard/Commerce/CommerceCustomersTable.stx +1 -1
  109. package/resources/components/Dashboard/Commerce/CommerceGiftCardDeleteDialog.stx +1 -1
  110. package/resources/components/Dashboard/Commerce/CommerceGiftCardDetailsDialog.stx +1 -1
  111. package/resources/components/Dashboard/Commerce/CommerceGiftCardDialog.stx +1 -1
  112. package/resources/components/Dashboard/Commerce/CommerceGiftCardsTable.stx +1 -1
  113. package/resources/components/Dashboard/Commerce/CommerceManufacturerDeleteDialog.stx +1 -1
  114. package/resources/components/Dashboard/Commerce/CommerceManufacturerDialog.stx +1 -1
  115. package/resources/components/Dashboard/Commerce/CommerceManufacturersTable.stx +1 -1
  116. package/resources/components/Dashboard/Commerce/CommerceOrderDeleteDialog.stx +1 -1
  117. package/resources/components/Dashboard/Commerce/CommerceOrderDetailsDialog.stx +1 -1
  118. package/resources/components/Dashboard/Commerce/CommerceOrderDialog.stx +1 -1
  119. package/resources/components/Dashboard/Commerce/CommerceOrdersTable.stx +1 -1
  120. package/resources/components/Dashboard/Commerce/CommercePaymentsTable.stx +1 -1
  121. package/resources/components/Dashboard/Commerce/CommercePosCart.stx +1 -1
  122. package/resources/components/Dashboard/Commerce/CommercePosCatalog.stx +1 -1
  123. package/resources/components/Dashboard/Commerce/CommercePosCheckoutDialog.stx +1 -1
  124. package/resources/components/Dashboard/Commerce/CommercePosReceiptDialog.stx +1 -1
  125. package/resources/components/Dashboard/Commerce/CommerceProductDeleteDialog.stx +1 -1
  126. package/resources/components/Dashboard/Commerce/CommerceProductDialog.stx +27 -2
  127. package/resources/components/Dashboard/Commerce/CommerceProductsTable.stx +1 -1
  128. package/resources/components/Dashboard/Commerce/CommerceReviewDeleteDialog.stx +1 -1
  129. package/resources/components/Dashboard/Commerce/CommerceReviewEditDialog.stx +7 -5
  130. package/resources/components/Dashboard/Commerce/CommerceReviewsDashboard.stx +12 -4
  131. package/resources/components/Dashboard/Commerce/CommerceReviewsTable.stx +3 -3
  132. package/resources/components/Dashboard/Commerce/CommerceTaxDeleteDialog.stx +1 -1
  133. package/resources/components/Dashboard/Commerce/CommerceTaxDialog.stx +1 -1
  134. package/resources/components/Dashboard/Commerce/CommerceTaxesTable.stx +1 -1
  135. package/resources/components/Dashboard/Commerce/CommerceUnitDeleteDialog.stx +1 -1
  136. package/resources/components/Dashboard/Commerce/CommerceUnitDialog.stx +1 -1
  137. package/resources/components/Dashboard/Commerce/CommerceUnitsTable.stx +1 -1
  138. package/resources/components/Dashboard/Commerce/CommerceVariantDeleteDialog.stx +1 -1
  139. package/resources/components/Dashboard/Commerce/CommerceVariantDialog.stx +1 -1
  140. package/resources/components/Dashboard/Commerce/CommerceVariantsTable.stx +1 -1
  141. package/resources/components/Dashboard/Commerce/Delivery/CourierDeleteDialog.stx +1 -1
  142. package/resources/components/Dashboard/Commerce/Delivery/CourierDialog.stx +1 -1
  143. package/resources/components/Dashboard/Commerce/Delivery/CouriersTable.stx +1 -1
  144. package/resources/components/Dashboard/Commerce/Delivery/DeliveryPagination.stx +1 -1
  145. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDeleteDialog.stx +1 -1
  146. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDialog.stx +1 -1
  147. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRoutesTable.stx +1 -1
  148. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryDeleteDialog.stx +1 -1
  149. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryDialog.stx +1 -1
  150. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryTable.stx +1 -1
  151. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDeleteDialog.stx +1 -1
  152. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDialog.stx +1 -1
  153. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeysTable.stx +1 -1
  154. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodDeleteDialog.stx +1 -1
  155. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodDialog.stx +1 -1
  156. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodsTable.stx +1 -1
  157. package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDeleteDialog.stx +1 -1
  158. package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDialog.stx +1 -1
  159. package/resources/components/Dashboard/Commerce/Delivery/ShippingRatesTable.stx +1 -1
  160. package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDeleteDialog.stx +1 -1
  161. package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDialog.stx +1 -1
  162. package/resources/components/Dashboard/Commerce/Delivery/ShippingZonesTable.stx +1 -1
  163. package/resources/components/Dashboard/Commerce/PaymentDetailsDialog.stx +1 -1
  164. package/resources/components/Dashboard/Commerce/PaymentRefundDialog.stx +1 -1
  165. package/resources/components/Dashboard/Commerce/PrintDeviceDeleteDialog.stx +1 -1
  166. package/resources/components/Dashboard/Commerce/PrintDeviceDetailsDialog.stx +1 -1
  167. package/resources/components/Dashboard/Commerce/PrintDeviceDialog.stx +1 -1
  168. package/resources/components/Dashboard/Commerce/PrintDevicesTable.stx +1 -1
  169. package/resources/components/Dashboard/Commerce/PrintLogDeleteDialog.stx +1 -1
  170. package/resources/components/Dashboard/Commerce/PrintLogDetailsDialog.stx +1 -1
  171. package/resources/components/Dashboard/Commerce/PrintLogsTable.stx +1 -1
  172. package/resources/components/Dashboard/Commerce/ProductWaitlistDeleteDialog.stx +1 -1
  173. package/resources/components/Dashboard/Commerce/ProductWaitlistEntryDialog.stx +1 -1
  174. package/resources/components/Dashboard/Commerce/ProductWaitlistTable.stx +1 -1
  175. package/resources/components/Dashboard/Commerce/RestaurantWaitlistDeleteDialog.stx +1 -1
  176. package/resources/components/Dashboard/Commerce/RestaurantWaitlistEntryDialog.stx +1 -1
  177. package/resources/components/Dashboard/Commerce/RestaurantWaitlistTable.stx +1 -1
  178. package/resources/components/Dashboard/Content/AuthorEditorDialog.stx +1 -1
  179. package/resources/components/Dashboard/Content/BlogPostEditorDialog.stx +1 -1
  180. package/resources/components/Dashboard/Content/CreateFolderDialog.stx +1 -1
  181. package/resources/components/Dashboard/Content/FileDetailsDrawer.stx +1 -1
  182. package/resources/components/Dashboard/Content/FileUploadDialog.stx +1 -1
  183. package/resources/components/Dashboard/Content/PageEditorDialog.stx +1 -1
  184. package/resources/components/Dashboard/Content/PostEditorDialog.stx +1 -1
  185. package/resources/components/Dashboard/Content/SeoEditorDialog.stx +1 -1
  186. package/resources/components/Dashboard/Content/TaxonomyEditorDialog.stx +1 -1
  187. package/resources/components/Dashboard/CreateRecordModal.stx +1 -1
  188. package/resources/components/Dashboard/Deployments/DeploymentPreviewDialog.stx +1 -1
  189. package/resources/components/Dashboard/Elements/DropdownNavigation.stx +1 -1
  190. package/resources/components/Dashboard/Email/CapturedMailList.stx +1 -1
  191. package/resources/components/Dashboard/Email/EmailSettingsList.stx +1 -1
  192. package/resources/components/Dashboard/Email/EmailSettingsNavigation.stx +1 -1
  193. package/resources/components/Dashboard/Email/EmailSidebar.stx +1 -1
  194. package/resources/components/Dashboard/Email/InboxComposer.stx +1 -1
  195. package/resources/components/Dashboard/Email/InboxMessageDetail.stx +1 -1
  196. package/resources/components/Dashboard/Email/InboxMessageList.stx +1 -1
  197. package/resources/components/Dashboard/Infrastructure/CloudDetailsDialog.stx +1 -1
  198. package/resources/components/Dashboard/Infrastructure/CloudResourceButton.stx +1 -1
  199. package/resources/components/Dashboard/Infrastructure/DnsRecordDialog.stx +1 -1
  200. package/resources/components/Dashboard/Infrastructure/LogDetailsDialog.stx +1 -1
  201. package/resources/components/Dashboard/Infrastructure/MailboxDetailsDialog.stx +1 -1
  202. package/resources/components/Dashboard/Infrastructure/ServerInspectorDialog.stx +1 -1
  203. package/resources/components/Dashboard/Jobs/JobTable.stx +1 -1
  204. package/resources/components/Dashboard/Library/SourceScaffoldDialog.stx +1 -1
  205. package/resources/components/Dashboard/Management/AssignmentDrawer.stx +1 -1
  206. package/resources/components/Dashboard/Marketing/CampaignDeleteDialog.stx +1 -1
  207. package/resources/components/Dashboard/Marketing/CampaignDeliveryDialog.stx +1 -1
  208. package/resources/components/Dashboard/Marketing/CampaignDialog.stx +1 -1
  209. package/resources/components/Dashboard/Marketing/CampaignsTable.stx +1 -1
  210. package/resources/components/Dashboard/Marketing/MarketingListDeleteDialog.stx +1 -1
  211. package/resources/components/Dashboard/Marketing/MarketingListDialog.stx +1 -1
  212. package/resources/components/Dashboard/Marketing/MarketingListsTable.stx +1 -1
  213. package/resources/components/Dashboard/Marketing/RecoveryCampaignDialog.stx +1 -1
  214. package/resources/components/Dashboard/Marketing/SocialPostDeleteDialog.stx +1 -1
  215. package/resources/components/Dashboard/Marketing/SocialPostDialog.stx +1 -1
  216. package/resources/components/Dashboard/Marketing/SocialPostsTable.stx +1 -1
  217. package/resources/components/Dashboard/MobileSidebar.stx +1 -1
  218. package/resources/components/Dashboard/Modals/BaseModal.stx +1 -1
  219. package/resources/components/Dashboard/Modals/Popups/Alert.stx +1 -1
  220. package/resources/components/Dashboard/Modals/Popups/Toast.stx +1 -1
  221. package/resources/components/Dashboard/Modals/ToastWrapper.stx +1 -1
  222. package/resources/components/Dashboard/Models/EditRecordModal.stx +1 -1
  223. package/resources/components/Dashboard/Models/ModelRecordActions.stx +1 -1
  224. package/resources/components/Dashboard/Monitoring/ErrorTable.stx +1 -1
  225. package/resources/components/Dashboard/Notifications/NotificationDeliveryDialog.stx +1 -1
  226. package/resources/components/Dashboard/Notifications/NotificationDeliveryTable.stx +1 -1
  227. package/resources/components/Dashboard/Operations/RecoveryDestinationDialog.stx +1 -1
  228. package/resources/components/Dashboard/Operations/RecoveryPointTable.stx +1 -1
  229. package/resources/components/Dashboard/Operations/RecoveryPolicyDialog.stx +1 -1
  230. package/resources/components/Dashboard/Operations/RecoveryRestoreDialog.stx +1 -1
  231. package/resources/components/Dashboard/Operations/SchedulerTaskTable.stx +1 -1
  232. package/resources/components/Dashboard/UI/Checkbox.stx +1 -1
  233. package/resources/components/Dashboard/UI/ConfirmDialog.stx +1 -1
  234. package/resources/components/Dashboard/UI/Drawer.stx +1 -1
  235. package/resources/components/Dashboard/UI/Dropdown.stx +1 -1
  236. package/resources/components/Dashboard/UI/Input.stx +1 -1
  237. package/resources/components/Dashboard/UI/Modal.stx +1 -1
  238. package/resources/components/Dashboard/UI/Pagination.stx +1 -1
  239. package/resources/components/Dashboard/UI/SearchFilter.stx +1 -1
  240. package/resources/components/Dashboard/UI/Select.stx +1 -1
  241. package/resources/components/Dashboard/UI/Table.stx +1 -1
  242. package/resources/components/Dashboard/UI/Tabs.stx +1 -1
  243. package/resources/components/Dashboard/UI/Textarea.stx +1 -1
  244. package/resources/components/Dashboard/UI/Toggle.stx +1 -1
  245. package/resources/components/Dashboard/UI/WindowControls.stx +1 -1
  246. package/resources/components/NativeActionSheet.stx +1 -1
  247. package/resources/components/NativeContextMenu.stx +1 -1
  248. package/resources/components/NativeHealthButton.stx +1 -1
  249. package/resources/components/NativePermissionButton.stx +1 -1
  250. package/resources/components/NativePullToRefresh.stx +1 -1
  251. package/resources/components/NativeSegmentedControl.stx +1 -1
  252. package/resources/components/NativeSheet.stx +1 -1
@@ -23,7 +23,7 @@ const record = useReactiveProp('record', null as DeliveryRouteRecord | null)
23
23
  const couriers = useReactiveProp('couriers', [] as CourierOption[])
24
24
  const busy = useReactiveProp('busy', false)
25
25
  const error = useReactiveProp('error', '')
26
- const emit = defineEmits()
26
+ const emit = defineEmits(['invalid', 'submit', 'close'])
27
27
  const courierId = state('')
28
28
  const stops = state('0')
29
29
  const deliveryTime = state('0')
@@ -17,7 +17,7 @@ const routes = useReactiveProp('routes', [] as DeliveryRouteRow[])
17
17
  const loading = useReactiveProp('loading', false)
18
18
  /** The parent's search: a change returns to the first page. */
19
19
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
20
- const emit = defineEmits()
20
+ const emit = defineEmits(['edit', 'delete'])
21
21
 
22
22
  function formatNumber(value: number): string {
23
23
  return new Intl.NumberFormat('en-US', { maximumFractionDigits: 2 }).format(value)
@@ -8,7 +8,7 @@ const open = useReactiveProp('open', false)
8
8
  const record = useReactiveProp('record', null as DigitalDeliveryRecord | null)
9
9
  const busy = useReactiveProp('busy', false)
10
10
  const error = useReactiveProp('error', '')
11
- const emit = defineEmits()
11
+ const emit = defineEmits(['close', 'confirm'])
12
12
  const description = derived(() => `Delete ${record()?.name || 'the selected digital delivery'} permanently.`)
13
13
  </script>
14
14
 
@@ -17,7 +17,7 @@ const mode = useReactiveProp('mode', 'create')
17
17
  const record = useReactiveProp('record', null as DigitalDeliveryRecord | null)
18
18
  const busy = useReactiveProp('busy', false)
19
19
  const error = useReactiveProp('error', '')
20
- const emit = defineEmits()
20
+ const emit = defineEmits(['invalid', 'submit', 'close'])
21
21
  const name = state('')
22
22
  const description = state('')
23
23
  const downloadLimit = state('')
@@ -18,7 +18,7 @@ const methods = useReactiveProp('methods', [] as DigitalDeliveryRow[])
18
18
  const loading = useReactiveProp('loading', false)
19
19
  /** The parent's search: a change returns to the first page. */
20
20
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
21
- const emit = defineEmits()
21
+ const emit = defineEmits(['edit', 'delete'])
22
22
 
23
23
  /** Expiry keeps its unit and sorts by the number of days. */
24
24
  const COLUMNS = [
@@ -8,7 +8,7 @@ const open = useReactiveProp('open', false)
8
8
  const record = useReactiveProp('record', null as LicenseKeyRecord | null)
9
9
  const busy = useReactiveProp('busy', false)
10
10
  const error = useReactiveProp('error', '')
11
- const emit = defineEmits()
11
+ const emit = defineEmits(['close', 'confirm'])
12
12
  const description = derived(() => `Delete ${record()?.key || 'the selected license key'} permanently.`)
13
13
  </script>
14
14
 
@@ -34,7 +34,7 @@ const options = useReactiveProp('options', {
34
34
  } as LicenseKeyOptions)
35
35
  const busy = useReactiveProp('busy', false)
36
36
  const error = useReactiveProp('error', '')
37
- const emit = defineEmits()
37
+ const emit = defineEmits(['invalid', 'submit', 'close'])
38
38
  const keyValue = state('')
39
39
  const templateValue = state('Standard License')
40
40
  const customerId = state('')
@@ -28,7 +28,7 @@ const licenseKeys = useReactiveProp('license-keys', [] as LicenseKeyRow[])
28
28
  const loading = useReactiveProp('loading', false)
29
29
  /** The parent's search: a change returns to the first page. */
30
30
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
31
- const emit = defineEmits()
31
+ const emit = defineEmits(['edit', 'delete'])
32
32
 
33
33
  const COLUMNS = [
34
34
  { key: 'key', label: 'Key', sortable: true, class: 'font-medium font-mono text-stone-800 whitespace-nowrap dark:text-white' },
@@ -8,7 +8,7 @@ const open = useReactiveProp('open', false)
8
8
  const record = useReactiveProp('record', null as ShippingMethodRecord | null)
9
9
  const busy = useReactiveProp('busy', false)
10
10
  const error = useReactiveProp('error', '')
11
- const emit = defineEmits()
11
+ const emit = defineEmits(['close', 'confirm'])
12
12
  const description = derived(() => `Delete ${record()?.name || 'the selected shipping method'} permanently. Methods referenced by shipping zones may be protected by the database.`)
13
13
  </script>
14
14
 
@@ -14,7 +14,7 @@ const mode = useReactiveProp('mode', 'create')
14
14
  const record = useReactiveProp('record', null as ShippingMethodRecord | null)
15
15
  const busy = useReactiveProp('busy', false)
16
16
  const error = useReactiveProp('error', '')
17
- const emit = defineEmits()
17
+ const emit = defineEmits(['invalid', 'submit', 'close'])
18
18
  const name = state('')
19
19
  const description = state('')
20
20
  const baseRate = state('')
@@ -20,7 +20,7 @@ const methods = useReactiveProp('methods', [] as ShippingMethodRow[])
20
20
  const loading = useReactiveProp('loading', false)
21
21
  /** The parent's search: a change returns to the first page. */
22
22
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
23
- const emit = defineEmits()
23
+ const emit = defineEmits(['edit', 'delete'])
24
24
 
25
25
  /** Shipping amounts are stored as integer cents, in USD: currency columns fixed to it. */
26
26
  const COLUMNS = [
@@ -9,7 +9,7 @@ const open = useReactiveProp('open', false)
9
9
  const record = useReactiveProp('record', null as ShippingRateRecord | null)
10
10
  const busy = useReactiveProp('busy', false)
11
11
  const error = useReactiveProp('error', '')
12
- const emit = defineEmits()
12
+ const emit = defineEmits(['close', 'confirm'])
13
13
  const description = derived(() => `Delete the ${record()?.shipping_method?.name || 'selected method'} rate for ${record()?.shipping_zone?.name || 'the selected zone'} permanently.`)
14
14
  </script>
15
15
 
@@ -21,7 +21,7 @@ const methods = useReactiveProp('methods', [] as ShippingResourceOption[])
21
21
  const zones = useReactiveProp('zones', [] as ShippingResourceOption[])
22
22
  const busy = useReactiveProp('busy', false)
23
23
  const error = useReactiveProp('error', '')
24
- const emit = defineEmits()
24
+ const emit = defineEmits(['invalid', 'submit', 'close'])
25
25
  const methodId = state('')
26
26
  const zoneId = state('')
27
27
  const weightFrom = state('')
@@ -21,7 +21,7 @@ const rates = useReactiveProp('rates', [] as ShippingRateRow[])
21
21
  const loading = useReactiveProp('loading', false)
22
22
  /** The parent's search: a change returns to the first page. */
23
23
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
24
- const emit = defineEmits()
24
+ const emit = defineEmits(['edit', 'delete'])
25
25
 
26
26
  function formatWeight(weight: number): string {
27
27
  return `${new Intl.NumberFormat('en-US', { maximumFractionDigits: 2 }).format(weight)} kg`
@@ -8,7 +8,7 @@ const open = useReactiveProp('open', false)
8
8
  const record = useReactiveProp('record', null as ShippingZoneRecord | null)
9
9
  const busy = useReactiveProp('busy', false)
10
10
  const error = useReactiveProp('error', '')
11
- const emit = defineEmits()
11
+ const emit = defineEmits(['close', 'confirm'])
12
12
  const description = derived(() => `Delete ${record()?.name || 'the selected shipping zone'} permanently. Zones referenced by shipping rates may be protected by the database.`)
13
13
  </script>
14
14
 
@@ -22,7 +22,7 @@ const record = useReactiveProp('record', null as ShippingZoneRecord | null)
22
22
  const methods = useReactiveProp('methods', [] as ShippingMethodOption[])
23
23
  const busy = useReactiveProp('busy', false)
24
24
  const error = useReactiveProp('error', '')
25
- const emit = defineEmits()
25
+ const emit = defineEmits(['invalid', 'submit', 'close'])
26
26
  const name = state('')
27
27
  const countries = state('')
28
28
  const regions = state('')
@@ -18,7 +18,7 @@ const zones = useReactiveProp('zones', [] as ShippingZoneRow[])
18
18
  const loading = useReactiveProp('loading', false)
19
19
  /** The parent's search: a change returns to the first page. */
20
20
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
21
- const emit = defineEmits()
21
+ const emit = defineEmits(['edit', 'delete'])
22
22
 
23
23
  function parseList(value: SerializedList): string[] {
24
24
  if (Array.isArray(value))
@@ -5,7 +5,7 @@ import { formatCurrency } from '@stacksjs/commerce/money'
5
5
 
6
6
  const open = useReactiveProp('open', false)
7
7
  const record = useReactiveProp('record', null as PaymentRecord | null)
8
- const emit = defineEmits()
8
+ const emit = defineEmits(['close', 'request-refund'])
9
9
 
10
10
  function label(value: string): string {
11
11
  return value.replace(/([a-z])([A-Z])/g, '$1 $2').replaceAll('_', ' ')
@@ -5,7 +5,7 @@ import { formatCurrency, minorToInput, moneyInputError, moneyInputStep, parseMon
5
5
  const open = useReactiveProp('open', false)
6
6
  const record = useReactiveProp('record', null as PaymentRecord | null)
7
7
  const busy = useReactiveProp('busy', false)
8
- const emit = defineEmits()
8
+ const emit = defineEmits(['submit', 'close'])
9
9
  const amount = state('')
10
10
  let hydrationKey = ''
11
11
 
@@ -4,7 +4,7 @@ import type { PrintDeviceRecord } from '../../../../app/Actions/Dashboard/Commer
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as PrintDeviceRecord | null)
6
6
  const busy = useReactiveProp('busy', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close', 'confirm'])
8
8
  const description = derived(() => `Delete "${record()?.name || 'Unnamed printer'}" permanently? Existing receipt logs remain separate records.`)
9
9
  </script>
10
10
 
@@ -3,7 +3,7 @@ import type { PrintDeviceRecord } from '../../../../app/Actions/Dashboard/Commer
3
3
 
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as PrintDeviceRecord | null)
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['edit', 'close', 'delete'])
7
7
 
8
8
  function formatDate(value: number | string): string {
9
9
  if (!value)
@@ -10,7 +10,7 @@ const mode = useReactiveProp('mode', 'add')
10
10
  const record = useReactiveProp('record', null as PrintDeviceRecord | null)
11
11
  const busy = useReactiveProp('busy', false)
12
12
  const errors = useReactiveProp('errors', {} as Record<string, string>)
13
- const emit = defineEmits()
13
+ const emit = defineEmits(['submit', 'close'])
14
14
  const name = state('')
15
15
  const macAddress = state('')
16
16
  const location = state('')
@@ -9,7 +9,7 @@ const loading = useReactiveProp('loading', false)
9
9
  const sortResetKey = useReactiveProp<unknown>('sortResetKey', '')
10
10
  /** The parent's search and filters: a change returns to the first page. */
11
11
  const pageResetKey = useReactiveProp<unknown>('pageResetKey', '')
12
- const emit = defineEmits()
12
+ const emit = defineEmits(['view', 'edit', 'delete'])
13
13
 
14
14
  function formatHeartbeat(value: number): string {
15
15
  if (!value)
@@ -4,7 +4,7 @@ import type { PrintLogRecord } from '../../../../app/Actions/Dashboard/Commerce/
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as PrintLogRecord | null)
6
6
  const busy = useReactiveProp('busy', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close', 'confirm'])
8
8
  const description = derived(() => `This permanently deletes ${record()?.document || `print log #${record()?.id}`} from the native Receipt history. It does not affect the printed document.`)
9
9
  </script>
10
10
 
@@ -4,7 +4,7 @@ import { printLogTimestamp } from '../../../../app/Actions/Dashboard/Commerce/pr
4
4
 
5
5
  const open = useReactiveProp('open', false)
6
6
  const record = useReactiveProp('record', null as PrintLogRecord | null)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close'])
8
8
 
9
9
  function date(value: string): string {
10
10
  const timestamp = printLogTimestamp(value)
@@ -4,7 +4,7 @@ import { printLogTimestamp } from '../../../../app/Actions/Dashboard/Commerce/pr
4
4
 
5
5
  const records = useReactiveProp('records', [] as PrintLogRecord[])
6
6
  const loading = useReactiveProp('loading', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['view', 'delete'])
8
8
 
9
9
  function date(value: string): string {
10
10
  const timestamp = printLogTimestamp(value)
@@ -4,7 +4,7 @@ import type { ProductWaitlistRecord } from '../../../../app/Actions/Dashboard/Co
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as ProductWaitlistRecord | null)
6
6
  const busy = useReactiveProp('busy', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close', 'confirm'])
8
8
  const description = derived(() => `${record()?.name || 'This entry'} will be permanently removed from the WaitlistProduct model.`)
9
9
  </script>
10
10
 
@@ -13,7 +13,7 @@ const options = useReactiveProp('options', {
13
13
  } as ProductWaitlistOptions)
14
14
  const busy = useReactiveProp('busy', false)
15
15
  const errors = useReactiveProp('errors', {} as Record<string, string>)
16
- const emit = defineEmits()
16
+ const emit = defineEmits(['submit', 'close'])
17
17
 
18
18
  const productId = state<number | string>('')
19
19
  const customerId = state<number | string>('')
@@ -9,7 +9,7 @@ const options = useReactiveProp('options', {
9
9
  customers: [],
10
10
  } as ProductWaitlistOptions)
11
11
  const loading = useReactiveProp('loading', false)
12
- const emit = defineEmits()
12
+ const emit = defineEmits(['edit', 'delete'])
13
13
 
14
14
  const STATUS_CLASSES = {
15
15
  purchased: 'text-purple-700 dark:text-purple-300 bg-purple-50 dark:bg-purple-950/30',
@@ -4,7 +4,7 @@ import type { RestaurantWaitlistRecord } from '../../../../app/Actions/Dashboard
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as RestaurantWaitlistRecord | null)
6
6
  const busy = useReactiveProp('busy', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close', 'confirm'])
8
8
  const description = derived(() => `${record()?.name || 'This party'} will be permanently removed from the WaitlistRestaurant model.`)
9
9
  </script>
10
10
 
@@ -11,7 +11,7 @@ const record = useReactiveProp('record', null as RestaurantWaitlistRecord | null
11
11
  const options = useReactiveProp('options', { customers: [] } as RestaurantWaitlistOptions)
12
12
  const busy = useReactiveProp('busy', false)
13
13
  const errors = useReactiveProp('errors', {} as Record<string, string>)
14
- const emit = defineEmits()
14
+ const emit = defineEmits(['submit', 'close'])
15
15
 
16
16
  const customerId = state<number | string>('')
17
17
  const name = state('')
@@ -9,7 +9,7 @@ import {
9
9
  const records = useReactiveProp('records', [] as RestaurantWaitlistRecord[])
10
10
  const loading = useReactiveProp('loading', false)
11
11
  const busyId = useReactiveProp('busyId', '')
12
- const emit = defineEmits()
12
+ const emit = defineEmits(['seat', 'no-show', 'edit', 'delete'])
13
13
 
14
14
  const STATUS_CLASSES = {
15
15
  seated: 'text-green-700 dark:text-green-300 bg-green-50 dark:bg-green-950/30',
@@ -22,7 +22,7 @@ const name = state('')
22
22
  const email = state('')
23
23
  const bio = state('')
24
24
  const avatar = state('')
25
- const emit = defineEmits()
25
+ const emit = defineEmits(['close', 'submit'])
26
26
  let wasOpen = false
27
27
 
28
28
  effect(() => {
@@ -43,7 +43,7 @@ const poster = state('')
43
43
  const body = state('')
44
44
  const draft = state(true)
45
45
  const featured = state(false)
46
- const emit = defineEmits()
46
+ const emit = defineEmits(['close', 'submit', 'retry'])
47
47
  let wasOpen = false
48
48
  let activeSlug = ''
49
49
 
@@ -4,7 +4,7 @@ const location = useReactiveProp('location', 'Storage root')
4
4
  const busy = useReactiveProp('busy', false)
5
5
  const error = useReactiveProp('error', '')
6
6
  const folderName = state('')
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['close', 'submit'])
8
8
  let wasOpen = false
9
9
 
10
10
  effect(() => {
@@ -17,7 +17,7 @@ const item = useReactiveProp('item', null as FileItem | null)
17
17
  const disk = useReactiveProp('disk', '')
18
18
  const title = derived(() => item()?.name || 'File details')
19
19
  const description = derived(() => `File details · ${disk()} disk`)
20
- const emit = defineEmits()
20
+ const emit = defineEmits(['close'])
21
21
  </script>
22
22
 
23
23
  <Drawer :isOpen="Boolean(item())" :title="title()" :description="description()" size="sm" @close="emit('close')">
@@ -5,7 +5,7 @@ const busy = useReactiveProp('busy', false)
5
5
  const error = useReactiveProp('error', '')
6
6
  const files = state<File[]>([])
7
7
  const fileInput = useRef<HTMLInputElement>('dashboardFileUploadInput')
8
- const emit = defineEmits()
8
+ const emit = defineEmits(['close', 'submit'])
9
9
  let wasOpen = false
10
10
 
11
11
  const selectedFilesLabel = derived(() => {
@@ -19,7 +19,7 @@ const error = useReactiveProp('error', '')
19
19
  const title = state('')
20
20
  const template = state('default')
21
21
  const published = state(false)
22
- const emit = defineEmits()
22
+ const emit = defineEmits(['close', 'submit'])
23
23
  let wasOpen = false
24
24
 
25
25
  effect(() => {
@@ -47,7 +47,7 @@ const authorId = state('')
47
47
  const featured = state(false)
48
48
  const categoryIds = state<string[]>([])
49
49
  const tagIds = state<string[]>([])
50
- const emit = defineEmits()
50
+ const emit = defineEmits(['close', 'submit'])
51
51
  let wasOpen = false
52
52
 
53
53
  effect(() => {
@@ -19,7 +19,7 @@ const error = useReactiveProp('error', '')
19
19
  const focusKeyword = state('')
20
20
  const metaDescription = state('')
21
21
  const canonicalUrl = state('')
22
- const emit = defineEmits()
22
+ const emit = defineEmits(['close', 'submit'])
23
23
  let wasOpen = false
24
24
 
25
25
  effect(() => {
@@ -13,7 +13,7 @@ const name = state('')
13
13
  const slug = state('')
14
14
  const description = state('')
15
15
  const slugTouched = state(false)
16
- const emit = defineEmits()
16
+ const emit = defineEmits(['close', 'submit'])
17
17
  let wasOpen = false
18
18
 
19
19
  function slugify(value: string): string {
@@ -17,7 +17,7 @@ const busy = useReactiveProp('busy', false)
17
17
  const error = useReactiveProp('error', '')
18
18
  const errors = useReactiveProp('errors', {} as Record<string, string[]>)
19
19
  const values = state<Record<string, unknown>>({})
20
- const emit = defineEmits()
20
+ const emit = defineEmits(['submit', 'close'])
21
21
  let hydrationKey = ''
22
22
 
23
23
  effect(() => {
@@ -2,7 +2,7 @@
2
2
  import type { DeploymentPreview, DeploymentPreviewOperation } from '@stacksjs/types'
3
3
 
4
4
  const plan = useReactiveProp<DeploymentPreview | null>('plan', null)
5
- const emit = defineEmits()
5
+ const emit = defineEmits(['close', 'deploy'])
6
6
 
7
7
  const phaseIcons: Record<DeploymentPreviewOperation['phase'], string> = {
8
8
  validate: 'i-hugeicons-task-01',
@@ -9,7 +9,7 @@ const requestedOpen = useReactiveProp('open', false)
9
9
  const elements = useReactiveProp('elements', [] as DropdownNavigationElement[])
10
10
  const disabled = useReactiveProp('disabled', false)
11
11
  const isOpen = state(requestedOpen())
12
- const emit = defineEmits()
12
+ const emit = defineEmits(['update:open', 'open', 'close'])
13
13
 
14
14
  effect(() => {
15
15
  isOpen.set(requestedOpen())
@@ -5,7 +5,7 @@ const messages = useReactiveProp<CapturedMailSummary[]>('messages', [])
5
5
  const selectedId = useReactiveProp('selectedId', '')
6
6
  const loading = useReactiveProp('loading', false)
7
7
  const error = useReactiveProp('error', '')
8
- const emit = defineEmits()
8
+ const emit = defineEmits(['select'])
9
9
 
10
10
  function rows(): CapturedMailSummary[] {
11
11
  return messages()
@@ -3,7 +3,7 @@ const title = useReactiveProp('title', '')
3
3
  const description = useReactiveProp('description', '')
4
4
  const placeholder = useReactiveProp('placeholder', '')
5
5
  const items = useReactiveProp('items', [] as string[])
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['add', 'remove'])
7
7
  const input = state('')
8
8
 
9
9
  function addItem(): void {
@@ -7,7 +7,7 @@ interface SettingsSection {
7
7
 
8
8
  const activeSection = useReactiveProp('activeSection', 'general')
9
9
  const sections = useReactiveProp('sections', [] as SettingsSection[])
10
- const emit = defineEmits()
10
+ const emit = defineEmits(['select'])
11
11
 
12
12
  function sectionClass(sectionId: string): string {
13
13
  return activeSection() === sectionId
@@ -17,7 +17,7 @@ const folders = useReactiveProp('folders', [] as MailFolder[])
17
17
  const unreadCounts = useReactiveProp('unreadCounts', {} as Record<string, number>)
18
18
  const mailbox = useReactiveProp('mailbox', 'Configured mailbox')
19
19
  const categories = useReactiveProp('categories', [] as MailCategory[])
20
- const emit = defineEmits()
20
+ const emit = defineEmits(['compose', 'update:active-folder', 'category'])
21
21
 
22
22
  function unreadCount(folderId: string): number {
23
23
  return Number(unreadCounts()[folderId] || 0)
@@ -4,7 +4,7 @@ const subject = useReactiveProp('subject', '')
4
4
  const body = useReactiveProp('body', '')
5
5
  const sending = useReactiveProp('sending', false)
6
6
  const canSend = useReactiveProp('canSend', false)
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['send', 'cancel', 'update:to', 'update:subject', 'update:body'])
8
8
 
9
9
  function submit(): void {
10
10
  if (canSend())
@@ -8,7 +8,7 @@ const replying = useReactiveProp('replying', false)
8
8
  const replyText = useReactiveProp('replyText', '')
9
9
  const canSendReply = useReactiveProp('canSendReply', false)
10
10
  const mailbox = useReactiveProp('mailbox', '')
11
- const emit = defineEmits()
11
+ const emit = defineEmits(['close', 'toggle-read', 'request-delete', 'cancel-delete', 'confirm-delete', 'update:reply', 'reply'])
12
12
 
13
13
  function message(): DashboardInboxEmail | null {
14
14
  return email() as DashboardInboxEmail | null
@@ -7,7 +7,7 @@ const error = useReactiveProp('error', '')
7
7
  const search = useReactiveProp('search', '')
8
8
  const emptyTitle = useReactiveProp('emptyTitle', 'No messages found')
9
9
  const panelOpen = useReactiveProp('panelOpen', false)
10
- const emit = defineEmits()
10
+ const emit = defineEmits(['search', 'select'])
11
11
 
12
12
  function rows(): DashboardInboxEmail[] {
13
13
  return emails() as DashboardInboxEmail[]
@@ -3,7 +3,7 @@ import type { DashboardCloudResource } from '../../../../app/Actions/Dashboard/C
3
3
 
4
4
  const open = useReactiveProp('open', false)
5
5
  const item = useReactiveProp('item', null as DashboardCloudResource | null)
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['close'])
7
7
  </script>
8
8
 
9
9
  <Modal :isOpen="open() && Boolean(item())" :title="item()?.name || 'Cloud resource'" :description="`${item()?.category || 'Cloud'} resource`" size="md" @close="emit('close')">
@@ -2,7 +2,7 @@
2
2
  import type { DashboardCloudResource } from '../../../../app/Actions/Dashboard/Cloud/cloud-overview'
3
3
 
4
4
  const item = useReactiveProp('item', null as DashboardCloudResource | null)
5
- const emit = defineEmits()
5
+ const emit = defineEmits(['inspect'])
6
6
 
7
7
  function iconClass(): string {
8
8
  const category = item()?.category
@@ -3,7 +3,7 @@ import type { DashboardDnsRecord } from '../../../../app/Actions/Dashboard/Infra
3
3
 
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as DashboardDnsRecord | null)
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['close'])
7
7
 
8
8
  function ttlLabel(): string {
9
9
  return record()?.ttl === null ? 'Provider default' : `${record()?.ttl} seconds`
@@ -3,7 +3,7 @@ import type { DashboardLogRecord } from '../../../../app/Actions/Dashboard/Infra
3
3
 
4
4
  const open = useReactiveProp('open', false)
5
5
  const record = useReactiveProp('record', null as DashboardLogRecord | null)
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['close'])
7
7
 
8
8
  function formatDate(value: string | undefined): string {
9
9
  if (!value)
@@ -3,7 +3,7 @@ import type { DashboardMailbox } from '../../../../app/Actions/Dashboard/Infrast
3
3
 
4
4
  const open = useReactiveProp('open', false)
5
5
  const mailbox = useReactiveProp('mailbox', null as DashboardMailbox | null)
6
- const emit = defineEmits()
6
+ const emit = defineEmits(['close'])
7
7
  </script>
8
8
 
9
9
  <Modal :isOpen="open() && Boolean(mailbox())" :title="mailbox()?.email || 'Mailbox'" description="Configured mailbox" size="md" @close="emit('close')">
@@ -37,7 +37,7 @@ interface ServerDeployment {
37
37
 
38
38
  const server = useReactiveProp('server', null as ServerDefinition | null)
39
39
  const deployment = useReactiveProp('deployment', null as ServerDeployment | null)
40
- const emit = defineEmits()
40
+ const emit = defineEmits(['close'])
41
41
  const title = derived(() => server()?.name || deployment()?.serverName || 'Server details')
42
42
  const detailsPath = derived(() => {
43
43
  const identifier = server()?.key || deployment()?.id
@@ -4,7 +4,7 @@ import type { DashboardJob } from '../../../../functions/jobs'
4
4
  const jobs = useReactiveProp('jobs', [])
5
5
  const loading = useReactiveProp('loading', false)
6
6
  const emptyTitle = useReactiveProp('emptyTitle', 'No jobs found')
7
- const emit = defineEmits()
7
+ const emit = defineEmits(['retry'])
8
8
 
9
9
  function rows(): DashboardJob[] {
10
10
  return jobs() as DashboardJob[]
@@ -6,7 +6,7 @@ const kind = useReactiveProp('kind', 'component' as SourceKind)
6
6
  const busy = useReactiveProp('busy', false)
7
7
  const error = useReactiveProp('error', '')
8
8
  const sourceName = state('')
9
- const emit = defineEmits()
9
+ const emit = defineEmits(['close', 'submit'])
10
10
  const actionLabel = derived(() => `Create ${kind()}`)
11
11
  let wasOpen = false
12
12