@crud/react
Advanced tools
Comparing version 1.1.0 to 1.1.1
import { Context } from "react"; | ||
import { CrudRequest } from "@crud/core"; | ||
export declare const CrudContext: Context<CrudRequest>; | ||
declare const CrudContext: Context<CrudRequest>; | ||
export default CrudContext; |
@@ -11,3 +11,3 @@ "use strict"; | ||
var React = __importStar(require("react")); | ||
exports.CrudContext = React.createContext(null); | ||
//# sourceMappingURL=CrudContext.js.map | ||
var CrudContext = React.createContext(null); | ||
exports.default = CrudContext; |
import * as React from "react"; | ||
import { CrudRequest } from "@crud/core"; | ||
export declare class CrudProvider extends React.Component { | ||
props: { | ||
children: any; | ||
crud: CrudRequest; | ||
}; | ||
export default class CrudProvider extends React.Component<{ | ||
children: any; | ||
crud: CrudRequest; | ||
}> { | ||
constructor(props: any); | ||
render(): React.ReactNode; | ||
} |
@@ -22,5 +22,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var React = __importStar(require("react")); | ||
var CrudContext_1 = require("./CrudContext"); | ||
var CrudContext_1 = __importDefault(require("./CrudContext")); | ||
var CrudProvider = /** @class */ (function (_super) { | ||
@@ -36,7 +39,6 @@ __extends(CrudProvider, _super); | ||
CrudProvider.prototype.render = function () { | ||
return React.createElement(CrudContext_1.CrudContext.Provider, { value: this.props.crud }, this.props.children); | ||
return React.createElement(CrudContext_1.default.Provider, { value: this.props.crud }, this.props.children); | ||
}; | ||
return CrudProvider; | ||
}(React.Component)); | ||
exports.CrudProvider = CrudProvider; | ||
//# sourceMappingURL=CrudProvider.js.map | ||
exports.default = CrudProvider; |
{ | ||
"name": "@crud/react", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "@crud/core support for react", | ||
@@ -17,5 +17,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@crud/core": "^2.1.4", | ||
"@material-ui/core": "^3.9.2", | ||
"@types/react": "^16.8.6", | ||
"typescript": "^3.3.3333", | ||
"@material-ui/core": "^3.9.2" | ||
"typescript": "^3.3.3333" | ||
}, | ||
@@ -25,3 +26,3 @@ "keywords": [ | ||
"react", | ||
"crud" | ||
"react-material-crud" | ||
], | ||
@@ -28,0 +29,0 @@ "author": "Shridhr Sharma", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75
3892
4