add-to-calendar-button 2.8.3 → 2.8.4

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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: 3D
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Date
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Flat
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Neumorphism
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Round
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Text
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Default
7
7
  *
8
- * Version: 2.8.3
8
+ * Version: 2.8.4
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.8.3
226
+ * Version: 2.8.4
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.8.3';
233
+ const atcbVersion = '2.8.4';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -2494,7 +2494,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2494
2494
  }
2495
2495
  function atcb_generate_google(data, date, subEvent = 'all') {
2496
2496
  const urlParts = [];
2497
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2497
+ if (atcbIsMobile() || data.fakeMobile) {
2498
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2499
+ } else {
2500
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2501
+ }
2498
2502
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2499
2503
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2500
2504
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.8.3
226
+ * Version: 2.8.4
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.8.3';
233
+ const atcbVersion = '2.8.4';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -2493,7 +2493,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2493
2493
  }
2494
2494
  function atcb_generate_google(data, date, subEvent = 'all') {
2495
2495
  const urlParts = [];
2496
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2496
+ if (atcbIsMobile() || data.fakeMobile) {
2497
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2498
+ } else {
2499
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2500
+ }
2497
2501
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2498
2502
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2499
2503
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.8.3
226
+ * Version: 2.8.4
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.8.3';
233
+ const atcbVersion = '2.8.4';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -3214,7 +3214,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
3214
3214
  }
3215
3215
  function atcb_generate_google(data, date, subEvent = 'all') {
3216
3216
  const urlParts = [];
3217
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3217
+ if (atcbIsMobile() || data.fakeMobile) {
3218
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3219
+ } else {
3220
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3221
+ }
3218
3222
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3219
3223
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3220
3224
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
package/dist/atcb.js CHANGED
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.8.3
226
+ * Version: 2.8.4
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.8.3';
233
+ const atcbVersion = '2.8.4';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -3213,7 +3213,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
3213
3213
  }
3214
3214
  function atcb_generate_google(data, date, subEvent = 'all') {
3215
3215
  const urlParts = [];
3216
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3216
+ if (atcbIsMobile() || data.fakeMobile) {
3217
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3218
+ } else {
3219
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3220
+ }
3217
3221
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3218
3222
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3219
3223
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -2996,7 +2996,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2996
2996
  }
2997
2997
  function atcb_generate_google(data, date, subEvent = 'all') {
2998
2998
  const urlParts = [];
2999
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2999
+ if (atcbIsMobile() || data.fakeMobile) {
3000
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3001
+ } else {
3002
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3003
+ }
3000
3004
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3001
3005
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3002
3006
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -2276,7 +2276,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2276
2276
  }
2277
2277
  function atcb_generate_google(data, date, subEvent = 'all') {
2278
2278
  const urlParts = [];
2279
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2279
+ if (atcbIsMobile() || data.fakeMobile) {
2280
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2281
+ } else {
2282
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2283
+ }
2280
2284
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2281
2285
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2282
2286
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -2277,7 +2277,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2277
2277
  }
2278
2278
  function atcb_generate_google(data, date, subEvent = 'all') {
2279
2279
  const urlParts = [];
2280
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2280
+ if (atcbIsMobile() || data.fakeMobile) {
2281
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2282
+ } else {
2283
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2284
+ }
2281
2285
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2282
2286
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2283
2287
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -2997,7 +2997,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2997
2997
  }
2998
2998
  function atcb_generate_google(data, date, subEvent = 'all') {
2999
2999
  const urlParts = [];
3000
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3000
+ if (atcbIsMobile() || data.fakeMobile) {
3001
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3002
+ } else {
3003
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3004
+ }
3001
3005
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3002
3006
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3003
3007
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -2996,7 +2996,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2996
2996
  }
2997
2997
  function atcb_generate_google(data, date, subEvent = 'all') {
2998
2998
  const urlParts = [];
2999
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2999
+ if (atcbIsMobile() || data.fakeMobile) {
3000
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3001
+ } else {
3002
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3003
+ }
3000
3004
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3001
3005
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3002
3006
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -2276,7 +2276,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2276
2276
  }
2277
2277
  function atcb_generate_google(data, date, subEvent = 'all') {
2278
2278
  const urlParts = [];
2279
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2279
+ if (atcbIsMobile() || data.fakeMobile) {
2280
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2281
+ } else {
2282
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2283
+ }
2280
2284
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2281
2285
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2282
2286
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -2277,7 +2277,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2277
2277
  }
2278
2278
  function atcb_generate_google(data, date, subEvent = 'all') {
2279
2279
  const urlParts = [];
2280
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2280
+ if (atcbIsMobile() || data.fakeMobile) {
2281
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
2282
+ } else {
2283
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
2284
+ }
2281
2285
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
2282
2286
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
2283
2287
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.8.3
9
+ * Version: 2.8.4
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.8.3';
16
+ const atcbVersion = '2.8.4';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -2997,7 +2997,11 @@ function atcb_subscribe_microsoft(data, fileUrl, calName, type = 'ms365') {
2997
2997
  }
2998
2998
  function atcb_generate_google(data, date, subEvent = 'all') {
2999
2999
  const urlParts = [];
3000
- urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3000
+ if (atcbIsMobile() || data.fakeMobile) {
3001
+ urlParts.push('https://calendar.google.com/calendar/render?action=TEMPLATE&');
3002
+ } else {
3003
+ urlParts.push('https://calendar.google.com/calendar/r/eventedit?');
3004
+ }
3001
3005
  const formattedDate = atcb_generate_time(date, 'clean', 'google');
3002
3006
  urlParts.push('dates=' + encodeURIComponent(formattedDate.start) + '%2F' + encodeURIComponent(formattedDate.end));
3003
3007
  if (date.timeZone && date.timeZone !== '' && !/GMT[+|-]\d{1,2}|Etc\/U|Etc\/Zulu|CET|CST6CDT|EET|EST|MET|MST|PST8PDT|WET/i.test(date.timeZone) && !formattedDate.allday) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-to-calendar-button",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "engines": {
5
5
  "node": ">=18.17.0",
6
6
  "npm": ">=9.6.7"