studiokit-scaffolding-js 7.0.5 → 7.0.6-alpha.1
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.
|
@@ -18,6 +18,8 @@ export interface FullscreenModalOwnProps {
|
|
|
18
18
|
export declare type FullscreenModalComponentProps = FullscreenModalOwnProps & ConnectedModalWrappedProps & GuidComponentWrappedProps;
|
|
19
19
|
/** The props that are provide to the wrapped component. */
|
|
20
20
|
export interface FullscreenModalWrappedProps {
|
|
21
|
+
/** GUID of the fullscreen modal, used in state.modals. */
|
|
22
|
+
guid: string;
|
|
21
23
|
/** Function that will close the modal. */
|
|
22
24
|
closeModal: () => void;
|
|
23
25
|
}
|
|
@@ -133,8 +133,8 @@ function configureFullscreenModalComponent(WrappedComponent) {
|
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
FullscreenModalComponent.prototype.render = function () {
|
|
136
|
-
var _a = this.props, contentLabel = _a.contentLabel, isTopOpenFullscreenModal = _a.isTopOpenFullscreenModal, onEntering = _a.onEntering, onExited = _a.onExited, _ = _a.isOpen, closeModal = _a.closeModal,
|
|
137
|
-
// do not pass ConnectedModalWrappedProps
|
|
136
|
+
var _a = this.props, contentLabel = _a.contentLabel, isTopOpenFullscreenModal = _a.isTopOpenFullscreenModal, onEntering = _a.onEntering, onExited = _a.onExited, _ = _a.isOpen, closeModal = _a.closeModal, remainingProps = __rest(_a, ["contentLabel", "isTopOpenFullscreenModal", "onEntering", "onExited", "isOpen", "closeModal"]);
|
|
137
|
+
// do not pass ConnectedModalWrappedProps to wrapped component
|
|
138
138
|
var wrappedProps = __assign(__assign({}, remainingProps), { closeModal: this.closeModal });
|
|
139
139
|
var isOpen = this.state.isOpen;
|
|
140
140
|
return (react_1.default.createElement(react_modal_1.default, { isOpen: isOpen, contentLabel: contentLabel, style: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6-alpha.1",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|