@putkoff/abstract-utilities 1.0.52 → 1.0.65
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/cjs/index.js +214 -374
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +222 -356
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -63
- package/dist/types/client/auth/index.d.ts +1 -0
- package/dist/types/client/auth/src/index.d.ts +1 -0
- package/dist/types/client/auth/src/token_client.d.ts +15 -0
- package/dist/types/client/fetch/src/fetch_auth.d.ts +3 -0
- package/dist/types/client/fetch/src/index.d.ts +1 -0
- package/dist/types/client/index.d.ts +2 -0
- package/dist/types/client/ui_utils/index.d.ts +1 -0
- package/dist/types/client/ui_utils/src/button.d.ts +6 -0
- package/dist/types/client/ui_utils/src/checkbox.d.ts +4 -0
- package/dist/types/client/ui_utils/src/index.d.ts +4 -0
- package/dist/types/client/ui_utils/src/input.d.ts +5 -0
- package/dist/types/client/ui_utils/src/spinner.d.ts +1 -0
- package/dist/types/functions/auth_utils/imports.d.ts +0 -0
- package/dist/types/functions/auth_utils/index.d.ts +0 -0
- package/dist/types/functions/auth_utils/src/index.d.ts +1 -1
- package/dist/types/functions/auth_utils/src/jwt_core.d.ts +7 -0
- package/dist/types/functions/auth_utils/src/token_utils (Copy).d.ts +7 -0
- package/dist/types/functions/auth_utils/src/token_utils.d.ts +0 -0
- package/dist/types/functions/config_utils/imports.d.ts +0 -0
- package/dist/types/functions/config_utils/index.d.ts +0 -0
- package/dist/types/functions/config_utils/src/config_utils.d.ts +0 -0
- package/dist/types/functions/config_utils/src/index.d.ts +0 -0
- package/dist/types/functions/constants_utils/index.d.ts +0 -0
- package/dist/types/functions/constants_utils/src/constants.d.ts +0 -0
- package/dist/types/functions/constants_utils/src/index.d.ts +0 -0
- package/dist/types/functions/env_utils/imports.d.ts +0 -0
- package/dist/types/functions/env_utils/index.d.ts +0 -0
- package/dist/types/functions/env_utils/src/index.d.ts +0 -0
- package/dist/types/functions/env_utils/src/window_utils.d.ts +0 -0
- package/dist/types/functions/fetch_utils/imports.d.ts +0 -1
- package/dist/types/functions/fetch_utils/index.d.ts +0 -0
- package/dist/types/functions/fetch_utils/src/fetch_utils.d.ts +0 -0
- package/dist/types/functions/fetch_utils/src/index.d.ts +0 -0
- package/dist/types/functions/fetch_utils/src/url_utils.d.ts +0 -0
- package/dist/types/functions/fetch_utils/src/utils.d.ts +0 -0
- package/dist/types/functions/index.d.ts +0 -2
- package/dist/types/functions/math_utils/constants.d.ts +0 -0
- package/dist/types/functions/math_utils/conversions.d.ts +0 -0
- package/dist/types/functions/math_utils/index.d.ts +0 -0
- package/dist/types/functions/math_utils/safe_math.d.ts +0 -0
- package/dist/types/functions/math_utils/scaleInterfaces.d.ts +0 -0
- package/dist/types/functions/path_utils/imports.d.ts +0 -0
- package/dist/types/functions/path_utils/index.d.ts +0 -0
- package/dist/types/functions/path_utils/src/base_dirs.d.ts +0 -0
- package/dist/types/functions/path_utils/src/function_dirs.d.ts +0 -0
- package/dist/types/functions/path_utils/src/index.d.ts +0 -0
- package/dist/types/functions/path_utils/src/misc_dirs.d.ts +0 -0
- package/dist/types/functions/path_utils/src/path_utils.d.ts +0 -0
- package/dist/types/functions/path_utils/src/paths.d.ts +0 -0
- package/dist/types/functions/path_utils/src/src_dirs.d.ts +0 -0
- package/dist/types/functions/read_utils/imports.d.ts +0 -0
- package/dist/types/functions/read_utils/index.d.ts +0 -0
- package/dist/types/functions/read_utils/src/index.d.ts +0 -0
- package/dist/types/functions/read_utils/src/utils.d.ts +0 -0
- package/dist/types/functions/rndm_utils/imports.d.ts +0 -0
- package/dist/types/functions/rndm_utils/index.d.ts +0 -0
- package/dist/types/functions/rndm_utils/src/index.d.ts +0 -0
- package/dist/types/functions/rndm_utils/src/utils.d.ts +0 -0
- package/dist/types/functions/safe_utils/imports.d.ts +0 -0
- package/dist/types/functions/safe_utils/index.d.ts +0 -0
- package/dist/types/functions/safe_utils/src/index.d.ts +0 -0
- package/dist/types/functions/safe_utils/src/safe_document.d.ts +0 -0
- package/dist/types/functions/safe_utils/src/safe_globals.d.ts +0 -0
- package/dist/types/functions/safe_utils/src/safe_storage.d.ts +0 -0
- package/dist/types/functions/safe_utils/src/safe_window.d.ts +0 -0
- package/dist/types/functions/string_utils/index.d.ts +0 -0
- package/dist/types/functions/string_utils/src/index.d.ts +0 -0
- package/dist/types/functions/string_utils/src/string_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/imports.d.ts +0 -0
- package/dist/types/functions/type_utils/index.d.ts +0 -0
- package/dist/types/functions/type_utils/src/clean_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/src/ensure_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/src/imports.d.ts +0 -0
- package/dist/types/functions/type_utils/src/index.d.ts +0 -0
- package/dist/types/functions/type_utils/src/json_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/src/list_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/src/mime_utils.d.ts +0 -0
- package/dist/types/functions/type_utils/src/type_utils.d.ts +0 -0
- package/dist/types/functions/ui_utils/imports.d.ts +0 -0
- package/dist/types/functions/ui_utils/index.d.ts +0 -0
- package/dist/types/functions/ui_utils/src/button.d.ts +0 -0
- package/dist/types/functions/ui_utils/src/checkbox.d.ts +0 -0
- package/dist/types/functions/ui_utils/src/index.d.ts +0 -0
- package/dist/types/functions/ui_utils/src/input.d.ts +0 -0
- package/dist/types/functions/ui_utils/src/spinner.d.ts +0 -0
- package/dist/types/functions/variable_utils/imports.d.ts +0 -0
- package/dist/types/functions/variable_utils/index.d.ts +0 -0
- package/dist/types/functions/variable_utils/src/index.d.ts +0 -0
- package/dist/types/functions/variable_utils/src/variable_utils.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/types/index.d.ts +0 -0
- package/dist/types/types/src/ChangePassword.d.ts +0 -0
- package/dist/types/types/src/Files.d.ts +0 -0
- package/dist/types/types/src/index.d.ts +0 -1
- package/dist/types/types/src/login.d.ts +0 -0
- package/dist/types/types/src/logout.d.ts +0 -0
- package/dist/types/types/src/utils.d.ts +0 -0
- package/dist/types/ui/Navbar/DropDowns/DropDownElements.d.ts +8 -0
- package/dist/types/ui/Navbar/DropDowns/ForumsDropdown.d.ts +2 -0
- package/dist/types/ui/Navbar/DropDowns/index.d.ts +3 -0
- package/dist/types/ui/Navbar/NavBar.d.ts +8 -0
- package/dist/types/ui/Navbar/index.d.ts +3 -0
- package/dist/types/ui/index.d.ts +1 -0
- package/dist/types/utils/imports.d.ts +0 -0
- package/dist/types/utils/index.d.ts +0 -0
- package/dist/types/utils/src/Input.d.ts +0 -0
- package/dist/types/utils/src/config.d.ts +0 -0
- package/dist/types/utils/src/index.d.ts +0 -0
- package/package.json +12 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
2
|
-
export { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
1
|
interface FileItem {
|
|
6
2
|
id: number | string;
|
|
7
3
|
filename: string;
|
|
@@ -30,23 +26,6 @@ interface FileListResponse {
|
|
|
30
26
|
files?: ApiRow[];
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
interface ChangePasswordProps {
|
|
34
|
-
onSuccess?: () => void;
|
|
35
|
-
onCancel?: () => void;
|
|
36
|
-
}
|
|
37
|
-
interface ChangePasswordFormProps {
|
|
38
|
-
username: string;
|
|
39
|
-
setUsername: (value: string) => void;
|
|
40
|
-
currentPwd: string;
|
|
41
|
-
setCurrentPwd: (value: string) => void;
|
|
42
|
-
newPwd: string;
|
|
43
|
-
setNewPwd: (value: string) => void;
|
|
44
|
-
busy: boolean;
|
|
45
|
-
msg: string | null;
|
|
46
|
-
onSubmit: (e: React.FormEvent) => void;
|
|
47
|
-
onCancel?: () => void;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
29
|
interface AppConfig {
|
|
51
30
|
BASE_API_URL: string;
|
|
52
31
|
BASE_OTHER_URL: string;
|
|
@@ -154,31 +133,8 @@ declare function getWindowHost(): string | undefined;
|
|
|
154
133
|
* Helpers for dealing with the JWT stored in localStorage.
|
|
155
134
|
*/
|
|
156
135
|
|
|
157
|
-
/**
|
|
158
|
-
***Changes**:
|
|
159
|
-
*- Updated import path for `InputProps` to `../../types/interfaces`.
|
|
160
|
-
*
|
|
161
|
-
*3. **Token Utilities** (`src/functions/auth/token_utils.ts`):
|
|
162
|
-
* Copy from `/var/www/abstractendeavors/my-login-app/src/functions/auth_utils/token_utils.ts`.
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
/** Read raw JWT from LocalStorage (or null if absent) */
|
|
166
|
-
declare function getToken(): string | null | any;
|
|
167
|
-
declare function isLoggedIn(): boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Add a Bearer Authorization header.
|
|
170
|
-
* A shallow copy of headers is returned so callers can keep chaining.
|
|
171
|
-
*/
|
|
172
|
-
declare function getAuthorizationHeader(headers?: Record<string, string> | null, token?: string | null): Record<string, string>;
|
|
173
|
-
/** Throw + redirect if there’s no valid token; otherwise return it. */
|
|
174
|
-
declare function requireToken(): string;
|
|
175
136
|
/** True if token is structurally bad or its exp ≤ now. */
|
|
176
137
|
declare function isTokenExpired(token: string): boolean;
|
|
177
|
-
/** Convenience wrapper: return username from the JWT (or null). */
|
|
178
|
-
declare function currentUsername(): string | null;
|
|
179
|
-
declare function currentUsernames(): any;
|
|
180
|
-
/** Remove the JWT from LocalStorage */
|
|
181
|
-
declare function removeToken(): void;
|
|
182
138
|
declare function decodeJwt(token: string): JwtPayload;
|
|
183
139
|
|
|
184
140
|
declare const PROTOCOL = "https://";
|
|
@@ -781,23 +737,6 @@ declare const confirm_type: typeof confirmType;
|
|
|
781
737
|
declare const is_media_type: typeof isMediaType;
|
|
782
738
|
declare const get_mime_type: typeof getMimeType;
|
|
783
739
|
|
|
784
|
-
declare function Button({ children, color, variant, className, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
785
|
-
color?: 'gray' | 'green' | 'blue';
|
|
786
|
-
variant?: 'default' | 'icon' | 'primary' | 'secondary';
|
|
787
|
-
className?: string;
|
|
788
|
-
}): react_jsx_runtime.JSX.Element;
|
|
789
|
-
|
|
790
|
-
declare function Checkbox({ label, ...rest }: React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
791
|
-
label: string;
|
|
792
|
-
}): react_jsx_runtime.JSX.Element;
|
|
793
|
-
|
|
794
|
-
declare function Input({ label, trailing, ...rest }: React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
795
|
-
label: string;
|
|
796
|
-
trailing?: React$1.ReactNode;
|
|
797
|
-
}): react_jsx_runtime.JSX.Element;
|
|
798
|
-
|
|
799
|
-
declare function Spinner(): react_jsx_runtime.JSX.Element;
|
|
800
|
-
|
|
801
740
|
declare function loadConfig(filePath?: string | null): Promise<AppConfig>;
|
|
802
741
|
/**
|
|
803
742
|
* getConfig(): Promise<AppConfig>
|
|
@@ -822,5 +761,5 @@ declare function processKeywords(keywords: string | string[]): string[];
|
|
|
822
761
|
*/
|
|
823
762
|
declare function get_keyword_string(keywords: any): string;
|
|
824
763
|
|
|
825
|
-
export { API_PREFIX, ATTOSECOND, BASE_URL,
|
|
826
|
-
export type { ApiRow, AppConfig, CanonDist, CanonTime,
|
|
764
|
+
export { API_PREFIX, ATTOSECOND, BASE_URL, CENTISECOND, DAY, DAY_IN_S, DECISECOND, DEV_PREFIX, DIST_ALIASES, DIST_FACTORS, DOMAIN_NAME, DistanceConverter, FEET_PER_METER, FEMTOSECOND, HOUR, HOUR_IN_S, KMS_PER_METER, MEDIA_TYPES, METERS_PER_FOOT, METERS_PER_KM, METERS_PER_MILE, MICROSECOND, MILES_PER_METER, MILISECOND, MIME_TYPES, MINUTE, MIN_IN_S, MONTH, MONTH_IN_S, MPerS_TO_MiPerH, MiPerH_TO_MPerS, NANOSECOND, PI, PI2, PICOSECOND, PROD_PREFIX, PROTOCOL, SECOND, SECONDS_PER_DAY, SECONDS_PER_HOUR, SECONDS_PER_MINUTE, SUB_DIR, SpeedConverter, TIME_ALIASES, TIME_FACTORS, TimeConverter, YEAR, YEAR_IN_S, ZEPTOSECOND, alertit, assureArray, assureList, assureNumber, assureString, assure_array, assure_list, assure_number, assure_string, assurearray, assurelist, assurenumber, assurestring, callStorage, callWindowMethod, canonDist, canonTime, capitalize, capitalize_str, checkResponse, cleanArray, cleanText, confirmType, confirm_type, convertDistance, convertSpeed, convertTime, create_list_string, decodeJwt, distanceToMeters, eatAll, eatElse, eatInner, eatOuter, eatall, eatinner, eatouter, ensureArray, ensureList, ensureNumber, ensureString, ensure_array, ensure_list, ensure_number, ensure_string, ensurearray, ensurelist, ensurenumber, ensurestring, exponential, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, fmt, formatNumber, fromMeters, fromMps, fromSeconds, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, get, getAbsDir, getAbsPath, getAllFileTypes, getAllFileTypesSync, getAlphaNum, getAlphas, getBaseDir, getBasename, getBody, getChar, getCleanArray, getComponentsUtilsDirectory, getConfig, getConfigContent, getConfigVar, getDbConfigsPath, getDirname, getDistDir, getDocumentProp, getEnvDir, getEnvPath, getExtname, getFetchVars, getFilename, getFunctionsDir, getFunctionsUtilsDirectory, getHeaders, getHooksUtilsDirectory, getHtmlDirectory, getLibUtilsDirectory, getMediaExts, getMediaMap, getMethod, getMimeType, getNums, getPublicDir, getResult, getSafeDocument, getSafeLocalStorage, getSafeWindow, getSchemasDirPath, getSchemasPath, getSplitext, getSrcDir, getSubstring, getWindowHost, getWindowProp, get_all_file_types, get_basename, get_dirname, get_extname, get_filename, get_full_path, get_full_url, get_key_value, get_keyword_string, get_media_exts, get_media_map, get_mime_type, get_relative_path, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, getbasename, getdirname, getextname, getfilename, getsplitext, isFiniteNum, isMediaType, isNum, isStrInString, isTokenExpired, isType, is_media_type, loadConfig, makePath, make_path, make_sanitized_path, makepath, metersToDistance, mpsToSpeed, normalizeUrl, parseResult, pathJoin, path_join, path_to_url, pathjoin, processKeywords, readJsonFile, roundPercentage, safeDivide, safeGlobalProp, safeMultiply, safeNums, safeStorage, sanitizeFilename, secondsToTime, speedToMps, stripPrefixes, timeToSeconds, toMeters, toSeconds, truncateString, tryEatPrefix, tryParse, urlJoin, url_to_path, urljoin, velocityFromMs, velocityToMs };
|
|
765
|
+
export type { ApiRow, AppConfig, CanonDist, CanonTime, ConvertDistance, ConvertSpeed, ConvertTime, Day, DistanceUnit, FetchVariables, FileItem, FileListResponse, Foot, Hour, InputProps, JwtPayload, Kilometer, LoginFormProps, LoginProps, LogoutButtonProps, MediaCategory, MediaMap, MediaOptions, Meter, Mile, MimeByExt, Minute, OutDist, OutDistance, OutSpeed, OutSpeedType, OutSpeeds, OutTime, OutTimeType, OutTimes, Promise$1 as Promise, Second, StartVelIn, TargetAltIn, TargetVelIn, TimeUnit, UnitConverter, UrlKey, VelocityUnit };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './token_client';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Read raw JWT from LocalStorage (or null if absent) */
|
|
2
|
+
export declare function getToken(): string | null | any;
|
|
3
|
+
export declare function isLoggedIn(): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Add a Bearer Authorization header.
|
|
6
|
+
* A shallow copy of headers is returned so callers can keep chaining.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAuthorizationHeader(headers?: Record<string, string> | null, token?: string | null): Record<string, string>;
|
|
9
|
+
/** Throw + redirect if there’s no valid token; otherwise return it. */
|
|
10
|
+
export declare function requireToken(): string;
|
|
11
|
+
/** Convenience wrapper: return username from the JWT (or null). */
|
|
12
|
+
export declare function currentUsername(): string | null;
|
|
13
|
+
export declare function currentUsernames(): any;
|
|
14
|
+
/** Remove the JWT from LocalStorage */
|
|
15
|
+
export declare function removeToken(): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { fetchIt as fetchCore } from './../../../functions';
|
|
2
|
+
export declare function fetchIt<T = any>(endpoint: string, options?: Parameters<typeof fetchCore>[1]): Promise<T>;
|
|
3
|
+
export declare function getHeaders(headers?: Record<string, string>, method?: string | null, body?: unknown): Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fetch_auth';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function Button({ children, color, variant, className, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
+
color?: 'gray' | 'green' | 'blue';
|
|
4
|
+
variant?: 'default' | 'icon' | 'primary' | 'secondary';
|
|
5
|
+
className?: string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Spinner(): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./jwt_core";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for dealing with the JWT stored in localStorage.
|
|
3
|
+
*/
|
|
4
|
+
import type { JwtPayload } from './../imports';
|
|
5
|
+
/** True if token is structurally bad or its exp ≤ now. */
|
|
6
|
+
export declare function isTokenExpired(token: string): boolean;
|
|
7
|
+
export declare function decodeJwt(token: string): JwtPayload;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for dealing with the JWT stored in localStorage.
|
|
3
|
+
*/
|
|
4
|
+
import type { JwtPayload } from './../imports';
|
|
5
|
+
/** True if token is structurally bad or its exp ≤ now. */
|
|
6
|
+
export declare function isTokenExpired(token: string): boolean;
|
|
7
|
+
export declare function decodeJwt(token: string): JwtPayload;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { useCallback, useRef, useState, useEffect } from "react";
|
|
2
1
|
export * from './auth_utils';
|
|
3
2
|
export * from './constants_utils';
|
|
4
3
|
export * from './env_utils';
|
|
@@ -8,7 +7,6 @@ export * from './rndm_utils';
|
|
|
8
7
|
export * from './string_utils';
|
|
9
8
|
export * from './math_utils';
|
|
10
9
|
export * from './type_utils';
|
|
11
|
-
export * from './ui_utils';
|
|
12
10
|
export * from './config_utils';
|
|
13
11
|
export * from './read_utils';
|
|
14
12
|
export * from './safe_utils';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./../styles/navbar-style.css";
|
|
3
|
+
export interface DropDownElementsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DropDownElements: ({ children, label }: DropDownElementsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DropDownElements;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './styles/style.css';
|
|
2
|
+
export declare function useSignOut(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function useSignin(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function useRegister(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const PrivateRoute: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Home(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function RemoveTrailingSlashRedirect(): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare function NotFound(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Navbar';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putkoff/abstract-utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A reusable React Login component with JWT authentication",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@testing-library/react": "^14.2.1",
|
|
39
39
|
"@types/jest": "^29.5.12",
|
|
40
40
|
"@types/node": "^24.0.13",
|
|
41
|
+
"@types/path-browserify": "^1.0.3",
|
|
41
42
|
"@types/react": "^18.3.23",
|
|
42
43
|
"@types/react-dom": "^18.3.7",
|
|
43
44
|
"jest": "^29.7.0",
|
|
@@ -88,6 +89,16 @@
|
|
|
88
89
|
"import": "./dist/esm/index.js",
|
|
89
90
|
"require": "./dist/cjs/index.js"
|
|
90
91
|
},
|
|
92
|
+
"./client": {
|
|
93
|
+
"types": "./dist/types/client/index.d.ts",
|
|
94
|
+
"import": "./dist/esm/client/index.js",
|
|
95
|
+
"require": "./dist/cjs/client/index.js"
|
|
96
|
+
},
|
|
97
|
+
"./client/*": {
|
|
98
|
+
"types": "./dist/types/client/*/index.d.ts",
|
|
99
|
+
"import": "./dist/esm/client/*/index.js",
|
|
100
|
+
"require": "./dist/cjs/client/*/index.js"
|
|
101
|
+
},
|
|
91
102
|
"./package.json": "./package.json"
|
|
92
103
|
},
|
|
93
104
|
"files": [
|