@yamada-ui/cli 2.1.19-dev-20261116185022 → 2.1.19-dev-20261119084623
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.mjs +5 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5397,7 +5397,7 @@ var package_default = {
|
|
|
5397
5397
|
const PACKAGE_NAME = "@yamada-ui/react";
|
|
5398
5398
|
const CONFIG_FILE_NAME = "ui.json";
|
|
5399
5399
|
const REGISTRY_FILE_NAME = "registry.json";
|
|
5400
|
-
const REGISTRY_URL =
|
|
5400
|
+
const REGISTRY_URL = `https://v2.yamada-ui.com/registry`;
|
|
5401
5401
|
const SECTION_NAMES = [
|
|
5402
5402
|
"components",
|
|
5403
5403
|
"hooks",
|
|
@@ -5421,7 +5421,7 @@ const DEFAULT_PATH = {
|
|
|
5421
5421
|
}
|
|
5422
5422
|
};
|
|
5423
5423
|
const DEFAULT_CONFIG = {
|
|
5424
|
-
$schema: `${REGISTRY_URL}/
|
|
5424
|
+
$schema: `${REGISTRY_URL}/config.schema.json`,
|
|
5425
5425
|
components: { overwrite: true },
|
|
5426
5426
|
hooks: { overwrite: true },
|
|
5427
5427
|
providers: { overwrite: true }
|
|
@@ -5879,11 +5879,9 @@ async function getModule(file, cwd) {
|
|
|
5879
5879
|
const agent = process.env.https_proxy ? new HttpsProxyAgent(process.env.https_proxy) : void 0;
|
|
5880
5880
|
const registryStore = /* @__PURE__ */ new Map();
|
|
5881
5881
|
function getRegistryUrl(name, tag = "") {
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
else if (name.endsWith("-provider")) return path.posix.join(REGISTRY_URL, tag, "v2", "providers", `${name}.json`);
|
|
5886
|
-
else return path.posix.join(REGISTRY_URL, tag, "v2", "components", `${name}.json`);
|
|
5882
|
+
const section = name === "index" || name === "theme" ? "" : name.startsWith("use-") ? "hooks" : name.endsWith("-provider") ? "providers" : "components";
|
|
5883
|
+
const pathname = path.posix.join(tag, section, `${name}.json`);
|
|
5884
|
+
return new URL(pathname, `${REGISTRY_URL}/`).href;
|
|
5887
5885
|
}
|
|
5888
5886
|
async function fetchRegistryNames(tag) {
|
|
5889
5887
|
const { sources } = await fetchRegistry("index", { tag });
|