@mastra/playground-ui 5.1.4-alpha.0 → 5.1.4-alpha.2
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/dist/index.cjs.js +58 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +57 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/ui/containers/MainContent.d.ts +13 -0
- package/dist/src/components/ui/containers/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -10204,6 +10204,62 @@ const DataTable = ({
|
|
|
10204
10204
|
] });
|
|
10205
10205
|
};
|
|
10206
10206
|
|
|
10207
|
+
function MainContentLayout({
|
|
10208
|
+
children,
|
|
10209
|
+
className,
|
|
10210
|
+
style
|
|
10211
|
+
}) {
|
|
10212
|
+
const devStyleRequested = devUIStyleRequested("MainContentLayout");
|
|
10213
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10214
|
+
"main",
|
|
10215
|
+
{
|
|
10216
|
+
className: cn(`grid grid-rows-[auto_1fr] h-full items-start content-start`, className),
|
|
10217
|
+
style: { ...style, ...devStyleRequested ? { border: "3px dotted red" } : {} },
|
|
10218
|
+
children
|
|
10219
|
+
}
|
|
10220
|
+
);
|
|
10221
|
+
}
|
|
10222
|
+
function MainContentContent({
|
|
10223
|
+
children,
|
|
10224
|
+
className,
|
|
10225
|
+
isCentered = false,
|
|
10226
|
+
isDivided = false,
|
|
10227
|
+
hasLeftServiceColumn = false,
|
|
10228
|
+
style
|
|
10229
|
+
}) {
|
|
10230
|
+
const devStyleRequested = devUIStyleRequested("MainContentContent");
|
|
10231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10232
|
+
"div",
|
|
10233
|
+
{
|
|
10234
|
+
className: cn(
|
|
10235
|
+
`grid overflow-y-auto h-full `,
|
|
10236
|
+
`overflow-x-auto min-w-[min-content]`,
|
|
10237
|
+
{
|
|
10238
|
+
"items-start content-start": !isCentered && !isDivided && !hasLeftServiceColumn,
|
|
10239
|
+
"grid place-items-center": isCentered,
|
|
10240
|
+
"grid-cols-[1fr_1fr]": isDivided && !hasLeftServiceColumn,
|
|
10241
|
+
"grid-cols-[auto_1fr_1fr]": isDivided && hasLeftServiceColumn,
|
|
10242
|
+
"grid-cols-[auto_1fr]": !isDivided && hasLeftServiceColumn
|
|
10243
|
+
},
|
|
10244
|
+
className
|
|
10245
|
+
),
|
|
10246
|
+
style: { ...style, ...devStyleRequested ? { border: "3px dotted orange" } : {} },
|
|
10247
|
+
children
|
|
10248
|
+
}
|
|
10249
|
+
);
|
|
10250
|
+
}
|
|
10251
|
+
function devUIStyleRequested(name) {
|
|
10252
|
+
try {
|
|
10253
|
+
const raw = localStorage.getItem("add-dev-style-to-components");
|
|
10254
|
+
if (!raw) return false;
|
|
10255
|
+
const components = raw.split(",").map((c) => c.trim()).filter(Boolean);
|
|
10256
|
+
return components.includes(name);
|
|
10257
|
+
} catch (error) {
|
|
10258
|
+
console.error("Error reading or parsing localStorage:", error);
|
|
10259
|
+
return false;
|
|
10260
|
+
}
|
|
10261
|
+
}
|
|
10262
|
+
|
|
10207
10263
|
const Threads = ({ children }) => {
|
|
10208
10264
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "bg-surface2 border-r-sm border-border1 min-h-full overflow-hidden", children });
|
|
10209
10265
|
};
|
|
@@ -10532,6 +10588,8 @@ exports.LatencyIcon = LatencyIcon;
|
|
|
10532
10588
|
exports.LegacyWorkflowGraph = LegacyWorkflowGraph;
|
|
10533
10589
|
exports.LegacyWorkflowTrigger = LegacyWorkflowTrigger;
|
|
10534
10590
|
exports.LogsIcon = LogsIcon;
|
|
10591
|
+
exports.MainContentContent = MainContentContent;
|
|
10592
|
+
exports.MainContentLayout = MainContentLayout;
|
|
10535
10593
|
exports.MastraClientProvider = MastraClientProvider;
|
|
10536
10594
|
exports.MastraResizablePanel = MastraResizablePanel;
|
|
10537
10595
|
exports.McpCoinIcon = McpCoinIcon;
|