fansunited-management-components 1.50.6 → 1.50.7
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/index.es.js +0 -1
- package/index.umd.js +178 -178
- package/package.json +1 -1
- package/src/hooks/useComponentContext.d.ts +8 -5
- package/src/index.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { ComponentsMap } from '../constants/components';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Hook to access the registry of public components provided by ComponentProvider.
|
|
3
|
+
* Preserves individual component types and JSDoc documentation.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* @returns {ComponentsMap} Registry of components with preserved types and JSDoc
|
|
8
6
|
* @throws {Error} If used outside of a ComponentProvider.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const { Spinner, Login } = useComponentContext();
|
|
11
|
+
* ```
|
|
9
12
|
*/
|
|
10
|
-
export declare const useComponentContext: () => ComponentsMap;
|
|
13
|
+
export declare const useComponentContext: () => import('../constants/components').ComponentsMap;
|
package/src/index.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
export type { ComponentsMap } from './constants/components';
|
|
2
|
-
/**
|
|
3
|
-
* Centered loading spinner that fills its container.
|
|
4
|
-
*
|
|
5
|
-
* Recommended import:
|
|
6
|
-
* `import { Spinner } from 'fansunited-management-components'`
|
|
7
|
-
*/
|
|
8
|
-
export { default as Spinner } from './components/Spinner/Spinner';
|
|
9
|
-
/**
|
|
10
|
-
* Props for the Spinner component.
|
|
11
|
-
* Provides typed access in consumer projects without importing from deep paths.
|
|
12
|
-
*/
|
|
13
|
-
export type SpinnerProps = import('react').ComponentProps<typeof import('./components/Spinner/Spinner').default>;
|
|
14
1
|
declare const _default: {
|
|
15
2
|
APIProvider: import('react').FC<{
|
|
16
3
|
config: any;
|