@yamada-ui/cli 2.1.19-dev-20261119044355 → 2.1.19-dev-20261121063220

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -7
  2. 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 = "https://yamada-ui.com/registry";
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}/v2/config.schema.json`,
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
- if (name === "index") return path.posix.join(REGISTRY_URL, tag, "v2", "index.json");
5883
- else if (name === "theme") return path.posix.join(REGISTRY_URL, tag, "v2", "theme.json");
5884
- else if (name.startsWith("use-")) return path.posix.join(REGISTRY_URL, tag, "v2", "hooks", `${name}.json`);
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 });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
3
  "type": "module",
4
- "version": "2.1.19-dev-20261119044355",
4
+ "version": "2.1.19-dev-20261121063220",
5
5
  "description": "The official CLI for Yamada UI projects",
6
6
  "keywords": [
7
7
  "theme",