@putkoff/abstract-utilities 1.0.71 → 1.0.93

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 (107) hide show
  1. package/dist/cjs/index.js +247 -341
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/server.js +342 -0
  4. package/dist/cjs/server.js.map +1 -0
  5. package/dist/esm/index.js +508 -1156
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/server.js +305 -0
  8. package/dist/esm/server.js.map +1 -0
  9. package/dist/types/functions/auth_utils/imports.d.ts +0 -0
  10. package/dist/types/functions/auth_utils/index.d.ts +0 -0
  11. package/dist/types/functions/auth_utils/src/index.d.ts +0 -0
  12. package/dist/types/functions/auth_utils/src/token_utils.d.ts +0 -0
  13. package/dist/types/functions/config_utils/imports.d.ts +0 -0
  14. package/dist/types/functions/config_utils/index.d.ts +0 -0
  15. package/dist/types/functions/config_utils/src/config_utils.d.ts +0 -0
  16. package/dist/types/functions/config_utils/src/index.d.ts +0 -0
  17. package/dist/types/functions/constants_utils/index.d.ts +0 -0
  18. package/dist/types/functions/constants_utils/src/constants.d.ts +0 -0
  19. package/dist/types/functions/constants_utils/src/index.d.ts +0 -0
  20. package/dist/types/functions/env_utils/imports.d.ts +0 -0
  21. package/dist/types/functions/env_utils/index.d.ts +0 -0
  22. package/dist/types/functions/env_utils/src/index.d.ts +0 -0
  23. package/dist/types/functions/env_utils/src/window_utils.d.ts +0 -0
  24. package/dist/types/functions/fetch_utils/imports.d.ts +0 -0
  25. package/dist/types/functions/fetch_utils/index.d.ts +0 -0
  26. package/dist/types/functions/fetch_utils/src/fetch_utils.d.ts +0 -0
  27. package/dist/types/functions/fetch_utils/src/index.d.ts +0 -0
  28. package/dist/types/functions/fetch_utils/src/url_utils.d.ts +0 -0
  29. package/dist/types/functions/fetch_utils/src/utils.d.ts +0 -0
  30. package/dist/types/functions/index.d.ts +0 -0
  31. package/dist/types/functions/math_utils/constants.d.ts +0 -0
  32. package/dist/types/functions/math_utils/conversions.d.ts +0 -0
  33. package/dist/types/functions/math_utils/index.d.ts +0 -0
  34. package/dist/types/functions/math_utils/safe_math.d.ts +0 -0
  35. package/dist/types/functions/math_utils/scaleInterfaces.d.ts +0 -0
  36. package/dist/types/functions/path_utils/imports.d.ts +0 -0
  37. package/dist/types/functions/path_utils/index.d.ts +0 -0
  38. package/dist/types/functions/path_utils/src/base_dirs.d.ts +0 -0
  39. package/dist/types/functions/path_utils/src/function_dirs.d.ts +0 -0
  40. package/dist/types/functions/path_utils/src/index.d.ts +0 -0
  41. package/dist/types/functions/path_utils/src/misc_dirs.d.ts +0 -0
  42. package/dist/types/functions/path_utils/src/path_utils.d.ts +0 -0
  43. package/dist/types/functions/path_utils/src/paths.d.ts +0 -0
  44. package/dist/types/functions/path_utils/src/src_dirs.d.ts +0 -0
  45. package/dist/types/functions/read_utils/imports.d.ts +0 -0
  46. package/dist/types/functions/read_utils/index.d.ts +0 -0
  47. package/dist/types/functions/read_utils/src/index.d.ts +3 -1
  48. package/dist/types/functions/read_utils/src/readJsonFile.browser.d.ts +1 -0
  49. package/dist/types/functions/read_utils/src/readJsonFile.d.ts +2 -0
  50. package/dist/types/functions/read_utils/src/readJsonFile.node.d.ts +1 -0
  51. package/dist/types/functions/rndm_utils/imports.d.ts +0 -0
  52. package/dist/types/functions/rndm_utils/index.d.ts +0 -0
  53. package/dist/types/functions/rndm_utils/src/index.d.ts +0 -0
  54. package/dist/types/functions/rndm_utils/src/utils.d.ts +0 -0
  55. package/dist/types/functions/safe_utils/imports.d.ts +0 -0
  56. package/dist/types/functions/safe_utils/index.d.ts +0 -0
  57. package/dist/types/functions/safe_utils/src/index.d.ts +0 -0
  58. package/dist/types/functions/safe_utils/src/safe_document.d.ts +0 -0
  59. package/dist/types/functions/safe_utils/src/safe_globals.d.ts +0 -0
  60. package/dist/types/functions/safe_utils/src/safe_storage.d.ts +0 -0
  61. package/dist/types/functions/safe_utils/src/safe_window.d.ts +0 -0
  62. package/dist/types/functions/string_utils/index.d.ts +0 -0
  63. package/dist/types/functions/string_utils/src/index.d.ts +0 -0
  64. package/dist/types/functions/string_utils/src/string_utils.d.ts +0 -0
  65. package/dist/types/functions/type_utils/imports.d.ts +0 -0
  66. package/dist/types/functions/type_utils/index.d.ts +0 -0
  67. package/dist/types/functions/type_utils/src/clean_utils.d.ts +0 -0
  68. package/dist/types/functions/type_utils/src/ensure_utils.d.ts +0 -0
  69. package/dist/types/functions/type_utils/src/imports.d.ts +0 -0
  70. package/dist/types/functions/type_utils/src/index.d.ts +0 -0
  71. package/dist/types/functions/type_utils/src/json_utils.d.ts +0 -0
  72. package/dist/types/functions/type_utils/src/list_utils.d.ts +0 -0
  73. package/dist/types/functions/type_utils/src/mime_utils.d.ts +0 -0
  74. package/dist/types/functions/type_utils/src/type_utils.d.ts +0 -0
  75. package/dist/types/functions/variable_utils/imports.d.ts +0 -0
  76. package/dist/types/functions/variable_utils/index.d.ts +0 -0
  77. package/dist/types/functions/variable_utils/src/index.d.ts +0 -0
  78. package/dist/types/functions/variable_utils/src/variable_utils.d.ts +0 -0
  79. package/dist/types/index.d.ts +0 -0
  80. package/dist/types/types/index.d.ts +0 -0
  81. package/dist/types/types/src/Files.d.ts +0 -0
  82. package/dist/types/types/src/index.d.ts +0 -0
  83. package/dist/types/types/src/login.d.ts +0 -0
  84. package/dist/types/types/src/logout.d.ts +0 -0
  85. package/dist/types/types/src/utils.d.ts +0 -0
  86. package/dist/types/utils/imports.d.ts +0 -0
  87. package/dist/types/utils/index.d.ts +0 -0
  88. package/dist/types/utils/src/Input.d.ts +0 -0
  89. package/dist/types/utils/src/config.d.ts +0 -0
  90. package/dist/types/utils/src/index.d.ts +0 -0
  91. package/package.json +2 -17
  92. package/dist/index.d.ts +0 -813
  93. package/dist/types/functions/read_utils/src/utils.d.ts +0 -8
  94. package/dist/types/functions/ui_utils/imports.d.ts +0 -4
  95. package/dist/types/functions/ui_utils/index.d.ts +0 -1
  96. package/dist/types/functions/ui_utils/src/button.d.ts +0 -5
  97. package/dist/types/functions/ui_utils/src/checkbox.d.ts +0 -4
  98. package/dist/types/functions/ui_utils/src/index.d.ts +0 -4
  99. package/dist/types/functions/ui_utils/src/input.d.ts +0 -5
  100. package/dist/types/functions/ui_utils/src/spinner.d.ts +0 -1
  101. package/dist/types/types/src/ChangePassword.d.ts +0 -16
  102. package/dist/types/ui/Navbar/DropDowns/DropDownElements.d.ts +0 -8
  103. package/dist/types/ui/Navbar/DropDowns/ForumsDropdown.d.ts +0 -2
  104. package/dist/types/ui/Navbar/DropDowns/index.d.ts +0 -3
  105. package/dist/types/ui/Navbar/NavBar.d.ts +0 -8
  106. package/dist/types/ui/Navbar/index.d.ts +0 -3
  107. package/dist/types/ui/index.d.ts +0 -1
@@ -1,8 +0,0 @@
1
- /**
2
- * Reads a JSON file, either via Node’s fs (if available)
3
- * or via window.fetch in the browser. Never throws — returns
4
- * the parsed object or null on any error.
5
- */
6
- export declare function readJsonFile<T = any>(relativeOrAbsolutePath: string): Promise<T | null>;
7
- export declare function getConfigContent<T = Record<string, any>>(): Promise<T | null>;
8
- export declare function getConfigVar<T = any>(key?: any): Promise<T | undefined>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const useState: typeof React.useState, useEffect: typeof React.useEffect, useCallback: typeof React.useCallback;
3
- export { fetchIt } from './../fetch_utils';
4
- export { currentUsername, isTokenExpired, getToken } from './../auth_utils';
@@ -1 +0,0 @@
1
- export * from './src';
@@ -1,5 +0,0 @@
1
- export declare function Button({ children, color, variant, className, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
2
- color?: 'gray' | 'green' | 'blue';
3
- variant?: 'default' | 'icon' | 'primary' | 'secondary';
4
- className?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare function Checkbox({ label, ...rest }: React.InputHTMLAttributes<HTMLInputElement> & {
3
- label: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './button';
2
- export * from './checkbox';
3
- export * from './input';
4
- export * from './spinner';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare function Input({ label, trailing, ...rest }: React.InputHTMLAttributes<HTMLInputElement> & {
3
- label: string;
4
- trailing?: React.ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Spinner(): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- export interface ChangePasswordProps {
2
- onSuccess?: () => void;
3
- onCancel?: () => void;
4
- }
5
- export interface ChangePasswordFormProps {
6
- username: string;
7
- setUsername: (value: string) => void;
8
- currentPwd: string;
9
- setCurrentPwd: (value: string) => void;
10
- newPwd: string;
11
- setNewPwd: (value: string) => void;
12
- busy: boolean;
13
- msg: string | null;
14
- onSubmit: (e: React.FormEvent) => void;
15
- onCancel?: () => void;
16
- }
@@ -1,8 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- declare const ForumsDropdown: () => import("react/jsx-runtime").JSX.Element;
2
- export default ForumsDropdown;
@@ -1,3 +0,0 @@
1
- export { default as ForumsDropdown } from './ForumsDropdown';
2
- export { default as DropDownElements } from './DropDownElements';
3
- export * from './../styles/DropDownStyles';
@@ -1,8 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- export * from './NavBar';
2
- export * from './DropDowns';
3
- export * from './utils';
@@ -1 +0,0 @@
1
- export * from './Navbar';