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

@front10/basic-widget

Package Overview
Dependencies
Maintainers
5
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@front10/basic-widget - npm Package Compare versions

Comparing version 0.6.1-alpha.6 to 0.9.0-alpha.0

13

dist/basic-widget.cjs.development.js

@@ -176,5 +176,14 @@ 'use strict';

var Embed = function Embed(_ref) {
var props = _objectWithoutPropertiesLoose(_ref, ["align", "width", "height", "ref"]);
var _ref$width = _ref.width,
width = _ref$width === void 0 ? "100%" : _ref$width,
_ref$height = _ref.height,
height = _ref$height === void 0 ? "auto" : _ref$height,
ref = _ref.ref,
props = _objectWithoutPropertiesLoose(_ref, ["width", "height", "ref"]);
return React.createElement(baseElements.Embed, Object.assign({}, props));
return React.createElement(baseElements.Embed, Object.assign({
height: height,
width: width,
ref: ref
}, props));
};

@@ -181,0 +190,0 @@

2

dist/basic-widget.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@front10/base-elements"),t=require("react"),n=require("@front10/container-elements");function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)t.indexOf(n=a[i])>=0||(r[n]=e[n]);return r}var a=function(n){var a=n.level,o=void 0===a?2:a,c=n.content,g=void 0===c?"":c,l=n.sx,s=r(n,["level","content","sx"]),d="h2",u="fontSize2";return 0===o||"0"===o?d="span":o>=0&&o<7&&(d="h"+o,u="fontSize"+o),t.createElement(e.Heading,Object.assign({variant:u,color:"coverHeading",sx:i({width:"100%"},l)},s,{as:d}),g)},o={cover:function(n){var i=n.src,o=n.backgroundColor,c=void 0===o?"white":o,g=n.backgroundPosition,l=void 0===g?"center":g,s=n.content,d=void 0===s?"":s,u=n.width,h=void 0===u?"100%":u,v=n.height,f=void 0===v?"400px":v,m=n.heading,b=n.align,p=void 0===b?"center":b,x=n.alignY,O=void 0===x?"center":x,j=n.opacity,k=void 0===j?.5:j,y=n.container,w=r(n,["src","backgroundColor","backgroundPosition","content","width","height","heading","align","alignY","opacity","container"]);return t.createElement(e.Inline,Object.assign({variant:"layout.container",m:"0"},y,{as:"figure"}),t.createElement(e.Inline,Object.assign({align:p,alignY:O,sx:{position:"relative",backgroundImage:'url("'+i+'")',backgroundColor:c,backgroundSize:"cover",backgroundPosition:l,width:h,height:f,"::before":{position:"absolute",right:0,left:0,top:0,bottom:0,minHeight:"inherit","background-color":"inherit","z-index":1,content:'""',opacity:k},"::after":{display:"block",minHeight:"inherit","font-size":0,content:"none"}}},w),t.createElement(e.Box,{sx:{zIndex:1}},t.createElement(a,Object.assign({content:d,textAlign:p,p:"1",variant:"layout.heading"},m)))))},heading:a,html:e.CustomHtml,paragraph:e.Paragraph,image:function(n){var a=n.width,o=n.height,c=n.sx,g=r(n,["align","width","height","sx","ref"]);return t.createElement(e.Image,Object.assign({},g,{sx:i({width:a,height:o},c)}))},quote:e.Quote,video:function(n){var a=n.width,o=n.height,c=n.sx,g=r(n,["align","width","height","sx","ref"]);return t.createElement(e.Video,Object.assign({},g,{sx:i({width:a,height:o},c)}))},embed:function(n){var i=r(n,["align","width","height","ref"]);return t.createElement(e.Embed,Object.assign({},i))},"link-button":function(n){var i=r(n,["align"]);return t.createElement(e.LinkButton,Object.assign({},i))},separator:e.Separator,box:e.Box,inline:e.Inline,grid:e.Grid,stack:e.Stack};function c(n){var i=n.container,a=function e(n){var i=n.type,a=n.settings,c=a.children,g=r(a,["children"]),l=o[i];return c?t.createElement(l,Object.assign({},g),c.map((function(t){return e(t)}))):t.createElement(l,Object.assign({},g))}(r(n,["container"]));return t.createElement(e.Inline,Object.assign({ml:"auto",mr:"auto",variant:"layout.container"},i),a)}exports.BasicWidget=n.withContainer(c,{layout:{container:{display:"flex"},quote:{variant:"text.fontSize4",paddingTop:2,paddingBottom:2,paddingLeft:4,paddingRight:4,marginBottom:4,margin:0,p:{marginBottom:3}},footer:{color:"softColor"}}});
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@front10/base-elements"),t=require("react"),n=require("@front10/container-elements");function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t.indexOf(n=o[i])>=0||(r[n]=e[n]);return r}var o=function(n){var o=n.level,a=void 0===o?2:o,c=n.content,g=void 0===c?"":c,l=n.sx,s=r(n,["level","content","sx"]),d="h2",h="fontSize2";return 0===a||"0"===a?d="span":a>=0&&a<7&&(d="h"+a,h="fontSize"+a),t.createElement(e.Heading,Object.assign({variant:h,color:"coverHeading",sx:i({width:"100%"},l)},s,{as:d}),g)},a={cover:function(n){var i=n.src,a=n.backgroundColor,c=void 0===a?"white":a,g=n.backgroundPosition,l=void 0===g?"center":g,s=n.content,d=void 0===s?"":s,h=n.width,u=void 0===h?"100%":h,v=n.height,f=void 0===v?"400px":v,m=n.heading,b=n.align,p=void 0===b?"center":b,x=n.alignY,O=void 0===x?"center":x,w=n.opacity,j=void 0===w?.5:w,k=n.container,y=r(n,["src","backgroundColor","backgroundPosition","content","width","height","heading","align","alignY","opacity","container"]);return t.createElement(e.Inline,Object.assign({variant:"layout.container",m:"0"},k,{as:"figure"}),t.createElement(e.Inline,Object.assign({align:p,alignY:O,sx:{position:"relative",backgroundImage:'url("'+i+'")',backgroundColor:c,backgroundSize:"cover",backgroundPosition:l,width:u,height:f,"::before":{position:"absolute",right:0,left:0,top:0,bottom:0,minHeight:"inherit","background-color":"inherit","z-index":1,content:'""',opacity:j},"::after":{display:"block",minHeight:"inherit","font-size":0,content:"none"}}},y),t.createElement(e.Box,{sx:{zIndex:1}},t.createElement(o,Object.assign({content:d,textAlign:p,p:"1",variant:"layout.heading"},m)))))},heading:o,html:e.CustomHtml,paragraph:e.Paragraph,image:function(n){var o=n.width,a=n.height,c=n.sx,g=r(n,["align","width","height","sx","ref"]);return t.createElement(e.Image,Object.assign({},g,{sx:i({width:o,height:a},c)}))},quote:e.Quote,video:function(n){var o=n.width,a=n.height,c=n.sx,g=r(n,["align","width","height","sx","ref"]);return t.createElement(e.Video,Object.assign({},g,{sx:i({width:o,height:a},c)}))},embed:function(n){var i=n.width,o=void 0===i?"100%":i,a=n.height,c=void 0===a?"auto":a,g=n.ref,l=r(n,["width","height","ref"]);return t.createElement(e.Embed,Object.assign({height:c,width:o,ref:g},l))},"link-button":function(n){var i=r(n,["align"]);return t.createElement(e.LinkButton,Object.assign({},i))},separator:e.Separator,box:e.Box,inline:e.Inline,grid:e.Grid,stack:e.Stack};function c(n){var i=n.container,o=function e(n){var i=n.type,o=n.settings,c=o.children,g=r(o,["children"]),l=a[i];return c?t.createElement(l,Object.assign({},g),c.map((function(t){return e(t)}))):t.createElement(l,Object.assign({},g))}(r(n,["container"]));return t.createElement(e.Inline,Object.assign({ml:"auto",mr:"auto",variant:"layout.container"},i),o)}exports.BasicWidget=n.withContainer(c,{layout:{container:{display:"flex"},quote:{variant:"text.fontSize4",paddingTop:2,paddingBottom:2,paddingLeft:4,paddingRight:4,marginBottom:4,margin:0,p:{marginBottom:3}},footer:{color:"softColor"}}});
//# sourceMappingURL=basic-widget.cjs.production.min.js.map

@@ -172,5 +172,14 @@ import { Heading as Heading$1, Inline, Box, Image as Image$1, Video as Video$1, LinkButton as LinkButton$1, Embed as Embed$1, CustomHtml, Paragraph, Quote, Separator, Grid, Stack } from '@front10/base-elements';

var Embed = function Embed(_ref) {
var props = _objectWithoutPropertiesLoose(_ref, ["align", "width", "height", "ref"]);
var _ref$width = _ref.width,
width = _ref$width === void 0 ? "100%" : _ref$width,
_ref$height = _ref.height,
height = _ref$height === void 0 ? "auto" : _ref$height,
ref = _ref.ref,
props = _objectWithoutPropertiesLoose(_ref, ["width", "height", "ref"]);
return createElement(Embed$1, Object.assign({}, props));
return createElement(Embed$1, Object.assign({
height: height,
width: width,
ref: ref
}, props));
};

@@ -177,0 +186,0 @@

@@ -9,3 +9,3 @@ /// <reference types="react" />

export declare type ParagraphProps = CustomProps & BaseProps;
export declare const Embed: ({ align, width, height, ref, ...props }: ParagraphProps) => JSX.Element;
export declare const Embed: ({ width, height, ref, ...props }: ParagraphProps) => JSX.Element;
export {};
{
"version": "0.6.1-alpha.6+28ae66c",
"version": "0.9.0-alpha.0",
"license": "",

@@ -40,7 +40,7 @@ "main": "dist/index.js",

"dependencies": {
"@front10/base-elements": "^0.6.1-alpha.6+28ae66c",
"@front10/container-elements": "^0.6.1-alpha.6+28ae66c",
"@front10/utils": "^0.8.0"
"@front10/base-elements": "^0.9.0-alpha.0",
"@front10/container-elements": "^0.9.0-alpha.0",
"@front10/utils": "^0.9.0-alpha.0"
},
"gitHead": "28ae66c5e6bda2e3025a2df43d74829b345af9b3"
"gitHead": "34254d65bfc026b871cf80156b2430c1d3c6a906"
}

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