@zoyafng/guard-react 5.3.10-hb.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.
@@ -0,0 +1 @@
1
+ /*! For license information please see guard.min.js.LICENSE.txt */
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { Guard } from '@zoyafng/guard';
3
+ export declare const GuardContext: import("react").Context<Guard>;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps, JSXElementConstructor } from 'react';
2
+ import { GuardOptions } from '@zoyafng/guard';
3
+ declare type Options = GuardOptions & ComponentProps<JSXElementConstructor<any>>;
4
+ export declare function GuardProvider(options: Options): JSX.Element;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ import '@zoyafng/guard/dist/esm/guard.min.css';
2
+ export * from '@zoyafng/guard';
3
+ export * from './guard-provider';
4
+ export * from './use-guard';
@@ -0,0 +1 @@
1
+ export declare const useGuard: () => import("@zoyafng/guard").Guard;
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@zoyafng/guard-react",
3
+ "version": "5.3.10-hb.0",
4
+ "description": "Guard for React",
5
+ "module": "dist/esm/guard.min.js",
6
+ "types": "dist/typings/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "autoinstall": "npm ci",
12
+ "build": "node scripts/build.js",
13
+ "lint": "eslint --ext .ts,.tsx src/**",
14
+ "lint:fix": "eslint --fix --ext .ts,.tsx src/**",
15
+ "release:official": "npm publish --verbose --access public",
16
+ "release:alpha": "npm publish --verbose --tag=alpha --access public"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^16.9.32",
20
+ "css-loader": "^6.7.1",
21
+ "mini-css-extract-plugin": "^2.6.1",
22
+ "rimraf": "^2.6.2",
23
+ "ts-loader": "^9.3.1",
24
+ "webpack": "^5.72.0"
25
+ },
26
+ "dependencies": {
27
+ "@zoyafng/guard": "5.3.10-hb.0",
28
+ "react": "^16.13.1"
29
+ },
30
+ "author": "https://github.com/authing",
31
+ "license": "MIT",
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org"
35
+ }
36
+ }