shadcn-studio-extension-cli 0.2.0 → 0.2.1
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/THIRD_PARTY_LICENSES.txt +1 -1
- package/dist/build-meta.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/toolbar-app/index.js +4 -4
- package/package.json +1 -1
- package/dist/toolbar-app/index-BEof4Zuj.js +0 -8918
- package/dist/toolbar-app/index-BWhYIR3j.js +0 -8918
- package/dist/toolbar-app/index-BZPb_m5H.js +0 -15301
- package/dist/toolbar-app/index-CcQR8qhj.js +0 -8918
- package/dist/toolbar-app/index-CkT0X5qN.js +0 -8918
- package/dist/toolbar-app/index-DSOLAkGe.js +0 -8907
- package/dist/toolbar-app/index-DVhsFHfB.js +0 -8918
- package/dist/toolbar-app/index-DfTwb8mq.js +0 -8918
- package/dist/toolbar-app/index-KEJk4WhW.js +0 -8907
- package/dist/toolbar-app/index-qh9EWxJX.js +0 -8918
package/dist/build-meta.json
CHANGED
|
@@ -14157,7 +14157,7 @@
|
|
|
14157
14157
|
"bytesInOutput": 1582
|
|
14158
14158
|
},
|
|
14159
14159
|
"src/utils/banner.ts": {
|
|
14160
|
-
"bytesInOutput":
|
|
14160
|
+
"bytesInOutput": 1863
|
|
14161
14161
|
},
|
|
14162
14162
|
"src/utils/command-executor.ts": {
|
|
14163
14163
|
"bytesInOutput": 3729
|
|
@@ -14166,7 +14166,7 @@
|
|
|
14166
14166
|
"bytesInOutput": 7825
|
|
14167
14167
|
}
|
|
14168
14168
|
},
|
|
14169
|
-
"bytes":
|
|
14169
|
+
"bytes": 3808082
|
|
14170
14170
|
}
|
|
14171
14171
|
}
|
|
14172
14172
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -97067,7 +97067,7 @@ var __dirname4 = (0, import_node_path10.dirname)((0, import_node_url5.fileURLToP
|
|
|
97067
97067
|
function getVersion() {
|
|
97068
97068
|
try {
|
|
97069
97069
|
if (true) {
|
|
97070
|
-
return "0.1
|
|
97070
|
+
return "0.2.1";
|
|
97071
97071
|
}
|
|
97072
97072
|
const packageJsonPath = (0, import_node_path10.join)(__dirname4, "../../package.json");
|
|
97073
97073
|
const packageJson = JSON.parse((0, import_node_fs9.readFileSync)(packageJsonPath, "utf-8"));
|
|
@@ -7121,7 +7121,7 @@ const performLocalSearch = (blocks, query) => {
|
|
|
7121
7121
|
var _a;
|
|
7122
7122
|
return ((_a = block.meta) == null ? void 0 : _a.isBasic) === !1;
|
|
7123
7123
|
}), checkPlan$1 = async (licenseKey, email) => {
|
|
7124
|
-
const fetchPlanUrl = `
|
|
7124
|
+
const fetchPlanUrl = `https://shadcnstudio.com/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
|
|
7125
7125
|
try {
|
|
7126
7126
|
return (await (await fetch(fetchPlanUrl, { method: "GET" })).json()).plan_variant;
|
|
7127
7127
|
} catch (error2) {
|
|
@@ -7257,7 +7257,7 @@ function useLicenseKey() {
|
|
|
7257
7257
|
return { isValid: !1, message: "Invalid license key" };
|
|
7258
7258
|
if (!email || typeof email != "string" || !email.includes("@"))
|
|
7259
7259
|
return { isValid: !1, message: "Invalid email" };
|
|
7260
|
-
const trimmedLicenseKey = licensekey.trim(), validateUrl = `
|
|
7260
|
+
const trimmedLicenseKey = licensekey.trim(), validateUrl = `https://shadcnstudio.com/api/ide-extension/validate-user?email=${email.trim()}&license_key=${trimmedLicenseKey}`, response = await fetch(validateUrl, {
|
|
7261
7261
|
method: "GET",
|
|
7262
7262
|
headers: {
|
|
7263
7263
|
"Content-Type": "application/json"
|
|
@@ -8057,14 +8057,14 @@ const fetchGenericThemesFromAPI = async () => {
|
|
|
8057
8057
|
const { email, licenseKey } = getLicenseDataFromStorage();
|
|
8058
8058
|
if (!email || !licenseKey)
|
|
8059
8059
|
return "basic";
|
|
8060
|
-
const fetchPlanUrl = `
|
|
8060
|
+
const fetchPlanUrl = `https://shadcnstudio.com/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
|
|
8061
8061
|
try {
|
|
8062
8062
|
return (await (await fetch(fetchPlanUrl, { method: "GET" })).json()).plan_variant;
|
|
8063
8063
|
} catch (error2) {
|
|
8064
8064
|
console.error("Failed to fetch plan variant:", error2);
|
|
8065
8065
|
}
|
|
8066
8066
|
}, fetchUserThemesFromAPI = async () => {
|
|
8067
|
-
const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `
|
|
8067
|
+
const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `https://shadcnstudio.com/api/ide-extension/user-themes?email=${email}&license_key=${licenseKey}&is_extension=true`;
|
|
8068
8068
|
try {
|
|
8069
8069
|
const response = await fetch(fetchThemesUrl, { method: "GET" });
|
|
8070
8070
|
return response.ok ? (await response.json()).themes.map((theme) => ({
|
package/package.json
CHANGED