@everymatrix/player-elevate-card 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/cjs/general-styling-wrapper_5.cjs.entry.js +79 -33
  2. package/dist/cjs/{index-fcb2d8d9.js → index-e1db0305.js} +246 -138
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/player-elevate-card.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-elevate-card/player-elevate-card.js +39 -7
  7. package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +2 -5
  8. package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +59 -8
  9. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +51 -10
  10. package/dist/esm/general-styling-wrapper_5.entry.js +79 -33
  11. package/dist/esm/{index-94328d47.js → index-29ae3408.js} +246 -138
  12. package/dist/esm/loader.js +3 -3
  13. package/dist/esm/player-elevate-card.js +4 -4
  14. package/dist/player-elevate-card/p-17e5148c.js +2 -0
  15. package/dist/player-elevate-card/p-33df4709.entry.js +1 -0
  16. package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +2 -0
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +2 -0
  19. package/dist/types/components/player-elevate-loyaltycard/player-elevate-loyaltycard.d.ts +4 -0
  20. package/dist/types/components.d.ts +8 -0
  21. package/package.json +1 -1
  22. package/dist/player-elevate-card/p-08c2b497.entry.js +0 -1
  23. package/dist/player-elevate-card/p-8dfd18ff.js +0 -2
  24. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.d.ts +0 -2
  25. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/packages/stencil/player-elevate-card/stencil.config.dev.d.ts +0 -2
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/index.d.ts +0 -0
  27. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  28. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  29. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-card/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcb2d8d9.js');
5
+ const index = require('./index-e1db0305.js');
6
6
 
7
7
  const mergeTranslations = (url, target) => {
8
8
  return new Promise((resolve) => {
@@ -26,6 +26,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
26
26
  const GeneralStylingWrapper = class {
27
27
  constructor(hostRef) {
28
28
  index.registerInstance(this, hostRef);
29
+ /**
30
+ * Client custom styling via inline styles
31
+ */
32
+ this.clientStyling = '';
33
+ /**
34
+ * Client custom styling via url
35
+ */
36
+ this.clientStylingUrl = '';
37
+ /**
38
+ * Translation via url
39
+ */
40
+ this.translationUrl = '';
29
41
  this.stylingAppends = false;
30
42
  this.setClientStyling = () => {
31
43
  let sheet = document.createElement('style');
@@ -47,10 +59,6 @@ const GeneralStylingWrapper = class {
47
59
  console.log('error ', err);
48
60
  });
49
61
  };
50
- this.clientStyling = '';
51
- this.clientStylingUrl = '';
52
- this.translationUrl = '';
53
- this.targetTranslations = undefined;
54
62
  }
55
63
  componentDidRender() {
56
64
  // start custom styling area
@@ -2481,20 +2489,32 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
2481
2489
  const PlayerElevateCard = class {
2482
2490
  constructor(hostRef) {
2483
2491
  index.registerInstance(this, hostRef);
2484
- this.endpoint = undefined;
2492
+ /**
2493
+ * The style that widget shows,available value: Dark, Light
2494
+ * Default: Dark
2495
+ */
2485
2496
  this.theme = 'Dark';
2486
- this.session = undefined;
2487
- this.playerAvatarUrl = undefined;
2497
+ /**
2498
+ * Widget Language to show
2499
+ */
2488
2500
  this.language = 'en';
2489
- this.playerName = undefined;
2501
+ /**
2502
+ * datePattern
2503
+ */
2490
2504
  this.dateFormat = 'yyyy-MM-dd';
2505
+ /**
2506
+ * Client custom styling via inline styles
2507
+ */
2491
2508
  this.clientStyling = '';
2509
+ /**
2510
+ * Client custom styling via url
2511
+ */
2492
2512
  this.clientStylingUrl = '';
2513
+ /**
2514
+ * Translation via url
2515
+ */
2493
2516
  this.translationUrl = '';
2494
- this.pointExpireString = undefined;
2495
2517
  this.playerLevelFlag = 0;
2496
- this.playerElevateLevel = undefined;
2497
- this.elevateWalletTotal = undefined;
2498
2518
  }
2499
2519
  onSessionOrEndpointChange() {
2500
2520
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -2831,9 +2851,6 @@ const PlayerElevateCardData = class {
2831
2851
  constructor(hostRef) {
2832
2852
  index.registerInstance(this, hostRef);
2833
2853
  this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
2834
- this.params = undefined;
2835
- this.playerElevateLevel = undefined;
2836
- this.pointExpireString = undefined;
2837
2854
  }
2838
2855
  handleWindowResizs() {
2839
2856
  this.initLevelProgressbar();
@@ -3001,19 +3018,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
3001
3018
  const PlayerElevateLoyaltycard = class {
3002
3019
  constructor(hostRef) {
3003
3020
  index.registerInstance(this, hostRef);
3004
- this.endpoint = undefined;
3021
+ /**
3022
+ * The style that widget shows,available value: Dark, Light
3023
+ * Default: Dark
3024
+ */
3005
3025
  this.theme = 'Dark';
3006
- this.session = undefined;
3007
- this.playerAvatarUrl = undefined;
3026
+ /**
3027
+ * Widget Language to show
3028
+ */
3008
3029
  this.language = 'en';
3009
- this.playerName = undefined;
3030
+ /**
3031
+ * datePattern
3032
+ */
3010
3033
  this.dateFormat = 'yyyy-MM-dd';
3034
+ /**
3035
+ * Client custom styling via inline styles
3036
+ */
3011
3037
  this.clientStyling = '';
3038
+ /**
3039
+ * Client custom styling via url
3040
+ */
3012
3041
  this.clientStylingUrl = '';
3042
+ /**
3043
+ * Translation via url
3044
+ */
3013
3045
  this.translationUrl = '';
3014
- this.pointExpireString = undefined;
3015
- this.playerElevateLevel = undefined;
3016
- this.elevateWalletTotal = undefined;
3017
3046
  }
3018
3047
  onSessionOrEndpointChange() {
3019
3048
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -3063,7 +3092,7 @@ const PlayerElevateLoyaltycard = class {
3063
3092
  render() {
3064
3093
  const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
3065
3094
  const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
3066
- return (index.h("div", { key: '2b0944f8317a94621e1bc65bbbb3726654b8963b', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'c6d4dbba143435b4485d7fde91ab0a48a2f6688b', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'e47a4efe925eb35d4449c6ff33a0afef9d284e55', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'a560991893305894ddd41756cd7b3c32d0ef9e03', params: this.paramProxy }), index.h("div", { key: 'ceb8b71386f84f54518a3694535aa16c2c3d3951', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '1df9647c3de42e74adee0f8895511442118ae381', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '569bcd5fc3c578d2e6cc7442d28444e29688660c' }, index.h("div", { key: 'aa40032bff99c5462b906e4427232ca2d4019017', class: "PlayerImg" }, index.h(PlayerAvatar, { key: '7a2d535b0c2029c90b9f1c123f9feebafca6bdde', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '90999da8fc2a3102eac235fcbc8afbec2a2bbdf8', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(PlayerElevateLoyaltyLevel, { key: '67e8bf370b1b77e776fb6d955ae63928fd1338d8', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '1e0fefc6a23f4aeeef5e19828399fe1229a3fc81', class: 'PointsRange' }, index.h(PlayerPoints, { key: 'dd176e624cde3b6f517101d7702a15465305174d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(PlayerPoints, { key: '6cddb64c92545803d08fbbc513cc951b2691a42e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(PlayerLoyaltyProcess, { key: '08817ca979ea784aeb735579b0d52e5150eb0852' }), index.h("div", { key: 'be9a1b40a8145d5e6d329d8e9f047296e84dd24b', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: 'f9cbb7d06e34717cb9f74cb8d2e506e49969e775', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
3095
+ return (index.h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'b53e4b59d4ee55a2f567efa09afab3d72969e6e4', params: this.paramProxy }), index.h("div", { key: '1f3e504440bab2df3a181058fad7149c85c48c14', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '5c104f5ba1a018219c6ed5f6e50af99b035a0344' }, index.h("div", { key: 'bd94591e6ab9298ab7c769fa48efaf314dc1a63b', class: "PlayerImg" }, index.h(PlayerAvatar, { key: '928849ce86d8c7a483eba7850efc83f8149bae43', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '37192c9b8502eb3c7d93914369df2d784c17e9f7', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(PlayerElevateLoyaltyLevel, { key: '2684a177f4bb1053c4587fd4158666fb35ca23f4', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '173a37c63868f2d900c12af3ffc2d9a4a57550e4', class: 'PointsRange' }, index.h(PlayerPoints, { key: 'a7111154f7dc547e0b05c70d24508bdd75c5d882', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(PlayerPoints, { key: 'ad31574e7db81a7ecb7a06b28b1d4968cbcab93e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(PlayerLoyaltyProcess, { key: '88ddfdb326edfb1de9519da6b3d0e5b514725e27' }), index.h("div", { key: 'b9c79555a8001bd2c754d7573df04016da235c84', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '02da725060c9db4a8c1c2e8bad3426894d7f8f2c', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
3067
3096
  }
3068
3097
  static get watchers() { return {
3069
3098
  "session": ["onSessionOrEndpointChange"],
@@ -3079,23 +3108,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
3079
3108
  const PlayerElevatePointcard = class {
3080
3109
  constructor(hostRef) {
3081
3110
  index.registerInstance(this, hostRef);
3082
- this.isPointDetailCard = this.buttonType === 'earningRule';
3083
- this.endpoint = undefined;
3111
+ /**
3112
+ * The style that widget shows,available value: Dark, Light
3113
+ * Default: Dark
3114
+ */
3084
3115
  this.theme = 'Dark';
3085
- this.session = undefined;
3086
- this.playerAvatarUrl = undefined;
3116
+ /**
3117
+ * Widget Language to show
3118
+ */
3087
3119
  this.language = 'en';
3088
- this.playerName = undefined;
3089
- this.cardTitle = undefined;
3120
+ /**
3121
+ * Check if the card used in points details widget, default: 'earningRule'
3122
+ * value: 'details'/'earningRule'
3123
+ * It effected the button in card
3124
+ * 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
3125
+ * 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
3126
+ */
3090
3127
  this.buttonType = 'earningRule';
3128
+ /**
3129
+ * datePattern
3130
+ */
3091
3131
  this.dateFormat = 'yyyy-MM-dd';
3132
+ /**
3133
+ * Client custom styling via inline styles
3134
+ */
3092
3135
  this.clientStyling = '';
3136
+ /**
3137
+ * Client custom styling via url
3138
+ */
3093
3139
  this.clientStylingUrl = '';
3140
+ /**
3141
+ * Translation via url
3142
+ */
3094
3143
  this.translationUrl = '';
3095
- this.pointExpireString = undefined;
3096
- this.playerElevateLevel = undefined;
3097
- this.elevateWalletTotal = undefined;
3098
- this.elevateSPTotal = undefined;
3144
+ this.isPointDetailCard = this.buttonType === 'earningRule';
3099
3145
  }
3100
3146
  onSessionOrEndpointChange() {
3101
3147
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });