Files
pyscript/pyscriptjs/src/components/elements.ts
Fábio Rosado dbdcd0b3d0 Remove deprecated elements and adds deprecation banner to pys-on (#1084)
* 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
2023-01-03 13:14:20 +00:00

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 };