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.
- package/buddy/art/social.png +0 -0
- package/buddy/package.json +1 -1
- package/buddy/src/commands/make.ts +27 -12
- package/buddy/src/commands/test.ts +40 -2
- package/core/actions/package.json +2 -2
- package/core/actions/src/helpers/utils.ts +21 -1
- package/core/actions/src/make.ts +37 -6
- package/core/actions/src/test-coverage.ts +1 -1
- package/core/actions/src/test-feature.ts +5 -0
- package/core/actions/src/test-unit.ts +5 -0
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/alias/src/index.ts +8 -0
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/build/package.json +3 -3
- package/core/cache/package.json +3 -3
- package/core/chat/README.md +33 -40
- package/core/chat/package.json +4 -5
- package/core/cli/package.json +1 -1
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/dashboard/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/docs/node_modules/.bin/vitepress +2 -2
- package/core/docs/package.json +2 -2
- package/core/domains/package.json +1 -1
- package/core/drivers/package.json +1 -1
- package/core/email/README.md +101 -35
- package/core/email/package.json +10 -2
- package/core/email/src/utils/config.ts +1 -1
- package/core/error-handling/package.json +2 -2
- package/core/events/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/lint/node_modules/.bin/eslint +2 -2
- package/core/lint/package.json +3 -3
- package/core/logging/package.json +1 -1
- package/core/modules/package.json +1 -1
- package/core/notifications/README.md +7 -2
- package/core/notifications/package.json +5 -1
- package/core/notifications/src/drivers/chat.ts +1 -0
- package/core/notifications/src/drivers/email.ts +1 -0
- package/core/notifications/src/drivers/push.ts +1 -0
- package/core/notifications/src/drivers/sms.ts +1 -0
- package/core/notifications/src/index.ts +37 -9
- package/core/notifications/src/utils/config.ts +2 -2
- package/core/notifications/tests/chat/Slack.test.ts +5 -4
- package/core/notifications/tests/email/Mailgun.test.ts +4 -3
- package/core/notifications/tests/email/Sendgrid.test.ts +3 -3
- package/core/notifications/tests/sms/Twilio.test.ts +3 -3
- package/core/objects/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +25 -0
- package/core/payments/package.json +1 -1
- package/core/push/README.md +24 -42
- package/core/push/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/sms/README.md +82 -35
- package/core/sms/package.json +10 -4
- package/core/storage/package.json +1 -1
- package/core/storage/src/index.ts +13 -0
- package/core/strings/README.md +10 -2
- package/core/strings/package.json +4 -2
- package/core/strings/src/case.ts +14 -0
- package/core/strings/src/index.ts +4 -97
- package/core/strings/src/pluralize.ts +1 -0
- package/core/strings/src/utils.ts +80 -0
- package/core/strings/src/validation.ts +182 -0
- package/core/tables/README.md +109 -0
- package/core/tables/examples/vue/App.vue +12 -0
- package/core/tables/examples/vue/favicon.png +0 -0
- package/core/tables/examples/vue/index.html +20 -0
- package/core/tables/examples/web/favicon.png +0 -0
- package/core/tables/examples/web/index.html +13 -0
- package/core/tables/node_modules/.bin/mkdist +17 -0
- package/core/tables/node_modules/.bin/tsc +17 -0
- package/core/tables/node_modules/.bin/tsserver +17 -0
- package/core/tables/node_modules/.bin/unbuild +17 -0
- package/core/tables/package.json +97 -0
- package/core/tables/src/cli/index.ts +1 -0
- package/core/tables/src/components/Demo.vue +89 -0
- package/core/tables/src/components/README.md +111 -0
- package/core/tables/src/components/Table.vue +342 -0
- package/core/tables/src/components/TableBody.vue +33 -0
- package/core/tables/src/components/TableCellActionItems.vue +9 -0
- package/core/tables/src/components/TableFilters.vue +703 -0
- package/core/tables/src/components/TableHead.vue +87 -0
- package/core/tables/src/components/TablePagination.vue +146 -0
- package/core/tables/src/components/TableRow.vue +78 -0
- package/core/tables/src/components/TableSearch.vue +38 -0
- package/core/tables/src/components/Tooltip.vue +10 -0
- package/core/tables/src/config/tables.ts +1 -0
- package/core/tables/src/docs/index.md +0 -0
- package/core/tables/src/functions/README.md +8 -0
- package/core/tables/src/functions/dark.ts +3 -0
- package/core/tables/src/functions/index.ts +2 -0
- package/core/tables/src/functions/table.ts +180 -0
- package/core/tables/tests/example.test.ts +7 -0
- package/core/testing/node_modules/.bin/vitest +2 -2
- package/core/testing/package.json +9 -6
- package/core/types/node_modules/.bin/vitepress +2 -2
- package/core/types/package.json +3 -3
- package/core/types/src/cli.ts +10 -2
- package/core/types/src/hashing.ts +15 -0
- package/core/types/src/index.ts +2 -0
- package/core/types/src/notifications.ts +1 -0
- package/core/types/src/reactivity.ts +3 -0
- package/core/types/src/tables.ts +48 -0
- package/core/ui/node_modules/.bin/vue-tsc +2 -2
- package/core/ui/package.json +2 -2
- package/core/utils/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/package.json +3 -2
- package/tsconfig.json +8 -0
- package/vitest.config.ts +2 -0
- package/core/notifications/src/drivers/chat/discord.ts +0 -15
- package/core/notifications/src/drivers/chat/index.ts +0 -2
- package/core/notifications/src/drivers/chat/slack.ts +0 -22
- package/core/notifications/src/drivers/email/actions/send.ts +0 -36
- package/core/notifications/src/drivers/email/emailjs.ts +0 -21
- package/core/notifications/src/drivers/email/index.ts +0 -9
- package/core/notifications/src/drivers/email/mailgun.ts +0 -19
- package/core/notifications/src/drivers/email/mailjet.ts +0 -18
- package/core/notifications/src/drivers/email/mandrill.ts +0 -17
- package/core/notifications/src/drivers/email/netcore.ts +0 -17
- package/core/notifications/src/drivers/email/nodemailer.ts +0 -21
- package/core/notifications/src/drivers/email/postmark.ts +0 -17
- package/core/notifications/src/drivers/email/sendgrid.ts +0 -18
- package/core/notifications/src/drivers/email/ses.ts +0 -19
- package/core/notifications/src/drivers/push/expo.ts +0 -19
- package/core/notifications/src/drivers/push/fcm.ts +0 -19
- package/core/notifications/src/drivers/sms/gupshup.ts +0 -21
- package/core/notifications/src/drivers/sms/index.ts +0 -8
- package/core/notifications/src/drivers/sms/nexmo.ts +0 -22
- package/core/notifications/src/drivers/sms/plivo.ts +0 -22
- package/core/notifications/src/drivers/sms/sms77.ts +0 -21
- package/core/notifications/src/drivers/sms/sns.ts +0 -22
- package/core/notifications/src/drivers/sms/telnyx.ts +0 -22
- package/core/notifications/src/drivers/sms/termii.ts +0 -21
- 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 }
|