Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

secptrum-ui

Package Overview
Dependencies
Maintainers
0
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secptrum-ui - npm Package Compare versions

Comparing version 1.1.69 to 1.1.70

12

dist/hooks/useAuth.d.ts
"use client";
type AuthContextType = {
type AuthContextType<TUser> = {
isAuthenticated: boolean;
loginUser: (token: string) => void;
logout: () => void;
user: any;
user: TUser | null;
};
type AuthProviderProps = {
type AuthProviderProps<TUser> = {
children: React.ReactNode;

@@ -15,3 +15,3 @@ /**

*/
RedirectUrl: string;
RedirectUrl?: string;
};

@@ -29,3 +29,3 @@ /**

declare const AuthProvider: {
({ children, RedirectUrl }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
<TUser>({ children, RedirectUrl, }: AuthProviderProps<TUser>): import("react/jsx-runtime").JSX.Element;
displayName: string;

@@ -42,3 +42,3 @@ };

*/
export declare const useAuth: () => AuthContextType;
export declare const useAuth: <TbUser>() => AuthContextType<TbUser>;
//# sourceMappingURL=useAuth.d.ts.map

@@ -31,6 +31,2 @@ "use client";

toggleTheme: () => void;
setCustomTheme: (theme: {
light: any;
dark: any;
}) => void;
/**

@@ -37,0 +33,0 @@ * The current theme mode of the application, either `light` or `dark`.

@@ -10,3 +10,3 @@ "use client";

*/
RedirectUrl: string;
RedirectUrl?: string;
isAuthenticated: boolean;

@@ -13,0 +13,0 @@ };

{
"name": "secptrum-ui",
"version": "1.1.69",
"version": "1.1.70",
"description": "**SecptrumUI** A comprehensive React component library",

@@ -5,0 +5,0 @@ "homepage": "https://secptrumui.vercel.app",

#!/usr/bin/env node
const { Command } = require("commander");
const { existsSync, mkdirSync, writeFileSync } = require("fs-extra");
const { join } = require("path");
const { Command } = require('commander');
const { existsSync, mkdirSync, writeFileSync } = require('fs-extra');
const { join } = require('path');
let chalk;

@@ -10,9 +10,9 @@

program.version("1.0.0").description("Setup SecptrumUI for Next.js");
program.version('1.0.0').description('Setup SecptrumUI for Next.js');
program
.command("init")
.description("Initialize SecptrumUI setup for Next.js")
.command('init')
.description('Initialize SecptrumUI setup for Next.js')
.action(() => {
const isTypeScript = existsSync(join(process.cwd(), "tsconfig.json"));
const isTypeScript = existsSync(join(process.cwd(), 'tsconfig.json'));

@@ -28,3 +28,8 @@ const registryContentJs = `'use client';

StyleSheetManager.clearStyles();
return <style dangerouslySetInnerHTML={{ __html: styles }} />;
return (
<style
suppressHydrationWarning
dangerouslySetInnerHTML={{ __html: styles }}
/>
);
});

@@ -48,3 +53,8 @@

StyleSheetManager.clearStyles();
return <style dangerouslySetInnerHTML={{ __html: styles }} />;
return (
<style
suppressHydrationWarning
dangerouslySetInnerHTML={{ __html: styles }}
/>
);
});

@@ -60,17 +70,17 @@

// Check if src or app directory exists
const srcPath = existsSync(join(process.cwd(), "src"))
? join(process.cwd(), "src")
: join(process.cwd(), "app");
const srcPath = existsSync(join(process.cwd(), 'src'))
? join(process.cwd(), 'src')
: join(process.cwd(), 'app');
// Set libPath based on srcPath, fallback to root if neither found
const libPath = existsSync(srcPath)
? join(srcPath, "lib")
: join(process.cwd(), "lib");
? join(srcPath, 'lib')
: join(process.cwd(), 'lib');
const registryPath = join(
libPath,
isTypeScript ? "registry.tsx" : "registry.js"
isTypeScript ? 'registry.tsx' : 'registry.js'
);
(async () => {
chalk = await import("chalk");
chalk = await import('chalk');

@@ -91,11 +101,11 @@ // Ensure the lib directory exists

);
process.stdout.write(
`\r${chalk.default.green("\u2714")} Created ${
isTypeScript ? "registry.tsx" : "registry.js"
console.log(
`\r${chalk.default.green('\u2714')} Created ${
isTypeScript ? 'registry.tsx' : 'registry.js'
} in ${libPath}.\n`
);
} else {
process.stdout.write(
`\r${chalk.default.blue("\u2139")} ${
isTypeScript ? "registry.tsx" : "registry.js"
console.log(
`\r${chalk.default.blue('\u2139')} ${
isTypeScript ? 'registry.tsx' : 'registry.js'
} already exists in ${libPath}, skipping.\n`

@@ -102,0 +112,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc