@pie-api/pie-api-live-components
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -28,3 +28,4 @@ import { Component, Prop, h, Watch, Event, State, Host, Element } from '@stencil/core'; | ||
async updateItemInfo() { | ||
if (this.token && this.sessionId && this.apiUrl) { | ||
if (this.token && this.sessionId && this.apiUrl && !this.updateItemInfoInProgress) { | ||
this.updateItemInfoInProgress = true; | ||
const result = await loadSessionContentItem(this.token, this.sessionId, this.apiUrl, this.metadata); | ||
@@ -39,2 +40,3 @@ this.itemConfig = result.config; | ||
} | ||
this.updateItemInfoInProgress = false; | ||
} | ||
@@ -270,2 +272,5 @@ } | ||
}, { | ||
"propName": "token", | ||
"methodName": "updateItemInfo" | ||
}, { | ||
"propName": "client", | ||
@@ -272,0 +277,0 @@ "methodName": "onPropsChange" |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as s}from"./p-e49ed7e6.js";e().then(e=>s([["p-58e25be0",[[0,"item-metadata",{_key:[1,"key"],attribute:[1]}]]],["p-4bd76193",[[0,"pie-api-live",{metadata:[16],token:[1],host:[1],apiUrl:[1,"api-url"],liveUrl:[1,"live-url"],hostUrl:[1,"host-url"]},[[0,"attachSession","handleLiveSessionAdded"]]]]],["p-4f94cbb3",[[1,"pie-live-session",{sessionId:[513,"session-id"],token:[1],client:[16],apiUrl:[1,"api-url"],metadata:[16],sessionData:[32]}]]],["p-fab8ae50",[[1,"pie-response",{sessionData:[8,"session-data"]}]]],["p-4ca6587c",[[1,"pie-response-cell",{sessionData:[8,"session-data"]}]]]],e)); | ||
import{p as e,b as s}from"./p-e49ed7e6.js";e().then(e=>s([["p-58e25be0",[[0,"item-metadata",{_key:[1,"key"],attribute:[1]}]]],["p-4bd76193",[[0,"pie-api-live",{metadata:[16],token:[1],host:[1],apiUrl:[1,"api-url"],liveUrl:[1,"live-url"],hostUrl:[1,"host-url"]},[[0,"attachSession","handleLiveSessionAdded"]]]]],["p-f244f0c1",[[1,"pie-live-session",{sessionId:[513,"session-id"],token:[1],client:[16],apiUrl:[1,"api-url"],metadata:[16],sessionData:[32]}]]],["p-fab8ae50",[[1,"pie-response",{sessionData:[8,"session-data"]}]]],["p-4ca6587c",[[1,"pie-response-cell",{sessionData:[8,"session-data"]}]]]],e)); |
@@ -72,2 +72,3 @@ /// <reference types="zen-observable" /> | ||
metadataValues: any; | ||
updateItemInfoInProgress: boolean; | ||
updateItemInfo(): Promise<void>; | ||
@@ -74,0 +75,0 @@ onPropsChange(): void; |
{ | ||
"name": "@pie-api/pie-api-live-components", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "Custom Elements that work with PIE Api Live services", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -64,2 +64,3 @@ | ||
live-session should retrieve item model directly once using item id (rather than receiving model in every sessionEvent as it is now. For short-term in R&D this is ok, but should be refactored for efficiency | ||
live-session should retrieve item model directly once using item id (rather than receiving model in every sessionEvent as it is now. For short-term in R&D this is ok, but should be refactored for efficiency | ||
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1725780
38586
66