@rovela-ai/sdk 0.1.1 → 0.1.2

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 (575) hide show
  1. package/dist/admin/hooks/useAdminAuth.d.ts.map +1 -1
  2. package/dist/admin/hooks/useAdminAuth.js +4 -1
  3. package/dist/admin/hooks/useAdminAuth.js.map +1 -1
  4. package/dist/auth/hooks/useAuth.d.ts.map +1 -1
  5. package/dist/auth/hooks/useAuth.js +8 -2
  6. package/dist/auth/hooks/useAuth.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/admin/api/auth.d.ts +0 -32
  9. package/dist/admin/api/auth.d.ts.map +0 -1
  10. package/dist/admin/api/auth.js +0 -43
  11. package/dist/admin/api/auth.js.map +0 -1
  12. package/dist/admin/api/categories.d.ts +0 -68
  13. package/dist/admin/api/categories.d.ts.map +0 -1
  14. package/dist/admin/api/categories.js +0 -247
  15. package/dist/admin/api/categories.js.map +0 -1
  16. package/dist/admin/api/customers.d.ts +0 -41
  17. package/dist/admin/api/customers.d.ts.map +0 -1
  18. package/dist/admin/api/customers.js +0 -113
  19. package/dist/admin/api/customers.js.map +0 -1
  20. package/dist/admin/api/index.d.ts +0 -56
  21. package/dist/admin/api/index.d.ts.map +0 -1
  22. package/dist/admin/api/index.js +0 -87
  23. package/dist/admin/api/index.js.map +0 -1
  24. package/dist/admin/api/orders.d.ts +0 -59
  25. package/dist/admin/api/orders.d.ts.map +0 -1
  26. package/dist/admin/api/orders.js +0 -209
  27. package/dist/admin/api/orders.js.map +0 -1
  28. package/dist/admin/api/products.d.ts +0 -103
  29. package/dist/admin/api/products.d.ts.map +0 -1
  30. package/dist/admin/api/products.js +0 -329
  31. package/dist/admin/api/products.js.map +0 -1
  32. package/dist/admin/api/refund.d.ts +0 -29
  33. package/dist/admin/api/refund.d.ts.map +0 -1
  34. package/dist/admin/api/refund.js +0 -136
  35. package/dist/admin/api/refund.js.map +0 -1
  36. package/dist/admin/api/stats.d.ts +0 -40
  37. package/dist/admin/api/stats.d.ts.map +0 -1
  38. package/dist/admin/api/stats.js +0 -74
  39. package/dist/admin/api/stats.js.map +0 -1
  40. package/dist/admin/components/AdminGuard.d.ts +0 -40
  41. package/dist/admin/components/AdminGuard.d.ts.map +0 -1
  42. package/dist/admin/components/AdminGuard.js +0 -97
  43. package/dist/admin/components/AdminGuard.js.map +0 -1
  44. package/dist/admin/components/AdminHeader.d.ts +0 -18
  45. package/dist/admin/components/AdminHeader.d.ts.map +0 -1
  46. package/dist/admin/components/AdminHeader.js +0 -33
  47. package/dist/admin/components/AdminHeader.js.map +0 -1
  48. package/dist/admin/components/AdminLayout.d.ts +0 -50
  49. package/dist/admin/components/AdminLayout.d.ts.map +0 -1
  50. package/dist/admin/components/AdminLayout.js +0 -46
  51. package/dist/admin/components/AdminLayout.js.map +0 -1
  52. package/dist/admin/components/AdminLoginForm.d.ts +0 -18
  53. package/dist/admin/components/AdminLoginForm.d.ts.map +0 -1
  54. package/dist/admin/components/AdminLoginForm.js +0 -58
  55. package/dist/admin/components/AdminLoginForm.js.map +0 -1
  56. package/dist/admin/components/AdminNav.d.ts +0 -34
  57. package/dist/admin/components/AdminNav.d.ts.map +0 -1
  58. package/dist/admin/components/AdminNav.js +0 -61
  59. package/dist/admin/components/AdminNav.js.map +0 -1
  60. package/dist/admin/components/InventoryEditor.d.ts +0 -15
  61. package/dist/admin/components/InventoryEditor.d.ts.map +0 -1
  62. package/dist/admin/components/InventoryEditor.js +0 -83
  63. package/dist/admin/components/InventoryEditor.js.map +0 -1
  64. package/dist/admin/components/LowStockAlert.d.ts +0 -11
  65. package/dist/admin/components/LowStockAlert.d.ts.map +0 -1
  66. package/dist/admin/components/LowStockAlert.js +0 -35
  67. package/dist/admin/components/LowStockAlert.js.map +0 -1
  68. package/dist/admin/components/OrderDetails.d.ts +0 -14
  69. package/dist/admin/components/OrderDetails.d.ts.map +0 -1
  70. package/dist/admin/components/OrderDetails.js +0 -94
  71. package/dist/admin/components/OrderDetails.js.map +0 -1
  72. package/dist/admin/components/OrderTable.d.ts +0 -13
  73. package/dist/admin/components/OrderTable.d.ts.map +0 -1
  74. package/dist/admin/components/OrderTable.js +0 -89
  75. package/dist/admin/components/OrderTable.js.map +0 -1
  76. package/dist/admin/components/ProductForm.d.ts +0 -18
  77. package/dist/admin/components/ProductForm.d.ts.map +0 -1
  78. package/dist/admin/components/ProductForm.js +0 -127
  79. package/dist/admin/components/ProductForm.js.map +0 -1
  80. package/dist/admin/components/ProductTable.d.ts +0 -13
  81. package/dist/admin/components/ProductTable.d.ts.map +0 -1
  82. package/dist/admin/components/ProductTable.js +0 -81
  83. package/dist/admin/components/ProductTable.js.map +0 -1
  84. package/dist/admin/components/RecentOrders.d.ts +0 -11
  85. package/dist/admin/components/RecentOrders.d.ts.map +0 -1
  86. package/dist/admin/components/RecentOrders.js +0 -58
  87. package/dist/admin/components/RecentOrders.js.map +0 -1
  88. package/dist/admin/components/RefundDialog.d.ts +0 -17
  89. package/dist/admin/components/RefundDialog.d.ts.map +0 -1
  90. package/dist/admin/components/RefundDialog.js +0 -86
  91. package/dist/admin/components/RefundDialog.js.map +0 -1
  92. package/dist/admin/components/StatsCards.d.ts +0 -23
  93. package/dist/admin/components/StatsCards.d.ts.map +0 -1
  94. package/dist/admin/components/StatsCards.js +0 -82
  95. package/dist/admin/components/StatsCards.js.map +0 -1
  96. package/dist/admin/components/StoreSettings.d.ts +0 -14
  97. package/dist/admin/components/StoreSettings.d.ts.map +0 -1
  98. package/dist/admin/components/StoreSettings.js +0 -88
  99. package/dist/admin/components/StoreSettings.js.map +0 -1
  100. package/dist/admin/components/index.d.ts +0 -21
  101. package/dist/admin/components/index.d.ts.map +0 -1
  102. package/dist/admin/components/index.js +0 -57
  103. package/dist/admin/components/index.js.map +0 -1
  104. package/dist/admin/config.d.ts +0 -74
  105. package/dist/admin/config.d.ts.map +0 -1
  106. package/dist/admin/config.js +0 -229
  107. package/dist/admin/config.js.map +0 -1
  108. package/dist/admin/hooks/index.d.ts +0 -10
  109. package/dist/admin/hooks/index.d.ts.map +0 -1
  110. package/dist/admin/hooks/index.js +0 -17
  111. package/dist/admin/hooks/index.js.map +0 -1
  112. package/dist/admin/hooks/useAdminOrders.d.ts +0 -41
  113. package/dist/admin/hooks/useAdminOrders.d.ts.map +0 -1
  114. package/dist/admin/hooks/useAdminOrders.js +0 -191
  115. package/dist/admin/hooks/useAdminOrders.js.map +0 -1
  116. package/dist/admin/hooks/useAdminProducts.d.ts +0 -39
  117. package/dist/admin/hooks/useAdminProducts.d.ts.map +0 -1
  118. package/dist/admin/hooks/useAdminProducts.js +0 -235
  119. package/dist/admin/hooks/useAdminProducts.js.map +0 -1
  120. package/dist/admin/hooks/useAdminStats.d.ts +0 -50
  121. package/dist/admin/hooks/useAdminStats.d.ts.map +0 -1
  122. package/dist/admin/hooks/useAdminStats.js +0 -111
  123. package/dist/admin/hooks/useAdminStats.js.map +0 -1
  124. package/dist/admin/index.d.ts +0 -63
  125. package/dist/admin/index.d.ts.map +0 -1
  126. package/dist/admin/index.js +0 -148
  127. package/dist/admin/index.js.map +0 -1
  128. package/dist/admin/server/admin-service.d.ts +0 -130
  129. package/dist/admin/server/admin-service.d.ts.map +0 -1
  130. package/dist/admin/server/admin-service.js +0 -298
  131. package/dist/admin/server/admin-service.js.map +0 -1
  132. package/dist/admin/server/index.d.ts +0 -8
  133. package/dist/admin/server/index.d.ts.map +0 -1
  134. package/dist/admin/server/index.js +0 -25
  135. package/dist/admin/server/index.js.map +0 -1
  136. package/dist/admin/types.d.ts +0 -549
  137. package/dist/admin/types.d.ts.map +0 -1
  138. package/dist/admin/types.js +0 -11
  139. package/dist/admin/types.js.map +0 -1
  140. package/dist/auth/api/auth.d.ts +0 -54
  141. package/dist/auth/api/auth.d.ts.map +0 -1
  142. package/dist/auth/api/auth.js +0 -67
  143. package/dist/auth/api/auth.js.map +0 -1
  144. package/dist/auth/api/forgot-password.d.ts +0 -41
  145. package/dist/auth/api/forgot-password.d.ts.map +0 -1
  146. package/dist/auth/api/forgot-password.js +0 -68
  147. package/dist/auth/api/forgot-password.js.map +0 -1
  148. package/dist/auth/api/index.d.ts +0 -34
  149. package/dist/auth/api/index.d.ts.map +0 -1
  150. package/dist/auth/api/index.js +0 -52
  151. package/dist/auth/api/index.js.map +0 -1
  152. package/dist/auth/api/register.d.ts +0 -41
  153. package/dist/auth/api/register.d.ts.map +0 -1
  154. package/dist/auth/api/register.js +0 -93
  155. package/dist/auth/api/register.js.map +0 -1
  156. package/dist/auth/api/resend-verification.d.ts +0 -41
  157. package/dist/auth/api/resend-verification.d.ts.map +0 -1
  158. package/dist/auth/api/resend-verification.js +0 -71
  159. package/dist/auth/api/resend-verification.js.map +0 -1
  160. package/dist/auth/api/reset-password.d.ts +0 -67
  161. package/dist/auth/api/reset-password.d.ts.map +0 -1
  162. package/dist/auth/api/reset-password.js +0 -110
  163. package/dist/auth/api/reset-password.js.map +0 -1
  164. package/dist/auth/api/verify-email.d.ts +0 -47
  165. package/dist/auth/api/verify-email.d.ts.map +0 -1
  166. package/dist/auth/api/verify-email.js +0 -94
  167. package/dist/auth/api/verify-email.js.map +0 -1
  168. package/dist/auth/components/AuthGuard.d.ts +0 -52
  169. package/dist/auth/components/AuthGuard.d.ts.map +0 -1
  170. package/dist/auth/components/AuthGuard.js +0 -113
  171. package/dist/auth/components/AuthGuard.js.map +0 -1
  172. package/dist/auth/components/ForgotPasswordForm.d.ts +0 -15
  173. package/dist/auth/components/ForgotPasswordForm.d.ts.map +0 -1
  174. package/dist/auth/components/ForgotPasswordForm.js +0 -44
  175. package/dist/auth/components/ForgotPasswordForm.js.map +0 -1
  176. package/dist/auth/components/ResetPasswordForm.d.ts +0 -18
  177. package/dist/auth/components/ResetPasswordForm.d.ts.map +0 -1
  178. package/dist/auth/components/ResetPasswordForm.js +0 -88
  179. package/dist/auth/components/ResetPasswordForm.js.map +0 -1
  180. package/dist/auth/components/SignInForm.d.ts +0 -21
  181. package/dist/auth/components/SignInForm.d.ts.map +0 -1
  182. package/dist/auth/components/SignInForm.js +0 -63
  183. package/dist/auth/components/SignInForm.js.map +0 -1
  184. package/dist/auth/components/SignUpForm.d.ts +0 -18
  185. package/dist/auth/components/SignUpForm.d.ts.map +0 -1
  186. package/dist/auth/components/SignUpForm.js +0 -79
  187. package/dist/auth/components/SignUpForm.js.map +0 -1
  188. package/dist/auth/components/UserMenu.d.ts +0 -18
  189. package/dist/auth/components/UserMenu.d.ts.map +0 -1
  190. package/dist/auth/components/UserMenu.js +0 -75
  191. package/dist/auth/components/UserMenu.js.map +0 -1
  192. package/dist/auth/components/VerifyEmailNotice.d.ts +0 -20
  193. package/dist/auth/components/VerifyEmailNotice.d.ts.map +0 -1
  194. package/dist/auth/components/VerifyEmailNotice.js +0 -59
  195. package/dist/auth/components/VerifyEmailNotice.js.map +0 -1
  196. package/dist/auth/components/index.d.ts +0 -13
  197. package/dist/auth/components/index.d.ts.map +0 -1
  198. package/dist/auth/components/index.js +0 -24
  199. package/dist/auth/components/index.js.map +0 -1
  200. package/dist/auth/config.d.ts +0 -42
  201. package/dist/auth/config.d.ts.map +0 -1
  202. package/dist/auth/config.js +0 -174
  203. package/dist/auth/config.js.map +0 -1
  204. package/dist/auth/hooks/index.d.ts +0 -7
  205. package/dist/auth/hooks/index.d.ts.map +0 -1
  206. package/dist/auth/hooks/index.js +0 -11
  207. package/dist/auth/hooks/index.js.map +0 -1
  208. package/dist/auth/index.d.ts +0 -54
  209. package/dist/auth/index.d.ts.map +0 -1
  210. package/dist/auth/index.js +0 -88
  211. package/dist/auth/index.js.map +0 -1
  212. package/dist/auth/server/customer-service.d.ts +0 -138
  213. package/dist/auth/server/customer-service.d.ts.map +0 -1
  214. package/dist/auth/server/customer-service.js +0 -309
  215. package/dist/auth/server/customer-service.js.map +0 -1
  216. package/dist/auth/server/email-sender.d.ts +0 -64
  217. package/dist/auth/server/email-sender.d.ts.map +0 -1
  218. package/dist/auth/server/email-sender.js +0 -112
  219. package/dist/auth/server/email-sender.js.map +0 -1
  220. package/dist/auth/server/index.d.ts +0 -13
  221. package/dist/auth/server/index.d.ts.map +0 -1
  222. package/dist/auth/server/index.js +0 -48
  223. package/dist/auth/server/index.js.map +0 -1
  224. package/dist/auth/server/password-reset-service.d.ts +0 -86
  225. package/dist/auth/server/password-reset-service.d.ts.map +0 -1
  226. package/dist/auth/server/password-reset-service.js +0 -236
  227. package/dist/auth/server/password-reset-service.js.map +0 -1
  228. package/dist/auth/server/password.d.ts +0 -58
  229. package/dist/auth/server/password.d.ts.map +0 -1
  230. package/dist/auth/server/password.js +0 -94
  231. package/dist/auth/server/password.js.map +0 -1
  232. package/dist/auth/server/verification-service.d.ts +0 -87
  233. package/dist/auth/server/verification-service.d.ts.map +0 -1
  234. package/dist/auth/server/verification-service.js +0 -268
  235. package/dist/auth/server/verification-service.js.map +0 -1
  236. package/dist/auth/types.d.ts +0 -305
  237. package/dist/auth/types.d.ts.map +0 -1
  238. package/dist/auth/types.js +0 -8
  239. package/dist/auth/types.js.map +0 -1
  240. package/dist/cart/CartProvider.d.ts +0 -65
  241. package/dist/cart/CartProvider.d.ts.map +0 -1
  242. package/dist/cart/CartProvider.js +0 -101
  243. package/dist/cart/CartProvider.js.map +0 -1
  244. package/dist/cart/components/AddToCartButton.d.ts +0 -77
  245. package/dist/cart/components/AddToCartButton.d.ts.map +0 -1
  246. package/dist/cart/components/AddToCartButton.js +0 -124
  247. package/dist/cart/components/AddToCartButton.js.map +0 -1
  248. package/dist/cart/components/CartDrawer.d.ts +0 -71
  249. package/dist/cart/components/CartDrawer.d.ts.map +0 -1
  250. package/dist/cart/components/CartDrawer.js +0 -108
  251. package/dist/cart/components/CartDrawer.js.map +0 -1
  252. package/dist/cart/components/CartIcon.d.ts +0 -36
  253. package/dist/cart/components/CartIcon.d.ts.map +0 -1
  254. package/dist/cart/components/CartIcon.js +0 -70
  255. package/dist/cart/components/CartIcon.js.map +0 -1
  256. package/dist/cart/components/CartItem.d.ts +0 -52
  257. package/dist/cart/components/CartItem.d.ts.map +0 -1
  258. package/dist/cart/components/CartItem.js +0 -55
  259. package/dist/cart/components/CartItem.js.map +0 -1
  260. package/dist/cart/components/CartSummary.d.ts +0 -43
  261. package/dist/cart/components/CartSummary.d.ts.map +0 -1
  262. package/dist/cart/components/CartSummary.js +0 -58
  263. package/dist/cart/components/CartSummary.js.map +0 -1
  264. package/dist/cart/components/QuantitySelector.d.ts +0 -39
  265. package/dist/cart/components/QuantitySelector.d.ts.map +0 -1
  266. package/dist/cart/components/QuantitySelector.js +0 -87
  267. package/dist/cart/components/QuantitySelector.js.map +0 -1
  268. package/dist/cart/components/index.d.ts +0 -18
  269. package/dist/cart/components/index.d.ts.map +0 -1
  270. package/dist/cart/components/index.js +0 -21
  271. package/dist/cart/components/index.js.map +0 -1
  272. package/dist/cart/index.d.ts +0 -109
  273. package/dist/cart/index.d.ts.map +0 -1
  274. package/dist/cart/index.js +0 -129
  275. package/dist/cart/index.js.map +0 -1
  276. package/dist/cart/store.d.ts +0 -101
  277. package/dist/cart/store.d.ts.map +0 -1
  278. package/dist/cart/store.js +0 -207
  279. package/dist/cart/store.js.map +0 -1
  280. package/dist/checkout/api/checkout.d.ts +0 -31
  281. package/dist/checkout/api/checkout.d.ts.map +0 -1
  282. package/dist/checkout/api/checkout.js +0 -103
  283. package/dist/checkout/api/checkout.js.map +0 -1
  284. package/dist/checkout/api/index.d.ts +0 -8
  285. package/dist/checkout/api/index.d.ts.map +0 -1
  286. package/dist/checkout/api/index.js +0 -13
  287. package/dist/checkout/api/index.js.map +0 -1
  288. package/dist/checkout/api/webhook.d.ts +0 -30
  289. package/dist/checkout/api/webhook.d.ts.map +0 -1
  290. package/dist/checkout/api/webhook.js +0 -58
  291. package/dist/checkout/api/webhook.js.map +0 -1
  292. package/dist/checkout/components/CheckoutButton.d.ts +0 -44
  293. package/dist/checkout/components/CheckoutButton.d.ts.map +0 -1
  294. package/dist/checkout/components/CheckoutButton.js +0 -97
  295. package/dist/checkout/components/CheckoutButton.js.map +0 -1
  296. package/dist/checkout/components/CheckoutSuccess.d.ts +0 -29
  297. package/dist/checkout/components/CheckoutSuccess.d.ts.map +0 -1
  298. package/dist/checkout/components/CheckoutSuccess.js +0 -60
  299. package/dist/checkout/components/CheckoutSuccess.js.map +0 -1
  300. package/dist/checkout/components/OrderSummary.d.ts +0 -37
  301. package/dist/checkout/components/OrderSummary.d.ts.map +0 -1
  302. package/dist/checkout/components/OrderSummary.js +0 -70
  303. package/dist/checkout/components/OrderSummary.js.map +0 -1
  304. package/dist/checkout/components/ShippingForm.d.ts +0 -30
  305. package/dist/checkout/components/ShippingForm.d.ts.map +0 -1
  306. package/dist/checkout/components/ShippingForm.js +0 -125
  307. package/dist/checkout/components/ShippingForm.js.map +0 -1
  308. package/dist/checkout/components/index.d.ts +0 -10
  309. package/dist/checkout/components/index.d.ts.map +0 -1
  310. package/dist/checkout/components/index.js +0 -17
  311. package/dist/checkout/components/index.js.map +0 -1
  312. package/dist/checkout/hooks/index.d.ts +0 -7
  313. package/dist/checkout/hooks/index.d.ts.map +0 -1
  314. package/dist/checkout/hooks/index.js +0 -12
  315. package/dist/checkout/hooks/index.js.map +0 -1
  316. package/dist/checkout/hooks/useCheckout.d.ts +0 -61
  317. package/dist/checkout/hooks/useCheckout.d.ts.map +0 -1
  318. package/dist/checkout/hooks/useCheckout.js +0 -174
  319. package/dist/checkout/hooks/useCheckout.js.map +0 -1
  320. package/dist/checkout/index.d.ts +0 -111
  321. package/dist/checkout/index.d.ts.map +0 -1
  322. package/dist/checkout/index.js +0 -148
  323. package/dist/checkout/index.js.map +0 -1
  324. package/dist/checkout/server/create-checkout-session.d.ts +0 -69
  325. package/dist/checkout/server/create-checkout-session.d.ts.map +0 -1
  326. package/dist/checkout/server/create-checkout-session.js +0 -190
  327. package/dist/checkout/server/create-checkout-session.js.map +0 -1
  328. package/dist/checkout/server/handle-webhook.d.ts +0 -35
  329. package/dist/checkout/server/handle-webhook.d.ts.map +0 -1
  330. package/dist/checkout/server/handle-webhook.js +0 -279
  331. package/dist/checkout/server/handle-webhook.js.map +0 -1
  332. package/dist/checkout/server/index.d.ts +0 -10
  333. package/dist/checkout/server/index.d.ts.map +0 -1
  334. package/dist/checkout/server/index.js +0 -19
  335. package/dist/checkout/server/index.js.map +0 -1
  336. package/dist/checkout/server/order-service.d.ts +0 -43
  337. package/dist/checkout/server/order-service.d.ts.map +0 -1
  338. package/dist/checkout/server/order-service.js +0 -196
  339. package/dist/checkout/server/order-service.js.map +0 -1
  340. package/dist/checkout/stripe/client.d.ts +0 -72
  341. package/dist/checkout/stripe/client.d.ts.map +0 -1
  342. package/dist/checkout/stripe/client.js +0 -189
  343. package/dist/checkout/stripe/client.js.map +0 -1
  344. package/dist/checkout/stripe/index.d.ts +0 -7
  345. package/dist/checkout/stripe/index.d.ts.map +0 -1
  346. package/dist/checkout/stripe/index.js +0 -21
  347. package/dist/checkout/stripe/index.js.map +0 -1
  348. package/dist/checkout/types.d.ts +0 -263
  349. package/dist/checkout/types.d.ts.map +0 -1
  350. package/dist/checkout/types.js +0 -9
  351. package/dist/checkout/types.js.map +0 -1
  352. package/dist/core/config.d.ts +0 -296
  353. package/dist/core/config.d.ts.map +0 -1
  354. package/dist/core/config.js +0 -162
  355. package/dist/core/config.js.map +0 -1
  356. package/dist/core/db/client.d.ts +0 -69
  357. package/dist/core/db/client.d.ts.map +0 -1
  358. package/dist/core/db/client.js +0 -202
  359. package/dist/core/db/client.js.map +0 -1
  360. package/dist/core/db/index.d.ts +0 -11
  361. package/dist/core/db/index.d.ts.map +0 -1
  362. package/dist/core/db/index.js +0 -87
  363. package/dist/core/db/index.js.map +0 -1
  364. package/dist/core/db/queries.d.ts +0 -658
  365. package/dist/core/db/queries.d.ts.map +0 -1
  366. package/dist/core/db/queries.js +0 -735
  367. package/dist/core/db/queries.js.map +0 -1
  368. package/dist/core/db/schema.d.ts +0 -1628
  369. package/dist/core/db/schema.d.ts.map +0 -1
  370. package/dist/core/db/schema.js +0 -262
  371. package/dist/core/db/schema.js.map +0 -1
  372. package/dist/core/index.d.ts +0 -20
  373. package/dist/core/index.d.ts.map +0 -1
  374. package/dist/core/index.js +0 -71
  375. package/dist/core/index.js.map +0 -1
  376. package/dist/core/server/index.d.ts +0 -17
  377. package/dist/core/server/index.d.ts.map +0 -1
  378. package/dist/core/server/index.js +0 -68
  379. package/dist/core/server/index.js.map +0 -1
  380. package/dist/core/types.d.ts +0 -230
  381. package/dist/core/types.d.ts.map +0 -1
  382. package/dist/core/types.js +0 -9
  383. package/dist/core/types.js.map +0 -1
  384. package/dist/core/utils.d.ts +0 -153
  385. package/dist/core/utils.d.ts.map +0 -1
  386. package/dist/core/utils.js +0 -356
  387. package/dist/core/utils.js.map +0 -1
  388. package/dist/emails/config.d.ts +0 -42
  389. package/dist/emails/config.d.ts.map +0 -1
  390. package/dist/emails/config.js +0 -89
  391. package/dist/emails/config.js.map +0 -1
  392. package/dist/emails/index.d.ts +0 -85
  393. package/dist/emails/index.d.ts.map +0 -1
  394. package/dist/emails/index.js +0 -170
  395. package/dist/emails/index.js.map +0 -1
  396. package/dist/emails/send/auth.d.ts +0 -91
  397. package/dist/emails/send/auth.d.ts.map +0 -1
  398. package/dist/emails/send/auth.js +0 -132
  399. package/dist/emails/send/auth.js.map +0 -1
  400. package/dist/emails/send/index.d.ts +0 -10
  401. package/dist/emails/send/index.d.ts.map +0 -1
  402. package/dist/emails/send/index.js +0 -33
  403. package/dist/emails/send/index.js.map +0 -1
  404. package/dist/emails/send/orders.d.ts +0 -180
  405. package/dist/emails/send/orders.d.ts.map +0 -1
  406. package/dist/emails/send/orders.js +0 -259
  407. package/dist/emails/send/orders.js.map +0 -1
  408. package/dist/emails/sender.d.ts +0 -72
  409. package/dist/emails/sender.d.ts.map +0 -1
  410. package/dist/emails/sender.js +0 -118
  411. package/dist/emails/sender.js.map +0 -1
  412. package/dist/emails/templates/base.d.ts +0 -105
  413. package/dist/emails/templates/base.d.ts.map +0 -1
  414. package/dist/emails/templates/base.js +0 -291
  415. package/dist/emails/templates/base.js.map +0 -1
  416. package/dist/emails/templates/email-verification.d.ts +0 -28
  417. package/dist/emails/templates/email-verification.d.ts.map +0 -1
  418. package/dist/emails/templates/email-verification.js +0 -56
  419. package/dist/emails/templates/email-verification.js.map +0 -1
  420. package/dist/emails/templates/index.d.ts +0 -15
  421. package/dist/emails/templates/index.d.ts.map +0 -1
  422. package/dist/emails/templates/index.js +0 -58
  423. package/dist/emails/templates/index.js.map +0 -1
  424. package/dist/emails/templates/order-cancelled.d.ts +0 -30
  425. package/dist/emails/templates/order-cancelled.d.ts.map +0 -1
  426. package/dist/emails/templates/order-cancelled.js +0 -87
  427. package/dist/emails/templates/order-cancelled.js.map +0 -1
  428. package/dist/emails/templates/order-confirmation.d.ts +0 -36
  429. package/dist/emails/templates/order-confirmation.d.ts.map +0 -1
  430. package/dist/emails/templates/order-confirmation.js +0 -161
  431. package/dist/emails/templates/order-confirmation.js.map +0 -1
  432. package/dist/emails/templates/order-delivered.d.ts +0 -31
  433. package/dist/emails/templates/order-delivered.d.ts.map +0 -1
  434. package/dist/emails/templates/order-delivered.js +0 -95
  435. package/dist/emails/templates/order-delivered.js.map +0 -1
  436. package/dist/emails/templates/order-shipped.d.ts +0 -32
  437. package/dist/emails/templates/order-shipped.d.ts.map +0 -1
  438. package/dist/emails/templates/order-shipped.js +0 -87
  439. package/dist/emails/templates/order-shipped.js.map +0 -1
  440. package/dist/emails/templates/password-reset.d.ts +0 -27
  441. package/dist/emails/templates/password-reset.d.ts.map +0 -1
  442. package/dist/emails/templates/password-reset.js +0 -55
  443. package/dist/emails/templates/password-reset.js.map +0 -1
  444. package/dist/emails/templates/refund-processed.d.ts +0 -32
  445. package/dist/emails/templates/refund-processed.d.ts.map +0 -1
  446. package/dist/emails/templates/refund-processed.js +0 -96
  447. package/dist/emails/templates/refund-processed.js.map +0 -1
  448. package/dist/emails/templates/welcome.d.ts +0 -27
  449. package/dist/emails/templates/welcome.d.ts.map +0 -1
  450. package/dist/emails/templates/welcome.js +0 -56
  451. package/dist/emails/templates/welcome.js.map +0 -1
  452. package/dist/emails/types.d.ts +0 -202
  453. package/dist/emails/types.d.ts.map +0 -1
  454. package/dist/emails/types.js +0 -8
  455. package/dist/emails/types.js.map +0 -1
  456. package/dist/emails/utils.d.ts +0 -94
  457. package/dist/emails/utils.d.ts.map +0 -1
  458. package/dist/emails/utils.js +0 -229
  459. package/dist/emails/utils.js.map +0 -1
  460. package/dist/index.d.ts +0 -40
  461. package/dist/index.d.ts.map +0 -1
  462. package/dist/index.js +0 -225
  463. package/dist/index.js.map +0 -1
  464. package/dist/products/api/categories.d.ts +0 -29
  465. package/dist/products/api/categories.d.ts.map +0 -1
  466. package/dist/products/api/categories.js +0 -49
  467. package/dist/products/api/categories.js.map +0 -1
  468. package/dist/products/api/index.d.ts +0 -24
  469. package/dist/products/api/index.d.ts.map +0 -1
  470. package/dist/products/api/index.js +0 -30
  471. package/dist/products/api/index.js.map +0 -1
  472. package/dist/products/api/product.d.ts +0 -36
  473. package/dist/products/api/product.d.ts.map +0 -1
  474. package/dist/products/api/product.js +0 -70
  475. package/dist/products/api/product.js.map +0 -1
  476. package/dist/products/api/products.d.ts +0 -41
  477. package/dist/products/api/products.d.ts.map +0 -1
  478. package/dist/products/api/products.js +0 -102
  479. package/dist/products/api/products.js.map +0 -1
  480. package/dist/products/components/CategoryNav.d.ts +0 -51
  481. package/dist/products/components/CategoryNav.d.ts.map +0 -1
  482. package/dist/products/components/CategoryNav.js +0 -115
  483. package/dist/products/components/CategoryNav.js.map +0 -1
  484. package/dist/products/components/ProductBreadcrumb.d.ts +0 -52
  485. package/dist/products/components/ProductBreadcrumb.d.ts.map +0 -1
  486. package/dist/products/components/ProductBreadcrumb.js +0 -78
  487. package/dist/products/components/ProductBreadcrumb.js.map +0 -1
  488. package/dist/products/components/ProductCard.d.ts +0 -54
  489. package/dist/products/components/ProductCard.d.ts.map +0 -1
  490. package/dist/products/components/ProductCard.js +0 -65
  491. package/dist/products/components/ProductCard.js.map +0 -1
  492. package/dist/products/components/ProductDetails.d.ts +0 -63
  493. package/dist/products/components/ProductDetails.d.ts.map +0 -1
  494. package/dist/products/components/ProductDetails.js +0 -105
  495. package/dist/products/components/ProductDetails.js.map +0 -1
  496. package/dist/products/components/ProductFilters.d.ts +0 -70
  497. package/dist/products/components/ProductFilters.d.ts.map +0 -1
  498. package/dist/products/components/ProductFilters.js +0 -127
  499. package/dist/products/components/ProductFilters.js.map +0 -1
  500. package/dist/products/components/ProductGallery.d.ts +0 -37
  501. package/dist/products/components/ProductGallery.d.ts.map +0 -1
  502. package/dist/products/components/ProductGallery.js +0 -80
  503. package/dist/products/components/ProductGallery.js.map +0 -1
  504. package/dist/products/components/ProductGrid.d.ts +0 -50
  505. package/dist/products/components/ProductGrid.d.ts.map +0 -1
  506. package/dist/products/components/ProductGrid.js +0 -83
  507. package/dist/products/components/ProductGrid.js.map +0 -1
  508. package/dist/products/components/ProductSearch.d.ts +0 -43
  509. package/dist/products/components/ProductSearch.d.ts.map +0 -1
  510. package/dist/products/components/ProductSearch.js +0 -99
  511. package/dist/products/components/ProductSearch.js.map +0 -1
  512. package/dist/products/components/ProductSort.d.ts +0 -43
  513. package/dist/products/components/ProductSort.d.ts.map +0 -1
  514. package/dist/products/components/ProductSort.js +0 -61
  515. package/dist/products/components/ProductSort.js.map +0 -1
  516. package/dist/products/components/VariantSelector.d.ts +0 -43
  517. package/dist/products/components/VariantSelector.d.ts.map +0 -1
  518. package/dist/products/components/VariantSelector.js +0 -147
  519. package/dist/products/components/VariantSelector.js.map +0 -1
  520. package/dist/products/components/index.d.ts +0 -26
  521. package/dist/products/components/index.d.ts.map +0 -1
  522. package/dist/products/components/index.js +0 -32
  523. package/dist/products/components/index.js.map +0 -1
  524. package/dist/products/hooks/index.d.ts +0 -14
  525. package/dist/products/hooks/index.d.ts.map +0 -1
  526. package/dist/products/hooks/index.js +0 -17
  527. package/dist/products/hooks/index.js.map +0 -1
  528. package/dist/products/hooks/useCategories.d.ts +0 -56
  529. package/dist/products/hooks/useCategories.d.ts.map +0 -1
  530. package/dist/products/hooks/useCategories.js +0 -126
  531. package/dist/products/hooks/useCategories.js.map +0 -1
  532. package/dist/products/hooks/useProduct.d.ts +0 -44
  533. package/dist/products/hooks/useProduct.d.ts.map +0 -1
  534. package/dist/products/hooks/useProduct.js +0 -86
  535. package/dist/products/hooks/useProduct.js.map +0 -1
  536. package/dist/products/hooks/useProductAttributes.d.ts +0 -59
  537. package/dist/products/hooks/useProductAttributes.d.ts.map +0 -1
  538. package/dist/products/hooks/useProductAttributes.js +0 -148
  539. package/dist/products/hooks/useProductAttributes.js.map +0 -1
  540. package/dist/products/hooks/useProducts.d.ts +0 -67
  541. package/dist/products/hooks/useProducts.d.ts.map +0 -1
  542. package/dist/products/hooks/useProducts.js +0 -132
  543. package/dist/products/hooks/useProducts.js.map +0 -1
  544. package/dist/products/index.d.ts +0 -94
  545. package/dist/products/index.d.ts.map +0 -1
  546. package/dist/products/index.js +0 -123
  547. package/dist/products/index.js.map +0 -1
  548. package/dist/theme/ThemeProvider.d.ts +0 -70
  549. package/dist/theme/ThemeProvider.d.ts.map +0 -1
  550. package/dist/theme/ThemeProvider.js +0 -77
  551. package/dist/theme/ThemeProvider.js.map +0 -1
  552. package/dist/theme/colors.d.ts +0 -148
  553. package/dist/theme/colors.d.ts.map +0 -1
  554. package/dist/theme/colors.js +0 -219
  555. package/dist/theme/colors.js.map +0 -1
  556. package/dist/theme/defaults.d.ts +0 -212
  557. package/dist/theme/defaults.d.ts.map +0 -1
  558. package/dist/theme/defaults.js +0 -278
  559. package/dist/theme/defaults.js.map +0 -1
  560. package/dist/theme/fonts.d.ts +0 -59
  561. package/dist/theme/fonts.d.ts.map +0 -1
  562. package/dist/theme/fonts.js +0 -202
  563. package/dist/theme/fonts.js.map +0 -1
  564. package/dist/theme/generator.d.ts +0 -50
  565. package/dist/theme/generator.d.ts.map +0 -1
  566. package/dist/theme/generator.js +0 -322
  567. package/dist/theme/generator.js.map +0 -1
  568. package/dist/theme/hooks.d.ts +0 -110
  569. package/dist/theme/hooks.d.ts.map +0 -1
  570. package/dist/theme/hooks.js +0 -106
  571. package/dist/theme/hooks.js.map +0 -1
  572. package/dist/theme/index.d.ts +0 -37
  573. package/dist/theme/index.d.ts.map +0 -1
  574. package/dist/theme/index.js +0 -85
  575. package/dist/theme/index.js.map +0 -1
@@ -1,291 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/templates/base
4
- *
5
- * Base email layout used by all email templates.
6
- * Provides consistent styling and structure.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.STYLES = void 0;
10
- exports.baseLayout = baseLayout;
11
- exports.primaryButton = primaryButton;
12
- exports.heading = heading;
13
- exports.paragraph = paragraph;
14
- exports.infoBox = infoBox;
15
- exports.linkFallback = linkFallback;
16
- exports.detailBox = detailBox;
17
- exports.statusBadge = statusBadge;
18
- exports.labeledValue = labeledValue;
19
- exports.labeledValueRow = labeledValueRow;
20
- exports.highlightBox = highlightBox;
21
- exports.secondaryButton = secondaryButton;
22
- exports.addressSection = addressSection;
23
- exports.sectionHeading = sectionHeading;
24
- const utils_1 = require("../utils");
25
- // =============================================================================
26
- // Styles
27
- // =============================================================================
28
- const STYLES = {
29
- fontFamily: "'Plus Jakarta Sans', system-ui, sans-serif",
30
- backgroundColor: '#F7F7F7',
31
- cardBackground: '#FFFFFF',
32
- cardBorder: '#E8DFD3',
33
- footerBackground: '#FBF8F5',
34
- primaryColor: '#0CAF7D',
35
- textPrimary: '#0A0A0A',
36
- textSecondary: '#78716C',
37
- textMuted: '#1C1917',
38
- };
39
- exports.STYLES = STYLES;
40
- // =============================================================================
41
- // Layout Components
42
- // =============================================================================
43
- /**
44
- * Render the email header with logo.
45
- */
46
- function renderHeader(logoUrl) {
47
- if (!logoUrl) {
48
- return '';
49
- }
50
- return `
51
- <tr>
52
- <td align="center" style="padding: 48px 32px 32px 32px;">
53
- <img src="${(0, utils_1.escapeHtml)(logoUrl)}" alt="Store Logo" style="max-width: 180px; height: auto;" />
54
- </td>
55
- </tr>
56
- `;
57
- }
58
- /**
59
- * Render the email footer.
60
- */
61
- function renderFooter(config) {
62
- return `
63
- <tr>
64
- <td style="padding: 32px 48px; background-color: ${STYLES.footerBackground}; border-top: 1px solid ${STYLES.cardBorder};">
65
- <p style="margin: 0 0 8px 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 500; line-height: 1.5; color: ${STYLES.textMuted}; text-align: center;">
66
- ${(0, utils_1.escapeHtml)(config.storeName)}
67
- </p>
68
- ${config.storeAddress
69
- ? `<p style="margin: 0 0 16px 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${STYLES.textSecondary}; text-align: center;">
70
- ${(0, utils_1.escapeHtml)(config.storeAddress)}
71
- </p>`
72
- : ''}
73
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${STYLES.textSecondary}; text-align: center;">
74
- Need help? Contact us at <a href="mailto:${(0, utils_1.escapeHtml)(config.supportEmail)}" style="color: ${STYLES.primaryColor}; text-decoration: none; font-weight: 500;">${(0, utils_1.escapeHtml)(config.supportEmail)}</a>
75
- </p>
76
- </td>
77
- </tr>
78
- `;
79
- }
80
- /**
81
- * Wrap email content in the base layout.
82
- * All email templates should use this function.
83
- *
84
- * @example
85
- * ```typescript
86
- * const html = baseLayout({
87
- * config: emailConfig,
88
- * title: 'Order Confirmation',
89
- * content: '<h1>Thank you for your order!</h1>...',
90
- * })
91
- * ```
92
- */
93
- function baseLayout({ config, title, content }) {
94
- return `<!DOCTYPE html>
95
- <html lang="en">
96
- <head>
97
- <meta charset="UTF-8">
98
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
99
- <title>${(0, utils_1.escapeHtml)(title)}</title>
100
- <link rel="preconnect" href="https://fonts.googleapis.com">
101
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
102
- <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
103
- </head>
104
- <body style="margin: 0; padding: 0; font-family: ${STYLES.fontFamily}; background-color: ${STYLES.backgroundColor};">
105
- <table width="100%" cellpadding="0" cellspacing="0" style="background-color: ${STYLES.backgroundColor}; padding: 40px 0;">
106
- <tr>
107
- <td align="center">
108
- <table width="600" cellpadding="0" cellspacing="0" style="background-color: ${STYLES.cardBackground}; border-radius: 24px; overflow: hidden; border: 1px solid ${STYLES.cardBorder};">
109
- ${renderHeader(config.logoUrl)}
110
- <tr>
111
- <td style="padding: 0 48px 48px 48px;">
112
- ${content}
113
- </td>
114
- </tr>
115
- ${renderFooter(config)}
116
- </table>
117
- </td>
118
- </tr>
119
- </table>
120
- </body>
121
- </html>`;
122
- }
123
- // =============================================================================
124
- // Common Components
125
- // =============================================================================
126
- /**
127
- * Render a primary CTA button.
128
- */
129
- function primaryButton(text, href) {
130
- return `
131
- <table width="100%" cellpadding="0" cellspacing="0" style="margin: 0 0 32px 0;">
132
- <tr>
133
- <td align="center">
134
- <a href="${(0, utils_1.escapeHtml)(href)}" style="display: inline-block; padding: 12px 32px; background-color: ${STYLES.primaryColor}; color: #FFFFFF; text-decoration: none; border-radius: 12px; font-family: ${STYLES.fontFamily}; font-size: 16px; font-weight: 600;">${(0, utils_1.escapeHtml)(text)}</a>
135
- </td>
136
- </tr>
137
- </table>
138
- `;
139
- }
140
- /**
141
- * Render a heading (h1).
142
- */
143
- function heading(text) {
144
- return `<h1 style="margin: 0 0 24px 0; font-family: ${STYLES.fontFamily}; font-size: 30px; font-weight: 700; color: ${STYLES.textPrimary}; text-align: center; line-height: 1.1;">${(0, utils_1.escapeHtml)(text)}</h1>`;
145
- }
146
- /**
147
- * Render a paragraph of text.
148
- */
149
- function paragraph(text, marginBottom = '16px') {
150
- return `<p style="margin: 0 0 ${marginBottom} 0; font-family: ${STYLES.fontFamily}; font-size: 16px; font-weight: 400; line-height: 1.625; color: ${STYLES.textSecondary};">${text}</p>`;
151
- }
152
- /**
153
- * Render an info box (muted background).
154
- */
155
- function infoBox(content) {
156
- return `
157
- <div style="padding: 16px; background-color: ${STYLES.footerBackground}; border-radius: 12px; border: 1px solid ${STYLES.cardBorder};">
158
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${STYLES.textSecondary};">
159
- ${content}
160
- </p>
161
- </div>
162
- `;
163
- }
164
- /**
165
- * Render a link with fallback text.
166
- */
167
- function linkFallback(href) {
168
- return infoBox(`
169
- If the button doesn't work, copy and paste this link into your browser:<br>
170
- <a href="${(0, utils_1.escapeHtml)(href)}" style="color: ${STYLES.primaryColor}; word-break: break-all; text-decoration: none;">${(0, utils_1.escapeHtml)(href)}</a>
171
- `);
172
- }
173
- /**
174
- * Render a detail box with label-value pairs.
175
- */
176
- function detailBox(title, details) {
177
- const detailsHtml = details
178
- .map((d) => `
179
- <p style="margin: 0 0 8px 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${STYLES.textSecondary};">
180
- <strong style="color: ${STYLES.textMuted};">${(0, utils_1.escapeHtml)(d.label)}:</strong> ${(0, utils_1.escapeHtml)(d.value)}
181
- </p>
182
- `)
183
- .join('');
184
- return `
185
- <div style="padding: 20px; background-color: ${STYLES.footerBackground}; border-radius: 12px; border: 1px solid ${STYLES.cardBorder};">
186
- <h3 style="margin: 0 0 12px 0; font-family: ${STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${STYLES.textPrimary};">${(0, utils_1.escapeHtml)(title)}</h3>
187
- ${detailsHtml}
188
- </div>
189
- `;
190
- }
191
- // =============================================================================
192
- // Status Badges
193
- // =============================================================================
194
- /**
195
- * Render a success status badge.
196
- */
197
- function statusBadge(text, emoji) {
198
- const displayText = emoji ? `${emoji} ${text}` : `✓ ${text}`;
199
- return `
200
- <table width="100%" cellpadding="0" cellspacing="0">
201
- <tr>
202
- <td align="center" style="padding: 0 48px 24px 48px;">
203
- <div style="display: inline-block; padding: 8px 16px; background-color: rgba(12, 175, 125, 0.1); border-radius: 9999px; border: 1px solid rgba(12, 175, 125, 0.3);">
204
- <span style="font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 600; color: ${STYLES.primaryColor};">${(0, utils_1.escapeHtml)(displayText)}</span>
205
- </div>
206
- </td>
207
- </tr>
208
- </table>
209
- `;
210
- }
211
- // =============================================================================
212
- // Data Display Components
213
- // =============================================================================
214
- /**
215
- * Render a labeled value row.
216
- */
217
- function labeledValue(label, value, options = {}) {
218
- const { valueColor = STYLES.textPrimary, valueSize = '18px', borderTop = false, borderBottom = false, } = options;
219
- const borderTopStyle = borderTop ? 'padding-top: 16px; border-top: 1px solid #E8DFD3;' : '';
220
- const borderBottomStyle = borderBottom ? 'padding-bottom: 16px;' : '';
221
- return `
222
- <tr>
223
- <td style="${borderTopStyle} ${borderBottomStyle}">
224
- <p style="margin: 0 0 4px 0; font-family: ${STYLES.fontFamily}; font-size: 12px; font-weight: 400; color: ${STYLES.textSecondary}; text-transform: uppercase; letter-spacing: 0.05em;">${(0, utils_1.escapeHtml)(label)}</p>
225
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: ${valueSize}; font-weight: 600; color: ${valueColor};">${(0, utils_1.escapeHtml)(value)}</p>
226
- </td>
227
- </tr>
228
- `;
229
- }
230
- /**
231
- * Render a two-column labeled value row.
232
- */
233
- function labeledValueRow(left, right, borderBottom) {
234
- const borderStyle = borderBottom ? 'padding-bottom: 16px;' : '';
235
- return `
236
- <tr>
237
- <td style="${borderStyle}">
238
- <p style="margin: 0 0 4px 0; font-family: ${STYLES.fontFamily}; font-size: 12px; font-weight: 400; color: ${STYLES.textSecondary}; text-transform: uppercase; letter-spacing: 0.05em;">${(0, utils_1.escapeHtml)(left.label)}</p>
239
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${STYLES.textPrimary};">${(0, utils_1.escapeHtml)(left.value)}</p>
240
- </td>
241
- <td align="right" style="${borderStyle}">
242
- <p style="margin: 0 0 4px 0; font-family: ${STYLES.fontFamily}; font-size: 12px; font-weight: 400; color: ${STYLES.textSecondary}; text-transform: uppercase; letter-spacing: 0.05em;">${(0, utils_1.escapeHtml)(right.label)}</p>
243
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${STYLES.textPrimary};">${(0, utils_1.escapeHtml)(right.value)}</p>
244
- </td>
245
- </tr>
246
- `;
247
- }
248
- /**
249
- * Render a highlighted box (green tinted).
250
- */
251
- function highlightBox(content) {
252
- return `
253
- <div style="padding: 20px; background-color: rgba(12, 175, 125, 0.05); border-radius: 12px; border: 1px solid rgba(12, 175, 125, 0.2); margin-bottom: 32px;">
254
- ${content}
255
- </div>
256
- `;
257
- }
258
- /**
259
- * Render a secondary/outline button.
260
- */
261
- function secondaryButton(text, href) {
262
- return `
263
- <table width="100%" cellpadding="0" cellspacing="0">
264
- <tr>
265
- <td align="center">
266
- <a href="${(0, utils_1.escapeHtml)(href)}" style="display: inline-block; padding: 12px 32px; background-color: transparent; color: ${STYLES.primaryColor}; text-decoration: none; border-radius: 12px; border: 1px solid rgba(12, 175, 125, 0.3); font-family: ${STYLES.fontFamily}; font-size: 16px; font-weight: 600;">${(0, utils_1.escapeHtml)(text)}</a>
267
- </td>
268
- </tr>
269
- </table>
270
- `;
271
- }
272
- /**
273
- * Render address section.
274
- */
275
- function addressSection(title, addressHtml) {
276
- return `
277
- <div style="margin-bottom: 32px;">
278
- <h3 style="margin: 0 0 12px 0; font-family: ${STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${STYLES.textPrimary};">${(0, utils_1.escapeHtml)(title)}</h3>
279
- <p style="margin: 0; font-family: ${STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${STYLES.textSecondary};">
280
- ${addressHtml}
281
- </p>
282
- </div>
283
- `;
284
- }
285
- /**
286
- * Render a section heading.
287
- */
288
- function sectionHeading(text) {
289
- return `<h3 style="margin: 0 0 16px 0; font-family: ${STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${STYLES.textPrimary};">${(0, utils_1.escapeHtml)(text)}</h3>`;
290
- }
291
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/emails/templates/base.ts"],"names":[],"mappings":"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"}
@@ -1,28 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/templates/email-verification
3
- *
4
- * Email verification template for new account signups.
5
- */
6
- import type { EmailVerificationData } from '../types';
7
- /**
8
- * Render the email verification template.
9
- *
10
- * @example
11
- * ```typescript
12
- * import { renderEmailVerification } from '@rovela/sdk/emails'
13
- *
14
- * const html = renderEmailVerification({
15
- * config: emailConfig,
16
- * customerName: 'John',
17
- * customerEmail: 'john@example.com',
18
- * verificationLink: 'https://store.com/verify?token=...',
19
- * expiryTime: '24',
20
- * })
21
- * ```
22
- */
23
- export declare function renderEmailVerification(data: EmailVerificationData): string;
24
- /**
25
- * Get the subject line for email verification emails.
26
- */
27
- export declare function getEmailVerificationSubject(storeName: string): string;
28
- //# sourceMappingURL=email-verification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-verification.d.ts","sourceRoot":"","sources":["../../../src/emails/templates/email-verification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAUrD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CA+B3E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAErE"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/templates/email-verification
4
- *
5
- * Email verification template for new account signups.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.renderEmailVerification = renderEmailVerification;
9
- exports.getEmailVerificationSubject = getEmailVerificationSubject;
10
- const utils_1 = require("../utils");
11
- const base_1 = require("./base");
12
- /**
13
- * Render the email verification template.
14
- *
15
- * @example
16
- * ```typescript
17
- * import { renderEmailVerification } from '@rovela/sdk/emails'
18
- *
19
- * const html = renderEmailVerification({
20
- * config: emailConfig,
21
- * customerName: 'John',
22
- * customerEmail: 'john@example.com',
23
- * verificationLink: 'https://store.com/verify?token=...',
24
- * expiryTime: '24',
25
- * })
26
- * ```
27
- */
28
- function renderEmailVerification(data) {
29
- const content = `
30
- ${(0, base_1.heading)('Verify Your Email Address')}
31
-
32
- ${(0, base_1.paragraph)(`Hi ${(0, utils_1.escapeHtml)(data.customerName)},`)}
33
-
34
- ${(0, base_1.paragraph)(`Thanks for signing up with ${(0, utils_1.escapeHtml)(data.config.storeName)}! To complete your registration and start shopping, please verify your email address by clicking the button below.`, '32px')}
35
-
36
- ${(0, base_1.primaryButton)('Verify Email Address', data.verificationLink)}
37
-
38
- ${(0, base_1.paragraph)(`This link will expire in ${(0, utils_1.escapeHtml)(data.expiryTime)} hours for security reasons.`, '24px')}
39
-
40
- ${(0, base_1.paragraph)("If you didn't create an account with us, you can safely ignore this email.", '24px')}
41
-
42
- ${(0, base_1.linkFallback)(data.verificationLink)}
43
- `;
44
- return (0, base_1.baseLayout)({
45
- config: data.config,
46
- title: 'Verify Your Email Address',
47
- content,
48
- });
49
- }
50
- /**
51
- * Get the subject line for email verification emails.
52
- */
53
- function getEmailVerificationSubject(storeName) {
54
- return `Verify your email address - ${storeName}`;
55
- }
56
- //# sourceMappingURL=email-verification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-verification.js","sourceRoot":"","sources":["../../../src/emails/templates/email-verification.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AA4BH,0DA+BC;AAKD,kEAEC;AA/DD,oCAAqC;AACrC,iCAMe;AAEf;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,uBAAuB,CAAC,IAA2B;IACjE,MAAM,OAAO,GAAG;MACZ,IAAA,cAAO,EAAC,2BAA2B,CAAC;;MAEpC,IAAA,gBAAS,EAAC,MAAM,IAAA,kBAAU,EAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;;MAEjD,IAAA,gBAAS,EACT,8BAA8B,IAAA,kBAAU,EAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,oHAAoH,EACnL,MAAM,CACP;;MAEC,IAAA,oBAAa,EAAC,sBAAsB,EAAE,IAAI,CAAC,gBAAgB,CAAC;;MAE5D,IAAA,gBAAS,EACT,4BAA4B,IAAA,kBAAU,EAAC,IAAI,CAAC,UAAU,CAAC,8BAA8B,EACrF,MAAM,CACP;;MAEC,IAAA,gBAAS,EACT,4EAA4E,EAC5E,MAAM,CACP;;MAEC,IAAA,mBAAY,EAAC,IAAI,CAAC,gBAAgB,CAAC;GACtC,CAAA;IAED,OAAO,IAAA,iBAAU,EAAC;QAChB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,KAAK,EAAE,2BAA2B;QAClC,OAAO;KACR,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,2BAA2B,CAAC,SAAiB;IAC3D,OAAO,+BAA+B,SAAS,EAAE,CAAA;AACnD,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/templates
3
- *
4
- * Email template render functions.
5
- */
6
- export { baseLayout, primaryButton, heading, paragraph, infoBox, linkFallback, detailBox, statusBadge, labeledValue, labeledValueRow, highlightBox, secondaryButton, addressSection, sectionHeading, STYLES, } from './base';
7
- export { renderEmailVerification, getEmailVerificationSubject, } from './email-verification';
8
- export { renderWelcomeEmail, getWelcomeEmailSubject } from './welcome';
9
- export { renderPasswordResetEmail, getPasswordResetSubject, } from './password-reset';
10
- export { renderOrderConfirmation, getOrderConfirmationSubject, } from './order-confirmation';
11
- export { renderOrderShipped, getOrderShippedSubject } from './order-shipped';
12
- export { renderOrderDelivered, getOrderDeliveredSubject, } from './order-delivered';
13
- export { renderOrderCancelled, getOrderCancelledSubject, } from './order-cancelled';
14
- export { renderRefundProcessed, getRefundProcessedSubject, } from './refund-processed';
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/emails/templates/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,WAAW,EACX,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,cAAc,EACd,cAAc,EACd,MAAM,GACP,MAAM,QAAQ,CAAA;AAMf,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAEtE,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,kBAAkB,CAAA;AAMzB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAA"}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/templates
4
- *
5
- * Email template render functions.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getRefundProcessedSubject = exports.renderRefundProcessed = exports.getOrderCancelledSubject = exports.renderOrderCancelled = exports.getOrderDeliveredSubject = exports.renderOrderDelivered = exports.getOrderShippedSubject = exports.renderOrderShipped = exports.getOrderConfirmationSubject = exports.renderOrderConfirmation = exports.getPasswordResetSubject = exports.renderPasswordResetEmail = exports.getWelcomeEmailSubject = exports.renderWelcomeEmail = exports.getEmailVerificationSubject = exports.renderEmailVerification = exports.STYLES = exports.sectionHeading = exports.addressSection = exports.secondaryButton = exports.highlightBox = exports.labeledValueRow = exports.labeledValue = exports.statusBadge = exports.detailBox = exports.linkFallback = exports.infoBox = exports.paragraph = exports.heading = exports.primaryButton = exports.baseLayout = void 0;
9
- // =============================================================================
10
- // Base Components
11
- // =============================================================================
12
- var base_1 = require("./base");
13
- Object.defineProperty(exports, "baseLayout", { enumerable: true, get: function () { return base_1.baseLayout; } });
14
- Object.defineProperty(exports, "primaryButton", { enumerable: true, get: function () { return base_1.primaryButton; } });
15
- Object.defineProperty(exports, "heading", { enumerable: true, get: function () { return base_1.heading; } });
16
- Object.defineProperty(exports, "paragraph", { enumerable: true, get: function () { return base_1.paragraph; } });
17
- Object.defineProperty(exports, "infoBox", { enumerable: true, get: function () { return base_1.infoBox; } });
18
- Object.defineProperty(exports, "linkFallback", { enumerable: true, get: function () { return base_1.linkFallback; } });
19
- Object.defineProperty(exports, "detailBox", { enumerable: true, get: function () { return base_1.detailBox; } });
20
- Object.defineProperty(exports, "statusBadge", { enumerable: true, get: function () { return base_1.statusBadge; } });
21
- Object.defineProperty(exports, "labeledValue", { enumerable: true, get: function () { return base_1.labeledValue; } });
22
- Object.defineProperty(exports, "labeledValueRow", { enumerable: true, get: function () { return base_1.labeledValueRow; } });
23
- Object.defineProperty(exports, "highlightBox", { enumerable: true, get: function () { return base_1.highlightBox; } });
24
- Object.defineProperty(exports, "secondaryButton", { enumerable: true, get: function () { return base_1.secondaryButton; } });
25
- Object.defineProperty(exports, "addressSection", { enumerable: true, get: function () { return base_1.addressSection; } });
26
- Object.defineProperty(exports, "sectionHeading", { enumerable: true, get: function () { return base_1.sectionHeading; } });
27
- Object.defineProperty(exports, "STYLES", { enumerable: true, get: function () { return base_1.STYLES; } });
28
- // =============================================================================
29
- // Auth Templates
30
- // =============================================================================
31
- var email_verification_1 = require("./email-verification");
32
- Object.defineProperty(exports, "renderEmailVerification", { enumerable: true, get: function () { return email_verification_1.renderEmailVerification; } });
33
- Object.defineProperty(exports, "getEmailVerificationSubject", { enumerable: true, get: function () { return email_verification_1.getEmailVerificationSubject; } });
34
- var welcome_1 = require("./welcome");
35
- Object.defineProperty(exports, "renderWelcomeEmail", { enumerable: true, get: function () { return welcome_1.renderWelcomeEmail; } });
36
- Object.defineProperty(exports, "getWelcomeEmailSubject", { enumerable: true, get: function () { return welcome_1.getWelcomeEmailSubject; } });
37
- var password_reset_1 = require("./password-reset");
38
- Object.defineProperty(exports, "renderPasswordResetEmail", { enumerable: true, get: function () { return password_reset_1.renderPasswordResetEmail; } });
39
- Object.defineProperty(exports, "getPasswordResetSubject", { enumerable: true, get: function () { return password_reset_1.getPasswordResetSubject; } });
40
- // =============================================================================
41
- // Order Templates
42
- // =============================================================================
43
- var order_confirmation_1 = require("./order-confirmation");
44
- Object.defineProperty(exports, "renderOrderConfirmation", { enumerable: true, get: function () { return order_confirmation_1.renderOrderConfirmation; } });
45
- Object.defineProperty(exports, "getOrderConfirmationSubject", { enumerable: true, get: function () { return order_confirmation_1.getOrderConfirmationSubject; } });
46
- var order_shipped_1 = require("./order-shipped");
47
- Object.defineProperty(exports, "renderOrderShipped", { enumerable: true, get: function () { return order_shipped_1.renderOrderShipped; } });
48
- Object.defineProperty(exports, "getOrderShippedSubject", { enumerable: true, get: function () { return order_shipped_1.getOrderShippedSubject; } });
49
- var order_delivered_1 = require("./order-delivered");
50
- Object.defineProperty(exports, "renderOrderDelivered", { enumerable: true, get: function () { return order_delivered_1.renderOrderDelivered; } });
51
- Object.defineProperty(exports, "getOrderDeliveredSubject", { enumerable: true, get: function () { return order_delivered_1.getOrderDeliveredSubject; } });
52
- var order_cancelled_1 = require("./order-cancelled");
53
- Object.defineProperty(exports, "renderOrderCancelled", { enumerable: true, get: function () { return order_cancelled_1.renderOrderCancelled; } });
54
- Object.defineProperty(exports, "getOrderCancelledSubject", { enumerable: true, get: function () { return order_cancelled_1.getOrderCancelledSubject; } });
55
- var refund_processed_1 = require("./refund-processed");
56
- Object.defineProperty(exports, "renderRefundProcessed", { enumerable: true, get: function () { return refund_processed_1.renderRefundProcessed; } });
57
- Object.defineProperty(exports, "getRefundProcessedSubject", { enumerable: true, get: function () { return refund_processed_1.getRefundProcessedSubject; } });
58
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/emails/templates/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF,+BAgBe;AAfb,kGAAA,UAAU,OAAA;AACV,qGAAA,aAAa,OAAA;AACb,+FAAA,OAAO,OAAA;AACP,iGAAA,SAAS,OAAA;AACT,+FAAA,OAAO,OAAA;AACP,oGAAA,YAAY,OAAA;AACZ,iGAAA,SAAS,OAAA;AACT,mGAAA,WAAW,OAAA;AACX,oGAAA,YAAY,OAAA;AACZ,uGAAA,eAAe,OAAA;AACf,oGAAA,YAAY,OAAA;AACZ,uGAAA,eAAe,OAAA;AACf,sGAAA,cAAc,OAAA;AACd,sGAAA,cAAc,OAAA;AACd,8FAAA,MAAM,OAAA;AAGR,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,2DAG6B;AAF3B,6HAAA,uBAAuB,OAAA;AACvB,iIAAA,2BAA2B,OAAA;AAG7B,qCAAsE;AAA7D,6GAAA,kBAAkB,OAAA;AAAE,iHAAA,sBAAsB,OAAA;AAEnD,mDAGyB;AAFvB,0HAAA,wBAAwB,OAAA;AACxB,yHAAA,uBAAuB,OAAA;AAGzB,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF,2DAG6B;AAF3B,6HAAA,uBAAuB,OAAA;AACvB,iIAAA,2BAA2B,OAAA;AAG7B,iDAA4E;AAAnE,mHAAA,kBAAkB,OAAA;AAAE,uHAAA,sBAAsB,OAAA;AAEnD,qDAG0B;AAFxB,uHAAA,oBAAoB,OAAA;AACpB,2HAAA,wBAAwB,OAAA;AAG1B,qDAG0B;AAFxB,uHAAA,oBAAoB,OAAA;AACpB,2HAAA,wBAAwB,OAAA;AAG1B,uDAG2B;AAFzB,yHAAA,qBAAqB,OAAA;AACrB,6HAAA,yBAAyB,OAAA"}
@@ -1,30 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/templates/order-cancelled
3
- *
4
- * Order cancelled email template.
5
- */
6
- import type { OrderCancelledData } from '../types';
7
- /**
8
- * Render the order cancelled email template.
9
- *
10
- * @example
11
- * ```typescript
12
- * import { renderOrderCancelled } from '@rovela/sdk/emails'
13
- *
14
- * const html = renderOrderCancelled({
15
- * config: emailConfig,
16
- * customerName: 'John',
17
- * customerEmail: 'john@example.com',
18
- * orderNumber: 'ORD-12345',
19
- * cancellationReason: 'Customer requested cancellation.',
20
- * cancellationDate: 'November 28, 2025',
21
- * refundMessage: 'Your refund will be processed within 3-5 business days.',
22
- * })
23
- * ```
24
- */
25
- export declare function renderOrderCancelled(data: OrderCancelledData): string;
26
- /**
27
- * Get the subject line for order cancelled emails.
28
- */
29
- export declare function getOrderCancelledSubject(storeName: string, orderNumber: string): string;
30
- //# sourceMappingURL=order-cancelled.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-cancelled.d.ts","sourceRoot":"","sources":["../../../src/emails/templates/order-cancelled.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAgBlD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAyDrE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,MAAM,CAER"}
@@ -1,87 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/templates/order-cancelled
4
- *
5
- * Order cancelled email template.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.renderOrderCancelled = renderOrderCancelled;
9
- exports.getOrderCancelledSubject = getOrderCancelledSubject;
10
- const utils_1 = require("../utils");
11
- const base_1 = require("./base");
12
- // =============================================================================
13
- // Main Template
14
- // =============================================================================
15
- /**
16
- * Render the order cancelled email template.
17
- *
18
- * @example
19
- * ```typescript
20
- * import { renderOrderCancelled } from '@rovela/sdk/emails'
21
- *
22
- * const html = renderOrderCancelled({
23
- * config: emailConfig,
24
- * customerName: 'John',
25
- * customerEmail: 'john@example.com',
26
- * orderNumber: 'ORD-12345',
27
- * cancellationReason: 'Customer requested cancellation.',
28
- * cancellationDate: 'November 28, 2025',
29
- * refundMessage: 'Your refund will be processed within 3-5 business days.',
30
- * })
31
- * ```
32
- */
33
- function renderOrderCancelled(data) {
34
- // Build cancellation reason text
35
- const reasonText = data.cancellationReason
36
- ? ` ${(0, utils_1.escapeHtml)(data.cancellationReason)}`
37
- : '';
38
- // Order details box
39
- const orderDetailsBox = `
40
- <div style="padding: 24px; background-color: #FBF8F5; border-radius: 16px; border: 1px solid #E8DFD3; margin-bottom: 32px;">
41
- <table width="100%" cellpadding="0" cellspacing="0">
42
- ${(0, base_1.labeledValue)('Order Number', `#${data.orderNumber}`, {
43
- valueSize: '16px',
44
- borderBottom: true,
45
- })}
46
- ${(0, base_1.labeledValue)('Cancelled On', data.cancellationDate, {
47
- valueSize: '16px',
48
- borderTop: true,
49
- })}
50
- </table>
51
- </div>
52
- `;
53
- // Refund information box
54
- const refundInfoBox = (0, base_1.highlightBox)(`
55
- <h3 style="margin: 0 0 12px 0; font-family: ${base_1.STYLES.fontFamily}; font-size: 18px; font-weight: 600; color: ${base_1.STYLES.textPrimary};">Refund Information</h3>
56
- <p style="margin: 0; font-family: ${base_1.STYLES.fontFamily}; font-size: 14px; font-weight: 400; line-height: 1.5; color: ${base_1.STYLES.textSecondary};">
57
- ${(0, utils_1.escapeHtml)(data.refundMessage)}
58
- </p>
59
- `);
60
- const content = `
61
- ${(0, base_1.heading)('Order Cancelled')}
62
-
63
- ${(0, base_1.paragraph)(`Hi ${(0, utils_1.escapeHtml)(data.customerName)},`)}
64
-
65
- ${(0, base_1.paragraph)(`Your order #${(0, utils_1.escapeHtml)(data.orderNumber)} has been cancelled as requested.${reasonText}`, '32px')}
66
-
67
- ${orderDetailsBox}
68
-
69
- ${refundInfoBox}
70
-
71
- ${(0, base_1.paragraph)("If you have any questions about this cancellation, please don't hesitate to reach out to our support team.", '32px')}
72
-
73
- ${(0, base_1.primaryButton)('Continue Shopping', data.config.shopUrl)}
74
- `;
75
- return (0, base_1.baseLayout)({
76
- config: data.config,
77
- title: `Order Cancelled - #${data.orderNumber}`,
78
- content,
79
- });
80
- }
81
- /**
82
- * Get the subject line for order cancelled emails.
83
- */
84
- function getOrderCancelledSubject(storeName, orderNumber) {
85
- return `Order Cancelled - #${orderNumber} | ${storeName}`;
86
- }
87
- //# sourceMappingURL=order-cancelled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-cancelled.js","sourceRoot":"","sources":["../../../src/emails/templates/order-cancelled.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAoCH,oDAyDC;AAKD,4DAKC;AApGD,oCAAqC;AACrC,iCAQe;AAEf,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAEhF;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,oBAAoB,CAAC,IAAwB;IAC3D,iCAAiC;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB;QACxC,CAAC,CAAC,IAAI,IAAA,kBAAU,EAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE;QAC3C,CAAC,CAAC,EAAE,CAAA;IAEN,oBAAoB;IACpB,MAAM,eAAe,GAAG;;;UAGhB,IAAA,mBAAY,EAAC,cAAc,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE;QACrD,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,IAAI;KACnB,CAAC;UACA,IAAA,mBAAY,EAAC,cAAc,EAAE,IAAI,CAAC,gBAAgB,EAAE;QACpD,SAAS,EAAE,MAAM;QACjB,SAAS,EAAE,IAAI;KAChB,CAAC;;;GAGP,CAAA;IAED,yBAAyB;IACzB,MAAM,aAAa,GAAG,IAAA,mBAAY,EAAC;kDACa,aAAM,CAAC,UAAU,+CAA+C,aAAM,CAAC,WAAW;wCAC5F,aAAM,CAAC,UAAU,iEAAiE,aAAM,CAAC,aAAa;QACtI,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC;;GAEnC,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG;MACZ,IAAA,cAAO,EAAC,iBAAiB,CAAC;;MAE1B,IAAA,gBAAS,EAAC,MAAM,IAAA,kBAAU,EAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;;MAEjD,IAAA,gBAAS,EACT,eAAe,IAAA,kBAAU,EAAC,IAAI,CAAC,WAAW,CAAC,oCAAoC,UAAU,EAAE,EAC3F,MAAM,CACP;;MAEC,eAAe;;MAEf,aAAa;;MAEb,IAAA,gBAAS,EACT,4GAA4G,EAC5G,MAAM,CACP;;MAEC,IAAA,oBAAa,EAAC,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;GAC1D,CAAA;IAED,OAAO,IAAA,iBAAU,EAAC;QAChB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,KAAK,EAAE,sBAAsB,IAAI,CAAC,WAAW,EAAE;QAC/C,OAAO;KACR,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CACtC,SAAiB,EACjB,WAAmB;IAEnB,OAAO,sBAAsB,WAAW,MAAM,SAAS,EAAE,CAAA;AAC3D,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/templates/order-confirmation
3
- *
4
- * Order confirmation email template.
5
- */
6
- import type { OrderConfirmationData } from '../types';
7
- /**
8
- * Render the order confirmation email template.
9
- *
10
- * @example
11
- * ```typescript
12
- * import { renderOrderConfirmation } from '@rovela/sdk/emails'
13
- *
14
- * const html = renderOrderConfirmation({
15
- * config: emailConfig,
16
- * customerName: 'John',
17
- * customerEmail: 'john@example.com',
18
- * orderNumber: 'ORD-12345',
19
- * orderDate: 'November 28, 2025',
20
- * paymentStatus: 'Paid',
21
- * items: [...],
22
- * subtotal: '$99.00',
23
- * shippingCost: '$5.00',
24
- * tax: '$8.00',
25
- * total: '$112.00',
26
- * shippingAddress: {...},
27
- * orderTrackingUrl: 'https://store.com/orders/12345',
28
- * })
29
- * ```
30
- */
31
- export declare function renderOrderConfirmation(data: OrderConfirmationData): string;
32
- /**
33
- * Get the subject line for order confirmation emails.
34
- */
35
- export declare function getOrderConfirmationSubject(storeName: string, orderNumber: string): string;
36
- //# sourceMappingURL=order-confirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-confirmation.d.ts","sourceRoot":"","sources":["../../../src/emails/templates/order-confirmation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAkB,MAAM,UAAU,CAAA;AAkGrE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAsD3E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,MAAM,CAER"}