@ampless/admin 0.2.0-alpha.0 → 0.2.0-alpha.1

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.
@@ -50,9 +50,9 @@ async function uploadProcessedImage(file, options) {
50
50
  }
51
51
 
52
52
  // src/lib/theme-actions.ts
53
- import { revalidateTag } from "next/cache";
53
+ import { updateTag } from "next/cache";
54
54
  async function invalidateSiteSettingsCache(siteId) {
55
- revalidateTag(`site-settings:${siteId}`);
55
+ updateTag(`site-settings:${siteId}`);
56
56
  }
57
57
 
58
58
  // src/components/sidebar.tsx
@@ -726,7 +726,7 @@ function Toolbar({ editor }) {
726
726
  }
727
727
 
728
728
  // src/editor/image-bubble-menu.tsx
729
- import { BubbleMenu } from "@tiptap/react";
729
+ import { BubbleMenu } from "@tiptap/react/menus";
730
730
  import { Trash2, Pencil, ImageIcon as ImageIcon2, Maximize2 } from "lucide-react";
731
731
  import { Button as Button5, cn as cn3 } from "@ampless/runtime/ui";
732
732
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
@@ -752,7 +752,7 @@ function ImageBubbleMenu({ editor }) {
752
752
  {
753
753
  editor,
754
754
  shouldShow: ({ editor: editor2 }) => editor2.isActive("image"),
755
- tippyOptions: { duration: 100, placement: "top" },
755
+ options: { placement: "top" },
756
756
  children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-1 rounded-md border bg-popover p-1 shadow", children: [
757
757
  /* @__PURE__ */ jsxs6(
758
758
  Button5,
@@ -89,6 +89,10 @@ declare function uploadProcessedImage(file: File, options: ProcessOptions): Prom
89
89
  *
90
90
  * The cache tag matches the one used in `theme-active.ts` and
91
91
  * `theme-config.ts` (in `@ampless/runtime`): `site-settings:{siteId}`.
92
+ *
93
+ * Uses `updateTag` (Next 16+) — the read-your-own-writes variant of
94
+ * the old `revalidateTag`, which is the right semantics inside a
95
+ * server action (this entire module is `'use server'`).
92
96
  */
93
97
  declare function invalidateSiteSettingsCache(siteId: string): Promise<void>;
94
98
 
@@ -13,7 +13,7 @@ import {
13
13
  uploadProcessedImage,
14
14
  useLocale,
15
15
  useT
16
- } from "../chunk-BN6BW7MP.js";
16
+ } from "../chunk-T2RSMFOI.js";
17
17
  import {
18
18
  ADMIN_SITE_COOKIE,
19
19
  publicMediaUrl,
@@ -8,7 +8,7 @@ import {
8
8
  ThemeSettingsForm,
9
9
  setAdminCmsConfigClient,
10
10
  useT
11
- } from "../chunk-BN6BW7MP.js";
11
+ } from "../chunk-T2RSMFOI.js";
12
12
  import {
13
13
  readAdminSiteIdFromCookie,
14
14
  setAdminCmsConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/admin",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.1",
4
4
  "description": "Admin UI for ampless: post editor, media manager, site/theme settings",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,21 +40,21 @@
40
40
  "@radix-ui/react-dialog": "^1.1.4",
41
41
  "@radix-ui/react-label": "^2.1.1",
42
42
  "@radix-ui/react-slot": "^1.1.1",
43
- "@tiptap/extension-image": "^2.10.4",
44
- "@tiptap/extension-link": "^2.10.4",
45
- "@tiptap/pm": "^2.10.4",
46
- "@tiptap/react": "^2.10.4",
47
- "@tiptap/starter-kit": "^2.10.4",
43
+ "@tiptap/extension-image": "^3.23.4",
44
+ "@tiptap/extension-link": "^3.23.4",
45
+ "@tiptap/pm": "^3.23.4",
46
+ "@tiptap/react": "^3.23.4",
47
+ "@tiptap/starter-kit": "^3.23.4",
48
48
  "class-variance-authority": "^0.7.1",
49
49
  "clsx": "^2.1.1",
50
- "lucide-react": "^0.469.0",
50
+ "lucide-react": "^1.16.0",
51
51
  "react-image-crop": "^11.0.7",
52
- "tailwind-merge": "^2.6.0",
53
- "ampless": "0.2.0-alpha.0",
54
- "@ampless/runtime": "0.2.0-alpha.0"
52
+ "tailwind-merge": "^3.6.0",
53
+ "ampless": "0.2.0-alpha.1",
54
+ "@ampless/runtime": "0.2.0-alpha.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "next": "^15",
57
+ "next": "^15 || ^16",
58
58
  "react": "^18 || ^19",
59
59
  "react-dom": "^18 || ^19",
60
60
  "aws-amplify": "^6",
@@ -63,7 +63,7 @@
63
63
  "devDependencies": {
64
64
  "@types/react": "^19.0.0",
65
65
  "@types/react-dom": "^19.0.0",
66
- "next": "^15.1.0",
66
+ "next": "^16.2.6",
67
67
  "react": "^19.0.0",
68
68
  "react-dom": "^19.0.0",
69
69
  "aws-amplify": "^6.10.0",