@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
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ AccountView
4
+ } from "../chunk-VJ5SDYVW.js";
5
+ import "../chunk-ZDIDJCSU.js";
6
+ import "../chunk-IBFNFTJ6.js";
7
+ import "../chunk-M5QQJHM7.js";
8
+ export {
9
+ AccountView
10
+ };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  AdminDashboard
4
- } from "../chunk-OS6QI7VW.js";
5
- import "../chunk-VX5FWOOG.js";
6
- import "../chunk-DIIJWZPF.js";
4
+ } from "../chunk-3AQGYUVP.js";
5
+ import "../chunk-IBFNFTJ6.js";
6
+ import "../chunk-M5QQJHM7.js";
7
7
  export {
8
8
  AdminDashboard
9
9
  };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  EditPostPage
4
- } from "../chunk-TSHYVPGI.js";
5
- import "../chunk-X4V3LAP5.js";
6
- import "../chunk-OLI5JPHI.js";
4
+ } from "../chunk-HRCUFIGW.js";
5
+ import "../chunk-UUZAKCZZ.js";
6
+ import "../chunk-6275N7HG.js";
7
7
  import "../chunk-PCPXAEBG.js";
8
8
  import "../chunk-2ITWLRYF.js";
9
- import "../chunk-VX5FWOOG.js";
10
- import "../chunk-DIIJWZPF.js";
9
+ import "../chunk-IBFNFTJ6.js";
10
+ import "../chunk-M5QQJHM7.js";
11
11
  export {
12
12
  EditPostPage
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { L as Locale, D as Dictionary } from '../i18n-BA6o0jvS.js';
2
+ import { L as Locale, D as Dictionary } from '../i18n-CecqYBeP.js';
3
3
  import { Config, Post, ThemeManifest, LocalizedString, MediaProcessingDefaults } from 'ampless';
4
4
  import { AmplessOutputs, ColorScheme } from '@ampless/runtime';
5
5
  import { ProcessOptions } from 'ampless/media';
@@ -4,34 +4,34 @@ import {
4
4
  Sidebar,
5
5
  SiteSettingsForm,
6
6
  ThemeSettingsForm
7
- } from "../chunk-OVUT27GX.js";
7
+ } from "../chunk-FVGWVH6Q.js";
8
+ import "../chunk-C7G5AQ3L.js";
8
9
  import {
9
10
  MediaUploader
10
- } from "../chunk-DLIP4JOY.js";
11
+ } from "../chunk-TEMSFG34.js";
11
12
  import {
12
13
  invalidateSiteSettingsCache
13
14
  } from "../chunk-D72XF3Q3.js";
14
15
  import {
15
16
  MediaPicker,
16
17
  PostForm
17
- } from "../chunk-X4V3LAP5.js";
18
+ } from "../chunk-UUZAKCZZ.js";
18
19
  import {
19
20
  ImageUploadDialog,
20
21
  sanitizeName,
21
22
  uploadProcessedImage
22
- } from "../chunk-OLI5JPHI.js";
23
+ } from "../chunk-6275N7HG.js";
23
24
  import "../chunk-PCPXAEBG.js";
24
25
  import {
25
26
  publicMediaUrl,
26
27
  setAdminMediaContext
27
28
  } from "../chunk-2ITWLRYF.js";
28
- import "../chunk-C7G5AQ3L.js";
29
29
  import {
30
30
  I18nProvider,
31
31
  useLocale,
32
32
  useT
33
- } from "../chunk-VX5FWOOG.js";
34
- import "../chunk-DIIJWZPF.js";
33
+ } from "../chunk-IBFNFTJ6.js";
34
+ import "../chunk-M5QQJHM7.js";
35
35
  export {
36
36
  AdminProviders,
37
37
  I18nProvider,
@@ -1,5 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare function LoginPage(): react_jsx_runtime.JSX.Element;
3
+ declare function LoginPage({ passkeysEnabled }: {
4
+ passkeysEnabled?: boolean;
5
+ }): react_jsx_runtime.JSX.Element;
4
6
 
5
7
  export { LoginPage };
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  LoginPage
4
- } from "../chunk-F4BDO5XD.js";
5
- import "../chunk-VX5FWOOG.js";
6
- import "../chunk-DIIJWZPF.js";
4
+ } from "../chunk-2Y5SRSCZ.js";
5
+ import "../chunk-ZDIDJCSU.js";
6
+ import "../chunk-IBFNFTJ6.js";
7
+ import "../chunk-M5QQJHM7.js";
7
8
  export {
8
9
  LoginPage
9
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  McpTokensView
4
- } from "../chunk-VDNJ5KXR.js";
4
+ } from "../chunk-HKMHNEFV.js";
5
5
  import "../chunk-C7G5AQ3L.js";
6
- import "../chunk-VX5FWOOG.js";
7
- import "../chunk-DIIJWZPF.js";
6
+ import "../chunk-IBFNFTJ6.js";
7
+ import "../chunk-M5QQJHM7.js";
8
8
  export {
9
9
  McpTokensView
10
10
  };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  MediaPage
4
- } from "../chunk-LUONBBOA.js";
5
- import "../chunk-DLIP4JOY.js";
6
- import "../chunk-OLI5JPHI.js";
4
+ } from "../chunk-FVHQJCH4.js";
5
+ import "../chunk-TEMSFG34.js";
6
+ import "../chunk-6275N7HG.js";
7
7
  import "../chunk-2ITWLRYF.js";
8
- import "../chunk-VX5FWOOG.js";
9
- import "../chunk-DIIJWZPF.js";
8
+ import "../chunk-IBFNFTJ6.js";
9
+ import "../chunk-M5QQJHM7.js";
10
10
  export {
11
11
  MediaPage
12
12
  };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  NewPostPage
4
- } from "../chunk-STD3UYXK.js";
5
- import "../chunk-X4V3LAP5.js";
6
- import "../chunk-OLI5JPHI.js";
4
+ } from "../chunk-OPHSYQQV.js";
5
+ import "../chunk-UUZAKCZZ.js";
6
+ import "../chunk-6275N7HG.js";
7
7
  import "../chunk-PCPXAEBG.js";
8
8
  import "../chunk-2ITWLRYF.js";
9
- import "../chunk-VX5FWOOG.js";
10
- import "../chunk-DIIJWZPF.js";
9
+ import "../chunk-IBFNFTJ6.js";
10
+ import "../chunk-M5QQJHM7.js";
11
11
  export {
12
12
  NewPostPage
13
13
  };
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  PluginSettingsForm,
4
4
  renderScalarInput
5
- } from "../chunk-T3R5QD5K.js";
5
+ } from "../chunk-QO73C7VC.js";
6
6
  import "../chunk-D72XF3Q3.js";
7
- import "../chunk-VX5FWOOG.js";
8
- import "../chunk-DIIJWZPF.js";
7
+ import "../chunk-IBFNFTJ6.js";
8
+ import "../chunk-M5QQJHM7.js";
9
9
  export {
10
10
  PluginSettingsForm,
11
11
  renderScalarInput
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  PostsList
4
- } from "../chunk-25CIZ4R4.js";
5
- import "../chunk-VX5FWOOG.js";
6
- import "../chunk-DIIJWZPF.js";
4
+ } from "../chunk-TMOFUAU7.js";
5
+ import "../chunk-IBFNFTJ6.js";
6
+ import "../chunk-M5QQJHM7.js";
7
7
  export {
8
8
  PostsList
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  UsersListView
4
- } from "../chunk-K67HINPW.js";
5
- import "../chunk-VX5FWOOG.js";
6
- import "../chunk-DIIJWZPF.js";
4
+ } from "../chunk-OAG4NI7Q.js";
5
+ import "../chunk-IBFNFTJ6.js";
6
+ import "../chunk-M5QQJHM7.js";
7
7
  export {
8
8
  UsersListView
9
9
  };
@@ -39,7 +39,8 @@ var sidebar = {
39
39
  signOut: "Sign out",
40
40
  site: "Site",
41
41
  openMenu: "Open menu",
42
- closeMenu: "Close menu"
42
+ closeMenu: "Close menu",
43
+ account: "Account"
43
44
  };
44
45
  var dashboard = {
45
46
  title: "Dashboard",
@@ -291,7 +292,8 @@ var auth = {
291
292
  description: "Sign in to manage your site.",
292
293
  submit: "Sign in",
293
294
  forgotPassword: "Forgot password?",
294
- createAccount: "Create admin account"
295
+ createAccount: "Create admin account",
296
+ passkeyButton: "Sign in with passkey"
295
297
  },
296
298
  signUp: {
297
299
  title: "Create admin account",
@@ -322,6 +324,14 @@ var auth = {
322
324
  invalidCredentials: "Invalid email or password.",
323
325
  passwordTooShort: "Password must be at least 8 characters.",
324
326
  userExists: "An account with this email already exists."
327
+ },
328
+ passkey: {
329
+ emailRequired: "Enter your email first, then sign in with your passkey.",
330
+ noneRegistered: "No passkey is registered for this account yet. Sign in with your password, then add one from the account page.",
331
+ cancelled: "Passkey sign-in was cancelled.",
332
+ unsupported: "This browser does not support passkeys.",
333
+ rpMismatch: "This site isn't configured for passkeys on this domain. Ask the site engineer to set the relyingPartyId in amplify/auth/resource.custom.ts.",
334
+ failed: "Passkey sign-in failed. Try again, or sign in with your password."
325
335
  }
326
336
  };
327
337
  var plugins = {
@@ -376,6 +386,24 @@ var mcpTokens = {
376
386
  revoke: "Revoke",
377
387
  revokeConfirm: "Revoke this token? This cannot be undone."
378
388
  };
389
+ var account = {
390
+ title: "Account",
391
+ passkeys: {
392
+ title: "Passkeys",
393
+ add: "Add passkey",
394
+ adding: "Adding...",
395
+ added: "Passkey added.",
396
+ loading: "Loading passkeys...",
397
+ empty: "No passkeys yet. Add one to sign in with Face ID, Touch ID, or your security key.",
398
+ columnName: "Name",
399
+ columnCreated: "Created",
400
+ "delete": "Delete",
401
+ deleteConfirm: "Delete this passkey? You will no longer be able to sign in with it.",
402
+ loadError: "Failed to load passkeys",
403
+ unsupported: "This browser does not support passkeys.",
404
+ disabled: "Passkeys are disabled for this site."
405
+ }
406
+ };
379
407
  var en = {
380
408
  common: common,
381
409
  sidebar: sidebar,
@@ -397,7 +425,8 @@ var en = {
397
425
  tagLabel: "Tag",
398
426
  permalink: "Permalink",
399
427
  shareOnX: "Share on X"
400
- }
428
+ },
429
+ account: account
401
430
  };
402
431
 
403
432
  declare const dictionaries: {
@@ -444,6 +473,7 @@ declare const dictionaries: {
444
473
  site: string;
445
474
  openMenu: string;
446
475
  closeMenu: string;
476
+ account: string;
447
477
  };
448
478
  dashboard: {
449
479
  title: string;
@@ -696,6 +726,7 @@ declare const dictionaries: {
696
726
  submit: string;
697
727
  forgotPassword: string;
698
728
  createAccount: string;
729
+ passkeyButton: string;
699
730
  };
700
731
  signUp: {
701
732
  title: string;
@@ -727,6 +758,14 @@ declare const dictionaries: {
727
758
  passwordTooShort: string;
728
759
  userExists: string;
729
760
  };
761
+ passkey: {
762
+ emailRequired: string;
763
+ noneRegistered: string;
764
+ cancelled: string;
765
+ unsupported: string;
766
+ rpMismatch: string;
767
+ failed: string;
768
+ };
730
769
  };
731
770
  plugins: {
732
771
  title: string;
@@ -788,6 +827,24 @@ declare const dictionaries: {
788
827
  permalink: string;
789
828
  shareOnX: string;
790
829
  };
830
+ account: {
831
+ title: string;
832
+ passkeys: {
833
+ title: string;
834
+ add: string;
835
+ adding: string;
836
+ added: string;
837
+ loading: string;
838
+ empty: string;
839
+ columnName: string;
840
+ columnCreated: string;
841
+ delete: string;
842
+ deleteConfirm: string;
843
+ loadError: string;
844
+ unsupported: string;
845
+ disabled: string;
846
+ };
847
+ };
791
848
  };
792
849
  readonly ja: {
793
850
  common: {
@@ -832,6 +889,7 @@ declare const dictionaries: {
832
889
  site: string;
833
890
  openMenu: string;
834
891
  closeMenu: string;
892
+ account: string;
835
893
  };
836
894
  dashboard: {
837
895
  title: string;
@@ -1084,6 +1142,7 @@ declare const dictionaries: {
1084
1142
  submit: string;
1085
1143
  forgotPassword: string;
1086
1144
  createAccount: string;
1145
+ passkeyButton: string;
1087
1146
  };
1088
1147
  signUp: {
1089
1148
  title: string;
@@ -1115,6 +1174,14 @@ declare const dictionaries: {
1115
1174
  passwordTooShort: string;
1116
1175
  userExists: string;
1117
1176
  };
1177
+ passkey: {
1178
+ emailRequired: string;
1179
+ noneRegistered: string;
1180
+ cancelled: string;
1181
+ unsupported: string;
1182
+ rpMismatch: string;
1183
+ failed: string;
1184
+ };
1118
1185
  };
1119
1186
  plugins: {
1120
1187
  title: string;
@@ -1176,6 +1243,24 @@ declare const dictionaries: {
1176
1243
  permalink: string;
1177
1244
  shareOnX: string;
1178
1245
  };
1246
+ account: {
1247
+ title: string;
1248
+ passkeys: {
1249
+ title: string;
1250
+ add: string;
1251
+ adding: string;
1252
+ added: string;
1253
+ loading: string;
1254
+ empty: string;
1255
+ columnName: string;
1256
+ columnCreated: string;
1257
+ delete: string;
1258
+ deleteConfirm: string;
1259
+ loadError: string;
1260
+ unsupported: string;
1261
+ disabled: string;
1262
+ };
1263
+ };
1179
1264
  };
1180
1265
  };
1181
1266
  type Locale = keyof typeof dictionaries;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Config } from 'ampless';
2
2
  import { AmplessOutputs, EffectiveSiteSettings, EffectiveThemeConfig, ResolvedMedia, Ampless } from '@ampless/runtime';
3
- import { L as Locale, D as Dictionary } from './i18n-BA6o0jvS.js';
4
- export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-BA6o0jvS.js';
3
+ import { L as Locale, D as Dictionary } from './i18n-CecqYBeP.js';
4
+ export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-CecqYBeP.js';
5
5
  import * as _aws_amplify_adapter_nextjs from '@aws-amplify/adapter-nextjs';
6
6
 
7
7
  /**
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getDictionary,
6
6
  resolveLocale,
7
7
  translate
8
- } from "./chunk-DIIJWZPF.js";
8
+ } from "./chunk-M5QQJHM7.js";
9
9
 
10
10
  // src/lib/amplify-server.ts
11
11
  import { createServerRunner } from "@aws-amplify/adapter-nextjs";