Skip to content

Commit

Permalink
Merge pull request #3061 from plotly/master-2.18.2
Browse files Browse the repository at this point in the history
Master 2.18.2
  • Loading branch information
T4rk1n authored Nov 4, 2024
2 parents 5c7287f + 8453e9b commit a1049de
Show file tree
Hide file tree
Showing 223 changed files with 42,032 additions and 45,863 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ import {TypescriptComponentProps} from '../props';
/**
* Component docstring
*/
const TypeScriptComponent = (props: TypescriptComponentProps) => {
const {required_string, id} = props;
return <div id={id}>{required_string}</div>;
};

TypeScriptComponent.defaultProps = {
string_default: 'default',
number_default: 42,
bool_default: true,
null_default: null,
obj_default: {
a: 'a',
b: 3
}
const TypeScriptComponent = ({
required_string,
id,
string_default = 'default',
number_default = 42,
bool_default = true,
null_default = null,
obj_default = { a: 'a', b: 3 },
...props
}: TypescriptComponentProps) => {
return <div id={id}>{required_string}</div>;
};

export default TypeScriptComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type TypescriptComponentProps = {
array_elements?: JSX.Element[];

string_default?: string;
number_default?: string;
number_default?: number;
obj_default?: {a: string; b: number};
bool_default?: boolean;
null_default?: any;
Expand Down
11 changes: 6 additions & 5 deletions @plotly/dash-jupyterlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@
"watch": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^2.0.0 || ^3.0.0",
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0",
"@jupyterlab/console": "^2.0.0 || ^3.0.0"
"@jupyterlab/application": "^2.0.0 || ^3.0.0 || ^4.0.0",
"@jupyterlab/console": "^2.0.0 || ^3.0.0 || ^4.0.0",
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0 || ^4.0.0"
},
"devDependencies": {
"@types/json-schema": "^7.0.15",
"mkdirp": "^0.5.1",
"prettier": "2.0.5",
"rimraf": "3.0.2",
"typescript": "3.9.3",
"mkdirp": "^0.5.1"
"typescript": "5.6.2"
},
"jupyterlab": {
"extension": true
Expand Down
4 changes: 2 additions & 2 deletions @plotly/dash-jupyterlab/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"declaration": true,
"lib": ["es2015", "dom"],
"lib": ["es2018", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
Expand All @@ -10,7 +10,7 @@
"rootDir": "src",
"strict": true,
"strictNullChecks": false,
"target": "es2015",
"target": "es2018",
"types": [],
"esModuleInterop": true
},
Expand Down
Loading

0 comments on commit a1049de

Please sign in to comment.