@atls/react-user 0.1.44 → 0.1.46

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.
@@ -0,0 +1,5 @@
1
+ export * from './with-user-loading.component';
2
+ export * from './without-user.component';
3
+ export * from './with-user.component';
4
+ export * from './use-user.hook';
5
+ export { Provider as UserProvider, Consumer as UserConsumer, Context as UserContext, } from './user.context';
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -0,0 +1 @@
1
+ export declare const useUser: () => any;
@@ -0,0 +1,2 @@
1
+ export declare const Context: import("react").Context<any>;
2
+ export declare const Provider: import("react").Provider<any>, Consumer: import("react").Consumer<any>;
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ export interface WithUserLoadingProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare const WithUserLoading: FC<WithUserLoadingProps>;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FC } from 'react';
3
+ export interface WithUserProps {
4
+ children: ReactNode | ((user: any) => ReactNode);
5
+ }
6
+ export declare const WithUser: FC<WithUserProps>;
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ export interface WithoutUserProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare const WithoutUser: FC<WithoutUserProps>;
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ export interface WithoutUserProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare const WithoutUser: FC<WithoutUserProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls/react-user",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "license": "BSD 3-Clause",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,8 +12,8 @@
12
12
  "postpack": "rm -rf dist"
13
13
  },
14
14
  "devDependencies": {
15
- "@types/react": "^17.0.39",
16
- "react": "^17.0.2"
15
+ "@types/react": "18.3.6",
16
+ "react": "18.2.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "^17.0.1"