@toriistudio/v0-playground 0.7.5 → 0.7.8
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.js +4 -2
- package/dist/index.mjs +4 -2
- package/dist/preset.js +3 -0
- package/dist/preset.mjs +3 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ var ResizableLayout = ({
|
|
|
135
135
|
isHydrated && isDesktop && !hideControls && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
|
-
className: "order-3 w-2 bg-stone-800 hover:bg-stone-700 cursor-col-resize items-center justify-center z-
|
|
138
|
+
className: "order-3 w-2 bg-stone-800 hover:bg-stone-700 cursor-col-resize items-center justify-center z-max transition-opacity duration-300",
|
|
139
139
|
onMouseDown: () => setIsDragging(true),
|
|
140
140
|
style: {
|
|
141
141
|
position: "absolute",
|
|
@@ -2108,6 +2108,7 @@ var ControlPanel = () => {
|
|
|
2108
2108
|
onClick: handleToggleCodeVisibility,
|
|
2109
2109
|
className: "w-full flex items-center justify-between px-4 py-3 text-left font-semibold text-stone-200 tracking-wide",
|
|
2110
2110
|
"aria-expanded": isCodeVisible,
|
|
2111
|
+
"data-testid": "show-code-toggle",
|
|
2111
2112
|
children: [
|
|
2112
2113
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: isCodeVisible ? "Hide Code" : "Show Code" }),
|
|
2113
2114
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -2126,6 +2127,7 @@ var ControlPanel = () => {
|
|
|
2126
2127
|
type: "button",
|
|
2127
2128
|
onClick: handleCodeCopy,
|
|
2128
2129
|
className: "absolute top-3 right-3 flex items-center gap-1 rounded-md border border-stone-700 bg-stone-800 px-2 py-1 text-xs font-medium text-white shadow hover:bg-stone-700",
|
|
2130
|
+
"data-testid": "copy-button",
|
|
2129
2131
|
children: codeCopied ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
2130
2132
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.Check, { className: "h-3.5 w-3.5" }),
|
|
2131
2133
|
"Copied"
|
|
@@ -2135,7 +2137,7 @@ var ControlPanel = () => {
|
|
|
2135
2137
|
] })
|
|
2136
2138
|
}
|
|
2137
2139
|
),
|
|
2138
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("pre", { className: "whitespace-pre overflow-x-auto text-xs md:text-sm text-stone-200 pr-14", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("code", { className: "block text-stone-200", children: highlightedCode ?? formattedCode }) })
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("pre", { className: "whitespace-pre overflow-x-auto text-xs md:text-sm text-stone-200 pr-14", "data-testid": "code-snippet", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("code", { className: "block text-stone-200", children: highlightedCode ?? formattedCode }) })
|
|
2139
2141
|
] })
|
|
2140
2142
|
] }),
|
|
2141
2143
|
shouldShowCopyButton && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex-1 pt-4", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ var ResizableLayout = ({
|
|
|
90
90
|
isHydrated && isDesktop && !hideControls && /* @__PURE__ */ jsx(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
|
-
className: "order-3 w-2 bg-stone-800 hover:bg-stone-700 cursor-col-resize items-center justify-center z-
|
|
93
|
+
className: "order-3 w-2 bg-stone-800 hover:bg-stone-700 cursor-col-resize items-center justify-center z-max transition-opacity duration-300",
|
|
94
94
|
onMouseDown: () => setIsDragging(true),
|
|
95
95
|
style: {
|
|
96
96
|
position: "absolute",
|
|
@@ -2095,6 +2095,7 @@ var ControlPanel = () => {
|
|
|
2095
2095
|
onClick: handleToggleCodeVisibility,
|
|
2096
2096
|
className: "w-full flex items-center justify-between px-4 py-3 text-left font-semibold text-stone-200 tracking-wide",
|
|
2097
2097
|
"aria-expanded": isCodeVisible,
|
|
2098
|
+
"data-testid": "show-code-toggle",
|
|
2098
2099
|
children: [
|
|
2099
2100
|
/* @__PURE__ */ jsx11("span", { children: isCodeVisible ? "Hide Code" : "Show Code" }),
|
|
2100
2101
|
/* @__PURE__ */ jsx11(
|
|
@@ -2113,6 +2114,7 @@ var ControlPanel = () => {
|
|
|
2113
2114
|
type: "button",
|
|
2114
2115
|
onClick: handleCodeCopy,
|
|
2115
2116
|
className: "absolute top-3 right-3 flex items-center gap-1 rounded-md border border-stone-700 bg-stone-800 px-2 py-1 text-xs font-medium text-white shadow hover:bg-stone-700",
|
|
2117
|
+
"data-testid": "copy-button",
|
|
2116
2118
|
children: codeCopied ? /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
2117
2119
|
/* @__PURE__ */ jsx11(Check2, { className: "h-3.5 w-3.5" }),
|
|
2118
2120
|
"Copied"
|
|
@@ -2122,7 +2124,7 @@ var ControlPanel = () => {
|
|
|
2122
2124
|
] })
|
|
2123
2125
|
}
|
|
2124
2126
|
),
|
|
2125
|
-
/* @__PURE__ */ jsx11("pre", { className: "whitespace-pre overflow-x-auto text-xs md:text-sm text-stone-200 pr-14", children: /* @__PURE__ */ jsx11("code", { className: "block text-stone-200", children: highlightedCode ?? formattedCode }) })
|
|
2127
|
+
/* @__PURE__ */ jsx11("pre", { className: "whitespace-pre overflow-x-auto text-xs md:text-sm text-stone-200 pr-14", "data-testid": "code-snippet", children: /* @__PURE__ */ jsx11("code", { className: "block text-stone-200", children: highlightedCode ?? formattedCode }) })
|
|
2126
2128
|
] })
|
|
2127
2129
|
] }),
|
|
2128
2130
|
shouldShowCopyButton && /* @__PURE__ */ jsx11("div", { className: "flex-1 pt-4", children: /* @__PURE__ */ jsx11(
|
package/dist/preset.js
CHANGED
package/dist/preset.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toriistudio/v0-playground",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "V0 Playground",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup",
|
|
33
33
|
"local:push": "yarn build && yalc push",
|
|
34
|
-
"release:patch": "npm version patch && git push --follow-tags && npm publish",
|
|
35
|
-
"release:minor": "npm version minor && git push --follow-tags && npm publish",
|
|
36
|
-
"release:major": "npm version major && git push --follow-tags && npm publish",
|
|
34
|
+
"release:patch": "npm run build && npm version patch && git push --follow-tags && npm publish",
|
|
35
|
+
"release:minor": "npm run build && npm version minor && git push --follow-tags && npm publish",
|
|
36
|
+
"release:major": "npm run build && npm version major && git push --follow-tags && npm publish",
|
|
37
37
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|