@duct-sdk/sdk 0.4.2 → 0.4.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
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Public release notes for the Duct SDK. Versioning follows [semver](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [0.4.3] — 2026-07-03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **`DuctShell` launcher icon when the shell host is unreachable** — bubble icon tries the host app's `/duct-text-no-bg.png` before the shell host URL; removed the nonexistent `duct-logo.png` candidate; final fallback is the `duↄt` wordmark instead of a broken orange SVG.
|
|
9
|
+
|
|
5
10
|
## [0.4.2] — 2026-07-03
|
|
6
11
|
|
|
7
12
|
### Fixed
|
|
@@ -97,7 +97,7 @@ export interface DuctShellProps {
|
|
|
97
97
|
className?: string;
|
|
98
98
|
/**
|
|
99
99
|
* Optional launcher icon source.
|
|
100
|
-
* When omitted, the SDK tries
|
|
100
|
+
* When omitted, the SDK tries the host app's /duct-text-no-bg.png, then the shell host URL, then /assets/logo.png.
|
|
101
101
|
*/
|
|
102
102
|
launcherIconSrc?: string;
|
|
103
103
|
/**
|
|
@@ -270,7 +270,11 @@ export function DuctShell({ shellId, userContext, onTokenRequest, onNavigate, on
|
|
|
270
270
|
})();
|
|
271
271
|
const iconCandidates = launcherIconSrc
|
|
272
272
|
? [launcherIconSrc]
|
|
273
|
-
: [
|
|
273
|
+
: [
|
|
274
|
+
"/duct-text-no-bg.png",
|
|
275
|
+
`${shellOrigin}/duct-text-no-bg.png`,
|
|
276
|
+
DUCT_LAUNCHER_ICON_LOCAL_FALLBACK,
|
|
277
|
+
];
|
|
274
278
|
const currentIconSrc = iconCandidates[Math.min(iconCandidateIndex, iconCandidates.length - 1)];
|
|
275
279
|
// Send a message to the iframe
|
|
276
280
|
const postToShell = useCallback((message) => {
|
|
@@ -662,7 +666,15 @@ export function DuctShell({ shellId, userContext, onTokenRequest, onNavigate, on
|
|
|
662
666
|
padding: 0,
|
|
663
667
|
transition: isDragging ? "none" : "transform 150ms ease, box-shadow 150ms ease",
|
|
664
668
|
};
|
|
665
|
-
const bubbleIcon = !iconLoadFailed ? (_jsx("img", { src: currentIconSrc, alt: "Duct", width: 30, height: 30, draggable: false, onError: handleIconError, style: { width: "30px", height: "30px", objectFit: "contain", pointerEvents: "none" } })) : (_jsx("
|
|
669
|
+
const bubbleIcon = !iconLoadFailed ? (_jsx("img", { src: currentIconSrc, alt: "Duct", width: 30, height: 30, draggable: false, onError: handleIconError, style: { width: "30px", height: "30px", objectFit: "contain", pointerEvents: "none" } })) : (_jsx("span", { "aria-hidden": "true", style: {
|
|
670
|
+
color: "#E8622A",
|
|
671
|
+
fontSize: 11,
|
|
672
|
+
fontWeight: 600,
|
|
673
|
+
letterSpacing: "-0.02em",
|
|
674
|
+
lineHeight: 1,
|
|
675
|
+
pointerEvents: "none",
|
|
676
|
+
userSelect: "none",
|
|
677
|
+
}, children: "du\u2184t" }));
|
|
666
678
|
return (_jsxs(_Fragment, { children: [!panelOpen && (_jsx("button", { type: "button", style: {
|
|
667
679
|
...bubbleStyle,
|
|
668
680
|
...bubbleLauncherStyle,
|