@altafusion/fugue-devtools 0.6.2 → 0.6.3
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,17 @@
|
|
|
1
1
|
# @altafusion/fugue-devtools
|
|
2
2
|
|
|
3
|
+
## 0.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 431c0d0: Add buttons to the Studio drafts section of the dev tools drawer, and show it to signed-in editors in production.
|
|
8
|
+
|
|
9
|
+
- **Delete Matching** removes every draft whose key contains some text (`qeTools.studioDrafts.deleteMatching`), **Clear All Drafts** removes them all after a second click to confirm (`clearAll`), each row shows its status, and a **Reload Page To Apply** button appears after a delete (Studio keeps a merged copy in memory).
|
|
10
|
+
- The section is privileged, and without an access resolver it only showed in development. `fugue-content` now sets one: development, or a signed-in Studio editor (the `studio-session-check` cookie). A site that wants a different rule calls `setAccessResolver` after it. It is a UI convenience, not a security boundary: the section only touches the browser's own drafts.
|
|
11
|
+
- The section is now called **Studio Drafts**, comes first so it opens by default, and sits in a thin bordered card (`max-w-xl`) with Refresh and Clear All Drafts at the top, Delete Matching under them, then the list.
|
|
12
|
+
- The drawer's section switcher is a Nuxt UI `UTabs` (pill, no content) instead of a row of buttons, and a section no longer repeats its title under the tabs; with a single section there are no tabs, so the title still shows.
|
|
13
|
+
- @altafusion/fugue-ui@0.6.3
|
|
14
|
+
|
|
3
15
|
## 0.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -44,6 +44,16 @@ const panelPosition = computed<DevToolsPanelPosition>({
|
|
|
44
44
|
|
|
45
45
|
const isHorizontalDock = computed(() => isHorizontalDevToolsDock(panelPosition.value))
|
|
46
46
|
|
|
47
|
+
// The tab strip names the active section, so the section only repeats its title when there are no tabs (a single section).
|
|
48
|
+
const tabItems = computed(() => visibleSections.value.map(section => ({ label: section.label, value: section.id })))
|
|
49
|
+
const activeTab = computed({
|
|
50
|
+
get: () => activeSection.value?.id,
|
|
51
|
+
set: (id) => {
|
|
52
|
+
if (id !== undefined)
|
|
53
|
+
api.activeId.value = String(id)
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
|
|
47
57
|
function toggle() {
|
|
48
58
|
open.value = !open.value
|
|
49
59
|
}
|
|
@@ -133,24 +143,15 @@ const drawerUi = computed(() => {
|
|
|
133
143
|
</template>
|
|
134
144
|
</DevToolsNav>
|
|
135
145
|
|
|
136
|
-
<
|
|
146
|
+
<UTabs
|
|
137
147
|
v-if="visibleSections.length > 1"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:color="activeSection?.id === section.id ? 'primary' : 'neutral'"
|
|
146
|
-
:variant="activeSection?.id === section.id ? 'soft' : 'ghost'"
|
|
147
|
-
size="xs"
|
|
148
|
-
role="tab"
|
|
149
|
-
:aria-selected="activeSection?.id === section.id"
|
|
150
|
-
:data-testid="`devtools-tab-${section.id}`"
|
|
151
|
-
@click="api.activeId.value = section.id"
|
|
152
|
-
/>
|
|
153
|
-
</div>
|
|
148
|
+
v-model="activeTab"
|
|
149
|
+
:items="tabItems"
|
|
150
|
+
:content="false"
|
|
151
|
+
variant="pill"
|
|
152
|
+
size="xs"
|
|
153
|
+
class="mt-2"
|
|
154
|
+
/>
|
|
154
155
|
|
|
155
156
|
<div
|
|
156
157
|
class="mt-3 grid grid-cols-1 gap-4"
|
|
@@ -164,7 +165,7 @@ const drawerUi = computed(() => {
|
|
|
164
165
|
:is-horizontal-dock="isHorizontalDock"
|
|
165
166
|
>
|
|
166
167
|
<DevToolsSection
|
|
167
|
-
:title="activeSection.label"
|
|
168
|
+
:title="visibleSections.length > 1 ? undefined : activeSection.label"
|
|
168
169
|
:class="sectionClass"
|
|
169
170
|
>
|
|
170
171
|
<component :is="activeSection.component" />
|
|
@@ -3,14 +3,17 @@ const {
|
|
|
3
3
|
title,
|
|
4
4
|
class: className,
|
|
5
5
|
} = defineProps<{
|
|
6
|
-
title
|
|
6
|
+
title?: string
|
|
7
7
|
class?: string
|
|
8
8
|
}>()
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
12
|
<section class="devtools-panel__section" :class="className">
|
|
13
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
v-if="title"
|
|
15
|
+
class="devtools-panel__section-title"
|
|
16
|
+
>
|
|
14
17
|
{{ title }}
|
|
15
18
|
</div>
|
|
16
19
|
<slot />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altafusion/fugue-devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"description": "Generic non-modal dev tools drawer for Nuxt apps — Fugue family",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-devtools#readme",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"vue-router": "^5.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@altafusion/fugue-ui": "0.6.
|
|
39
|
+
"@altafusion/fugue-ui": "0.6.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@altafusion/eslint-config": "0.6.
|
|
43
|
-
"@altafusion/nuxt-base": "0.6.
|
|
42
|
+
"@altafusion/eslint-config": "0.6.3",
|
|
43
|
+
"@altafusion/nuxt-base": "0.6.3",
|
|
44
44
|
"@types/node": "^26.6.11",
|
|
45
45
|
"eslint": "^10.15.0",
|
|
46
46
|
"nuxt": "^4.7.0",
|