@byline/host-tanstack-start 6.5.0 → 6.7.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.
@@ -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 : preview ? t('chrome.preview.onTitle') : t('chrome.preview.offTitle'),
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.5.0",
6
+ "version": "6.7.0",
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/admin": "6.5.0",
129
- "@byline/ai": "6.5.0",
130
- "@byline/analytics-agent": "6.5.0",
131
- "@byline/client": "6.5.0",
132
- "@byline/auth": "6.5.0",
133
- "@byline/analytics": "6.5.0",
134
- "@byline/i18n": "6.5.0",
135
- "@byline/core": "6.5.0",
136
- "@byline/ui": "6.5.0"
128
+ "@byline/admin": "6.7.0",
129
+ "@byline/analytics-agent": "6.7.0",
130
+ "@byline/auth": "6.7.0",
131
+ "@byline/analytics": "6.7.0",
132
+ "@byline/ai": "6.7.0",
133
+ "@byline/core": "6.7.0",
134
+ "@byline/i18n": "6.7.0",
135
+ "@byline/ui": "6.7.0",
136
+ "@byline/client": "6.7.0"
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
  ) : (