Parcourir la source

full revert of rendermime-interfaces; totally removed iconRenderer

telamonian il y a 5 ans
Parent
commit
43570ea332

+ 0 - 1
packages/rendermime-interfaces/package.json

@@ -32,7 +32,6 @@
   },
   "dependencies": {
     "@lumino/coreutils": "^1.4.2",
-    "@lumino/virtualdom": "^1.4.0",
     "@lumino/widgets": "^1.10.0"
   },
   "devDependencies": {

+ 0 - 9
packages/rendermime-interfaces/src/index.ts

@@ -4,8 +4,6 @@
 |----------------------------------------------------------------------------*/
 import { ReadonlyPartialJSONObject } from '@lumino/coreutils';
 
-import { VirtualElementPass } from '@lumino/virtualdom';
-
 import { Widget } from '@lumino/widgets';
 
 /**
@@ -158,13 +156,6 @@ export namespace IRenderMime {
      */
     readonly iconLabel?: string;
 
-    /**
-     * Set the icon renderer for the title. An icon renderer is any object
-     * with appropriate render and unrender methods. See JLIcon in
-     * @jupyterlab/ui-components for a reference implementation.
-     */
-    readonly iconRenderer?: VirtualElementPass.IRenderer;
-
     /**
      * The file format for the file type ('text', 'base64', or 'json').
      */

+ 0 - 1
packages/vega5-extension/package.json

@@ -35,7 +35,6 @@
   },
   "dependencies": {
     "@jupyterlab/rendermime-interfaces": "^2.0.0-beta.2",
-    "@jupyterlab/ui-components": "^2.0.0-beta.2",
     "@lumino/coreutils": "^1.4.2",
     "@lumino/widgets": "^1.10.0",
     "vega": "^5.9.0",

+ 3 - 4
packages/vega5-extension/src/index.ts

@@ -8,7 +8,6 @@ import { Widget } from '@lumino/widgets';
 import * as VegaModuleType from 'vega-embed';
 
 import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
-import { vegaIcon } from '@jupyterlab/ui-components';
 
 /**
  * The CSS class to add to the Vega and Vega-Lite widget.
@@ -175,19 +174,19 @@ const extension: IRenderMime.IExtension = {
       mimeTypes: [VEGA_MIME_TYPE],
       name: 'vega5',
       extensions: ['.vg', '.vg.json', '.vega'],
-      iconRenderer: vegaIcon
+      iconClass: 'vega'
     },
     {
       mimeTypes: [VEGALITE4_MIME_TYPE],
       name: 'vega-lite4',
       extensions: ['.vl', '.vl.json', '.vegalite'],
-      iconRenderer: vegaIcon
+      iconClass: 'vega'
     },
     {
       mimeTypes: [VEGALITE3_MIME_TYPE],
       name: 'vega-lite3',
       extensions: [],
-      iconRenderer: vegaIcon
+      iconClass: 'vega'
     }
   ]
 };

+ 0 - 1
packages/vega5-extension/style/index.css

@@ -5,6 +5,5 @@
 
 /* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
 @import url('~@lumino/widgets/style/index.css');
-@import url('~@jupyterlab/ui-components/style/index.css');
 
 @import url('./base.css');

+ 0 - 3
packages/vega5-extension/tsconfig.json

@@ -10,9 +10,6 @@
   "references": [
     {
       "path": "../rendermime-interfaces"
-    },
-    {
-      "path": "../ui-components"
     }
   ]
 }