@ampless/admin 1.0.0-alpha.81 → 1.0.0-alpha.83
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/api/index.d.ts +1 -1
- package/dist/{chunk-4QTNVVKD.js → chunk-3KDJTNCS.js} +2 -2
- package/dist/chunk-4KUKZ2Y5.js +228 -0
- package/dist/{chunk-TBNETGQL.js → chunk-7NQERXNY.js} +1 -1
- package/dist/{chunk-7AGYC7JB.js → chunk-BAZ6YAPS.js} +2 -2
- package/dist/{chunk-MPZ3GVZC.js → chunk-CFIOUXVE.js} +16 -6
- package/dist/{chunk-IR4EB5C3.js → chunk-GGHN2RKQ.js} +1 -1
- package/dist/{chunk-DDAGBC4N.js → chunk-HN3UFHP7.js} +1 -1
- package/dist/{chunk-DUSEHGSV.js → chunk-K44QF3MV.js} +1 -1
- package/dist/{chunk-HOJJIABL.js → chunk-MKWYNK4J.js} +2 -2
- package/dist/{chunk-7TAT4AHW.js → chunk-OFPNBZKP.js} +36 -2
- package/dist/{chunk-AB2VWBDC.js → chunk-RTNDMAFN.js} +45 -3
- package/dist/{chunk-PHV2FQFV.js → chunk-SMI7Y77B.js} +1 -1
- package/dist/{chunk-DSCNWIBN.js → chunk-SQ6LFPXH.js} +2 -2
- package/dist/{chunk-OJTHDE7F.js → chunk-TJTIKTUV.js} +2 -2
- package/dist/{chunk-NI4JSVXL.js → chunk-W4VHP2JW.js} +1 -1
- package/dist/components/admin-dashboard.js +3 -3
- package/dist/components/edit-post-view.js +5 -5
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/login-view.js +3 -3
- package/dist/components/mcp-tokens-view.js +3 -3
- package/dist/components/media-view.js +5 -5
- package/dist/components/new-post-view.js +5 -5
- package/dist/components/plugin-settings-form.js +3 -3
- package/dist/components/posts-list-view.js +3 -3
- package/dist/components/users-list-view.js +3 -3
- package/dist/editor.d.ts +15 -6
- package/dist/{i18n-DBNV_Fgf.d.ts → i18n-DA-aakRX.d.ts} +52 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +15 -15
- package/package.json +4 -4
- package/dist/chunk-LNX3I35F.js +0 -67
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
McpTokensView
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-W4VHP2JW.js";
|
|
5
5
|
import "../chunk-C7G5AQ3L.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-K44QF3MV.js";
|
|
7
|
+
import "../chunk-OFPNBZKP.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-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MKWYNK4J.js";
|
|
5
|
+
import "../chunk-SQ6LFPXH.js";
|
|
6
|
+
import "../chunk-HN3UFHP7.js";
|
|
7
7
|
import "../chunk-2ITWLRYF.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-K44QF3MV.js";
|
|
9
|
+
import "../chunk-OFPNBZKP.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-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-TJTIKTUV.js";
|
|
5
|
+
import "../chunk-BAZ6YAPS.js";
|
|
6
|
+
import "../chunk-HN3UFHP7.js";
|
|
7
7
|
import "../chunk-PCPXAEBG.js";
|
|
8
8
|
import "../chunk-2ITWLRYF.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-K44QF3MV.js";
|
|
10
|
+
import "../chunk-OFPNBZKP.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-
|
|
5
|
+
} from "../chunk-SMI7Y77B.js";
|
|
6
6
|
import "../chunk-D72XF3Q3.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-K44QF3MV.js";
|
|
8
|
+
import "../chunk-OFPNBZKP.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-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-4KUKZ2Y5.js";
|
|
5
|
+
import "../chunk-K44QF3MV.js";
|
|
6
|
+
import "../chunk-OFPNBZKP.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-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7NQERXNY.js";
|
|
5
|
+
import "../chunk-K44QF3MV.js";
|
|
6
|
+
import "../chunk-OFPNBZKP.js";
|
|
7
7
|
export {
|
|
8
8
|
UsersListView
|
|
9
9
|
};
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { TiptapNodeMarkdownAdapters, TiptapNodeHtmlAdapters } from 'ampless';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Structural type for a tiptap extension instance.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* Structural type for a tiptap extension instance. Deliberately NOT
|
|
5
|
+
* `AnyExtension` from `@tiptap/core` even though admin now depends on
|
|
6
|
+
* it directly: user sites can end up with duplicate `@tiptap/core`
|
|
7
|
+
* copies (npm dedup failures across plugin/admin dependency trees),
|
|
8
|
+
* and a nominal type would make cross-copy extension instances fail
|
|
9
|
+
* to typecheck. A minimal structural shape stays robust.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately NO index signature: TypeScript class instances (tiptap
|
|
12
|
+
* `Node` / `Mark` / `Extension`) don't get implicit index signatures,
|
|
13
|
+
* so `readonly [key: string]: unknown` here makes the codegen'd
|
|
14
|
+
* `_editor-bootstrap.tsx` in user sites fail Next.js typecheck with
|
|
15
|
+
* "Index signature for type 'string' is missing in type 'Node<any, any>'".
|
|
16
|
+
* The admin only ever reads `name` (duplicate detection) and passes the
|
|
17
|
+
* instance through to <TiptapEditor>'s `useEditor({ extensions })`
|
|
18
|
+
* spread untouched.
|
|
9
19
|
*/
|
|
10
20
|
interface TiptapExtensionLike {
|
|
11
21
|
readonly name?: string;
|
|
12
|
-
readonly [key: string]: unknown;
|
|
13
22
|
}
|
|
14
23
|
/**
|
|
15
24
|
* Register a list of tiptap extensions to be appended to the admin's
|
|
@@ -58,7 +58,24 @@ var posts = {
|
|
|
58
58
|
columnTitle: "Title",
|
|
59
59
|
columnStatus: "Status",
|
|
60
60
|
columnSlug: "Slug",
|
|
61
|
-
|
|
61
|
+
columnPublished: "Published",
|
|
62
|
+
columnUpdated: "Updated",
|
|
63
|
+
searchPlaceholder: "Search title, slug, or tags",
|
|
64
|
+
filterAll: "All statuses",
|
|
65
|
+
filterPublished: "Published",
|
|
66
|
+
filterDraft: "Draft",
|
|
67
|
+
filterAllTags: "All tags",
|
|
68
|
+
sortLabel: "Sort",
|
|
69
|
+
sortUpdatedDesc: "Updated newest",
|
|
70
|
+
sortUpdatedAsc: "Updated oldest",
|
|
71
|
+
sortPublishedDesc: "Published newest",
|
|
72
|
+
sortPublishedAsc: "Published oldest",
|
|
73
|
+
sortTitleAsc: "Title A-Z",
|
|
74
|
+
sortTitleDesc: "Title Z-A",
|
|
75
|
+
showMore: "Show more",
|
|
76
|
+
resultCount: "{shown} / {total}",
|
|
77
|
+
noMatches: "No posts match the current filters.",
|
|
78
|
+
loadError: "Failed to load posts"
|
|
62
79
|
},
|
|
63
80
|
form: {
|
|
64
81
|
newTitle: "New post",
|
|
@@ -444,7 +461,24 @@ declare const dictionaries: {
|
|
|
444
461
|
columnTitle: string;
|
|
445
462
|
columnStatus: string;
|
|
446
463
|
columnSlug: string;
|
|
464
|
+
columnPublished: string;
|
|
447
465
|
columnUpdated: string;
|
|
466
|
+
searchPlaceholder: string;
|
|
467
|
+
filterAll: string;
|
|
468
|
+
filterPublished: string;
|
|
469
|
+
filterDraft: string;
|
|
470
|
+
filterAllTags: string;
|
|
471
|
+
sortLabel: string;
|
|
472
|
+
sortUpdatedDesc: string;
|
|
473
|
+
sortUpdatedAsc: string;
|
|
474
|
+
sortPublishedDesc: string;
|
|
475
|
+
sortPublishedAsc: string;
|
|
476
|
+
sortTitleAsc: string;
|
|
477
|
+
sortTitleDesc: string;
|
|
478
|
+
showMore: string;
|
|
479
|
+
resultCount: string;
|
|
480
|
+
noMatches: string;
|
|
481
|
+
loadError: string;
|
|
448
482
|
};
|
|
449
483
|
form: {
|
|
450
484
|
newTitle: string;
|
|
@@ -814,7 +848,24 @@ declare const dictionaries: {
|
|
|
814
848
|
columnTitle: string;
|
|
815
849
|
columnStatus: string;
|
|
816
850
|
columnSlug: string;
|
|
851
|
+
columnPublished: string;
|
|
817
852
|
columnUpdated: string;
|
|
853
|
+
searchPlaceholder: string;
|
|
854
|
+
filterAll: string;
|
|
855
|
+
filterPublished: string;
|
|
856
|
+
filterDraft: string;
|
|
857
|
+
filterAllTags: string;
|
|
858
|
+
sortLabel: string;
|
|
859
|
+
sortUpdatedDesc: string;
|
|
860
|
+
sortUpdatedAsc: string;
|
|
861
|
+
sortPublishedDesc: string;
|
|
862
|
+
sortPublishedAsc: string;
|
|
863
|
+
sortTitleAsc: string;
|
|
864
|
+
sortTitleDesc: string;
|
|
865
|
+
showMore: string;
|
|
866
|
+
resultCount: string;
|
|
867
|
+
noMatches: string;
|
|
868
|
+
loadError: string;
|
|
818
869
|
};
|
|
819
870
|
form: {
|
|
820
871
|
newTitle: string;
|
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-
|
|
4
|
-
export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-
|
|
3
|
+
import { L as Locale, D as Dictionary } from './i18n-DA-aakRX.js';
|
|
4
|
+
export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-DA-aakRX.js';
|
|
5
5
|
import * as _aws_amplify_adapter_nextjs from '@aws-amplify/adapter-nextjs';
|
|
6
6
|
|
|
7
7
|
/**
|