ls-pro-common 3.0.67 → 3.0.68

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.
@@ -265,7 +265,7 @@ function ImageSelector(prop) {
265
265
  };
266
266
  var win = top || window;
267
267
  //@ts-ignore
268
- if (!win.lsAppList) {
268
+ if (!win.lsAppList || !!document.fullscreenElement) {
269
269
  win = window;
270
270
  }
271
271
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProFormText, _extends({
package/es/utils/index.js CHANGED
@@ -360,7 +360,7 @@ export var showError = function showError(text) {
360
360
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
361
361
  var win = top || window;
362
362
  //@ts-ignore
363
- if (!win.lsAppList) {
363
+ if (!win.lsAppList || !!document.fullscreenElement) {
364
364
  win = window;
365
365
  }
366
366
  _message.error({
@@ -383,7 +383,7 @@ export var showWarn = function showWarn(text) {
383
383
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
384
384
  var win = top || window;
385
385
  //@ts-ignore
386
- if (!win.lsAppList) {
386
+ if (!win.lsAppList || !!document.fullscreenElement) {
387
387
  win = window;
388
388
  }
389
389
  _message.warn({
@@ -406,7 +406,7 @@ export var showSuccess = function showSuccess(text) {
406
406
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
407
407
  var win = top || window;
408
408
  //@ts-ignore
409
- if (!win.lsAppList) {
409
+ if (!win.lsAppList || !!document.fullscreenElement) {
410
410
  win = window;
411
411
  }
412
412
  _message.success({
@@ -439,7 +439,7 @@ export var showAlert = function showAlert(text) {
439
439
  var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
440
440
  var win = top || window;
441
441
  //@ts-ignore
442
- if (!win.lsAppList) {
442
+ if (!win.lsAppList || !!document.fullscreenElement) {
443
443
  win = window;
444
444
  }
445
445
  return new Promise(function (resolve, reject) {
@@ -470,7 +470,7 @@ export var showConfirm = function showConfirm(text) {
470
470
  return new Promise(function (resolve, reject) {
471
471
  var win = top || window;
472
472
  //@ts-ignore
473
- if (!win.lsAppList) {
473
+ if (!win.lsAppList || !!document.fullscreenElement) {
474
474
  win = window;
475
475
  }
476
476
  _Modal.confirm({
@@ -503,7 +503,7 @@ export var reLogin = function reLogin() {
503
503
  timeout = true;
504
504
  var win = top || window;
505
505
  //@ts-ignore
506
- if (!win.lsAppList) {
506
+ if (!win.lsAppList || !!document.fullscreenElement) {
507
507
  win = window;
508
508
  }
509
509
  _Modal.warning({
@@ -265,7 +265,7 @@ function ImageSelector(prop) {
265
265
  };
266
266
  var win = top || window;
267
267
  //@ts-ignore
268
- if (!win.lsAppList) {
268
+ if (!win.lsAppList || !!document.fullscreenElement) {
269
269
  win = window;
270
270
  }
271
271
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProFormText, _extends({
@@ -360,7 +360,7 @@ export var showError = function showError(text) {
360
360
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
361
361
  var win = top || window;
362
362
  //@ts-ignore
363
- if (!win.lsAppList) {
363
+ if (!win.lsAppList || !!document.fullscreenElement) {
364
364
  win = window;
365
365
  }
366
366
  _message.error({
@@ -383,7 +383,7 @@ export var showWarn = function showWarn(text) {
383
383
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
384
384
  var win = top || window;
385
385
  //@ts-ignore
386
- if (!win.lsAppList) {
386
+ if (!win.lsAppList || !!document.fullscreenElement) {
387
387
  win = window;
388
388
  }
389
389
  _message.warn({
@@ -406,7 +406,7 @@ export var showSuccess = function showSuccess(text) {
406
406
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
407
407
  var win = top || window;
408
408
  //@ts-ignore
409
- if (!win.lsAppList) {
409
+ if (!win.lsAppList || !!document.fullscreenElement) {
410
410
  win = window;
411
411
  }
412
412
  _message.success({
@@ -439,7 +439,7 @@ export var showAlert = function showAlert(text) {
439
439
  var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
440
440
  var win = top || window;
441
441
  //@ts-ignore
442
- if (!win.lsAppList) {
442
+ if (!win.lsAppList || !!document.fullscreenElement) {
443
443
  win = window;
444
444
  }
445
445
  return new Promise(function (resolve, reject) {
@@ -470,7 +470,7 @@ export var showConfirm = function showConfirm(text) {
470
470
  return new Promise(function (resolve, reject) {
471
471
  var win = top || window;
472
472
  //@ts-ignore
473
- if (!win.lsAppList) {
473
+ if (!win.lsAppList || !!document.fullscreenElement) {
474
474
  win = window;
475
475
  }
476
476
  _Modal.confirm({
@@ -503,7 +503,7 @@ export var reLogin = function reLogin() {
503
503
  timeout = true;
504
504
  var win = top || window;
505
505
  //@ts-ignore
506
- if (!win.lsAppList) {
506
+ if (!win.lsAppList || !!document.fullscreenElement) {
507
507
  win = window;
508
508
  }
509
509
  _Modal.warning({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "3.0.67",
3
+ "version": "3.0.68",
4
4
  "description": "ls-pro-common",
5
5
  "license": "MIT",
6
6
  "sideEffects": [