@byline/host-tanstack-start 6.6.0 → 6.7.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.
|
@@ -43,6 +43,7 @@ function PreviewToggle({ compact }) {
|
|
|
43
43
|
};
|
|
44
44
|
if (null == preview) return null;
|
|
45
45
|
const label = preview ? t('chrome.preview.on') : t('chrome.preview.off');
|
|
46
|
+
const description = preview ? t('chrome.preview.onTitle') : t('chrome.preview.offTitle');
|
|
46
47
|
const icon = preview ? /*#__PURE__*/ jsx(EyeOpenIcon, {
|
|
47
48
|
width: "20px",
|
|
48
49
|
height: "20px"
|
|
@@ -64,10 +65,10 @@ function PreviewToggle({ compact }) {
|
|
|
64
65
|
onClick: handleToggle,
|
|
65
66
|
disabled: busy,
|
|
66
67
|
"aria-label": preview ? t('chrome.preview.disableAriaLabel') : t('chrome.preview.enableAriaLabel'),
|
|
67
|
-
title: compact ? void 0 :
|
|
68
|
+
title: compact ? void 0 : description,
|
|
68
69
|
children: [
|
|
69
70
|
compact ? /*#__PURE__*/ jsx(Tooltip, {
|
|
70
|
-
text: label
|
|
71
|
+
text: `${label} · ${description}`,
|
|
71
72
|
side: "right",
|
|
72
73
|
delay: 0,
|
|
73
74
|
children: iconSpan
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.7.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -125,15 +125,15 @@
|
|
|
125
125
|
"react-json-view-lite": "^2.5.0",
|
|
126
126
|
"react-swipeable": "^7.0.2",
|
|
127
127
|
"zod": "^4.6.5",
|
|
128
|
-
"@byline/
|
|
129
|
-
"@byline/
|
|
130
|
-
"@byline/analytics-agent": "6.
|
|
131
|
-
"@byline/
|
|
132
|
-
"@byline/
|
|
133
|
-
"@byline/
|
|
134
|
-
"@byline/
|
|
135
|
-
"@byline/
|
|
136
|
-
"@byline/
|
|
128
|
+
"@byline/analytics": "6.7.1",
|
|
129
|
+
"@byline/admin": "6.7.1",
|
|
130
|
+
"@byline/analytics-agent": "6.7.1",
|
|
131
|
+
"@byline/i18n": "6.7.1",
|
|
132
|
+
"@byline/client": "6.7.1",
|
|
133
|
+
"@byline/ai": "6.7.1",
|
|
134
|
+
"@byline/core": "6.7.1",
|
|
135
|
+
"@byline/ui": "6.7.1",
|
|
136
|
+
"@byline/auth": "6.7.1"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
139
139
|
"@tanstack/react-router": "^1.167.0",
|
|
@@ -84,6 +84,10 @@ export function PreviewToggle({ compact }: PreviewToggleProps) {
|
|
|
84
84
|
if (preview == null) return null
|
|
85
85
|
|
|
86
86
|
const label = preview ? t('chrome.preview.on') : t('chrome.preview.off')
|
|
87
|
+
// What the public site shows in each state: preview adds saved drafts and
|
|
88
|
+
// complete translations that public delivery withholds because they are
|
|
89
|
+
// unchecked. Incomplete translations still fall back in preview.
|
|
90
|
+
const description = preview ? t('chrome.preview.onTitle') : t('chrome.preview.offTitle')
|
|
87
91
|
const icon = preview ? (
|
|
88
92
|
<EyeOpenIcon width="20px" height="20px" />
|
|
89
93
|
) : (
|
|
@@ -102,12 +106,10 @@ export function PreviewToggle({ compact }: PreviewToggleProps) {
|
|
|
102
106
|
}
|
|
103
107
|
// Native title for the expanded state; in compact mode the styled
|
|
104
108
|
// Tooltip below takes over so the two don't fire at once.
|
|
105
|
-
title={
|
|
106
|
-
compact ? undefined : preview ? t('chrome.preview.onTitle') : t('chrome.preview.offTitle')
|
|
107
|
-
}
|
|
109
|
+
title={compact ? undefined : description}
|
|
108
110
|
>
|
|
109
111
|
{compact ? (
|
|
110
|
-
<Tooltip text={label} side="right" delay={0}>
|
|
112
|
+
<Tooltip text={`${label} · ${description}`} side="right" delay={0}>
|
|
111
113
|
{iconSpan}
|
|
112
114
|
</Tooltip>
|
|
113
115
|
) : (
|