Skip to content

Commit 6456032

Browse files
authored
Merge pull request #3358 from mariobuikhuizen/feat_backward_compatibility
feat: backward compatibility with 7.x
2 parents 1b1a49d + 9e45585 commit 6456032

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/base/src/widget.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,11 @@ export class JupyterLuminoWidget extends Widget {
885885
private _view: DOMWidgetView;
886886
}
887887

888+
/**
889+
* @deprecated Use {@link JupyterLuminoWidget} instead (Since 8.0).
890+
*/
891+
export const JupyterPhosphorWidget = JupyterLuminoWidget;
892+
888893
export class JupyterLuminoPanelWidget extends Panel {
889894
constructor(options: JupyterLuminoWidget.IOptions & Panel.IOptions) {
890895
const view = options.view;
@@ -1167,6 +1172,14 @@ export class DOMWidgetView extends WidgetView {
11671172
this.el.removeAttribute('tabIndex');
11681173
}
11691174
}
1175+
1176+
/**
1177+
* @deprecated Use {@link luminoWidget} instead (Since 8.0).
1178+
*/
1179+
get pWidget(): Widget {
1180+
return this.luminoWidget;
1181+
}
1182+
11701183
el: HTMLElement; // Override typing
11711184
'$el': any;
11721185
luminoWidget: Widget;

0 commit comments

Comments
 (0)