@swirls/shuttle 0.1.0 → 0.1.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @swirls/shuttle
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1c169a0: A tab whose artifact type is not registered now says so instead of showing an empty pane. This
|
|
8
|
+
happens when a session's tab was opened by a host that has a type of its own and is then viewed
|
|
9
|
+
in one that does not.
|
|
10
|
+
|
|
3
11
|
## 0.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -59,6 +59,17 @@ export function ArtifactPane({ runId, folderId, events, media, identities, contr
|
|
|
59
59
|
media,
|
|
60
60
|
identities,
|
|
61
61
|
retarget: (title, target) => void retargetTab(tab.tabId, title, target),
|
|
62
|
-
}) }, tab.tabId));
|
|
62
|
+
}) ?? (_jsx(UnknownArtifact, { tab: tab, known: Boolean(artifactTypeFor(types, tab.kind)) })) }, tab.tabId));
|
|
63
63
|
}) }))] }));
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Stands in for a tab no registered type draws. A tab is kept with the session, so one opened
|
|
67
|
+
* where a host's own artifact type is installed is still there where it is not.
|
|
68
|
+
*/
|
|
69
|
+
function UnknownArtifact({ tab, known }) {
|
|
70
|
+
// A type that is registered and draws nothing has said so on purpose.
|
|
71
|
+
if (known) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return (_jsx(EmptyState, { icon: _jsx(LayoutPanelTop, {}), title: "This tab can't be shown here", children: _jsxs("span", { className: "block", children: ["It was opened as ", _jsx("code", { className: "font-mono", children: tab.kind }), ", which is not something this app knows how to show. It is still part of the session, and shows wherever that kind of tab is supported."] }) }));
|
|
75
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swirls/shuttle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shuttle as parts: React components for a development environment built around coding agents, with the API contract and run events they speak",
|
|
5
5
|
"homepage": "https://github.com/ByteSliceHQ/shuttle#readme",
|
|
6
6
|
"bugs": {
|