@yoobic/yobi 7.7.95 → 7.7.96

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.
@@ -123457,7 +123457,7 @@ const YooFormDocumentDialogComponent = class {
123457
123457
  icon: 'email',
123458
123458
  iconColor: 'dark-to-light',
123459
123459
  cssClass: rrule.isWeb(this.host) ? 'bg-royal-hover' : 'bg-royal light',
123460
- isVisible: () => index$1.isDocumentEmailSupported(this.document),
123460
+ isVisible: () => index$1.isDocumentEmailSupported(this.document) && rrule.getPermissions().canShareByEmail,
123461
123461
  handler: () => {
123462
123462
  rrule.getAsyncExtraData({
123463
123463
  type: 'email-dialog',
@@ -303,7 +303,7 @@ const YooFormCarouselComponent = class {
303
303
  text: rrule.translate('EMAIL'),
304
304
  icon: 'email',
305
305
  color: 'dark',
306
- isVisible: () => { var _a; return !!item && !((_a = rrule.getSession()) === null || _a === void 0 ? void 0 : _a.isExternal); },
306
+ isVisible: () => { var _a; return !!item && !((_a = rrule.getSession()) === null || _a === void 0 ? void 0 : _a.isExternal) && rrule.getPermissions().canShareByEmail; },
307
307
  handler: () => {
308
308
  const filename = (item === null || item === void 0 ? void 0 : item._filename) || new Date().getTime().toString();
309
309
  rrule.getAsyncExtraData({
@@ -1,4 +1,4 @@
1
- import { closeModal, downloadFile, findParent, getAsyncExtraData, getSession, isChromatic, isCloudinaryLink, isNativeMobile, isNullOrUndefined, isPdf, isWeb, showActionSheet, showContextMenu, translate } from '@shared/utils';
1
+ import { closeModal, downloadFile, findParent, getAsyncExtraData, getPermissions, getSession, isChromatic, isCloudinaryLink, isNativeMobile, isNullOrUndefined, isPdf, isWeb, showActionSheet, showContextMenu, translate } from '@shared/utils';
2
2
  import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
3
3
  import { getAppContext, intersectionObserve, isIntersectionObserverSupported, lockSwipes, showSlidesMedia } from '@utils';
4
4
  import { isArray } from 'lodash-es';
@@ -117,7 +117,7 @@ export class YooFormCarouselComponent {
117
117
  text: translate('EMAIL'),
118
118
  icon: 'email',
119
119
  color: 'dark',
120
- isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal); },
120
+ isVisible: () => { var _a; return !!item && !((_a = getSession()) === null || _a === void 0 ? void 0 : _a.isExternal) && getPermissions().canShareByEmail; },
121
121
  handler: () => {
122
122
  const filename = (item === null || item === void 0 ? void 0 : item._filename) || new Date().getTime().toString();
123
123
  getAsyncExtraData({
@@ -1,5 +1,5 @@
1
1
  import { ScreenOrientation } from '@ionic-native/screen-orientation';
2
- import { changeExtension, closeModal, Cloudinary, dispatchCustomEvent, downloadFile, downloadFileToDevice, fileNativeCheckFile, getAsyncExtraData, getExtension, getNativeDirectory, getType, isAndroid, isAudio, isCurrentLanguageChinese, isDateBefore, isDocumentDownloadSupported, isDocumentEmailSupported, isFile, isNativeMobile, isOffline, isVideo, isWeb, pipes, showActionSheet, showPdfOnDevice, translate } from '@shared/utils';
2
+ import { changeExtension, closeModal, Cloudinary, dispatchCustomEvent, downloadFile, downloadFileToDevice, fileNativeCheckFile, getAsyncExtraData, getExtension, getNativeDirectory, getPermissions, getType, isAndroid, isAudio, isCurrentLanguageChinese, isDateBefore, isDocumentDownloadSupported, isDocumentEmailSupported, isFile, isNativeMobile, isOffline, isVideo, isWeb, pipes, showActionSheet, showPdfOnDevice, translate } from '@shared/utils';
3
3
  import { Component, Element, h, Host, Prop, State } from '@stencil/core';
4
4
  import { getAppContext } from '@utils';
5
5
  import { isString } from 'lodash-es';
@@ -50,7 +50,7 @@ export class YooFormDocumentDialogComponent {
50
50
  icon: 'email',
51
51
  iconColor: 'dark-to-light',
52
52
  cssClass: isWeb(this.host) ? 'bg-royal-hover' : 'bg-royal light',
53
- isVisible: () => isDocumentEmailSupported(this.document),
53
+ isVisible: () => isDocumentEmailSupported(this.document) && getPermissions().canShareByEmail,
54
54
  handler: () => {
55
55
  getAsyncExtraData({
56
56
  type: 'email-dialog',