@ampless/admin 1.0.0-beta.90 → 1.0.0-beta.92

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 (39) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/{chunk-F4BDO5XD.js → chunk-2Y5SRSCZ.js} +69 -3
  3. package/dist/{chunk-OS6QI7VW.js → chunk-3AQGYUVP.js} +1 -1
  4. package/dist/{chunk-OLI5JPHI.js → chunk-6275N7HG.js} +1 -1
  5. package/dist/{chunk-OVUT27GX.js → chunk-FVGWVH6Q.js} +19 -7
  6. package/dist/{chunk-LUONBBOA.js → chunk-FVHQJCH4.js} +2 -2
  7. package/dist/{chunk-VDNJ5KXR.js → chunk-HKMHNEFV.js} +1 -1
  8. package/dist/{chunk-TSHYVPGI.js → chunk-HRCUFIGW.js} +2 -2
  9. package/dist/{chunk-VX5FWOOG.js → chunk-IBFNFTJ6.js} +1 -1
  10. package/dist/{chunk-DIIJWZPF.js → chunk-M5QQJHM7.js} +60 -4
  11. package/dist/{chunk-K67HINPW.js → chunk-OAG4NI7Q.js} +1 -1
  12. package/dist/{chunk-STD3UYXK.js → chunk-OPHSYQQV.js} +2 -2
  13. package/dist/{chunk-T3R5QD5K.js → chunk-QO73C7VC.js} +1 -1
  14. package/dist/{chunk-DLIP4JOY.js → chunk-TEMSFG34.js} +2 -2
  15. package/dist/{chunk-25CIZ4R4.js → chunk-TMOFUAU7.js} +1 -1
  16. package/dist/{chunk-X4V3LAP5.js → chunk-UUZAKCZZ.js} +2 -2
  17. package/dist/chunk-VJ5SDYVW.js +172 -0
  18. package/dist/chunk-ZDIDJCSU.js +40 -0
  19. package/dist/components/account-view.d.ts +8 -0
  20. package/dist/components/account-view.js +10 -0
  21. package/dist/components/admin-dashboard.js +3 -3
  22. package/dist/components/edit-post-view.js +5 -5
  23. package/dist/components/index.d.ts +1 -1
  24. package/dist/components/index.js +7 -7
  25. package/dist/components/login-view.d.ts +3 -1
  26. package/dist/components/login-view.js +4 -3
  27. package/dist/components/mcp-tokens-view.js +3 -3
  28. package/dist/components/media-view.js +5 -5
  29. package/dist/components/new-post-view.js +5 -5
  30. package/dist/components/plugin-settings-form.js +3 -3
  31. package/dist/components/posts-list-view.js +3 -3
  32. package/dist/components/users-list-view.js +3 -3
  33. package/dist/{i18n-BA6o0jvS.d.ts → i18n-CecqYBeP.d.ts} +88 -3
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +1 -1
  36. package/dist/metafile-esm.json +1 -1
  37. package/dist/pages/index.d.ts +21 -4
  38. package/dist/pages/index.js +45 -23
  39. package/package.json +2 -2
@@ -1,47 +1,53 @@
1
+ import {
2
+ McpTokensView
3
+ } from "../chunk-HKMHNEFV.js";
1
4
  import {
2
5
  MediaPage
3
- } from "../chunk-LUONBBOA.js";
6
+ } from "../chunk-FVHQJCH4.js";
4
7
  import {
5
8
  NewPostPage
6
- } from "../chunk-STD3UYXK.js";
9
+ } from "../chunk-OPHSYQQV.js";
7
10
  import {
8
11
  PluginSettingsForm
9
- } from "../chunk-T3R5QD5K.js";
12
+ } from "../chunk-QO73C7VC.js";
10
13
  import {
11
14
  PostsList
12
- } from "../chunk-25CIZ4R4.js";
15
+ } from "../chunk-TMOFUAU7.js";
13
16
  import {
14
17
  UsersListView
15
- } from "../chunk-K67HINPW.js";
18
+ } from "../chunk-OAG4NI7Q.js";
19
+ import {
20
+ AccountView
21
+ } from "../chunk-VJ5SDYVW.js";
16
22
  import {
17
23
  AdminDashboard
18
- } from "../chunk-OS6QI7VW.js";
24
+ } from "../chunk-3AQGYUVP.js";
19
25
  import {
20
26
  EditPostPage
21
- } from "../chunk-TSHYVPGI.js";
27
+ } from "../chunk-HRCUFIGW.js";
22
28
  import {
23
29
  AdminProviders,
24
30
  Sidebar,
25
31
  SiteSettingsForm,
26
32
  ThemeSettingsForm
27
- } from "../chunk-OVUT27GX.js";
28
- import "../chunk-DLIP4JOY.js";
33
+ } from "../chunk-FVGWVH6Q.js";
34
+ import "../chunk-C7G5AQ3L.js";
35
+ import "../chunk-TEMSFG34.js";
29
36
  import "../chunk-D72XF3Q3.js";
30
- import "../chunk-X4V3LAP5.js";
31
- import "../chunk-OLI5JPHI.js";
37
+ import "../chunk-UUZAKCZZ.js";
38
+ import "../chunk-6275N7HG.js";
32
39
  import "../chunk-PCPXAEBG.js";
33
40
  import "../chunk-2ITWLRYF.js";
34
41
  import {
35
42
  LoginPage
36
- } from "../chunk-F4BDO5XD.js";
43
+ } from "../chunk-2Y5SRSCZ.js";
37
44
  import {
38
- McpTokensView
39
- } from "../chunk-VDNJ5KXR.js";
40
- import "../chunk-C7G5AQ3L.js";
45
+ isWebAuthnEnabled
46
+ } from "../chunk-ZDIDJCSU.js";
41
47
  import {
42
48
  I18nProvider
43
- } from "../chunk-VX5FWOOG.js";
44
- import "../chunk-DIIJWZPF.js";
49
+ } from "../chunk-IBFNFTJ6.js";
50
+ import "../chunk-M5QQJHM7.js";
45
51
 
46
52
  // src/pages/admin-layout.tsx
47
53
  import { redirect } from "next/navigation";
@@ -270,10 +276,21 @@ function extractMcpEndpoint(outputs) {
270
276
  return custom?.mcp?.endpoint ?? null;
271
277
  }
272
278
 
279
+ // src/pages/account.tsx
280
+ import { jsx as jsx8 } from "react/jsx-runtime";
281
+ function createAccountPage(admin) {
282
+ const passkeysEnabled = isWebAuthnEnabled(admin.outputs);
283
+ async function AccountPage() {
284
+ const session = await admin.getServerSession();
285
+ return /* @__PURE__ */ jsx8(AccountView, { currentUserEmail: session.email, passkeysEnabled });
286
+ }
287
+ return AccountPage;
288
+ }
289
+
273
290
  // src/pages/plugins.tsx
274
291
  import { redirect as redirect4 } from "next/navigation";
275
292
  import { isValidPluginKey } from "ampless";
276
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
293
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
277
294
  function isPlugin(p) {
278
295
  return typeof p === "object" && p !== null && "apiVersion" in p;
279
296
  }
@@ -308,10 +325,10 @@ function createPluginsPage(admin) {
308
325
  }
309
326
  return /* @__PURE__ */ jsxs4("div", { className: "mx-auto max-w-7xl p-4 md:p-8", children: [
310
327
  /* @__PURE__ */ jsxs4("div", { className: "mb-6 md:mb-8", children: [
311
- /* @__PURE__ */ jsx8("h1", { className: "text-2xl font-bold md:text-3xl", children: t("plugins.title") }),
312
- /* @__PURE__ */ jsx8("p", { className: "mt-1 text-sm text-muted-foreground", children: t("plugins.description") })
328
+ /* @__PURE__ */ jsx9("h1", { className: "text-2xl font-bold md:text-3xl", children: t("plugins.title") }),
329
+ /* @__PURE__ */ jsx9("p", { className: "mt-1 text-sm text-muted-foreground", children: t("plugins.description") })
313
330
  ] }),
314
- entries.length === 0 ? /* @__PURE__ */ jsx8("p", { className: "text-sm text-muted-foreground", children: t("plugins.noConfigurablePlugins") }) : /* @__PURE__ */ jsx8("div", { className: "space-y-6", children: entries.map((entry) => /* @__PURE__ */ jsx8(
331
+ entries.length === 0 ? /* @__PURE__ */ jsx9("p", { className: "text-sm text-muted-foreground", children: t("plugins.noConfigurablePlugins") }) : /* @__PURE__ */ jsx9("div", { className: "space-y-6", children: entries.map((entry) => /* @__PURE__ */ jsx9(
315
332
  PluginSettingsForm,
316
333
  {
317
334
  instanceId: entry.instanceId,
@@ -328,10 +345,15 @@ function createPluginsPage(admin) {
328
345
  }
329
346
 
330
347
  // src/pages/login.tsx
331
- function createLoginPage(_admin) {
332
- return LoginPage;
348
+ import { jsx as jsx10 } from "react/jsx-runtime";
349
+ function createLoginPage(admin) {
350
+ const passkeysEnabled = isWebAuthnEnabled(admin.outputs);
351
+ return function LoginPageWrapper() {
352
+ return /* @__PURE__ */ jsx10(LoginPage, { passkeysEnabled });
353
+ };
333
354
  }
334
355
  export {
356
+ createAccountPage,
335
357
  createAdminDashboardPage,
336
358
  createAdminLayout,
337
359
  createEditPostPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/admin",
3
- "version": "1.0.0-beta.90",
3
+ "version": "1.0.0-beta.92",
4
4
  "description": "Admin UI for ampless: post editor, media manager, site/theme settings",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@aws-amplify/adapter-nextjs": "^1",
74
- "aws-amplify": "^6",
74
+ "aws-amplify": "^6.17.0",
75
75
  "next": "^15 || ^16",
76
76
  "react": "^18 || ^19",
77
77
  "react-dom": "^18 || ^19"