@altafusion/fugue-content 0.3.5 → 0.5.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 +23 -0
- package/README.md +2 -2
- package/app/components/FugueContentContentPage.vue +1 -4
- package/app/components/FugueContentLayoutArticle.vue +0 -17
- package/app/components/FugueContentLayoutArticleAside.vue +0 -15
- package/lib/studio-editor-visibility.ts +5 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @altafusion/fugue-content
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @altafusion/fugue-simple-auth@0.5.0
|
|
8
|
+
- @altafusion/fugue-theme@0.5.0
|
|
9
|
+
- @altafusion/nuxt-base@0.5.0
|
|
10
|
+
- @altafusion/shell@0.5.0
|
|
11
|
+
|
|
12
|
+
## 0.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [a5133f5]
|
|
21
|
+
- @altafusion/nuxt-base@0.4.0
|
|
22
|
+
- @altafusion/fugue-simple-auth@0.4.0
|
|
23
|
+
- @altafusion/fugue-theme@0.4.0
|
|
24
|
+
- @altafusion/shell@0.4.0
|
|
25
|
+
|
|
3
26
|
## 0.3.5
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -241,7 +241,7 @@ nav:
|
|
|
241
241
|
---
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
Long-form pages: **`layout: article`** (prose
|
|
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
|
|
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
|
-
/**
|
|
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.
|
|
4
|
+
"version": "0.5.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.
|
|
29
|
+
"@altafusion/fugue-theme": "0.5.0",
|
|
30
30
|
"better-sqlite3": "^12.11.1",
|
|
31
31
|
"h3": "^1.15.0",
|
|
32
32
|
"nuxt": "^4.7.0",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"vue-router": "^5.5.1"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@altafusion/fugue-simple-auth": "0.
|
|
38
|
-
"@altafusion/nuxt-base": "0.
|
|
39
|
-
"@altafusion/shell": "0.
|
|
37
|
+
"@altafusion/fugue-simple-auth": "0.5.0",
|
|
38
|
+
"@altafusion/nuxt-base": "0.5.0",
|
|
39
|
+
"@altafusion/shell": "0.5.0",
|
|
40
40
|
"@nuxt/content": "^3.17.0",
|
|
41
41
|
"@nuxt/kit": "^4.7.0",
|
|
42
|
-
"@nuxtjs/i18n": "^10.
|
|
42
|
+
"@nuxtjs/i18n": "^10.7.0",
|
|
43
43
|
"defu": "^6.1.7",
|
|
44
44
|
"nuxt-studio": "npm:@altafusion/nuxt-studio@1.8.2-altafusion.1",
|
|
45
45
|
"ufo": "^1.6.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@altafusion/eslint-config": "0.
|
|
49
|
-
"@altafusion/fugue-theme": "0.
|
|
50
|
-
"@iconify-json/lucide": "^1.2.
|
|
51
|
-
"@types/node": "^26.6.
|
|
48
|
+
"@altafusion/eslint-config": "0.5.0",
|
|
49
|
+
"@altafusion/fugue-theme": "0.5.0",
|
|
50
|
+
"@iconify-json/lucide": "^1.2.159",
|
|
51
|
+
"@types/node": "^26.6.10",
|
|
52
52
|
"better-sqlite3": "^12.11.1",
|
|
53
53
|
"eslint": "^10.15.0",
|
|
54
54
|
"nuxt": "^4.7.0",
|
|
55
55
|
"typescript": "^6.0.3",
|
|
56
|
-
"vitest": "^5.1.
|
|
56
|
+
"vitest": "^5.1.2",
|
|
57
57
|
"vue": "^3.5.46",
|
|
58
58
|
"vue-router": "^5.5.1"
|
|
59
59
|
},
|