diff --git a/.nyc_output/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json b/.nyc_output/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json new file mode 100644 index 0000000..2bf4e2e --- /dev/null +++ b/.nyc_output/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json @@ -0,0 +1 @@ +{"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":14},"end":{"line":2,"column":30}},"2":{"start":{"line":3,"column":22},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":27},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":25},"end":{"line":5,"column":54}},"5":{"start":{"line":6,"column":19},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":10},"end":{"line":7,"column":27}},"7":{"start":{"line":8,"column":23},"end":{"line":8,"column":50}},"8":{"start":{"line":9,"column":18},"end":{"line":9,"column":48}},"9":{"start":{"line":11,"column":0},"end":{"line":30,"column":1}},"10":{"start":{"line":12,"column":17},"end":{"line":12,"column":32}},"11":{"start":{"line":14,"column":25},"end":{"line":18,"column":20}},"12":{"start":{"line":19,"column":21},"end":{"line":19,"column":56}},"13":{"start":{"line":21,"column":4},"end":{"line":21,"column":61}},"14":{"start":{"line":22,"column":22},"end":{"line":22,"column":41}},"15":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"16":{"start":{"line":25,"column":8},"end":{"line":25,"column":19}},"17":{"start":{"line":28,"column":22},"end":{"line":28,"column":84}},"18":{"start":{"line":29,"column":4},"end":{"line":29,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":17},"end":{"line":11,"column":18}},"loc":{"start":{"line":11,"column":31},"end":{"line":30,"column":1}},"line":11}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},{"start":{"line":24,"column":4},"end":{"line":26,"column":5}}],"line":24}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":6,"11":6,"12":6,"13":6,"14":6,"15":6,"16":2,"17":4,"18":4},"f":{"0":6},"b":{"0":[2,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"be09b971d38be9da243192a116daa078c3c32919","contentHash":"c26653e734515662c5566364e8d65f9258f0fa295a35393c4a9ecf7fe2cf924b"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":25},"end":{"line":2,"column":47}},"2":{"start":{"line":3,"column":10},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":30},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":24},"end":{"line":5,"column":52}},"5":{"start":{"line":6,"column":14},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":17},"end":{"line":7,"column":46}},"7":{"start":{"line":9,"column":0},"end":{"line":41,"column":1}},"8":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"9":{"start":{"line":10,"column":27},"end":{"line":10,"column":29}},"10":{"start":{"line":12,"column":4},"end":{"line":34,"column":6}},"11":{"start":{"line":13,"column":37},"end":{"line":13,"column":69}},"12":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"13":{"start":{"line":16,"column":12},"end":{"line":16,"column":18}},"14":{"start":{"line":19,"column":22},"end":{"line":19,"column":54}},"15":{"start":{"line":20,"column":28},"end":{"line":20,"column":56}},"16":{"start":{"line":21,"column":22},"end":{"line":21,"column":38}},"17":{"start":{"line":22,"column":24},"end":{"line":22,"column":43}},"18":{"start":{"line":23,"column":22},"end":{"line":29,"column":10}},"19":{"start":{"line":30,"column":8},"end":{"line":30,"column":34}},"20":{"start":{"line":32,"column":8},"end":{"line":32,"column":26}},"21":{"start":{"line":33,"column":8},"end":{"line":33,"column":28}},"22":{"start":{"line":36,"column":22},"end":{"line":39,"column":16}},"23":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"24":{"start":{"line":40,"column":4},"end":{"line":40,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":23},"end":{"line":9,"column":24}},"loc":{"start":{"line":9,"column":39},"end":{"line":41,"column":1}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":34},"end":{"line":34,"column":5}},"line":12},"3":{"name":"(anonymous_3)","decl":{"start":{"line":38,"column":13},"end":{"line":38,"column":14}},"loc":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"line":38}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},{"start":{"line":15,"column":8},"end":{"line":17,"column":9}}],"line":15},"1":{"loc":{"start":{"line":19,"column":38},"end":{"line":19,"column":53}},"type":"binary-expr","locations":[{"start":{"line":19,"column":38},"end":{"line":19,"column":47}},{"start":{"line":19,"column":51},"end":{"line":19,"column":53}}],"line":19}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":6,"9":6,"10":6,"11":12,"12":12,"13":2,"14":10,"15":10,"16":10,"17":10,"18":10,"19":10,"20":10,"21":10,"22":6,"23":4,"24":6},"f":{"0":6,"1":6,"2":12,"3":4},"b":{"0":[2,10],"1":[10,6]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1a15011a7b2a1ef776f0b9694b2f10b1e89ff71c","contentHash":"87b46e7f4ca2e33689ebde2735880b64d51879d899482458fb2fc4b2b7134cea"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},"1":{"start":{"line":2,"column":20},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},"loc":{"start":{"line":1,"column":29},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":42},"end":{"line":2,"column":54}},"type":"binary-expr","locations":[{"start":{"line":2,"column":42},"end":{"line":2,"column":48}},{"start":{"line":2,"column":52},"end":{"line":2,"column":54}}],"line":2},"1":{"loc":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"type":"cond-expr","locations":[{"start":{"line":3,"column":35},"end":{"line":3,"column":51}},{"start":{"line":3,"column":54},"end":{"line":3,"column":56}}],"line":3}},"s":{"0":1,"1":12,"2":12,"3":12},"f":{"0":12},"b":{"0":[12,1],"1":[10,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c5ed49f9a7658c662177485b7e8a6759661eefd6","contentHash":"8a63314bcde4e0482f2692157e2ac766185e8e810a4718e0e1a4610e0b66004b"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js","statementMap":{"0":{"start":{"line":1,"column":10},"end":{"line":1,"column":27}},"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":1}},"2":{"start":{"line":4,"column":18},"end":{"line":4,"column":53}},"3":{"start":{"line":5,"column":4},"end":{"line":5,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":29},"end":{"line":6,"column":1}},"line":3}},"branchMap":{},"s":{"0":1,"1":1,"2":10,"3":10},"f":{"0":10},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a6a132a81758c2a46f811be907e2dcafd166b863","contentHash":"75b6ffaa5a3f3c0b0622805b34606149bb283c1db2f6cd404304229378445102"}} \ No newline at end of file diff --git a/.nyc_output/af1ec70e-963f-4773-bcd3-ad17a7378c43.json b/.nyc_output/af1ec70e-963f-4773-bcd3-ad17a7378c43.json new file mode 100644 index 0000000..7243ac4 --- /dev/null +++ b/.nyc_output/af1ec70e-963f-4773-bcd3-ad17a7378c43.json @@ -0,0 +1 @@ +{"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":19},"end":{"line":2,"column":43}},"2":{"start":{"line":3,"column":21},"end":{"line":3,"column":48}},"3":{"start":{"line":4,"column":27},"end":{"line":4,"column":58}},"4":{"start":{"line":5,"column":25},"end":{"line":5,"column":54}},"5":{"start":{"line":6,"column":28},"end":{"line":6,"column":60}},"6":{"start":{"line":7,"column":31},"end":{"line":7,"column":66}},"7":{"start":{"line":9,"column":0},"end":{"line":22,"column":1}},"8":{"start":{"line":10,"column":21},"end":{"line":17,"column":40}},"9":{"start":{"line":19,"column":17},"end":{"line":19,"column":64}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":15}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":32},"end":{"line":22,"column":1}},"line":9}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"f":{"0":0},"b":{},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":10},"end":{"line":2,"column":34}},"2":{"start":{"line":3,"column":10},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":30},"end":{"line":4,"column":71}},"4":{"start":{"line":6,"column":22},"end":{"line":9,"column":1}},"5":{"start":{"line":7,"column":17},"end":{"line":7,"column":38}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":32}},"7":{"start":{"line":11,"column":0},"end":{"line":28,"column":1}},"8":{"start":{"line":11,"column":32},"end":{"line":28,"column":1}},"9":{"start":{"line":12,"column":35},"end":{"line":12,"column":44}},"10":{"start":{"line":14,"column":4},"end":{"line":27,"column":6}},"11":{"start":{"line":15,"column":42},"end":{"line":15,"column":74}},"12":{"start":{"line":16,"column":35},"end":{"line":16,"column":75}},"13":{"start":{"line":17,"column":33},"end":{"line":17,"column":68}},"14":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"15":{"start":{"line":20,"column":12},"end":{"line":20,"column":18}},"16":{"start":{"line":23,"column":25},"end":{"line":23,"column":76}},"17":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"18":{"start":{"line":25,"column":8},"end":{"line":25,"column":48}},"19":{"start":{"line":26,"column":8},"end":{"line":26,"column":24}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":22},"end":{"line":6,"column":23}},"loc":{"start":{"line":6,"column":56},"end":{"line":9,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":17},"end":{"line":11,"column":18}},"loc":{"start":{"line":11,"column":32},"end":{"line":28,"column":1}},"line":11},"2":{"name":"(anonymous_2)","decl":{"start":{"line":11,"column":32},"end":{"line":11,"column":33}},"loc":{"start":{"line":11,"column":48},"end":{"line":28,"column":1}},"line":11},"3":{"name":"(anonymous_3)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":49},"end":{"line":27,"column":5}},"line":14}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":33},"end":{"line":17,"column":68}},"type":"binary-expr","locations":[{"start":{"line":17,"column":33},"end":{"line":17,"column":45}},{"start":{"line":17,"column":49},"end":{"line":17,"column":68}}],"line":17},"1":{"loc":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},{"start":{"line":19,"column":8},"end":{"line":21,"column":9}}],"line":19}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0},"f":{"0":0,"1":0,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0]},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":30},"end":{"line":2,"column":71}},"2":{"start":{"line":4,"column":0},"end":{"line":12,"column":1}},"3":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"4":{"start":{"line":5,"column":4},"end":{"line":11,"column":6}},"5":{"start":{"line":6,"column":29},"end":{"line":6,"column":61}},"6":{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},"7":{"start":{"line":9,"column":12},"end":{"line":9,"column":28}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":23},"end":{"line":4,"column":24}},"loc":{"start":{"line":4,"column":39},"end":{"line":12,"column":1}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":5,"column":24},"end":{"line":5,"column":25}},"loc":{"start":{"line":5,"column":34},"end":{"line":11,"column":5}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},"type":"if","locations":[{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},{"start":{"line":8,"column":8},"end":{"line":10,"column":9}}],"line":8}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0]},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js","statementMap":{"0":{"start":{"line":1,"column":15},"end":{"line":1,"column":43}},"1":{"start":{"line":2,"column":10},"end":{"line":2,"column":27}},"2":{"start":{"line":4,"column":0},"end":{"line":12,"column":1}},"3":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"4":{"start":{"line":5,"column":4},"end":{"line":11,"column":6}},"5":{"start":{"line":6,"column":28},"end":{"line":6,"column":48}},"6":{"start":{"line":7,"column":22},"end":{"line":7,"column":52}},"7":{"start":{"line":8,"column":30},"end":{"line":8,"column":54}},"8":{"start":{"line":10,"column":8},"end":{"line":10,"column":43}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":23},"end":{"line":4,"column":24}},"loc":{"start":{"line":4,"column":39},"end":{"line":12,"column":1}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":18}},"loc":{"start":{"line":5,"column":27},"end":{"line":11,"column":5}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":15},"end":{"line":10,"column":43}},"type":"binary-expr","locations":[{"start":{"line":10,"column":15},"end":{"line":10,"column":26}},{"start":{"line":10,"column":30},"end":{"line":10,"column":43}}],"line":10}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0]},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js","statementMap":{"0":{"start":{"line":1,"column":10},"end":{"line":1,"column":34}},"1":{"start":{"line":3,"column":0},"end":{"line":7,"column":1}},"2":{"start":{"line":4,"column":4},"end":{"line":6,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":30},"end":{"line":7,"column":1}},"line":3}},"branchMap":{},"s":{"0":0,"1":0,"2":0},"f":{"0":0},"b":{},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js","statementMap":{"0":{"start":{"line":1,"column":17},"end":{"line":1,"column":53}},"1":{"start":{"line":3,"column":0},"end":{"line":8,"column":1}},"2":{"start":{"line":4,"column":4},"end":{"line":4,"column":44}},"3":{"start":{"line":5,"column":20},"end":{"line":5,"column":66}},"4":{"start":{"line":6,"column":26},"end":{"line":6,"column":66}},"5":{"start":{"line":6,"column":57},"end":{"line":6,"column":65}},"6":{"start":{"line":7,"column":4},"end":{"line":7,"column":24}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":30},"end":{"line":8,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":46},"end":{"line":6,"column":47}},"loc":{"start":{"line":6,"column":57},"end":{"line":6,"column":65}},"line":6}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"f":{"0":0,"1":0},"b":{},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js","statementMap":{"0":{"start":{"line":1,"column":10},"end":{"line":1,"column":27}},"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":1}},"2":{"start":{"line":4,"column":18},"end":{"line":4,"column":53}},"3":{"start":{"line":5,"column":4},"end":{"line":5,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":29},"end":{"line":6,"column":1}},"line":3}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0},"f":{"0":0},"b":{},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},"1":{"start":{"line":2,"column":20},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},"loc":{"start":{"line":1,"column":29},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":42},"end":{"line":2,"column":54}},"type":"binary-expr","locations":[{"start":{"line":2,"column":42},"end":{"line":2,"column":48}},{"start":{"line":2,"column":52},"end":{"line":2,"column":54}}],"line":2},"1":{"loc":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"type":"cond-expr","locations":[{"start":{"line":3,"column":35},"end":{"line":3,"column":51}},{"start":{"line":3,"column":54},"end":{"line":3,"column":56}}],"line":3}},"s":{"0":0,"1":0,"2":0,"3":0},"f":{"0":0},"b":{"0":[0,0],"1":[0,0]},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":14},"end":{"line":2,"column":30}},"2":{"start":{"line":3,"column":22},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":27},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":25},"end":{"line":5,"column":54}},"5":{"start":{"line":6,"column":19},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":10},"end":{"line":7,"column":27}},"7":{"start":{"line":8,"column":23},"end":{"line":8,"column":50}},"8":{"start":{"line":9,"column":18},"end":{"line":9,"column":48}},"9":{"start":{"line":11,"column":0},"end":{"line":30,"column":1}},"10":{"start":{"line":12,"column":17},"end":{"line":12,"column":32}},"11":{"start":{"line":14,"column":25},"end":{"line":18,"column":20}},"12":{"start":{"line":19,"column":21},"end":{"line":19,"column":56}},"13":{"start":{"line":21,"column":4},"end":{"line":21,"column":61}},"14":{"start":{"line":22,"column":22},"end":{"line":22,"column":41}},"15":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"16":{"start":{"line":25,"column":8},"end":{"line":25,"column":19}},"17":{"start":{"line":28,"column":22},"end":{"line":28,"column":84}},"18":{"start":{"line":29,"column":4},"end":{"line":29,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":17},"end":{"line":11,"column":18}},"loc":{"start":{"line":11,"column":31},"end":{"line":30,"column":1}},"line":11}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},{"start":{"line":24,"column":4},"end":{"line":26,"column":5}}],"line":24}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"f":{"0":0},"b":{"0":[0,0]},"all":true},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":25},"end":{"line":2,"column":47}},"2":{"start":{"line":3,"column":10},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":30},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":24},"end":{"line":5,"column":52}},"5":{"start":{"line":6,"column":14},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":17},"end":{"line":7,"column":46}},"7":{"start":{"line":9,"column":0},"end":{"line":41,"column":1}},"8":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"9":{"start":{"line":10,"column":27},"end":{"line":10,"column":29}},"10":{"start":{"line":12,"column":4},"end":{"line":34,"column":6}},"11":{"start":{"line":13,"column":37},"end":{"line":13,"column":69}},"12":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"13":{"start":{"line":16,"column":12},"end":{"line":16,"column":18}},"14":{"start":{"line":19,"column":22},"end":{"line":19,"column":54}},"15":{"start":{"line":20,"column":28},"end":{"line":20,"column":56}},"16":{"start":{"line":21,"column":22},"end":{"line":21,"column":38}},"17":{"start":{"line":22,"column":24},"end":{"line":22,"column":43}},"18":{"start":{"line":23,"column":22},"end":{"line":29,"column":10}},"19":{"start":{"line":30,"column":8},"end":{"line":30,"column":34}},"20":{"start":{"line":32,"column":8},"end":{"line":32,"column":26}},"21":{"start":{"line":33,"column":8},"end":{"line":33,"column":28}},"22":{"start":{"line":36,"column":22},"end":{"line":39,"column":16}},"23":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"24":{"start":{"line":40,"column":4},"end":{"line":40,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":23},"end":{"line":9,"column":24}},"loc":{"start":{"line":9,"column":39},"end":{"line":41,"column":1}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":34},"end":{"line":34,"column":5}},"line":12},"3":{"name":"(anonymous_3)","decl":{"start":{"line":38,"column":13},"end":{"line":38,"column":14}},"loc":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"line":38}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},{"start":{"line":15,"column":8},"end":{"line":17,"column":9}}],"line":15},"1":{"loc":{"start":{"line":19,"column":38},"end":{"line":19,"column":53}},"type":"binary-expr","locations":[{"start":{"line":19,"column":38},"end":{"line":19,"column":47}},{"start":{"line":19,"column":51},"end":{"line":19,"column":53}}],"line":19}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0},"f":{"0":0,"1":0,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0]},"all":true}} \ No newline at end of file diff --git a/.nyc_output/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json b/.nyc_output/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json new file mode 100644 index 0000000..7eaee7c --- /dev/null +++ b/.nyc_output/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json @@ -0,0 +1 @@ +{"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js","statementMap":{"0":{"start":{"line":1,"column":17},"end":{"line":1,"column":53}},"1":{"start":{"line":3,"column":0},"end":{"line":8,"column":1}},"2":{"start":{"line":4,"column":4},"end":{"line":4,"column":44}},"3":{"start":{"line":5,"column":20},"end":{"line":5,"column":66}},"4":{"start":{"line":6,"column":26},"end":{"line":6,"column":66}},"5":{"start":{"line":6,"column":57},"end":{"line":6,"column":65}},"6":{"start":{"line":7,"column":4},"end":{"line":7,"column":24}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":30},"end":{"line":8,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":46},"end":{"line":6,"column":47}},"loc":{"start":{"line":6,"column":57},"end":{"line":6,"column":65}},"line":6}},"branchMap":{},"s":{"0":1,"1":1,"2":4,"3":4,"4":4,"5":7,"6":4},"f":{"0":4,"1":7},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7fbd248147c7a65784245319f75ede3c9813302a","contentHash":"fab386fd76ca3e3e9583769ebbae78e394efcd05cba09e8e4ca11cf77480bcad"}} \ No newline at end of file diff --git a/.nyc_output/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json b/.nyc_output/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json new file mode 100644 index 0000000..f3ec214 --- /dev/null +++ b/.nyc_output/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json @@ -0,0 +1 @@ +{"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":14},"end":{"line":2,"column":30}},"2":{"start":{"line":3,"column":22},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":27},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":25},"end":{"line":5,"column":54}},"5":{"start":{"line":6,"column":19},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":10},"end":{"line":7,"column":27}},"7":{"start":{"line":8,"column":23},"end":{"line":8,"column":50}},"8":{"start":{"line":9,"column":18},"end":{"line":9,"column":48}},"9":{"start":{"line":11,"column":0},"end":{"line":30,"column":1}},"10":{"start":{"line":12,"column":17},"end":{"line":12,"column":32}},"11":{"start":{"line":14,"column":25},"end":{"line":18,"column":20}},"12":{"start":{"line":19,"column":21},"end":{"line":19,"column":56}},"13":{"start":{"line":21,"column":4},"end":{"line":21,"column":61}},"14":{"start":{"line":22,"column":22},"end":{"line":22,"column":41}},"15":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"16":{"start":{"line":25,"column":8},"end":{"line":25,"column":19}},"17":{"start":{"line":28,"column":22},"end":{"line":28,"column":84}},"18":{"start":{"line":29,"column":4},"end":{"line":29,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":17},"end":{"line":11,"column":18}},"loc":{"start":{"line":11,"column":31},"end":{"line":30,"column":1}},"line":11}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},{"start":{"line":24,"column":4},"end":{"line":26,"column":5}}],"line":24}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":5,"11":5,"12":5,"13":5,"14":5,"15":5,"16":0,"17":5,"18":5},"f":{"0":5},"b":{"0":[0,5]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"be09b971d38be9da243192a116daa078c3c32919","contentHash":"c26653e734515662c5566364e8d65f9258f0fa295a35393c4a9ecf7fe2cf924b"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":25},"end":{"line":2,"column":47}},"2":{"start":{"line":3,"column":10},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":30},"end":{"line":4,"column":64}},"4":{"start":{"line":5,"column":24},"end":{"line":5,"column":52}},"5":{"start":{"line":6,"column":14},"end":{"line":6,"column":40}},"6":{"start":{"line":7,"column":17},"end":{"line":7,"column":46}},"7":{"start":{"line":9,"column":0},"end":{"line":41,"column":1}},"8":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"9":{"start":{"line":10,"column":27},"end":{"line":10,"column":29}},"10":{"start":{"line":12,"column":4},"end":{"line":34,"column":6}},"11":{"start":{"line":13,"column":37},"end":{"line":13,"column":69}},"12":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"13":{"start":{"line":16,"column":12},"end":{"line":16,"column":18}},"14":{"start":{"line":19,"column":22},"end":{"line":19,"column":54}},"15":{"start":{"line":20,"column":28},"end":{"line":20,"column":56}},"16":{"start":{"line":21,"column":22},"end":{"line":21,"column":38}},"17":{"start":{"line":22,"column":24},"end":{"line":22,"column":43}},"18":{"start":{"line":23,"column":22},"end":{"line":29,"column":10}},"19":{"start":{"line":30,"column":8},"end":{"line":30,"column":34}},"20":{"start":{"line":32,"column":8},"end":{"line":32,"column":26}},"21":{"start":{"line":33,"column":8},"end":{"line":33,"column":28}},"22":{"start":{"line":36,"column":22},"end":{"line":39,"column":16}},"23":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"24":{"start":{"line":40,"column":4},"end":{"line":40,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":23},"end":{"line":41,"column":1}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":23},"end":{"line":9,"column":24}},"loc":{"start":{"line":9,"column":39},"end":{"line":41,"column":1}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":12,"column":24},"end":{"line":12,"column":25}},"loc":{"start":{"line":12,"column":34},"end":{"line":34,"column":5}},"line":12},"3":{"name":"(anonymous_3)","decl":{"start":{"line":38,"column":13},"end":{"line":38,"column":14}},"loc":{"start":{"line":38,"column":39},"end":{"line":38,"column":83}},"line":38}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},{"start":{"line":15,"column":8},"end":{"line":17,"column":9}}],"line":15},"1":{"loc":{"start":{"line":19,"column":38},"end":{"line":19,"column":53}},"type":"binary-expr","locations":[{"start":{"line":19,"column":38},"end":{"line":19,"column":47}},{"start":{"line":19,"column":51},"end":{"line":19,"column":53}}],"line":19}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":5,"9":5,"10":5,"11":19,"12":19,"13":2,"14":17,"15":17,"16":17,"17":17,"18":17,"19":17,"20":17,"21":17,"22":5,"23":7,"24":5},"f":{"0":5,"1":5,"2":19,"3":7},"b":{"0":[2,17],"1":[17,15]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1a15011a7b2a1ef776f0b9694b2f10b1e89ff71c","contentHash":"87b46e7f4ca2e33689ebde2735880b64d51879d899482458fb2fc4b2b7134cea"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},"1":{"start":{"line":2,"column":20},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},"loc":{"start":{"line":1,"column":29},"end":{"line":5,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":42},"end":{"line":2,"column":54}},"type":"binary-expr","locations":[{"start":{"line":2,"column":42},"end":{"line":2,"column":48}},{"start":{"line":2,"column":52},"end":{"line":2,"column":54}}],"line":2},"1":{"loc":{"start":{"line":3,"column":25},"end":{"line":3,"column":56}},"type":"cond-expr","locations":[{"start":{"line":3,"column":35},"end":{"line":3,"column":51}},{"start":{"line":3,"column":54},"end":{"line":3,"column":56}}],"line":3}},"s":{"0":1,"1":55,"2":55,"3":55},"f":{"0":55},"b":{"0":[55,0],"1":[49,6]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c5ed49f9a7658c662177485b7e8a6759661eefd6","contentHash":"8a63314bcde4e0482f2692157e2ac766185e8e810a4718e0e1a4610e0b66004b"},"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js","statementMap":{"0":{"start":{"line":1,"column":10},"end":{"line":1,"column":27}},"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":1}},"2":{"start":{"line":4,"column":18},"end":{"line":4,"column":53}},"3":{"start":{"line":5,"column":4},"end":{"line":5,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":29},"end":{"line":6,"column":1}},"line":3}},"branchMap":{},"s":{"0":1,"1":1,"2":17,"3":17},"f":{"0":17},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a6a132a81758c2a46f811be907e2dcafd166b863","contentHash":"75b6ffaa5a3f3c0b0622805b34606149bb283c1db2f6cd404304229378445102"},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":19},"end":{"line":2,"column":43}},"2":{"start":{"line":3,"column":21},"end":{"line":3,"column":48}},"3":{"start":{"line":4,"column":27},"end":{"line":4,"column":58}},"4":{"start":{"line":5,"column":25},"end":{"line":5,"column":54}},"5":{"start":{"line":6,"column":28},"end":{"line":6,"column":60}},"6":{"start":{"line":7,"column":31},"end":{"line":7,"column":66}},"7":{"start":{"line":9,"column":0},"end":{"line":22,"column":1}},"8":{"start":{"line":10,"column":21},"end":{"line":17,"column":40}},"9":{"start":{"line":19,"column":17},"end":{"line":19,"column":64}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":15}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":32},"end":{"line":22,"column":1}},"line":9}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":5,"9":5,"10":5},"f":{"0":5},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"aff08774e81f1f33ca62be34ffaab86820a66297","contentHash":"66b4af4484e66bdd825116abf94a6f0addee631c3949c80995f3cec96f17d50e"},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js","statementMap":{"0":{"start":{"line":1,"column":15},"end":{"line":1,"column":43}},"1":{"start":{"line":2,"column":10},"end":{"line":2,"column":27}},"2":{"start":{"line":4,"column":0},"end":{"line":12,"column":1}},"3":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"4":{"start":{"line":5,"column":4},"end":{"line":11,"column":6}},"5":{"start":{"line":6,"column":28},"end":{"line":6,"column":48}},"6":{"start":{"line":7,"column":22},"end":{"line":7,"column":52}},"7":{"start":{"line":8,"column":30},"end":{"line":8,"column":54}},"8":{"start":{"line":10,"column":8},"end":{"line":10,"column":43}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":23},"end":{"line":4,"column":24}},"loc":{"start":{"line":4,"column":39},"end":{"line":12,"column":1}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":18}},"loc":{"start":{"line":5,"column":27},"end":{"line":11,"column":5}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":15},"end":{"line":10,"column":43}},"type":"binary-expr","locations":[{"start":{"line":10,"column":15},"end":{"line":10,"column":26}},{"start":{"line":10,"column":30},"end":{"line":10,"column":43}}],"line":10}},"s":{"0":1,"1":1,"2":1,"3":5,"4":5,"5":54,"6":54,"7":54,"8":54},"f":{"0":5,"1":5,"2":54},"b":{"0":[54,19]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d7f462bc962eda5b08195ce36a95802e4f472f45","contentHash":"d58b2aecd8198bfacdc0b2b8566f73045c80f1de40d1b50efc0f0cb6415c14f2"},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":30},"end":{"line":2,"column":71}},"2":{"start":{"line":4,"column":0},"end":{"line":12,"column":1}},"3":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"4":{"start":{"line":5,"column":4},"end":{"line":11,"column":6}},"5":{"start":{"line":6,"column":29},"end":{"line":6,"column":61}},"6":{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},"7":{"start":{"line":9,"column":12},"end":{"line":9,"column":28}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":23},"end":{"line":12,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":23},"end":{"line":4,"column":24}},"loc":{"start":{"line":4,"column":39},"end":{"line":12,"column":1}},"line":4},"2":{"name":"(anonymous_2)","decl":{"start":{"line":5,"column":24},"end":{"line":5,"column":25}},"loc":{"start":{"line":5,"column":34},"end":{"line":11,"column":5}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},"type":"if","locations":[{"start":{"line":8,"column":8},"end":{"line":10,"column":9}},{"start":{"line":8,"column":8},"end":{"line":10,"column":9}}],"line":8}},"s":{"0":1,"1":1,"2":1,"3":5,"4":5,"5":17,"6":17,"7":15},"f":{"0":5,"1":5,"2":17},"b":{"0":[15,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0c6949980e6f2d2f5ae6da4b83240b6c3c00503a","contentHash":"5a363296623efcf8651e50505bc3ca3f5a8b8f09cb5d5cb076a31963272584bd"},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js","statementMap":{"0":{"start":{"line":1,"column":14},"end":{"line":1,"column":41}},"1":{"start":{"line":2,"column":10},"end":{"line":2,"column":34}},"2":{"start":{"line":3,"column":10},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":30},"end":{"line":4,"column":71}},"4":{"start":{"line":6,"column":22},"end":{"line":9,"column":1}},"5":{"start":{"line":7,"column":17},"end":{"line":7,"column":38}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":32}},"7":{"start":{"line":11,"column":0},"end":{"line":28,"column":1}},"8":{"start":{"line":11,"column":32},"end":{"line":28,"column":1}},"9":{"start":{"line":12,"column":35},"end":{"line":12,"column":44}},"10":{"start":{"line":14,"column":4},"end":{"line":27,"column":6}},"11":{"start":{"line":15,"column":42},"end":{"line":15,"column":74}},"12":{"start":{"line":16,"column":35},"end":{"line":16,"column":75}},"13":{"start":{"line":17,"column":33},"end":{"line":17,"column":68}},"14":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"15":{"start":{"line":20,"column":12},"end":{"line":20,"column":18}},"16":{"start":{"line":23,"column":25},"end":{"line":23,"column":76}},"17":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"18":{"start":{"line":25,"column":8},"end":{"line":25,"column":48}},"19":{"start":{"line":26,"column":8},"end":{"line":26,"column":24}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":22},"end":{"line":6,"column":23}},"loc":{"start":{"line":6,"column":56},"end":{"line":9,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":17},"end":{"line":11,"column":18}},"loc":{"start":{"line":11,"column":32},"end":{"line":28,"column":1}},"line":11},"2":{"name":"(anonymous_2)","decl":{"start":{"line":11,"column":32},"end":{"line":11,"column":33}},"loc":{"start":{"line":11,"column":48},"end":{"line":28,"column":1}},"line":11},"3":{"name":"(anonymous_3)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":49},"end":{"line":27,"column":5}},"line":14}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":33},"end":{"line":17,"column":68}},"type":"binary-expr","locations":[{"start":{"line":17,"column":33},"end":{"line":17,"column":45}},{"start":{"line":17,"column":49},"end":{"line":17,"column":68}}],"line":17},"1":{"loc":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},{"start":{"line":19,"column":8},"end":{"line":21,"column":9}}],"line":19}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":7,"6":7,"7":1,"8":5,"9":5,"10":5,"11":19,"12":19,"13":19,"14":19,"15":12,"16":7,"17":7,"18":7,"19":7},"f":{"0":7,"1":5,"2":5,"3":19},"b":{"0":[19,17],"1":[12,7]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"df3a9c8bf91f3e8eef0a718ad576c873e6306667","contentHash":"ee1d20978a99b01761af8d00c6d8e4a600d557a98d480e7d481bd3f16ceb2cad"},"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js":{"path":"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js","statementMap":{"0":{"start":{"line":1,"column":10},"end":{"line":1,"column":34}},"1":{"start":{"line":3,"column":0},"end":{"line":7,"column":1}},"2":{"start":{"line":4,"column":4},"end":{"line":6,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":30},"end":{"line":7,"column":1}},"line":3}},"branchMap":{},"s":{"0":1,"1":1,"2":7},"f":{"0":7},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c8981ec0e977761802e830863ddd64c5e42b3a4f","contentHash":"a644317fad7a10df11c54c2d2b4a8e62b012c5711aef26fe6cb60680500e5de3"}} \ No newline at end of file diff --git a/.nyc_output/eb58b80b-ece6-4556-816f-cebf2bf9289f.json b/.nyc_output/eb58b80b-ece6-4556-816f-cebf2bf9289f.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.nyc_output/eb58b80b-ece6-4556-816f-cebf2bf9289f.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.nyc_output/processinfo/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json b/.nyc_output/processinfo/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json new file mode 100644 index 0000000..85e02e3 --- /dev/null +++ b/.nyc_output/processinfo/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json @@ -0,0 +1 @@ +{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","pid":16042,"argv":["/Users/mpetrovich/.nvm/versions/node/v10.20.1/bin/node","/Users/mpetrovich/Code/stylemark/stylemark/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/Users/mpetrovich/Code/stylemark/stylemark","time":1588218614109,"ppid":16039,"coverageFilename":"/Users/mpetrovich/Code/stylemark/stylemark/.nyc_output/33ca4abe-2ab9-4df2-b262-e01f3ab05fb5.json","externalId":"","uuid":"33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","files":["/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/af1ec70e-963f-4773-bcd3-ad17a7378c43.json b/.nyc_output/processinfo/af1ec70e-963f-4773-bcd3-ad17a7378c43.json new file mode 100644 index 0000000..8ce15fa --- /dev/null +++ b/.nyc_output/processinfo/af1ec70e-963f-4773-bcd3-ad17a7378c43.json @@ -0,0 +1 @@ +{"parent":null,"pid":16025,"argv":["/Users/mpetrovich/.nvm/versions/node/v10.20.1/bin/node","/Users/mpetrovich/Code/stylemark/stylemark/node_modules/.bin/nyc","ava"],"execArgv":[],"cwd":"/Users/mpetrovich/Code/stylemark/stylemark","time":1588218611776,"ppid":16024,"coverageFilename":"/Users/mpetrovich/Code/stylemark/stylemark/.nyc_output/af1ec70e-963f-4773-bcd3-ad17a7378c43.json","externalId":"","uuid":"af1ec70e-963f-4773-bcd3-ad17a7378c43","files":["/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json b/.nyc_output/processinfo/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json new file mode 100644 index 0000000..820b787 --- /dev/null +++ b/.nyc_output/processinfo/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json @@ -0,0 +1 @@ +{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","pid":16041,"argv":["/Users/mpetrovich/.nvm/versions/node/v10.20.1/bin/node","/Users/mpetrovich/Code/stylemark/stylemark/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/Users/mpetrovich/Code/stylemark/stylemark","time":1588218614073,"ppid":16039,"coverageFilename":"/Users/mpetrovich/Code/stylemark/stylemark/.nyc_output/df1c8578-58f2-4e7d-9c98-c2aebdbce40a.json","externalId":"","uuid":"df1c8578-58f2-4e7d-9c98-c2aebdbce40a","files":["/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json b/.nyc_output/processinfo/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json new file mode 100644 index 0000000..97a73b3 --- /dev/null +++ b/.nyc_output/processinfo/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json @@ -0,0 +1 @@ +{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","pid":16040,"argv":["/Users/mpetrovich/.nvm/versions/node/v10.20.1/bin/node","/Users/mpetrovich/Code/stylemark/stylemark/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/Users/mpetrovich/Code/stylemark/stylemark","time":1588218614083,"ppid":16039,"coverageFilename":"/Users/mpetrovich/Code/stylemark/stylemark/.nyc_output/eb0a8760-104d-45d2-8bd9-ef46de4d7c59.json","externalId":"","uuid":"eb0a8760-104d-45d2-8bd9-ef46de4d7c59","files":["/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js","/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js","/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/eb58b80b-ece6-4556-816f-cebf2bf9289f.json b/.nyc_output/processinfo/eb58b80b-ece6-4556-816f-cebf2bf9289f.json new file mode 100644 index 0000000..244c6bd --- /dev/null +++ b/.nyc_output/processinfo/eb58b80b-ece6-4556-816f-cebf2bf9289f.json @@ -0,0 +1 @@ +{"parent":null,"pid":16039,"argv":["/Users/mpetrovich/.nvm/versions/node/v10.20.1/bin/node","/Users/mpetrovich/Code/stylemark/stylemark/node_modules/.bin/ava"],"execArgv":[],"cwd":"/Users/mpetrovich/Code/stylemark/stylemark","time":1588218613358,"ppid":16025,"coverageFilename":"/Users/mpetrovich/Code/stylemark/stylemark/.nyc_output/eb58b80b-ece6-4556-816f-cebf2bf9289f.json","externalId":"","uuid":"eb58b80b-ece6-4556-816f-cebf2bf9289f","files":[]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json new file mode 100644 index 0000000..efbc854 --- /dev/null +++ b/.nyc_output/processinfo/index.json @@ -0,0 +1 @@ +{"processes":{"33ca4abe-2ab9-4df2-b262-e01f3ab05fb5":{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","children":[]},"af1ec70e-963f-4773-bcd3-ad17a7378c43":{"parent":null,"children":[]},"df1c8578-58f2-4e7d-9c98-c2aebdbce40a":{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","children":[]},"eb0a8760-104d-45d2-8bd9-ef46de4d7c59":{"parent":"eb58b80b-ece6-4556-816f-cebf2bf9289f","children":[]},"eb58b80b-ece6-4556-816f-cebf2bf9289f":{"parent":null,"children":["33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","df1c8578-58f2-4e7d-9c98-c2aebdbce40a","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"]}},"files":{"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseComponent.js":["33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseSpecimens.js":["33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockNameAndType.js":["33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/parseBlockFlags.js":["33ca4abe-2ab9-4df2-b262-e01f3ab05fb5","af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/compileComponent.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/insertSpecimenNodes.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeBlockNames.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/removeHiddenBlocks.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/compile/specimenNodeToHtmlTree.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","eb0a8760-104d-45d2-8bd9-ef46de4d7c59"],"/Users/mpetrovich/Code/stylemark/stylemark/src/parse/extractCommentBlocks.js":["af1ec70e-963f-4773-bcd3-ad17a7378c43","df1c8578-58f2-4e7d-9c98-c2aebdbce40a"]},"externalIds":{}} \ No newline at end of file diff --git a/README.md b/README.md index 842782d..1f208bf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stylemark   [![npm version](https://badge.fury.io/js/stylemark.svg)](https://badge.fury.io/js/stylemark) [![Build Status](https://travis-ci.org/nextbigsoundinc/stylemark.svg?branch=master)](https://travis-ci.org/nextbigsoundinc/stylemark) -**A living style guide generator for everything.** CSS, LESS, SASS, JS, React, Angular, Ember—you name it. +**Generate interactive style guides from Markdown.** Document your style guide components in code comments or Markdown files, and Stylemark will generate a static HTML site with live, interactive components. diff --git a/dist/bootstrap.js b/dist/bootstrap.js new file mode 100644 index 0000000..601bd01 --- /dev/null +++ b/dist/bootstrap.js @@ -0,0 +1,51 @@ +const stylemark = {} + +stylemark.findSpecimenType = (specimen) => { + const normalizedTypes = stylemark.specimenTypes.map((item) => (Array.isArray(item) ? item : [item, {}])) + const match = normalizedTypes.find(([typeConfig, options]) => typeConfig.test(specimen, options)) + if (!match) { + return null + } + const [typeConfig, options] = match + const resolvedOptions = Object.assign({}, typeConfig.defaultOptions, options) + return [typeConfig, resolvedOptions] +} + +stylemark.renderSpecimen = (specimen) => { + const host = document.currentScript.parentElement + const shadowRoot = host.attachShadow({ mode: "open" }) + const [typeConfig, options] = stylemark.findSpecimenType(specimen) + + if (!typeConfig) { + console.error("No typeConfig found for specimen", specimen) + return + } + + const html = typeConfig.html ? typeConfig.html(specimen, options) : null + const css = typeConfig.css ? typeConfig.css(specimen, options) : null + const js = typeConfig.js ? typeConfig.js(specimen, options) : null + + if (html) { + shadowRoot.innerHTML += html + } + + if (css) { + const style = document.createElement("style") + style.type = "text/css" + style.textContent = css + shadowRoot.appendChild(style) + } + + if (js) { + const script = document.createElement("script") + script.type = "text/javascript" + script.textContent = `(function() { + const scripts = window.document.getElementsByTagName("script"); + const document = scripts[scripts.length - 1].parentNode.shadowRoot; + ${js} + })()` + shadowRoot.appendChild(script) + } +} + +window.stylemark = stylemark diff --git a/dist/external-body.js b/dist/external-body.js new file mode 100644 index 0000000..490c586 --- /dev/null +++ b/dist/external-body.js @@ -0,0 +1 @@ +console.log("external body script") diff --git a/dist/external-head.js b/dist/external-head.js new file mode 100644 index 0000000..544dbf3 --- /dev/null +++ b/dist/external-head.js @@ -0,0 +1 @@ +console.log("external head script") diff --git a/dist/images/a.png b/dist/images/a.png new file mode 100644 index 0000000..8b0b717 Binary files /dev/null and b/dist/images/a.png differ diff --git a/dist/images/b.png b/dist/images/b.png new file mode 100644 index 0000000..efca363 Binary files /dev/null and b/dist/images/b.png differ diff --git a/dist/images/stylemark.png b/dist/images/stylemark.png new file mode 100644 index 0000000..1858ab4 Binary files /dev/null and b/dist/images/stylemark.png differ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..945bac4 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,84 @@ + + + + Test Styleguide + + + + + + + + + + +
+

This is a button component.

+

Basic button

+
+
<button>Click me</button>
+
+
button {
+    color: white;
+    background-color: green;
+}
+
+
document.querySelector("button").addEventListener("click", e => alert("Clicked button"))
+
+

Fancy button

+
+
<button>Fancy button</button>
+
+
button {
+    color: white;
+    background-color: red;
+}
+
+
document.querySelector("button").addEventListener("click", e => alert("Clicked fancy button"))
+
+

This is a color component.

+

Primary colors

+
+
#f00
+
+

This is a dropdown component.

+

Basic dropdown

+
+
<select name="dropdown">
+    <option>Select</option>
+    <option>Option A</option>
+    <option>Option B</option>
+    <option>Option C</option>
+</select>
+
+
select {
+    font-size: 1.5em;
+}
+
+
document.querySelector("select").addEventListener("change", e => alert(`Selected ${e.target.value}`))
+
+

Fancy dropdown

+
+
<select name="dropdown">
+    <option>Select</option>
+    <option>Option A</option>
+    <option>Option B</option>
+    <option>Option C</option>
+</select>
+
+
select {
+    font-size: 1.5em;
+    background-color: red;
+}
+
+
document.querySelector("select").addEventListener("change", e => alert(`Selected fancy ${e.target.value}`))
+
+
+ + + + + + diff --git a/dist/jquery.js b/dist/jquery.js new file mode 100644 index 0000000..a3bdd46 --- /dev/null +++ b/dist/jquery.js @@ -0,0 +1,2 @@ +/*! jQuery v3.5.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(g,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,v=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),m={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},w=g.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,n){var r,i,o=(n=n||w).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector",E=function(e,t){return new E.fn.init(e,t)};function d(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!b(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),V=new RegExp(W),X=new RegExp("^"+B+"$"),Q={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){C()},ae=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(t=P.call(d.childNodes),d.childNodes),t[d.childNodes.length].nodeType}catch(e){O={apply:t.length?function(e,t){q.apply(e,P.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(C(e),e=e||T,E)){if(11!==d&&(u=Z.exec(t)))if(i=u[1]){if(9===d){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return O.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&p.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(i)),n}if(p.qsa&&!k[t+" "]&&(!v||!v.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===d&&(U.test(t)||_.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=A)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+be(l[o]);c=l.join(",")}try{return O.apply(n,f.querySelectorAll(c)),n}catch(e){k(t,!0)}finally{s===A&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>x.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[A]=!0,e}function ce(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)x.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in p=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:d;return r!=T&&9===r.nodeType&&r.documentElement&&(a=(T=r).documentElement,E=!i(T),d!=T&&(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),p.scope=ce(function(e){return a.appendChild(e).appendChild(T.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(T.getElementsByClassName),p.getById=ce(function(e){return a.appendChild(e).id=A,!T.getElementsByName||!T.getElementsByName(A).length}),p.getById?(x.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=p.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=p.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(p.qsa=J.test(T.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+A+"-]").length||v.push("~="),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+A+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(p.matchesSelector=J.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",W)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=J.test(a.compareDocumentPosition),y=t||J.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==T||e.ownerDocument==d&&y(d,e)?-1:t==T||t.ownerDocument==d&&y(d,t)?1:u?H(u,e)-H(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==T?-1:t==T?1:i?-1:o?1:u?H(u,e)-H(u,t):0;if(i===o)return de(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?de(a[r],s[r]):a[r]==d?-1:s[r]==d?1:0}),T},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(C(e),p.matchesSelector&&E&&!k[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){k(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return b(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),k.test(r[1])&&E.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,L=E(w);var q=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;le=w.createDocumentFragment().appendChild(w.createElement("div")),(ce=w.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),le.appendChild(ce),m.checkClone=le.cloneNode(!0).cloneNode(!0).lastChild.checked,le.innerHTML="",m.noCloneChecked=!!le.cloneNode(!0).lastChild.defaultValue,le.innerHTML="",m.option=!!le.lastChild;var he={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var ye=/<|&#?\w+;/;function me(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function Le(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n
",2===ft.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,t.head.appendChild(r)):t=w),o=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=me([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),b(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=Fe(m.pixelPosition,function(e,t){if(t)return t=We(e,n),Ie.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0 specimen.blocks[0].type === "color",html: (specimen) => `
${specimen.blocks[0].content}
`,css: (specimen, options) => `div { + width: ${options.width}; + height: ${options.height}; + background: ${specimen.blocks[0].content}; + }`,js: (specimen) => ` + document.addEventListener("click", e => navigator.clipboard.writeText("${specimen.blocks[0].content}")) + ` + },{ + width: "100px" + } + ],[ + { + defaultOptions: {"prefix":""},test: (specimen) => specimen.blocks[0].type === "html",html: (specimen, options) => + specimen.blocks + .filter((block) => block.type === "html") + .map((block) => options.prefix + block.content) + .join("\n"),css: (specimen) => + specimen.blocks + .filter((block) => block.type === "css") + .map((block) => block.content) + .join("\n"),js: (specimen) => + specimen.blocks + .filter((block) => block.type === "js") + .map((block) => block.content) + .join("\n") + },{ + prefix: "FOO: " + } + ],{ + html: {"defaultOptions":{"prefix":""}} + } + ] \ No newline at end of file diff --git a/dist/stylemark.png b/dist/stylemark.png new file mode 100644 index 0000000..1858ab4 Binary files /dev/null and b/dist/stylemark.png differ