@daoyi/nmtl-ui 2.0.1-beta.51 → 2.0.1-beta.53

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.
@@ -3453,13 +3453,14 @@ var ExtraTools = function ExtraTools(_ref) {
3453
3453
  fullscreenDomId: fullscreenDomId,
3454
3454
  renderSNA: renderSNA
3455
3455
  };
3456
+ var isIOSMobile = /iPhone|iPad|iPod/i.test(navigator.userAgent);
3456
3457
  var tools = [{
3457
3458
  keys: ['share'],
3458
3459
  Component: ShareButton
3459
3460
  }, {
3460
3461
  keys: ['downloadImage', 'downloadGephi', 'downloadTsv', 'downloadXls'],
3461
3462
  Component: DownloadMenu
3462
- }, {
3463
+ }, !isIOSMobile && {
3463
3464
  keys: ['fullscreen'],
3464
3465
  Component: FullscreenBtn
3465
3466
  }, {
@@ -3471,7 +3472,9 @@ var ExtraTools = function ExtraTools(_ref) {
3471
3472
  }];
3472
3473
  return /*#__PURE__*/React__default.createElement("div", {
3473
3474
  className: classNames('extraTools', className)
3474
- }, tools.map(function (_ref2) {
3475
+ }, tools.filter(function (t) {
3476
+ return t;
3477
+ }).map(function (_ref2) {
3475
3478
  var keys = _ref2.keys,
3476
3479
  Component = _ref2.Component;
3477
3480
  return !hideButton(keys) && /*#__PURE__*/React__default.createElement(Component, _extends({
@@ -1,4 +1,4 @@
1
- export { E as default } from './ExtraTools-81223f02.js';
1
+ export { E as default } from './ExtraTools-b0bb9399.js';
2
2
  import './_rollupPluginBabelHelpers-3d9c8289.js';
3
3
  import 'react';
4
4
  import './index-66babe67.js';
@@ -2,7 +2,7 @@ import React__default, { useMemo, useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { c as classNames } from './index-66babe67.js';
4
4
  import { e as event, d as d3Select, a as dispatch, c as customEvent, D as DragEvent, q as quadtree, m as map, t as timer, T as Transform, i as identity, b as interrupt, o as ordinal, f as category10 } from './transform-3a04288b.js';
5
- import { E as ExtraTools } from './ExtraTools-81223f02.js';
5
+ import { E as ExtraTools } from './ExtraTools-b0bb9399.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
  import './_rollupPluginBabelHelpers-3d9c8289.js';
8
8
  import './_commonjsHelpers-70de2c37.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daoyi/nmtl-ui",
3
- "version": "2.0.1-beta.51",
3
+ "version": "2.0.1-beta.53",
4
4
  "description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
5
5
  "author": "daoyi",
6
6
  "main": "lib/index.js",