@putkoff/abstract-utilities 0.0.7 → 0.1.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.
Files changed (32) hide show
  1. package/dist/cjs/functions/fetch_utils/imports.d.ts +1 -0
  2. package/dist/cjs/functions/fetch_utils/index.d.ts +1 -1
  3. package/dist/cjs/functions/fetch_utils/src/getAppConfig.d.ts +1 -0
  4. package/dist/cjs/functions/fetch_utils/src/index.d.ts +1 -1
  5. package/dist/cjs/index.js +14 -10
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/utils/imports.d.ts +1 -0
  8. package/dist/cjs/utils/index.d.ts +1 -0
  9. package/dist/cjs/utils/src/Input.d.ts +13 -0
  10. package/dist/cjs/utils/src/config.d.ts +5 -0
  11. package/dist/cjs/utils/src/index.d.ts +2 -0
  12. package/dist/esm/functions/fetch_utils/imports.d.ts +1 -0
  13. package/dist/esm/functions/fetch_utils/index.d.ts +1 -1
  14. package/dist/esm/functions/fetch_utils/src/getAppConfig.d.ts +1 -0
  15. package/dist/esm/functions/fetch_utils/src/index.d.ts +1 -1
  16. package/dist/esm/index.js +14 -10
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/utils/imports.d.ts +1 -0
  19. package/dist/esm/utils/index.d.ts +1 -0
  20. package/dist/esm/utils/src/Input.d.ts +13 -0
  21. package/dist/esm/utils/src/config.d.ts +5 -0
  22. package/dist/esm/utils/src/index.d.ts +2 -0
  23. package/dist/functions/fetch_utils/imports.d.ts +1 -0
  24. package/dist/functions/fetch_utils/index.d.ts +1 -1
  25. package/dist/functions/fetch_utils/src/getAppConfig.d.ts +1 -0
  26. package/dist/functions/fetch_utils/src/index.d.ts +1 -1
  27. package/dist/utils/imports.d.ts +1 -0
  28. package/dist/utils/index.d.ts +1 -0
  29. package/dist/utils/src/Input.d.ts +13 -0
  30. package/dist/utils/src/config.d.ts +5 -0
  31. package/dist/utils/src/index.d.ts +2 -0
  32. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export type { InputProps } from "./../types";
@@ -0,0 +1 @@
1
+ export * from './src';
@@ -0,0 +1,13 @@
1
+ /**
2
+
3
+ ***Changes**:
4
+ *- Updated import paths to match the library structure (`../utils`, `../functions/fetch`, `../functions/auth`).
5
+ *- Added `getAuthorizationHeader` import to support token-based authentication.
6
+ *- Adjusted the `secureFetchIt` call to expect a response with `{ result: { token: string }; success: boolean }`, matching the `api.ts` expectation.
7
+ *
8
+ *2. **Input Component** (`src/utils/Input.tsx`):
9
+ * Copy from `/var/www/abstractendeavors/my-login-app/src/components/utils/src/Inputs.tsx`.
10
+ *
11
+ */
12
+ import type { InputProps } from "./../imports";
13
+ export declare const Input: React.FC<InputProps>;
@@ -0,0 +1,5 @@
1
+ export interface AppConfig {
2
+ API_BASE_URL: string;
3
+ }
4
+ export declare let AppConfig: AppConfig;
5
+ export declare function loadConfig(): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export * from "./Input";
2
+ export { loadConfig } from './config';
@@ -4,4 +4,5 @@ export { stripPrefixes } from './../string_utils';
4
4
  export { alertit } from './../rndm_utils';
5
5
  export { ensure_list } from './../type_utils';
6
6
  export { eatInner } from './../string_utils';
7
+ export { AppConfig } from './../../utils/src/config';
7
8
  export type { LogoutButtonProps, FetchVariables } from './../../types';
@@ -1 +1 @@
1
- export * from './fetchIt_utils';
1
+ export * from './src';
@@ -0,0 +1 @@
1
+ export declare function getAppConfig(endpoint: string): string;
@@ -1 +1 @@
1
- export * from './utils';
1
+ export * from './fetchIt_utils';
@@ -0,0 +1 @@
1
+ export type { InputProps } from "./../types";
@@ -0,0 +1 @@
1
+ export * from './src';
@@ -0,0 +1,13 @@
1
+ /**
2
+
3
+ ***Changes**:
4
+ *- Updated import paths to match the library structure (`../utils`, `../functions/fetch`, `../functions/auth`).
5
+ *- Added `getAuthorizationHeader` import to support token-based authentication.
6
+ *- Adjusted the `secureFetchIt` call to expect a response with `{ result: { token: string }; success: boolean }`, matching the `api.ts` expectation.
7
+ *
8
+ *2. **Input Component** (`src/utils/Input.tsx`):
9
+ * Copy from `/var/www/abstractendeavors/my-login-app/src/components/utils/src/Inputs.tsx`.
10
+ *
11
+ */
12
+ import type { InputProps } from "./../imports";
13
+ export declare const Input: React.FC<InputProps>;
@@ -0,0 +1,5 @@
1
+ export interface AppConfig {
2
+ API_BASE_URL: string;
3
+ }
4
+ export declare let AppConfig: AppConfig;
5
+ export declare function loadConfig(): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export * from "./Input";
2
+ export { loadConfig } from './config';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-utilities",
3
- "version": "0.0.7",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "description": "A reusable React Login component with JWT authentication",
6
6
  "main": "dist/cjs/index.js",