@vitessce/description 3.5.2 → 3.5.3

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/dist/index.js +36 -79
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -907,7 +907,8 @@ const ViewType = {
907
907
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
908
908
  DOT_PLOT: "dotPlot",
909
909
  FEATURE_BAR_PLOT: "featureBarPlot",
910
- BIOMARKER_SELECT: "biomarkerSelect"
910
+ BIOMARKER_SELECT: "biomarkerSelect",
911
+ LINK_CONTROLLER: "linkController"
911
912
  };
912
913
  const CoordinationType = {
913
914
  META_COORDINATION_SCOPES: "metaCoordinationScopes",
@@ -1470,6 +1471,7 @@ const COMPONENT_COORDINATION_TYPES = {
1470
1471
  CoordinationType.OBS_COLOR_ENCODING,
1471
1472
  CoordinationType.ADDITIONAL_OBS_SETS
1472
1473
  ],
1474
+ [ViewType.LINK_CONTROLLER]: [],
1473
1475
  [ViewType.BIOMARKER_SELECT]: [
1474
1476
  CoordinationType.FEATURE_SELECTION,
1475
1477
  CoordinationType.SAMPLE_SET_SELECTION
@@ -2392,7 +2394,7 @@ function _toPropertyKey(arg) {
2392
2394
  var key = _toPrimitive(arg, "string");
2393
2395
  return _typeof$1(key) === "symbol" ? key : String(key);
2394
2396
  }
2395
- function _defineProperty$1(obj, key, value) {
2397
+ function _defineProperty(obj, key, value) {
2396
2398
  key = _toPropertyKey(key);
2397
2399
  if (key in obj) {
2398
2400
  Object.defineProperty(obj, key, {
@@ -2408,7 +2410,7 @@ function _defineProperty$1(obj, key, value) {
2408
2410
  }
2409
2411
  var specialProperty = "exact-prop: ​";
2410
2412
  function exactProp(propTypes2) {
2411
- return _extends$1({}, propTypes2, _defineProperty$1({}, specialProperty, function(props) {
2413
+ return _extends$1({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
2412
2414
  var unsupportedProps = Object.keys(props).filter(function(prop) {
2413
2415
  return !propTypes2.hasOwnProperty(prop);
2414
2416
  });
@@ -2768,20 +2770,7 @@ function lighten(color2, coefficient) {
2768
2770
  }
2769
2771
  return recomposeColor(color2);
2770
2772
  }
2771
- function _defineProperty(obj, key, value) {
2772
- if (key in obj) {
2773
- Object.defineProperty(obj, key, {
2774
- value,
2775
- enumerable: true,
2776
- configurable: true,
2777
- writable: true
2778
- });
2779
- } else {
2780
- obj[key] = value;
2781
- }
2782
- return obj;
2783
- }
2784
- function _objectWithoutPropertiesLoose$1(source, excluded) {
2773
+ function _objectWithoutPropertiesLoose(source, excluded) {
2785
2774
  if (source == null)
2786
2775
  return {};
2787
2776
  var target = {};
@@ -2795,10 +2784,10 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
2795
2784
  }
2796
2785
  return target;
2797
2786
  }
2798
- function _objectWithoutProperties$1(source, excluded) {
2787
+ function _objectWithoutProperties(source, excluded) {
2799
2788
  if (source == null)
2800
2789
  return {};
2801
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
2790
+ var target = _objectWithoutPropertiesLoose(source, excluded);
2802
2791
  var key, i;
2803
2792
  if (Object.getOwnPropertySymbols) {
2804
2793
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2813,20 +2802,6 @@ function _objectWithoutProperties$1(source, excluded) {
2813
2802
  }
2814
2803
  return target;
2815
2804
  }
2816
- function _extends() {
2817
- _extends = Object.assign ? Object.assign.bind() : function(target) {
2818
- for (var i = 1; i < arguments.length; i++) {
2819
- var source = arguments[i];
2820
- for (var key in source) {
2821
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2822
- target[key] = source[key];
2823
- }
2824
- }
2825
- }
2826
- return target;
2827
- };
2828
- return _extends.apply(this, arguments);
2829
- }
2830
2805
  var keys$1 = ["xs", "sm", "md", "lg", "xl"];
2831
2806
  function createBreakpoints(breakpoints) {
2832
2807
  var _breakpoints$values = breakpoints.values, values = _breakpoints$values === void 0 ? {
@@ -2835,7 +2810,7 @@ function createBreakpoints(breakpoints) {
2835
2810
  md: 960,
2836
2811
  lg: 1280,
2837
2812
  xl: 1920
2838
- } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties$1(breakpoints, ["values", "unit", "step"]);
2813
+ } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
2839
2814
  function up(key) {
2840
2815
  var value = typeof values[key] === "number" ? values[key] : key;
2841
2816
  return "@media (min-width:".concat(value).concat(unit, ")");
@@ -2869,7 +2844,7 @@ function createBreakpoints(breakpoints) {
2869
2844
  }
2870
2845
  return values[key];
2871
2846
  }
2872
- return _extends({
2847
+ return _extends$1({
2873
2848
  keys: keys$1,
2874
2849
  values,
2875
2850
  up,
@@ -2881,14 +2856,14 @@ function createBreakpoints(breakpoints) {
2881
2856
  }
2882
2857
  function createMixins(breakpoints, spacing, mixins) {
2883
2858
  var _toolbar;
2884
- return _extends({
2859
+ return _extends$1({
2885
2860
  gutters: function gutters() {
2886
2861
  var styles = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2887
2862
  console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
2888
- return _extends({
2863
+ return _extends$1({
2889
2864
  paddingLeft: spacing(2),
2890
2865
  paddingRight: spacing(2)
2891
- }, styles, _defineProperty({}, breakpoints.up("sm"), _extends({
2866
+ }, styles, _defineProperty({}, breakpoints.up("sm"), _extends$1({
2892
2867
  paddingLeft: spacing(3),
2893
2868
  paddingRight: spacing(3)
2894
2869
  }, styles[breakpoints.up("sm")])));
@@ -3007,7 +2982,7 @@ function createPalette(palette) {
3007
2982
  light: green$1[300],
3008
2983
  main: green$1[500],
3009
2984
  dark: green$1[700]
3010
- } : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties$1(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
2985
+ } : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
3011
2986
  function getContrastText(background) {
3012
2987
  var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
3013
2988
  {
@@ -3022,7 +2997,7 @@ function createPalette(palette) {
3022
2997
  var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
3023
2998
  var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
3024
2999
  var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
3025
- color2 = _extends({}, color2);
3000
+ color2 = _extends$1({}, color2);
3026
3001
  if (!color2.main && color2[mainShade]) {
3027
3002
  color2.main = color2[mainShade];
3028
3003
  }
@@ -3048,7 +3023,7 @@ function createPalette(palette) {
3048
3023
  console.error("Material-UI: The palette type `".concat(type, "` is not supported."));
3049
3024
  }
3050
3025
  }
3051
- var paletteOutput = deepmerge(_extends({
3026
+ var paletteOutput = deepmerge(_extends$1({
3052
3027
  // A collection of common colors.
3053
3028
  common: common$1,
3054
3029
  // The palette type, can be light or dark.
@@ -3099,7 +3074,7 @@ var caseAllCaps = {
3099
3074
  };
3100
3075
  var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
3101
3076
  function createTypography(palette, typography) {
3102
- var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties$1(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
3077
+ var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
3103
3078
  {
3104
3079
  if (typeof fontSize !== "number") {
3105
3080
  console.error("Material-UI: `fontSize` is required to be a number.");
@@ -3113,7 +3088,7 @@ function createTypography(palette, typography) {
3113
3088
  return "".concat(size / htmlFontSize * coef, "rem");
3114
3089
  };
3115
3090
  var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
3116
- return _extends({
3091
+ return _extends$1({
3117
3092
  fontFamily,
3118
3093
  fontWeight,
3119
3094
  fontSize: pxToRem(size),
@@ -3138,7 +3113,7 @@ function createTypography(palette, typography) {
3138
3113
  caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
3139
3114
  overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
3140
3115
  };
3141
- return deepmerge(_extends({
3116
+ return deepmerge(_extends$1({
3142
3117
  htmlFontSize,
3143
3118
  pxToRem,
3144
3119
  round: roundWithDeprecationWarning,
@@ -3318,7 +3293,7 @@ const transitions = {
3318
3293
  create: function create() {
3319
3294
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
3320
3295
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3321
- var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties$1(options, ["duration", "easing", "delay"]);
3296
+ var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
3322
3297
  {
3323
3298
  var isString = function isString2(value) {
3324
3299
  return typeof value === "string";
@@ -3366,7 +3341,7 @@ var zIndex = {
3366
3341
  const zIndex$1 = zIndex;
3367
3342
  function createTheme() {
3368
3343
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3369
- var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties$1(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
3344
+ var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
3370
3345
  var palette = createPalette(paletteInput);
3371
3346
  var breakpoints = createBreakpoints(breakpointsInput);
3372
3347
  var spacing = createSpacing(spacingInput);
@@ -3515,20 +3490,6 @@ function _assertThisInitialized(self2) {
3515
3490
  }
3516
3491
  return self2;
3517
3492
  }
3518
- function _objectWithoutPropertiesLoose(source, excluded) {
3519
- if (source == null)
3520
- return {};
3521
- var target = {};
3522
- var sourceKeys = Object.keys(source);
3523
- var key, i;
3524
- for (i = 0; i < sourceKeys.length; i++) {
3525
- key = sourceKeys[i];
3526
- if (excluded.indexOf(key) >= 0)
3527
- continue;
3528
- target[key] = source[key];
3529
- }
3530
- return target;
3531
- }
3532
3493
  var plainObjectConstrurctor = {}.constructor;
3533
3494
  function cloneStyle(style) {
3534
3495
  if (style == null || typeof style !== "object")
@@ -5003,6 +4964,20 @@ var functionPlugin = function functionPlugin2() {
5003
4964
  };
5004
4965
  };
5005
4966
  const functions = functionPlugin;
4967
+ function _extends() {
4968
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
4969
+ for (var i = 1; i < arguments.length; i++) {
4970
+ var source = arguments[i];
4971
+ for (var key in source) {
4972
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4973
+ target[key] = source[key];
4974
+ }
4975
+ }
4976
+ }
4977
+ return target;
4978
+ };
4979
+ return _extends.apply(this, arguments);
4980
+ }
5006
4981
  var at = "@global";
5007
4982
  var atPrefix = "@global ";
5008
4983
  var GlobalContainerRule = /* @__PURE__ */ function() {
@@ -5927,24 +5902,6 @@ function jssPreset() {
5927
5902
  ]
5928
5903
  };
5929
5904
  }
5930
- function _objectWithoutProperties(source, excluded) {
5931
- if (source == null)
5932
- return {};
5933
- var target = _objectWithoutPropertiesLoose(source, excluded);
5934
- var key, i;
5935
- if (Object.getOwnPropertySymbols) {
5936
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
5937
- for (i = 0; i < sourceSymbolKeys.length; i++) {
5938
- key = sourceSymbolKeys[i];
5939
- if (excluded.indexOf(key) >= 0)
5940
- continue;
5941
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
5942
- continue;
5943
- target[key] = source[key];
5944
- }
5945
- }
5946
- return target;
5947
- }
5948
5905
  function mergeClasses() {
5949
5906
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5950
5907
  var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
@@ -6356,7 +6313,7 @@ var defaultTheme = createTheme();
6356
6313
  const defaultTheme$1 = defaultTheme;
6357
6314
  function makeStyles(stylesOrCreator) {
6358
6315
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6359
- return makeStyles$1(stylesOrCreator, _extends({
6316
+ return makeStyles$1(stylesOrCreator, _extends$1({
6360
6317
  defaultTheme: defaultTheme$1
6361
6318
  }, options));
6362
6319
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/description",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,8 +18,8 @@
18
18
  "dependencies": {
19
19
  "@material-ui/core": "~4.12.3",
20
20
  "react-markdown": "^9.0.1",
21
- "@vitessce/constants-internal": "3.5.2",
22
- "@vitessce/vit-s": "3.5.2"
21
+ "@vitessce/constants-internal": "3.5.3",
22
+ "@vitessce/vit-s": "3.5.3"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@testing-library/jest-dom": "^5.16.4",