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

@pie-api/pie-element-extensions

Package Overview
Dependencies
Maintainers
2
Versions
124
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.11.2 to 1.11.3

7

CHANGELOG.md

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

## [1.11.3](https://github.com/key-data-systems/pie-element-extensions/compare/v1.11.2...v1.11.3) (2020-09-17)
### Bug Fixes
* ECR LP for NIB showing whole question, not just response in Question view DNA-9817 ([7d56608](https://github.com/key-data-systems/pie-element-extensions/commit/7d56608776ce97eb7c0cf9ec23d1915ffe48e676))
## [1.11.2](https://github.com/key-data-systems/pie-element-extensions/compare/v1.11.1...v1.11.2) (2020-09-16)

@@ -2,0 +9,0 @@

8

dist/pies/ConstructedResponse.js

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

import{c as s,h as e}from"./lit-element-236efe74.js";import{a as t,r,d as n}from"./cssUtils-85d09180.js";import{C as a}from"./CustomLitElement-584c0ff9.js";import{u as i}from"./unsafe-html-ee02b8b6.js";import{p as o,g as p}from"./utils-779c324b.js";class l extends a{static get styles(){return[t,r,s`
import{c as e,h as s}from"./lit-element-236efe74.js";import{a as t,r,d as n}from"./cssUtils-85d09180.js";import{C as i}from"./CustomLitElement-584c0ff9.js";import{u as a}from"./unsafe-html-ee02b8b6.js";import{p as o,g as p}from"./utils-779c324b.js";class l extends i{static get styles(){return[t,r,e`
.response {

@@ -7,2 +7,3 @@ font-size: var(

);
overflow: scroll;
}

@@ -16,6 +17,7 @@ p {

padding: 0 2px;
line-height: 1.5;
}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_renderResponse(){const{choices:s,markup:e}=this.model||{},{value:t}=this.session||{};if(!t||!e)return"";return o(e).replace(/\{\{(.)\}\}/g,(e,r)=>{const n=s[r].find(s=>s.label===t[r]);return`\n <span class="answer">\n ${t[r]||""}\n <span class="correctness-indicator">${p(n,!0)}</span>\n </span>`})}render(){return e`<div class="response">
${i(this._renderResponse())}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_renderResponse(){const{choices:e,markup:s}=this.model||{},{value:t}=this.session||{};if(!t||!s)return"";const r=o(s);return`\n <div>\n ${(r?r.match(/\{\{(.)\}\}/g):[]).join(" ... ").replace(/\{\{(.)\}\}/g,(s,r)=>{const n=e[r]&&e[r].find(e=>e.label===t[r]);return`\n <span class="answer">\n ${t[r]||""}\n <span class="correctness-indicator">${p(n,!0)}</span>\n </span>`})}\n </div>`}render(){return s`<div class="response">
${a(this._renderResponse())}
</div>`}}export default l;export{l as ConstructedResponse};
//# sourceMappingURL=ConstructedResponse.js.map

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

},
"version": "1.11.2",
"version": "1.11.3",
"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