@everymatrix/player-elevate-card 1.53.0 → 1.53.10

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 (23) hide show
  1. package/dist/cjs/general-styling-wrapper_5.cjs.entry.js +78 -32
  2. package/dist/cjs/{index-fcb2d8d9.js → index-4decce07.js} +240 -138
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/player-elevate-card.cjs.js +2 -2
  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 +39 -7
  9. package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +51 -10
  10. package/dist/esm/general-styling-wrapper_5.entry.js +78 -32
  11. package/dist/esm/{index-94328d47.js → index-932d5ca0.js} +240 -138
  12. package/dist/esm/loader.js +2 -2
  13. package/dist/esm/player-elevate-card.js +3 -3
  14. package/dist/player-elevate-card/p-371d393e.entry.js +1 -0
  15. package/dist/player-elevate-card/p-46c78d03.js +2 -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/package.json +1 -1
  20. package/dist/player-elevate-card/p-49062db1.entry.js +0 -1
  21. package/dist/player-elevate-card/p-8dfd18ff.js +0 -2
  22. 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
  23. 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
@@ -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-4decce07.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
@@ -2582,20 +2590,32 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
2582
2590
  const PlayerElevateCard = class {
2583
2591
  constructor(hostRef) {
2584
2592
  index.registerInstance(this, hostRef);
2585
- this.endpoint = undefined;
2593
+ /**
2594
+ * The style that widget shows,available value: Dark, Light
2595
+ * Default: Dark
2596
+ */
2586
2597
  this.theme = 'Dark';
2587
- this.session = undefined;
2588
- this.playerAvatarUrl = undefined;
2598
+ /**
2599
+ * Widget Language to show
2600
+ */
2589
2601
  this.language = 'en';
2590
- this.playerName = undefined;
2602
+ /**
2603
+ * datePattern
2604
+ */
2591
2605
  this.dateFormat = 'yyyy-MM-dd';
2606
+ /**
2607
+ * Client custom styling via inline styles
2608
+ */
2592
2609
  this.clientStyling = '';
2610
+ /**
2611
+ * Client custom styling via url
2612
+ */
2593
2613
  this.clientStylingUrl = '';
2614
+ /**
2615
+ * Translation via url
2616
+ */
2594
2617
  this.translationUrl = '';
2595
- this.pointExpireString = undefined;
2596
2618
  this.playerLevelFlag = 0;
2597
- this.playerElevateLevel = undefined;
2598
- this.elevateWalletTotal = undefined;
2599
2619
  }
2600
2620
  onSessionOrEndpointChange() {
2601
2621
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -2932,9 +2952,6 @@ const PlayerElevateCardData = class {
2932
2952
  constructor(hostRef) {
2933
2953
  index.registerInstance(this, hostRef);
2934
2954
  this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
2935
- this.params = undefined;
2936
- this.playerElevateLevel = undefined;
2937
- this.pointExpireString = undefined;
2938
2955
  }
2939
2956
  handleWindowResizs() {
2940
2957
  this.initLevelProgressbar();
@@ -3102,19 +3119,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
3102
3119
  const PlayerElevateLoyaltycard = class {
3103
3120
  constructor(hostRef) {
3104
3121
  index.registerInstance(this, hostRef);
3105
- this.endpoint = undefined;
3122
+ /**
3123
+ * The style that widget shows,available value: Dark, Light
3124
+ * Default: Dark
3125
+ */
3106
3126
  this.theme = 'Dark';
3107
- this.session = undefined;
3108
- this.playerAvatarUrl = undefined;
3127
+ /**
3128
+ * Widget Language to show
3129
+ */
3109
3130
  this.language = 'en';
3110
- this.playerName = undefined;
3131
+ /**
3132
+ * datePattern
3133
+ */
3111
3134
  this.dateFormat = 'yyyy-MM-dd';
3135
+ /**
3136
+ * Client custom styling via inline styles
3137
+ */
3112
3138
  this.clientStyling = '';
3139
+ /**
3140
+ * Client custom styling via url
3141
+ */
3113
3142
  this.clientStylingUrl = '';
3143
+ /**
3144
+ * Translation via url
3145
+ */
3114
3146
  this.translationUrl = '';
3115
- this.pointExpireString = undefined;
3116
- this.playerElevateLevel = undefined;
3117
- this.elevateWalletTotal = undefined;
3118
3147
  }
3119
3148
  onSessionOrEndpointChange() {
3120
3149
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -3180,23 +3209,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
3180
3209
  const PlayerElevatePointcard = class {
3181
3210
  constructor(hostRef) {
3182
3211
  index.registerInstance(this, hostRef);
3183
- this.isPointDetailCard = this.buttonType === 'earningRule';
3184
- this.endpoint = undefined;
3212
+ /**
3213
+ * The style that widget shows,available value: Dark, Light
3214
+ * Default: Dark
3215
+ */
3185
3216
  this.theme = 'Dark';
3186
- this.session = undefined;
3187
- this.playerAvatarUrl = undefined;
3217
+ /**
3218
+ * Widget Language to show
3219
+ */
3188
3220
  this.language = 'en';
3189
- this.playerName = undefined;
3190
- this.cardTitle = undefined;
3221
+ /**
3222
+ * Check if the card used in points details widget, default: 'earningRule'
3223
+ * value: 'details'/'earningRule'
3224
+ * It effected the button in card
3225
+ * 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
3226
+ * 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
3227
+ */
3191
3228
  this.buttonType = 'earningRule';
3229
+ /**
3230
+ * datePattern
3231
+ */
3192
3232
  this.dateFormat = 'yyyy-MM-dd';
3233
+ /**
3234
+ * Client custom styling via inline styles
3235
+ */
3193
3236
  this.clientStyling = '';
3237
+ /**
3238
+ * Client custom styling via url
3239
+ */
3194
3240
  this.clientStylingUrl = '';
3241
+ /**
3242
+ * Translation via url
3243
+ */
3195
3244
  this.translationUrl = '';
3196
- this.pointExpireString = undefined;
3197
- this.playerElevateLevel = undefined;
3198
- this.elevateWalletTotal = undefined;
3199
- this.elevateSPTotal = undefined;
3245
+ this.isPointDetailCard = this.buttonType === 'earningRule';
3200
3246
  }
3201
3247
  onSessionOrEndpointChange() {
3202
3248
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });