@datalayer/core 0.0.5 → 0.0.6

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.
@@ -33,19 +33,14 @@ export function DatalayerThemeProvider(props) {
33
33
  : 'light');
34
34
  }
35
35
  if (inJupyterLab) {
36
- // TODO remove the try/catch for JupyterLab > 4.1.
37
- try {
38
- const themeManager = jupyterLabAdapter?.service('@jupyterlab/apputils-extension:themes');
39
- if (themeManager) {
40
- updateColorMode(themeManager);
41
- themeManager.themeChanged.connect(updateColorMode);
42
- return () => {
43
- themeManager.themeChanged.disconnect(updateColorMode);
44
- };
45
- }
46
- }
47
- catch (e) {
48
- console.error('Error while setting the theme', e);
36
+ const themeManager = jupyterLabAdapter?.service('@jupyterlab/apputils-extension:themes');
37
+ console.log('---------DLA', inJupyterLab, jupyterLabAdapter, themeManager);
38
+ if (themeManager) {
39
+ updateColorMode(themeManager);
40
+ themeManager.themeChanged.connect(updateColorMode);
41
+ return () => {
42
+ themeManager.themeChanged.disconnect(updateColorMode);
43
+ };
49
44
  }
50
45
  }
51
46
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",