@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.
- package/LICENSE +21 -0
- package/README.md +155 -0
- package/README.zh_CN.md +165 -0
- package/dist/esm/guard.min.css +3 -0
- package/dist/esm/guard.min.js +2 -0
- package/dist/esm/guard.min.js.LICENSE.txt +1 -0
- package/dist/typings/guard-context.d.ts +3 -0
- package/dist/typings/guard-provider.d.ts +5 -0
- package/dist/typings/index.d.ts +4 -0
- package/dist/typings/use-guard.d.ts +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! For license information please see guard.min.js.LICENSE.txt */
|
|
@@ -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 @@
|
|
|
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
|
+
}
|