@kompasid/lit-web-components 0.9.41 → 0.9.43

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 (34) hide show
  1. package/demo/header.html +3 -3
  2. package/demo/paywall.html +17 -20
  3. package/dist/src/components/kompasid-header-account/KompasHeaderAccount.d.ts +3 -7
  4. package/dist/src/components/kompasid-header-account/KompasHeaderAccount.js +9 -29
  5. package/dist/src/components/kompasid-header-account/KompasHeaderAccount.js.map +1 -1
  6. package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.d.ts +3 -15
  7. package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.js +9 -30
  8. package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.js.map +1 -1
  9. package/dist/src/components/kompasid-header-account-profile/KompasHeaderAccountProfile.d.ts +0 -1
  10. package/dist/src/components/kompasid-header-account-profile/KompasHeaderAccountProfile.js +0 -4
  11. package/dist/src/components/kompasid-header-account-profile/KompasHeaderAccountProfile.js.map +1 -1
  12. package/dist/src/components/kompasid-paywall/KompasPaywall.js +11 -11
  13. package/dist/src/components/kompasid-paywall/KompasPaywall.js.map +1 -1
  14. package/dist/src/components/kompasid-paywall/types.d.ts +4 -0
  15. package/dist/src/components/kompasid-paywall/types.js.map +1 -1
  16. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.d.ts +2 -2
  17. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js +187 -159
  18. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
  19. package/dist/tailwind/tailwind.js +78 -91
  20. package/dist/tailwind/tailwind.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +1 -1
  23. package/src/components/kompasid-header-account/KompasHeaderAccount.ts +6 -14
  24. package/src/components/kompasid-header-account/readme.md +29 -7
  25. package/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.ts +8 -24
  26. package/src/components/kompasid-header-account-profile/KompasHeaderAccountProfile.ts +0 -1
  27. package/src/components/kompasid-paywall/KompasPaywall.ts +11 -11
  28. package/src/components/kompasid-paywall/readme.md +74 -352
  29. package/src/components/kompasid-paywall/types.ts +4 -0
  30. package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +210 -199
  31. package/src/components/kompasid-paywall-body/readme.md +3 -0
  32. package/tailwind/tailwind.css +78 -91
  33. package/tailwind/tailwind.ts +78 -91
  34. package/tailwind.config.js +1 -1
@@ -6,10 +6,9 @@ Ini adalah komponen _header account_ yang akan di implementasi pada header
6
6
  | Property | Attribute | Description | Type | Default | Required |
7
7
  | ------------------------------ | ------------------------------ | --------------------------------------------- | ------------------------- | -------------- | -------- |
8
8
  | `userData` | `userData` | `Object containing user data` | `object` | `{}` | `yes` |
9
- | `logoutUrl` | `logoutUrl` | `URL to log the user out` | `string` | `''` | `no` |
10
- | `manageAccountUrl` | `manageAccountUrl` | `URL to manage user account settings` | `string` | `''` | `no` |
11
- | `notificationUrl` | `notificationUrl` | `URL to view user notifications` | `string` | `''` | `no` |
12
- | `readLaterUrl` | `readLaterUrl` | `URL to access the "Read Later" feature` | `string` | `''` | `no` |
9
+ | `logout_url` | `logout_url` | `URL to log the user out` | `string` | `'https://auth.kompas.id/login'` | `no` |
10
+ | `manage_account_url` | `manage_account_url` | `URL to manage user account settings` | `string` | `'https://manage-account.kompas.id/manage-account/my-account'` | `no` |
11
+ | `read_later_url` | `read_later_url` | `URL to access the "Read Later" feature` | `string` | `'https://www.kompas.id/baca-nanti'` | `no` |
13
12
  | `sidebarTopSpacing` | `sidebarTopSpacing` | `Top spacing for the sidebar (in pixels)` | `number` | `0` | `no` |
14
13
  | `subscriptionUrl` | `subscriptionUrl` | `URL to manage subscriptions` | `string` | `''` | `no` |
15
14
  | `theme` | `theme` | `Component theme` | `'default' \| 'primary'` | `'primary'` | `no` |
@@ -24,6 +23,29 @@ Ini adalah komponen _header account_ yang akan di implementasi pada header
24
23
  | `isGracePeriod` | `isGracePeriod` | Boolean flag indicating whether the user is currently in a grace period. Set to `true` if the grace period array is not empty. **However**, if both active membership and grace period arrays are not empty, this value must be `false`. | `boolean` | `false` | yes |
25
24
  | `isMembership` | `isMembership` | Boolean flag indicating whether the user has an active membership. Set to `true` if the active membership array is not empty. | `boolean` | `false` | yes |
26
25
 
26
+ ## Properties Grace Period Default
27
+ Property dapat dilihat di [Readme Grace Period](https://github.com/pt-kompas-media-nusantara/lit-web-component/tree/master/src/components/kompasid-grace-period).
28
+ Pemakaian kalo memang tidak ada perubahan, lebih baik tidak digunakan atau di konfirmasi lagi ke PM. Kegunaan property ini hanya pada saat status grace period aktif dan biasanya di biarkan secara default kalau di header.
29
+
30
+ | Property | Attribute | Description | Type | Default | Required |
31
+ | ------------------------------ | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | -------------- | -------- |
32
+ | `paywall_location` | `paywall_location` | | `string` | `''` | no |
33
+ | `paywall_subscription_package` | `paywall_subscription_package` | | `string` | `''` | no |
34
+ | `paywall_subscription_id` | `paywall_subscription_id` | | `number` | `0` | no |
35
+ | `paywall_subscription_price` | `paywall_subscription_price` | | `number` | `0` | no |
36
+ | `paywall_position` | `paywall_position` | | `number` | `0` | no |
37
+ | `tracker_page_type` | `tracker_page_type` | | `string` | `''` | no |
38
+ | `tracker_content_id` | `tracker_content_id` | | `string` | `''` | no |
39
+ | `tracker_content_title` | `tracker_content_title` | | `string` | `''` | no |
40
+ | `tracker_content_categories` | `tracker_content_categories` | | `string` | `''` | no |
41
+ | `tracker_content_type` | `tracker_content_type` | | `string` | `''` | no |
42
+ | `tracker_user_type` | `tracker_user_type` | | `string` | `''` | no |
43
+ | `tracker_subscription_status` | `tracker_subscription_status` | | `string` | `''`` | no |
44
+ | `tracker_page_domain` | `tracker_page_domain` | | `string` | `''` | no |
45
+ | `tracker_metered_wall_type` | `tracker_metered_wall_type` | | `string` | `''` | no |
46
+ | `tracker_metered_wall_balance` | `tracker_metered_wall_balance` | | `number` | `0` | no |
47
+
48
+
27
49
  ---
28
50
 
29
51
  ## Usage
@@ -36,12 +58,12 @@ API Last Order = "https://api.kompas.cloud/order/api/v1/product/latest"
36
58
 
37
59
  ```js
38
60
  <kompas-header-account
39
- logoutUrl="https://account.kompas.cloud/logout"
40
- manageAccountUrl="https://account.kompas.cloud/manage-account"
61
+ logout_url="https://account.kompas.cloud/logout"
62
+ manage_account_url="https://account.kompas.cloud/manage-account"
41
63
  notificationUrl="https://account.kompas.cloud/manage-account/notification"
42
64
  :sidebarTopSpacing="48"
43
65
  subscriptionUrl="https://www.kompas.id/berlangganan"
44
- readLaterUrl="https://www.kompas.id/bacananti"
66
+ read_later_url="https://www.kompas.id/bacananti"
45
67
  :paywall_subscription_id="98888"
46
68
  theme="primary"
47
69
  :userData="userData"
@@ -57,38 +57,22 @@ export class KompasHeaderAccountMenu extends LitElement {
57
57
 
58
58
  @state() clipboardClicked: boolean = false
59
59
 
60
- /**
61
- * Cart Url
62
- */
63
- @property({ type: String }) cartUrl = 'https://gerai.kompas.id/cart'
64
-
65
60
  /**
66
61
  * Logout Url
67
62
  */
68
- @property({ type: String }) logoutUrl = 'https://account.kompas.id/logout'
63
+ @property({ type: String }) logout_url = 'https://auth.kompas.id/logout'
69
64
 
70
65
  /**
71
66
  * Manage Account Url
72
67
  */
73
- @property({ type: String }) manageAccountUrl =
74
- 'https://account.kompas.id/manage-account/my-account'
75
-
76
- /**
77
- * Notification Url
78
- */
79
- @property({ type: String }) notificationUrl =
80
- 'https://account.kompas.id/manage-account/notification'
81
-
82
- /**
83
- * Orders Url
84
- */
85
- @property({ type: String }) ordersUrl =
86
- 'https://gerai.kompas.id/my-account/orders'
68
+ @property({ type: String }) manage_account_url =
69
+ 'https://manage-account.kompas.id/manage-account/my-account'
87
70
 
88
71
  /**
89
72
  * Read Later Url
90
73
  */
91
- @property({ type: String }) readLaterUrl = 'https://www.kompas.id/baca-nanti'
74
+ @property({ type: String }) read_later_url =
75
+ 'https://www.kompas.id/baca-nanti'
92
76
 
93
77
  // Render Total Bubble
94
78
  private renderTotalBubble = (total: number) => {
@@ -127,7 +111,7 @@ export class KompasHeaderAccountMenu extends LitElement {
127
111
  <p class="header-account-menu--title">Keranjang</p>
128
112
  </a> -->
129
113
  <!-- Manage Account -->
130
- <a href=${this.manageAccountUrl} class="header-account-menu--item">
114
+ <a href=${this.manage_account_url} class="header-account-menu--item">
131
115
  <div class="icon icon-md icon-blue-600">
132
116
  ${unsafeSVG(getFontAwesomeIcon('fas', 'user-gear'))}
133
117
  </div>
@@ -139,14 +123,14 @@ export class KompasHeaderAccountMenu extends LitElement {
139
123
  <p class="header-account-menu--title">Transaksi</p>
140
124
  </a> -->
141
125
  <!-- Read Later -->
142
- <a href=${this.readLaterUrl} class="header-account-menu--item">
126
+ <a href=${this.read_later_url} class="header-account-menu--item">
143
127
  <div class="icon icon-md icon-blue-600">
144
128
  ${unsafeSVG(getFontAwesomeIcon('fas', 'bookmark'))}
145
129
  </div>
146
130
  <p class="header-account-menu--title">Baca Nanti</p>
147
131
  </a>
148
132
  <!-- Logout -->
149
- <a href=${this.logoutUrl} class="header-account-menu--item">
133
+ <a href=${this.logout_url} class="header-account-menu--item">
150
134
  <div class="icon icon-md icon-blue-600">
151
135
  ${unsafeSVG(getFontAwesomeIcon('fas', 'right-from-bracket'))}
152
136
  </div>
@@ -25,7 +25,6 @@ export class KompasHeaderAccountProfile extends LitElement {
25
25
  @property({ type: String }) userInitialName = ''
26
26
  @property({ type: Object }) userData = {} as User
27
27
  @property({ type: String }) subscriptionUrl = ''
28
- @property({ type: Number }) totalGracePeriod = 0
29
28
  @property({ type: String }) openFrom = ''
30
29
  /**
31
30
  * Props For Grace Period Tracker
@@ -109,6 +109,7 @@ export class KompasPaywall extends LitElement {
109
109
  mockResult: PaywallProduct = {
110
110
  informations: {
111
111
  title: '',
112
+ excerpt: '',
112
113
  description: [],
113
114
  register: {
114
115
  img: 'https://www.kompas.id/img/backgrounds/ilustrasi-banner-registration.png',
@@ -279,7 +280,7 @@ export class KompasPaywall extends LitElement {
279
280
  async getPaywallData() {
280
281
  try {
281
282
  const [paywallResponse, contextualResponse] = await Promise.all([
282
- fetch('https://cdn-www.kompas.id/web-component/paywall.json'),
283
+ fetch('https://cdn-www.kompas.id/web-component/hard-paywall.json'),
283
284
  fetch(
284
285
  'https://cdn-www.kompas.id/web-component/contextual_paywall.json'
285
286
  ),
@@ -305,10 +306,13 @@ export class KompasPaywall extends LitElement {
305
306
  ...this.mockResult.informations,
306
307
  title: json[defaultType][typeContextual]
307
308
  ? json[defaultType][typeContextual].head
308
- : json[defaultType].head,
309
+ : '',
310
+ excerpt: json[defaultType][typeContextual]
311
+ ? json[defaultType][typeContextual].description
312
+ : '',
309
313
  description: json[defaultType][typeContextual]
310
314
  ? json[defaultType][typeContextual].content
311
- : json[defaultType].content,
315
+ : '',
312
316
  cta: json[defaultType].cta,
313
317
  typeVariant: json[defaultType][typeContextual]
314
318
  ? json[defaultType][typeContextual].variant
@@ -318,7 +322,7 @@ export class KompasPaywall extends LitElement {
318
322
  ...this.mockResult.packages,
319
323
  memberships: json[defaultType][typeContextual]
320
324
  ? json[defaultType][typeContextual].memberships
321
- : json[defaultType].memberships,
325
+ : [],
322
326
  swgEnable: json[defaultType].swgEnable,
323
327
  freeTrial: json[defaultType].freeTrial,
324
328
  swgContent: json[defaultType].swgContent,
@@ -452,7 +456,7 @@ export class KompasPaywall extends LitElement {
452
456
  <div
453
457
  class="flex flex-col ${this.theme === 'dark'
454
458
  ? 'bg-dark-5'
455
- : 'bg-white'} items-center justify-center mx-4 md:mx-0"
459
+ : 'bg-white'} items-center justify-center px-4 md:px-0"
456
460
  >
457
461
  <div class="flex flex-col w-full max-w-screen-md my-5">
458
462
  <kompasid-paywall-information-header
@@ -503,7 +507,7 @@ export class KompasPaywall extends LitElement {
503
507
  <div
504
508
  class="flex flex-col ${this.theme === 'dark'
505
509
  ? 'bg-dark-5'
506
- : 'bg-white'} items-center justify-center mx-4 md:mx-0"
510
+ : 'bg-white'} items-center justify-center px-4 md:px-0"
507
511
  >
508
512
  <div class="flex flex-col w-full max-w-screen-md my-5">
509
513
  <kompasid-paywall-body
@@ -602,11 +606,7 @@ export class KompasPaywall extends LitElement {
602
606
  return html`
603
607
  <div>
604
608
  ${this.transitionBox()}
605
- <div
606
- class="flex flex-col ${this.theme === 'dark'
607
- ? 'bg-dark-5'
608
- : 'bg-white'} items-center justify-center mx-4 md:mx-0"
609
- >
609
+ <div class="flex flex-col">
610
610
  <div class="flex flex-col w-full max-w-screen-md my-5">
611
611
  <kompasid-paywall-body
612
612
  tracker_content_type=${this.tracker_content_type}
@@ -38,359 +38,81 @@ Terdapat skenario contextual paywall jika beberapa props tracker di isi seperti
38
38
  | `userGuid` | `user-guid` | | `string` | `''` | `false` |
39
39
 
40
40
  ## JSON ([https://cdn-www.kompas.id/web-component/paywall.json](https://cdn-www.kompas.id/web-component/paywall.json))
41
-
42
- Example:
43
-
44
41
  ```json
45
- {
46
- "proMiningArticle": {
47
- "head": "Akses Penuh Kompas Pro dengan Berlangganan",
48
- "content": [
49
- "Analisis tajam dari pakar industri",
50
- "Indonesia Mining Outlook",
51
- "Kompas Mining Connect",
52
- "Newsletter eksklusif",
53
- "Akses penuh Kompas.id Premium"
54
- ],
55
- "memberships": [
56
- {
57
- "title": "Kompas Pro Mining 1 Tahun",
58
- "percentage": 0,
59
- "price": 1500000,
60
- "discountPrice": 0,
61
- "savingPrice": 0,
62
- "periode": "Tahun",
63
- "isHighlight": false,
64
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891033&autorenewal=1&referrer=",
65
- "package": "Cash-B2C-Pro-Mining-12",
66
- "subscriptionId": "9891033",
67
- "position": 1
68
- }
69
- ],
70
- "swgEnable": false,
71
- "swgContent": {
72
- "introductory": {
73
- "price": "Rp 30.000",
74
- "description": "untuk 1 bulan pertama",
75
- "duration": ""
76
- },
77
- "default": {
78
- "price": "",
79
- "description": "Berlangganan lebih mudah dengan Google",
80
- "duration": ""
81
- }
82
- },
83
- "cta": {
84
- "show": true,
85
- "text": "Keunggulan Kompas Pro",
86
- "url": "https://pro.kompas.id/"
87
- }
88
- },
89
- "proMiningOutlook": {
90
- "head": "Akses Penuh Kompas Pro dengan Berlangganan",
91
- "content": [
92
- "Analisis tajam dari pakar industri",
93
- "Indonesia Mining Outlook",
94
- "Kompas Mining Connect",
95
- "Newsletter eksklusif",
96
- "Akses penuh Kompas.id Premium"
97
- ],
98
- "memberships": [
99
- {
100
- "title": "Kompas Pro Mining 1 Tahun",
101
- "percentage": 0,
102
- "price": 1500000,
103
- "discountPrice": 0,
104
- "savingPrice": 0,
105
- "periode": "Tahun",
106
- "isHighlight": false,
107
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891033&autorenewal=1&referrer=",
108
- "package": "Cash-B2C-Pro-Mining-12",
109
- "subscriptionId": "9891033",
110
- "position": 1
111
- }
112
- ],
113
- "swgEnable": false,
114
- "swgContent": {
115
- "introductory": {
116
- "price": "Rp 30.000",
117
- "description": "untuk 1 bulan pertama",
118
- "duration": ""
119
- },
120
- "default": {
121
- "price": "",
122
- "description": "Berlangganan lebih mudah dengan Google",
123
- "duration": ""
124
- }
125
- },
126
- "cta": {
127
- "show": true,
128
- "text": "Keunggulan Kompas Pro",
129
- "url": "https://pro.kompas.id/"
130
- }
131
- },
132
- "epaper": {
133
- "head": "Buat Ramadhan Lebih Bermakna, Akses ePaper Ini dengan Berlangganan",
134
- "content": [
135
- "10+ buku digital dan 5+ Political Insight eksklusif di aplikasi",
136
- "Akses ePaper hingga 30 edisi terakhir",
137
- "Undangan prioritas webinar eksklusif bersama redaksi",
138
- "Klaim voucer digital Hotel Santika dan mitra Kompas.id lainnya"
139
- ],
140
- "memberships": [
141
- {
142
- "title": "Kompas Digital Premium 12 Bulan (Hemat 70%)",
143
- "percentage": 70,
144
- "price": 110000,
145
- "discountPrice": 360000,
146
- "savingPrice": 9000,
147
- "periode": "Tahun",
148
- "isHighlight": true,
149
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891038&autorenewal=1&referrer=",
150
- "package": "cash-b2c-kdp-regular-12-1000002",
151
- "subscriptionId": "9891038",
152
- "position": 1
153
- },
154
- {
155
- "title": "Kompas Digital Premium 1 Bulan",
156
- "percentage": 0,
157
- "discountPrice": 0,
158
- "price": 20000,
159
- "periode": "Bulan",
160
- "isHighlight": false,
161
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891075&autorenewal=1&referrer=",
162
- "package": "cash-b2c-kdp-regular-1-1000042",
163
- "subscriptionId": "9891075",
164
- "position": 2
165
- }
166
- ],
167
- "swgEnable": true,
168
- "swgContent": {
169
- "introductory": {
170
- "price": "Rp 30.000",
171
- "description": "untuk 1 bulan pertama",
172
- "duration": ""
173
- },
174
- "default": {
175
- "price": "",
176
- "description": "Berlangganan lebih mudah dengan Google",
177
- "duration": ""
178
- }
179
- },
180
- "cta": {
181
- "show": true,
182
- "text": "Lihat Paket Lainnya",
183
- "url": "https://www.kompas.id/berlangganan/v2"
184
- }
185
- },
186
- "reguler": {
187
- "typeA": {
188
- "head": "Tingkatkan Literasi di Bulan Suci Dengan Artikel Penuh Inspirasi Type A",
189
- "content": [
190
- "10+ buku digital dan 5+ Political Insight eksklusif di aplikasi",
191
- "Akses ePaper hingga 30 edisi terakhir",
192
- "Undangan prioritas webinar eksklusif bersama redaksi",
193
- "Klaim voucer digital Hotel Santika dan mitra Kompas.id lainnya"
194
- ],
195
- "memberships": [
196
- {
197
- "title": "Kompas Digital Premium 12 Bulan (Hemat 70%)",
198
- "percentage": 70,
199
- "price": 110000,
200
- "discountPrice": 360000,
201
- "savingPrice": 9000,
202
- "periode": "Tahun",
203
- "isHighlight": true,
204
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891038&autorenewal=1&referrer=",
205
- "package": "cash-b2c-kdp-regular-12-1000002",
206
- "subscriptionId": "9891038",
207
- "position": 1
208
- },
209
- {
210
- "title": "Kompas Digital Premium 1 Bulan",
211
- "percentage": 0,
212
- "discountPrice": 0,
213
- "price": 20000,
214
- "periode": "Bulan",
215
- "isHighlight": false,
216
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891075&autorenewal=1&referrer=",
217
- "package": "cash-b2c-kdp-regular-1-1000042",
218
- "subscriptionId": "9891075",
219
- "position": 2
220
- }
221
- ],
222
- "variant": "A"
223
- },
224
- "typeB": {
225
- "head": "Tingkatkan Literasi di Bulan Suci Dengan Artikel Penuh Inspirasi Type B",
226
- "content": [
227
- "10+ buku digital dan 5+ Political Insight eksklusif di aplikasi",
228
- "Akses ePaper hingga 30 edisi terakhir",
229
- "Undangan prioritas webinar eksklusif bersama redaksi",
230
- "Klaim voucer digital Hotel Santika dan mitra Kompas.id lainnya"
231
- ],
232
- "memberships": [
233
- {
234
- "title": "Kompas Digital Premium 12 Bulan (Hemat 70%)",
235
- "percentage": 70,
236
- "price": 110000,
237
- "discountPrice": 360000,
238
- "savingPrice": 9000,
239
- "periode": "Tahun",
240
- "isHighlight": true,
241
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891038&autorenewal=1&referrer=",
242
- "package": "cash-b2c-kdp-regular-12-1000002",
243
- "subscriptionId": "9891038",
244
- "position": 1
245
- },
246
- {
247
- "title": "Kompas Digital Premium 1 Bulan",
248
- "percentage": 0,
249
- "discountPrice": 0,
250
- "price": 20000,
251
- "periode": "Bulan",
252
- "isHighlight": false,
253
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891075&autorenewal=1&referrer=",
254
- "package": "cash-b2c-kdp-regular-1-1000042",
255
- "subscriptionId": "9891075",
256
- "position": 2
257
- }
258
- ],
259
- "variant": "B"
260
- },
261
- "swgEnable": true,
262
- "swgContent": {
263
- "introductory": {
264
- "price": "Rp 30.000",
265
- "description": "untuk 1 bulan pertama",
266
- "duration": ""
267
- },
268
- "default": {
269
- "price": "",
270
- "description": "Berlangganan lebih mudah dengan Google",
271
- "duration": ""
272
- }
273
- },
274
- "cta": {
275
- "show": true,
276
- "text": "Lihat Paket Lainnya",
277
- "url": "https://www.kompas.id/berlangganan/v2"
278
- }
279
- },
280
- "audio": {
281
- "head": "Buat Ramadhan Lebih Bermakna, Akses Audio Berita dan Keuntungan Lainnya Tanpa Jeda",
282
- "content": [
283
- "10+ buku digital dan 5+ Political Insight eksklusif di aplikasi",
284
- "Akses ePaper hingga 30 edisi terakhir",
285
- "Undangan prioritas webinar eksklusif bersama redaksi",
286
- "Klaim voucer digital Hotel Santika dan mitra Kompas.id lainnya"
287
- ],
288
- "memberships": [
289
- {
290
- "title": "Kompas Digital Premium 12 Bulan (Hemat 70%)",
291
- "percentage": 70,
292
- "price": 110000,
293
- "discountPrice": 360000,
294
- "savingPrice": 9000,
295
- "periode": "Tahun",
296
- "isHighlight": true,
297
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891038&autorenewal=1&referrer=",
298
- "package": "cash-b2c-kdp-regular-12-1000002",
299
- "subscriptionId": "9891038",
300
- "position": 1
301
- },
302
- {
303
- "title": "Kompas Digital Premium 1 Bulan",
304
- "percentage": 0,
305
- "discountPrice": 0,
306
- "price": 20000,
307
- "periode": "Bulan",
308
- "isHighlight": false,
309
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891075&autorenewal=1&referrer=",
310
- "package": "cash-b2c-kdp-regular-1-1000042",
311
- "subscriptionId": "9891075",
312
- "position": 2
313
- }
314
- ],
315
- "swgEnable": true,
316
- "swgContent": {
317
- "introductory": {
318
- "price": "Rp 30.000",
319
- "description": "Berlangganan dengan Harga Pertama",
320
- "duration": ""
321
- },
322
- "default": {
323
- "price": "",
324
- "description": "Berlangganan lebih mudah dengan Google",
325
- "duration": ""
326
- }
327
- },
328
- "cta": {
329
- "show": true,
330
- "text": "Lihat Paket Lainnya",
331
- "url": "https://www.kompas.id/berlangganan/v2"
332
- }
333
- },
334
- "custom": {
335
- "head": "ini title custom",
336
- "content": [
337
- "Akses seluruh konten Kompas.id web dan aplikasi",
338
- "ePaper hingga 30 edisi terakhir",
339
- "Artikel Riset dan Opini eksklusif dari para ahli",
340
- "Buku digital tiap bulannya di aplikasi"
341
- ],
342
- "memberships": [
343
- {
344
- "title": "Kompas Digital Premium 12 Bulan (Hemat 70%)",
345
- "percentage": 70,
346
- "price": 110000,
347
- "discountPrice": 360000,
348
- "savingPrice": 9000,
349
- "periode": "Tahun",
350
- "isHighlight": true,
351
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9802032&autorenewal=1&referrer=",
352
- "package": "Cash-B2C-Halaman Berlangganan-Reguler_Digital-KDP 12",
353
- "subscriptionId": "9802032",
354
- "position": 1
355
- },
356
- {
357
- "title": "Kompas Digital Premium 1 Bulan",
358
- "percentage": 0,
359
- "discountPrice": 0,
360
- "price": 15000,
361
- "periode": "Bulan",
362
- "isHighlight": false,
363
- "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9802035&autorenewal=1&referrer=",
364
- "package": "Cash-B2C-Halaman Berlangganan-Reguler_Digital-KDP 1",
365
- "subscriptionId": "9802035",
366
- "position": 2
367
- }
368
- ],
369
- "freeTrial": {
370
- "packageText": "untuk 3 hari pertama",
371
- "desktopText": "Coba gratis 3 hari Kompas.id melalui aplikasi. Pindai kode QR dengan ponsel atau tablet untuk mengunduh aplikasi.",
372
- "mobileText": "Dapatkan akses gratis selama 3 hari ke konten dan fitur premium Kompas.id di aplikasi."
373
- },
374
- "swgEnable": true,
375
- "swgContent": {
376
- "introductory": {
377
- "price": "Rp 30.000",
378
- "description": "untuk 1 bulan pertama",
379
- "duration": ""
380
- },
381
- "default": {
382
- "price": "",
383
- "description": "Berlangganan lebih mudah dengan Google",
384
- "duration": ""
385
- }
386
- },
387
- "cta": {
388
- "show": true,
389
- "text": "Lihat Paket Lainnya",
390
- "url": "https://www.kompas.id/berlangganan/v2"
391
- }
392
- }
393
- }
42
+ "samplePaywall": {
43
+ "typeA": {
44
+ "variant": "A",
45
+ "head": "Akses Penuh Kompas Professional dengan Berlangganan",
46
+ "description": "Dapatkan laporan mendalam dan analisis tajam untuk para professional.",
47
+ "content": [
48
+ "Analisis tajam dari pakar industri",
49
+ "Indonesia Mining Outlook",
50
+ "Kompas Mining Connect",
51
+ "Newsletter eksklusif",
52
+ "Akses penuh Kompas.id Premium"
53
+ ],
54
+ "memberships": [
55
+ {
56
+ "title": "Kompas Pro Mining 1 Tahun",
57
+ "saveLabel": "",
58
+ "price": 1500000,
59
+ "priceSlice": 0,
60
+ "periode": "Tahun",
61
+ "isHighlight": true,
62
+ "isButtonSolid": true,
63
+ "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891033&autorenewal=1&referrer=",
64
+ "package": "Cash-B2C-Pro-Mining-12",
65
+ "subscriptionId": "9891033",
66
+ "position": 1
67
+ }
68
+ ]
69
+ },
70
+ "typeB": {
71
+ "variant": "B",
72
+ "head": "Akses Penuh Kompas Professional dengan Berlangganan",
73
+ "description": "Dapatkan laporan mendalam dan analisis tajam untuk para professional.",
74
+ "content": [
75
+ "Analisis tajam dari pakar industri",
76
+ "Indonesia Mining Outlook",
77
+ "Kompas Mining Connect",
78
+ "Newsletter eksklusif",
79
+ "Akses penuh Kompas.id Premium"
80
+ ],
81
+ "memberships": [
82
+ {
83
+ "title": "Kompas Pro Mining 1 Tahun",
84
+ "saveLabel": "",
85
+ "price": 1500000,
86
+ "priceSlice": 0,
87
+ "periode": "Tahun",
88
+ "isHighlight": true,
89
+ "isButtonSolid": true,
90
+ "url": "https://checkoutv2.kompas.id/v2/kdp?productId=9891033&autorenewal=1&referrer=",
91
+ "package": "Cash-B2C-Pro-Mining-12",
92
+ "subscriptionId": "9891033",
93
+ "position": 1
94
+ }
95
+ ]
96
+ },
97
+ "swgEnable": false,
98
+ "swgContent": {
99
+ "introductory": {
100
+ "price": "Rp 30.000",
101
+ "description": "untuk 1 bulan pertama",
102
+ "duration": ""
103
+ },
104
+ "default": {
105
+ "price": "",
106
+ "description": "Berlangganan lebih mudah dengan Google",
107
+ "duration": ""
108
+ }
109
+ },
110
+ "cta": {
111
+ "show": true,
112
+ "text": "Keunggulan Kompas Professional",
113
+ "url": "https://pro.kompas.id/"
114
+ }
115
+ }
394
116
  ```
395
117
 
396
118
  ## JSON ([https://cdn-www.kompas.id/web-component/contextual_paywall.json](https://cdn-www.kompas.id/web-component/contextual_paywall.json))