@ampless/admin 0.2.0-alpha.12 → 0.2.0-alpha.14

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 (30) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/{chunk-BFZODSUT.js → chunk-3E7CZV6A.js} +1 -1
  3. package/dist/{chunk-UOU7KQLR.js → chunk-42LEQGGJ.js} +1 -1
  4. package/dist/{chunk-BYLCQYEQ.js → chunk-6ELFL53G.js} +2 -2
  5. package/dist/{chunk-5OIPGVGG.js → chunk-76C6OJZU.js} +1 -1
  6. package/dist/{chunk-7IJDOT2K.js → chunk-C6XF22TC.js} +2 -2
  7. package/dist/{chunk-XHWECTED.js → chunk-EOKBA3YX.js} +157 -24
  8. package/dist/{chunk-XXJDT6FF.js → chunk-HP4GCYKQ.js} +1 -1
  9. package/dist/{chunk-OFHKZNZS.js → chunk-MXOT7KNC.js} +1 -1
  10. package/dist/{chunk-XZQRPXKN.js → chunk-NZPV2O4C.js} +2 -2
  11. package/dist/{chunk-QVUTNQZH.js → chunk-OWYT37GC.js} +2 -2
  12. package/dist/{chunk-OPQ3SAZJ.js → chunk-QQ2LE36O.js} +16 -2
  13. package/dist/{chunk-4YEBIBFG.js → chunk-XXY2GVLV.js} +1 -1
  14. package/dist/{chunk-GDQC5X46.js → chunk-Y376EYEF.js} +2 -2
  15. package/dist/components/admin-dashboard.js +3 -3
  16. package/dist/components/edit-post-view.js +5 -5
  17. package/dist/components/index.d.ts +9 -3
  18. package/dist/components/index.js +6 -6
  19. package/dist/components/login-view.js +3 -3
  20. package/dist/components/media-view.js +5 -5
  21. package/dist/components/new-post-view.js +5 -5
  22. package/dist/components/posts-list-view.js +3 -3
  23. package/dist/components/users-list-view.js +3 -3
  24. package/dist/{i18n-DzXXcIQQ.d.ts → i18n-OurZuBHX.d.ts} +22 -1
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +1 -1
  27. package/dist/metafile-esm.json +1 -1
  28. package/dist/pages/index.d.ts +1 -1
  29. package/dist/pages/index.js +15 -14
  30. package/package.json +3 -3
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server';
2
2
  import { Admin } from '../index.js';
3
3
  import 'ampless';
4
4
  import '@ampless/runtime';
5
- import '../i18n-DzXXcIQQ.js';
5
+ import '../i18n-OurZuBHX.js';
6
6
  import '@aws-amplify/adapter-nextjs';
7
7
 
8
8
  /**
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-TZWSXAHD.js";
5
5
  import {
6
6
  useT
7
- } from "./chunk-OFHKZNZS.js";
7
+ } from "./chunk-MXOT7KNC.js";
8
8
 
9
9
  // src/components/posts-list-view.tsx
10
10
  import { useEffect, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  useT
4
- } from "./chunk-OFHKZNZS.js";
4
+ } from "./chunk-MXOT7KNC.js";
5
5
 
6
6
  // src/components/users-list-view.tsx
7
7
  import { useEffect, useState } from "react";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  MediaUploader
4
- } from "./chunk-GDQC5X46.js";
4
+ } from "./chunk-Y376EYEF.js";
5
5
  import {
6
6
  useT
7
- } from "./chunk-OFHKZNZS.js";
7
+ } from "./chunk-MXOT7KNC.js";
8
8
 
9
9
  // src/components/media-view.tsx
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  useT
4
- } from "./chunk-OFHKZNZS.js";
4
+ } from "./chunk-MXOT7KNC.js";
5
5
 
6
6
  // src/components/login-view.tsx
7
7
  import { useState } from "react";
@@ -5,13 +5,13 @@ import {
5
5
  import {
6
6
  ImageUploadDialog,
7
7
  getMediaProcessingDefaults
8
- } from "./chunk-XXJDT6FF.js";
8
+ } from "./chunk-HP4GCYKQ.js";
9
9
  import {
10
10
  publicMediaUrl
11
11
  } from "./chunk-2ITWLRYF.js";
12
12
  import {
13
13
  useT
14
- } from "./chunk-OFHKZNZS.js";
14
+ } from "./chunk-MXOT7KNC.js";
15
15
 
16
16
  // src/lib/upload.ts
17
17
  import { uploadData } from "aws-amplify/storage";
@@ -10,14 +10,14 @@ import {
10
10
  } from "./chunk-7IR4F7GA.js";
11
11
  import {
12
12
  setAdminCmsConfigClient
13
- } from "./chunk-XXJDT6FF.js";
13
+ } from "./chunk-HP4GCYKQ.js";
14
14
  import {
15
15
  setAdminMediaContext
16
16
  } from "./chunk-2ITWLRYF.js";
17
17
  import {
18
18
  useLocale,
19
19
  useT
20
- } from "./chunk-OFHKZNZS.js";
20
+ } from "./chunk-MXOT7KNC.js";
21
21
 
22
22
  // src/lib/amplify-client.ts
23
23
  import { Amplify } from "aws-amplify";
@@ -642,7 +642,7 @@ function SiteSettingsForm({ siteId, initial, fallback }) {
642
642
  }
643
643
 
644
644
  // src/components/theme-settings-form.tsx
645
- import { useState as useState3 } from "react";
645
+ import { useEffect as useEffect2, useState as useState3 } from "react";
646
646
  import { useRouter as useRouter3 } from "next/navigation";
647
647
  import {
648
648
  setSiteSetting as setSiteSetting2,
@@ -651,8 +651,15 @@ import {
651
651
  validateThemeValue,
652
652
  resolveLocalized,
653
653
  parseLinkList,
654
- stringifyLinkList
654
+ stringifyLinkList,
655
+ parseColorPair,
656
+ formatColorPair
655
657
  } from "ampless";
658
+ import {
659
+ COLOR_SCHEME_SETTING_KEY,
660
+ DEFAULT_COLOR_SCHEME,
661
+ validateColorScheme
662
+ } from "@ampless/runtime";
656
663
  import { Button as Button3, Input as Input2, Label as Label2 } from "@ampless/runtime/ui";
657
664
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
658
665
  var CACHE_REBUILD_DELAY_MS = 8e3;
@@ -661,7 +668,8 @@ function ThemeSettingsForm({
661
668
  manifest,
662
669
  activeTheme,
663
670
  themeOptions,
664
- initial
671
+ initial,
672
+ initialColorScheme
665
673
  }) {
666
674
  const router = useRouter3();
667
675
  const t = useT();
@@ -674,6 +682,10 @@ function ThemeSettingsForm({
674
682
  const [error, setError] = useState3(null);
675
683
  const [info, setInfo] = useState3(null);
676
684
  const [invalid, setInvalid] = useState3({});
685
+ const [colorScheme, setColorScheme] = useState3(
686
+ initialColorScheme ?? DEFAULT_COLOR_SCHEME
687
+ );
688
+ const [colorSchemeTouched, setColorSchemeTouched] = useState3(false);
677
689
  function update(key, value) {
678
690
  setState((prev) => ({
679
691
  values: { ...prev.values, [key]: value },
@@ -740,6 +752,13 @@ function ThemeSettingsForm({
740
752
  }
741
753
  writes.push(setSiteSetting2(siteId, storeKey, validated));
742
754
  }
755
+ if (colorSchemeTouched) {
756
+ if (colorScheme === DEFAULT_COLOR_SCHEME) {
757
+ writes.push(deleteSiteSetting(siteId, COLOR_SCHEME_SETTING_KEY));
758
+ } else {
759
+ writes.push(setSiteSetting2(siteId, COLOR_SCHEME_SETTING_KEY, colorScheme));
760
+ }
761
+ }
743
762
  if (Object.keys(newInvalid).length > 0) {
744
763
  setInvalid(newInvalid);
745
764
  setSaving(false);
@@ -750,6 +769,7 @@ function ThemeSettingsForm({
750
769
  await Promise.all(writes);
751
770
  setInfo(t("theme.saved"));
752
771
  setState((prev) => ({ values: prev.values, touched: {} }));
772
+ setColorSchemeTouched(false);
753
773
  scheduleCacheInvalidation();
754
774
  } catch (err) {
755
775
  console.error("[theme] save failed", err);
@@ -802,11 +822,11 @@ function ThemeSettingsForm({
802
822
  /* @__PURE__ */ jsx5(
803
823
  "iframe",
804
824
  {
805
- src: `/?previewTheme=${encodeURIComponent(pendingTheme)}`,
825
+ src: `/?previewTheme=${encodeURIComponent(pendingTheme)}&previewColorScheme=${encodeURIComponent(colorScheme)}`,
806
826
  title: t("theme.previewLabel"),
807
827
  className: "h-[600px] w-full rounded-md border bg-[var(--background)]"
808
828
  },
809
- pendingTheme
829
+ `${pendingTheme}-${colorScheme}`
810
830
  ),
811
831
  /* @__PURE__ */ jsx5("p", { className: "text-xs text-muted-foreground", children: t("theme.previewHint") })
812
832
  ] }),
@@ -818,6 +838,27 @@ function ThemeSettingsForm({
818
838
  manifest.description && /* @__PURE__ */ jsx5("p", { className: "text-sm text-muted-foreground", children: resolveLocalized(manifest.description, locale) }),
819
839
  /* @__PURE__ */ jsx5("p", { className: "mt-1 text-xs text-muted-foreground", children: t("theme.customizationHint") })
820
840
  ] }),
841
+ /* @__PURE__ */ jsxs4("fieldset", { className: "space-y-2", children: [
842
+ /* @__PURE__ */ jsx5(Label2, { htmlFor: "color-scheme", className: "text-sm font-medium", children: t("theme.colorScheme.label") }),
843
+ /* @__PURE__ */ jsxs4(
844
+ "select",
845
+ {
846
+ id: "color-scheme",
847
+ className: "w-full rounded-md border bg-background px-2 py-1.5 text-sm",
848
+ value: colorScheme,
849
+ onChange: (e) => {
850
+ setColorScheme(validateColorScheme(e.target.value));
851
+ setColorSchemeTouched(true);
852
+ },
853
+ children: [
854
+ /* @__PURE__ */ jsx5("option", { value: "auto", children: t("theme.colorScheme.auto") }),
855
+ /* @__PURE__ */ jsx5("option", { value: "light", children: t("theme.colorScheme.light") }),
856
+ /* @__PURE__ */ jsx5("option", { value: "dark", children: t("theme.colorScheme.dark") })
857
+ ]
858
+ }
859
+ ),
860
+ /* @__PURE__ */ jsx5("p", { className: "text-xs text-muted-foreground", children: t("theme.colorScheme.hint") })
861
+ ] }),
821
862
  groups.map(({ key, name, fields }) => /* @__PURE__ */ jsxs4("fieldset", { className: "space-y-4", children: [
822
863
  /* @__PURE__ */ jsx5("legend", { className: "text-sm font-medium uppercase tracking-wide text-muted-foreground", children: resolveLocalized(name, locale) }),
823
864
  fields.map((field) => /* @__PURE__ */ jsx5(
@@ -1059,11 +1100,79 @@ function ColorField({
1059
1100
  invalid,
1060
1101
  onChange
1061
1102
  }) {
1062
- const effective = value || field.default;
1063
- const hex = useColorAsHex(effective);
1103
+ const parsed = parseColorPair(value);
1104
+ const lightInput = parsed.dark !== null ? parsed.light : value;
1105
+ const darkInput = parsed.dark ?? "";
1106
+ const [showDark, setShowDark] = useState3(parsed.dark !== null);
1107
+ function emit(nextLight, nextDark) {
1108
+ if (!nextDark.trim()) {
1109
+ onChange(nextLight);
1110
+ return;
1111
+ }
1112
+ onChange(formatColorPair(nextLight || field.default, nextDark));
1113
+ }
1114
+ const lightEffective = lightInput || field.default;
1115
+ const darkEffective = darkInput || lightEffective;
1064
1116
  return /* @__PURE__ */ jsxs4("div", { className: "space-y-2", children: [
1065
1117
  labelEl,
1066
1118
  description,
1119
+ /* @__PURE__ */ jsx5(
1120
+ ColorRow,
1121
+ {
1122
+ id,
1123
+ label: showDark ? "Light" : void 0,
1124
+ value: lightInput,
1125
+ effective: lightEffective,
1126
+ placeholder: field.default,
1127
+ ariaLabel: `${typeof field.label === "string" ? field.label : id} (light)`,
1128
+ invalid,
1129
+ onChange: (v) => emit(v, darkInput)
1130
+ }
1131
+ ),
1132
+ showDark ? /* @__PURE__ */ jsx5(
1133
+ ColorRow,
1134
+ {
1135
+ id: `${id}-dark`,
1136
+ label: "Dark",
1137
+ value: darkInput,
1138
+ effective: darkEffective,
1139
+ placeholder: lightEffective,
1140
+ ariaLabel: `${typeof field.label === "string" ? field.label : id} (dark)`,
1141
+ invalid,
1142
+ onChange: (v) => emit(lightInput, v)
1143
+ }
1144
+ ) : null,
1145
+ /* @__PURE__ */ jsx5("div", { className: "flex items-center gap-3 text-xs", children: /* @__PURE__ */ jsx5(
1146
+ "button",
1147
+ {
1148
+ type: "button",
1149
+ className: "text-muted-foreground underline-offset-2 hover:underline",
1150
+ onClick: () => {
1151
+ if (showDark) {
1152
+ setShowDark(false);
1153
+ emit(lightInput, "");
1154
+ } else {
1155
+ setShowDark(true);
1156
+ }
1157
+ },
1158
+ children: showDark ? "\u2212 Remove dark variant" : "+ Add dark variant (optional)"
1159
+ }
1160
+ ) })
1161
+ ] });
1162
+ }
1163
+ function ColorRow({
1164
+ id,
1165
+ label,
1166
+ value,
1167
+ effective,
1168
+ placeholder,
1169
+ ariaLabel,
1170
+ invalid,
1171
+ onChange
1172
+ }) {
1173
+ const hex = useColorAsHex(effective);
1174
+ return /* @__PURE__ */ jsxs4("div", { className: "space-y-1", children: [
1175
+ label ? /* @__PURE__ */ jsx5(Label2, { htmlFor: id, className: "text-xs uppercase tracking-wide text-muted-foreground", children: label }) : null,
1067
1176
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
1068
1177
  /* @__PURE__ */ jsx5(
1069
1178
  "input",
@@ -1072,7 +1181,7 @@ function ColorField({
1072
1181
  value: hex,
1073
1182
  onChange: (e) => onChange(e.target.value),
1074
1183
  className: "h-9 w-12 cursor-pointer rounded border border-input bg-background p-0",
1075
- "aria-label": `${field.label} swatch`
1184
+ "aria-label": `${ariaLabel} swatch`
1076
1185
  }
1077
1186
  ),
1078
1187
  /* @__PURE__ */ jsx5(
@@ -1080,7 +1189,7 @@ function ColorField({
1080
1189
  {
1081
1190
  id,
1082
1191
  value,
1083
- placeholder: field.default,
1192
+ placeholder,
1084
1193
  onChange: (e) => onChange(e.target.value),
1085
1194
  "aria-invalid": invalid,
1086
1195
  className: "font-mono text-xs"
@@ -1101,19 +1210,43 @@ function ColorField({
1101
1210
  ] });
1102
1211
  }
1103
1212
  function useColorAsHex(value) {
1104
- if (typeof document === "undefined") return "#000000";
1105
- const m = /^#([0-9a-fA-F]{6})$/.exec(value);
1106
- if (m) return value.toLowerCase();
1107
- try {
1108
- const ctx = document.createElement("canvas").getContext("2d");
1109
- if (!ctx) return "#000000";
1110
- ctx.fillStyle = "#000000";
1111
- ctx.fillStyle = value;
1112
- const out = ctx.fillStyle;
1113
- return /^#[0-9a-fA-F]{6}$/.test(out) ? out : "#000000";
1114
- } catch {
1115
- return "#000000";
1116
- }
1213
+ const [hex, setHex] = useState3(() => directHex(value) ?? "#000000");
1214
+ useEffect2(() => {
1215
+ const direct = directHex(value);
1216
+ if (direct) {
1217
+ setHex(direct);
1218
+ return;
1219
+ }
1220
+ if (typeof document === "undefined") return;
1221
+ try {
1222
+ const el = document.createElement("span");
1223
+ el.style.color = value;
1224
+ el.style.display = "none";
1225
+ document.body.appendChild(el);
1226
+ const computed = getComputedStyle(el).color;
1227
+ document.body.removeChild(el);
1228
+ const next = rgbStringToHex(computed);
1229
+ if (next) setHex(next);
1230
+ } catch {
1231
+ }
1232
+ }, [value]);
1233
+ return hex;
1234
+ }
1235
+ function directHex(value) {
1236
+ const m = /^#([0-9a-fA-F]{6})$/.exec(value.trim());
1237
+ return m ? value.trim().toLowerCase() : null;
1238
+ }
1239
+ function rgbStringToHex(rgb) {
1240
+ const m = /^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/.exec(rgb);
1241
+ if (!m) return null;
1242
+ const r = clampToHex(m[1]);
1243
+ const g = clampToHex(m[2]);
1244
+ const b = clampToHex(m[3]);
1245
+ return `#${r}${g}${b}`;
1246
+ }
1247
+ function clampToHex(s) {
1248
+ const n = Math.max(0, Math.min(255, parseInt(s, 10)));
1249
+ return n.toString(16).padStart(2, "0");
1117
1250
  }
1118
1251
 
1119
1252
  export {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  useT
4
- } from "./chunk-OFHKZNZS.js";
4
+ } from "./chunk-MXOT7KNC.js";
5
5
 
6
6
  // src/components/image-upload-dialog.tsx
7
7
  import { useEffect, useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  translate
4
- } from "./chunk-OPQ3SAZJ.js";
4
+ } from "./chunk-QQ2LE36O.js";
5
5
 
6
6
  // src/components/i18n-provider.tsx
7
7
  import { createContext, useContext, useMemo } from "react";
@@ -1,13 +1,13 @@
1
1
  'use client';
2
2
  import {
3
3
  PostForm
4
- } from "./chunk-7IJDOT2K.js";
4
+ } from "./chunk-C6XF22TC.js";
5
5
  import {
6
6
  readAdminSiteIdFromCookie
7
7
  } from "./chunk-TZWSXAHD.js";
8
8
  import {
9
9
  useT
10
- } from "./chunk-OFHKZNZS.js";
10
+ } from "./chunk-MXOT7KNC.js";
11
11
 
12
12
  // src/components/edit-post-view.tsx
13
13
  import { useEffect, useState, use } from "react";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  PostForm
4
- } from "./chunk-7IJDOT2K.js";
4
+ } from "./chunk-C6XF22TC.js";
5
5
  import {
6
6
  useT
7
- } from "./chunk-OFHKZNZS.js";
7
+ } from "./chunk-MXOT7KNC.js";
8
8
 
9
9
  // src/components/new-post-view.tsx
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -200,7 +200,14 @@ var en_default = {
200
200
  customizationHeading: "{theme} customization",
201
201
  customizationHint: "Empty input resets to the manifest default.",
202
202
  lengthHelp: "CSS length, e.g. 0.5rem, 4px.",
203
- imagePlaceholder: "https://\u2026 or /media/\u2026"
203
+ imagePlaceholder: "https://\u2026 or /media/\u2026",
204
+ colorScheme: {
205
+ label: "Color scheme",
206
+ hint: "How the public site picks between the theme's light and dark token palettes.",
207
+ auto: "Auto (follow visitor's system)",
208
+ light: "Light only",
209
+ dark: "Dark only"
210
+ }
204
211
  },
205
212
  editor: {
206
213
  linkPrompt: "URL",
@@ -471,7 +478,14 @@ var ja_default = {
471
478
  customizationHeading: "{theme}\u306E\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",
472
479
  customizationHint: "\u7A7A\u6B04\u306B\u3059\u308B\u3068\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u5024\u306B\u623B\u308A\u307E\u3059\u3002",
473
480
  lengthHelp: "CSS\u306E\u9577\u3055\u3002\u4F8B: 0.5rem, 4px\u3002",
474
- imagePlaceholder: "https://\u2026 \u307E\u305F\u306F /media/\u2026"
481
+ imagePlaceholder: "https://\u2026 \u307E\u305F\u306F /media/\u2026",
482
+ colorScheme: {
483
+ label: "\u30AB\u30E9\u30FC\u30B9\u30AD\u30FC\u30E0",
484
+ hint: "\u516C\u958B\u30B5\u30A4\u30C8\u3067\u30C6\u30FC\u30DE\u306E\u30E9\u30A4\u30C8/\u30C0\u30FC\u30AF\u4E21\u30D1\u30EC\u30C3\u30C8\u306E\u3069\u3061\u3089\u3092\u4F7F\u3046\u304B\u306E\u9078\u629E\u3002",
485
+ auto: "\u81EA\u52D5 (\u95B2\u89A7\u8005\u306EOS\u8A2D\u5B9A\u306B\u8FFD\u5F93)",
486
+ light: "\u30E9\u30A4\u30C8\u56FA\u5B9A",
487
+ dark: "\u30C0\u30FC\u30AF\u56FA\u5B9A"
488
+ }
475
489
  },
476
490
  editor: {
477
491
  linkPrompt: "URL",
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  useT
4
- } from "./chunk-OFHKZNZS.js";
4
+ } from "./chunk-MXOT7KNC.js";
5
5
 
6
6
  // src/components/admin-dashboard.tsx
7
7
  import { useEffect, useState } from "react";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  ImageUploadDialog,
4
4
  getMediaProcessingDefaults
5
- } from "./chunk-XXJDT6FF.js";
5
+ } from "./chunk-HP4GCYKQ.js";
6
6
  import {
7
7
  publicMediaUrl
8
8
  } from "./chunk-2ITWLRYF.js";
9
9
  import {
10
10
  useT
11
- } from "./chunk-OFHKZNZS.js";
11
+ } from "./chunk-MXOT7KNC.js";
12
12
 
13
13
  // src/components/media-uploader.tsx
14
14
  import { useState, useEffect, useCallback, useRef } from "react";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  AdminDashboard
4
- } from "../chunk-4YEBIBFG.js";
5
- import "../chunk-OFHKZNZS.js";
6
- import "../chunk-OPQ3SAZJ.js";
4
+ } from "../chunk-XXY2GVLV.js";
5
+ import "../chunk-MXOT7KNC.js";
6
+ import "../chunk-QQ2LE36O.js";
7
7
  export {
8
8
  AdminDashboard
9
9
  };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  EditPostPage
4
- } from "../chunk-XZQRPXKN.js";
5
- import "../chunk-7IJDOT2K.js";
4
+ } from "../chunk-NZPV2O4C.js";
5
+ import "../chunk-C6XF22TC.js";
6
6
  import "../chunk-TZWSXAHD.js";
7
7
  import "../chunk-7IR4F7GA.js";
8
- import "../chunk-XXJDT6FF.js";
8
+ import "../chunk-HP4GCYKQ.js";
9
9
  import "../chunk-2ITWLRYF.js";
10
- import "../chunk-OFHKZNZS.js";
11
- import "../chunk-OPQ3SAZJ.js";
10
+ import "../chunk-MXOT7KNC.js";
11
+ import "../chunk-QQ2LE36O.js";
12
12
  export {
13
13
  EditPostPage
14
14
  };
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { L as Locale, D as Dictionary } from '../i18n-DzXXcIQQ.js';
2
+ import { L as Locale, D as Dictionary } from '../i18n-OurZuBHX.js';
3
3
  import { Config, Post, ThemeManifest, LocalizedString, MediaProcessingDefaults } from 'ampless';
4
- import { AmplessOutputs } from '@ampless/runtime';
4
+ import { AmplessOutputs, ColorScheme } from '@ampless/runtime';
5
5
  import { ProcessOptions } from 'ampless/media';
6
6
  export { invalidateSiteSettingsCache } from '../lib/theme-actions.js';
7
7
 
@@ -159,8 +159,14 @@ interface Props {
159
159
  themeOptions: ThemeOption[];
160
160
  /** Resolved values currently shown to the user (overrides ?? defaults). */
161
161
  initial: Record<string, string>;
162
+ /**
163
+ * Per-site color-scheme override loaded from the runtime. Independent
164
+ * of the manifest (it's a site-wide concern, not theme-specific).
165
+ * Defaults to `'auto'` when not provided.
166
+ */
167
+ initialColorScheme?: ColorScheme;
162
168
  }
163
- declare function ThemeSettingsForm({ siteId, manifest, activeTheme, themeOptions, initial, }: Props): react_jsx_runtime.JSX.Element;
169
+ declare function ThemeSettingsForm({ siteId, manifest, activeTheme, themeOptions, initial, initialColorScheme, }: Props): react_jsx_runtime.JSX.Element;
164
170
 
165
171
  declare function MediaUploader(): react_jsx_runtime.JSX.Element;
166
172
 
@@ -5,19 +5,19 @@ import {
5
5
  SiteSelector,
6
6
  SiteSettingsForm,
7
7
  ThemeSettingsForm
8
- } from "../chunk-XHWECTED.js";
8
+ } from "../chunk-EOKBA3YX.js";
9
9
  import {
10
10
  invalidateSiteSettingsCache
11
11
  } from "../chunk-VXEVLHGL.js";
12
12
  import {
13
13
  MediaUploader
14
- } from "../chunk-GDQC5X46.js";
14
+ } from "../chunk-Y376EYEF.js";
15
15
  import {
16
16
  MediaPicker,
17
17
  PostForm,
18
18
  sanitizeName,
19
19
  uploadProcessedImage
20
- } from "../chunk-7IJDOT2K.js";
20
+ } from "../chunk-C6XF22TC.js";
21
21
  import {
22
22
  readAdminSiteIdFromCookie,
23
23
  setAdminCmsConfig
@@ -27,7 +27,7 @@ import {
27
27
  } from "../chunk-7IR4F7GA.js";
28
28
  import {
29
29
  ImageUploadDialog
30
- } from "../chunk-XXJDT6FF.js";
30
+ } from "../chunk-HP4GCYKQ.js";
31
31
  import {
32
32
  publicMediaUrl,
33
33
  setAdminMediaContext
@@ -36,8 +36,8 @@ import {
36
36
  I18nProvider,
37
37
  useLocale,
38
38
  useT
39
- } from "../chunk-OFHKZNZS.js";
40
- import "../chunk-OPQ3SAZJ.js";
39
+ } from "../chunk-MXOT7KNC.js";
40
+ import "../chunk-QQ2LE36O.js";
41
41
  export {
42
42
  ADMIN_SITE_COOKIE,
43
43
  AdminProviders,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  LoginPage
4
- } from "../chunk-5OIPGVGG.js";
5
- import "../chunk-OFHKZNZS.js";
6
- import "../chunk-OPQ3SAZJ.js";
4
+ } from "../chunk-76C6OJZU.js";
5
+ import "../chunk-MXOT7KNC.js";
6
+ import "../chunk-QQ2LE36O.js";
7
7
  export {
8
8
  LoginPage
9
9
  };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  MediaPage
4
- } from "../chunk-BYLCQYEQ.js";
5
- import "../chunk-GDQC5X46.js";
6
- import "../chunk-XXJDT6FF.js";
4
+ } from "../chunk-6ELFL53G.js";
5
+ import "../chunk-Y376EYEF.js";
6
+ import "../chunk-HP4GCYKQ.js";
7
7
  import "../chunk-2ITWLRYF.js";
8
- import "../chunk-OFHKZNZS.js";
9
- import "../chunk-OPQ3SAZJ.js";
8
+ import "../chunk-MXOT7KNC.js";
9
+ import "../chunk-QQ2LE36O.js";
10
10
  export {
11
11
  MediaPage
12
12
  };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  NewPostPage
4
- } from "../chunk-QVUTNQZH.js";
5
- import "../chunk-7IJDOT2K.js";
4
+ } from "../chunk-OWYT37GC.js";
5
+ import "../chunk-C6XF22TC.js";
6
6
  import "../chunk-TZWSXAHD.js";
7
7
  import "../chunk-7IR4F7GA.js";
8
- import "../chunk-XXJDT6FF.js";
8
+ import "../chunk-HP4GCYKQ.js";
9
9
  import "../chunk-2ITWLRYF.js";
10
- import "../chunk-OFHKZNZS.js";
11
- import "../chunk-OPQ3SAZJ.js";
10
+ import "../chunk-MXOT7KNC.js";
11
+ import "../chunk-QQ2LE36O.js";
12
12
  export {
13
13
  NewPostPage
14
14
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  PostsList
4
- } from "../chunk-BFZODSUT.js";
4
+ } from "../chunk-3E7CZV6A.js";
5
5
  import "../chunk-TZWSXAHD.js";
6
6
  import "../chunk-7IR4F7GA.js";
7
- import "../chunk-OFHKZNZS.js";
8
- import "../chunk-OPQ3SAZJ.js";
7
+ import "../chunk-MXOT7KNC.js";
8
+ import "../chunk-QQ2LE36O.js";
9
9
  export {
10
10
  PostsList
11
11
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  UsersListView
4
- } from "../chunk-UOU7KQLR.js";
5
- import "../chunk-OFHKZNZS.js";
6
- import "../chunk-OPQ3SAZJ.js";
4
+ } from "../chunk-42LEQGGJ.js";
5
+ import "../chunk-MXOT7KNC.js";
6
+ import "../chunk-QQ2LE36O.js";
7
7
  export {
8
8
  UsersListView
9
9
  };
@@ -198,7 +198,14 @@ var theme = {
198
198
  customizationHeading: "{theme} customization",
199
199
  customizationHint: "Empty input resets to the manifest default.",
200
200
  lengthHelp: "CSS length, e.g. 0.5rem, 4px.",
201
- imagePlaceholder: "https://… or /media/…"
201
+ imagePlaceholder: "https://… or /media/…",
202
+ colorScheme: {
203
+ label: "Color scheme",
204
+ hint: "How the public site picks between the theme's light and dark token palettes.",
205
+ auto: "Auto (follow visitor's system)",
206
+ light: "Light only",
207
+ dark: "Dark only"
208
+ }
202
209
  };
203
210
  var editor = {
204
211
  linkPrompt: "URL",
@@ -482,6 +489,13 @@ declare const dictionaries: {
482
489
  customizationHint: string;
483
490
  lengthHelp: string;
484
491
  imagePlaceholder: string;
492
+ colorScheme: {
493
+ label: string;
494
+ hint: string;
495
+ auto: string;
496
+ light: string;
497
+ dark: string;
498
+ };
485
499
  };
486
500
  editor: {
487
501
  linkPrompt: string;
@@ -751,6 +765,13 @@ declare const dictionaries: {
751
765
  customizationHint: string;
752
766
  lengthHelp: string;
753
767
  imagePlaceholder: string;
768
+ colorScheme: {
769
+ label: string;
770
+ hint: string;
771
+ auto: string;
772
+ light: string;
773
+ dark: string;
774
+ };
754
775
  };
755
776
  editor: {
756
777
  linkPrompt: string;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Config } from 'ampless';
2
2
  import { AmplessOutputs, EffectiveSiteSettings, EffectiveThemeConfig, Ampless } from '@ampless/runtime';
3
- import { L as Locale, D as Dictionary } from './i18n-DzXXcIQQ.js';
4
- export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-DzXXcIQQ.js';
3
+ import { L as Locale, D as Dictionary } from './i18n-OurZuBHX.js';
4
+ export { A as AdminLocaleStrings, g as getDictionary, r as resolveLocale, t as translate } from './i18n-OurZuBHX.js';
5
5
  import * as _aws_amplify_adapter_nextjs from '@aws-amplify/adapter-nextjs';
6
6
 
7
7
  /**
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  getDictionary,
9
9
  resolveLocale,
10
10
  translate
11
- } from "./chunk-OPQ3SAZJ.js";
11
+ } from "./chunk-QQ2LE36O.js";
12
12
 
13
13
  // src/lib/admin-site.ts
14
14
  import { cookies } from "next/headers";
@@ -1 +1 @@
1
- {"inputs":{"src/locales/en.json":{"bytes":9501,"imports":[]},"src/locales/ja.json":{"bytes":11939,"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":6334,"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/components/admin-dashboard.tsx":{"bytes":2256,"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/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/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/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/lib/static-bundle.ts":{"bytes":12989,"imports":[{"path":"jszip","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true}],"format":"esm"},"src/components/static-uploader.tsx":{"bytes":8959,"imports":[{"path":"react","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/static-bundle.ts","kind":"import-statement","original":"../lib/static-bundle.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/post-form.tsx":{"bytes":19879,"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/static-uploader.tsx","kind":"import-statement","original":"./static-uploader.js"},{"path":"src/lib/static-bundle.ts","kind":"import-statement","original":"../lib/static-bundle.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":1190,"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/lib/amplify-client.ts":{"bytes":612,"imports":[{"path":"aws-amplify","kind":"import-statement","external":true}],"format":"esm"},"src/lib/posts-provider.ts":{"bytes":12504,"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/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/lib/theme-actions.ts":{"bytes":858,"imports":[{"path":"next/cache","kind":"import-statement","external":true}],"format":"esm"},"src/components/sidebar.tsx":{"bytes":5411,"imports":[{"path":"react","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":"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/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":1841,"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/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/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/components/media-view.tsx":{"bytes":351,"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/new-post-view.tsx":{"bytes":346,"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/posts-list-view.tsx":{"bytes":3331,"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/components/users-list-view.tsx":{"bytes":7042,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/api","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/pages/admin-layout.tsx":{"bytes":2699,"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":2742,"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":2441,"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":2246,"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/users-list.tsx":{"bytes":647,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/components/users-list-view.tsx","kind":"import-statement","original":"../components/users-list-view.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":1392,"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/users-list.tsx","kind":"import-statement","original":"./users-list.js"},{"path":"src/pages/login.tsx","kind":"import-statement","original":"./login.js"}],"format":"esm"}},"outputs":{"dist/components/posts-list-view.js":{"imports":[{"path":"dist/chunk-BFZODSUT.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["PostsList"],"entryPoint":"src/components/posts-list-view.tsx","inputs":{},"bytes":214},"dist/components/users-list-view.js":{"imports":[{"path":"dist/chunk-UOU7KQLR.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["UsersListView"],"entryPoint":"src/components/users-list-view.tsx","inputs":{},"bytes":160},"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-BFZODSUT.js","kind":"import-statement"},{"path":"dist/chunk-UOU7KQLR.js","kind":"import-statement"},{"path":"dist/chunk-4YEBIBFG.js","kind":"import-statement"},{"path":"dist/chunk-XZQRPXKN.js","kind":"import-statement"},{"path":"dist/chunk-XHWECTED.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-5OIPGVGG.js","kind":"import-statement"},{"path":"dist/chunk-BYLCQYEQ.js","kind":"import-statement"},{"path":"dist/chunk-GDQC5X46.js","kind":"import-statement"},{"path":"dist/chunk-QVUTNQZH.js","kind":"import-statement"},{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.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},{"path":"next/navigation","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","createUsersListPage"],"entryPoint":"src/pages/index.ts","inputs":{"src/pages/admin-layout.tsx":{"bytesInOutput":1373},"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":2701},"src/pages/site-edit.tsx":{"bytesInOutput":2341},"src/pages/site-theme.tsx":{"bytesInOutput":1782},"src/pages/users-list.tsx":{"bytesInOutput":404},"src/pages/login.tsx":{"bytesInOutput":57}},"bytes":10338},"dist/chunk-BFZODSUT.js":{"imports":[{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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}],"exports":["PostsList"],"inputs":{"src/components/posts-list-view.tsx":{"bytesInOutput":3277}},"bytes":3454},"dist/chunk-UOU7KQLR.js":{"imports":[{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["UsersListView"],"inputs":{"src/components/users-list-view.tsx":{"bytesInOutput":5995}},"bytes":6109},"dist/index.js":{"imports":[{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.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":1664}},"bytes":4095},"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/admin-dashboard.js":{"imports":[{"path":"dist/chunk-4YEBIBFG.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["AdminDashboard"],"entryPoint":"src/components/admin-dashboard.tsx","inputs":{},"bytes":162},"dist/chunk-4YEBIBFG.js":{"imports":[{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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}],"exports":["AdminDashboard"],"inputs":{"src/components/admin-dashboard.tsx":{"bytesInOutput":2444}},"bytes":2559},"dist/components/edit-post-view.js":{"imports":[{"path":"dist/chunk-XZQRPXKN.js","kind":"import-statement"},{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["EditPostPage"],"entryPoint":"src/components/edit-post-view.tsx","inputs":{},"bytes":313},"dist/chunk-XZQRPXKN.js":{"imports":[{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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}],"exports":["EditPostPage"],"inputs":{"src/components/edit-post-view.tsx":{"bytesInOutput":1084}},"bytes":1313},"dist/components/index.js":{"imports":[{"path":"dist/chunk-XHWECTED.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-GDQC5X46.js","kind":"import-statement"},{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["ADMIN_SITE_COOKIE","AdminProviders","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":1137},"dist/chunk-XHWECTED.js":{"imports":[{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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":"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":["AdminProviders","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm"],"inputs":{"src/lib/amplify-client.ts":{"bytesInOutput":194},"src/lib/posts-provider.ts":{"bytesInOutput":7000},"src/lib/kv-provider.ts":{"bytesInOutput":2282},"src/components/admin-providers.tsx":{"bytesInOutput":369},"src/components/sidebar.tsx":{"bytesInOutput":5385},"src/components/site-selector.tsx":{"bytesInOutput":950},"src/components/site-settings-form.tsx":{"bytesInOutput":6930},"src/components/theme-settings-form.tsx":{"bytesInOutput":16747}},"bytes":40607},"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},"dist/components/login-view.js":{"imports":[{"path":"dist/chunk-5OIPGVGG.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["LoginPage"],"entryPoint":"src/components/login-view.tsx","inputs":{},"bytes":152},"dist/chunk-5OIPGVGG.js":{"imports":[{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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":["LoginPage"],"inputs":{"src/components/login-view.tsx":{"bytesInOutput":6967}},"bytes":7072},"dist/components/media-view.js":{"imports":[{"path":"dist/chunk-BYLCQYEQ.js","kind":"import-statement"},{"path":"dist/chunk-GDQC5X46.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["MediaPage"],"entryPoint":"src/components/media-view.tsx","inputs":{},"bytes":245},"dist/chunk-BYLCQYEQ.js":{"imports":[{"path":"dist/chunk-GDQC5X46.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["MediaPage"],"inputs":{"src/components/media-view.tsx":{"bytesInOutput":358}},"bytes":518},"dist/chunk-GDQC5X46.js":{"imports":[{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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":["MediaUploader"],"inputs":{"src/components/media-uploader.tsx":{"bytesInOutput":8980}},"bytes":9238},"dist/components/new-post-view.js":{"imports":[{"path":"dist/chunk-QVUTNQZH.js","kind":"import-statement"},{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"}],"exports":["NewPostPage"],"entryPoint":"src/components/new-post-view.tsx","inputs":{},"bytes":311},"dist/chunk-QVUTNQZH.js":{"imports":[{"path":"dist/chunk-7IJDOT2K.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["NewPostPage"],"inputs":{"src/components/new-post-view.tsx":{"bytesInOutput":363}},"bytes":523},"dist/chunk-7IJDOT2K.js":{"imports":[{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-XXJDT6FF.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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":"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","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"jszip","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["MediaPicker","PostForm","sanitizeName","uploadProcessedImage"],"inputs":{"src/lib/upload.ts":{"bytesInOutput":807},"src/components/media-picker.tsx":{"bytesInOutput":4988},"src/components/post-form.tsx":{"bytesInOutput":17036},"src/editor/tiptap-editor.tsx":{"bytesInOutput":1547},"src/editor/toolbar.tsx":{"bytesInOutput":3038},"src/editor/image-bubble-menu.tsx":{"bytesInOutput":2901},"src/components/static-uploader.tsx":{"bytesInOutput":7717},"src/lib/static-bundle.ts":{"bytesInOutput":7192}},"bytes":45924},"dist/chunk-TZWSXAHD.js":{"imports":[{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"ampless","kind":"import-statement","external":true}],"exports":["readAdminSiteIdFromCookie","setAdminCmsConfig"],"inputs":{"src/lib/admin-site-client.ts":{"bytesInOutput":642}},"bytes":796},"dist/chunk-7IR4F7GA.js":{"imports":[],"exports":["ADMIN_SITE_COOKIE"],"inputs":{"src/lib/admin-site-cookie.ts":{"bytesInOutput":41}},"bytes":106},"dist/chunk-XXJDT6FF.js":{"imports":[{"path":"dist/chunk-OFHKZNZS.js","kind":"import-statement"},{"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}],"exports":["ImageUploadDialog","getMediaProcessingDefaults","setAdminCmsConfigClient"],"inputs":{"src/components/image-upload-dialog.tsx":{"bytesInOutput":12823},"src/lib/admin-config-client.ts":{"bytesInOutput":170}},"bytes":13207},"dist/chunk-2ITWLRYF.js":{"imports":[],"exports":["createMedia","publicMediaUrl","setAdminMediaContext"],"inputs":{"src/lib/media.ts":{"bytesInOutput":1326}},"bytes":1415},"dist/chunk-OFHKZNZS.js":{"imports":[{"path":"dist/chunk-OPQ3SAZJ.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["I18nProvider","useLocale","useT"],"inputs":{"src/components/i18n-provider.tsx":{"bytesInOutput":785}},"bytes":922},"dist/chunk-OPQ3SAZJ.js":{"imports":[],"exports":["getDictionary","resolveLocale","translate"],"inputs":{"src/locales/en.json":{"bytesInOutput":9080},"src/locales/ja.json":{"bytesInOutput":17571},"src/lib/i18n.ts":{"bytesInOutput":1146}},"bytes":27923}}}
1
+ {"inputs":{"src/locales/en.json":{"bytes":9757,"imports":[]},"src/locales/ja.json":{"bytes":12247,"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":6334,"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/components/admin-dashboard.tsx":{"bytes":2256,"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/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/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/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/lib/static-bundle.ts":{"bytes":12989,"imports":[{"path":"jszip","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true}],"format":"esm"},"src/components/static-uploader.tsx":{"bytes":8959,"imports":[{"path":"react","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/static-bundle.ts","kind":"import-statement","original":"../lib/static-bundle.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/post-form.tsx":{"bytes":19879,"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/static-uploader.tsx","kind":"import-statement","original":"./static-uploader.js"},{"path":"src/lib/static-bundle.ts","kind":"import-statement","original":"../lib/static-bundle.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":1190,"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/lib/amplify-client.ts":{"bytes":612,"imports":[{"path":"aws-amplify","kind":"import-statement","external":true}],"format":"esm"},"src/lib/posts-provider.ts":{"bytes":12504,"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/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/lib/theme-actions.ts":{"bytes":858,"imports":[{"path":"next/cache","kind":"import-statement","external":true}],"format":"esm"},"src/components/sidebar.tsx":{"bytes":5411,"imports":[{"path":"react","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":"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":28009,"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","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":1841,"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/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/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/components/media-view.tsx":{"bytes":351,"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/new-post-view.tsx":{"bytes":346,"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/posts-list-view.tsx":{"bytes":3331,"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/components/users-list-view.tsx":{"bytes":7042,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/api","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/pages/admin-layout.tsx":{"bytes":2699,"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":2742,"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":2441,"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":2295,"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/users-list.tsx":{"bytes":647,"imports":[{"path":"next/navigation","kind":"import-statement","external":true},{"path":"src/components/users-list-view.tsx","kind":"import-statement","original":"../components/users-list-view.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":1392,"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/users-list.tsx","kind":"import-statement","original":"./users-list.js"},{"path":"src/pages/login.tsx","kind":"import-statement","original":"./login.js"}],"format":"esm"}},"outputs":{"dist/components/posts-list-view.js":{"imports":[{"path":"dist/chunk-3E7CZV6A.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["PostsList"],"entryPoint":"src/components/posts-list-view.tsx","inputs":{},"bytes":214},"dist/components/users-list-view.js":{"imports":[{"path":"dist/chunk-42LEQGGJ.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["UsersListView"],"entryPoint":"src/components/users-list-view.tsx","inputs":{},"bytes":160},"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-3E7CZV6A.js","kind":"import-statement"},{"path":"dist/chunk-42LEQGGJ.js","kind":"import-statement"},{"path":"dist/chunk-XXY2GVLV.js","kind":"import-statement"},{"path":"dist/chunk-NZPV2O4C.js","kind":"import-statement"},{"path":"dist/chunk-EOKBA3YX.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-76C6OJZU.js","kind":"import-statement"},{"path":"dist/chunk-6ELFL53G.js","kind":"import-statement"},{"path":"dist/chunk-Y376EYEF.js","kind":"import-statement"},{"path":"dist/chunk-OWYT37GC.js","kind":"import-statement"},{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.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},{"path":"next/navigation","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","createUsersListPage"],"entryPoint":"src/pages/index.ts","inputs":{"src/pages/admin-layout.tsx":{"bytesInOutput":1373},"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":2701},"src/pages/site-edit.tsx":{"bytesInOutput":2341},"src/pages/site-theme.tsx":{"bytesInOutput":1831},"src/pages/users-list.tsx":{"bytesInOutput":404},"src/pages/login.tsx":{"bytesInOutput":57}},"bytes":10387},"dist/chunk-3E7CZV6A.js":{"imports":[{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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}],"exports":["PostsList"],"inputs":{"src/components/posts-list-view.tsx":{"bytesInOutput":3277}},"bytes":3454},"dist/chunk-42LEQGGJ.js":{"imports":[{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"aws-amplify/api","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["UsersListView"],"inputs":{"src/components/users-list-view.tsx":{"bytesInOutput":5995}},"bytes":6109},"dist/index.js":{"imports":[{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.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":1664}},"bytes":4095},"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/admin-dashboard.js":{"imports":[{"path":"dist/chunk-XXY2GVLV.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["AdminDashboard"],"entryPoint":"src/components/admin-dashboard.tsx","inputs":{},"bytes":162},"dist/chunk-XXY2GVLV.js":{"imports":[{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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}],"exports":["AdminDashboard"],"inputs":{"src/components/admin-dashboard.tsx":{"bytesInOutput":2444}},"bytes":2559},"dist/components/edit-post-view.js":{"imports":[{"path":"dist/chunk-NZPV2O4C.js","kind":"import-statement"},{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["EditPostPage"],"entryPoint":"src/components/edit-post-view.tsx","inputs":{},"bytes":313},"dist/chunk-NZPV2O4C.js":{"imports":[{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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}],"exports":["EditPostPage"],"inputs":{"src/components/edit-post-view.tsx":{"bytesInOutput":1084}},"bytes":1313},"dist/components/index.js":{"imports":[{"path":"dist/chunk-EOKBA3YX.js","kind":"import-statement"},{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-Y376EYEF.js","kind":"import-statement"},{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["ADMIN_SITE_COOKIE","AdminProviders","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":1137},"dist/chunk-EOKBA3YX.js":{"imports":[{"path":"dist/chunk-VXEVLHGL.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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":"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","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["AdminProviders","Sidebar","SiteSelector","SiteSettingsForm","ThemeSettingsForm"],"inputs":{"src/lib/amplify-client.ts":{"bytesInOutput":194},"src/lib/posts-provider.ts":{"bytesInOutput":7000},"src/lib/kv-provider.ts":{"bytesInOutput":2282},"src/components/admin-providers.tsx":{"bytesInOutput":369},"src/components/sidebar.tsx":{"bytesInOutput":5385},"src/components/site-selector.tsx":{"bytesInOutput":950},"src/components/site-settings-form.tsx":{"bytesInOutput":6930},"src/components/theme-settings-form.tsx":{"bytesInOutput":21327}},"bytes":45187},"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},"dist/components/login-view.js":{"imports":[{"path":"dist/chunk-76C6OJZU.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["LoginPage"],"entryPoint":"src/components/login-view.tsx","inputs":{},"bytes":152},"dist/chunk-76C6OJZU.js":{"imports":[{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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":["LoginPage"],"inputs":{"src/components/login-view.tsx":{"bytesInOutput":6967}},"bytes":7072},"dist/components/media-view.js":{"imports":[{"path":"dist/chunk-6ELFL53G.js","kind":"import-statement"},{"path":"dist/chunk-Y376EYEF.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["MediaPage"],"entryPoint":"src/components/media-view.tsx","inputs":{},"bytes":245},"dist/chunk-6ELFL53G.js":{"imports":[{"path":"dist/chunk-Y376EYEF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["MediaPage"],"inputs":{"src/components/media-view.tsx":{"bytesInOutput":358}},"bytes":518},"dist/chunk-Y376EYEF.js":{"imports":[{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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":["MediaUploader"],"inputs":{"src/components/media-uploader.tsx":{"bytesInOutput":8980}},"bytes":9238},"dist/components/new-post-view.js":{"imports":[{"path":"dist/chunk-OWYT37GC.js","kind":"import-statement"},{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"}],"exports":["NewPostPage"],"entryPoint":"src/components/new-post-view.tsx","inputs":{},"bytes":311},"dist/chunk-OWYT37GC.js":{"imports":[{"path":"dist/chunk-C6XF22TC.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["NewPostPage"],"inputs":{"src/components/new-post-view.tsx":{"bytesInOutput":363}},"bytes":523},"dist/chunk-C6XF22TC.js":{"imports":[{"path":"dist/chunk-TZWSXAHD.js","kind":"import-statement"},{"path":"dist/chunk-HP4GCYKQ.js","kind":"import-statement"},{"path":"dist/chunk-2ITWLRYF.js","kind":"import-statement"},{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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":"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","kind":"import-statement","external":true},{"path":"lucide-react","kind":"import-statement","external":true},{"path":"@ampless/runtime/ui","kind":"import-statement","external":true},{"path":"jszip","kind":"import-statement","external":true},{"path":"aws-amplify/storage","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["MediaPicker","PostForm","sanitizeName","uploadProcessedImage"],"inputs":{"src/lib/upload.ts":{"bytesInOutput":807},"src/components/media-picker.tsx":{"bytesInOutput":4988},"src/components/post-form.tsx":{"bytesInOutput":17036},"src/editor/tiptap-editor.tsx":{"bytesInOutput":1547},"src/editor/toolbar.tsx":{"bytesInOutput":3038},"src/editor/image-bubble-menu.tsx":{"bytesInOutput":2901},"src/components/static-uploader.tsx":{"bytesInOutput":7717},"src/lib/static-bundle.ts":{"bytesInOutput":7192}},"bytes":45924},"dist/chunk-TZWSXAHD.js":{"imports":[{"path":"dist/chunk-7IR4F7GA.js","kind":"import-statement"},{"path":"ampless","kind":"import-statement","external":true}],"exports":["readAdminSiteIdFromCookie","setAdminCmsConfig"],"inputs":{"src/lib/admin-site-client.ts":{"bytesInOutput":642}},"bytes":796},"dist/chunk-7IR4F7GA.js":{"imports":[],"exports":["ADMIN_SITE_COOKIE"],"inputs":{"src/lib/admin-site-cookie.ts":{"bytesInOutput":41}},"bytes":106},"dist/chunk-HP4GCYKQ.js":{"imports":[{"path":"dist/chunk-MXOT7KNC.js","kind":"import-statement"},{"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}],"exports":["ImageUploadDialog","getMediaProcessingDefaults","setAdminCmsConfigClient"],"inputs":{"src/components/image-upload-dialog.tsx":{"bytesInOutput":12823},"src/lib/admin-config-client.ts":{"bytesInOutput":170}},"bytes":13207},"dist/chunk-2ITWLRYF.js":{"imports":[],"exports":["createMedia","publicMediaUrl","setAdminMediaContext"],"inputs":{"src/lib/media.ts":{"bytesInOutput":1326}},"bytes":1415},"dist/chunk-MXOT7KNC.js":{"imports":[{"path":"dist/chunk-QQ2LE36O.js","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["I18nProvider","useLocale","useT"],"inputs":{"src/components/i18n-provider.tsx":{"bytesInOutput":785}},"bytes":922},"dist/chunk-QQ2LE36O.js":{"imports":[],"exports":["getDictionary","resolveLocale","translate"],"inputs":{"src/locales/en.json":{"bytesInOutput":9324},"src/locales/ja.json":{"bytesInOutput":18050},"src/lib/i18n.ts":{"bytesInOutput":1146}},"bytes":28646}}}
@@ -8,7 +8,7 @@ import { MediaPage } from '../components/media-view.js';
8
8
  import { ThemeManifest } from 'ampless';
9
9
  import { LoginPage } from '../components/login-view.js';
10
10
  import '@ampless/runtime';
11
- import '../i18n-DzXXcIQQ.js';
11
+ import '../i18n-OurZuBHX.js';
12
12
  import '@aws-amplify/adapter-nextjs';
13
13
 
14
14
  /**
@@ -1,42 +1,42 @@
1
1
  import {
2
2
  PostsList
3
- } from "../chunk-BFZODSUT.js";
3
+ } from "../chunk-3E7CZV6A.js";
4
4
  import {
5
5
  UsersListView
6
- } from "../chunk-UOU7KQLR.js";
6
+ } from "../chunk-42LEQGGJ.js";
7
7
  import {
8
8
  AdminDashboard
9
- } from "../chunk-4YEBIBFG.js";
9
+ } from "../chunk-XXY2GVLV.js";
10
10
  import {
11
11
  EditPostPage
12
- } from "../chunk-XZQRPXKN.js";
12
+ } from "../chunk-NZPV2O4C.js";
13
13
  import {
14
14
  AdminProviders,
15
15
  Sidebar,
16
16
  SiteSelector,
17
17
  SiteSettingsForm,
18
18
  ThemeSettingsForm
19
- } from "../chunk-XHWECTED.js";
19
+ } from "../chunk-EOKBA3YX.js";
20
20
  import "../chunk-VXEVLHGL.js";
21
21
  import {
22
22
  LoginPage
23
- } from "../chunk-5OIPGVGG.js";
23
+ } from "../chunk-76C6OJZU.js";
24
24
  import {
25
25
  MediaPage
26
- } from "../chunk-BYLCQYEQ.js";
27
- import "../chunk-GDQC5X46.js";
26
+ } from "../chunk-6ELFL53G.js";
27
+ import "../chunk-Y376EYEF.js";
28
28
  import {
29
29
  NewPostPage
30
- } from "../chunk-QVUTNQZH.js";
31
- import "../chunk-7IJDOT2K.js";
30
+ } from "../chunk-OWYT37GC.js";
31
+ import "../chunk-C6XF22TC.js";
32
32
  import "../chunk-TZWSXAHD.js";
33
33
  import "../chunk-7IR4F7GA.js";
34
- import "../chunk-XXJDT6FF.js";
34
+ import "../chunk-HP4GCYKQ.js";
35
35
  import "../chunk-2ITWLRYF.js";
36
36
  import {
37
37
  I18nProvider
38
- } from "../chunk-OFHKZNZS.js";
39
- import "../chunk-OPQ3SAZJ.js";
38
+ } from "../chunk-MXOT7KNC.js";
39
+ import "../chunk-QQ2LE36O.js";
40
40
 
41
41
  // src/pages/admin-layout.tsx
42
42
  import { redirect } from "next/navigation";
@@ -254,7 +254,8 @@ function createSiteThemePage(admin, themeList) {
254
254
  manifest: theme.manifest,
255
255
  activeTheme: theme.activeTheme,
256
256
  themeOptions,
257
- initial: theme.values
257
+ initial: theme.values,
258
+ initialColorScheme: theme.colorScheme
258
259
  }
259
260
  )
260
261
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/admin",
3
- "version": "0.2.0-alpha.12",
3
+ "version": "0.2.0-alpha.14",
4
4
  "description": "Admin UI for ampless: post editor, media manager, site/theme settings",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -51,8 +51,8 @@
51
51
  "lucide-react": "^1.16.0",
52
52
  "react-image-crop": "^11.0.7",
53
53
  "tailwind-merge": "^3.6.0",
54
- "@ampless/runtime": "0.2.0-alpha.5",
55
- "ampless": "0.2.0-alpha.3"
54
+ "@ampless/runtime": "0.2.0-alpha.7",
55
+ "ampless": "0.2.0-alpha.4"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@aws-amplify/adapter-nextjs": "^1",