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
401
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.3.5 to 0.4.0-beta.1

14

form.js

@@ -401,7 +401,7 @@ const {

const csrfField = `<input type="hidden" name="_csrf" value="${csrfToken}">`;
const top = `<form action="${form.action}" class="form-namespace ${
form.class || ""
}" method="${form.methodGET ? "get" : "post"}" ${
hasFile ? 'encType="multipart/form-data"' : ""
}>`;
const top = `<form action="${form.action}" ${
form.onChange ? ` onchange="${form.onChange}"` : ""
}class="form-namespace ${form.class || ""}" method="${
form.methodGET ? "get" : "post"
}" ${hasFile ? 'encType="multipart/form-data"' : ""}>`;
const blurbp = form.blurb

@@ -449,3 +449,5 @@ ? Array.isArray(form.blurb)

form.action
}" class="form-namespace ${form.isStateForm ? "stateForm" : ""} ${
}" ${
form.onChange ? ` onchange="${form.onChange}"` : ""
}class="form-namespace ${form.isStateForm ? "stateForm" : ""} ${
form.class || ""

@@ -452,0 +454,0 @@ }" method="${form.methodGET ? "get" : "post"}" ${

@@ -159,2 +159,26 @@ const {

const standardBreadcrumbItem = len =>({ href, text }, ix) =>
li(
{
class: ["breadcrumb-item", ix == len - 1 && "active"],
"aria-current": ix == len - 1 && "page",
},
href ? a({ href }, text) : text
);
const workflowBreadcrumbItem = ({ workflow, step }) =>
workflow.steps
.map((wfstep, ix) =>
li(
{
class: [
"breadcrumb-item breadcrumb-workflow",
step.currentStep - 1 === ix && "active-step font-weight-bold",
],
},
span(wfstep.name)
)
)
.join("");
const breadcrumbs = (crumbs) =>

@@ -165,10 +189,4 @@ nav(

{ class: "breadcrumb" },
crumbs.map(({ href, text }, ix) =>
li(
{
class: ["breadcrumb-item", ix == crumbs.length - 1 && "active"],
"aria-current": ix == crumbs.length - 1 && "page",
},
href ? a({ href }, text) : text
)
crumbs.map((c) =>
c.workflow ? workflowBreadcrumbItem(c) : standardBreadcrumbItem(crumbs.length)(c)
)

@@ -175,0 +193,0 @@ )

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

li,
i
} = require("./tags");

@@ -220,5 +221,7 @@ const { alert, breadcrumbs } = require("./layout_utils");

href: segment.url,
class: [segment.link_style || "", segment.link_size || ""],
target: segment.target_blank ? "_blank" : false,
rel: segment.nofollow ? "nofollow" : false,
},
segment.link_icon ? i({ class: segment.link_icon }) + "&nbsp;" : "",
segment.text

@@ -225,0 +228,0 @@ )

{
"name": "@saltcorn/markup",
"version": "0.3.5",
"version": "0.4.0-beta.1",
"description": "Markup for Saltcorn, open-source no-code platform",

@@ -27,3 +27,3 @@ "homepage": "https://saltcorn.com",

},
"gitHead": "bccf293434cda0495f003d8c600b37d8f584d931"
"gitHead": "4261170a4df9b6b19b280d22aa0d7125e0edd569"
}
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