emdash 0.4.0 → 0.5.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/astro/index.d.mts +3 -3
- package/dist/astro/index.mjs +10 -2
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +3 -3
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +4 -5
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware.mjs +2 -2
- package/dist/astro/types.d.mts +4 -3
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/{index-CRg3PWfZ.d.mts → index-CCWzlriB.d.mts} +4 -4
- package/dist/{index-CRg3PWfZ.d.mts.map → index-CCWzlriB.d.mts.map} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +3 -3
- package/dist/page/index.d.mts +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +3 -3
- package/dist/runtime.d.mts +3 -3
- package/dist/{search-B5p9D36n.mjs → search-Cn1SYvYF.mjs} +15 -4
- package/dist/search-Cn1SYvYF.mjs.map +1 -0
- package/dist/seed/index.d.mts +1 -1
- package/dist/{types-BYWYxLcp.d.mts → types-C3ronwXb.d.mts} +11 -102
- package/dist/types-C3ronwXb.d.mts.map +1 -0
- package/dist/{types-gLYVCXCQ.d.mts → types-DeG21anB.d.mts} +1 -1
- package/dist/{types-gLYVCXCQ.d.mts.map → types-DeG21anB.d.mts.map} +1 -1
- package/dist/{validate-CcNRWH6I.d.mts → validate-Db1yNL3i.d.mts} +2 -2
- package/dist/{validate-CcNRWH6I.d.mts.map → validate-Db1yNL3i.d.mts.map} +1 -1
- package/dist/version-CMMjTuqu.mjs +7 -0
- package/dist/{version-DlTDRdpv.mjs.map → version-CMMjTuqu.mjs.map} +1 -1
- package/package.json +5 -5
- package/src/api/schemas/auth.ts +7 -0
- package/src/astro/integration/routes.ts +11 -1
- package/src/astro/middleware/auth.ts +6 -5
- package/src/astro/routes/admin.astro +3 -2
- package/src/astro/routes/api/auth/invite/register-options.ts +78 -0
- package/src/astro/routes/api/well-known/oauth-authorization-server.ts +5 -3
- package/src/components/Table.astro +73 -41
- package/src/components/index.ts +2 -12
- package/src/components/marks.ts +20 -0
- package/src/plugins/context.ts +1 -0
- package/src/plugins/email-console.ts +9 -2
- package/src/plugins/types.ts +8 -0
- package/dist/search-B5p9D36n.mjs.map +0 -1
- package/dist/types-BYWYxLcp.d.mts.map +0 -1
- package/dist/version-DlTDRdpv.mjs +0 -7
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../types-B6BzlZxx.mjs";
|
|
2
|
-
import { Pi as MediaItem, dn as EmDashConfig, gn as StorageDescriptor, hn as S3StorageConfig, mn as LocalStorageConfig, pn as getStoredConfig } from "../index-
|
|
2
|
+
import { Pi as MediaItem, dn as EmDashConfig, gn as StorageDescriptor, hn as S3StorageConfig, mn as LocalStorageConfig, pn as getStoredConfig } from "../index-CCWzlriB.mjs";
|
|
3
3
|
import "../runner-DYv3rX8P.mjs";
|
|
4
4
|
import { r as ContentItem } from "../types-BmkQR1En.mjs";
|
|
5
|
-
import { X as ResolvedPlugin } from "../types-
|
|
6
|
-
import "../validate-
|
|
5
|
+
import { X as ResolvedPlugin } from "../types-C3ronwXb.mjs";
|
|
6
|
+
import "../validate-Db1yNL3i.mjs";
|
|
7
7
|
import { EmDashHandlers, EmDashManifest, ManifestCollection } from "./types.mjs";
|
|
8
8
|
import { AstroIntegration } from "astro";
|
|
9
9
|
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as defaultSeed } from "../default-PUx9RK6u.mjs";
|
|
2
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../version-CMMjTuqu.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -444,7 +444,7 @@ function injectCoreRoutes(injectRoute) {
|
|
|
444
444
|
entrypoint: resolveRoute("api/well-known/oauth-protected-resource.ts")
|
|
445
445
|
});
|
|
446
446
|
injectRoute({
|
|
447
|
-
pattern: "
|
|
447
|
+
pattern: "/.well-known/oauth-authorization-server/_emdash",
|
|
448
448
|
entrypoint: resolveRoute("api/well-known/oauth-authorization-server.ts")
|
|
449
449
|
});
|
|
450
450
|
injectRoute({
|
|
@@ -595,6 +595,10 @@ function injectCoreRoutes(injectRoute) {
|
|
|
595
595
|
pattern: "/_emdash/api/setup/dev-reset",
|
|
596
596
|
entrypoint: resolveRoute("api/setup/dev-reset.ts")
|
|
597
597
|
});
|
|
598
|
+
injectRoute({
|
|
599
|
+
pattern: "/_emdash/api/dev/emails",
|
|
600
|
+
entrypoint: resolveRoute("api/dev/emails.ts")
|
|
601
|
+
});
|
|
598
602
|
injectRoute({
|
|
599
603
|
pattern: "/_emdash/api/auth/me",
|
|
600
604
|
entrypoint: resolveRoute("api/auth/me.ts")
|
|
@@ -659,6 +663,10 @@ function injectBuiltinAuthRoutes(injectRoute) {
|
|
|
659
663
|
pattern: "/_emdash/api/auth/invite/complete",
|
|
660
664
|
entrypoint: resolveRoute("api/auth/invite/complete.ts")
|
|
661
665
|
});
|
|
666
|
+
injectRoute({
|
|
667
|
+
pattern: "/_emdash/api/auth/invite/register-options",
|
|
668
|
+
entrypoint: resolveRoute("api/auth/invite/register-options.ts")
|
|
669
|
+
});
|
|
662
670
|
injectRoute({
|
|
663
671
|
pattern: "/_emdash/api/auth/magic-link/send",
|
|
664
672
|
entrypoint: resolveRoute("api/auth/magic-link/send.ts")
|