Socket
Socket
Sign inDemoInstall

@pie-api/pie-element-extensions

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pie-api/pie-element-extensions - npm Package Compare versions

Comparing version 1.6.4 to 1.6.5

2

dist/pies/DragInTheBlankResponse.js

@@ -5,3 +5,3 @@ import{g as e,j as s,r as t,b as o,h as r}from"./cssUtils-9e0d40cc.js";import{C as i}from"./CustomLitElement-d7d74aaf.js";import"./unsafe-html-50c739ac.js";import{g as c,r as h}from"./utils-dc176e4d.js";class a extends i{static get styles(){return[e,s,t,o`

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1},hoveredChoice:{type:Object}}}set hoveredChoice(e){const s=this._hoveredChoice;s&&e&&s.value===e.value||(this._hoveredChoice=e,this.requestUpdate("hoveredChoice",s))}get hoveredChoice(){return this._hoveredChoice}constructor(){super(),this._hoveredChoice=null}mouseover(e,s){const t=e.target.closest(".choice-value"),{offsetTop:o,offsetHeight:r}=t,i=t.closest(".response"),{offsetLeft:c}=i;this.hoveredChoice={value:s,top:o+r/2,left:c+44}}mouseout(){this.hoveredChoice=null}_renderResponse(){const{correctResponse:e,choices:s}=this.model||{},{value:t}=this.session||{};if(!t||!e)return r``;return(Object.keys(e)||[]).map(o=>{const i=s.find(e=>e.id===t[o]);return r`<div
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1},hoveredChoice:{type:Object}}}set hoveredChoice(e){const s=this._hoveredChoice;s&&e&&s.value===e.value||(this._hoveredChoice=e,this.requestUpdate("hoveredChoice",s))}get hoveredChoice(){return this._hoveredChoice}constructor(){super(),this._hoveredChoice=null}mouseover(e,s){const t=e.target.closest(".choice-value"),o=t.closest(".response"),{offsetTop:r,offsetHeight:i}=t,{offsetLeft:c}=o;this.hoveredChoice={value:s,top:r+i/2,left:c+44}}mouseout(){this.hoveredChoice=null}_renderResponse(){const{correctResponse:e,choices:s}=this.model||{},{value:t}=this.session||{};if(!t||!e)return r``;return(Object.keys(e)||[]).map(o=>{const i=s.find(e=>e.id===t[o]);return r`<div
class="choice-value"

@@ -8,0 +8,0 @@ @mouseover=${e=>this.mouseover(e,i.value)}

@@ -6,3 +6,3 @@ {

},
"version": "1.6.4",
"version": "1.6.5",
"description": "Extended capabilites for pie-elements",

@@ -9,0 +9,0 @@ "author": "PIE Api Authors",

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