Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@filerobot/utils

Package Overview
Dependencies
Maintainers
0
Versions
1365
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filerobot/utils - npm Package Compare versions

Comparing version 3.73.31 to 3.73.32

134

lib/constants.js

@@ -7,14 +7,5 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
import { Link, Code, Verify, Lock, Languages, MoreDetails, CommentOutline, Image2, File2, ExternalLink } from '@scaleflex/icons';
import { Lock, Languages, Image2, File2 } from '@scaleflex/icons';
// TODO: Revert the icons used in state.
import copyText from '@filerobot/utils/lib/copyText';
import isVideo from '@filerobot/utils/lib/isVideo';
import { Color as PC } from '@scaleflex/ui/utils/types/palette/color';
import getFileCdnLink from '@filerobot/utils/lib/getFileCdnLink';

@@ -24,3 +15,2 @@ // TODO: Uncomment when find similar logic is ready

// import isImage from './isImage'
import { jsx as _jsx } from "react/jsx-runtime";
var COMMON_SLICE_PROP_NAME = 'common';

@@ -107,54 +97,13 @@ var FILE_TYPES_ICON_PATH = 'https://assets.filerobot.com/scaleflex/assets/file-types/v2/';

};
var DETAILS_VIEW_TABS_IDS = {
DETAILS: 'SIDE_VIEW_DETAILS',
COMMENTS: 'SIDE_VIEW_COMMENTS'
var FILE_WINDOW_TAB_IDS = {
GENERAL: 'general',
METADATA: 'metadata',
ACTIVITY: 'activity',
VERSIONING: 'versions',
VARIATIONS: 'Variations',
COMMENTS: 'comments',
APPROVALS: 'approvals',
INSIGHTS: 'insights',
HiSTORY: 'history'
};
var DETAILS_VIEW_TABS_OBJECTS = {
DETAILS: {
i18nStr: 'mutualizedDetailsTabLabel',
icon: function icon(color) {
return /*#__PURE__*/_jsx(MoreDetails, {
size: 16,
color: color
});
}
},
COMMENTS: {
i18nStr: 'mutualizedCommentsTabLabel',
icon: function icon(color) {
return /*#__PURE__*/_jsx(CommentOutline, {
size: 16,
color: color
});
}
}
};
var FILECARD_TABS_IDS = {
DETAILS: 'DETAILS',
EMBED: 'EMBED',
VISIBILITY: 'VISIBILITY',
VERSIONING: 'VERSIONING',
VARIANTS: 'VARIANTS',
COMMENTS: 'COMMENTS',
PRODUCT: 'PRODUCT',
META: 'META',
APPROVALS: 'APPROVALS'
};
var FILECARD_DETAILS_SUBTABS_IDS = {
META: 'META',
PRODUCT: 'PRODUCT',
TAGS: 'TAGS',
GENERAL: 'GENERAL',
GENERAL_TAGS: 'GENERAL_TAGS',
FILE_METADATA: 'FILE_METADATA'
};
var FOLDERCARD_TABS_IDS = {
DETAILS: 'DETAILS',
LINKS: 'LINKS',
VISIBILITY: 'VISIBILITY',
COMMENTS: 'COMMENTS'
};
var ITEMSCARD_TABS_IDS = {
VISIBILITY: 'VISIBILITY'
};
var MANAGE_ACCESS_MODE_IDS = {

@@ -177,61 +126,2 @@ INHERIT: 'inherit',

};
// const editImgHide = ({ checkPluginTypeExistence, files, noImgOperationsAndDownload }) => (
// !checkPluginTypeExistence('editor') ||
// !isImage(files[0]) ||
// noImgOperationsAndDownload
// )
var FILECARD_SHARE_TABS_OBJECTS = {
PUBLISH: {
i18nStr: 'mutualizedPublishLabel',
icon: Languages,
key: 'PUBLISH'
},
MANAGE_ACCESS: {
i18nStr: 'mutualizedFileCardManageAccessLabel',
icon: Verify,
key: 'MANAGE_ACCESS'
},
GET_LINK: {
i18nStr: 'mutualizedCDNLinkLabel',
icon: Link,
onClick: function onClick(_ref) {
var files = _ref.files,
i18n = _ref.i18n,
info = _ref.info;
var _files = _slicedToArray(files, 1),
file = _files[0];
copyText({
text: getFileCdnLink(file),
i18n: i18n,
info: info
});
},
hideOption: function hideOption(_ref2) {
var files = _ref2.files;
return files.length > 1;
},
key: 'GET_LINK'
},
VIA_SHAREBOX: {
i18nStr: 'mutualizedShareboxLabel',
icon: ExternalLink,
onClick: function onClick(_ref3) {
var files = _ref3.files,
toggleShare = _ref3.toggleShare;
toggleShare(files);
},
key: 'VIA_SHAREBOX'
},
EMBED: {
i18nStr: 'embedTabLabel',
icon: Code,
hideOption: function hideOption(_ref4) {
var files = _ref4.files;
return !isVideo(files[0]);
},
key: 'EMBED'
}
};
var LIST_VIEW_FOLDERS_COLS_IDS = {

@@ -748,2 +638,2 @@ NAME: 'NAME',

export { FILE_TYPES_ICON_PATH, FILE_TYPES_AND_ICONS, FILECARD_TABS_IDS, FOLDERCARD_TABS_IDS, ITEMSCARD_TABS_IDS, DETAILS_VIEW_TABS_OBJECTS, DETAILS_VIEW_TABS_IDS, LIST_VIEW_COLS_IDS, LIST_VIEW_COLS_OBJECTS, LAYOUTS_IDS, TIME_OPTIONS, METADATA_VERSIONS, COLORS, IMAGE_EDITOR_MODES, FILECARD_DETAILS_SUBTABS_IDS, FILECARD_SHARE_TABS_OBJECTS, COMPANION_URLS, PERMISSIONS, I18N_GRID_UUID, I18N_PROD_BASE_URL, VIEW_IDS, BREADCRUMBS_VIEWS, COLLECTIONS_LIST_COLS_IDS, COLLECTIONS_LIST_COLS_OBJECTS, COLLECTION_TYPE_IDS, COLLECTION_TYPES_OPTIONS, COLLECTION_VISIBILITY_IDS, COLLECTION_VISIBILITY_OPTIONS, LABELS_LIST_COLS_IDS, LABELS_LIST_COLUMNS, LABELS_LIST_COLS_OBJECTS, LABEL_PERMISSION_IDS, LABEL_PERMISSION_OPTIONS, FMAW_URL_VIEW_QUERY_PARAMS, FMAW_URL_QUERY_PARAMS, SEARCH_METHODS, UNSUPPORTED_FILES_TO_EXPORT_REASONS, METADATA_MODEL_TYPE_IDS, FIFTY_KILO_BYTES, IMAGE_START_HEX, IMAGE_END_HEX, BYTES_TO_MEGA_BYTES, LARGE_FILE_SIZE_IN_MB, NEGLECTED_MIME_TYPES, MIME_TYPE_REGEX, TTF_FONT_MIME_TYPES, INSTALLED_FONT_FOLDER_PATH, EXPOSURE_PROGRAM, METERING_MODE, ORIENTATION, RESOLUTION_UNITS, GPS_ALTITUDE, RESTRICTED_FILES_EXTENISONS, FILTER_FILE_FORMAT_ICONS, VISIBILITY_OPTIONS, PUBLISH_ACCESS_MODE_OPTIONS, SUPPORTED_AUDIO_PLAYBACK_MMIE_TYPE, ACTION_BAR_POSITIONS, LIST_VIEW_FOLDERS_COLS_IDS, LIST_VIEW_FOLDERS_COLS_OBJECTS, AUTH_STATE, BULK_EDIT_GENERAL_IDS, BULK_EDIT_OPTIONS, BULK_EDIT_METADATA_ID, PLUGINS_IDS, COMMON_SLICE_PROP_NAME, CONTEXTMENU_MODES, CONTEXTMENU_TYPES, UPLOAD_FILES_STATUS, REMOVE_BACKGROUND_LINK_PLACEHOLDER, REMOVE_BACKGROUND_ENDPOINT, MANAGE_ACCESS_MODE_IDS, PERMISSION_MODELS, SHAREBOX_ASSETS_LIST_VIEW_COLS_IDS, PROGRESS_PANEL_STATUS, PROGRESS_PANEL_ACTIVITY, PROGRESS_PANEL_ACTIVITY_ACTION_TYPES, SHAREBOX_FOLDERS_LIST_VIEW_COLS_IDS, INVALID_FOLDER_OR_FILE_CHARS_REGEX, FILE_EXTENSION_REGEX, MANAGE_ACCESS_RELATION, ONE_DAY_MS, ABORTED_ERROR, GALLERY_ROLES_KEYS, BULK_ACCESS_EDIT_ITEMS_LIMIT, APPROVAL_STATUSES, FILE_UPLOAD_STATUS, DESCRIBE_AI_SUPPORTED_LANGUAGES, EXTRA_CONDITIONS, METADATA_CONDITIONS, EVENTS, METADATA_STATIC_DATA, DOWNLOAD_CART_LOCAL_STORAGE_KEY, RESPONSE_CODES, FONT_EXTENSION };
export { FILE_TYPES_ICON_PATH, FILE_TYPES_AND_ICONS, LIST_VIEW_COLS_IDS, LIST_VIEW_COLS_OBJECTS, LAYOUTS_IDS, TIME_OPTIONS, METADATA_VERSIONS, COLORS, IMAGE_EDITOR_MODES, COMPANION_URLS, PERMISSIONS, I18N_GRID_UUID, I18N_PROD_BASE_URL, VIEW_IDS, BREADCRUMBS_VIEWS, COLLECTIONS_LIST_COLS_IDS, COLLECTIONS_LIST_COLS_OBJECTS, COLLECTION_TYPE_IDS, COLLECTION_TYPES_OPTIONS, COLLECTION_VISIBILITY_IDS, COLLECTION_VISIBILITY_OPTIONS, LABELS_LIST_COLS_IDS, LABELS_LIST_COLUMNS, LABELS_LIST_COLS_OBJECTS, LABEL_PERMISSION_IDS, LABEL_PERMISSION_OPTIONS, FMAW_URL_VIEW_QUERY_PARAMS, FMAW_URL_QUERY_PARAMS, SEARCH_METHODS, UNSUPPORTED_FILES_TO_EXPORT_REASONS, METADATA_MODEL_TYPE_IDS, FIFTY_KILO_BYTES, IMAGE_START_HEX, IMAGE_END_HEX, BYTES_TO_MEGA_BYTES, LARGE_FILE_SIZE_IN_MB, NEGLECTED_MIME_TYPES, MIME_TYPE_REGEX, TTF_FONT_MIME_TYPES, INSTALLED_FONT_FOLDER_PATH, EXPOSURE_PROGRAM, METERING_MODE, ORIENTATION, RESOLUTION_UNITS, GPS_ALTITUDE, RESTRICTED_FILES_EXTENISONS, FILTER_FILE_FORMAT_ICONS, VISIBILITY_OPTIONS, PUBLISH_ACCESS_MODE_OPTIONS, SUPPORTED_AUDIO_PLAYBACK_MMIE_TYPE, ACTION_BAR_POSITIONS, LIST_VIEW_FOLDERS_COLS_IDS, LIST_VIEW_FOLDERS_COLS_OBJECTS, AUTH_STATE, BULK_EDIT_GENERAL_IDS, BULK_EDIT_OPTIONS, BULK_EDIT_METADATA_ID, PLUGINS_IDS, COMMON_SLICE_PROP_NAME, CONTEXTMENU_MODES, CONTEXTMENU_TYPES, UPLOAD_FILES_STATUS, REMOVE_BACKGROUND_LINK_PLACEHOLDER, REMOVE_BACKGROUND_ENDPOINT, MANAGE_ACCESS_MODE_IDS, PERMISSION_MODELS, SHAREBOX_ASSETS_LIST_VIEW_COLS_IDS, PROGRESS_PANEL_STATUS, PROGRESS_PANEL_ACTIVITY, PROGRESS_PANEL_ACTIVITY_ACTION_TYPES, SHAREBOX_FOLDERS_LIST_VIEW_COLS_IDS, INVALID_FOLDER_OR_FILE_CHARS_REGEX, FILE_EXTENSION_REGEX, MANAGE_ACCESS_RELATION, ONE_DAY_MS, ABORTED_ERROR, GALLERY_ROLES_KEYS, BULK_ACCESS_EDIT_ITEMS_LIMIT, APPROVAL_STATUSES, FILE_UPLOAD_STATUS, DESCRIBE_AI_SUPPORTED_LANGUAGES, EXTRA_CONDITIONS, METADATA_CONDITIONS, EVENTS, METADATA_STATIC_DATA, DOWNLOAD_CART_LOCAL_STORAGE_KEY, RESPONSE_CODES, FONT_EXTENSION, FILE_WINDOW_TAB_IDS };

6

package.json

@@ -6,3 +6,3 @@ {

"types": "types/index.d.ts",
"version": "3.73.31",
"version": "3.73.32",
"files": [

@@ -15,3 +15,3 @@ "/dist",

"dependencies": {
"@filerobot/icons": "^3.73.31",
"@filerobot/icons": "^3.73.32",
"@scaleflex/icons": "^2.10.24",

@@ -23,3 +23,3 @@ "@scaleflex/ui": "2.10.27",

},
"gitHead": "8b084aced34e1e6feaa6036a02dbf772cd001282"
"gitHead": "996bb99a649d4570f274843d166a179358a3a230"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc