@automattic/newspack-blocks 4.23.0 → 4.24.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.
- package/CHANGELOG.md +12 -0
- package/dist/modal.asset.php +1 -1
- package/dist/modal.js +1 -1
- package/dist/modalCheckout.asset.php +1 -1
- package/dist/modalCheckout.js +1 -1
- package/includes/class-modal-checkout.php +4 -0
- package/includes/modal-checkout/class-checkout-data.php +7 -0
- package/languages/newspack-blocks-de_DE.po +26 -26
- package/languages/newspack-blocks-es_ES.po +26 -26
- package/languages/newspack-blocks-fr_BE.po +26 -26
- package/languages/newspack-blocks-nb_NO.po +26 -26
- package/languages/newspack-blocks-pt_PT.po +26 -26
- package/languages/newspack-blocks.pot +27 -27
- package/newspack-blocks.php +2 -2
- package/package.json +2 -2
- package/src/blocks/donate/types.ts +1 -0
- package/src/modal-checkout/analytics/ga4/pagination.js +5 -1
- package/src/modal-checkout/analytics/ga4/utils/index.js +1 -0
- package/src/modal-checkout/modal.js +12 -7
- package/vendor/composer/installed.php +2 -2
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2026-01-
|
|
5
|
+
"POT-Creation-Date: 2026-01-20T14:14:14+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -122,14 +122,14 @@ msgid "Close window"
|
|
|
122
122
|
msgstr ""
|
|
123
123
|
|
|
124
124
|
#. translators: %s: Site name.
|
|
125
|
-
#: includes/class-modal-checkout.php:
|
|
125
|
+
#: includes/class-modal-checkout.php:1515
|
|
126
126
|
#, php-format
|
|
127
127
|
msgid ""
|
|
128
128
|
"You're already a subscriber! You can only have one active subscription at a "
|
|
129
129
|
"time. Thank you for supporting %s."
|
|
130
130
|
msgstr ""
|
|
131
131
|
|
|
132
|
-
#: includes/class-modal-checkout.php:
|
|
132
|
+
#: includes/class-modal-checkout.php:1526
|
|
133
133
|
msgid ""
|
|
134
134
|
"You're already a subscriber! You can only have one subscription at a time. "
|
|
135
135
|
"If you wish to renew an expired subscription, please sign in and visit the "
|
|
@@ -138,98 +138,98 @@ msgstr ""
|
|
|
138
138
|
|
|
139
139
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
140
140
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
141
|
-
#: includes/class-modal-checkout.php:
|
|
141
|
+
#: includes/class-modal-checkout.php:1650
|
|
142
142
|
#: includes/modal-checkout/class-checkout-data.php:68
|
|
143
143
|
#, php-format
|
|
144
144
|
msgid "%1$s: %2$s"
|
|
145
145
|
msgstr ""
|
|
146
146
|
|
|
147
|
-
#: includes/class-modal-checkout.php:
|
|
147
|
+
#: includes/class-modal-checkout.php:2009
|
|
148
148
|
msgid "Billing details"
|
|
149
149
|
msgstr ""
|
|
150
150
|
|
|
151
|
-
#: includes/class-modal-checkout.php:
|
|
151
|
+
#: includes/class-modal-checkout.php:2010
|
|
152
152
|
msgid "Shipping details"
|
|
153
153
|
msgstr ""
|
|
154
154
|
|
|
155
|
-
#: includes/class-modal-checkout.php:
|
|
155
|
+
#: includes/class-modal-checkout.php:2011
|
|
156
156
|
msgid "Gift recipient"
|
|
157
157
|
msgstr ""
|
|
158
158
|
|
|
159
|
-
#: includes/class-modal-checkout.php:
|
|
160
|
-
#: includes/class-modal-checkout.php:
|
|
161
|
-
#: includes/class-modal-checkout.php:
|
|
159
|
+
#: includes/class-modal-checkout.php:2012
|
|
160
|
+
#: includes/class-modal-checkout.php:2013
|
|
161
|
+
#: includes/class-modal-checkout.php:2014
|
|
162
162
|
msgid "Complete your transaction"
|
|
163
163
|
msgstr ""
|
|
164
164
|
|
|
165
|
-
#: includes/class-modal-checkout.php:
|
|
165
|
+
#: includes/class-modal-checkout.php:2015
|
|
166
166
|
msgctxt "Login modal title when logged out user attempts to checkout."
|
|
167
167
|
msgid "Sign in to complete transaction"
|
|
168
168
|
msgstr ""
|
|
169
169
|
|
|
170
|
-
#: includes/class-modal-checkout.php:
|
|
170
|
+
#: includes/class-modal-checkout.php:2020
|
|
171
171
|
msgctxt "Login modal title when unregistered user attempts to checkout"
|
|
172
172
|
msgid "Register to complete transaction"
|
|
173
173
|
msgstr ""
|
|
174
174
|
|
|
175
|
-
#: includes/class-modal-checkout.php:
|
|
175
|
+
#: includes/class-modal-checkout.php:2025
|
|
176
176
|
msgid "Continue browsing"
|
|
177
177
|
msgstr ""
|
|
178
178
|
|
|
179
|
-
#: includes/class-modal-checkout.php:
|
|
179
|
+
#: includes/class-modal-checkout.php:2026
|
|
180
180
|
msgid "This donation is a gift"
|
|
181
181
|
msgstr ""
|
|
182
182
|
|
|
183
|
-
#: includes/class-modal-checkout.php:
|
|
183
|
+
#: includes/class-modal-checkout.php:2031
|
|
184
184
|
msgid "This purchase is a gift"
|
|
185
185
|
msgstr ""
|
|
186
186
|
|
|
187
|
-
#: includes/class-modal-checkout.php:
|
|
187
|
+
#: includes/class-modal-checkout.php:2033
|
|
188
188
|
msgid "Complete transaction"
|
|
189
189
|
msgstr ""
|
|
190
190
|
|
|
191
|
-
#: includes/class-modal-checkout.php:
|
|
191
|
+
#: includes/class-modal-checkout.php:2034
|
|
192
192
|
msgid "Purchase"
|
|
193
193
|
msgstr ""
|
|
194
194
|
|
|
195
|
-
#: includes/class-modal-checkout.php:
|
|
195
|
+
#: includes/class-modal-checkout.php:2035
|
|
196
196
|
msgid "Edit billing information"
|
|
197
197
|
msgstr ""
|
|
198
198
|
|
|
199
|
-
#: includes/class-modal-checkout.php:
|
|
199
|
+
#: includes/class-modal-checkout.php:2036 dist/editor.js:29
|
|
200
200
|
#: src/blocks/checkout-button/edit.js:192
|
|
201
201
|
msgid "Cancel"
|
|
202
202
|
msgstr ""
|
|
203
203
|
|
|
204
|
-
#: includes/class-modal-checkout.php:
|
|
204
|
+
#: includes/class-modal-checkout.php:2037
|
|
205
205
|
msgid "Transaction successful"
|
|
206
206
|
msgstr ""
|
|
207
207
|
|
|
208
|
-
#: includes/class-modal-checkout.php:
|
|
208
|
+
#: includes/class-modal-checkout.php:2038
|
|
209
209
|
msgid ""
|
|
210
210
|
"Your contribution directly funds our work. If you're moved to do so, you can "
|
|
211
211
|
"opt to pay more than the standard rate."
|
|
212
212
|
msgstr ""
|
|
213
213
|
|
|
214
|
-
#: includes/class-modal-checkout.php:
|
|
214
|
+
#: includes/class-modal-checkout.php:2039
|
|
215
215
|
msgid "Thank you for your generosity! We couldn't do this without you!"
|
|
216
216
|
msgstr ""
|
|
217
217
|
|
|
218
|
-
#: includes/class-modal-checkout.php:
|
|
218
|
+
#: includes/class-modal-checkout.php:2040
|
|
219
219
|
msgid "Increase your support"
|
|
220
220
|
msgstr ""
|
|
221
221
|
|
|
222
|
-
#: includes/class-modal-checkout.php:
|
|
222
|
+
#: includes/class-modal-checkout.php:2041
|
|
223
223
|
#: src/modal-checkout/templates/form-coupon.php:20
|
|
224
224
|
msgid "Apply"
|
|
225
225
|
msgstr ""
|
|
226
226
|
|
|
227
|
-
#: includes/class-modal-checkout.php:
|
|
227
|
+
#: includes/class-modal-checkout.php:2042
|
|
228
228
|
msgid "We ran into a problem processing this request. Please try again."
|
|
229
229
|
msgstr ""
|
|
230
230
|
|
|
231
231
|
#. Translators: %s is the site name.
|
|
232
|
-
#: includes/class-modal-checkout.php:
|
|
232
|
+
#: includes/class-modal-checkout.php:2179
|
|
233
233
|
#, php-format
|
|
234
234
|
msgid ""
|
|
235
235
|
"Thank you for supporting %s. Your transaction was completed successfully."
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2026-01-
|
|
5
|
+
"POT-Creation-Date: 2026-01-20T14:14:14+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -122,14 +122,14 @@ msgid "Close window"
|
|
|
122
122
|
msgstr ""
|
|
123
123
|
|
|
124
124
|
#. translators: %s: Site name.
|
|
125
|
-
#: includes/class-modal-checkout.php:
|
|
125
|
+
#: includes/class-modal-checkout.php:1515
|
|
126
126
|
#, php-format
|
|
127
127
|
msgid ""
|
|
128
128
|
"You're already a subscriber! You can only have one active subscription at a "
|
|
129
129
|
"time. Thank you for supporting %s."
|
|
130
130
|
msgstr ""
|
|
131
131
|
|
|
132
|
-
#: includes/class-modal-checkout.php:
|
|
132
|
+
#: includes/class-modal-checkout.php:1526
|
|
133
133
|
msgid ""
|
|
134
134
|
"You're already a subscriber! You can only have one subscription at a time. "
|
|
135
135
|
"If you wish to renew an expired subscription, please sign in and visit the "
|
|
@@ -138,98 +138,98 @@ msgstr ""
|
|
|
138
138
|
|
|
139
139
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
140
140
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
141
|
-
#: includes/class-modal-checkout.php:
|
|
141
|
+
#: includes/class-modal-checkout.php:1650
|
|
142
142
|
#: includes/modal-checkout/class-checkout-data.php:68
|
|
143
143
|
#, php-format
|
|
144
144
|
msgid "%1$s: %2$s"
|
|
145
145
|
msgstr ""
|
|
146
146
|
|
|
147
|
-
#: includes/class-modal-checkout.php:
|
|
147
|
+
#: includes/class-modal-checkout.php:2009
|
|
148
148
|
msgid "Billing details"
|
|
149
149
|
msgstr ""
|
|
150
150
|
|
|
151
|
-
#: includes/class-modal-checkout.php:
|
|
151
|
+
#: includes/class-modal-checkout.php:2010
|
|
152
152
|
msgid "Shipping details"
|
|
153
153
|
msgstr ""
|
|
154
154
|
|
|
155
|
-
#: includes/class-modal-checkout.php:
|
|
155
|
+
#: includes/class-modal-checkout.php:2011
|
|
156
156
|
msgid "Gift recipient"
|
|
157
157
|
msgstr ""
|
|
158
158
|
|
|
159
|
-
#: includes/class-modal-checkout.php:
|
|
160
|
-
#: includes/class-modal-checkout.php:
|
|
161
|
-
#: includes/class-modal-checkout.php:
|
|
159
|
+
#: includes/class-modal-checkout.php:2012
|
|
160
|
+
#: includes/class-modal-checkout.php:2013
|
|
161
|
+
#: includes/class-modal-checkout.php:2014
|
|
162
162
|
msgid "Complete your transaction"
|
|
163
163
|
msgstr ""
|
|
164
164
|
|
|
165
|
-
#: includes/class-modal-checkout.php:
|
|
165
|
+
#: includes/class-modal-checkout.php:2015
|
|
166
166
|
msgctxt "Login modal title when logged out user attempts to checkout."
|
|
167
167
|
msgid "Sign in to complete transaction"
|
|
168
168
|
msgstr ""
|
|
169
169
|
|
|
170
|
-
#: includes/class-modal-checkout.php:
|
|
170
|
+
#: includes/class-modal-checkout.php:2020
|
|
171
171
|
msgctxt "Login modal title when unregistered user attempts to checkout"
|
|
172
172
|
msgid "Register to complete transaction"
|
|
173
173
|
msgstr ""
|
|
174
174
|
|
|
175
|
-
#: includes/class-modal-checkout.php:
|
|
175
|
+
#: includes/class-modal-checkout.php:2025
|
|
176
176
|
msgid "Continue browsing"
|
|
177
177
|
msgstr ""
|
|
178
178
|
|
|
179
|
-
#: includes/class-modal-checkout.php:
|
|
179
|
+
#: includes/class-modal-checkout.php:2026
|
|
180
180
|
msgid "This donation is a gift"
|
|
181
181
|
msgstr ""
|
|
182
182
|
|
|
183
|
-
#: includes/class-modal-checkout.php:
|
|
183
|
+
#: includes/class-modal-checkout.php:2031
|
|
184
184
|
msgid "This purchase is a gift"
|
|
185
185
|
msgstr ""
|
|
186
186
|
|
|
187
|
-
#: includes/class-modal-checkout.php:
|
|
187
|
+
#: includes/class-modal-checkout.php:2033
|
|
188
188
|
msgid "Complete transaction"
|
|
189
189
|
msgstr ""
|
|
190
190
|
|
|
191
|
-
#: includes/class-modal-checkout.php:
|
|
191
|
+
#: includes/class-modal-checkout.php:2034
|
|
192
192
|
msgid "Purchase"
|
|
193
193
|
msgstr ""
|
|
194
194
|
|
|
195
|
-
#: includes/class-modal-checkout.php:
|
|
195
|
+
#: includes/class-modal-checkout.php:2035
|
|
196
196
|
msgid "Edit billing information"
|
|
197
197
|
msgstr ""
|
|
198
198
|
|
|
199
|
-
#: includes/class-modal-checkout.php:
|
|
199
|
+
#: includes/class-modal-checkout.php:2036 dist/editor.js:29
|
|
200
200
|
#: src/blocks/checkout-button/edit.js:192
|
|
201
201
|
msgid "Cancel"
|
|
202
202
|
msgstr ""
|
|
203
203
|
|
|
204
|
-
#: includes/class-modal-checkout.php:
|
|
204
|
+
#: includes/class-modal-checkout.php:2037
|
|
205
205
|
msgid "Transaction successful"
|
|
206
206
|
msgstr ""
|
|
207
207
|
|
|
208
|
-
#: includes/class-modal-checkout.php:
|
|
208
|
+
#: includes/class-modal-checkout.php:2038
|
|
209
209
|
msgid ""
|
|
210
210
|
"Your contribution directly funds our work. If you're moved to do so, you can "
|
|
211
211
|
"opt to pay more than the standard rate."
|
|
212
212
|
msgstr ""
|
|
213
213
|
|
|
214
|
-
#: includes/class-modal-checkout.php:
|
|
214
|
+
#: includes/class-modal-checkout.php:2039
|
|
215
215
|
msgid "Thank you for your generosity! We couldn't do this without you!"
|
|
216
216
|
msgstr ""
|
|
217
217
|
|
|
218
|
-
#: includes/class-modal-checkout.php:
|
|
218
|
+
#: includes/class-modal-checkout.php:2040
|
|
219
219
|
msgid "Increase your support"
|
|
220
220
|
msgstr ""
|
|
221
221
|
|
|
222
|
-
#: includes/class-modal-checkout.php:
|
|
222
|
+
#: includes/class-modal-checkout.php:2041
|
|
223
223
|
#: src/modal-checkout/templates/form-coupon.php:20
|
|
224
224
|
msgid "Apply"
|
|
225
225
|
msgstr ""
|
|
226
226
|
|
|
227
|
-
#: includes/class-modal-checkout.php:
|
|
227
|
+
#: includes/class-modal-checkout.php:2042
|
|
228
228
|
msgid "We ran into a problem processing this request. Please try again."
|
|
229
229
|
msgstr ""
|
|
230
230
|
|
|
231
231
|
#. Translators: %s is the site name.
|
|
232
|
-
#: includes/class-modal-checkout.php:
|
|
232
|
+
#: includes/class-modal-checkout.php:2179
|
|
233
233
|
#, php-format
|
|
234
234
|
msgid ""
|
|
235
235
|
"Thank you for supporting %s. Your transaction was completed successfully."
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2026-01-
|
|
5
|
+
"POT-Creation-Date: 2026-01-20T14:14:14+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -122,14 +122,14 @@ msgid "Close window"
|
|
|
122
122
|
msgstr ""
|
|
123
123
|
|
|
124
124
|
#. translators: %s: Site name.
|
|
125
|
-
#: includes/class-modal-checkout.php:
|
|
125
|
+
#: includes/class-modal-checkout.php:1515
|
|
126
126
|
#, php-format
|
|
127
127
|
msgid ""
|
|
128
128
|
"You're already a subscriber! You can only have one active subscription at a "
|
|
129
129
|
"time. Thank you for supporting %s."
|
|
130
130
|
msgstr ""
|
|
131
131
|
|
|
132
|
-
#: includes/class-modal-checkout.php:
|
|
132
|
+
#: includes/class-modal-checkout.php:1526
|
|
133
133
|
msgid ""
|
|
134
134
|
"You're already a subscriber! You can only have one subscription at a time. "
|
|
135
135
|
"If you wish to renew an expired subscription, please sign in and visit the "
|
|
@@ -138,98 +138,98 @@ msgstr ""
|
|
|
138
138
|
|
|
139
139
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
140
140
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
141
|
-
#: includes/class-modal-checkout.php:
|
|
141
|
+
#: includes/class-modal-checkout.php:1650
|
|
142
142
|
#: includes/modal-checkout/class-checkout-data.php:68
|
|
143
143
|
#, php-format
|
|
144
144
|
msgid "%1$s: %2$s"
|
|
145
145
|
msgstr ""
|
|
146
146
|
|
|
147
|
-
#: includes/class-modal-checkout.php:
|
|
147
|
+
#: includes/class-modal-checkout.php:2009
|
|
148
148
|
msgid "Billing details"
|
|
149
149
|
msgstr ""
|
|
150
150
|
|
|
151
|
-
#: includes/class-modal-checkout.php:
|
|
151
|
+
#: includes/class-modal-checkout.php:2010
|
|
152
152
|
msgid "Shipping details"
|
|
153
153
|
msgstr ""
|
|
154
154
|
|
|
155
|
-
#: includes/class-modal-checkout.php:
|
|
155
|
+
#: includes/class-modal-checkout.php:2011
|
|
156
156
|
msgid "Gift recipient"
|
|
157
157
|
msgstr ""
|
|
158
158
|
|
|
159
|
-
#: includes/class-modal-checkout.php:
|
|
160
|
-
#: includes/class-modal-checkout.php:
|
|
161
|
-
#: includes/class-modal-checkout.php:
|
|
159
|
+
#: includes/class-modal-checkout.php:2012
|
|
160
|
+
#: includes/class-modal-checkout.php:2013
|
|
161
|
+
#: includes/class-modal-checkout.php:2014
|
|
162
162
|
msgid "Complete your transaction"
|
|
163
163
|
msgstr ""
|
|
164
164
|
|
|
165
|
-
#: includes/class-modal-checkout.php:
|
|
165
|
+
#: includes/class-modal-checkout.php:2015
|
|
166
166
|
msgctxt "Login modal title when logged out user attempts to checkout."
|
|
167
167
|
msgid "Sign in to complete transaction"
|
|
168
168
|
msgstr ""
|
|
169
169
|
|
|
170
|
-
#: includes/class-modal-checkout.php:
|
|
170
|
+
#: includes/class-modal-checkout.php:2020
|
|
171
171
|
msgctxt "Login modal title when unregistered user attempts to checkout"
|
|
172
172
|
msgid "Register to complete transaction"
|
|
173
173
|
msgstr ""
|
|
174
174
|
|
|
175
|
-
#: includes/class-modal-checkout.php:
|
|
175
|
+
#: includes/class-modal-checkout.php:2025
|
|
176
176
|
msgid "Continue browsing"
|
|
177
177
|
msgstr ""
|
|
178
178
|
|
|
179
|
-
#: includes/class-modal-checkout.php:
|
|
179
|
+
#: includes/class-modal-checkout.php:2026
|
|
180
180
|
msgid "This donation is a gift"
|
|
181
181
|
msgstr ""
|
|
182
182
|
|
|
183
|
-
#: includes/class-modal-checkout.php:
|
|
183
|
+
#: includes/class-modal-checkout.php:2031
|
|
184
184
|
msgid "This purchase is a gift"
|
|
185
185
|
msgstr ""
|
|
186
186
|
|
|
187
|
-
#: includes/class-modal-checkout.php:
|
|
187
|
+
#: includes/class-modal-checkout.php:2033
|
|
188
188
|
msgid "Complete transaction"
|
|
189
189
|
msgstr ""
|
|
190
190
|
|
|
191
|
-
#: includes/class-modal-checkout.php:
|
|
191
|
+
#: includes/class-modal-checkout.php:2034
|
|
192
192
|
msgid "Purchase"
|
|
193
193
|
msgstr ""
|
|
194
194
|
|
|
195
|
-
#: includes/class-modal-checkout.php:
|
|
195
|
+
#: includes/class-modal-checkout.php:2035
|
|
196
196
|
msgid "Edit billing information"
|
|
197
197
|
msgstr ""
|
|
198
198
|
|
|
199
|
-
#: includes/class-modal-checkout.php:
|
|
199
|
+
#: includes/class-modal-checkout.php:2036 dist/editor.js:29
|
|
200
200
|
#: src/blocks/checkout-button/edit.js:192
|
|
201
201
|
msgid "Cancel"
|
|
202
202
|
msgstr ""
|
|
203
203
|
|
|
204
|
-
#: includes/class-modal-checkout.php:
|
|
204
|
+
#: includes/class-modal-checkout.php:2037
|
|
205
205
|
msgid "Transaction successful"
|
|
206
206
|
msgstr ""
|
|
207
207
|
|
|
208
|
-
#: includes/class-modal-checkout.php:
|
|
208
|
+
#: includes/class-modal-checkout.php:2038
|
|
209
209
|
msgid ""
|
|
210
210
|
"Your contribution directly funds our work. If you're moved to do so, you can "
|
|
211
211
|
"opt to pay more than the standard rate."
|
|
212
212
|
msgstr ""
|
|
213
213
|
|
|
214
|
-
#: includes/class-modal-checkout.php:
|
|
214
|
+
#: includes/class-modal-checkout.php:2039
|
|
215
215
|
msgid "Thank you for your generosity! We couldn't do this without you!"
|
|
216
216
|
msgstr ""
|
|
217
217
|
|
|
218
|
-
#: includes/class-modal-checkout.php:
|
|
218
|
+
#: includes/class-modal-checkout.php:2040
|
|
219
219
|
msgid "Increase your support"
|
|
220
220
|
msgstr ""
|
|
221
221
|
|
|
222
|
-
#: includes/class-modal-checkout.php:
|
|
222
|
+
#: includes/class-modal-checkout.php:2041
|
|
223
223
|
#: src/modal-checkout/templates/form-coupon.php:20
|
|
224
224
|
msgid "Apply"
|
|
225
225
|
msgstr ""
|
|
226
226
|
|
|
227
|
-
#: includes/class-modal-checkout.php:
|
|
227
|
+
#: includes/class-modal-checkout.php:2042
|
|
228
228
|
msgid "We ran into a problem processing this request. Please try again."
|
|
229
229
|
msgstr ""
|
|
230
230
|
|
|
231
231
|
#. Translators: %s is the site name.
|
|
232
|
-
#: includes/class-modal-checkout.php:
|
|
232
|
+
#: includes/class-modal-checkout.php:2179
|
|
233
233
|
#, php-format
|
|
234
234
|
msgid ""
|
|
235
235
|
"Thank you for supporting %s. Your transaction was completed successfully."
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
# This file is distributed under the same license as the Newspack Blocks plugin.
|
|
3
3
|
msgid ""
|
|
4
4
|
msgstr ""
|
|
5
|
-
"Project-Id-Version: Newspack Blocks 4.
|
|
5
|
+
"Project-Id-Version: Newspack Blocks 4.23.0\n"
|
|
6
6
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
7
7
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
8
8
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
9
9
|
"MIME-Version: 1.0\n"
|
|
10
10
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
11
11
|
"Content-Transfer-Encoding: 8bit\n"
|
|
12
|
-
"POT-Creation-Date: 2026-01-
|
|
12
|
+
"POT-Creation-Date: 2026-01-20T14:14:14+00:00\n"
|
|
13
13
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
14
|
"X-Generator: WP-CLI 2.12.0\n"
|
|
15
15
|
"X-Domain: newspack-blocks\n"
|
|
@@ -122,108 +122,108 @@ msgid "Close window"
|
|
|
122
122
|
msgstr ""
|
|
123
123
|
|
|
124
124
|
#. translators: %s: Site name.
|
|
125
|
-
#: includes/class-modal-checkout.php:
|
|
125
|
+
#: includes/class-modal-checkout.php:1515
|
|
126
126
|
#, php-format
|
|
127
127
|
msgid "You're already a subscriber! You can only have one active subscription at a time. Thank you for supporting %s."
|
|
128
128
|
msgstr ""
|
|
129
129
|
|
|
130
|
-
#: includes/class-modal-checkout.php:
|
|
130
|
+
#: includes/class-modal-checkout.php:1526
|
|
131
131
|
msgid "You're already a subscriber! You can only have one subscription at a time. If you wish to renew an expired subscription, please sign in and visit the subscriptions page on your account."
|
|
132
132
|
msgstr ""
|
|
133
133
|
|
|
134
134
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
135
135
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
136
|
-
#: includes/class-modal-checkout.php:
|
|
136
|
+
#: includes/class-modal-checkout.php:1650
|
|
137
137
|
#: includes/modal-checkout/class-checkout-data.php:68
|
|
138
138
|
#, php-format
|
|
139
139
|
msgid "%1$s: %2$s"
|
|
140
140
|
msgstr ""
|
|
141
141
|
|
|
142
|
-
#: includes/class-modal-checkout.php:
|
|
142
|
+
#: includes/class-modal-checkout.php:2009
|
|
143
143
|
msgid "Billing details"
|
|
144
144
|
msgstr ""
|
|
145
145
|
|
|
146
|
-
#: includes/class-modal-checkout.php:
|
|
146
|
+
#: includes/class-modal-checkout.php:2010
|
|
147
147
|
msgid "Shipping details"
|
|
148
148
|
msgstr ""
|
|
149
149
|
|
|
150
|
-
#: includes/class-modal-checkout.php:
|
|
150
|
+
#: includes/class-modal-checkout.php:2011
|
|
151
151
|
msgid "Gift recipient"
|
|
152
152
|
msgstr ""
|
|
153
153
|
|
|
154
|
-
#: includes/class-modal-checkout.php:
|
|
155
|
-
#: includes/class-modal-checkout.php:
|
|
156
|
-
#: includes/class-modal-checkout.php:
|
|
154
|
+
#: includes/class-modal-checkout.php:2012
|
|
155
|
+
#: includes/class-modal-checkout.php:2013
|
|
156
|
+
#: includes/class-modal-checkout.php:2014
|
|
157
157
|
msgid "Complete your transaction"
|
|
158
158
|
msgstr ""
|
|
159
159
|
|
|
160
|
-
#: includes/class-modal-checkout.php:
|
|
160
|
+
#: includes/class-modal-checkout.php:2015
|
|
161
161
|
msgctxt "Login modal title when logged out user attempts to checkout."
|
|
162
162
|
msgid "Sign in to complete transaction"
|
|
163
163
|
msgstr ""
|
|
164
164
|
|
|
165
|
-
#: includes/class-modal-checkout.php:
|
|
165
|
+
#: includes/class-modal-checkout.php:2020
|
|
166
166
|
msgctxt "Login modal title when unregistered user attempts to checkout"
|
|
167
167
|
msgid "Register to complete transaction"
|
|
168
168
|
msgstr ""
|
|
169
169
|
|
|
170
|
-
#: includes/class-modal-checkout.php:
|
|
170
|
+
#: includes/class-modal-checkout.php:2025
|
|
171
171
|
msgid "Continue browsing"
|
|
172
172
|
msgstr ""
|
|
173
173
|
|
|
174
|
-
#: includes/class-modal-checkout.php:
|
|
174
|
+
#: includes/class-modal-checkout.php:2026
|
|
175
175
|
msgid "This donation is a gift"
|
|
176
176
|
msgstr ""
|
|
177
177
|
|
|
178
|
-
#: includes/class-modal-checkout.php:
|
|
178
|
+
#: includes/class-modal-checkout.php:2031
|
|
179
179
|
msgid "This purchase is a gift"
|
|
180
180
|
msgstr ""
|
|
181
181
|
|
|
182
|
-
#: includes/class-modal-checkout.php:
|
|
182
|
+
#: includes/class-modal-checkout.php:2033
|
|
183
183
|
msgid "Complete transaction"
|
|
184
184
|
msgstr ""
|
|
185
185
|
|
|
186
|
-
#: includes/class-modal-checkout.php:
|
|
186
|
+
#: includes/class-modal-checkout.php:2034
|
|
187
187
|
msgid "Purchase"
|
|
188
188
|
msgstr ""
|
|
189
189
|
|
|
190
|
-
#: includes/class-modal-checkout.php:
|
|
190
|
+
#: includes/class-modal-checkout.php:2035
|
|
191
191
|
msgid "Edit billing information"
|
|
192
192
|
msgstr ""
|
|
193
193
|
|
|
194
|
-
#: includes/class-modal-checkout.php:
|
|
194
|
+
#: includes/class-modal-checkout.php:2036
|
|
195
195
|
#: dist/editor.js:29
|
|
196
196
|
#: src/blocks/checkout-button/edit.js:192
|
|
197
197
|
msgid "Cancel"
|
|
198
198
|
msgstr ""
|
|
199
199
|
|
|
200
|
-
#: includes/class-modal-checkout.php:
|
|
200
|
+
#: includes/class-modal-checkout.php:2037
|
|
201
201
|
msgid "Transaction successful"
|
|
202
202
|
msgstr ""
|
|
203
203
|
|
|
204
|
-
#: includes/class-modal-checkout.php:
|
|
204
|
+
#: includes/class-modal-checkout.php:2038
|
|
205
205
|
msgid "Your contribution directly funds our work. If you're moved to do so, you can opt to pay more than the standard rate."
|
|
206
206
|
msgstr ""
|
|
207
207
|
|
|
208
|
-
#: includes/class-modal-checkout.php:
|
|
208
|
+
#: includes/class-modal-checkout.php:2039
|
|
209
209
|
msgid "Thank you for your generosity! We couldn't do this without you!"
|
|
210
210
|
msgstr ""
|
|
211
211
|
|
|
212
|
-
#: includes/class-modal-checkout.php:
|
|
212
|
+
#: includes/class-modal-checkout.php:2040
|
|
213
213
|
msgid "Increase your support"
|
|
214
214
|
msgstr ""
|
|
215
215
|
|
|
216
|
-
#: includes/class-modal-checkout.php:
|
|
216
|
+
#: includes/class-modal-checkout.php:2041
|
|
217
217
|
#: src/modal-checkout/templates/form-coupon.php:20
|
|
218
218
|
msgid "Apply"
|
|
219
219
|
msgstr ""
|
|
220
220
|
|
|
221
|
-
#: includes/class-modal-checkout.php:
|
|
221
|
+
#: includes/class-modal-checkout.php:2042
|
|
222
222
|
msgid "We ran into a problem processing this request. Please try again."
|
|
223
223
|
msgstr ""
|
|
224
224
|
|
|
225
225
|
#. Translators: %s is the site name.
|
|
226
|
-
#: includes/class-modal-checkout.php:
|
|
226
|
+
#: includes/class-modal-checkout.php:2179
|
|
227
227
|
#, php-format
|
|
228
228
|
msgid "Thank you for supporting %s. Your transaction was completed successfully."
|
|
229
229
|
msgstr ""
|
package/newspack-blocks.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Author URI: https://newspack.com/
|
|
8
8
|
* Text Domain: newspack-blocks
|
|
9
9
|
* Domain Path: /languages
|
|
10
|
-
* Version: 4.
|
|
10
|
+
* Version: 4.24.0
|
|
11
11
|
*
|
|
12
12
|
* @package Newspack_Blocks
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
|
|
16
16
|
define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
|
|
17
17
|
define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
|
|
18
|
-
define( 'NEWSPACK_BLOCKS__VERSION', '4.
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '4.24.0' );
|
|
19
19
|
|
|
20
20
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
|
|
21
21
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/newspack-blocks",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
4
4
|
"author": "Automattic",
|
|
5
5
|
"description": "=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"swiper": "12.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/lodash": "^4.17.
|
|
55
|
+
"@types/lodash": "^4.17.23",
|
|
56
56
|
"newspack-components": "^4.2.0",
|
|
57
57
|
"newspack-scripts": "^5.8.0"
|
|
58
58
|
},
|
|
@@ -23,6 +23,7 @@ export const managePagination = ( action = 'continue' ) => {
|
|
|
23
23
|
variation_id = '',
|
|
24
24
|
gate_post_id = '',
|
|
25
25
|
newspack_popup_id = '',
|
|
26
|
+
prompt_title = '',
|
|
26
27
|
} = getCheckoutData( 'modal-checkout-product-details' );
|
|
27
28
|
|
|
28
29
|
const params = {
|
|
@@ -45,10 +46,13 @@ export const managePagination = ( action = 'continue' ) => {
|
|
|
45
46
|
params.gate_post_id = gate_post_id;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
// If this checkout started from a campaign prompt, add the popup ID to the payload.
|
|
49
|
+
// If this checkout started from a campaign prompt, add the popup ID and title to the payload.
|
|
49
50
|
if ( newspack_popup_id ) {
|
|
50
51
|
params.newspack_popup_id = newspack_popup_id;
|
|
51
52
|
}
|
|
53
|
+
if ( prompt_title ) {
|
|
54
|
+
params.prompt_title = prompt_title;
|
|
55
|
+
}
|
|
52
56
|
|
|
53
57
|
const payload = getEventPayload( action, params );
|
|
54
58
|
sendEvent( payload );
|