@jupyter-notebook/application-extension 7.5.5 → 7.5.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.
Files changed (2) hide show
  1. package/lib/index.js +14 -3
  2. package/package.json +14 -14
package/lib/index.js CHANGED
@@ -333,6 +333,14 @@ const rendermime = {
333
333
  }
334
334
  return new RenderMimeRegistry({
335
335
  initialFactories: standardRendererFactories,
336
+ trustHandler: {
337
+ markTrusted: (node) => {
338
+ app.commandLinker.markTrusted(node);
339
+ },
340
+ unmarkTrusted: (node) => {
341
+ app.commandLinker.unmarkTrusted(node);
342
+ },
343
+ },
336
344
  linkHandler: !docManager
337
345
  ? undefined
338
346
  : {
@@ -342,9 +350,12 @@ const rendermime = {
342
350
  if (node.tagName === 'A' && node.hasAttribute('download')) {
343
351
  return;
344
352
  }
345
- app.commandLinker.connectNode(node, CommandIDs.handleLink, {
346
- path,
347
- id,
353
+ node.addEventListener('click', (event) => {
354
+ event.preventDefault();
355
+ void app.commands.execute(CommandIDs.handleLink, {
356
+ path,
357
+ id,
358
+ });
348
359
  });
349
360
  },
350
361
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/application-extension",
3
- "version": "7.5.5",
3
+ "version": "7.5.6",
4
4
  "description": "Jupyter Notebook - Application Extension",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -38,19 +38,19 @@
38
38
  "watch": "tsc -b --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@jupyter-notebook/application": "^7.5.5",
42
- "@jupyter-notebook/ui-components": "^7.5.5",
43
- "@jupyterlab/application": "~4.5.6",
44
- "@jupyterlab/apputils": "~4.6.6",
45
- "@jupyterlab/codeeditor": "~4.5.6",
46
- "@jupyterlab/console": "~4.5.6",
47
- "@jupyterlab/coreutils": "~6.5.6",
48
- "@jupyterlab/docmanager": "~4.5.6",
49
- "@jupyterlab/docregistry": "~4.5.6",
50
- "@jupyterlab/mainmenu": "~4.5.6",
51
- "@jupyterlab/rendermime": "~4.5.6",
52
- "@jupyterlab/settingregistry": "~4.5.6",
53
- "@jupyterlab/translation": "~4.5.6",
41
+ "@jupyter-notebook/application": "^7.5.6",
42
+ "@jupyter-notebook/ui-components": "^7.5.6",
43
+ "@jupyterlab/application": "~4.5.7",
44
+ "@jupyterlab/apputils": "~4.6.7",
45
+ "@jupyterlab/codeeditor": "~4.5.7",
46
+ "@jupyterlab/console": "~4.5.7",
47
+ "@jupyterlab/coreutils": "~6.5.7",
48
+ "@jupyterlab/docmanager": "~4.5.7",
49
+ "@jupyterlab/docregistry": "~4.5.7",
50
+ "@jupyterlab/mainmenu": "~4.5.7",
51
+ "@jupyterlab/rendermime": "~4.5.7",
52
+ "@jupyterlab/settingregistry": "~4.5.7",
53
+ "@jupyterlab/translation": "~4.5.7",
54
54
  "@lumino/coreutils": "^2.2.2",
55
55
  "@lumino/disposable": "^2.1.5",
56
56
  "@lumino/widgets": "^2.7.3"