maishu-chitu-react
Advanced tools
Comparing version 1.20.0 to 1.21.0
@@ -20,5 +20,2 @@ import React = require("react"); | ||
} | ||
export declare let PageContext: React.Context<{ | ||
page: Page | null; | ||
}>; | ||
declare class DefaultPageNodeParser implements PageNodeParser { | ||
@@ -25,0 +22,0 @@ private nodes; |
@@ -1,1 +0,1 @@ | ||
export { Application, Page, PageProps, PageContext } from './application'; | ||
export { Application, Page, PageProps } from './application'; |
/*! | ||
* | ||
* maishu-chitu-react v1.20.0 | ||
* maishu-chitu-react v1.21.0 | ||
* https://github.com/ansiboy/services-sdk | ||
@@ -193,6 +193,3 @@ * | ||
exports.Page = Page; | ||
exports.PageContext = React.createContext({ | ||
page: null | ||
}); | ||
exports.Page = Page; // export let PageContext = React.createContext<{ page: Page | null }>({ page: null }) | ||
@@ -289,12 +286,10 @@ var DefaultPageNodeParser = | ||
} | ||
}; | ||
element = React.createElement(exports.PageContext.Provider, { | ||
value: { | ||
page: page | ||
} | ||
}, React.createElement(action, props)); | ||
}; // let element = React.createElement(PageContext.Provider, { value: { page: page as Page } }, | ||
element = React.createElement(action, props); // ) | ||
component = ReactDOM.render(element, page.element); | ||
page.component = component; | ||
} else { | ||
new action(page); | ||
action(page); | ||
} | ||
@@ -454,7 +449,4 @@ | ||
exports.Page = application_1.Page; | ||
exports.PageContext = application_1.PageContext; | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // export { dataPage, DataPageContext, DataPageProps, DataPageState } from './data-page' | ||
// import './css/index.css' | ||
// import './css/minirefresh.css' | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
//# sourceMappingURL=index.js.map | ||
@@ -461,0 +453,0 @@ |
/*! | ||
* | ||
* maishu-chitu-react v1.20.0 | ||
* maishu-chitu-react v1.21.0 | ||
* https://github.com/ansiboy/services-sdk | ||
@@ -134,3 +134,3 @@ * | ||
exports.Page = Page; | ||
exports.PageContext = React.createContext({ page: null }); | ||
// export let PageContext = React.createContext<{ page: Page | null }>({ page: null }) | ||
class DefaultPageNodeParser { | ||
@@ -179,3 +179,5 @@ constructor(modulesPath) { | ||
}; | ||
let element = React.createElement(exports.PageContext.Provider, { value: { page: page } }, React.createElement(action, props)); | ||
// let element = React.createElement(PageContext.Provider, { value: { page: page as Page } }, | ||
let element = React.createElement(action, props); | ||
// ) | ||
let component = ReactDOM.render(element, page.element); | ||
@@ -185,3 +187,3 @@ page.component = component; | ||
else { | ||
new action(page); | ||
action(page); | ||
} | ||
@@ -274,8 +276,4 @@ }); | ||
exports.Page = application_1.Page; | ||
exports.PageContext = application_1.PageContext; | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
// export { dataPage, DataPageContext, DataPageProps, DataPageState } from './data-page' | ||
// import './css/index.css' | ||
// import './css/minirefresh.css' | ||
@@ -282,0 +280,0 @@ |
@@ -78,6 +78,3 @@ "use strict"; | ||
exports.Page = Page; | ||
exports.PageContext = React.createContext({ | ||
page: null | ||
}); | ||
exports.Page = Page; // export let PageContext = React.createContext<{ page: Page | null }>({ page: null }) | ||
@@ -174,12 +171,10 @@ var DefaultPageNodeParser = | ||
} | ||
}; | ||
element = React.createElement(exports.PageContext.Provider, { | ||
value: { | ||
page: page | ||
} | ||
}, React.createElement(action, props)); | ||
}; // let element = React.createElement(PageContext.Provider, { value: { page: page as Page } }, | ||
element = React.createElement(action, props); // ) | ||
component = ReactDOM.render(element, page.element); | ||
page.component = component; | ||
} else { | ||
new action(page); | ||
action(page); | ||
} | ||
@@ -186,0 +181,0 @@ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -11,6 +11,3 @@ "use strict"; | ||
exports.Page = application_1.Page; | ||
exports.PageContext = application_1.PageContext; | ||
}); // export { dataPage, DataPageContext, DataPageProps, DataPageState } from './data-page' | ||
// import './css/index.css' | ||
// import './css/minirefresh.css' | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -20,5 +20,2 @@ import React = require("react"); | ||
} | ||
export declare let PageContext: React.Context<{ | ||
page: Page | null; | ||
}>; | ||
declare class DefaultPageNodeParser implements PageNodeParser { | ||
@@ -25,0 +22,0 @@ private nodes; |
@@ -20,3 +20,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
exports.Page = Page; | ||
exports.PageContext = React.createContext({ page: null }); | ||
// export let PageContext = React.createContext<{ page: Page | null }>({ page: null }) | ||
class DefaultPageNodeParser { | ||
@@ -65,3 +65,5 @@ constructor(modulesPath) { | ||
}; | ||
let element = React.createElement(exports.PageContext.Provider, { value: { page: page } }, React.createElement(action, props)); | ||
// let element = React.createElement(PageContext.Provider, { value: { page: page as Page } }, | ||
let element = React.createElement(action, props); | ||
// ) | ||
let component = ReactDOM.render(element, page.element); | ||
@@ -71,3 +73,3 @@ page.component = component; | ||
else { | ||
new action(page); | ||
action(page); | ||
} | ||
@@ -74,0 +76,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
export { Application, Page, PageProps, PageContext } from './application'; | ||
export { Application, Page, PageProps } from './application'; |
@@ -6,6 +6,2 @@ define(["require", "exports", "./application"], function (require, exports, application_1) { | ||
exports.Page = application_1.Page; | ||
exports.PageContext = application_1.PageContext; | ||
}); | ||
// export { dataPage, DataPageContext, DataPageProps, DataPageState } from './data-page' | ||
// import './css/index.css' | ||
// import './css/minirefresh.css' |
{ | ||
"name": "maishu-chitu-react", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,4 +0,1 @@ | ||
export { Application, Page, PageProps, PageContext } from './application' | ||
// export { dataPage, DataPageContext, DataPageProps, DataPageState } from './data-page' | ||
// import './css/index.css' | ||
// import './css/minirefresh.css' | ||
export { Application, Page, PageProps } from './application' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
448761
2806