@ampless/admin 0.2.0-alpha.2 → 0.2.0-alpha.5
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/{chunk-T2RSMFOI.js → chunk-7WFZULH7.js} +1302 -668
- package/dist/{chunk-TJR3ALRJ.js → chunk-FI7CM4LH.js} +8 -31
- package/dist/chunk-VXEVLHGL.js +10 -0
- package/dist/components/index.d.ts +29 -17
- package/dist/components/index.js +21 -5
- package/dist/index.js +1 -1
- package/dist/lib/theme-actions.d.ts +17 -0
- package/dist/lib/theme-actions.js +7 -0
- package/dist/login-view-BKrSZLJu.d.ts +24 -0
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/index.d.ts +35 -13
- package/dist/pages/index.js +70 -660
- package/package.json +1 -1
|
@@ -507,22 +507,22 @@ function translate(dict, key, vars) {
|
|
|
507
507
|
|
|
508
508
|
// src/lib/media.ts
|
|
509
509
|
var state = { outputs: null, cmsConfig: null };
|
|
510
|
-
function setAdminMediaContext(outputs,
|
|
510
|
+
function setAdminMediaContext(outputs, cmsConfig) {
|
|
511
511
|
state.outputs = outputs;
|
|
512
|
-
state.cmsConfig =
|
|
512
|
+
state.cmsConfig = cmsConfig;
|
|
513
513
|
}
|
|
514
514
|
function publicMediaUrl(input) {
|
|
515
515
|
if (/^https?:\/\//.test(input)) return input;
|
|
516
516
|
let path = input.replace(/^\/+/, "");
|
|
517
517
|
if (path.startsWith("public/")) path = path.slice("public/".length);
|
|
518
|
-
const { outputs, cmsConfig
|
|
519
|
-
const delivery =
|
|
518
|
+
const { outputs, cmsConfig } = state;
|
|
519
|
+
const delivery = cmsConfig?.media?.delivery ?? "nextjs";
|
|
520
520
|
if (delivery !== "s3-direct") return `/api/media/${path}`;
|
|
521
521
|
const storage = outputs?.storage;
|
|
522
522
|
if (!storage) return `/api/media/${path}`;
|
|
523
523
|
return `https://${storage.bucket_name}.s3.${storage.aws_region}.amazonaws.com/public/${path}`;
|
|
524
524
|
}
|
|
525
|
-
function createMedia(outputs,
|
|
525
|
+
function createMedia(outputs, cmsConfig) {
|
|
526
526
|
const storage = outputs.storage;
|
|
527
527
|
function s3DirectUrl(path) {
|
|
528
528
|
if (!storage) return `/api/media/${path}`;
|
|
@@ -532,35 +532,14 @@ function createMedia(outputs, cmsConfig2) {
|
|
|
532
532
|
if (/^https?:\/\//.test(input)) return input;
|
|
533
533
|
let path = input.replace(/^\/+/, "");
|
|
534
534
|
if (path.startsWith("public/")) path = path.slice("public/".length);
|
|
535
|
-
const delivery =
|
|
535
|
+
const delivery = cmsConfig.media?.delivery ?? "nextjs";
|
|
536
536
|
return delivery === "s3-direct" ? s3DirectUrl(path) : `/api/media/${path}`;
|
|
537
537
|
}
|
|
538
538
|
return { publicMediaUrl: urlFor };
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
// src/lib/admin-site-
|
|
542
|
-
import { DEFAULT_SITE_ID, isMultiSite } from "ampless";
|
|
541
|
+
// src/lib/admin-site-cookie.ts
|
|
543
542
|
var ADMIN_SITE_COOKIE = "admin-site-id";
|
|
544
|
-
var cmsConfig = null;
|
|
545
|
-
function setAdminCmsConfig(config) {
|
|
546
|
-
cmsConfig = config;
|
|
547
|
-
}
|
|
548
|
-
function readAdminSiteIdFromCookie() {
|
|
549
|
-
if (!cmsConfig) return DEFAULT_SITE_ID;
|
|
550
|
-
if (!isMultiSite(cmsConfig)) return DEFAULT_SITE_ID;
|
|
551
|
-
const sites = cmsConfig.sites ?? {};
|
|
552
|
-
if (typeof document !== "undefined") {
|
|
553
|
-
const match = document.cookie.match(
|
|
554
|
-
new RegExp(`(?:^|;\\s*)${ADMIN_SITE_COOKIE}=([^;]+)`)
|
|
555
|
-
);
|
|
556
|
-
if (match) {
|
|
557
|
-
const v = decodeURIComponent(match[1]);
|
|
558
|
-
if (sites[v]) return v;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
const first = Object.keys(sites)[0];
|
|
562
|
-
return first ?? DEFAULT_SITE_ID;
|
|
563
|
-
}
|
|
564
543
|
|
|
565
544
|
export {
|
|
566
545
|
resolveLocale,
|
|
@@ -569,7 +548,5 @@ export {
|
|
|
569
548
|
setAdminMediaContext,
|
|
570
549
|
publicMediaUrl,
|
|
571
550
|
createMedia,
|
|
572
|
-
ADMIN_SITE_COOKIE
|
|
573
|
-
setAdminCmsConfig,
|
|
574
|
-
readAdminSiteIdFromCookie
|
|
551
|
+
ADMIN_SITE_COOKIE
|
|
575
552
|
};
|
|
@@ -2,7 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { L as Locale, D as Dictionary } from '../i18n-ByHM_Bho.js';
|
|
3
3
|
import { Config, Post, ThemeManifest, LocalizedString, MediaProcessingDefaults } from 'ampless';
|
|
4
4
|
import { AmplessOutputs } from '@ampless/runtime';
|
|
5
|
+
export { A as AdminDashboard, E as EditPostPage, L as LoginPage, M as MediaPage, N as NewPostPage, P as PostsList } from '../login-view-BKrSZLJu.js';
|
|
5
6
|
import { ProcessOptions } from 'ampless/media';
|
|
7
|
+
export { invalidateSiteSettingsCache } from '../lib/theme-actions.js';
|
|
6
8
|
|
|
7
9
|
interface ProviderProps {
|
|
8
10
|
locale: Locale;
|
|
@@ -23,7 +25,33 @@ declare function useT(): (key: string, vars?: Record<string, string | number>) =
|
|
|
23
25
|
/** Read the active locale from context (e.g. for `<html lang>` parity). */
|
|
24
26
|
declare function useLocale(): Locale;
|
|
25
27
|
|
|
28
|
+
interface Props$3 {
|
|
29
|
+
outputs: AmplessOutputs;
|
|
30
|
+
cmsConfig: Config;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Client-side admin bootstrap. Runs on first render of any admin route
|
|
35
|
+
* — configures the Amplify SDK, registers the cms.config / outputs in
|
|
36
|
+
* the client-side state modules, and installs the admin's posts / kv
|
|
37
|
+
* providers so 'ampless'-imported functions hit the AppSync client.
|
|
38
|
+
*
|
|
39
|
+
* All bootstrap calls happen synchronously during render, NOT in
|
|
40
|
+
* `useEffect`. React runs child useEffects before parent useEffects,
|
|
41
|
+
* so if `installAdminPostsProvider` were inside an effect, a child
|
|
42
|
+
* page's first `listPosts()` call (also in a useEffect) would race
|
|
43
|
+
* the install and fall back to ampless's dummy data. Synchronous
|
|
44
|
+
* registration guarantees the provider is in place before any child
|
|
45
|
+
* component mounts.
|
|
46
|
+
*
|
|
47
|
+
* All side effects are idempotent (the install functions guard with an
|
|
48
|
+
* `installed` flag) — mounting this multiple times (e.g. during HMR or
|
|
49
|
+
* remount) is safe.
|
|
50
|
+
*/
|
|
51
|
+
declare function AdminProviders({ outputs, cmsConfig, children }: Props$3): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
26
53
|
declare const ADMIN_SITE_COOKIE = "admin-site-id";
|
|
54
|
+
|
|
27
55
|
/**
|
|
28
56
|
* Register the cms.config for client-side multi-site lookups. Called
|
|
29
57
|
* once from the admin layout factory.
|
|
@@ -80,22 +108,6 @@ declare function uploadProcessedImage(file: File, options: ProcessOptions): Prom
|
|
|
80
108
|
url: string;
|
|
81
109
|
}>;
|
|
82
110
|
|
|
83
|
-
/**
|
|
84
|
-
* Force-invalidate the Next.js fetch cache for a site's settings JSON.
|
|
85
|
-
* Used by the admin theme switcher: writes to KvStore propagate to S3
|
|
86
|
-
* via the trusted processor (~5-10s), and without this call the
|
|
87
|
-
* `revalidate: 60` on the public-side fetch would keep serving the old
|
|
88
|
-
* cached response for up to a minute after the rebuild.
|
|
89
|
-
*
|
|
90
|
-
* The cache tag matches the one used in `theme-active.ts` and
|
|
91
|
-
* `theme-config.ts` (in `@ampless/runtime`): `site-settings:{siteId}`.
|
|
92
|
-
*
|
|
93
|
-
* Uses `updateTag` (Next 16+) — the read-your-own-writes variant of
|
|
94
|
-
* the old `revalidateTag`, which is the right semantics inside a
|
|
95
|
-
* server action (this entire module is `'use server'`).
|
|
96
|
-
*/
|
|
97
|
-
declare function invalidateSiteSettingsCache(siteId: string): Promise<void>;
|
|
98
|
-
|
|
99
111
|
declare function Sidebar({ email, siteSelector, }: {
|
|
100
112
|
email: string;
|
|
101
113
|
/** Rendered above the main nav in multi-site mode. */
|
|
@@ -170,4 +182,4 @@ interface ImageUploadDialogProps {
|
|
|
170
182
|
}
|
|
171
183
|
declare function ImageUploadDialog({ file, remaining, busy, defaults, onConfirm, onSkip, onCancel, }: ImageUploadDialogProps): react_jsx_runtime.JSX.Element | null;
|
|
172
184
|
|
|
173
|
-
export { ADMIN_SITE_COOKIE, I18nProvider, ImageUploadDialog, type ImageUploadDialogProps, MediaPicker, MediaUploader, PostForm, Sidebar, SiteSelector, SiteSettingsForm, type SiteSettingsFormValues, ThemeSettingsForm,
|
|
185
|
+
export { ADMIN_SITE_COOKIE, AdminProviders, I18nProvider, ImageUploadDialog, type ImageUploadDialogProps, MediaPicker, MediaUploader, PostForm, Sidebar, SiteSelector, SiteSettingsForm, type SiteSettingsFormValues, ThemeSettingsForm, publicMediaUrl, readAdminSiteIdFromCookie, sanitizeName, setAdminCmsConfig, setAdminMediaContext, uploadProcessedImage, useLocale, useT };
|
package/dist/components/index.js
CHANGED
|
@@ -1,34 +1,50 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
|
+
AdminDashboard,
|
|
4
|
+
AdminProviders,
|
|
5
|
+
EditPostPage,
|
|
3
6
|
I18nProvider,
|
|
4
7
|
ImageUploadDialog,
|
|
8
|
+
LoginPage,
|
|
9
|
+
MediaPage,
|
|
5
10
|
MediaPicker,
|
|
6
11
|
MediaUploader,
|
|
12
|
+
NewPostPage,
|
|
7
13
|
PostForm,
|
|
14
|
+
PostsList,
|
|
8
15
|
Sidebar,
|
|
9
16
|
SiteSelector,
|
|
10
17
|
SiteSettingsForm,
|
|
11
18
|
ThemeSettingsForm,
|
|
12
|
-
|
|
19
|
+
readAdminSiteIdFromCookie,
|
|
13
20
|
sanitizeName,
|
|
21
|
+
setAdminCmsConfig,
|
|
14
22
|
uploadProcessedImage,
|
|
15
23
|
useLocale,
|
|
16
24
|
useT
|
|
17
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-7WFZULH7.js";
|
|
18
26
|
import {
|
|
19
27
|
ADMIN_SITE_COOKIE,
|
|
20
28
|
publicMediaUrl,
|
|
21
|
-
readAdminSiteIdFromCookie,
|
|
22
|
-
setAdminCmsConfig,
|
|
23
29
|
setAdminMediaContext
|
|
24
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-FI7CM4LH.js";
|
|
31
|
+
import {
|
|
32
|
+
invalidateSiteSettingsCache
|
|
33
|
+
} from "../chunk-VXEVLHGL.js";
|
|
25
34
|
export {
|
|
26
35
|
ADMIN_SITE_COOKIE,
|
|
36
|
+
AdminDashboard,
|
|
37
|
+
AdminProviders,
|
|
38
|
+
EditPostPage,
|
|
27
39
|
I18nProvider,
|
|
28
40
|
ImageUploadDialog,
|
|
41
|
+
LoginPage,
|
|
42
|
+
MediaPage,
|
|
29
43
|
MediaPicker,
|
|
30
44
|
MediaUploader,
|
|
45
|
+
NewPostPage,
|
|
31
46
|
PostForm,
|
|
47
|
+
PostsList,
|
|
32
48
|
Sidebar,
|
|
33
49
|
SiteSelector,
|
|
34
50
|
SiteSettingsForm,
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Force-invalidate the Next.js fetch cache for a site's settings JSON.
|
|
3
|
+
* Used by the admin theme switcher: writes to KvStore propagate to S3
|
|
4
|
+
* via the trusted processor (~5-10s), and without this call the
|
|
5
|
+
* `revalidate: 60` on the public-side fetch would keep serving the old
|
|
6
|
+
* cached response for up to a minute after the rebuild.
|
|
7
|
+
*
|
|
8
|
+
* The cache tag matches the one used in `theme-active.ts` and
|
|
9
|
+
* `theme-config.ts` (in `@ampless/runtime`): `site-settings:{siteId}`.
|
|
10
|
+
*
|
|
11
|
+
* Uses `updateTag` (Next 16+) — the read-your-own-writes variant of
|
|
12
|
+
* the old `revalidateTag`, which is the right semantics inside a
|
|
13
|
+
* server action (this entire module is `'use server'`).
|
|
14
|
+
*/
|
|
15
|
+
declare function invalidateSiteSettingsCache(siteId: string): Promise<void>;
|
|
16
|
+
|
|
17
|
+
export { invalidateSiteSettingsCache };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Admin home / dashboard. Lists post counts. Marked client-side because
|
|
5
|
+
* it reads from the AppSync client directly (no server-rendered query
|
|
6
|
+
* yet — listed posts come from Amplify SDK at mount time).
|
|
7
|
+
*/
|
|
8
|
+
declare function AdminDashboard(): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
declare function PostsList(): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare function NewPostPage(): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare function EditPostPage({ params }: {
|
|
15
|
+
params: Promise<{
|
|
16
|
+
postId: string;
|
|
17
|
+
}>;
|
|
18
|
+
}): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare function MediaPage(): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
declare function LoginPage(): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { AdminDashboard as A, EditPostPage as E, LoginPage as L, MediaPage as M, NewPostPage as N, PostsList as P };
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/locales/en.json":{"bytes":7568,"imports":[]},"src/locales/ja.json":{"bytes":9476,"imports":[]},"src/lib/i18n.ts":{"bytes":2935,"imports":[{"path":"src/locales/en.json","kind":"import-statement","original":"../locales/en.json"},{"path":"src/locales/ja.json","kind":"import-statement","original":"../locales/ja.json"}],"format":"esm"},"src/lib/media.ts":{"bytes":3109,"imports":[],"format":"esm"},"src/lib/admin-site-client.ts":{"bytes":1676,"imports":[{"path":"ampless","kind":"import-statement","external":true}],"format":"esm"},"src/lib/admin-site.ts":{"bytes":1353,"imports":[{"path":"next/headers","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"./admin-site-client.js"}],"format":"esm"},"src/lib/amplify-server.ts":{"bytes":593,"imports":[{"path":"@aws-amplify/adapter-nextjs","kind":"import-statement","external":true}],"format":"esm"},"src/lib/auth-server.ts":{"bytes":1678,"imports":[{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/auth/server","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":5110,"imports":[{"path":"src/lib/i18n.ts","kind":"import-statement","original":"./lib/i18n.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"./lib/media.js"},{"path":"src/lib/admin-site.ts","kind":"import-statement","original":"./lib/admin-site.js"},{"path":"src/lib/amplify-server.ts","kind":"import-statement","original":"./lib/amplify-server.js"},{"path":"src/lib/auth-server.ts","kind":"import-statement","original":"./lib/auth-server.js"},{"path":"src/lib/i18n.ts","kind":"import-statement","original":"./lib/i18n.js"}],"format":"esm"},"src/api/media-proxy.ts":{"bytes":2196,"imports":[{"path":"next/server","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/storage/server","kind":"import-statement","external":true}],"format":"esm"},"src/api/index.ts":{"bytes":562,"imports":[{"path":"src/api/media-proxy.ts","kind":"import-statement","original":"./media-proxy.js"}],"format":"esm"},"src/components/i18n-provider.tsx":{"bytes":1526,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/lib/i18n.ts","kind":"import-statement","original":"../lib/i18n.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/lib/upload.ts":{"bytes":1490,"imports":[{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"./media.js"}],"format":"esm"},"src/lib/theme-actions.ts":{"bytes":858,"imports":[{"path":"next/cache","kind":"import-statement","external":true}],"format":"esm"},"src/components/sidebar.tsx":{"bytes":2723,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/site-selector.tsx":{"bytes":1324,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/image-upload-dialog.tsx":{"bytes":14701,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-image-crop","kind":"import-statement","external":true},{"path":"react-image-crop/dist/ReactCrop.css","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/lib/admin-config-client.ts":{"bytes":626,"imports":[],"format":"esm"},"src/components/media-picker.tsx":{"bytes":5261,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/upload.ts","kind":"import-statement","original":"../lib/upload.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/toolbar.tsx":{"bytes":3072,"imports":[{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"../components/media-picker.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/image-bubble-menu.tsx":{"bytes":2716,"imports":[{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/react/menus","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/tiptap-editor.tsx":{"bytes":2323,"imports":[{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-image","kind":"import-statement","external":true},{"path":"src/editor/toolbar.tsx","kind":"import-statement","original":"./toolbar.js"},{"path":"src/editor/image-bubble-menu.tsx","kind":"import-statement","original":"./image-bubble-menu.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/post-form.tsx":{"bytes":14850,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/editor/tiptap-editor.tsx","kind":"import-statement","original":"../editor/tiptap-editor.js"},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"./media-picker.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/site-settings-form.tsx":{"bytes":6542,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/theme-settings-form.tsx":{"bytes":21046,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/lib/theme-actions.ts","kind":"import-statement","original":"../lib/theme-actions.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/media-uploader.tsx":{"bytes":10866,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/index.ts":{"bytes":1286,"imports":[{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/upload.ts","kind":"import-statement","original":"../lib/upload.js"},{"path":"src/lib/theme-actions.ts","kind":"import-statement","original":"../lib/theme-actions.js"},{"path":"src/components/sidebar.tsx","kind":"import-statement","original":"./sidebar.js"},{"path":"src/components/site-selector.tsx","kind":"import-statement","original":"./site-selector.js"},{"path":"src/components/post-form.tsx","kind":"import-statement","original":"./post-form.js"},{"path":"src/components/site-settings-form.tsx","kind":"import-statement","original":"./site-settings-form.js"},{"path":"src/components/theme-settings-form.tsx","kind":"import-statement","original":"./theme-settings-form.js"},{"path":"src/components/media-uploader.tsx","kind":"import-statement","original":"./media-uploader.js"},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"./media-picker.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"}],"format":"esm"},"src/lib/amplify-client.ts":{"bytes":612,"imports":[{"path":"aws-amplify","kind":"import-statement","external":true}],"format":"esm"},"src/lib/posts-provider.ts":{"bytes":9743,"imports":[{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true}],"format":"esm"},"src/lib/kv-provider.ts":{"bytes":4538,"imports":[{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true}],"format":"esm"},"src/pages/admin-providers.tsx":{"bytes":1706,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/lib/amplify-client.ts","kind":"import-statement","original":"../lib/amplify-client.js"},{"path":"src/lib/posts-provider.ts","kind":"import-statement","original":"../lib/posts-provider.js"},{"path":"src/lib/kv-provider.ts","kind":"import-statement","original":"../lib/kv-provider.js"},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/admin-layout.tsx":{"bytes":1670,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"src/components/sidebar.tsx","kind":"import-statement","original":"../components/sidebar.js"},{"path":"src/components/site-selector.tsx","kind":"import-statement","original":"../components/site-selector.js"},{"path":"src/pages/admin-providers.tsx","kind":"import-statement","original":"./admin-providers.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/dashboard.tsx":{"bytes":2272,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/posts-list.tsx":{"bytes":3336,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/post-new.tsx":{"bytes":395,"imports":[{"path":"src/components/post-form.tsx","kind":"import-statement","original":"../components/post-form.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/post-edit.tsx":{"bytes":1212,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/components/post-form.tsx","kind":"import-statement","original":"../components/post-form.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/media.tsx":{"bytes":396,"imports":[{"path":"src/components/media-uploader.tsx","kind":"import-statement","original":"../components/media-uploader.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/sites-list.tsx":{"bytes":2665,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/site-edit.tsx":{"bytes":2396,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/components/site-settings-form.tsx","kind":"import-statement","original":"../components/site-settings-form.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/site-theme.tsx":{"bytes":2201,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/components/theme-settings-form.tsx","kind":"import-statement","original":"../components/theme-settings-form.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/login.tsx":{"bytes":7140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/index.ts":{"bytes":1338,"imports":[{"path":"src/pages/admin-layout.tsx","kind":"import-statement","original":"./admin-layout.js"},{"path":"src/pages/dashboard.tsx","kind":"import-statement","original":"./dashboard.js"},{"path":"src/pages/posts-list.tsx","kind":"import-statement","original":"./posts-list.js"},{"path":"src/pages/post-new.tsx","kind":"import-statement","original":"./post-new.js"},{"path":"src/pages/post-edit.tsx","kind":"import-statement","original":"./post-edit.js"},{"path":"src/pages/media.tsx","kind":"import-statement","original":"./media.js"},{"path":"src/pages/sites-list.tsx","kind":"import-statement","original":"./sites-list.js"},{"path":"src/pages/site-edit.tsx","kind":"import-statement","original":"./site-edit.js"},{"path":"src/pages/site-theme.tsx","kind":"import-statement","original":"./site-theme.js"},{"path":"src/pages/login.tsx","kind":"import-statement","original":"./login.js"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"dist/chunk-TJR3ALRJ.js","kind":"import-statement"},{"path":"next/headers","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@aws-amplify/adapter-nextjs","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/auth/server","kind":"import-statement","external":true}],"exports":["createAdmin","getDictionary","resolveLocale","translate"],"entryPoint":"src/index.ts","inputs":{"src/lib/admin-site.ts":{"bytesInOutput":732},"src/lib/amplify-server.ts":{"bytesInOutput":164},"src/lib/auth-server.ts":{"bytesInOutput":1165},"src/index.ts":{"bytesInOutput":1312}},"bytes":3667},"dist/api/index.js":{"imports":[{"path":"next/server","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/storage/server","kind":"import-statement","external":true}],"exports":["createMediaProxyRoute"],"entryPoint":"src/api/index.ts","inputs":{"src/api/media-proxy.ts":{"bytesInOutput":1318},"src/api/index.ts":{"bytesInOutput":0}},"bytes":1380},"dist/components/index.js":{"imports":[{"path":"dist/chunk-T2RSMFOI.js","kind":"import-statement"},{"path":"dist/chunk-TJR3ALRJ.js","kind":"import-statement"}],"exports":["ADMIN_SITE_COOKIE","I18nProvider","ImageUploadDialog","MediaPicker","MediaUploader","PostForm","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm","invalidateSiteSettingsCache","publicMediaUrl","readAdminSiteIdFromCookie","sanitizeName","setAdminCmsConfig","setAdminMediaContext","uploadProcessedImage","useLocale","useT"],"entryPoint":"src/components/index.ts","inputs":{"src/components/index.ts":{"bytesInOutput":0}},"bytes":797},"dist/pages/index.js":{"imports":[{"path":"dist/chunk-T2RSMFOI.js","kind":"import-statement"},{"path":"dist/chunk-TJR3ALRJ.js","kind":"import-statement"},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["createAdminDashboardPage","createAdminLayout","createEditPostPage","createLoginPage","createMediaPage","createNewPostPage","createPostsListPage","createSiteEditPage","createSiteThemePage","createSitesListPage"],"entryPoint":"src/pages/index.ts","inputs":{"src/pages/admin-layout.tsx":{"bytesInOutput":1010},"src/pages/admin-providers.tsx":{"bytesInOutput":438},"src/lib/amplify-client.ts":{"bytesInOutput":194},"src/lib/posts-provider.ts":{"bytesInOutput":6137},"src/lib/kv-provider.ts":{"bytesInOutput":2282},"src/pages/index.ts":{"bytesInOutput":0},"src/pages/dashboard.tsx":{"bytesInOutput":2493},"src/pages/posts-list.tsx":{"bytesInOutput":3366},"src/pages/post-new.tsx":{"bytesInOutput":399},"src/pages/post-edit.tsx":{"bytesInOutput":1125},"src/pages/media.tsx":{"bytesInOutput":390},"src/pages/sites-list.tsx":{"bytesInOutput":2734},"src/pages/site-edit.tsx":{"bytesInOutput":2296},"src/pages/site-theme.tsx":{"bytesInOutput":1741},"src/pages/login.tsx":{"bytesInOutput":7207}},"bytes":32807},"dist/chunk-T2RSMFOI.js":{"imports":[{"path":"dist/chunk-TJR3ALRJ.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"next/cache","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-image-crop","kind":"import-statement","external":true},{"path":"react-image-crop/dist/ReactCrop.css","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-image","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@tiptap/react/menus","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["I18nProvider","ImageUploadDialog","MediaPicker","MediaUploader","PostForm","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm","invalidateSiteSettingsCache","sanitizeName","setAdminCmsConfigClient","uploadProcessedImage","useLocale","useT"],"inputs":{"src/components/i18n-provider.tsx":{"bytesInOutput":785},"src/lib/upload.ts":{"bytesInOutput":807},"src/lib/theme-actions.ts":{"bytesInOutput":135},"src/components/sidebar.tsx":{"bytesInOutput":2915},"src/components/site-selector.tsx":{"bytesInOutput":950},"src/components/image-upload-dialog.tsx":{"bytesInOutput":12899},"src/components/media-picker.tsx":{"bytesInOutput":5186},"src/lib/admin-config-client.ts":{"bytesInOutput":170},"src/components/post-form.tsx":{"bytesInOutput":14138},"src/editor/tiptap-editor.tsx":{"bytesInOutput":1551},"src/editor/toolbar.tsx":{"bytesInOutput":3047},"src/editor/image-bubble-menu.tsx":{"bytesInOutput":2901},"src/components/site-settings-form.tsx":{"bytesInOutput":7001},"src/components/theme-settings-form.tsx":{"bytesInOutput":16811},"src/components/media-uploader.tsx":{"bytesInOutput":9197}},"bytes":79517},"dist/chunk-TJR3ALRJ.js":{"imports":[{"path":"ampless","kind":"import-statement","external":true}],"exports":["ADMIN_SITE_COOKIE","createMedia","getDictionary","publicMediaUrl","readAdminSiteIdFromCookie","resolveLocale","setAdminCmsConfig","setAdminMediaContext","translate"],"inputs":{"src/locales/en.json":{"bytesInOutput":7204},"src/locales/ja.json":{"bytesInOutput":13701},"src/lib/i18n.ts":{"bytesInOutput":1146},"src/lib/media.ts":{"bytesInOutput":1343},"src/lib/admin-site-client.ts":{"bytesInOutput":683}},"bytes":24385}}}
|
|
1
|
+
{"inputs":{"src/locales/en.json":{"bytes":7568,"imports":[]},"src/locales/ja.json":{"bytes":9476,"imports":[]},"src/lib/i18n.ts":{"bytes":2935,"imports":[{"path":"src/locales/en.json","kind":"import-statement","original":"../locales/en.json"},{"path":"src/locales/ja.json","kind":"import-statement","original":"../locales/ja.json"}],"format":"esm"},"src/lib/media.ts":{"bytes":3109,"imports":[],"format":"esm"},"src/lib/admin-site-cookie.ts":{"bytes":420,"imports":[],"format":"esm"},"src/lib/admin-site.ts":{"bytes":1353,"imports":[{"path":"next/headers","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-cookie.ts","kind":"import-statement","original":"./admin-site-cookie.js"}],"format":"esm"},"src/lib/amplify-server.ts":{"bytes":593,"imports":[{"path":"@aws-amplify/adapter-nextjs","kind":"import-statement","external":true}],"format":"esm"},"src/lib/auth-server.ts":{"bytes":1678,"imports":[{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/auth/server","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":5110,"imports":[{"path":"src/lib/i18n.ts","kind":"import-statement","original":"./lib/i18n.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"./lib/media.js"},{"path":"src/lib/admin-site.ts","kind":"import-statement","original":"./lib/admin-site.js"},{"path":"src/lib/amplify-server.ts","kind":"import-statement","original":"./lib/amplify-server.js"},{"path":"src/lib/auth-server.ts","kind":"import-statement","original":"./lib/auth-server.js"},{"path":"src/lib/i18n.ts","kind":"import-statement","original":"./lib/i18n.js"}],"format":"esm"},"src/api/media-proxy.ts":{"bytes":2196,"imports":[{"path":"next/server","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/storage/server","kind":"import-statement","external":true}],"format":"esm"},"src/api/index.ts":{"bytes":562,"imports":[{"path":"src/api/media-proxy.ts","kind":"import-statement","original":"./media-proxy.js"}],"format":"esm"},"src/components/i18n-provider.tsx":{"bytes":1526,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/lib/i18n.ts","kind":"import-statement","original":"../lib/i18n.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/lib/amplify-client.ts":{"bytes":612,"imports":[{"path":"aws-amplify","kind":"import-statement","external":true}],"format":"esm"},"src/lib/posts-provider.ts":{"bytes":11526,"imports":[{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true}],"format":"esm"},"src/lib/kv-provider.ts":{"bytes":4538,"imports":[{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true}],"format":"esm"},"src/lib/admin-site-client.ts":{"bytes":1745,"imports":[{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-cookie.ts","kind":"import-statement","original":"./admin-site-cookie.js"},{"path":"src/lib/admin-site-cookie.ts","kind":"import-statement","original":"./admin-site-cookie.js"}],"format":"esm"},"src/lib/admin-config-client.ts":{"bytes":626,"imports":[],"format":"esm"},"src/components/admin-providers.tsx":{"bytes":1777,"imports":[{"path":"src/lib/amplify-client.ts","kind":"import-statement","original":"../lib/amplify-client.js"},{"path":"src/lib/posts-provider.ts","kind":"import-statement","original":"../lib/posts-provider.js"},{"path":"src/lib/kv-provider.ts","kind":"import-statement","original":"../lib/kv-provider.js"},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/admin-dashboard.tsx":{"bytes":2180,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/posts-list-view.tsx":{"bytes":3254,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/lib/upload.ts":{"bytes":1490,"imports":[{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"./media.js"}],"format":"esm"},"src/components/image-upload-dialog.tsx":{"bytes":14701,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-image-crop","kind":"import-statement","external":true},{"path":"react-image-crop/dist/ReactCrop.css","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/media-picker.tsx":{"bytes":5261,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/upload.ts","kind":"import-statement","original":"../lib/upload.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/toolbar.tsx":{"bytes":3072,"imports":[{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"../components/media-picker.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/image-bubble-menu.tsx":{"bytes":2716,"imports":[{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/react/menus","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/editor/tiptap-editor.tsx":{"bytes":2323,"imports":[{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-image","kind":"import-statement","external":true},{"path":"src/editor/toolbar.tsx","kind":"import-statement","original":"./toolbar.js"},{"path":"src/editor/image-bubble-menu.tsx","kind":"import-statement","original":"./image-bubble-menu.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/post-form.tsx":{"bytes":14850,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/editor/tiptap-editor.tsx","kind":"import-statement","original":"../editor/tiptap-editor.js"},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"./media-picker.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/new-post-view.tsx":{"bytes":301,"imports":[{"path":"src/components/post-form.tsx","kind":"import-statement","original":"./post-form.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/edit-post-view.tsx":{"bytes":1116,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/components/post-form.tsx","kind":"import-statement","original":"./post-form.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/media-uploader.tsx":{"bytes":10866,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/admin-config-client.ts","kind":"import-statement","original":"../lib/admin-config-client.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/media-view.tsx":{"bytes":306,"imports":[{"path":"src/components/media-uploader.tsx","kind":"import-statement","original":"./media-uploader.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/login-view.tsx":{"bytes":7062,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/lib/theme-actions.ts":{"bytes":858,"imports":[{"path":"next/cache","kind":"import-statement","external":true}],"format":"esm"},"src/components/sidebar.tsx":{"bytes":2723,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/site-selector.tsx":{"bytes":1324,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/site-settings-form.tsx":{"bytes":6542,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/theme-settings-form.tsx":{"bytes":21046,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"src/lib/theme-actions.ts","kind":"import-statement","original":"../lib/theme-actions.js"},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/index.ts":{"bytes":1996,"imports":[{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"./i18n-provider.js"},{"path":"src/components/admin-providers.tsx","kind":"import-statement","original":"./admin-providers.js"},{"path":"src/components/admin-dashboard.tsx","kind":"import-statement","original":"./admin-dashboard.js"},{"path":"src/components/posts-list-view.tsx","kind":"import-statement","original":"./posts-list-view.js"},{"path":"src/components/new-post-view.tsx","kind":"import-statement","original":"./new-post-view.js"},{"path":"src/components/edit-post-view.tsx","kind":"import-statement","original":"./edit-post-view.js"},{"path":"src/components/media-view.tsx","kind":"import-statement","original":"./media-view.js"},{"path":"src/components/login-view.tsx","kind":"import-statement","original":"./login-view.js"},{"path":"src/lib/admin-site-client.ts","kind":"import-statement","original":"../lib/admin-site-client.js"},{"path":"src/lib/media.ts","kind":"import-statement","original":"../lib/media.js"},{"path":"src/lib/upload.ts","kind":"import-statement","original":"../lib/upload.js"},{"path":"src/lib/theme-actions.ts","kind":"import-statement","original":"../lib/theme-actions.js"},{"path":"src/components/sidebar.tsx","kind":"import-statement","original":"./sidebar.js"},{"path":"src/components/site-selector.tsx","kind":"import-statement","original":"./site-selector.js"},{"path":"src/components/post-form.tsx","kind":"import-statement","original":"./post-form.js"},{"path":"src/components/site-settings-form.tsx","kind":"import-statement","original":"./site-settings-form.js"},{"path":"src/components/theme-settings-form.tsx","kind":"import-statement","original":"./theme-settings-form.js"},{"path":"src/components/media-uploader.tsx","kind":"import-statement","original":"./media-uploader.js"},{"path":"src/components/media-picker.tsx","kind":"import-statement","original":"./media-picker.js"},{"path":"src/components/image-upload-dialog.tsx","kind":"import-statement","original":"./image-upload-dialog.js"}],"format":"esm"},"src/pages/admin-layout.tsx":{"bytes":2597,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/components/i18n-provider.tsx","kind":"import-statement","original":"../components/i18n-provider.js"},{"path":"src/components/sidebar.tsx","kind":"import-statement","original":"../components/sidebar.js"},{"path":"src/components/site-selector.tsx","kind":"import-statement","original":"../components/site-selector.js"},{"path":"src/components/admin-providers.tsx","kind":"import-statement","original":"../components/admin-providers.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/dashboard.tsx":{"bytes":448,"imports":[{"path":"src/components/admin-dashboard.tsx","kind":"import-statement","original":"../components/admin-dashboard.js"}],"format":"esm"},"src/pages/posts-list.tsx":{"bytes":382,"imports":[{"path":"src/components/posts-list-view.tsx","kind":"import-statement","original":"../components/posts-list-view.js"}],"format":"esm"},"src/pages/post-new.tsx":{"bytes":385,"imports":[{"path":"src/components/new-post-view.tsx","kind":"import-statement","original":"../components/new-post-view.js"}],"format":"esm"},"src/pages/post-edit.tsx":{"bytes":390,"imports":[{"path":"src/components/edit-post-view.tsx","kind":"import-statement","original":"../components/edit-post-view.js"}],"format":"esm"},"src/pages/media.tsx":{"bytes":381,"imports":[{"path":"src/components/media-view.tsx","kind":"import-statement","original":"../components/media-view.js"}],"format":"esm"},"src/pages/sites-list.tsx":{"bytes":2665,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/site-edit.tsx":{"bytes":2396,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/components/site-settings-form.tsx","kind":"import-statement","original":"../components/site-settings-form.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/site-theme.tsx":{"bytes":2201,"imports":[{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"src/components/theme-settings-form.tsx","kind":"import-statement","original":"../components/theme-settings-form.js"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/pages/login.tsx":{"bytes":400,"imports":[{"path":"src/components/login-view.tsx","kind":"import-statement","original":"../components/login-view.js"}],"format":"esm"},"src/pages/index.ts":{"bytes":1338,"imports":[{"path":"src/pages/admin-layout.tsx","kind":"import-statement","original":"./admin-layout.js"},{"path":"src/pages/dashboard.tsx","kind":"import-statement","original":"./dashboard.js"},{"path":"src/pages/posts-list.tsx","kind":"import-statement","original":"./posts-list.js"},{"path":"src/pages/post-new.tsx","kind":"import-statement","original":"./post-new.js"},{"path":"src/pages/post-edit.tsx","kind":"import-statement","original":"./post-edit.js"},{"path":"src/pages/media.tsx","kind":"import-statement","original":"./media.js"},{"path":"src/pages/sites-list.tsx","kind":"import-statement","original":"./sites-list.js"},{"path":"src/pages/site-edit.tsx","kind":"import-statement","original":"./site-edit.js"},{"path":"src/pages/site-theme.tsx","kind":"import-statement","original":"./site-theme.js"},{"path":"src/pages/login.tsx","kind":"import-statement","original":"./login.js"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"dist/chunk-FI7CM4LH.js","kind":"import-statement"},{"path":"next/headers","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@aws-amplify/adapter-nextjs","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/auth/server","kind":"import-statement","external":true}],"exports":["createAdmin","getDictionary","resolveLocale","translate"],"entryPoint":"src/index.ts","inputs":{"src/lib/admin-site.ts":{"bytesInOutput":732},"src/lib/amplify-server.ts":{"bytesInOutput":164},"src/lib/auth-server.ts":{"bytesInOutput":1165},"src/index.ts":{"bytesInOutput":1312}},"bytes":3667},"dist/api/index.js":{"imports":[{"path":"next/server","kind":"import-statement","external":true},{"path":"next/headers","kind":"import-statement","external":true},{"path":"aws-amplify/storage/server","kind":"import-statement","external":true}],"exports":["createMediaProxyRoute"],"entryPoint":"src/api/index.ts","inputs":{"src/api/media-proxy.ts":{"bytesInOutput":1318},"src/api/index.ts":{"bytesInOutput":0}},"bytes":1380},"dist/components/index.js":{"imports":[{"path":"dist/chunk-7WFZULH7.js","kind":"import-statement"},{"path":"dist/chunk-FI7CM4LH.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"}],"exports":["ADMIN_SITE_COOKIE","AdminDashboard","AdminProviders","EditPostPage","I18nProvider","ImageUploadDialog","LoginPage","MediaPage","MediaPicker","MediaUploader","NewPostPage","PostForm","PostsList","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm","invalidateSiteSettingsCache","publicMediaUrl","readAdminSiteIdFromCookie","sanitizeName","setAdminCmsConfig","setAdminMediaContext","uploadProcessedImage","useLocale","useT"],"entryPoint":"src/components/index.ts","inputs":{"src/components/index.ts":{"bytesInOutput":0}},"bytes":1048},"dist/lib/theme-actions.js":{"imports":[{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"}],"exports":["invalidateSiteSettingsCache"],"entryPoint":"src/lib/theme-actions.ts","inputs":{},"bytes":126},"dist/pages/index.js":{"imports":[{"path":"dist/chunk-7WFZULH7.js","kind":"import-statement"},{"path":"dist/chunk-FI7CM4LH.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["createAdminDashboardPage","createAdminLayout","createEditPostPage","createLoginPage","createMediaPage","createNewPostPage","createPostsListPage","createSiteEditPage","createSiteThemePage","createSitesListPage"],"entryPoint":"src/pages/index.ts","inputs":{"src/pages/admin-layout.tsx":{"bytesInOutput":1263},"src/pages/index.ts":{"bytesInOutput":0},"src/pages/dashboard.tsx":{"bytesInOutput":71},"src/pages/posts-list.tsx":{"bytesInOutput":61},"src/pages/post-new.tsx":{"bytesInOutput":61},"src/pages/post-edit.tsx":{"bytesInOutput":63},"src/pages/media.tsx":{"bytesInOutput":57},"src/pages/sites-list.tsx":{"bytesInOutput":2624},"src/pages/site-edit.tsx":{"bytesInOutput":2296},"src/pages/site-theme.tsx":{"bytesInOutput":1737},"src/pages/login.tsx":{"bytesInOutput":57}},"bytes":9090},"dist/chunk-7WFZULH7.js":{"imports":[{"path":"dist/chunk-FI7CM4LH.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"aws-amplify","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-image-crop","kind":"import-statement","external":true},{"path":"react-image-crop/dist/ReactCrop.css","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"@tiptap/react","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-image","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@tiptap/react/menus","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"ampless/media","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/link","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"aws-amplify/auth","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"next/navigation","kind":"import-statement","external":true},{"path":"ampless","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["AdminDashboard","AdminProviders","EditPostPage","I18nProvider","ImageUploadDialog","LoginPage","MediaPage","MediaPicker","MediaUploader","NewPostPage","PostForm","PostsList","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm","readAdminSiteIdFromCookie","sanitizeName","setAdminCmsConfig","uploadProcessedImage","useLocale","useT"],"inputs":{"src/components/i18n-provider.tsx":{"bytesInOutput":785},"src/lib/admin-site-client.ts":{"bytesInOutput":642},"src/lib/amplify-client.ts":{"bytesInOutput":194},"src/lib/posts-provider.ts":{"bytesInOutput":6430},"src/lib/kv-provider.ts":{"bytesInOutput":2282},"src/lib/admin-config-client.ts":{"bytesInOutput":173},"src/components/admin-providers.tsx":{"bytesInOutput":393},"src/components/admin-dashboard.tsx":{"bytesInOutput":2391},"src/components/posts-list-view.tsx":{"bytesInOutput":3305},"src/lib/upload.ts":{"bytesInOutput":807},"src/components/image-upload-dialog.tsx":{"bytesInOutput":12953},"src/components/media-picker.tsx":{"bytesInOutput":5186},"src/components/post-form.tsx":{"bytesInOutput":14161},"src/editor/tiptap-editor.tsx":{"bytesInOutput":1549},"src/editor/toolbar.tsx":{"bytesInOutput":3038},"src/editor/image-bubble-menu.tsx":{"bytesInOutput":2901},"src/components/new-post-view.tsx":{"bytesInOutput":341},"src/components/edit-post-view.tsx":{"bytesInOutput":1068},"src/components/media-uploader.tsx":{"bytesInOutput":9183},"src/components/media-view.tsx":{"bytesInOutput":338},"src/components/login-view.tsx":{"bytesInOutput":7191},"src/components/sidebar.tsx":{"bytesInOutput":2995},"src/components/site-selector.tsx":{"bytesInOutput":971},"src/components/site-settings-form.tsx":{"bytesInOutput":7017},"src/components/theme-settings-form.tsx":{"bytesInOutput":16827}},"bytes":104622},"dist/chunk-FI7CM4LH.js":{"imports":[],"exports":["ADMIN_SITE_COOKIE","createMedia","getDictionary","publicMediaUrl","resolveLocale","setAdminMediaContext","translate"],"inputs":{"src/locales/en.json":{"bytesInOutput":7204},"src/locales/ja.json":{"bytesInOutput":13701},"src/lib/i18n.ts":{"bytesInOutput":1146},"src/lib/media.ts":{"bytesInOutput":1326},"src/lib/admin-site-cookie.ts":{"bytesInOutput":41}},"bytes":23676},"dist/chunk-VXEVLHGL.js":{"imports":[{"path":"next/cache","kind":"import-statement","external":true}],"exports":["invalidateSiteSettingsCache"],"inputs":{"src/lib/theme-actions.ts":{"bytesInOutput":135}},"bytes":206}}}
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Admin } from '../index.js';
|
|
3
|
+
import { A as AdminDashboard, P as PostsList, N as NewPostPage, E as EditPostPage, M as MediaPage, L as LoginPage } from '../login-view-BKrSZLJu.js';
|
|
3
4
|
import { ThemeManifest } from 'ampless';
|
|
4
5
|
import '@ampless/runtime';
|
|
5
6
|
import '../i18n-ByHM_Bho.js';
|
|
@@ -19,28 +20,44 @@ declare function createAdminLayout(admin: Admin): ({ children }: {
|
|
|
19
20
|
children: React.ReactNode;
|
|
20
21
|
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
21
22
|
|
|
22
|
-
declare function AdminDashboard(): react_jsx_runtime.JSX.Element;
|
|
23
23
|
/**
|
|
24
|
-
* Admin home / dashboard. Lists post counts.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Admin home / dashboard. Lists post counts. The view is a client
|
|
25
|
+
* component (`AdminDashboard`) — this factory module stays server-side
|
|
26
|
+
* so `@ampless/admin/pages` can be imported from Server Components, and
|
|
27
|
+
* the `'use client'` boundary is preserved at the cross-file reference.
|
|
27
28
|
*/
|
|
28
29
|
declare function createAdminDashboardPage(_admin: unknown): typeof AdminDashboard;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Posts list. The view is a client component — this factory module
|
|
33
|
+
* stays server-side so `@ampless/admin/pages` can be imported from
|
|
34
|
+
* Server Components and the `'use client'` boundary is preserved at
|
|
35
|
+
* the cross-file reference.
|
|
36
|
+
*/
|
|
31
37
|
declare function createPostsListPage(_admin: unknown): typeof PostsList;
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
/**
|
|
40
|
+
* New post page. The view is a client component — this factory module
|
|
41
|
+
* stays server-side so `@ampless/admin/pages` can be imported from
|
|
42
|
+
* Server Components and the `'use client'` boundary is preserved at
|
|
43
|
+
* the cross-file reference.
|
|
44
|
+
*/
|
|
34
45
|
declare function createNewPostPage(_admin: unknown): typeof NewPostPage;
|
|
35
46
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Edit post page. The view is a client component — this factory module
|
|
49
|
+
* stays server-side so `@ampless/admin/pages` can be imported from
|
|
50
|
+
* Server Components and the `'use client'` boundary is preserved at
|
|
51
|
+
* the cross-file reference.
|
|
52
|
+
*/
|
|
41
53
|
declare function createEditPostPage(_admin: unknown): typeof EditPostPage;
|
|
42
54
|
|
|
43
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Media library page. The view is a client component — this factory
|
|
57
|
+
* module stays server-side so `@ampless/admin/pages` can be imported
|
|
58
|
+
* from Server Components and the `'use client'` boundary is preserved
|
|
59
|
+
* at the cross-file reference.
|
|
60
|
+
*/
|
|
44
61
|
declare function createMediaPage(_admin: unknown): typeof MediaPage;
|
|
45
62
|
|
|
46
63
|
/**
|
|
@@ -84,7 +101,12 @@ interface ThemeListEntry {
|
|
|
84
101
|
*/
|
|
85
102
|
declare function createSiteThemePage(admin: Admin, themeList: ReadonlyArray<ThemeListEntry>): ({ params }: Props) => Promise<react_jsx_runtime.JSX.Element>;
|
|
86
103
|
|
|
87
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Login / sign-up / reset password page. The view is a client component
|
|
106
|
+
* — this factory module stays server-side so `@ampless/admin/pages` can
|
|
107
|
+
* be imported from Server Components and the `'use client'` boundary is
|
|
108
|
+
* preserved at the cross-file reference.
|
|
109
|
+
*/
|
|
88
110
|
declare function createLoginPage(_admin: unknown): typeof LoginPage;
|
|
89
111
|
|
|
90
112
|
export { createAdminDashboardPage, createAdminLayout, createEditPostPage, createLoginPage, createMediaPage, createNewPostPage, createPostsListPage, createSiteEditPage, createSiteThemePage, createSitesListPage };
|