stacks 0.47.2 → 0.48.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 (148) hide show
  1. package/buddy/art/social.png +0 -0
  2. package/buddy/package.json +1 -1
  3. package/buddy/src/commands/make.ts +27 -12
  4. package/buddy/src/commands/test.ts +40 -2
  5. package/core/actions/package.json +2 -2
  6. package/core/actions/src/helpers/utils.ts +21 -1
  7. package/core/actions/src/make.ts +37 -6
  8. package/core/actions/src/test-coverage.ts +1 -1
  9. package/core/actions/src/test-feature.ts +5 -0
  10. package/core/actions/src/test-unit.ts +5 -0
  11. package/core/ai/package.json +1 -1
  12. package/core/alias/package.json +1 -1
  13. package/core/alias/src/index.ts +8 -0
  14. package/core/arrays/package.json +1 -1
  15. package/core/auth/package.json +1 -1
  16. package/core/build/package.json +3 -3
  17. package/core/cache/package.json +3 -3
  18. package/core/chat/README.md +33 -40
  19. package/core/chat/package.json +4 -5
  20. package/core/cli/package.json +1 -1
  21. package/core/cloud/package.json +1 -1
  22. package/core/collections/package.json +1 -1
  23. package/core/config/package.json +1 -1
  24. package/core/dashboard/package.json +1 -1
  25. package/core/database/package.json +1 -1
  26. package/core/datetime/package.json +1 -1
  27. package/core/desktop/package.json +1 -1
  28. package/core/docs/node_modules/.bin/vitepress +2 -2
  29. package/core/docs/package.json +2 -2
  30. package/core/domains/package.json +1 -1
  31. package/core/drivers/package.json +1 -1
  32. package/core/email/README.md +101 -35
  33. package/core/email/package.json +10 -2
  34. package/core/email/src/utils/config.ts +1 -1
  35. package/core/error-handling/package.json +2 -2
  36. package/core/events/package.json +1 -1
  37. package/core/git/package.json +1 -1
  38. package/core/health/package.json +1 -1
  39. package/core/lint/node_modules/.bin/eslint +2 -2
  40. package/core/lint/package.json +3 -3
  41. package/core/logging/package.json +1 -1
  42. package/core/modules/package.json +1 -1
  43. package/core/notifications/README.md +7 -2
  44. package/core/notifications/package.json +5 -1
  45. package/core/notifications/src/drivers/chat.ts +1 -0
  46. package/core/notifications/src/drivers/email.ts +1 -0
  47. package/core/notifications/src/drivers/push.ts +1 -0
  48. package/core/notifications/src/drivers/sms.ts +1 -0
  49. package/core/notifications/src/index.ts +37 -9
  50. package/core/notifications/src/utils/config.ts +2 -2
  51. package/core/notifications/tests/chat/Slack.test.ts +5 -4
  52. package/core/notifications/tests/email/Mailgun.test.ts +4 -3
  53. package/core/notifications/tests/email/Sendgrid.test.ts +3 -3
  54. package/core/notifications/tests/sms/Twilio.test.ts +3 -3
  55. package/core/objects/package.json +1 -1
  56. package/core/path/package.json +1 -1
  57. package/core/path/src/index.ts +25 -0
  58. package/core/payments/package.json +1 -1
  59. package/core/push/README.md +24 -42
  60. package/core/push/package.json +1 -1
  61. package/core/realtime/package.json +1 -1
  62. package/core/router/package.json +1 -1
  63. package/core/search-engine/package.json +1 -1
  64. package/core/security/package.json +1 -1
  65. package/core/server/package.json +1 -1
  66. package/core/sms/README.md +82 -35
  67. package/core/sms/package.json +10 -4
  68. package/core/storage/package.json +1 -1
  69. package/core/storage/src/index.ts +13 -0
  70. package/core/strings/README.md +10 -2
  71. package/core/strings/package.json +4 -2
  72. package/core/strings/src/case.ts +14 -0
  73. package/core/strings/src/index.ts +4 -97
  74. package/core/strings/src/pluralize.ts +1 -0
  75. package/core/strings/src/utils.ts +80 -0
  76. package/core/strings/src/validation.ts +182 -0
  77. package/core/tables/README.md +109 -0
  78. package/core/tables/examples/vue/App.vue +12 -0
  79. package/core/tables/examples/vue/favicon.png +0 -0
  80. package/core/tables/examples/vue/index.html +20 -0
  81. package/core/tables/examples/web/favicon.png +0 -0
  82. package/core/tables/examples/web/index.html +13 -0
  83. package/core/tables/node_modules/.bin/mkdist +17 -0
  84. package/core/tables/node_modules/.bin/tsc +17 -0
  85. package/core/tables/node_modules/.bin/tsserver +17 -0
  86. package/core/tables/node_modules/.bin/unbuild +17 -0
  87. package/core/tables/package.json +97 -0
  88. package/core/tables/src/cli/index.ts +1 -0
  89. package/core/tables/src/components/Demo.vue +89 -0
  90. package/core/tables/src/components/README.md +111 -0
  91. package/core/tables/src/components/Table.vue +342 -0
  92. package/core/tables/src/components/TableBody.vue +33 -0
  93. package/core/tables/src/components/TableCellActionItems.vue +9 -0
  94. package/core/tables/src/components/TableFilters.vue +703 -0
  95. package/core/tables/src/components/TableHead.vue +87 -0
  96. package/core/tables/src/components/TablePagination.vue +146 -0
  97. package/core/tables/src/components/TableRow.vue +78 -0
  98. package/core/tables/src/components/TableSearch.vue +38 -0
  99. package/core/tables/src/components/Tooltip.vue +10 -0
  100. package/core/tables/src/config/tables.ts +1 -0
  101. package/core/tables/src/docs/index.md +0 -0
  102. package/core/tables/src/functions/README.md +8 -0
  103. package/core/tables/src/functions/dark.ts +3 -0
  104. package/core/tables/src/functions/index.ts +2 -0
  105. package/core/tables/src/functions/table.ts +180 -0
  106. package/core/tables/tests/example.test.ts +7 -0
  107. package/core/testing/node_modules/.bin/vitest +2 -2
  108. package/core/testing/package.json +9 -6
  109. package/core/types/node_modules/.bin/vitepress +2 -2
  110. package/core/types/package.json +3 -3
  111. package/core/types/src/cli.ts +10 -2
  112. package/core/types/src/hashing.ts +15 -0
  113. package/core/types/src/index.ts +2 -0
  114. package/core/types/src/notifications.ts +1 -0
  115. package/core/types/src/reactivity.ts +3 -0
  116. package/core/types/src/tables.ts +48 -0
  117. package/core/ui/node_modules/.bin/vue-tsc +2 -2
  118. package/core/ui/package.json +2 -2
  119. package/core/utils/package.json +1 -1
  120. package/core/x-ray/package.json +1 -1
  121. package/package.json +3 -2
  122. package/tsconfig.json +8 -0
  123. package/vitest.config.ts +2 -0
  124. package/core/notifications/src/drivers/chat/discord.ts +0 -15
  125. package/core/notifications/src/drivers/chat/index.ts +0 -2
  126. package/core/notifications/src/drivers/chat/slack.ts +0 -22
  127. package/core/notifications/src/drivers/email/actions/send.ts +0 -36
  128. package/core/notifications/src/drivers/email/emailjs.ts +0 -21
  129. package/core/notifications/src/drivers/email/index.ts +0 -9
  130. package/core/notifications/src/drivers/email/mailgun.ts +0 -19
  131. package/core/notifications/src/drivers/email/mailjet.ts +0 -18
  132. package/core/notifications/src/drivers/email/mandrill.ts +0 -17
  133. package/core/notifications/src/drivers/email/netcore.ts +0 -17
  134. package/core/notifications/src/drivers/email/nodemailer.ts +0 -21
  135. package/core/notifications/src/drivers/email/postmark.ts +0 -17
  136. package/core/notifications/src/drivers/email/sendgrid.ts +0 -18
  137. package/core/notifications/src/drivers/email/ses.ts +0 -19
  138. package/core/notifications/src/drivers/push/expo.ts +0 -19
  139. package/core/notifications/src/drivers/push/fcm.ts +0 -19
  140. package/core/notifications/src/drivers/sms/gupshup.ts +0 -21
  141. package/core/notifications/src/drivers/sms/index.ts +0 -8
  142. package/core/notifications/src/drivers/sms/nexmo.ts +0 -22
  143. package/core/notifications/src/drivers/sms/plivo.ts +0 -22
  144. package/core/notifications/src/drivers/sms/sms77.ts +0 -21
  145. package/core/notifications/src/drivers/sms/sns.ts +0 -22
  146. package/core/notifications/src/drivers/sms/telnyx.ts +0 -22
  147. package/core/notifications/src/drivers/sms/termii.ts +0 -21
  148. package/core/notifications/src/drivers/sms/twilio.ts +0 -22
@@ -1,21 +0,0 @@
1
- import { Sms77SmsProvider } from '@novu/sms77'
2
- import { italic } from '@stacksjs/cli'
3
- import type { SmsOptions } from '@stacksjs/types'
4
- import { ResultAsync } from '@stacksjs/error-handling'
5
- import { notification } from '@stacksjs/config'
6
-
7
- const env = notification.sms.sms77
8
-
9
- const provider = new Sms77SmsProvider({
10
- apiKey: env.key,
11
- from: env.from,
12
- })
13
-
14
- function send(options: SmsOptions) {
15
- return ResultAsync.fromPromise(
16
- provider.sendMessage(options),
17
- () => new Error(`Failed to send message using provider: ${italic('Sms77')}`),
18
- )
19
- }
20
-
21
- export { send as Send, send }
@@ -1,22 +0,0 @@
1
- import { SNSSmsProvider } from '@novu/sns'
2
- import { italic } from '@stacksjs/cli'
3
- import type { SmsOptions } from '@stacksjs/types'
4
- import { ResultAsync } from '@stacksjs/error-handling'
5
- import { notification } from '@stacksjs/config'
6
-
7
- const env = notification.sms.sns
8
-
9
- const provider = new SNSSmsProvider({
10
- region: env.region,
11
- accessKeyId: env.key,
12
- secretAccessKey: env.secret,
13
- })
14
-
15
- function send(options: SmsOptions) {
16
- return ResultAsync.fromPromise(
17
- provider.sendMessage(options),
18
- () => new Error(`Failed to send message using provider: ${italic('SNS')}`),
19
- )
20
- }
21
-
22
- export { send as Send, send }
@@ -1,22 +0,0 @@
1
- import { TelnyxSmsProvider } from '@novu/telnyx'
2
- import { italic } from '@stacksjs/cli'
3
- import type { SmsOptions } from '@stacksjs/types'
4
- import { ResultAsync } from '@stacksjs/error-handling'
5
- import { notification } from '@stacksjs/config'
6
-
7
- const env = notification.sms.telnyx
8
-
9
- const provider = new TelnyxSmsProvider({
10
- apiKey: env.key,
11
- messageProfileId: env.messageProfileId,
12
- from: env.from,
13
- })
14
-
15
- function send(options: SmsOptions) {
16
- return ResultAsync.fromPromise(
17
- provider.sendMessage(options),
18
- () => new Error(`Failed to send message using provider: ${italic('Telnyx')}`),
19
- )
20
- }
21
-
22
- export { send as Send, send }
@@ -1,21 +0,0 @@
1
- import { TermiiSmsProvider } from '@novu/termii'
2
- import { italic } from '@stacksjs/cli'
3
- import type { SmsOptions } from '@stacksjs/types'
4
- import { ResultAsync } from '@stacksjs/error-handling'
5
- import { notification } from '@stacksjs/config'
6
-
7
- const env = notification.sms.termii
8
-
9
- const provider = new TermiiSmsProvider({
10
- apiKey: env.key,
11
- from: env.from,
12
- })
13
-
14
- function send(options: SmsOptions) {
15
- return ResultAsync.fromPromise(
16
- provider.sendMessage(options),
17
- () => new Error(`Failed to send message using provider: ${italic('Termii')}`),
18
- )
19
- }
20
-
21
- export { send as Send, send }
@@ -1,22 +0,0 @@
1
- import { TwilioSmsProvider } from '@novu/twilio'
2
- import { italic } from '@stacksjs/cli'
3
- import type { SmsOptions } from '@stacksjs/types'
4
- import { ResultAsync } from '@stacksjs/error-handling'
5
- import { notification } from '@stacksjs/config'
6
-
7
- const env = notification.sms.twilio
8
-
9
- const provider = new TwilioSmsProvider({
10
- accountSid: env.sid,
11
- authToken: env.authToken,
12
- from: env.from,
13
- })
14
-
15
- function send(options: SmsOptions) {
16
- return ResultAsync.fromPromise(
17
- provider.sendMessage(options),
18
- () => new Error(`Failed to send message using provider: ${italic('Twilio')}`),
19
- )
20
- }
21
-
22
- export { send as Send, send }