shadcn-studio-extension-cli 0.1.0 → 0.1.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/README.md +1 -0
- package/dist/THIRD_PARTY_LICENSES.txt +1 -1
- package/dist/build-meta.json +6 -6
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +2 -2
- package/dist/toolbar-app/.vite/manifest.json +4 -4
- package/dist/toolbar-app/index-ChCX2CjU.js +8917 -0
- package/dist/toolbar-app/index.js +61 -72
- package/dist/toolbar-app/plugin-sdk.js +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import React__default, { createContext, useState, useEffect, useContext, useCallback, useMemo, useRef, forwardRef, createElement, useLayoutEffect, Fragment as Fragment$1, isValidElement, cloneElement, useId as useId$1, useReducer, useSyncExternalStore, createRef, useImperativeHandle, StrictMode } from "react";
|
|
3
3
|
import { createRoot } from "react-dom/client";
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { A as AgentStateType, u as useAgents, a as useAppState, b as usePlugins, c as useAgentMessaging, d as usePanels, g as getSelectedElementInfo, e as getSelectedDocInfo, f as getSelectedBlockInfo, h as getSelectedThemeInfo, i as collectUserMessageMetadata, j as generateId, C as ConfigProvider, k as AgentProvider, l as AgentAvailabilityProvider, m as AgentMessagingProvider, P as PanelsProvider, n as PluginProvider, H as HotkeyActions, o as hotkeyActionDefinitions, p as getIFrameWindow, q as cn, r as getElementAtPoint, s as getXPathForElement, B as Button, t as glassyBoxClassName, v as AgentAvailabilityError, w as useAgentAvailability, x as Panel, y as PanelHeader, z as PanelContent, D as PanelFooter, E as cva, G as Glassy,
|
|
5
|
+
import { A as AgentStateType, u as useAgents, a as useAppState, b as usePlugins, c as useAgentMessaging, d as usePanels, g as getSelectedElementInfo, e as getSelectedDocInfo, f as getSelectedBlockInfo, h as getSelectedThemeInfo, i as collectUserMessageMetadata, j as generateId, C as ConfigProvider, k as AgentProvider, l as AgentAvailabilityProvider, m as AgentMessagingProvider, P as PanelsProvider, n as PluginProvider, H as HotkeyActions, o as hotkeyActionDefinitions, p as getIFrameWindow, q as cn, r as getElementAtPoint, s as getXPathForElement, B as Button, t as glassyBoxClassName, v as AgentAvailabilityError, w as useAgentAvailability, x as Panel, y as PanelHeader, z as PanelContent, D as PanelFooter, E as cva, F as getLicenseDataFromStorage, G as Glassy, I as AppStateProvider } from "index-ChCX2CjU.js";
|
|
6
6
|
import * as ReactDOM from "react-dom";
|
|
7
7
|
import { createPortal, flushSync } from "react-dom";
|
|
8
8
|
import config from "@stagewise/toolbar/config";
|
|
@@ -1377,7 +1377,7 @@ function NoAgentFound() {
|
|
|
1377
1377
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2 text-foreground text-sm", children: [
|
|
1378
1378
|
/* @__PURE__ */ jsx("p", { className: "font-medium", children: "To connect:" }),
|
|
1379
1379
|
/* @__PURE__ */ jsxs("ol", { className: "list-inside list-decimal space-y-1 pl-2 text-sm", children: [
|
|
1380
|
-
/* @__PURE__ */ jsx("li", { children: "Open your IDE (Cursor, Windsurf, etc.)" }),
|
|
1380
|
+
/* @__PURE__ */ jsx("li", { children: "Open your IDE (Cursor, Windsurf, Antigravity, etc.)" }),
|
|
1381
1381
|
/* @__PURE__ */ jsx("li", { children: "Install the stagewise extension" }),
|
|
1382
1382
|
/* @__PURE__ */ jsx("li", { children: "Make sure the extension is active" }),
|
|
1383
1383
|
/* @__PURE__ */ jsx("li", { children: "Click refresh in the toolbar" })
|
|
@@ -5985,11 +5985,6 @@ const options = [
|
|
|
5985
5985
|
label: "Documentation",
|
|
5986
5986
|
Icon: "Context7Logo"
|
|
5987
5987
|
},
|
|
5988
|
-
{
|
|
5989
|
-
type: "shadcn-studio-docs",
|
|
5990
|
-
label: "ShadcnStudio Docs",
|
|
5991
|
-
Icon: "ShadcnStudioLogo"
|
|
5992
|
-
},
|
|
5993
5988
|
{
|
|
5994
5989
|
type: "blocks",
|
|
5995
5990
|
label: "ShadcnStudio Blocks",
|
|
@@ -7173,7 +7168,7 @@ const performLocalSearch = (blocks, query) => {
|
|
|
7173
7168
|
const apiResults = await fetchAndSearchBlocks(query, isValidated);
|
|
7174
7169
|
if (apiResults.length > 0) {
|
|
7175
7170
|
const combinedResults = [...apiResults, ...localResults], uniqueResults = removeDuplicateBlocks(combinedResults);
|
|
7176
|
-
setSearchResults(uniqueResults
|
|
7171
|
+
setSearchResults(uniqueResults);
|
|
7177
7172
|
} else
|
|
7178
7173
|
console.log("No API results found, keeping local results only");
|
|
7179
7174
|
} catch (error2) {
|
|
@@ -7551,7 +7546,7 @@ const RECENT_BLOCKS_KEY = "toolbar-blocks-recent", getRecentBlocks = () => {
|
|
|
7551
7546
|
] }) }),
|
|
7552
7547
|
/* @__PURE__ */ jsx("div", { className: "ml-auto text-primary text-xs", children: "↑↓ navigate • ⏎ select" })
|
|
7553
7548
|
] })
|
|
7554
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "px-1 py-2 text-muted-foreground text-xs", children: searchQuery != null && searchQuery.trim() ? `No components found for "${searchQuery}"` : "
|
|
7549
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "px-1 py-2 text-center text-muted-foreground text-xs", children: searchQuery != null && searchQuery.trim() ? `No components found for "${searchQuery}"` : 'Try searching blocks like "Hero Section", "Pricing", etc.' })
|
|
7555
7550
|
]
|
|
7556
7551
|
}
|
|
7557
7552
|
);
|
|
@@ -8011,7 +8006,7 @@ const fetchGenericThemesFromAPI = async () => {
|
|
|
8011
8006
|
return console.warn("Error fetching themes:", error2), [];
|
|
8012
8007
|
}
|
|
8013
8008
|
}, fetchUserThemesFromAPI = async () => {
|
|
8014
|
-
const fetchThemesUrl =
|
|
8009
|
+
const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `https://shadcnstudio.com/api/user-themes?email=${email}&license_key=${licenseKey}&is_extension=true`;
|
|
8015
8010
|
try {
|
|
8016
8011
|
const response = await fetch(fetchThemesUrl, { method: "GET" });
|
|
8017
8012
|
return response.ok ? (await response.json()).themes : (console.warn(
|
|
@@ -10997,79 +10992,73 @@ const Logo = () => /* @__PURE__ */ jsxs(
|
|
|
10997
10992
|
/* @__PURE__ */ jsx(
|
|
10998
10993
|
"rect",
|
|
10999
10994
|
{
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
fill: "url(#paint0_linear_15373_2835)"
|
|
10995
|
+
width: "40",
|
|
10996
|
+
height: "40",
|
|
10997
|
+
rx: "20",
|
|
10998
|
+
transform: "matrix(-4.37114e-08 1 1 4.37114e-08 1.74846e-06 0)",
|
|
10999
|
+
fill: "#171717"
|
|
11006
11000
|
}
|
|
11007
11001
|
),
|
|
11008
11002
|
/* @__PURE__ */ jsx(
|
|
11009
|
-
"
|
|
11003
|
+
"path",
|
|
11010
11004
|
{
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
width: "
|
|
11014
|
-
height: "39",
|
|
11015
|
-
rx: "19.5",
|
|
11016
|
-
stroke: "url(#paint1_linear_15373_2835)"
|
|
11005
|
+
d: "M8.75586 20.1258L16.1303 20.1258C18.5549 20.1258 20.5205 18.1603 20.5205 15.7356L20.5205 8.56616",
|
|
11006
|
+
stroke: "#FAFAFA",
|
|
11007
|
+
"stroke-width": "2.43902"
|
|
11017
11008
|
}
|
|
11018
11009
|
),
|
|
11019
11010
|
/* @__PURE__ */ jsx(
|
|
11020
11011
|
"path",
|
|
11021
11012
|
{
|
|
11022
|
-
d: "
|
|
11023
|
-
|
|
11013
|
+
d: "M32.2852 20.3198L24.9107 20.3198C22.4861 20.3198 20.5205 22.2854 20.5205 24.7101L20.5205 31.8795",
|
|
11014
|
+
stroke: "#FAFAFA",
|
|
11015
|
+
"stroke-width": "2.43902"
|
|
11024
11016
|
}
|
|
11025
11017
|
),
|
|
11026
|
-
/* @__PURE__ */
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
"
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
}
|
|
11071
|
-
)
|
|
11072
|
-
] })
|
|
11018
|
+
/* @__PURE__ */ jsx(
|
|
11019
|
+
"line",
|
|
11020
|
+
{
|
|
11021
|
+
y1: "-1.21951",
|
|
11022
|
+
x2: "7.09397",
|
|
11023
|
+
y2: "-1.21951",
|
|
11024
|
+
transform: "matrix(0.70291 -0.711279 -0.711279 -0.70291 11.123 28.1847)",
|
|
11025
|
+
stroke: "#FAFAFA",
|
|
11026
|
+
"stroke-width": "2.43902"
|
|
11027
|
+
}
|
|
11028
|
+
),
|
|
11029
|
+
/* @__PURE__ */ jsx(
|
|
11030
|
+
"line",
|
|
11031
|
+
{
|
|
11032
|
+
y1: "-1.21951",
|
|
11033
|
+
x2: "7.09397",
|
|
11034
|
+
y2: "-1.21951",
|
|
11035
|
+
transform: "matrix(0.70291 -0.711279 -0.711279 -0.70291 23.5781 15.6893)",
|
|
11036
|
+
stroke: "#FAFAFA",
|
|
11037
|
+
"stroke-width": "2.43902"
|
|
11038
|
+
}
|
|
11039
|
+
),
|
|
11040
|
+
/* @__PURE__ */ jsx(
|
|
11041
|
+
"line",
|
|
11042
|
+
{
|
|
11043
|
+
y1: "-1.21951",
|
|
11044
|
+
x2: "7.09397",
|
|
11045
|
+
y2: "-1.21951",
|
|
11046
|
+
transform: "matrix(-0.707107 -0.707107 -0.707107 0.707107 15.8486 17.1644)",
|
|
11047
|
+
stroke: "#FAFAFA",
|
|
11048
|
+
"stroke-width": "2.43902"
|
|
11049
|
+
}
|
|
11050
|
+
),
|
|
11051
|
+
/* @__PURE__ */ jsx(
|
|
11052
|
+
"line",
|
|
11053
|
+
{
|
|
11054
|
+
y1: "-1.21951",
|
|
11055
|
+
x2: "7.09397",
|
|
11056
|
+
y2: "-1.21951",
|
|
11057
|
+
transform: "matrix(-0.707107 -0.707107 -0.707107 0.707107 28.5645 29.8483)",
|
|
11058
|
+
stroke: "#FAFAFA",
|
|
11059
|
+
"stroke-width": "2.43902"
|
|
11060
|
+
}
|
|
11061
|
+
)
|
|
11073
11062
|
]
|
|
11074
11063
|
}
|
|
11075
11064
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as cn, E as cva, b as usePlugins } from "index-
|
|
2
|
-
import { B, x, z, D, y } from "index-
|
|
1
|
+
import { q as cn, E as cva, b as usePlugins } from "index-ChCX2CjU.js";
|
|
2
|
+
import { B, x, z, D, y } from "index-ChCX2CjU.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const badgeVariants = cva("rounded-md p-2", {
|
|
5
5
|
variants: {
|
package/package.json
CHANGED