shadcn-studio-extension-cli 0.1.1 → 0.1.3
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 +41 -12
- package/dist/index.cjs +57 -6
- package/dist/index.cjs.map +4 -4
- package/dist/toolbar-app/.vite/manifest.json +4 -4
- package/dist/toolbar-app/index-ChCX2CjU.js +8917 -0
- package/dist/toolbar-app/index.js +35 -35
- 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" })
|
|
@@ -8006,7 +8006,7 @@ const fetchGenericThemesFromAPI = async () => {
|
|
|
8006
8006
|
return console.warn("Error fetching themes:", error2), [];
|
|
8007
8007
|
}
|
|
8008
8008
|
}, fetchUserThemesFromAPI = async () => {
|
|
8009
|
-
const fetchThemesUrl =
|
|
8009
|
+
const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `https://shadcnstudio.com/api/user-themes?email=${email}&license_key=${licenseKey}&is_extension=true`;
|
|
8010
8010
|
try {
|
|
8011
8011
|
const response = await fetch(fetchThemesUrl, { method: "GET" });
|
|
8012
8012
|
return response.ok ? (await response.json()).themes : (console.warn(
|
|
@@ -10995,68 +10995,68 @@ const Logo = () => /* @__PURE__ */ jsxs(
|
|
|
10995
10995
|
width: "40",
|
|
10996
10996
|
height: "40",
|
|
10997
10997
|
rx: "20",
|
|
10998
|
-
transform: "matrix(1
|
|
10999
|
-
fill: "
|
|
10998
|
+
transform: "matrix(-4.37114e-08 1 1 4.37114e-08 1.74846e-06 0)",
|
|
10999
|
+
fill: "#171717"
|
|
11000
11000
|
}
|
|
11001
11001
|
),
|
|
11002
11002
|
/* @__PURE__ */ jsx(
|
|
11003
11003
|
"path",
|
|
11004
11004
|
{
|
|
11005
|
-
d: "
|
|
11006
|
-
stroke: "
|
|
11007
|
-
"stroke-width": "2.
|
|
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"
|
|
11008
11008
|
}
|
|
11009
11009
|
),
|
|
11010
11010
|
/* @__PURE__ */ jsx(
|
|
11011
11011
|
"path",
|
|
11012
11012
|
{
|
|
11013
|
-
d: "
|
|
11014
|
-
stroke: "
|
|
11015
|
-
"stroke-width": "2.
|
|
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"
|
|
11016
11016
|
}
|
|
11017
11017
|
),
|
|
11018
11018
|
/* @__PURE__ */ jsx(
|
|
11019
11019
|
"line",
|
|
11020
11020
|
{
|
|
11021
|
-
y1: "-1.
|
|
11022
|
-
x2: "
|
|
11023
|
-
y2: "-1.
|
|
11024
|
-
transform: "matrix(-0.711279 -0.
|
|
11025
|
-
stroke: "
|
|
11026
|
-
"stroke-width": "2.
|
|
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
11027
|
}
|
|
11028
11028
|
),
|
|
11029
11029
|
/* @__PURE__ */ jsx(
|
|
11030
11030
|
"line",
|
|
11031
11031
|
{
|
|
11032
|
-
y1: "-1.
|
|
11033
|
-
x2: "
|
|
11034
|
-
y2: "-1.
|
|
11035
|
-
transform: "matrix(-0.711279 -0.
|
|
11036
|
-
stroke: "
|
|
11037
|
-
"stroke-width": "2.
|
|
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
11038
|
}
|
|
11039
11039
|
),
|
|
11040
11040
|
/* @__PURE__ */ jsx(
|
|
11041
11041
|
"line",
|
|
11042
11042
|
{
|
|
11043
|
-
y1: "-1.
|
|
11044
|
-
x2: "
|
|
11045
|
-
y2: "-1.
|
|
11046
|
-
transform: "matrix(-0.707107 0.707107 0.707107 0.707107
|
|
11047
|
-
stroke: "
|
|
11048
|
-
"stroke-width": "2.
|
|
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
11049
|
}
|
|
11050
11050
|
),
|
|
11051
11051
|
/* @__PURE__ */ jsx(
|
|
11052
11052
|
"line",
|
|
11053
11053
|
{
|
|
11054
|
-
y1: "-1.
|
|
11055
|
-
x2: "
|
|
11056
|
-
y2: "-1.
|
|
11057
|
-
transform: "matrix(-0.707107 0.707107 0.707107 0.707107
|
|
11058
|
-
stroke: "
|
|
11059
|
-
"stroke-width": "2.
|
|
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
11060
|
}
|
|
11061
11061
|
)
|
|
11062
11062
|
]
|
|
@@ -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