@heroui-pro/react 1.0.0-beta.9 → 1.0.0

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.
@@ -1,22 +1,22 @@
1
- import{Chalk as t}from"chalk";import{dirname as s,join as a}from"node:path";import{fileURLToPath as d}from"node:url";import{HEROUI_AUTH_TOKEN as r,PRODUCTS as c,HEROUI_WEB_URL as l,HELP_EMAIL as m}from"heroui-pro/consts";import{downloadFromCI as p,downloadFromCLI as u}from"heroui-pro/cdn";import{getCredentials as g}from"heroui-pro/auth/keyring";import{getCIToken as f}from"heroui-pro/auth/ci";const h=s(d(import.meta.url)),e=a(h,"../../");e.includes("node_modules")||process.exit(0);const o=c.react,n=new t({level:3}),b=()=>{console.log(n.yellow.bold(`
2
- Sign in to finish installing ${o.name}.
3
- `)),console.log(n.yellow(`Run:
1
+ import{Chalk as a}from"chalk";import{dirname as d,join as c}from"node:path";import{fileURLToPath as m}from"node:url";import{HEROUI_AUTH_TOKEN as r,PRODUCTS as p,HEROUI_WEB_URL as l,HELP_EMAIL as t}from"heroui-pro/consts";import{downloadFromCI as u,downloadFromCLI as g}from"heroui-pro/cdn";import{getCredentials as h}from"heroui-pro/auth/keyring";import{getCIToken as s}from"heroui-pro/auth/ci";const f=d(m(import.meta.url)),i=c(f,"../../");i.includes("node_modules")||process.exit(0);const n=p.react,o=new a({level:3}),b=()=>{console.log(o.yellow.bold(`
2
+ Sign in to finish installing ${n.name}.
3
+ `)),console.log(o.yellow(`Run:
4
4
 
5
- ${n.bold("npx heroui-pro login")}
5
+ ${o.bold("npx heroui-pro login")}
6
6
 
7
7
  Then re-run install, or:
8
8
 
9
- ${n.bold("npx heroui-pro install")}
9
+ ${o.bold("npx heroui-pro install")}
10
10
 
11
- For CI/CD, set the ${n.bold.underline(r)} environment variable.
12
- Need a license? Visit ${n.bold.underline(l)}.
13
- `))},C=async()=>{if(f())return await p(o,e);if(await g())return await u(o,e);b(),process.exit(0)};C().catch(i=>{console.log(n.red.bold(`Access denied: You don't have permission to install ${o.name}.
14
- `)),console.log(n.red(`To get a license, visit ${n.bold.underline(l)}.
11
+ For CI/CD, set the ${o.bold.underline(r)} environment variable.
12
+ Need a license? Visit ${o.bold.underline(l)}.
13
+ `))},C=async()=>{if(s())return await u(n,i);if(await h())return await g(n,i);b(),process.exit(0)};C().catch(e=>{if(s()){console.log(o.red.bold("Package download failed with HEROUI_AUTH_TOKEN.")),console.log(o.red(`Check the token with your team owner, or contact ${t}. CLI login is not required.`)),console.log(o.gray(e.message)),process.exit(1);return}console.log(o.red.bold(`Access denied: You don't have permission to install ${n.name}.
14
+ `)),console.log(o.red(`To get a license, visit ${o.bold.underline(l)}.
15
15
  If you already have one, run:
16
16
 
17
- ${n.bold("npx heroui-pro login")}
17
+ ${o.bold("npx heroui-pro login")}
18
18
 
19
- For CI/CD environments, ensure the ${n.bold.underline(r)} environment variable is set.
19
+ For CI/CD environments, ensure the ${o.bold.underline(r)} environment variable is set.
20
20
 
21
- Need help? Contact ${n.bold.underline(m)} for assistance.
22
- `)),console.log(n.gray(i.message)),process.exit(1)});
21
+ Need help? Contact ${o.bold.underline(t)} for assistance.
22
+ `)),console.log(o.gray(e.message)),process.exit(1)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroui-pro/react",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0",
4
4
  "description": "HeroUI React",
5
5
  "license": "UNLICENSED",
6
6
  "author": "HeroUI",