@seed-ship/mcp-ui-solid 8.0.0-solid2.1 → 8.0.0-solid2.4
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 +49 -1
- package/README.md +23 -14
- package/dist/components/ActionGroupRenderer.cjs +49 -49
- package/dist/components/ActionGroupRenderer.cjs.map +1 -1
- package/dist/components/ActionGroupRenderer.js +50 -50
- package/dist/components/ActionGroupRenderer.js.map +1 -1
- package/dist/components/AgentCard.cjs +58 -57
- package/dist/components/AgentCard.cjs.map +1 -1
- package/dist/components/AgentCard.js +59 -58
- package/dist/components/AgentCard.js.map +1 -1
- package/dist/components/AgentHandoff.cjs +21 -27
- package/dist/components/AgentHandoff.cjs.map +1 -1
- package/dist/components/AgentHandoff.js +22 -28
- package/dist/components/AgentHandoff.js.map +1 -1
- package/dist/components/ArtifactRenderer.cjs +0 -1
- package/dist/components/ArtifactRenderer.cjs.map +1 -1
- package/dist/components/ArtifactRenderer.js +0 -1
- package/dist/components/ArtifactRenderer.js.map +1 -1
- package/dist/components/AutocompleteDropdown.cjs +165 -161
- package/dist/components/AutocompleteDropdown.cjs.map +1 -1
- package/dist/components/AutocompleteDropdown.js +165 -161
- package/dist/components/AutocompleteDropdown.js.map +1 -1
- package/dist/components/AutocompleteFormField.cjs +220 -214
- package/dist/components/AutocompleteFormField.cjs.map +1 -1
- package/dist/components/AutocompleteFormField.js +222 -216
- package/dist/components/AutocompleteFormField.js.map +1 -1
- package/dist/components/BriefingDiff.cjs +156 -146
- package/dist/components/BriefingDiff.cjs.map +1 -1
- package/dist/components/BriefingDiff.js +156 -146
- package/dist/components/BriefingDiff.js.map +1 -1
- package/dist/components/ChartJSRenderer.cjs +261 -250
- package/dist/components/ChartJSRenderer.cjs.map +1 -1
- package/dist/components/ChartJSRenderer.js +261 -250
- package/dist/components/ChartJSRenderer.js.map +1 -1
- package/dist/components/ChatPrompt.cjs +70 -67
- package/dist/components/ChatPrompt.cjs.map +1 -1
- package/dist/components/ChatPrompt.js +70 -67
- package/dist/components/ChatPrompt.js.map +1 -1
- package/dist/components/CodeBlockRenderer.cjs +46 -46
- package/dist/components/CodeBlockRenderer.cjs.map +1 -1
- package/dist/components/CodeBlockRenderer.js +48 -48
- package/dist/components/CodeBlockRenderer.js.map +1 -1
- package/dist/components/DataPreviewSection.cjs +187 -180
- package/dist/components/DataPreviewSection.cjs.map +1 -1
- package/dist/components/DataPreviewSection.js +188 -181
- package/dist/components/DataPreviewSection.js.map +1 -1
- package/dist/components/DegradedFallback.cjs +23 -26
- package/dist/components/DegradedFallback.cjs.map +1 -1
- package/dist/components/DegradedFallback.js +24 -27
- package/dist/components/DegradedFallback.js.map +1 -1
- package/dist/components/DraggableGridItem.cjs +32 -38
- package/dist/components/DraggableGridItem.cjs.map +1 -1
- package/dist/components/DraggableGridItem.js +33 -39
- package/dist/components/DraggableGridItem.js.map +1 -1
- package/dist/components/EditableUIResourceRenderer.cjs +115 -122
- package/dist/components/EditableUIResourceRenderer.cjs.map +1 -1
- package/dist/components/EditableUIResourceRenderer.js +116 -123
- package/dist/components/EditableUIResourceRenderer.js.map +1 -1
- package/dist/components/ExpandableWrapper.cjs +51 -52
- package/dist/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/components/ExpandableWrapper.js +53 -54
- package/dist/components/ExpandableWrapper.js.map +1 -1
- package/dist/components/FeedbackInline.cjs +25 -26
- package/dist/components/FeedbackInline.cjs.map +1 -1
- package/dist/components/FeedbackInline.js +27 -28
- package/dist/components/FeedbackInline.js.map +1 -1
- package/dist/components/FooterRenderer.cjs +97 -89
- package/dist/components/FooterRenderer.cjs.map +1 -1
- package/dist/components/FooterRenderer.js +99 -91
- package/dist/components/FooterRenderer.js.map +1 -1
- package/dist/components/FormFieldRenderer.cjs +632 -599
- package/dist/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/components/FormFieldRenderer.js +634 -601
- package/dist/components/FormFieldRenderer.js.map +1 -1
- package/dist/components/FormRenderer.cjs +100 -93
- package/dist/components/FormRenderer.cjs.map +1 -1
- package/dist/components/FormRenderer.js +100 -93
- package/dist/components/FormRenderer.js.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.cjs +34 -30
- package/dist/components/GenerativeUIErrorBoundary.cjs.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.js +34 -30
- package/dist/components/GenerativeUIErrorBoundary.js.map +1 -1
- package/dist/components/GhostText.cjs +52 -52
- package/dist/components/GhostText.cjs.map +1 -1
- package/dist/components/GhostText.js +53 -53
- package/dist/components/GhostText.js.map +1 -1
- package/dist/components/GraphRenderer.cjs +134 -140
- package/dist/components/GraphRenderer.cjs.map +1 -1
- package/dist/components/GraphRenderer.js +135 -141
- package/dist/components/GraphRenderer.js.map +1 -1
- package/dist/components/IframeFallbackLink.cjs +5 -6
- package/dist/components/IframeFallbackLink.cjs.map +1 -1
- package/dist/components/IframeFallbackLink.js +7 -8
- package/dist/components/IframeFallbackLink.js.map +1 -1
- package/dist/components/ImageGalleryRenderer.cjs +51 -49
- package/dist/components/ImageGalleryRenderer.cjs.map +1 -1
- package/dist/components/ImageGalleryRenderer.js +52 -50
- package/dist/components/ImageGalleryRenderer.js.map +1 -1
- package/dist/components/LightboxOverlay.cjs +127 -122
- package/dist/components/LightboxOverlay.cjs.map +1 -1
- package/dist/components/LightboxOverlay.js +129 -124
- package/dist/components/LightboxOverlay.js.map +1 -1
- package/dist/components/MapRenderer.cjs +54 -52
- package/dist/components/MapRenderer.cjs.map +1 -1
- package/dist/components/MapRenderer.js +55 -53
- package/dist/components/MapRenderer.js.map +1 -1
- package/dist/components/ModalRenderer.cjs +90 -87
- package/dist/components/ModalRenderer.cjs.map +1 -1
- package/dist/components/ModalRenderer.js +92 -89
- package/dist/components/ModalRenderer.js.map +1 -1
- package/dist/components/PortalDropdownMenu.cjs +28 -31
- package/dist/components/PortalDropdownMenu.cjs.map +1 -1
- package/dist/components/PortalDropdownMenu.js +30 -33
- package/dist/components/PortalDropdownMenu.js.map +1 -1
- package/dist/components/PresentationFeedback.cjs +133 -124
- package/dist/components/PresentationFeedback.cjs.map +1 -1
- package/dist/components/PresentationFeedback.js +135 -126
- package/dist/components/PresentationFeedback.js.map +1 -1
- package/dist/components/RenderContext.cjs +0 -1
- package/dist/components/RenderContext.cjs.map +1 -1
- package/dist/components/RenderContext.js +0 -1
- package/dist/components/RenderContext.js.map +1 -1
- package/dist/components/ScratchpadPanel.cjs +1487 -1443
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.js +1488 -1444
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/dist/components/SplitStepper.cjs +43 -39
- package/dist/components/SplitStepper.cjs.map +1 -1
- package/dist/components/SplitStepper.js +44 -40
- package/dist/components/SplitStepper.js.map +1 -1
- package/dist/components/StreamingUIRenderer.cjs +209 -203
- package/dist/components/StreamingUIRenderer.cjs.map +1 -1
- package/dist/components/StreamingUIRenderer.js +210 -204
- package/dist/components/StreamingUIRenderer.js.map +1 -1
- package/dist/components/UIResourceRenderer.cjs +994 -984
- package/dist/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/components/UIResourceRenderer.js +995 -985
- package/dist/components/UIResourceRenderer.js.map +1 -1
- package/dist/components/VideoRenderer.cjs +96 -91
- package/dist/components/VideoRenderer.cjs.map +1 -1
- package/dist/components/VideoRenderer.js +98 -93
- package/dist/components/VideoRenderer.js.map +1 -1
- package/dist/server/components/ActionGroupRenderer.cjs +51 -106
- package/dist/server/components/ActionGroupRenderer.cjs.map +1 -1
- package/dist/server/components/ActionGroupRenderer.js +52 -107
- package/dist/server/components/ActionGroupRenderer.js.map +1 -1
- package/dist/server/components/AgentCard.cjs +53 -102
- package/dist/server/components/AgentCard.cjs.map +1 -1
- package/dist/server/components/AgentCard.js +54 -103
- package/dist/server/components/AgentCard.js.map +1 -1
- package/dist/server/components/AgentHandoff.cjs +18 -44
- package/dist/server/components/AgentHandoff.cjs.map +1 -1
- package/dist/server/components/AgentHandoff.js +19 -45
- package/dist/server/components/AgentHandoff.js.map +1 -1
- package/dist/server/components/AutocompleteDropdown.cjs +144 -263
- package/dist/server/components/AutocompleteDropdown.cjs.map +1 -1
- package/dist/server/components/AutocompleteDropdown.js +144 -263
- package/dist/server/components/AutocompleteDropdown.js.map +1 -1
- package/dist/server/components/AutocompleteFormField.cjs +168 -353
- package/dist/server/components/AutocompleteFormField.cjs.map +1 -1
- package/dist/server/components/AutocompleteFormField.js +169 -354
- package/dist/server/components/AutocompleteFormField.js.map +1 -1
- package/dist/server/components/BriefingDiff.cjs +139 -289
- package/dist/server/components/BriefingDiff.cjs.map +1 -1
- package/dist/server/components/BriefingDiff.js +139 -289
- package/dist/server/components/BriefingDiff.js.map +1 -1
- package/dist/server/components/ChartJSRenderer.cjs +288 -536
- package/dist/server/components/ChartJSRenderer.cjs.map +1 -1
- package/dist/server/components/ChartJSRenderer.js +288 -536
- package/dist/server/components/ChartJSRenderer.js.map +1 -1
- package/dist/server/components/ChatPrompt.cjs +102 -197
- package/dist/server/components/ChatPrompt.cjs.map +1 -1
- package/dist/server/components/ChatPrompt.js +102 -197
- package/dist/server/components/ChatPrompt.js.map +1 -1
- package/dist/server/components/CodeBlockRenderer.cjs +62 -101
- package/dist/server/components/CodeBlockRenderer.cjs.map +1 -1
- package/dist/server/components/CodeBlockRenderer.js +64 -103
- package/dist/server/components/CodeBlockRenderer.js.map +1 -1
- package/dist/server/components/DataPreviewSection.cjs +161 -298
- package/dist/server/components/DataPreviewSection.cjs.map +1 -1
- package/dist/server/components/DataPreviewSection.js +162 -299
- package/dist/server/components/DataPreviewSection.js.map +1 -1
- package/dist/server/components/DegradedFallback.cjs +65 -125
- package/dist/server/components/DegradedFallback.cjs.map +1 -1
- package/dist/server/components/DegradedFallback.js +66 -126
- package/dist/server/components/DegradedFallback.js.map +1 -1
- package/dist/server/components/DraggableGridItem.cjs +64 -115
- package/dist/server/components/DraggableGridItem.cjs.map +1 -1
- package/dist/server/components/DraggableGridItem.js +65 -116
- package/dist/server/components/DraggableGridItem.js.map +1 -1
- package/dist/server/components/EditableUIResourceRenderer.cjs +119 -142
- package/dist/server/components/EditableUIResourceRenderer.cjs.map +1 -1
- package/dist/server/components/EditableUIResourceRenderer.js +120 -143
- package/dist/server/components/EditableUIResourceRenderer.js.map +1 -1
- package/dist/server/components/ExpandableWrapper.cjs +49 -92
- package/dist/server/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/server/components/ExpandableWrapper.js +51 -94
- package/dist/server/components/ExpandableWrapper.js.map +1 -1
- package/dist/server/components/FeedbackInline.cjs +28 -60
- package/dist/server/components/FeedbackInline.cjs.map +1 -1
- package/dist/server/components/FeedbackInline.js +29 -61
- package/dist/server/components/FeedbackInline.js.map +1 -1
- package/dist/server/components/FooterRenderer.cjs +73 -146
- package/dist/server/components/FooterRenderer.cjs.map +1 -1
- package/dist/server/components/FooterRenderer.js +75 -148
- package/dist/server/components/FooterRenderer.js.map +1 -1
- package/dist/server/components/FormFieldRenderer.cjs +806 -1200
- package/dist/server/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/server/components/FormFieldRenderer.js +808 -1202
- package/dist/server/components/FormFieldRenderer.js.map +1 -1
- package/dist/server/components/FormRenderer.cjs +112 -179
- package/dist/server/components/FormRenderer.cjs.map +1 -1
- package/dist/server/components/FormRenderer.js +112 -179
- package/dist/server/components/FormRenderer.js.map +1 -1
- package/dist/server/components/GenerativeUIErrorBoundary.cjs +63 -92
- package/dist/server/components/GenerativeUIErrorBoundary.cjs.map +1 -1
- package/dist/server/components/GenerativeUIErrorBoundary.js +63 -92
- package/dist/server/components/GenerativeUIErrorBoundary.js.map +1 -1
- package/dist/server/components/GhostText.cjs +76 -125
- package/dist/server/components/GhostText.cjs.map +1 -1
- package/dist/server/components/GhostText.js +77 -126
- package/dist/server/components/GhostText.js.map +1 -1
- package/dist/server/components/GraphRenderer.cjs +99 -170
- package/dist/server/components/GraphRenderer.cjs.map +1 -1
- package/dist/server/components/GraphRenderer.js +100 -171
- package/dist/server/components/GraphRenderer.js.map +1 -1
- package/dist/server/components/IframeFallbackLink.cjs +10 -37
- package/dist/server/components/IframeFallbackLink.cjs.map +1 -1
- package/dist/server/components/IframeFallbackLink.js +12 -39
- package/dist/server/components/IframeFallbackLink.js.map +1 -1
- package/dist/server/components/ImageGalleryRenderer.cjs +81 -129
- package/dist/server/components/ImageGalleryRenderer.cjs.map +1 -1
- package/dist/server/components/ImageGalleryRenderer.js +82 -130
- package/dist/server/components/ImageGalleryRenderer.js.map +1 -1
- package/dist/server/components/LightboxOverlay.cjs +86 -180
- package/dist/server/components/LightboxOverlay.cjs.map +1 -1
- package/dist/server/components/LightboxOverlay.js +88 -182
- package/dist/server/components/LightboxOverlay.js.map +1 -1
- package/dist/server/components/MapRenderer.cjs +78 -121
- package/dist/server/components/MapRenderer.cjs.map +1 -1
- package/dist/server/components/MapRenderer.js +79 -122
- package/dist/server/components/MapRenderer.js.map +1 -1
- package/dist/server/components/ModalRenderer.cjs +72 -138
- package/dist/server/components/ModalRenderer.cjs.map +1 -1
- package/dist/server/components/ModalRenderer.js +74 -140
- package/dist/server/components/ModalRenderer.js.map +1 -1
- package/dist/server/components/PortalDropdownMenu.cjs +11 -14
- package/dist/server/components/PortalDropdownMenu.cjs.map +1 -1
- package/dist/server/components/PortalDropdownMenu.js +13 -16
- package/dist/server/components/PortalDropdownMenu.js.map +1 -1
- package/dist/server/components/PresentationFeedback.cjs +94 -173
- package/dist/server/components/PresentationFeedback.cjs.map +1 -1
- package/dist/server/components/PresentationFeedback.js +96 -175
- package/dist/server/components/PresentationFeedback.js.map +1 -1
- package/dist/server/components/ScratchpadPanel.cjs +1873 -3070
- package/dist/server/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/server/components/ScratchpadPanel.js +1873 -3070
- package/dist/server/components/ScratchpadPanel.js.map +1 -1
- package/dist/server/components/SplitStepper.cjs +48 -90
- package/dist/server/components/SplitStepper.cjs.map +1 -1
- package/dist/server/components/SplitStepper.js +49 -91
- package/dist/server/components/SplitStepper.js.map +1 -1
- package/dist/server/components/StreamingUIRenderer.cjs +180 -344
- package/dist/server/components/StreamingUIRenderer.cjs.map +1 -1
- package/dist/server/components/StreamingUIRenderer.js +181 -345
- package/dist/server/components/StreamingUIRenderer.js.map +1 -1
- package/dist/server/components/UIResourceRenderer.cjs +1378 -2070
- package/dist/server/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/server/components/UIResourceRenderer.js +1379 -2071
- package/dist/server/components/UIResourceRenderer.js.map +1 -1
- package/dist/server/components/VideoRenderer.cjs +95 -173
- package/dist/server/components/VideoRenderer.cjs.map +1 -1
- package/dist/server/components/VideoRenderer.js +97 -175
- package/dist/server/components/VideoRenderer.js.map +1 -1
- package/docs/KATEX-COMPATIBILITY-2026-11-09.md +84 -0
- package/docs/SOLID2-RC21-QUALIFICATION-2026-11-10.md +90 -0
- package/docs/SOLID2-STABLE-QUALIFICATION-2026-11-18.md +94 -0
- package/package.json +13 -10
|
@@ -3,8 +3,8 @@ import { useMCPUIConfig } from "../context/MCPUIConfigContext.js";
|
|
|
3
3
|
import { shouldSetCredentialless } from "../utils/iframe-coep.js";
|
|
4
4
|
import { IframeFallbackLink } from "./IframeFallbackLink.js";
|
|
5
5
|
import { ExpandableWrapper, useExpanded } from "./ExpandableWrapper.js";
|
|
6
|
-
import { escape, scope, ssr, ssrAttribute, ssrClassName, ssrGroup, ssrHydrationKey } from "@solidjs/web";
|
|
7
|
-
import {
|
|
6
|
+
import { escape, memo, scope, ssr, ssrAttribute, ssrClassName, ssrGroup, ssrHydrationKey } from "@solidjs/web";
|
|
7
|
+
import { createMemo } from "solid-js";
|
|
8
8
|
// src/components/VideoRenderer.tsx
|
|
9
9
|
/**
|
|
10
10
|
* VideoRenderer - Video embed component
|
|
@@ -13,33 +13,28 @@ import { Show, createMemo } from "solid-js";
|
|
|
13
13
|
* Supports YouTube, Vimeo, and direct video files
|
|
14
14
|
*/
|
|
15
15
|
var _tmpl$ = [
|
|
16
|
+
"<div",
|
|
17
|
+
"",
|
|
18
|
+
"><!--$-->",
|
|
19
|
+
"<!--/--><div",
|
|
20
|
+
">",
|
|
21
|
+
"</div><!--$-->",
|
|
22
|
+
"<!--/--><!--$-->",
|
|
23
|
+
"<!--/--></div>"
|
|
24
|
+
];
|
|
25
|
+
var _tmpl$2 = [
|
|
16
26
|
"<div",
|
|
17
27
|
" class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\"><h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">",
|
|
18
28
|
"</h3></div>"
|
|
19
29
|
];
|
|
20
|
-
var _tmpl$
|
|
30
|
+
var _tmpl$3 = [
|
|
21
31
|
"<iframe",
|
|
22
32
|
"",
|
|
23
33
|
"",
|
|
24
34
|
" class=\"absolute inset-0 w-full h-full\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen",
|
|
25
35
|
" loading=\"lazy\"></iframe>"
|
|
26
36
|
];
|
|
27
|
-
var _tmpl$3 = [
|
|
28
|
-
"<div",
|
|
29
|
-
" class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\"><p class=\"text-sm text-gray-600 dark:text-gray-400\">",
|
|
30
|
-
"</p></div>"
|
|
31
|
-
];
|
|
32
37
|
var _tmpl$4 = [
|
|
33
|
-
"<div",
|
|
34
|
-
"",
|
|
35
|
-
"><!--$-->",
|
|
36
|
-
"<!--/--><div",
|
|
37
|
-
">",
|
|
38
|
-
"</div><!--$-->",
|
|
39
|
-
"<!--/--><!--$-->",
|
|
40
|
-
"<!--/--></div>"
|
|
41
|
-
];
|
|
42
|
-
var _tmpl$5 = [
|
|
43
38
|
"<video",
|
|
44
39
|
"",
|
|
45
40
|
"",
|
|
@@ -50,6 +45,11 @@ var _tmpl$5 = [
|
|
|
50
45
|
" playsinline class=\"absolute inset-0 w-full h-full object-contain\"><track kind=\"captions\"><!--$-->",
|
|
51
46
|
"<!--/--></video>"
|
|
52
47
|
];
|
|
48
|
+
var _tmpl$5 = [
|
|
49
|
+
"<div",
|
|
50
|
+
" class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\"><p class=\"text-sm text-gray-600 dark:text-gray-400\">",
|
|
51
|
+
"</p></div>"
|
|
52
|
+
];
|
|
53
53
|
var _m$ = Symbol();
|
|
54
54
|
var _m$2 = Symbol();
|
|
55
55
|
var _m$3 = Symbol();
|
|
@@ -60,148 +60,17 @@ var _m$7 = Symbol();
|
|
|
60
60
|
var _d$ = {
|
|
61
61
|
get() {
|
|
62
62
|
const params = this[_m$];
|
|
63
|
-
return params()?.
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
};
|
|
68
|
-
var _d$2 = {
|
|
69
|
-
get() {
|
|
70
|
-
const params = this[_m$];
|
|
71
|
-
var _v$4 = ssrHydrationKey(), _v$5 = scope(() => {
|
|
72
|
-
return escape(params().title);
|
|
73
|
-
});
|
|
74
|
-
return ssr(_tmpl$, _v$4, _v$5);
|
|
63
|
+
return params()?.url || "";
|
|
75
64
|
},
|
|
76
65
|
enumerable: true,
|
|
77
66
|
configurable: true
|
|
78
67
|
};
|
|
79
68
|
function _P$(_p) {
|
|
80
69
|
this[_m$] = _p;
|
|
81
|
-
Object.defineProperty(this, "
|
|
82
|
-
Object.defineProperty(this, "children", _d$2);
|
|
70
|
+
Object.defineProperty(this, "url", _d$);
|
|
83
71
|
}
|
|
84
72
|
_P$.prototype = Object.prototype;
|
|
85
|
-
var _d$
|
|
86
|
-
get() {
|
|
87
|
-
const embedUrl = this[_m$];
|
|
88
|
-
return embedUrl();
|
|
89
|
-
},
|
|
90
|
-
enumerable: true,
|
|
91
|
-
configurable: true
|
|
92
|
-
};
|
|
93
|
-
var _d$4 = {
|
|
94
|
-
get() {
|
|
95
|
-
const params = this[_m$2];
|
|
96
|
-
const strings = this[_m$3];
|
|
97
|
-
var _v$18 = ssrHydrationKey(), _g$2 = ssrGroup(() => {
|
|
98
|
-
return [
|
|
99
|
-
ssrAttribute("src", escape(params()?.url, true)),
|
|
100
|
-
ssrAttribute("poster", escape(params()?.poster, true)),
|
|
101
|
-
ssrAttribute("autoplay", escape(params()?.autoplay, true)),
|
|
102
|
-
ssrAttribute("controls", escape(params()?.controls, true) !== escape(false, true)),
|
|
103
|
-
ssrAttribute("loop", escape(params()?.loop, true))
|
|
104
|
-
];
|
|
105
|
-
}, 5), _v$25 = scope(() => {
|
|
106
|
-
return escape(strings.videoUnsupported);
|
|
107
|
-
}), _v$24 = () => {
|
|
108
|
-
return ssrAttribute("muted", escape(params()?.muted, true));
|
|
109
|
-
};
|
|
110
|
-
return ssr(_tmpl$5, _v$18, _g$2, _g$2, _g$2, _g$2, _g$2, _v$24, _v$25);
|
|
111
|
-
},
|
|
112
|
-
enumerable: true,
|
|
113
|
-
configurable: true
|
|
114
|
-
};
|
|
115
|
-
var _d$5 = {
|
|
116
|
-
get() {
|
|
117
|
-
const embedUrl = this[_m$];
|
|
118
|
-
const params = this[_m$2];
|
|
119
|
-
const strings = this[_m$3];
|
|
120
|
-
const config = this[_m$4];
|
|
121
|
-
var _v$9 = ssrHydrationKey(), _g$ = ssrGroup(() => {
|
|
122
|
-
return [
|
|
123
|
-
ssrAttribute("src", escape(embedUrl(), true)),
|
|
124
|
-
ssrAttribute("title", escape(params()?.title || strings.videoTitle, true)),
|
|
125
|
-
ssrAttribute("credentialless", escape(shouldSetCredentialless(embedUrl(), config, { sandboxedWithoutSameOrigin: false }) || void 0, true))
|
|
126
|
-
];
|
|
127
|
-
}, 3);
|
|
128
|
-
return ssr(_tmpl$2, _v$9, _g$, _g$, _g$);
|
|
129
|
-
},
|
|
130
|
-
enumerable: true,
|
|
131
|
-
configurable: true
|
|
132
|
-
};
|
|
133
|
-
function _P$2(_p2, _p3, _p4, _p5) {
|
|
134
|
-
this[_m$] = _p2;
|
|
135
|
-
this[_m$2] = _p3;
|
|
136
|
-
this[_m$3] = _p4;
|
|
137
|
-
this[_m$4] = _p5;
|
|
138
|
-
Object.defineProperty(this, "when", _d$3);
|
|
139
|
-
Object.defineProperty(this, "fallback", _d$4);
|
|
140
|
-
Object.defineProperty(this, "children", _d$5);
|
|
141
|
-
}
|
|
142
|
-
_P$2.prototype = Object.prototype;
|
|
143
|
-
var _d$6 = {
|
|
144
|
-
get() {
|
|
145
|
-
const params = this[_m$];
|
|
146
|
-
return params()?.url || "";
|
|
147
|
-
},
|
|
148
|
-
enumerable: true,
|
|
149
|
-
configurable: true
|
|
150
|
-
};
|
|
151
|
-
function _P$3(_p6) {
|
|
152
|
-
this[_m$] = _p6;
|
|
153
|
-
Object.defineProperty(this, "url", _d$6);
|
|
154
|
-
}
|
|
155
|
-
_P$3.prototype = Object.prototype;
|
|
156
|
-
var _d$7 = {
|
|
157
|
-
get() {
|
|
158
|
-
const embedUrl = this[_m$];
|
|
159
|
-
return embedUrl();
|
|
160
|
-
},
|
|
161
|
-
enumerable: true,
|
|
162
|
-
configurable: true
|
|
163
|
-
};
|
|
164
|
-
var _d$8 = {
|
|
165
|
-
get() {
|
|
166
|
-
const params = this[_m$2];
|
|
167
|
-
return IframeFallbackLink(new _P$3(params));
|
|
168
|
-
},
|
|
169
|
-
enumerable: true,
|
|
170
|
-
configurable: true
|
|
171
|
-
};
|
|
172
|
-
function _P$4(_p7, _p8) {
|
|
173
|
-
this[_m$] = _p7;
|
|
174
|
-
this[_m$2] = _p8;
|
|
175
|
-
Object.defineProperty(this, "when", _d$7);
|
|
176
|
-
Object.defineProperty(this, "children", _d$8);
|
|
177
|
-
}
|
|
178
|
-
_P$4.prototype = Object.prototype;
|
|
179
|
-
var _d$9 = {
|
|
180
|
-
get() {
|
|
181
|
-
const params = this[_m$];
|
|
182
|
-
return params()?.caption;
|
|
183
|
-
},
|
|
184
|
-
enumerable: true,
|
|
185
|
-
configurable: true
|
|
186
|
-
};
|
|
187
|
-
var _d$10 = {
|
|
188
|
-
get() {
|
|
189
|
-
const params = this[_m$];
|
|
190
|
-
var _v$15 = ssrHydrationKey(), _v$16 = scope(() => {
|
|
191
|
-
return escape(params().caption);
|
|
192
|
-
});
|
|
193
|
-
return ssr(_tmpl$3, _v$15, _v$16);
|
|
194
|
-
},
|
|
195
|
-
enumerable: true,
|
|
196
|
-
configurable: true
|
|
197
|
-
};
|
|
198
|
-
function _P$5(_p9) {
|
|
199
|
-
this[_m$] = _p9;
|
|
200
|
-
Object.defineProperty(this, "when", _d$9);
|
|
201
|
-
Object.defineProperty(this, "children", _d$10);
|
|
202
|
-
}
|
|
203
|
-
_P$5.prototype = Object.prototype;
|
|
204
|
-
var _d$11 = {
|
|
73
|
+
var _d$2 = {
|
|
205
74
|
get() {
|
|
206
75
|
const params = this[_m$];
|
|
207
76
|
const strings = this[_m$2];
|
|
@@ -210,7 +79,7 @@ var _d$11 = {
|
|
|
210
79
|
enumerable: true,
|
|
211
80
|
configurable: true
|
|
212
81
|
};
|
|
213
|
-
var _d$
|
|
82
|
+
var _d$3 = {
|
|
214
83
|
get() {
|
|
215
84
|
const params = this[_m$];
|
|
216
85
|
return params()?.url || "";
|
|
@@ -218,21 +87,21 @@ var _d$12 = {
|
|
|
218
87
|
enumerable: true,
|
|
219
88
|
configurable: true
|
|
220
89
|
};
|
|
221
|
-
var _d$
|
|
90
|
+
var _d$4 = {
|
|
222
91
|
get() {
|
|
223
92
|
return this[_m$2].videoCopy;
|
|
224
93
|
},
|
|
225
94
|
enumerable: true,
|
|
226
95
|
configurable: true
|
|
227
96
|
};
|
|
228
|
-
var _d$
|
|
97
|
+
var _d$5 = {
|
|
229
98
|
get() {
|
|
230
99
|
return this[_m$3].toolbarVariant;
|
|
231
100
|
},
|
|
232
101
|
enumerable: true,
|
|
233
102
|
configurable: true
|
|
234
103
|
};
|
|
235
|
-
var _d$
|
|
104
|
+
var _d$6 = {
|
|
236
105
|
get() {
|
|
237
106
|
const isExpanded = this[_m$4];
|
|
238
107
|
const params = this[_m$];
|
|
@@ -242,29 +111,82 @@ var _d$15 = {
|
|
|
242
111
|
const config = this[_m$7];
|
|
243
112
|
var _v$ = ssrHydrationKey(), _v$3 = () => {
|
|
244
113
|
return ((_v$2) => _v$2 == null ? "" : ssrAttribute("class", ssrClassName(_v$2)))(`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${isExpanded() ? "flex-1 min-h-0 flex flex-col" : ""}`);
|
|
245
|
-
}, _v$
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
114
|
+
}, _v$4 = scope((() => {
|
|
115
|
+
var _c$ = memo(() => {
|
|
116
|
+
return !!params()?.title;
|
|
117
|
+
});
|
|
118
|
+
return () => {
|
|
119
|
+
var _v$10, _v$11;
|
|
120
|
+
return _c$() ? (_v$10 = ssrHydrationKey(), _v$11 = scope(() => {
|
|
121
|
+
return escape(params().title);
|
|
122
|
+
}), ssr(_tmpl$2, _v$10, _v$11)) : void 0;
|
|
123
|
+
};
|
|
124
|
+
})()), _v$6 = () => {
|
|
125
|
+
return ((_v$5) => _v$5 == null ? "" : ssrAttribute("class", ssrClassName(_v$5)))(`relative bg-black ${isExpanded() ? "flex-1 min-h-0" : aspectClass()}`);
|
|
126
|
+
}, _v$7 = scope((() => {
|
|
127
|
+
var _c$2 = memo(() => {
|
|
128
|
+
return !!embedUrl();
|
|
129
|
+
});
|
|
130
|
+
return () => {
|
|
131
|
+
var _v$12, _g$, _v$16, _g$2, _v$23, _v$22;
|
|
132
|
+
return _c$2() ? (_v$12 = ssrHydrationKey(), _g$ = ssrGroup(() => {
|
|
133
|
+
return [
|
|
134
|
+
ssrAttribute("src", escape(embedUrl(), true)),
|
|
135
|
+
ssrAttribute("title", escape(params()?.title || strings.videoTitle, true)),
|
|
136
|
+
ssrAttribute("credentialless", escape(shouldSetCredentialless(embedUrl(), config, { sandboxedWithoutSameOrigin: false }) || void 0, true))
|
|
137
|
+
];
|
|
138
|
+
}, 3), ssr(_tmpl$3, _v$12, _g$, _g$, _g$)) : (_v$16 = ssrHydrationKey(), _g$2 = ssrGroup(() => {
|
|
139
|
+
return [
|
|
140
|
+
ssrAttribute("src", escape(params()?.url, true)),
|
|
141
|
+
ssrAttribute("poster", escape(params()?.poster, true)),
|
|
142
|
+
ssrAttribute("autoplay", escape(params()?.autoplay, true)),
|
|
143
|
+
ssrAttribute("controls", escape(params()?.controls, true) !== escape(false, true)),
|
|
144
|
+
ssrAttribute("loop", escape(params()?.loop, true))
|
|
145
|
+
];
|
|
146
|
+
}, 5), _v$23 = scope(() => {
|
|
147
|
+
return escape(strings.videoUnsupported);
|
|
148
|
+
}), _v$22 = () => {
|
|
149
|
+
return ssrAttribute("muted", escape(params()?.muted, true));
|
|
150
|
+
}, ssr(_tmpl$4, _v$16, _g$2, _g$2, _g$2, _g$2, _g$2, _v$22, _v$23));
|
|
151
|
+
};
|
|
152
|
+
})()), _v$8 = scope((() => {
|
|
153
|
+
var _c$3 = memo(() => {
|
|
154
|
+
return !!embedUrl();
|
|
155
|
+
});
|
|
156
|
+
return () => {
|
|
157
|
+
return _c$3() ? escape(IframeFallbackLink(new _P$(params))) : void 0;
|
|
158
|
+
};
|
|
159
|
+
})()), _v$9 = scope((() => {
|
|
160
|
+
var _c$4 = memo(() => {
|
|
161
|
+
return !!params()?.caption;
|
|
162
|
+
});
|
|
163
|
+
return () => {
|
|
164
|
+
var _v$24, _v$25;
|
|
165
|
+
return _c$4() ? (_v$24 = ssrHydrationKey(), _v$25 = scope(() => {
|
|
166
|
+
return escape(params().caption);
|
|
167
|
+
}), ssr(_tmpl$5, _v$24, _v$25)) : void 0;
|
|
168
|
+
};
|
|
169
|
+
})());
|
|
170
|
+
return ssr(_tmpl$, _v$, _v$3, _v$4, _v$6, _v$7, _v$8, _v$9);
|
|
249
171
|
},
|
|
250
172
|
enumerable: true,
|
|
251
173
|
configurable: true
|
|
252
174
|
};
|
|
253
|
-
function _P$
|
|
254
|
-
this[_m$] =
|
|
255
|
-
this[_m$2] =
|
|
256
|
-
this[_m$3] =
|
|
257
|
-
this[_m$4] =
|
|
258
|
-
this[_m$5] =
|
|
259
|
-
this[_m$6] =
|
|
260
|
-
this[_m$7] =
|
|
261
|
-
Object.defineProperty(this, "title", _d$
|
|
262
|
-
Object.defineProperty(this, "copyData", _d$
|
|
263
|
-
Object.defineProperty(this, "copyLabel", _d$
|
|
264
|
-
Object.defineProperty(this, "toolbarVariant", _d$
|
|
265
|
-
Object.defineProperty(this, "children", _d$
|
|
175
|
+
function _P$2(_p2, _p3, _p4, _p5, _p6, _p7, _p8) {
|
|
176
|
+
this[_m$] = _p2;
|
|
177
|
+
this[_m$2] = _p3;
|
|
178
|
+
this[_m$3] = _p4;
|
|
179
|
+
this[_m$4] = _p5;
|
|
180
|
+
this[_m$5] = _p6;
|
|
181
|
+
this[_m$6] = _p7;
|
|
182
|
+
this[_m$7] = _p8;
|
|
183
|
+
Object.defineProperty(this, "title", _d$2);
|
|
184
|
+
Object.defineProperty(this, "copyData", _d$3);
|
|
185
|
+
Object.defineProperty(this, "copyLabel", _d$4);
|
|
186
|
+
Object.defineProperty(this, "toolbarVariant", _d$5);
|
|
187
|
+
Object.defineProperty(this, "children", _d$6);
|
|
266
188
|
}
|
|
267
|
-
_P$
|
|
189
|
+
_P$2.prototype = Object.prototype;
|
|
268
190
|
/**
|
|
269
191
|
* Extract video ID and provider from URL
|
|
270
192
|
*/
|
|
@@ -321,7 +243,7 @@ var VideoRenderer = (props) => {
|
|
|
321
243
|
default: return "aspect-video";
|
|
322
244
|
}
|
|
323
245
|
};
|
|
324
|
-
return ExpandableWrapper(new _P$
|
|
246
|
+
return ExpandableWrapper(new _P$2(params, strings, props, isExpanded, aspectClass, embedUrl, config));
|
|
325
247
|
};
|
|
326
248
|
/**
|
|
327
249
|
* Check if a URL is from a supported video provider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoRenderer.js","names":["{params()!.title}","params()!.title","<div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>","<video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>","src={params()?.url}","params()?.url","poster={params()?.poster}","params()?.poster","autoplay={params()?.autoplay}","params()?.autoplay","controls={params()?.controls !== false}","params()?.controls","false","loop={params()?.loop}","params()?.loop","{strings.videoUnsupported}","strings.videoUnsupported","params()?.muted","muted={params()?.muted}","src={embedUrl()!}","embedUrl()!","title={params()?.title || strings.videoTitle}","params()?.title || strings.videoTitle","credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }","shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined","<iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />","{params()!.caption}","params()!.caption","<div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>","<Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>","<Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>","<Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>","<Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>","<div class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}>\n {/* Title */}\n <Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>\n\n {/* Video Container — when expanded, fill remaining space (override aspect ratio) */}\n <div class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}>\n <Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>\n </div>\n\n {/* v6.21.0 — a COEP-blocked embed is silent; this link is the way out. */}\n <Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>\n\n {/* Caption */}\n <Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>\n </div>","class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}","class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}","_$ssrHydrationKey","_$scope","_$escape","_$ssr","_$ssrGroup","_$ssrAttribute","_$ssrClassName"],"sources":["../../../src/components/VideoRenderer.tsx"],"sourcesContent":["/**\n * VideoRenderer - Video embed component\n * Sprint 5: Media Components\n *\n * Supports YouTube, Vimeo, and direct video files\n */\n\nimport { Component, createMemo, Show } from 'solid-js'\nimport type { UIComponent, VideoComponentParams } from '../types'\nimport { ExpandableWrapper, useExpanded } from './ExpandableWrapper'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\nimport { useMCPUIConfig } from '../context/MCPUIConfigContext'\nimport { shouldSetCredentialless } from '../utils/iframe-coep'\nimport { IframeFallbackLink } from './IframeFallbackLink'\n\nexport interface VideoRendererProps {\n /**\n * UIComponent containing video params\n */\n component?: UIComponent\n\n /**\n * Direct video params (alternative to component)\n */\n params?: VideoComponentParams\n\n /**\n * Error callback\n */\n onError?: (error: Error) => void\n\n /**\n * Forwarded to the underlying `<ExpandableWrapper>` (v6.3.1).\n * @see ExpandableWrapperProps.toolbarVariant\n */\n toolbarVariant?: 'hover' | 'always-visible'\n}\n\n/**\n * Video provider type\n */\ntype VideoProvider = 'youtube' | 'vimeo' | 'direct'\n\n/**\n * Parsed video info\n */\ninterface VideoInfo {\n provider: VideoProvider\n videoId?: string\n}\n\n/**\n * Extract video ID and provider from URL\n */\nfunction parseVideoUrl(url: string): VideoInfo {\n // YouTube patterns:\n // - youtube.com/watch?v=VIDEO_ID\n // - youtube.com/embed/VIDEO_ID\n // - youtube.com/v/VIDEO_ID\n // - youtu.be/VIDEO_ID\n const youtubeMatch = url.match(\n /(?:youtube\\.com\\/(?:watch\\?v=|embed\\/|v\\/)|youtu\\.be\\/)([a-zA-Z0-9_-]{11})/\n )\n if (youtubeMatch) {\n return { provider: 'youtube', videoId: youtubeMatch[1] }\n }\n\n // Vimeo patterns:\n // - vimeo.com/VIDEO_ID\n // - player.vimeo.com/video/VIDEO_ID\n const vimeoMatch = url.match(/(?:vimeo\\.com\\/|player\\.vimeo\\.com\\/video\\/)(\\d+)/)\n if (vimeoMatch) {\n return { provider: 'vimeo', videoId: vimeoMatch[1] }\n }\n\n // Direct video file\n return { provider: 'direct' }\n}\n\nexport const VideoRenderer: Component<VideoRendererProps> = (props) => {\n const strings = useMCPUIStrings()\n const config = useMCPUIConfig()\n const params = () => props.params || (props.component?.params as VideoComponentParams)\n const isExpanded = useExpanded()\n\n const videoInfo = createMemo(() => parseVideoUrl(params()?.url || ''))\n\n const embedUrl = createMemo(() => {\n const info = videoInfo()\n const p = params()\n\n if (!p?.url) return null\n\n switch (info.provider) {\n case 'youtube': {\n const ytParams = new URLSearchParams({\n autoplay: p.autoplay ? '1' : '0',\n controls: p.controls !== false ? '1' : '0',\n loop: p.loop ? '1' : '0',\n mute: p.muted ? '1' : '0',\n })\n if (p.startTime) {\n ytParams.set('start', String(p.startTime))\n }\n // Use youtube-nocookie.com for privacy\n return `https://www.youtube-nocookie.com/embed/${info.videoId}?${ytParams}`\n }\n\n case 'vimeo': {\n const vParams = new URLSearchParams({\n autoplay: p.autoplay ? '1' : '0',\n loop: p.loop ? '1' : '0',\n muted: p.muted ? '1' : '0',\n })\n return `https://player.vimeo.com/video/${info.videoId}?${vParams}`\n }\n\n default:\n return null\n }\n })\n\n const aspectClass = () => {\n switch (params()?.aspectRatio) {\n case '1:1':\n return 'aspect-square'\n case '4:3':\n return 'aspect-[4/3]'\n case '21:9':\n return 'aspect-[21/9]'\n default:\n return 'aspect-video' // 16:9\n }\n }\n\n const handleVideoError = (e: Event) => {\n const error = new Error('Video failed to load')\n console.error('Video error:', e)\n props.onError?.(error)\n }\n\n return (\n <ExpandableWrapper\n title={params()?.title || strings.videoTitle}\n copyData={params()?.url || ''}\n copyLabel={strings.videoCopy}\n toolbarVariant={props.toolbarVariant}\n >\n <div class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}>\n {/* Title */}\n <Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>\n\n {/* Video Container — when expanded, fill remaining space (override aspect ratio) */}\n <div class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}>\n <Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>\n </div>\n\n {/* v6.21.0 — a COEP-blocked embed is silent; this link is the way out. */}\n <Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>\n\n {/* Caption */}\n <Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>\n </div>\n </ExpandableWrapper>\n )\n}\n\n/**\n * Check if a URL is from a supported video provider\n */\nexport function isSupportedVideoUrl(url: string): boolean {\n const info = parseVideoUrl(url)\n return info.provider !== 'direct' || url.match(/\\.(mp4|webm|ogg|mov)$/i) !== null\n}\n\n/**\n * Get video provider from URL\n */\nexport function getVideoProvider(url: string): VideoProvider {\n return parseVideoUrl(url).provider\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwJY,OAAM,OAAO,CAAC,EAAE;;;;;;;;E,WACpBoC,gBAEK,G,OAD6DpC,YAAAA;GAACC,OAAAA,OAAAA,OAAO,CAAC,CAAE,KAAI;EAAC,CAAA;EADlF,OAAAC,IAAAA,QAAAA,MACkEF,IAC7D;;;;;;;;;;;;;;EAMH,OAAM,SAAS;;;;;;;;;EAGb,IAAA,QAAAoC,gBAaO,GAbPjC,OAAAA,eAAAA;;IACEC,aAAAA,OAAKC,OAAAA,OAAO,CAAC,EAAE,KAAV,IAAY,CAAC;IAClBC,aAAAA,UAAQC,OAAAA,OAAO,CAAC,EAAE,QAAV,IAAe,CAAC;IACxBC,aAAAA,YAAUC,OAAAA,OAAO,CAAC,EAAE,UAAV,IAAiB,CAAC;IAC5BC,aAAAA,YAAUC,OAAAA,OAAO,CAAC,EAAE,UAAV,IAAiB,MAAMC,OAAAA,OAAAA,IAAI,CAAC;IACtCC,aAAAA,QAAMC,OAAAA,OAAO,CAAC,EAAE,MAAV,IAAa,CAAC;;EALtBX,GAAAA,CAAAA,GAAAA,QAYEY,YAAAA;GAACC,OAAAA,OAAAA,QAAQ,gBAAe;EAAC,CAAA,GAZ3Bb,cAME;GAAOc,OAAAA,aAAAA,SAAAA,OAAAA,OAAO,CAAC,EAAE,OAAV,IAAc,CAAC;;EAR1B,OAEEd,IAAAA,SAAAA,OAAAA,MAAAA,MAAAA,MAAAA,MAAAA,MAMEe,OAMAH,KACK;;;;;;;;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,IAAI,gBAAgB;KAClC,UAAU,EAAE,WAAW,MAAM;KAC7B,MAAM,EAAE,OAAO,MAAM;KACrB,OAAO,EAAE,QAAQ,MAAM;IACzB,CAAC;IACD,OAAO,kCAAkC,KAAK,QAAQ,GAAG;GAC3D;GAEA,SACE,OAAO;EACX;CACF,CAAC;CAED,MAAM,oBAAoB;EACxB,QAAQ,OAAO,CAAC,EAAE,aAAlB;GACE,KAAK,OACH,OAAO;GACT,KAAK,OACH,OAAO;GACT,KAAK,QACH,OAAO;GACT,SACE,OAAO;EACX;CACF;CAQA,OAAA,kBACE,IAAA,KACS,QAAmB,SAGV,OAGhB,YAUmE,aAEzD,UAiCmC,MAqB5B,CAAA;AAEvB;;;;AAKA,SAAgB,oBAAoB,KAAsB;CAExD,OADa,cAAc,GACpB,CAAA,CAAK,aAAa,YAAY,IAAI,MAAM,wBAAwB,MAAM;AAC/E;;;;AAKA,SAAgB,iBAAiB,KAA4B;CAC3D,OAAO,cAAc,GAAG,CAAC,CAAC;AAC5B"}
|
|
1
|
+
{"version":3,"file":"VideoRenderer.js","names":["<Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>","{params()!.title}","params()!.title","<div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>","<Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>","src={embedUrl()!}","embedUrl()!","title={params()?.title || strings.videoTitle}","params()?.title || strings.videoTitle","credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }","shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined","<iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />","src={params()?.url}","params()?.url","poster={params()?.poster}","params()?.poster","autoplay={params()?.autoplay}","params()?.autoplay","controls={params()?.controls !== false}","params()?.controls","false","loop={params()?.loop}","params()?.loop","{strings.videoUnsupported}","strings.videoUnsupported","params()?.muted","<video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>","muted={params()?.muted}","<Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>","<Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>","{params()!.caption}","params()!.caption","<div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>","<div class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}>\n {/* Title */}\n <Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>\n\n {/* Video Container — when expanded, fill remaining space (override aspect ratio) */}\n <div class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}>\n <Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>\n </div>\n\n {/* v6.21.0 — a COEP-blocked embed is silent; this link is the way out. */}\n <Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>\n\n {/* Caption */}\n <Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>\n </div>","class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}","class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}","_$ssrHydrationKey","_$ssrAttribute","_$ssrClassName","_$scope","_$memo","_$escape","_$ssr","_$ssrGroup"],"sources":["../../../src/components/VideoRenderer.tsx"],"sourcesContent":["/**\n * VideoRenderer - Video embed component\n * Sprint 5: Media Components\n *\n * Supports YouTube, Vimeo, and direct video files\n */\n\nimport { Component, createMemo, Show } from 'solid-js'\nimport type { UIComponent, VideoComponentParams } from '../types'\nimport { ExpandableWrapper, useExpanded } from './ExpandableWrapper'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\nimport { useMCPUIConfig } from '../context/MCPUIConfigContext'\nimport { shouldSetCredentialless } from '../utils/iframe-coep'\nimport { IframeFallbackLink } from './IframeFallbackLink'\n\nexport interface VideoRendererProps {\n /**\n * UIComponent containing video params\n */\n component?: UIComponent\n\n /**\n * Direct video params (alternative to component)\n */\n params?: VideoComponentParams\n\n /**\n * Error callback\n */\n onError?: (error: Error) => void\n\n /**\n * Forwarded to the underlying `<ExpandableWrapper>` (v6.3.1).\n * @see ExpandableWrapperProps.toolbarVariant\n */\n toolbarVariant?: 'hover' | 'always-visible'\n}\n\n/**\n * Video provider type\n */\ntype VideoProvider = 'youtube' | 'vimeo' | 'direct'\n\n/**\n * Parsed video info\n */\ninterface VideoInfo {\n provider: VideoProvider\n videoId?: string\n}\n\n/**\n * Extract video ID and provider from URL\n */\nfunction parseVideoUrl(url: string): VideoInfo {\n // YouTube patterns:\n // - youtube.com/watch?v=VIDEO_ID\n // - youtube.com/embed/VIDEO_ID\n // - youtube.com/v/VIDEO_ID\n // - youtu.be/VIDEO_ID\n const youtubeMatch = url.match(\n /(?:youtube\\.com\\/(?:watch\\?v=|embed\\/|v\\/)|youtu\\.be\\/)([a-zA-Z0-9_-]{11})/\n )\n if (youtubeMatch) {\n return { provider: 'youtube', videoId: youtubeMatch[1] }\n }\n\n // Vimeo patterns:\n // - vimeo.com/VIDEO_ID\n // - player.vimeo.com/video/VIDEO_ID\n const vimeoMatch = url.match(/(?:vimeo\\.com\\/|player\\.vimeo\\.com\\/video\\/)(\\d+)/)\n if (vimeoMatch) {\n return { provider: 'vimeo', videoId: vimeoMatch[1] }\n }\n\n // Direct video file\n return { provider: 'direct' }\n}\n\nexport const VideoRenderer: Component<VideoRendererProps> = (props) => {\n const strings = useMCPUIStrings()\n const config = useMCPUIConfig()\n const params = () => props.params || (props.component?.params as VideoComponentParams)\n const isExpanded = useExpanded()\n\n const videoInfo = createMemo(() => parseVideoUrl(params()?.url || ''))\n\n const embedUrl = createMemo(() => {\n const info = videoInfo()\n const p = params()\n\n if (!p?.url) return null\n\n switch (info.provider) {\n case 'youtube': {\n const ytParams = new URLSearchParams({\n autoplay: p.autoplay ? '1' : '0',\n controls: p.controls !== false ? '1' : '0',\n loop: p.loop ? '1' : '0',\n mute: p.muted ? '1' : '0',\n })\n if (p.startTime) {\n ytParams.set('start', String(p.startTime))\n }\n // Use youtube-nocookie.com for privacy\n return `https://www.youtube-nocookie.com/embed/${info.videoId}?${ytParams}`\n }\n\n case 'vimeo': {\n const vParams = new URLSearchParams({\n autoplay: p.autoplay ? '1' : '0',\n loop: p.loop ? '1' : '0',\n muted: p.muted ? '1' : '0',\n })\n return `https://player.vimeo.com/video/${info.videoId}?${vParams}`\n }\n\n default:\n return null\n }\n })\n\n const aspectClass = () => {\n switch (params()?.aspectRatio) {\n case '1:1':\n return 'aspect-square'\n case '4:3':\n return 'aspect-[4/3]'\n case '21:9':\n return 'aspect-[21/9]'\n default:\n return 'aspect-video' // 16:9\n }\n }\n\n const handleVideoError = (e: Event) => {\n const error = new Error('Video failed to load')\n console.error('Video error:', e)\n props.onError?.(error)\n }\n\n return (\n <ExpandableWrapper\n title={params()?.title || strings.videoTitle}\n copyData={params()?.url || ''}\n copyLabel={strings.videoCopy}\n toolbarVariant={props.toolbarVariant}\n >\n <div class={`w-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden ${\n isExpanded() ? 'flex-1 min-h-0 flex flex-col' : ''\n }`}>\n {/* Title */}\n <Show when={params()?.title}>\n <div class=\"px-4 py-3 border-b border-gray-200 dark:border-gray-700\">\n <h3 class=\"text-sm font-semibold text-gray-900 dark:text-white\">{params()!.title}</h3>\n </div>\n </Show>\n\n {/* Video Container — when expanded, fill remaining space (override aspect ratio) */}\n <div class={`relative bg-black ${isExpanded() ? 'flex-1 min-h-0' : aspectClass()}`}>\n <Show\n when={embedUrl()}\n fallback={\n // Direct video file\n <video\n src={params()?.url}\n poster={params()?.poster}\n autoplay={params()?.autoplay}\n controls={params()?.controls !== false}\n loop={params()?.loop}\n muted={params()?.muted}\n playsinline\n class=\"absolute inset-0 w-full h-full object-contain\"\n onError={handleVideoError}\n >\n <track kind=\"captions\" />\n {strings.videoUnsupported}\n </video>\n }\n >\n {/* YouTube/Vimeo embed */}\n <iframe\n src={embedUrl()!}\n title={params()?.title || strings.videoTitle}\n class=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n // v6.21.0 — youtube-nocookie / player.vimeo are not trusted hosts,\n // so under COEP `credentialless` is what lets them load at all.\n // Solid 2 uses standard attributes; false means absence.\n credentialless={\n // No sandbox here: a YouTube/Vimeo embed keeps its provider\n // cookies, so `'auto'` leaves it alone and a COEP host opts in\n // with `iframeCredentialless: 'always'`.\n shouldSetCredentialless(embedUrl()!, config, {\n sandboxedWithoutSameOrigin: false,\n }) || undefined\n }\n loading=\"lazy\"\n />\n </Show>\n </div>\n\n {/* v6.21.0 — a COEP-blocked embed is silent; this link is the way out. */}\n <Show when={embedUrl()}>\n <IframeFallbackLink url={params()?.url || ''} />\n </Show>\n\n {/* Caption */}\n <Show when={params()?.caption}>\n <div class=\"px-4 py-3 border-t border-gray-200 dark:border-gray-700 flex-shrink-0\">\n <p class=\"text-sm text-gray-600 dark:text-gray-400\">{params()!.caption}</p>\n </div>\n </Show>\n </div>\n </ExpandableWrapper>\n )\n}\n\n/**\n * Check if a URL is from a supported video provider\n */\nexport function isSupportedVideoUrl(url: string): boolean {\n const info = parseVideoUrl(url)\n return info.provider !== 'direct' || url.match(/\\.(mp4|webm|ogg|mov)$/i) !== null\n}\n\n/**\n * Get video provider from URL\n */\nexport function getVideoProvider(url: string): VideoProvider {\n return parseVideoUrl(url).provider\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6M4B,OAAK,OAAO,CAAC,EAAE,OAAO;;;;;;;;;;;;;;EA9D5C,OAAO,OAAO,CAAC,EAAE,SAAS,QAAQ;;;;;;;;EAClC,OAAU,OAAO,CAAC,EAAE,OAAO;;;;;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AmB,SAGV,OAGhB,YAUmE,aAEzD,UAiCmC,MAqB5B,CAAA;AAEvB;;;;AAKA,SAAgB,oBAAoB,KAAsB;CAExD,OADa,cAAc,GACpB,CAAA,CAAK,aAAa,YAAY,IAAI,MAAM,wBAAwB,MAAM;AAC/E;;;;AAKA,SAAgB,iBAAiB,KAA4B;CAC3D,OAAO,cAAc,GAAG,CAAC,CAAC;AAC5B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# KaTeX compatibility candidate — 2026-11-09
|
|
2
|
+
|
|
3
|
+
> Historical `.2` / RC.20 qualification. For the `.3` / RC.21 candidate and
|
|
4
|
+
> the subsequently merged Deposium Mermaid fix, use the
|
|
5
|
+
> [current handoff](./SOLID2-RC21-QUALIFICATION-2026-11-10.md).
|
|
6
|
+
|
|
7
|
+
## Source, candidate and release boundary
|
|
8
|
+
|
|
9
|
+
Start: published `@seed-ship/mcp-ui-solid@8.0.0-solid2.1`, source
|
|
10
|
+
`f2efd502b89a97ab66cc17e96c7c00bcaff0d182` on `feat/solid2-preview`, not the
|
|
11
|
+
older canonical Solid 1 checkout. The focused PR targets that Solid 2 branch.
|
|
12
|
+
Candidate: `8.0.0-solid2.2`; intended opt-in npm channel: `solid2`.
|
|
13
|
+
|
|
14
|
+
The optional peer explicitly accepts only `0.18.4 || 0.18.5`; no caret or
|
|
15
|
+
future version is promised. Development KaTeX remains pinned to 0.18.4. The
|
|
16
|
+
adapter, public exports, Solid/core/web/signals/compiler/Babel RC.20 cohort,
|
|
17
|
+
Vite plugin next.51, lockfile, Spec 6.0.0 and CLI 5.0.2 remain unchanged.
|
|
18
|
+
|
|
19
|
+
This PR does not publish/stage anything or move `latest`. The trusted preview
|
|
20
|
+
release policy still binds `.1`; a future `.2` promotion needs a separately
|
|
21
|
+
reviewed policy/qualification update, after this candidate is validated. The
|
|
22
|
+
generic source CI/harness identity follows `.2`, so merging the focused PR into
|
|
23
|
+
the Solid 2 branch does not leave a stale tarball filename/version check.
|
|
24
|
+
Do not merge the full Solid 2 port into main or
|
|
25
|
+
push a preview Git tag to obtain a build.
|
|
26
|
+
|
|
27
|
+
## Qualification contract
|
|
28
|
+
|
|
29
|
+
The focused matrix must build and pack the actual candidate and install it in
|
|
30
|
+
clean consumers with strict peer checking, no workspace alias and no KaTeX
|
|
31
|
+
override: exact 0.18.4, exact 0.18.5, and KaTeX absent. Check both compiled
|
|
32
|
+
ESM/CJS imports, the peer metadata, original exports and tarball SHA-256.
|
|
33
|
+
Installed math consumers must exercise inline/display MathML, fractions,
|
|
34
|
+
indices, matrices, invalid TeX, macro isolation, untrusted commands and limits.
|
|
35
|
+
The absent consumer must import and render the main entry without KaTeX.
|
|
36
|
+
|
|
37
|
+
Chromium must exercise development and production builds. MCPUI's existing SSR
|
|
38
|
+
contract is intentional: the server emits escaped Markdown source without
|
|
39
|
+
calling the math renderer; the client upgrades it to sanitized MathML after
|
|
40
|
+
hydration. Verify SSR sentinel identity, live updates/unmount and zero browser
|
|
41
|
+
or hydration errors. This does not promise server-rendered MathML or identical
|
|
42
|
+
layout to Deposium chat's HTML+MathML renderer.
|
|
43
|
+
|
|
44
|
+
Actual executed counts and the exact candidate tarball checksum are retained
|
|
45
|
+
in the PR and uploaded qualification reports, not inferred from this checklist.
|
|
46
|
+
The focused workflow reproduces the build, source tests and clean-host matrix;
|
|
47
|
+
source preparation alone is not a passing test or publication claim.
|
|
48
|
+
|
|
49
|
+
## Unchanged security boundary
|
|
50
|
+
|
|
51
|
+
`renderKatexMath` keeps `output: 'mathml'`, `throwOnError: true`, `trust: false`,
|
|
52
|
+
`maxExpand: 1000`, `maxSize: 20` and fresh per-call macros. Invalid TeX returns
|
|
53
|
+
null so the caller preserves the complete original token. The two-stage MathML
|
|
54
|
+
and final-sink sanitization still removes scripts, links/styles and annotation
|
|
55
|
+
subtrees. Source/expression/count bounds remain 100,000 / 4,096 / 128.
|
|
56
|
+
|
|
57
|
+
[GHSA-238p-pmpm-9mq7](https://github.com/advisories/GHSA-238p-pmpm-9mq7) affects
|
|
58
|
+
KaTeX >=0.11.0 and <0.18.2: direct 0.18.4 is already patched. This candidate is
|
|
59
|
+
compatibility qualification, not a claim to repair that advisory in direct
|
|
60
|
+
0.18.4. [KaTeX 0.18.5](https://github.com/KaTeX/KaTeX/releases/tag/v0.18.5)
|
|
61
|
+
also depends on Commander 15, which requires Node >=22.12.0.
|
|
62
|
+
|
|
63
|
+
## Deposium handoff
|
|
64
|
+
|
|
65
|
+
Only **after** review and separately authorized publication:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pnpm add --save-exact @seed-ship/mcp-ui-solid@8.0.0-solid2.2 katex@0.18.5
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This exact-version command chooses the `solid2` candidate without relying on or
|
|
72
|
+
changing `latest`; it cannot work from the public registry before publication.
|
|
73
|
+
For pre-publication qualification, install the reviewed `.tgz` instead and
|
|
74
|
+
retain its checksum. Keep the host's coherent Solid RC.20 cohort, use Node
|
|
75
|
+
>=22.12, and commit its own lockfile. The main library import remains usable
|
|
76
|
+
without KaTeX; only the explicit `plugins/katex` import requires the optional
|
|
77
|
+
peer. Continue wrapping text/table renderers in `MCPUIMathProvider`.
|
|
78
|
+
|
|
79
|
+
Deposium still owns the reported KaTeX 0.16.47 through Mermaid 12.0.0. Changing
|
|
80
|
+
this direct peer does not remediate Mermaid's transitive graph. Inspect that
|
|
81
|
+
graph and qualify any Mermaid update/override separately; do not infer that
|
|
82
|
+
the whole host audit is clean. Also rerun the real chat, table, currency,
|
|
83
|
+
streaming and hydration flows after integrating the candidate. No application
|
|
84
|
+
files or transitive Mermaid dependencies are changed by this PR.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Solid 2 RC.21 qualification — 2026-11-10
|
|
2
|
+
|
|
3
|
+
## Candidate and scope
|
|
4
|
+
|
|
5
|
+
Candidate `@seed-ship/mcp-ui-solid@8.0.0-solid2.3`, intended opt-in npm channel
|
|
6
|
+
`solid2`, starts from synchronized preview head `f37ce251c041159c625764c42fb39677eaf9c73a`.
|
|
7
|
+
That head has the same file tree as the `.2` / RC.20 KaTeX qualification after
|
|
8
|
+
PR #44. Synchronization integrated main ancestry into the preview, not the
|
|
9
|
+
runtime port into stable main. The old canonical checkout was not edited.
|
|
10
|
+
|
|
11
|
+
Core, web, signals, compiler and Babel are exactly `2.0.0-rc.21`; the Vite plugin
|
|
12
|
+
is exactly `3.0.0-next.57`. Vite stays 8.3.5, virtual-core stays 3.13.18 and the
|
|
13
|
+
Seroval pair remains renderer-owned at 1.7.0. Spec 6.0.0 and CLI 5.0.2 are
|
|
14
|
+
unchanged. KaTeX remains optional and accepts only `0.18.4 || 0.18.5`.
|
|
15
|
+
Do not install this candidate over an RC.19/RC.20 or Solid 1 reactive tree.
|
|
16
|
+
|
|
17
|
+
The producer lock changes only this Solid/tooling cohort, its peer contexts
|
|
18
|
+
and obsolete Babel type packages no longer used by the new plugin. The
|
|
19
|
+
existing vitefu/Vite peer metadata warning is not hidden or treated as a
|
|
20
|
+
runtime success; actual build and consumer checks are separate evidence.
|
|
21
|
+
|
|
22
|
+
## Required proof
|
|
23
|
+
|
|
24
|
+
Run build before typechecking/testing a clean worktree: the Spec workspace's
|
|
25
|
+
real declarations and built subpath contracts must exist. A failure caused by
|
|
26
|
+
missing build fixtures is not evidence for or against RC.21 compatibility.
|
|
27
|
+
|
|
28
|
+
Qualification includes source tests/type contracts, offline cohort/release
|
|
29
|
+
safeguards, and the actual built and packed candidate in clean RC.21 hosts:
|
|
30
|
+
|
|
31
|
+
- Full and optional-absent consumers, compiled browser entry points, native
|
|
32
|
+
engines, streaming/cleanup, text/table/source and dev/production SSR/hydration.
|
|
33
|
+
- Exact KaTeX 0.18.4, exact 0.18.5 and absent peer, including plugin-relative
|
|
34
|
+
resolution, ESM/CJS, MathML, invalid TeX, sanitization and resource limits.
|
|
35
|
+
- Independent Solid 1 baseline using its own runtime and lockfile.
|
|
36
|
+
|
|
37
|
+
Existing diagnostic gates remain strict; the new RC.21
|
|
38
|
+
`CAUGHT_REACTIVE_READ` is explicitly fatal in both SSR harnesses, with a named
|
|
39
|
+
regression. Browser math qualification rejects all console warnings/errors.
|
|
40
|
+
The next.57 consumer fixtures use `start.nodeServer`, replacing the removed
|
|
41
|
+
`start.node` option; the middleware contract remains `(event, next)`.
|
|
42
|
+
The full consumer explicitly sets `build.manifest: true` to retain the client
|
|
43
|
+
manifest inspected by qualification; next.57 otherwise removes this internal
|
|
44
|
+
metadata after embedding it in the server. The manifest assertion is retained.
|
|
45
|
+
Both runners await log finalization before checking SSR diagnostics, with
|
|
46
|
+
delayed-write regressions, so late diagnostics cannot escape the gate.
|
|
47
|
+
Do not mask diagnostics or widen peers to an untested RC range to get a pass.
|
|
48
|
+
Record actual test counts, exact head/run/artifact and the `.tgz` SHA-256 in
|
|
49
|
+
the PR and raw CI reports. A source version or old green run is not proof.
|
|
50
|
+
|
|
51
|
+
The primary CI artifact includes all three KaTeX consumers alongside the full,
|
|
52
|
+
optional-absent and compiled-browser reports. Every consumer uses the same
|
|
53
|
+
already packed Solid tarball and Spec fixture, rather than an independently
|
|
54
|
+
repacked archive from a different workflow. The separate KaTeX workflow is an
|
|
55
|
+
additional targeted check, not the promotion evidence source.
|
|
56
|
+
|
|
57
|
+
## Deposium / Mermaid checkpoint
|
|
58
|
+
|
|
59
|
+
The inspected local application had direct KaTeX 0.18.4 and Mermaid 12.0.0
|
|
60
|
+
resolving its own 0.16.47. This differs from current remote main: application
|
|
61
|
+
[PR #1105](https://github.com/theseedship/deposium_solid/pull/1105) already merged
|
|
62
|
+
Mermaid 12.3.0 with a narrow `mermaid@12.3.0>katex` override to 0.18.4. Do not
|
|
63
|
+
duplicate that fix or replace it with a global override. Outdated local
|
|
64
|
+
worktrees and installed dependencies require application-owned synchronization
|
|
65
|
+
that preserves their WIP; no local pull/install/deployment is implied here.
|
|
66
|
+
|
|
67
|
+
The separate direct-KaTeX 0.18.5 application PR is not the Mermaid fix. It needs
|
|
68
|
+
an MCPUI version whose peer permits 0.18.5, plus the host's own lockfile and
|
|
69
|
+
tests. Library tests do not prove the real application has integrated RC.21.
|
|
70
|
+
|
|
71
|
+
## Integration and release boundary
|
|
72
|
+
|
|
73
|
+
Only after host cohort alignment, review and separately authorized publication:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
pnpm add --save-exact @seed-ship/mcp-ui-solid@8.0.0-solid2.3 katex@0.18.5
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Before publication use an identified tested `.tgz`, not npm `latest` or an
|
|
80
|
+
unpinned Git branch. Match core/web/signals/compiler/Babel RC.21 and the
|
|
81
|
+
reviewed Vite plugin, use Node >=22.12.0, and commit the host lockfile. Recheck
|
|
82
|
+
actual chat streaming, sources, forms, virtualization, native renderers,
|
|
83
|
+
focus, theme, hydration and disposal in the application.
|
|
84
|
+
|
|
85
|
+
This work does not merge PR #34 into main, alter stable Solid 1 / `latest`,
|
|
86
|
+
publish or stage npm, dispatch release workflows or deploy the application.
|
|
87
|
+
The trusted promotion workflow still binds `.1` / RC.20; a future `.3` upload
|
|
88
|
+
requires a separate policy update and exact successful archive validation,
|
|
89
|
+
followed by protected GitHub approval and maintainer npm 2FA. `.2` RC.20 and
|
|
90
|
+
its prior evidence remain historical fallbacks, not RC.21 release evidence.
|