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

@saltcorn/markup

Package Overview
Dependencies
Maintainers
1
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saltcorn/markup - npm Package Compare versions

Comparing version 0.6.0-alpha.0 to 0.6.0-beta.0

8

builder.js

@@ -44,2 +44,10 @@ const {

}),
link({
rel: "stylesheet",
type: "text/css",
media: "screen",
href: version_tag
? `/static_assets/${version_tag}/saltcorn-builder.css`
: "/saltcorn-builder.css",
}),
div({ id: "saltcorn-builder" }),

@@ -46,0 +54,0 @@ form(

4

form.js

@@ -107,3 +107,3 @@ const {

)}" name="${text_attr(name)}" id="input${text_attr(name)}">${text(
v[hdr.form_name]
v[hdr.form_name] || ""
)}</textarea>`;

@@ -118,3 +118,3 @@ case "code":

)}" name="${text_attr(name)}" id="input${text_attr(name)}">${
v[hdr.form_name]
v[hdr.form_name] || ""
}</textarea>`;

@@ -121,0 +121,0 @@ case "file":

@@ -285,2 +285,3 @@ const { contract, is } = require("contractis");

block,
display,
imageSize,

@@ -311,2 +312,3 @@ borderWidth,

rotate,
style,
} = segment;

@@ -328,3 +330,4 @@ if (hide) return "";

const ppCustomCSS = (s) => (s ? s.split("\n").join("") + ";" : "");
const baseDisplayClass = block === false ? "inline-block" : "block";
const baseDisplayClass =
block === false ? "inline-block" : display ? display : "block";
let displayClass = minScreenWidth

@@ -342,2 +345,6 @@ ? `d-none d-${minScreenWidth}-${baseDisplayClass}`

: `${what}: ${segment[what].map((p) => p + "px").join(" ")};`;
let flexStyles = "";
Object.keys(style || {}).forEach((k) => {
flexStyles += `${k}:${style[k]};`;
});
return wrap(

@@ -364,3 +371,3 @@ segment,

style: `${ppCustomCSS(customCSS || "")}${sizeProp(
style: `${flexStyles}${ppCustomCSS(customCSS || "")}${sizeProp(
"minHeight",

@@ -367,0 +374,0 @@ "min-height"

{
"name": "@saltcorn/markup",
"version": "0.6.0-alpha.0",
"version": "0.6.0-beta.0",
"description": "Markup for Saltcorn, open-source no-code platform",

@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com",

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