mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Show deprecation banner * Add test for deprecation warning * Remove deprecated elements * Add entry in changelog * Update test_style * Remove random color rule * Add PR link to changelog
16 lines
557 B
TypeScript
16 lines
557 B
TypeScript
import type { Runtime } from '../runtime';
|
|
import { make_PyRepl } from './pyrepl';
|
|
import { make_PyWidget } from './pywidget';
|
|
|
|
function createCustomElements(runtime: Runtime) {
|
|
const PyWidget = make_PyWidget(runtime);
|
|
const PyRepl = make_PyRepl(runtime);
|
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
const xPyRepl = customElements.define('py-repl', PyRepl);
|
|
const xPyWidget = customElements.define('py-register-widget', PyWidget);
|
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
}
|
|
|
|
export { createCustomElements };
|