@mohasinac/appkit 4.15.0 → 4.16.1

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 (73) hide show
  1. package/dist/_internal/shared/actions/action-registry.d.ts +9 -2
  2. package/dist/_internal/shared/actions/action-registry.js +455 -6
  3. package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
  4. package/dist/_internal/shared/features/cart/schema.d.ts +11 -11
  5. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +22 -22
  6. package/dist/_internal/shared/features/orders/schema.d.ts +4 -4
  7. package/dist/_internal/shared/features/products/schema.d.ts +25 -25
  8. package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
  9. package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
  10. package/dist/client.d.ts +3 -3
  11. package/dist/client.js +3 -3
  12. package/dist/contracts/extend.d.ts +29 -0
  13. package/dist/contracts/extend.js +20 -0
  14. package/dist/contracts/index.d.ts +2 -1
  15. package/dist/contracts/index.js +2 -0
  16. package/dist/features/admin/components/AdminViewCards.js +24 -17
  17. package/dist/features/admin/components/DataListingView.js +15 -1
  18. package/dist/features/admin/components/DataTable.js +7 -17
  19. package/dist/features/auctions/schemas/index.d.ts +14 -14
  20. package/dist/features/auth/schemas/index.d.ts +2 -2
  21. package/dist/features/blog/actions/blog-actions.d.ts +7 -7
  22. package/dist/features/blog/schemas/blog-form.d.ts +6 -6
  23. package/dist/features/blog/schemas/index.d.ts +10 -10
  24. package/dist/features/cart/schemas/index.d.ts +3 -3
  25. package/dist/features/catalogue/schemas/validation.d.ts +12 -12
  26. package/dist/features/categories/schemas/index.d.ts +16 -16
  27. package/dist/features/collections/schemas/index.d.ts +8 -8
  28. package/dist/features/events/schemas/index.d.ts +2 -2
  29. package/dist/features/faq/actions/faq-actions.d.ts +6 -6
  30. package/dist/features/faq/schemas/index.d.ts +6 -6
  31. package/dist/features/grouped/schemas/grouped-listing-form.d.ts +2 -2
  32. package/dist/features/grouped/schemas/index.d.ts +4 -4
  33. package/dist/features/homepage/schemas/index.d.ts +40 -40
  34. package/dist/features/messages/schemas/index.d.ts +2 -2
  35. package/dist/features/orders/schemas/index.d.ts +24 -24
  36. package/dist/features/pre-orders/schemas/index.d.ts +4 -4
  37. package/dist/features/products/schemas/index.d.ts +36 -36
  38. package/dist/features/products/schemas/product-features.validators.d.ts +2 -2
  39. package/dist/features/promotions/schemas/index.d.ts +14 -14
  40. package/dist/features/reviews/schemas/index.d.ts +14 -14
  41. package/dist/features/scams/schemas/index.d.ts +2 -2
  42. package/dist/features/search/schemas/index.d.ts +2 -2
  43. package/dist/features/seller/components/SellerAnalyticsAlertsView.js +27 -9
  44. package/dist/features/seller/schemas/index.d.ts +2 -2
  45. package/dist/features/shipments/schemas/validation.d.ts +22 -22
  46. package/dist/features/store-extensions/schemas/listing-template-form.d.ts +22 -4
  47. package/dist/features/store-extensions/schemas/listing-template-form.js +42 -1
  48. package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +19 -13
  49. package/dist/features/store-extensions/schemas/shipping-config-form.js +25 -2
  50. package/dist/features/store-extensions/schemas/store-category-form.d.ts +42 -2
  51. package/dist/features/store-extensions/schemas/store-category-form.js +28 -0
  52. package/dist/features/stores/schemas/index.d.ts +4 -4
  53. package/dist/features/support/schemas/index.d.ts +4 -4
  54. package/dist/features/tester/seed-data/tester-checklist-seed-data.js +24 -0
  55. package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/schemas/registry.d.ts +116 -113
  59. package/dist/styles.css +1 -1
  60. package/dist/tailwind-utilities.css +1 -1
  61. package/dist/ui/DataTable.js +4 -2
  62. package/dist/ui/columns/build-columns.d.ts +6 -1
  63. package/dist/ui/columns/build-columns.js +53 -0
  64. package/dist/ui/columns/cell-renderers.d.ts +68 -0
  65. package/dist/ui/columns/cell-renderers.js +111 -0
  66. package/dist/ui/columns/column-renderers.d.ts +6 -1
  67. package/dist/ui/columns/column-renderers.js +6 -1
  68. package/dist/ui/columns/index.d.ts +2 -1
  69. package/dist/ui/columns/index.js +5 -1
  70. package/dist/ui/components/Button.js +27 -2
  71. package/dist/ui/icons/icon-registry.d.ts +65 -0
  72. package/dist/ui/icons/icon-registry.js +115 -0
  73. package/package.json +1 -1
@@ -25,6 +25,7 @@
25
25
  import type { UserRole } from "../../../features/auth/types";
26
26
  import type { ListingType } from "../../../features/products/types/index";
27
27
  import type { CategoryType } from "../../../features/categories/types/index";
28
+ import type { IconKey } from "../../../ui/icons/icon-registry";
28
29
  /** What KIND of action — drives default UI affordance (link vs button vs danger). */
29
30
  export type ActionKind = "primary" | "secondary" | "danger" | "ghost" | "link" | "chip";
30
31
  /** Resource bucket — keyed top-level in the ACTIONS tree. */
@@ -63,8 +64,14 @@ export interface ActionDef {
63
64
  listingTypeScope?: readonly ListingType[];
64
65
  /** Category-type scope — same but for category discriminators. */
65
66
  categoryTypeScope?: readonly CategoryType[];
66
- /** Optional icon name (resolved by the consumer's icon set). */
67
- iconKey?: string;
67
+ /**
68
+ * Icon for this action, resolved through `ICONS` in `ui/icons/icon-registry`.
69
+ *
70
+ * Typed `IconKey`, not `string`: as a bare string this field was set on 2 of
71
+ * 220 actions and rendered by nothing for months, and a typo was a silent
72
+ * no-op. A key outside the registry is now a compile error.
73
+ */
74
+ iconKey?: IconKey;
68
75
  /** Optional confirmation modal config. */
69
76
  confirmation?: ActionConfirmation;
70
77
  }