@kompasid/lit-web-components 0.9.46 → 0.9.48

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.
@@ -60,19 +60,17 @@ export class KompasHeaderAccountMenu extends LitElement {
60
60
  /**
61
61
  * Logout Url
62
62
  */
63
- @property({ type: String }) logout_url = 'https://auth.kompas.id/logout'
63
+ @property({ type: String }) logout_url = ''
64
64
 
65
65
  /**
66
66
  * Manage Account Url
67
67
  */
68
- @property({ type: String }) manage_account_url =
69
- 'https://manage-account.kompas.id/manage-account/my-account'
68
+ @property({ type: String }) manage_account_url = ''
70
69
 
71
70
  /**
72
71
  * Read Later Url
73
72
  */
74
- @property({ type: String }) read_later_url =
75
- 'https://www.kompas.id/baca-nanti'
73
+ @property({ type: String }) read_later_url = ''
76
74
 
77
75
  // Render Total Bubble
78
76
  private renderTotalBubble = (total: number) => {
@@ -95,6 +93,16 @@ export class KompasHeaderAccountMenu extends LitElement {
95
93
  `
96
94
  }
97
95
 
96
+ private komputasiUrl() {
97
+ return {
98
+ read_later_url: this.read_later_url || 'https://www.kompas.id/baca-nanti',
99
+ manage_account_url:
100
+ this.manage_account_url ||
101
+ 'https://manage-account.kompas.id/manage-account/my-account',
102
+ logout_url: this.logout_url || 'https://auth.kompas.id/logout',
103
+ }
104
+ }
105
+
98
106
  override async connectedCallback() {
99
107
  super.connectedCallback()
100
108
  }
@@ -111,7 +119,10 @@ export class KompasHeaderAccountMenu extends LitElement {
111
119
  <p class="header-account-menu--title">Keranjang</p>
112
120
  </a> -->
113
121
  <!-- Manage Account -->
114
- <a href=${this.manage_account_url} class="header-account-menu--item">
122
+ <a
123
+ href=${this.komputasiUrl().manage_account_url}
124
+ class="header-account-menu--item"
125
+ >
115
126
  <div class="icon icon-md icon-blue-600">
116
127
  ${unsafeSVG(getFontAwesomeIcon('fas', 'user-gear'))}
117
128
  </div>
@@ -123,14 +134,20 @@ export class KompasHeaderAccountMenu extends LitElement {
123
134
  <p class="header-account-menu--title">Transaksi</p>
124
135
  </a> -->
125
136
  <!-- Read Later -->
126
- <a href=${this.read_later_url} class="header-account-menu--item">
137
+ <a
138
+ href=${this.komputasiUrl().read_later_url}
139
+ class="header-account-menu--item"
140
+ >
127
141
  <div class="icon icon-md icon-blue-600">
128
142
  ${unsafeSVG(getFontAwesomeIcon('fas', 'bookmark'))}
129
143
  </div>
130
144
  <p class="header-account-menu--title">Baca Nanti</p>
131
145
  </a>
132
146
  <!-- Logout -->
133
- <a href=${this.logout_url} class="header-account-menu--item">
147
+ <a
148
+ href=${this.komputasiUrl().logout_url}
149
+ class="header-account-menu--item"
150
+ >
134
151
  <div class="icon icon-md icon-blue-600">
135
152
  ${unsafeSVG(getFontAwesomeIcon('fas', 'right-from-bracket'))}
136
153
  </div>
@@ -382,10 +382,6 @@ export class KompasPaywall extends LitElement {
382
382
  tracker_content_variant: trackerVariant,
383
383
  } = this
384
384
 
385
- if (!publishedDate || !trackerVariant || !trackerTags) {
386
- return false
387
- }
388
-
389
385
  const nowDate = new Date()
390
386
  const isoDateString = publishedDate.replace(' ', 'T')
391
387
  const publishedDateObj = new Date(isoDateString)
@@ -667,9 +667,7 @@ export class KompasIdPaywallBody extends LitElement {
667
667
  buttonContent = nothing
668
668
  }
669
669
 
670
- const headerClass = `text-base flex justify-center self-center md:block md:text-xl ${buttonTextColorClass} text-center font-lora font-bold tracking-normal max-w-xs sm:max-w-lg md:w-full md:max-w-[492px] ${
671
- type === 'audio' && 'sm:px-16 md:px-20'
672
- }`
670
+ const headerClass = `text-base flex justify-center self-center md:block md:text-xl ${buttonTextColorClass} text-center font-lora font-bold tracking-normal max-w-xs sm:max-w-lg md:w-full md:max-w-[492px]`
673
671
 
674
672
  return html`
675
673
  <div class="flex w-full items-start justify-center relative md:px-10">
@@ -2223,11 +2223,6 @@ video {
2223
2223
  padding-left: 0px;
2224
2224
  padding-right: 0px;
2225
2225
  }
2226
-
2227
- .sm\:px-16 {
2228
- padding-left: 4rem;
2229
- padding-right: 4rem;
2230
- }
2231
2226
  }
2232
2227
 
2233
2228
  @media (min-width: 768px) {
@@ -2246,11 +2246,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2246
2246
  padding-left: 0px;
2247
2247
  padding-right: 0px;
2248
2248
  }
2249
-
2250
- .sm\\:px-16 {
2251
- padding-left: 4rem;
2252
- padding-right: 4rem;
2253
- }
2254
2249
  }
2255
2250
 
2256
2251
  @media (min-width: 768px) {