@everymatrix/bonus-elevate-shop-item
Advanced tools
Comparing version 1.43.3 to 1.43.4
@@ -1,1 +0,1 @@ | ||
import{p as e,b as s}from"./p-84e222d1.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>s([["p-854daf62",[[1,"bonus-elevate-shop-item",{endpoint:[513],language:[513],itemId:[1537,"item-id"],elevateGift:[1040],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],isGiftNotFound:[32],redeemErrorMsg:[32],isRedeeming:[32]}],[0,"bonus-elevate-shop-assets-slider",{showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],itemsPerPage:[514,"items-per-page"],sliderItems:[16],activeIndex:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],e))); | ||
import{p as e,b as s}from"./p-3d8363a3.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>s([["p-9546c5ba",[[1,"bonus-elevate-shop-item",{endpoint:[513],language:[513],itemId:[1537,"item-id"],elevateGift:[1040],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],isGiftNotFound:[32],redeemErrorMsg:[32],isRedeeming:[32]}],[0,"bonus-elevate-shop-assets-slider",{showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],itemsPerPage:[514,"items-per-page"],sliderItems:[16],activeIndex:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],e))); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const index = require('./index-44774988.js'); | ||
const index = require('./index-355d8ffb.js'); | ||
@@ -246,2 +246,3 @@ const BonusElevateShopAssetsSlider = class { | ||
index.registerInstance(this, hostRef); | ||
this.redeemGiftButton = index.createEvent(this, "redeemGiftButton", 7); | ||
/** | ||
@@ -308,2 +309,3 @@ * Currently selected language. | ||
if (res.success) { | ||
this.redeemGiftButton.emit(); | ||
window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href); | ||
@@ -310,0 +312,0 @@ } |
'use strict'; | ||
const index = require('./index-44774988.js'); | ||
const index = require('./index-355d8ffb.js'); | ||
@@ -5,0 +5,0 @@ /* |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const index = require('./index-44774988.js'); | ||
const index = require('./index-355d8ffb.js'); | ||
@@ -8,0 +8,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
import { Component, Fragment, h, Host, Prop, State } from '@stencil/core'; | ||
import { Component, Event, Fragment, h, Host, Prop, State } from '@stencil/core'; | ||
import '@everymatrix/general-styling-wrapper'; | ||
@@ -68,2 +68,3 @@ import { getTranslations, translate } from '../../utils/locale.utils'; | ||
if (res.success) { | ||
this.redeemGiftButton.emit(); | ||
window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href); | ||
@@ -353,2 +354,22 @@ } | ||
}; } | ||
static get events() { return [{ | ||
"method": "redeemGiftButton", | ||
"name": "redeemGiftButton", | ||
"bubbles": true, | ||
"cancelable": true, | ||
"composed": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"complexType": { | ||
"original": "Object", | ||
"resolved": "Object", | ||
"references": { | ||
"Object": { | ||
"location": "global" | ||
} | ||
} | ||
} | ||
}]; } | ||
} |
@@ -1,2 +0,2 @@ | ||
import { proxyCustomElement, HTMLElement, h, Host, Fragment } from '@stencil/core/internal/client'; | ||
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client'; | ||
import { d as defineCustomElement$3 } from './bonus-elevate-shop-assets-slider2.js'; | ||
@@ -110,2 +110,3 @@ import { d as defineCustomElement$2 } from './general-styling-wrapper2.js'; | ||
this.__attachShadow(); | ||
this.redeemGiftButton = createEvent(this, "redeemGiftButton", 7); | ||
/** | ||
@@ -172,2 +173,3 @@ * Currently selected language. | ||
if (res.success) { | ||
this.redeemGiftButton.emit(); | ||
window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href); | ||
@@ -174,0 +176,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { r as registerInstance, h, g as getElement, F as Fragment, H as Host } from './index-dbb9b7c5.js'; | ||
import { r as registerInstance, h, g as getElement, c as createEvent, F as Fragment, H as Host } from './index-4927ce96.js'; | ||
@@ -241,2 +241,3 @@ const BonusElevateShopAssetsSlider = class { | ||
registerInstance(this, hostRef); | ||
this.redeemGiftButton = createEvent(this, "redeemGiftButton", 7); | ||
/** | ||
@@ -303,2 +304,3 @@ * Currently selected language. | ||
if (res.success) { | ||
this.redeemGiftButton.emit(); | ||
window.postMessage({ type: 'BEEGiftRedeem', itemId: this.elevateGift.id }, window.location.href); | ||
@@ -305,0 +307,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-dbb9b7c5.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-4927ce96.js'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-dbb9b7c5.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-4927ce96.js'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -121,2 +121,3 @@ /* eslint-disable */ | ||
"language"?: string; | ||
"onRedeemGiftButton"?: (event: CustomEvent<Object>) => void; | ||
/** | ||
@@ -123,0 +124,0 @@ * session |
@@ -0,1 +1,2 @@ | ||
import { EventEmitter } from '../../stencil-public-runtime'; | ||
import '@everymatrix/general-styling-wrapper'; | ||
@@ -47,2 +48,3 @@ import { BonusElevateShopItemInfo } from '../../models/bonus-elevate-shop-item'; | ||
isRedeeming: boolean; | ||
redeemGiftButton: EventEmitter<Object>; | ||
private bindedHandler; | ||
@@ -49,0 +51,0 @@ deviceType: string; |
{ | ||
"name": "@everymatrix/bonus-elevate-shop-item", | ||
"version": "1.43.3", | ||
"version": "1.43.4", | ||
"main": "./dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
460386
8228