New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@justeat/f-card

Package Overview
Dependencies
Maintainers
53
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justeat/f-card - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

v2.0.0
------------------------------
*September 16, 2021*
### Removed
- Normalise styles from the build. Note that now if consuming application doesn't have normalised (reset) styles, there may be some slight style differences after this update. If the consuming application uses fozzie, there shouldn't be any style differences as normalised styles should be added as part of the fozzie import.
v1.3.0

@@ -9,0 +17,0 @@ ------------------------------

7

dist/f-card.common.js

@@ -218,3 +218,3 @@ module.exports =

// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6276e5c9-vue-loader-template"}!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=79ecf140&
// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"03bd7195-vue-loader-template"}!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=79ecf140&
var render = function () {

@@ -495,4 +495,8 @@ var _obj, _obj$1;

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, "install", function() { return /* reexport */ src_0["b" /* install */]; });
// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js

@@ -526,3 +530,2 @@ // This file is imported into lib/wc client bundles.

// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* concated harmony reexport install */__webpack_require__.d(__webpack_exports__, "install", function() { return src_0["b" /* install */]; });

@@ -529,0 +532,0 @@

@@ -227,3 +227,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6276e5c9-vue-loader-template"}!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=79ecf140&
// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"03bd7195-vue-loader-template"}!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=79ecf140&
var render = function () {

@@ -504,4 +504,8 @@ var _obj, _obj$1;

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, "install", function() { return /* reexport */ src_0["b" /* install */]; });
// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js

@@ -535,3 +539,2 @@ // This file is imported into lib/wc client bundles.

// CONCATENATED MODULE: /Users/maryia.radchuk/Documents/work/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* concated harmony reexport install */__webpack_require__.d(__webpack_exports__, "install", function() { return src_0["b" /* install */]; });

@@ -538,0 +541,0 @@

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

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["f-card"]=t():e["f-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fa16")}({"05e9":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"7e10":function(e,t,n){var r,a,o;(function(n,c){a=[],r=c,o="function"===typeof r?r.apply(t,a):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,a,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,i=o.exec(p.stack)||c.exec(p.stack),d=i&&i[1]||!1,u=i&&i[2]||!1,s=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");d===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var l=0;l<f.length;l++){if("interactive"===f[l].readyState)return f[l];if(f[l].src===d)return f[l];if(d===s&&f[l].innerHTML&&f[l].innerHTML.trim()===a)return f[l]}return null}}return e}))},"81ba":function(e,t,n){"use strict";var r=n("f1b8"),a=n.n(r);n.d(t,"default",(function(){return a.a}))},ae8d:function(e,t,n){"use strict";var r=function(){var e,t,n=this,r=n.$createElement,a=n._self._c||r;return a("div",{class:[n.$style["c-card"],(e={},e[n.$style["c-card--rounded"]]=n.isRounded,e[n.$style["c-card--outline"]]=n.hasOutline,e[n.$style["c-card--pageContentWrapper"]]=n.isPageContentWrapper,e)],attrs:{"data-test-id":"card-component"}},[a("div",{class:[n.$style["c-card-innerSpacing"]]},[n.cardHeading?a(n.cardHeadingTag,{tag:"component",class:[n.$style["c-card-heading"],(t={},t[n.$style["c-card-heading--"+n.cardHeadingPosition+"Aligned"]]="left"!==n.cardHeadingPosition,t)],attrs:{"data-test-id":"card-heading"}},[n._v(" "+n._s(n.cardHeading)+" ")]):n._e(),n._t("default")],2),n.hasFullWidthFooter?a("div",{attrs:{"data-test-id":"card-footer"}},[n._t("cardFooter")],2):n._e()])},a=[],o={name:"CardComponent",components:{},props:{cardHeading:{type:String,default:""},cardHeadingPosition:{type:String,default:"left",validator:function(e){return-1!==["left","right","center"].indexOf(e)}},cardHeadingTag:{type:String,default:"h1",validator:function(e){return-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e)}},hasOutline:{type:Boolean,default:!1},isPageContentWrapper:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},hasFullWidthFooter:{type:Boolean,default:!1}}},c=o,i=n("81ba");function d(e,t,n,r,a,o,c,i){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),c?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},u._ssrRegister=d):a&&(d=i?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var s=u.render;u.render=function(e,t){return d.call(t),s(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:u}}function u(e){this["$style"]=i["default"].locals||i["default"]}var s=d(c,r,a,!1,u,null,null);t["a"]=s.exports},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a}));var r=n("ae8d");function a(e){a.installed||(a.installed=!0,e.component("Card",r["a"]))}var o={install:a},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof e&&(c=e.Vue),c&&c.use(o),t["a"]=r["a"]}).call(this,n("05e9"))},f1b8:function(e,t,n){e.exports={"c-screen-sizer":"Card_c-screen-sizer_3bNyO","c-card":"Card_c-card_1r3Yg","c-card-innerSpacing":"Card_c-card-innerSpacing_66keJ","c-card--rounded":"Card_c-card--rounded_1EpZK","c-card--outline":"Card_c-card--outline_kF_4e","c-card--pageContentWrapper":"Card_c-card--pageContentWrapper_1wC0Y","c-card-heading":"Card_c-card-heading_2lAM_","c-card-heading--centerAligned":"Card_c-card-heading--centerAligned_3Y47j","c-card-heading--rightAligned":"Card_c-card-heading--rightAligned_2VtFz",skeletonGradient:"Card_skeletonGradient_3FEZ2"}},fa16:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,a=n("7e10");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var c=n("b635");n.d(t,"install",(function(){return c["b"]}));t["default"]=c["a"]}})}));
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["f-card"]=t():e["f-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fa16")}({"05e9":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"7e10":function(e,t,n){var r,a,o;(function(n,c){a=[],r=c,o="function"===typeof r?r.apply(t,a):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,a,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,i=o.exec(p.stack)||c.exec(p.stack),d=i&&i[1]||!1,u=i&&i[2]||!1,s=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");d===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var l=0;l<f.length;l++){if("interactive"===f[l].readyState)return f[l];if(f[l].src===d)return f[l];if(d===s&&f[l].innerHTML&&f[l].innerHTML.trim()===a)return f[l]}return null}}return e}))},"81ba":function(e,t,n){"use strict";var r=n("f1b8"),a=n.n(r);n.d(t,"default",(function(){return a.a}))},ae8d:function(e,t,n){"use strict";var r=function(){var e,t,n=this,r=n.$createElement,a=n._self._c||r;return a("div",{class:[n.$style["c-card"],(e={},e[n.$style["c-card--rounded"]]=n.isRounded,e[n.$style["c-card--outline"]]=n.hasOutline,e[n.$style["c-card--pageContentWrapper"]]=n.isPageContentWrapper,e)],attrs:{"data-test-id":"card-component"}},[a("div",{class:[n.$style["c-card-innerSpacing"]]},[n.cardHeading?a(n.cardHeadingTag,{tag:"component",class:[n.$style["c-card-heading"],(t={},t[n.$style["c-card-heading--"+n.cardHeadingPosition+"Aligned"]]="left"!==n.cardHeadingPosition,t)],attrs:{"data-test-id":"card-heading"}},[n._v(" "+n._s(n.cardHeading)+" ")]):n._e(),n._t("default")],2),n.hasFullWidthFooter?a("div",{attrs:{"data-test-id":"card-footer"}},[n._t("cardFooter")],2):n._e()])},a=[],o={name:"CardComponent",components:{},props:{cardHeading:{type:String,default:""},cardHeadingPosition:{type:String,default:"left",validator:function(e){return-1!==["left","right","center"].indexOf(e)}},cardHeadingTag:{type:String,default:"h1",validator:function(e){return-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e)}},hasOutline:{type:Boolean,default:!1},isPageContentWrapper:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},hasFullWidthFooter:{type:Boolean,default:!1}}},c=o,i=n("81ba");function d(e,t,n,r,a,o,c,i){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),c?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},u._ssrRegister=d):a&&(d=i?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var s=u.render;u.render=function(e,t){return d.call(t),s(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:u}}function u(e){this["$style"]=i["default"].locals||i["default"]}var s=d(c,r,a,!1,u,null,null);t["a"]=s.exports},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a}));var r=n("ae8d");function a(e){a.installed||(a.installed=!0,e.component("Card",r["a"]))}var o={install:a},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof e&&(c=e.Vue),c&&c.use(o),t["a"]=r["a"]}).call(this,n("05e9"))},f1b8:function(e,t,n){e.exports={"c-screen-sizer":"Card_c-screen-sizer_3bNyO","c-card":"Card_c-card_1r3Yg","c-card-innerSpacing":"Card_c-card-innerSpacing_66keJ","c-card--rounded":"Card_c-card--rounded_1EpZK","c-card--outline":"Card_c-card--outline_kF_4e","c-card--pageContentWrapper":"Card_c-card--pageContentWrapper_1wC0Y","c-card-heading":"Card_c-card-heading_2lAM_","c-card-heading--centerAligned":"Card_c-card-heading--centerAligned_3Y47j","c-card-heading--rightAligned":"Card_c-card-heading--rightAligned_2VtFz",skeletonGradient:"Card_skeletonGradient_3FEZ2"}},fa16:function(e,t,n){"use strict";if(n.r(t),n.d(t,"install",(function(){return c["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,a=n("7e10");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var c=n("b635");t["default"]=c["a"]}})}));
//# sourceMappingURL=f-card.umd.min.js.map
{
"name": "@justeat/f-card",
"description": "Fozzie Card Component – Used for providing wrapper card styling to an element (or group of elements)",
"version": "1.3.0",
"version": "2.0.0",
"main": "dist/f-card.umd.min.js",
"maxBundleSize": "5kB",
"files": [

@@ -52,5 +53,5 @@ "dist"

"@vue/test-utils": "1.0.3",
"@justeat/f-wdio-utils": "0.1.0",
"@justeat/f-wdio-utils": "0.3.0",
"node-sass-magic-importer": "5.3.2"
}
}

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