@altafusion/fugue-content 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @altafusion/fugue-content
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 34baa90: Remove the page-level Edit button from the `article` and `article-aside` layouts. It repeated Studio's own "Edit this page" button and, being an in-flow row, pushed the page content down for editors. The `stem` prop of `FugueContentLayoutArticle` is gone with it. The footer Edit entry now shows only to visitors without a Studio session (it is the way in to `/login`), and fragment Edit buttons are unchanged.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a5133f5]
12
+ - @altafusion/nuxt-base@0.4.0
13
+ - @altafusion/fugue-simple-auth@0.4.0
14
+ - @altafusion/fugue-theme@0.4.0
15
+ - @altafusion/shell@0.4.0
16
+
3
17
  ## 0.3.5
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -241,7 +241,7 @@ nav:
241
241
  ---
242
242
  ```
243
243
 
244
- Long-form pages: **`layout: article`** (prose + per-page **Edit**) or **`layout: article-aside`** (+ **On This Page** TOC from markdown headings). See developer-docs **[Article Layouts](/fugue-content/starter-template/article-layouts)**.
244
+ Long-form pages: **`layout: article`** (prose) or **`layout: article-aside`** (+ **On This Page** TOC from markdown headings). See developer-docs **[Article Layouts](/fugue-content/starter-template/article-layouts)**.
245
245
 
246
246
  ## MDC blocks
247
247
 
@@ -328,7 +328,7 @@ export const siteConfigAuth = {
328
328
 
329
329
  Feature walkthrough: **[Auth Mode](/fugue-content/starter-template/studio-access-setup#auth-mode-site-manifest)** · **[Configure Google OAuth](/fugue-content/starter-template/studio-access-setup#configure-google-oauth)** · **[User Content Workflows](/fugue-content/starter-template/user-content-workflows)** · **[Studio Module](https://nuxt.studio/setup)** on developer-docs.
330
330
 
331
- **Upstream fixes:** validate a local nuxt-studio checkout before catalog bumps (`pnpm link:nuxt-studio` / `pnpm unlink:nuxt-studio`).
331
+ **Upstream fixes:** since 0.3.5 this package installs `nuxt-studio` from the `@altafusion/nuxt-studio` fork (upstream 1.8.2 plus the host `@nuxtjs/i18n` locale fix from nuxt-studio PR 501 and a media id quoting fix). Sites need no `nuxt-studio` patch. To validate a local nuxt-studio checkout before catalog bumps use `pnpm link:nuxt-studio` / `pnpm unlink:nuxt-studio`; to retire the fork, point `catalogs.content.nuxt-studio` in `pnpm-workspace.yaml` back at the plain `nuxt-studio` range once upstream ships both fixes.
332
332
 
333
333
  ### qeTools (operator console)
334
334
 
@@ -21,10 +21,7 @@ const { contentPage, error, loading } = useFugueContentCatchAllRoute()
21
21
  >
22
22
  <ContentRenderer :value="contentPage" />
23
23
  </FugueContentLayoutArticleAside>
24
- <FugueContentLayoutArticle
25
- v-else-if="contentPage.layout === 'article'"
26
- :stem="typeof contentPage.stem === 'string' ? contentPage.stem : undefined"
27
- >
24
+ <FugueContentLayoutArticle v-else-if="contentPage.layout === 'article'">
28
25
  <ContentRenderer :value="contentPage" />
29
26
  </FugueContentLayoutArticle>
30
27
  <FugueContentLayoutLanding v-else>
@@ -1,22 +1,5 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- stem?: string
4
- }>()
5
-
6
- const { canEdit } = useFugueContentStudioEdit()
7
- </script>
8
-
9
1
  <template>
10
2
  <article class="prose prose-neutral dark:prose-invert mx-auto w-full max-w-3xl">
11
- <div
12
- v-if="canEdit && stem"
13
- class="mb-4 flex justify-end"
14
- >
15
- <FugueContentEditContent
16
- :page-stem="stem"
17
- :require-session="false"
18
- />
19
- </div>
20
3
  <slot />
21
4
  </article>
22
5
  </template>
@@ -8,18 +8,12 @@ const props = defineProps<{
8
8
  }>()
9
9
 
10
10
  const { t } = useShellI18n()
11
- const { canEdit } = useFugueContentStudioEdit()
12
11
 
13
12
  const tocLinks = computed(() => fugueContentPageTocLinks(props.page.body))
14
13
 
15
14
  const tocTitle = computed(() =>
16
15
  t(FUGUE_CONTENT_ARTICLE_I18N_KEYS.onThisPage, FUGUE_CONTENT_ARTICLE_DEFAULTS.onThisPage),
17
16
  )
18
-
19
- const stem = computed(() => {
20
- const value = props.page.stem
21
- return typeof value === 'string' ? value : ''
22
- })
23
17
  </script>
24
18
 
25
19
  <template>
@@ -41,15 +35,6 @@ const stem = computed(() => {
41
35
  </details>
42
36
 
43
37
  <article class="prose prose-neutral dark:prose-invert mx-auto w-full max-w-3xl">
44
- <div
45
- v-if="canEdit && stem"
46
- class="mb-4 flex justify-end"
47
- >
48
- <FugueContentEditContent
49
- :page-stem="stem"
50
- :require-session="false"
51
- />
52
- </div>
53
38
  <slot />
54
39
  </article>
55
40
  </UPageBody>
@@ -32,9 +32,12 @@ export function resolveFugueContentShowEditorMenu(ctx: FugueContentEditorChromeC
32
32
  return ctx.hasStudioSession
33
33
  }
34
34
 
35
- /** Footer Edit entry — visible when Studio is configured; hidden while the editor is open. */
35
+ /**
36
+ * Footer Edit entry — the way in for visitors who have not signed in yet. Visible when Studio is configured; hidden while the
37
+ * editor is open and once there is a Studio session, because signed-in editors get the page-level Edit Page button at the top.
38
+ */
36
39
  export function resolveFugueContentShowFooterEdit(ctx: FugueContentEditorChromeContext): boolean {
37
- if (!ctx.isClientReady || !ctx.hasStudioRoute || ctx.isStudioActive)
40
+ if (!ctx.isClientReady || !ctx.hasStudioRoute || ctx.isStudioActive || ctx.hasStudioSession)
38
41
  return false
39
42
 
40
43
  return true
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@altafusion/fugue-content",
3
3
  "type": "module",
4
- "version": "0.3.5",
4
+ "version": "0.4.0",
5
5
  "description": "Nuxt layer for Fugue Content sites — editorial pages, Studio, and MDC, composed with shell.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/altafusion/fugue/tree/main/packages-consumer/fugue-content#readme",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "main": "./nuxt.config.ts",
28
28
  "peerDependencies": {
29
- "@altafusion/fugue-theme": "0.3.5",
29
+ "@altafusion/fugue-theme": "0.4.0",
30
30
  "better-sqlite3": "^12.11.1",
31
31
  "h3": "^1.15.0",
32
32
  "nuxt": "^4.7.0",
@@ -34,9 +34,9 @@
34
34
  "vue-router": "^5.5.1"
35
35
  },
36
36
  "dependencies": {
37
- "@altafusion/fugue-simple-auth": "0.3.5",
38
- "@altafusion/nuxt-base": "0.3.5",
39
- "@altafusion/shell": "0.3.5",
37
+ "@altafusion/fugue-simple-auth": "0.4.0",
38
+ "@altafusion/nuxt-base": "0.4.0",
39
+ "@altafusion/shell": "0.4.0",
40
40
  "@nuxt/content": "^3.17.0",
41
41
  "@nuxt/kit": "^4.7.0",
42
42
  "@nuxtjs/i18n": "^10.6.0",
@@ -45,8 +45,8 @@
45
45
  "ufo": "^1.6.4"
46
46
  },
47
47
  "devDependencies": {
48
- "@altafusion/eslint-config": "0.3.5",
49
- "@altafusion/fugue-theme": "0.3.5",
48
+ "@altafusion/eslint-config": "0.4.0",
49
+ "@altafusion/fugue-theme": "0.4.0",
50
50
  "@iconify-json/lucide": "^1.2.158",
51
51
  "@types/node": "^26.6.6",
52
52
  "better-sqlite3": "^12.11.1",