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

wix-rich-content-fullscreen

Package Overview
Dependencies
Maintainers
1
Versions
1207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wix-rich-content-fullscreen - npm Package Compare versions

Comparing version 6.8.5 to 6.8.6

2

dist/lib/getImagesData.cjs.js

@@ -1,2 +0,2 @@

"use strict";var wixRichContentCommon=require("wix-rich-content-common"),imageType="wix-draft-plugin-image",imageTypeLegacy="IMAGE",galleryType="wix-draft-plugin-gallery";function getUrl(_ref){var file_name=_ref.file_name,width=_ref.width,height=_ref.height,_window$screen=window.screen,screenWidth=_window$screen.width,screenHeight=_window$screen.height;return wixRichContentCommon.getImageSrc({file_name:file_name,width:width,height:height},{},{requiredWidth:screenWidth-200,requiredHeight:screenHeight-200,requiredQuality:90,imageType:"highRes"})}function imageEntryToUrl(entry){return entry.data.src?getUrl(entry.data.src):""}function galleryEntryToUrls(entry){return entry.data.items.map(convertGalleryItemToImage).map(getUrl)}function convertGalleryItemToImage(item){return{file_name:item.url,width:item.metadata.width,height:item.metadata.height}}function convertEntryToUrls(entry){switch(entry.type){case imageType:case imageTypeLegacy:return[imageEntryToUrl(entry)];case galleryType:return galleryEntryToUrls(entry);default:return[]}}function getImagesData(_ref2){var entityMap=_ref2.entityMap,sum=0,imageMap={};return{images:Object.values(entityMap).map(convertEntryToUrls).reduce(function(urls,entryUrls,i){return entryUrls.length>0&&(imageMap[i]=sum),sum+=entryUrls.length,urls.concat(entryUrls)},[]).map(function(src){return{src:src}}),imageMap:imageMap}}module.exports=getImagesData;
"use strict";var wixRichContentCommon=require("wix-rich-content-common");function getUrl(_ref){var file_name=_ref.file_name,width=_ref.width,height=_ref.height,_window$screen=window.screen,screenWidth=_window$screen.width,screenHeight=_window$screen.height;return wixRichContentCommon.getImageSrc({file_name:file_name,width:width,height:height},{},{requiredWidth:screenWidth-200,requiredHeight:screenHeight-200,requiredQuality:90,imageType:"highRes"})}function imageEntryToUrl(entry){return entry.data.src?getUrl(entry.data.src):""}function convertGalleryItemToImage(item){return{file_name:item.url,width:item.metadata.width,height:item.metadata.height}}function convertEntryToUrls(entry){switch(entry.type){case"wix-draft-plugin-image":case"IMAGE":return[imageEntryToUrl(entry)];case"wix-draft-plugin-gallery":return function(entry){return entry.data.items.map(convertGalleryItemToImage).map(getUrl)}(entry);default:return[]}}module.exports=function(_ref2){var entityMap=_ref2.entityMap,sum=0,imageMap={};return{images:Object.values(entityMap).map(convertEntryToUrls).reduce((function(urls,entryUrls,i){return entryUrls.length>0&&(imageMap[i]=sum),sum+=entryUrls.length,urls.concat(entryUrls)}),[]).map((function(src){return{src:src}})),imageMap:imageMap}};
//# sourceMappingURL=getImagesData.cjs.js.map

@@ -1,2 +0,2 @@

import{getImageSrc}from"wix-rich-content-common";var imageType="wix-draft-plugin-image",imageTypeLegacy="IMAGE",galleryType="wix-draft-plugin-gallery";function getUrl(_ref){var file_name=_ref.file_name,width=_ref.width,height=_ref.height,_window$screen=window.screen,screenWidth=_window$screen.width,screenHeight=_window$screen.height;return getImageSrc({file_name:file_name,width:width,height:height},{},{requiredWidth:screenWidth-200,requiredHeight:screenHeight-200,requiredQuality:90,imageType:"highRes"})}function imageEntryToUrl(entry){return entry.data.src?getUrl(entry.data.src):""}function convertGalleryItemToImage(item){return{file_name:item.url,width:item.metadata.width,height:item.metadata.height}}function convertEntryToUrls(entry){switch(entry.type){case imageType:case imageTypeLegacy:return[imageEntryToUrl(entry)];case galleryType:return function(entry){return entry.data.items.map(convertGalleryItemToImage).map(getUrl)}(entry);default:return[]}}export default function(_ref2){var entityMap=_ref2.entityMap,sum=0,imageMap={};return{images:Object.values(entityMap).map(convertEntryToUrls).reduce(function(urls,entryUrls,i){return entryUrls.length>0&&(imageMap[i]=sum),sum+=entryUrls.length,urls.concat(entryUrls)},[]).map(function(src){return{src:src}}),imageMap:imageMap}}
import{getImageSrc}from"wix-rich-content-common";function getUrl(_ref){var file_name=_ref.file_name,width=_ref.width,height=_ref.height,_window$screen=window.screen,screenWidth=_window$screen.width,screenHeight=_window$screen.height;return getImageSrc({file_name:file_name,width:width,height:height},{},{requiredWidth:screenWidth-200,requiredHeight:screenHeight-200,requiredQuality:90,imageType:"highRes"})}function imageEntryToUrl(entry){return entry.data.src?getUrl(entry.data.src):""}function convertGalleryItemToImage(item){return{file_name:item.url,width:item.metadata.width,height:item.metadata.height}}function convertEntryToUrls(entry){switch(entry.type){case"wix-draft-plugin-image":case"IMAGE":return[imageEntryToUrl(entry)];case"wix-draft-plugin-gallery":return function(entry){return entry.data.items.map(convertGalleryItemToImage).map(getUrl)}(entry);default:return[]}}export default function(_ref2){var entityMap=_ref2.entityMap,sum=0,imageMap={};return{images:Object.values(entityMap).map(convertEntryToUrls).reduce((function(urls,entryUrls,i){return entryUrls.length>0&&(imageMap[i]=sum),sum+=entryUrls.length,urls.concat(entryUrls)}),[]).map((function(src){return{src:src}})),imageMap:imageMap}}
//# sourceMappingURL=getImagesData.js.map

@@ -1,2 +0,2 @@

"use strict";function _interopDefault(ex){return ex&&"object"==typeof ex&&"default"in ex?ex.default:ex}var React=_interopDefault(require("react")),Carousel=require("react-images"),Carousel__default=_interopDefault(Carousel);function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}var _extends_1=createCommonjsModule(function(module){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}module.exports=_extends});function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var inheritsLoose=_inheritsLoose;function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref=React.createElement("path",{d:"M.198 25.926l1.06 1.06 13.259-13.258L1.258.47.198 1.53l12.197 12.198z"}),SvgRightArrow=function(props){return React.createElement("svg",_extends({fill:"currentColor",width:15,height:27},props),_ref)};function _extends$1(){return(_extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$1=React.createElement("path",{d:"M14.258 1.53L13.198.47-.061 13.728l13.259 13.258 1.06-1.06L2.061 13.728z"}),SvgLeftArrow=function(props){return React.createElement("svg",_extends$1({fill:"currentColor",width:15,height:27},props),_ref$1)};function _extends$2(){return(_extends$2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$2=React.createElement("path",{d:"M271.74 256L507.854 19.888l-15.74-15.741L256 240.259 19.888 4.147 4.147 19.887 240.259 256 4.147 492.112l15.74 15.741L256 271.741l236.112 236.112 15.741-15.74L271.741 256z"}),SvgClose=function(props){return React.createElement("svg",_extends$2({fill:"currentColor",width:26,height:26,viewBox:"0 0 512 512"},props),_ref$2)};function _extends$3(){return(_extends$3=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$3=React.createElement("path",{d:"M15.071 8.371V4.585l-4.355 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.355h-3.786a.2.2 0 01-.2-.2V3.2c0-.11.09-.2.2-.2H16v5.371a.2.2 0 01-.2.2h-.529a.2.2 0 01-.2-.2zm-6.5 6.9v.529a.2.2 0 01-.2.2H3v-5.371c0-.11.09-.2.2-.2h.529c.11 0 .2.09.2.2v3.786l4.355-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283L4.585 15.07h3.786c.11 0 .2.09.2.2z"}),SvgExpand=function(props){return React.createElement("svg",_extends$3({width:38,viewBox:"0 0 19 19"},props),_ref$3)};function _extends$4(){return(_extends$4=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$4=React.createElement("path",{d:"M10.846 3.71v3.787l4.356-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283l-4.356 4.356h3.786c.11 0 .2.09.2.2v.528a.2.2 0 01-.2.2H9.918V3.711c0-.11.09-.2.2-.2h.528c.11 0 .2.09.2.2zm-7.335 6.936v-.528c0-.11.09-.2.2-.2h5.371v5.371a.2.2 0 01-.2.2h-.528a.2.2 0 01-.2-.2v-3.786l-4.356 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.356H3.711a.2.2 0 01-.2-.2z"}),SvgDecrease=function(props){return React.createElement("svg",_extends$4({width:38,viewBox:"0 0 19 19"},props),_ref$4)};function addChildTo(Comp,Child){return Comp.displayName=Comp.name,function(props){return React.createElement(Comp,props,React.createElement(Child,props.innerProps))}}function HeaderFullscreen(props){var isEnterFullscreen=0===props.innerProps.title.indexOf("Enter");return React.createElement(Carousel.carouselComponents.HeaderFullscreen,props,isEnterFullscreen?React.createElement(SvgExpand,{width:"100%"}):React.createElement(SvgDecrease,null))}HeaderFullscreen.displayName="HeaderFullscreen";var Fullscreen=function(_React$Component){function Fullscreen(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).modalStyles={blanket:function(base){return _extends_1({},base,{zIndex:1e3,backgroundColor:_this.props.backgroundColor})},positioner:function(base){return _extends_1({},base,{zIndex:1001,top:_this.props.topMargin,"& button":{color:_this.props.foregroundColor}})},dialog:function(base){return _extends_1({},base,{zIndex:1002})}},_this.styles={view:function(base){return _extends_1({},base,{maxHeight:"calc(100vh - "+(200+_this.props.topMargin)+"px)",">img":{maxHeight:"inherit"}})},header:function(base){return _extends_1({},base,{width:"100%","&>span:nth-child(2)":{width:"100%",display:"flex ",justifyContent:"space-between"}})},navigation:function(base){return _extends_1({},base,{width:"100vw"})},navigationNext:function(base){return _extends_1({},base,{background:"transparent !important",opacity:.7,"&:hover":{opacity:1}})},footerCount:function(base){var display=1===_this.props.images.length&&"none";return _extends_1({},base,{color:_this.props.foregroundColor,display:display})}},_this}return inheritsLoose(Fullscreen,_React$Component),Fullscreen.prototype.render=function(){var _this$props=this.props,onClose=_this$props.onClose,index=_this$props.index,images=_this$props.images,isOpen=_this$props.isOpen;return React.createElement(Carousel.ModalGateway,null,isOpen?React.createElement(Carousel.Modal,{onClose:onClose,styles:this.modalStyles},React.createElement(Carousel__default,{views:images,currentIndex:index,components:{NavigationPrev:addChildTo(Carousel.carouselComponents.NavigationNext,SvgLeftArrow),NavigationNext:addChildTo(Carousel.carouselComponents.NavigationNext,SvgRightArrow),HeaderClose:addChildTo(Carousel.carouselComponents.HeaderClose,SvgClose),HeaderFullscreen:HeaderFullscreen},styles:this.styles})):null)},Fullscreen}(React.Component);Fullscreen.defaultProps={topMargin:0,backgroundColor:"#000",foregroundColor:"#fff"},module.exports=Fullscreen;
"use strict";function _interopDefault(ex){return ex&&"object"==typeof ex&&"default"in ex?ex.default:ex}var React=_interopDefault(require("react")),Carousel=require("react-images"),Carousel__default=_interopDefault(Carousel);var _extends_1=function(fn,module){return fn(module={exports:{}},module.exports),module.exports}((function(module){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}module.exports=_extends}));var inheritsLoose=function(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass};function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref=React.createElement("path",{d:"M.198 25.926l1.06 1.06 13.259-13.258L1.258.47.198 1.53l12.197 12.198z"}),SvgRightArrow=function(props){return React.createElement("svg",_extends({fill:"currentColor",width:15,height:27},props),_ref)};function _extends$1(){return(_extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$1=React.createElement("path",{d:"M14.258 1.53L13.198.47-.061 13.728l13.259 13.258 1.06-1.06L2.061 13.728z"}),SvgLeftArrow=function(props){return React.createElement("svg",_extends$1({fill:"currentColor",width:15,height:27},props),_ref$1)};function _extends$2(){return(_extends$2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$2=React.createElement("path",{d:"M271.74 256L507.854 19.888l-15.74-15.741L256 240.259 19.888 4.147 4.147 19.887 240.259 256 4.147 492.112l15.74 15.741L256 271.741l236.112 236.112 15.741-15.74L271.741 256z"}),SvgClose=function(props){return React.createElement("svg",_extends$2({fill:"currentColor",width:26,height:26,viewBox:"0 0 512 512"},props),_ref$2)};function _extends$3(){return(_extends$3=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$3=React.createElement("path",{d:"M15.071 8.371V4.585l-4.355 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.355h-3.786a.2.2 0 01-.2-.2V3.2c0-.11.09-.2.2-.2H16v5.371a.2.2 0 01-.2.2h-.529a.2.2 0 01-.2-.2zm-6.5 6.9v.529a.2.2 0 01-.2.2H3v-5.371c0-.11.09-.2.2-.2h.529c.11 0 .2.09.2.2v3.786l4.355-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283L4.585 15.07h3.786c.11 0 .2.09.2.2z"}),SvgExpand=function(props){return React.createElement("svg",_extends$3({width:38,viewBox:"0 0 19 19"},props),_ref$3)};function _extends$4(){return(_extends$4=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$4=React.createElement("path",{d:"M10.846 3.71v3.787l4.356-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283l-4.356 4.356h3.786c.11 0 .2.09.2.2v.528a.2.2 0 01-.2.2H9.918V3.711c0-.11.09-.2.2-.2h.528c.11 0 .2.09.2.2zm-7.335 6.936v-.528c0-.11.09-.2.2-.2h5.371v5.371a.2.2 0 01-.2.2h-.528a.2.2 0 01-.2-.2v-3.786l-4.356 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.356H3.711a.2.2 0 01-.2-.2z"}),SvgDecrease=function(props){return React.createElement("svg",_extends$4({width:38,viewBox:"0 0 19 19"},props),_ref$4)};function addChildTo(Comp,Child){return Comp.displayName=Comp.name,function(props){return React.createElement(Comp,props,React.createElement(Child,props.innerProps))}}function HeaderFullscreen(props){var isEnterFullscreen=0===props.innerProps.title.indexOf("Enter");return React.createElement(Carousel.carouselComponents.HeaderFullscreen,props,isEnterFullscreen?React.createElement(SvgExpand,{width:"100%"}):React.createElement(SvgDecrease,null))}HeaderFullscreen.displayName="HeaderFullscreen";var Fullscreen=function(_React$Component){function Fullscreen(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).modalStyles={blanket:function(base){return _extends_1({},base,{zIndex:1e3,backgroundColor:_this.props.backgroundColor})},positioner:function(base){return _extends_1({},base,{zIndex:1001,top:_this.props.topMargin,"& button":{color:_this.props.foregroundColor}})},dialog:function(base){return _extends_1({},base,{zIndex:1002})}},_this.styles={view:function(base){return _extends_1({},base,{maxHeight:"calc(100vh - "+(200+_this.props.topMargin)+"px)",">img":{maxHeight:"inherit"}})},header:function(base){return _extends_1({},base,{width:"100%","&>span:nth-child(2)":{width:"100%",display:"flex ",justifyContent:"space-between"}})},navigation:function(base){return _extends_1({},base,{width:"100vw"})},navigationNext:function(base){return _extends_1({},base,{background:"transparent !important",opacity:.7,"&:hover":{opacity:1}})},footerCount:function(base){var display=1===_this.props.images.length&&"none";return _extends_1({},base,{color:_this.props.foregroundColor,display:display})}},_this}return inheritsLoose(Fullscreen,_React$Component),Fullscreen.prototype.render=function(){var _this$props=this.props,onClose=_this$props.onClose,index=_this$props.index,images=_this$props.images,isOpen=_this$props.isOpen;return React.createElement(Carousel.ModalGateway,null,isOpen?React.createElement(Carousel.Modal,{onClose:onClose,styles:this.modalStyles},React.createElement(Carousel__default,{views:images,currentIndex:index,components:{NavigationPrev:addChildTo(Carousel.carouselComponents.NavigationNext,SvgLeftArrow),NavigationNext:addChildTo(Carousel.carouselComponents.NavigationNext,SvgRightArrow),HeaderClose:addChildTo(Carousel.carouselComponents.HeaderClose,SvgClose),HeaderFullscreen:HeaderFullscreen},styles:this.styles})):null)},Fullscreen}(React.Component);Fullscreen.defaultProps={topMargin:0,backgroundColor:"#000",foregroundColor:"#fff"},module.exports=Fullscreen;
//# sourceMappingURL=module.cjs.js.map

@@ -1,2 +0,2 @@

import React from"react";import Carousel,{ModalGateway,Modal,carouselComponents}from"react-images";var module,_extends_1=(function(module){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}module.exports=_extends}(module={exports:{}},module.exports),module.exports);var inheritsLoose=function(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass};function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref=React.createElement("path",{d:"M.198 25.926l1.06 1.06 13.259-13.258L1.258.47.198 1.53l12.197 12.198z"}),SvgRightArrow=function(props){return React.createElement("svg",_extends({fill:"currentColor",width:15,height:27},props),_ref)};function _extends$1(){return(_extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$1=React.createElement("path",{d:"M14.258 1.53L13.198.47-.061 13.728l13.259 13.258 1.06-1.06L2.061 13.728z"}),SvgLeftArrow=function(props){return React.createElement("svg",_extends$1({fill:"currentColor",width:15,height:27},props),_ref$1)};function _extends$2(){return(_extends$2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$2=React.createElement("path",{d:"M271.74 256L507.854 19.888l-15.74-15.741L256 240.259 19.888 4.147 4.147 19.887 240.259 256 4.147 492.112l15.74 15.741L256 271.741l236.112 236.112 15.741-15.74L271.741 256z"}),SvgClose=function(props){return React.createElement("svg",_extends$2({fill:"currentColor",width:26,height:26,viewBox:"0 0 512 512"},props),_ref$2)};function _extends$3(){return(_extends$3=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$3=React.createElement("path",{d:"M15.071 8.371V4.585l-4.355 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.355h-3.786a.2.2 0 01-.2-.2V3.2c0-.11.09-.2.2-.2H16v5.371a.2.2 0 01-.2.2h-.529a.2.2 0 01-.2-.2zm-6.5 6.9v.529a.2.2 0 01-.2.2H3v-5.371c0-.11.09-.2.2-.2h.529c.11 0 .2.09.2.2v3.786l4.355-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283L4.585 15.07h3.786c.11 0 .2.09.2.2z"}),SvgExpand=function(props){return React.createElement("svg",_extends$3({width:38,viewBox:"0 0 19 19"},props),_ref$3)};function _extends$4(){return(_extends$4=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$4=React.createElement("path",{d:"M10.846 3.71v3.787l4.356-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283l-4.356 4.356h3.786c.11 0 .2.09.2.2v.528a.2.2 0 01-.2.2H9.918V3.711c0-.11.09-.2.2-.2h.528c.11 0 .2.09.2.2zm-7.335 6.936v-.528c0-.11.09-.2.2-.2h5.371v5.371a.2.2 0 01-.2.2h-.528a.2.2 0 01-.2-.2v-3.786l-4.356 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.356H3.711a.2.2 0 01-.2-.2z"}),SvgDecrease=function(props){return React.createElement("svg",_extends$4({width:38,viewBox:"0 0 19 19"},props),_ref$4)};function addChildTo(Comp,Child){return Comp.displayName=Comp.name,function(props){return React.createElement(Comp,props,React.createElement(Child,props.innerProps))}}function HeaderFullscreen(props){var isEnterFullscreen=0===props.innerProps.title.indexOf("Enter");return React.createElement(carouselComponents.HeaderFullscreen,props,isEnterFullscreen?React.createElement(SvgExpand,{width:"100%"}):React.createElement(SvgDecrease,null))}HeaderFullscreen.displayName="HeaderFullscreen";var Fullscreen=function(_React$Component){function Fullscreen(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).modalStyles={blanket:function(base){return _extends_1({},base,{zIndex:1e3,backgroundColor:_this.props.backgroundColor})},positioner:function(base){return _extends_1({},base,{zIndex:1001,top:_this.props.topMargin,"& button":{color:_this.props.foregroundColor}})},dialog:function(base){return _extends_1({},base,{zIndex:1002})}},_this.styles={view:function(base){return _extends_1({},base,{maxHeight:"calc(100vh - "+(200+_this.props.topMargin)+"px)",">img":{maxHeight:"inherit"}})},header:function(base){return _extends_1({},base,{width:"100%","&>span:nth-child(2)":{width:"100%",display:"flex ",justifyContent:"space-between"}})},navigation:function(base){return _extends_1({},base,{width:"100vw"})},navigationNext:function(base){return _extends_1({},base,{background:"transparent !important",opacity:.7,"&:hover":{opacity:1}})},footerCount:function(base){var display=1===_this.props.images.length&&"none";return _extends_1({},base,{color:_this.props.foregroundColor,display:display})}},_this}return inheritsLoose(Fullscreen,_React$Component),Fullscreen.prototype.render=function(){var _this$props=this.props,onClose=_this$props.onClose,index=_this$props.index,images=_this$props.images,isOpen=_this$props.isOpen;return React.createElement(ModalGateway,null,isOpen?React.createElement(Modal,{onClose:onClose,styles:this.modalStyles},React.createElement(Carousel,{views:images,currentIndex:index,components:{NavigationPrev:addChildTo(carouselComponents.NavigationNext,SvgLeftArrow),NavigationNext:addChildTo(carouselComponents.NavigationNext,SvgRightArrow),HeaderClose:addChildTo(carouselComponents.HeaderClose,SvgClose),HeaderFullscreen:HeaderFullscreen},styles:this.styles})):null)},Fullscreen}(React.Component);Fullscreen.defaultProps={topMargin:0,backgroundColor:"#000",foregroundColor:"#fff"};export default Fullscreen;
import React from"react";import Carousel,{ModalGateway,Modal,carouselComponents}from"react-images";var _extends_1=function(fn,module){return fn(module={exports:{}},module.exports),module.exports}((function(module){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}module.exports=_extends}));var inheritsLoose=function(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass};function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref=React.createElement("path",{d:"M.198 25.926l1.06 1.06 13.259-13.258L1.258.47.198 1.53l12.197 12.198z"}),SvgRightArrow=function(props){return React.createElement("svg",_extends({fill:"currentColor",width:15,height:27},props),_ref)};function _extends$1(){return(_extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$1=React.createElement("path",{d:"M14.258 1.53L13.198.47-.061 13.728l13.259 13.258 1.06-1.06L2.061 13.728z"}),SvgLeftArrow=function(props){return React.createElement("svg",_extends$1({fill:"currentColor",width:15,height:27},props),_ref$1)};function _extends$2(){return(_extends$2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$2=React.createElement("path",{d:"M271.74 256L507.854 19.888l-15.74-15.741L256 240.259 19.888 4.147 4.147 19.887 240.259 256 4.147 492.112l15.74 15.741L256 271.741l236.112 236.112 15.741-15.74L271.741 256z"}),SvgClose=function(props){return React.createElement("svg",_extends$2({fill:"currentColor",width:26,height:26,viewBox:"0 0 512 512"},props),_ref$2)};function _extends$3(){return(_extends$3=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$3=React.createElement("path",{d:"M15.071 8.371V4.585l-4.355 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.355h-3.786a.2.2 0 01-.2-.2V3.2c0-.11.09-.2.2-.2H16v5.371a.2.2 0 01-.2.2h-.529a.2.2 0 01-.2-.2zm-6.5 6.9v.529a.2.2 0 01-.2.2H3v-5.371c0-.11.09-.2.2-.2h.529c.11 0 .2.09.2.2v3.786l4.355-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283L4.585 15.07h3.786c.11 0 .2.09.2.2z"}),SvgExpand=function(props){return React.createElement("svg",_extends$3({width:38,viewBox:"0 0 19 19"},props),_ref$3)};function _extends$4(){return(_extends$4=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}var _ref$4=React.createElement("path",{d:"M10.846 3.71v3.787l4.356-4.356a.2.2 0 01.283 0l.374.374a.2.2 0 010 .283l-4.356 4.356h3.786c.11 0 .2.09.2.2v.528a.2.2 0 01-.2.2H9.918V3.711c0-.11.09-.2.2-.2h.528c.11 0 .2.09.2.2zm-7.335 6.936v-.528c0-.11.09-.2.2-.2h5.371v5.371a.2.2 0 01-.2.2h-.528a.2.2 0 01-.2-.2v-3.786l-4.356 4.356a.2.2 0 01-.283 0l-.374-.374a.2.2 0 010-.283l4.356-4.356H3.711a.2.2 0 01-.2-.2z"}),SvgDecrease=function(props){return React.createElement("svg",_extends$4({width:38,viewBox:"0 0 19 19"},props),_ref$4)};function addChildTo(Comp,Child){return Comp.displayName=Comp.name,function(props){return React.createElement(Comp,props,React.createElement(Child,props.innerProps))}}function HeaderFullscreen(props){var isEnterFullscreen=0===props.innerProps.title.indexOf("Enter");return React.createElement(carouselComponents.HeaderFullscreen,props,isEnterFullscreen?React.createElement(SvgExpand,{width:"100%"}):React.createElement(SvgDecrease,null))}HeaderFullscreen.displayName="HeaderFullscreen";var Fullscreen=function(_React$Component){function Fullscreen(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).modalStyles={blanket:function(base){return _extends_1({},base,{zIndex:1e3,backgroundColor:_this.props.backgroundColor})},positioner:function(base){return _extends_1({},base,{zIndex:1001,top:_this.props.topMargin,"& button":{color:_this.props.foregroundColor}})},dialog:function(base){return _extends_1({},base,{zIndex:1002})}},_this.styles={view:function(base){return _extends_1({},base,{maxHeight:"calc(100vh - "+(200+_this.props.topMargin)+"px)",">img":{maxHeight:"inherit"}})},header:function(base){return _extends_1({},base,{width:"100%","&>span:nth-child(2)":{width:"100%",display:"flex ",justifyContent:"space-between"}})},navigation:function(base){return _extends_1({},base,{width:"100vw"})},navigationNext:function(base){return _extends_1({},base,{background:"transparent !important",opacity:.7,"&:hover":{opacity:1}})},footerCount:function(base){var display=1===_this.props.images.length&&"none";return _extends_1({},base,{color:_this.props.foregroundColor,display:display})}},_this}return inheritsLoose(Fullscreen,_React$Component),Fullscreen.prototype.render=function(){var _this$props=this.props,onClose=_this$props.onClose,index=_this$props.index,images=_this$props.images,isOpen=_this$props.isOpen;return React.createElement(ModalGateway,null,isOpen?React.createElement(Modal,{onClose:onClose,styles:this.modalStyles},React.createElement(Carousel,{views:images,currentIndex:index,components:{NavigationPrev:addChildTo(carouselComponents.NavigationNext,SvgLeftArrow),NavigationNext:addChildTo(carouselComponents.NavigationNext,SvgRightArrow),HeaderClose:addChildTo(carouselComponents.HeaderClose,SvgClose),HeaderFullscreen:HeaderFullscreen},styles:this.styles})):null)},Fullscreen}(React.Component);Fullscreen.defaultProps={topMargin:0,backgroundColor:"#000",foregroundColor:"#fff"};export default Fullscreen;
//# sourceMappingURL=module.js.map
{
"name": "wix-rich-content-fullscreen",
"version": "6.8.5",
"version": "6.8.6",
"author": {

@@ -51,7 +51,7 @@ "name": "Shaul Goral",

"react-dom": "16.6.3",
"rollup": "1.20.3"
"rollup": "1.31.1"
},
"dependencies": {
"react-images": "1.0.0",
"wix-rich-content-common": "6.8.5"
"wix-rich-content-common": "6.8.6"
},

@@ -58,0 +58,0 @@ "unpkg": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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