@gravito/signal 3.1.0 → 4.0.0
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/dist/OrbitSignal.d.ts +6 -0
- package/dist/errors/codes.d.ts +19 -0
- package/dist/errors.d.ts +18 -11
- package/dist/index.cjs +55148 -81886
- package/dist/index.d.ts +514 -1
- package/dist/index.js +61553 -0
- package/dist/index.mjs +55158 -81907
- package/dist/transports/BaseTransport.d.ts +15 -23
- package/package.json +16 -4
- package/CHANGELOG.md +0 -74
- package/build.ts +0 -133
- package/dist/index.cjs.map +0 -712
- package/dist/index.mjs.map +0 -710
- package/doc/ADVANCED_RENDERING.md +0 -71
- package/doc/DISTRIBUTED_MESSAGING.md +0 -79
- package/doc/OPTIMIZATION_PLAN.md +0 -496
- package/package.json.bak +0 -75
- package/scripts/check-coverage.ts +0 -64
- package/src/Mailable.ts +0 -674
- package/src/OrbitSignal.ts +0 -451
- package/src/Queueable.ts +0 -9
- package/src/TypedMailable.ts +0 -96
- package/src/dev/DevMailbox.ts +0 -146
- package/src/dev/DevServer.ts +0 -192
- package/src/dev/storage/FileMailboxStorage.ts +0 -66
- package/src/dev/storage/MailboxStorage.ts +0 -15
- package/src/dev/storage/MemoryMailboxStorage.ts +0 -36
- package/src/dev/ui/mailbox.ts +0 -77
- package/src/dev/ui/preview.ts +0 -103
- package/src/dev/ui/shared.ts +0 -60
- package/src/errors.ts +0 -69
- package/src/events.ts +0 -72
- package/src/index.ts +0 -41
- package/src/renderers/HtmlRenderer.ts +0 -41
- package/src/renderers/MjmlRenderer.ts +0 -73
- package/src/renderers/ReactMjmlRenderer.ts +0 -94
- package/src/renderers/ReactRenderer.ts +0 -66
- package/src/renderers/Renderer.ts +0 -67
- package/src/renderers/TemplateRenderer.ts +0 -84
- package/src/renderers/VueMjmlRenderer.ts +0 -99
- package/src/renderers/VueRenderer.ts +0 -71
- package/src/renderers/mjml-templates.ts +0 -50
- package/src/transports/BaseTransport.ts +0 -148
- package/src/transports/LogTransport.ts +0 -55
- package/src/transports/MemoryTransport.ts +0 -55
- package/src/transports/SesTransport.ts +0 -129
- package/src/transports/SmtpTransport.ts +0 -184
- package/src/transports/Transport.ts +0 -45
- package/src/types.ts +0 -309
- package/src/utils/html.ts +0 -43
- package/src/webhooks/SendGridWebhookDriver.ts +0 -80
- package/src/webhooks/SesWebhookDriver.ts +0 -44
- package/tests/DevMailbox.test.ts +0 -54
- package/tests/FileMailboxStorage.test.ts +0 -56
- package/tests/MjmlLayout.test.ts +0 -28
- package/tests/MjmlRenderer.test.ts +0 -53
- package/tests/OrbitSignalWebhook.test.ts +0 -56
- package/tests/ReactMjmlRenderer.test.ts +0 -33
- package/tests/SendGridWebhookDriver.test.ts +0 -69
- package/tests/SesWebhookDriver.test.ts +0 -46
- package/tests/VueMjmlRenderer.test.ts +0 -35
- package/tests/dev-server.test.ts +0 -66
- package/tests/log-transport.test.ts +0 -21
- package/tests/mailable-extra.test.ts +0 -68
- package/tests/mailable.test.ts +0 -77
- package/tests/orbit-signal.test.ts +0 -43
- package/tests/renderers.test.ts +0 -58
- package/tests/template-renderer.test.ts +0 -24
- package/tests/transports.test.ts +0 -52
- package/tests/ui.test.ts +0 -37
- package/tsconfig.build.json +0 -24
- package/tsconfig.json +0 -9
package/tests/ui.test.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
import { getMailboxHtml } from '../src/dev/ui/mailbox'
|
|
3
|
-
import { getPreviewHtml } from '../src/dev/ui/preview'
|
|
4
|
-
import { layout } from '../src/dev/ui/shared'
|
|
5
|
-
|
|
6
|
-
describe('Dev UI', () => {
|
|
7
|
-
it('renders mailbox and preview HTML', () => {
|
|
8
|
-
const entry = {
|
|
9
|
-
id: '1',
|
|
10
|
-
envelope: {
|
|
11
|
-
from: { address: 'from@example.com' },
|
|
12
|
-
to: [{ address: 'to@example.com' }],
|
|
13
|
-
subject: 'Hello',
|
|
14
|
-
priority: 'high',
|
|
15
|
-
},
|
|
16
|
-
html: '<p>Hi</p>',
|
|
17
|
-
text: 'Hi',
|
|
18
|
-
sentAt: new Date('2024-01-01T00:00:00Z'),
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const mailbox = getMailboxHtml([entry], '/__mail')
|
|
22
|
-
expect(mailbox).toContain('Gravito Mailbox')
|
|
23
|
-
expect(mailbox).toContain('badge-high')
|
|
24
|
-
|
|
25
|
-
const preview = getPreviewHtml(entry, '/__mail')
|
|
26
|
-
expect(preview).toContain('Email Preview')
|
|
27
|
-
expect(preview).toContain('Hello')
|
|
28
|
-
|
|
29
|
-
const wrapped = layout('Title', '<div>Content</div>')
|
|
30
|
-
expect(wrapped).toContain('<title>Title')
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
it('renders empty mailbox state', () => {
|
|
34
|
-
const html = getMailboxHtml([], '/__mail')
|
|
35
|
-
expect(html).toContain('No emails found')
|
|
36
|
-
})
|
|
37
|
-
})
|
package/tsconfig.build.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"noEmit": false,
|
|
7
|
-
"emitDeclarationOnly": true,
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"declarationMap": false,
|
|
10
|
-
"outDir": "./dist",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"noCheck": true,
|
|
13
|
-
"types": ["bun-types"],
|
|
14
|
-
"paths": {
|
|
15
|
-
"@gravito/signal": ["./src/index.ts"],
|
|
16
|
-
"@gravito/core": ["../core/src/index.ts"],
|
|
17
|
-
"@gravito/stream": ["../stream/src/index.ts"],
|
|
18
|
-
"@gravito/prism": ["../prism/src/index.ts"],
|
|
19
|
-
"@gravito/*": ["../*/src/index.ts"]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"include": ["src/**/*.ts"],
|
|
23
|
-
"exclude": ["node_modules", "dist", "tests", "**/*.test.ts"]
|
|
24
|
-
}
|