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

nib-schema

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nib-schema - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

index.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.schema={})}(this,function(t){"use strict";var e=["em",0],r=["s",0],n=["strong",0],o=["u",0],a={em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:function(){return e}},link:{attrs:{href:{}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(t){return{href:t.getAttribute("href")}}}],toDOM:function(t){return["a",t.attrs,0]}},strike:{parseDOM:[{tag:"strike"},{tag:"s"},{tag:"del"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t&&null}}],toDOM:function(){return r}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:function(t){return"normal"!=t.style.fontWeight&&null}},{style:"font-weight",getAttrs:function(t){return/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}}],toDOM:function(){return n}},underline:{parseDOM:[{tag:"u"},{style:"text-decoration: underline"}],toDOM:function(){return o}}},i=["ul",0],s=["li",0],l=["ol",0],u=["p",0],g={bulletList:{content:"listItem+",parseDOM:[{tag:"ul"}],group:"block",toDOM:function(){return i}},doc:{content:"block+",group:"block"},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:function(t){return["h"+t.attrs.level,0]}},image:{group:"inline",inline:!0,attrs:{src:{default:""}},draggable:!0,parseDOM:[{tag:'img[src^="data:image/"]',ignore:!0},{tag:"img[src]",getAttrs:function(t){return{src:t.getAttribute("src")}}}],toDOM:function(t){return["img",t.attrs]}},listItem:{content:"(paragraph | heading){1} (paragraph | heading | orderedList | bulletList)*",group:"block",parseDOM:[{tag:"li"}],toDOM:function(){return s},defining:!0},orderedList:{content:"listItem+",attrs:{order:{default:1}},group:"block",parseDOM:[{tag:"ol",getAttrs:function(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1}}}],toDOM:function(t){return 1==t.attrs.order?l:["ol",{start:t.attrs.order},0]}},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:function(){return u}},text:{group:"inline"}};t.marks=a,t.nodes=g,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.schema={})}(this,function(t){"use strict";var e=["em",0],r=["s",0],n=["strong",0],a=["u",0],o={em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:function(){return e}},link:{attrs:{href:{}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(t){return{href:t.getAttribute("href")}}}],toDOM:function(t){return["a",t.attrs,0]}},strike:{parseDOM:[{tag:"strike"},{tag:"s"},{tag:"del"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t&&null}}],toDOM:function(){return r}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:function(t){return"normal"!=t.style.fontWeight&&null}},{style:"font-weight",getAttrs:function(t){return/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}}],toDOM:function(){return n}},subsup:{inclusive:!0,attrs:{type:{default:"sub"}},parseDOM:[{tag:"sub",attrs:{type:"sub"}},{tag:"sup",attrs:{type:"sup"}}],toDOM:function(t){return[t.attrs.type]}},underline:{parseDOM:[{tag:"u"},{style:"text-decoration: underline"}],toDOM:function(){return a}}},s=["ul",0],i=["li",0],u=["ol",0],l=["p",0],g={bulletList:{content:"listItem+",parseDOM:[{tag:"ul"}],group:"block",toDOM:function(){return s}},doc:{content:"block+",group:"block"},heading:{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:function(t){return["h"+t.attrs.level,0]}},image:{group:"inline",inline:!0,attrs:{src:{default:""}},draggable:!0,parseDOM:[{tag:'img[src^="data:image/"]',ignore:!0},{tag:"img[src]",getAttrs:function(t){return{src:t.getAttribute("src")}}}],toDOM:function(t){return["img",t.attrs]}},listItem:{content:"(paragraph | heading){1} (paragraph | heading | orderedList | bulletList)*",group:"block",parseDOM:[{tag:"li"}],toDOM:function(){return i},defining:!0},orderedList:{content:"listItem+",attrs:{order:{default:1}},group:"block",parseDOM:[{tag:"ol",getAttrs:function(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1}}}],toDOM:function(t){return 1==t.attrs.order?u:["ol",{start:t.attrs.order},0]}},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:function(){return l}},text:{group:"inline"}};t.marks=o,t.nodes=g,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "nib-schema",
"version": "0.1.2",
"version": "0.1.3",
"description": "Schema declaration for Nib editor",

@@ -5,0 +5,0 @@ "main": "./index.js",

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