add-to-calendar-button 1.18.2 → 1.18.3

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.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Style: 3D
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
@@ -261,13 +261,6 @@ body.atcb-dark #atcb-bgoverlay.atcb-bodyScheme {
261
261
  position: absolute;
262
262
  }
263
263
 
264
- .atcb-pos-wrapper {
265
- position: absolute;
266
- top: 0;
267
- bottom: 0;
268
- width: 100%;
269
- }
270
-
271
264
  .atcb-list-wrapper {
272
265
  box-sizing: border-box;
273
266
  padding: 0 4px;
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Style: Date
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
@@ -374,13 +374,6 @@ body.atcb-dark #atcb-bgoverlay.atcb-bodyScheme {
374
374
  position: absolute;
375
375
  }
376
376
 
377
- .atcb-pos-wrapper {
378
- position: absolute;
379
- top: 0;
380
- bottom: 0;
381
- width: 100%;
382
- }
383
-
384
377
  .atcb-list-wrapper {
385
378
  box-sizing: border-box;
386
379
  padding: 0 4px;
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Style: Flat
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
@@ -253,13 +253,6 @@ body.atcb-dark #atcb-bgoverlay.atcb-bodyScheme {
253
253
  position: absolute;
254
254
  }
255
255
 
256
- .atcb-pos-wrapper {
257
- position: absolute;
258
- top: 0;
259
- bottom: 0;
260
- width: 100%;
261
- }
262
-
263
256
  .atcb-list-wrapper {
264
257
  box-sizing: border-box;
265
258
  padding: 0 2px 0 6px;
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Style: Text
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
@@ -295,13 +295,6 @@ body.atcb-dark #atcb-bgoverlay.atcb-bodyScheme {
295
295
  position: absolute;
296
296
  }
297
297
 
298
- .atcb-pos-wrapper {
299
- position: absolute;
300
- top: 0;
301
- bottom: 0;
302
- width: 100%;
303
- }
304
-
305
298
  .atcb-list-wrapper {
306
299
  box-sizing: border-box;
307
300
  position: absolute;
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Style: Default
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
@@ -248,13 +248,6 @@ body.atcb-dark #atcb-bgoverlay.atcb-bodyScheme {
248
248
  position: absolute;
249
249
  }
250
250
 
251
- .atcb-pos-wrapper {
252
- position: absolute;
253
- top: 0;
254
- bottom: 0;
255
- width: 100%;
256
- }
257
-
258
251
  .atcb-list-wrapper {
259
252
  box-sizing: border-box;
260
253
  padding: 0 4px;
package/dist/atcb.js CHANGED
@@ -217,14 +217,14 @@ function tzlib_get_timezones(jsonType = false) {
217
217
  * Add to Calendar Button
218
218
  * ++++++++++++++++++++++
219
219
  *
220
- * Version: 1.18.2
220
+ * Version: 1.18.3
221
221
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
222
222
  * Project: https://github.com/add2cal/add-to-calendar-button
223
223
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
224
224
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
225
225
  *
226
226
  */
227
- const atcbVersion = '1.18.2';
227
+ const atcbVersion = '1.18.3';
228
228
  const isBrowser = () => {
229
229
  if (typeof window === 'undefined') {
230
230
  return false;
@@ -1179,7 +1179,11 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
1179
1179
  atcb_manage_body_scroll();
1180
1180
  } else {
1181
1181
  const positionWrapper = document.createElement('div');
1182
- positionWrapper.id = 'atcb-pos-wrapper';
1182
+ positionWrapper.id = 'atcb-pos-wrapper';
1183
+ positionWrapper.style.position = 'absolute';
1184
+ positionWrapper.style.top = '0';
1185
+ positionWrapper.style.bottom = '0';
1186
+ positionWrapper.style.width = '100%';
1183
1187
  document.body.appendChild(positionWrapper);
1184
1188
  positionWrapper.appendChild(listWrapper);
1185
1189
  listWrapper.appendChild(list);
@@ -1191,7 +1195,9 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
1191
1195
  }
1192
1196
  document.body.appendChild(bgOverlay);
1193
1197
  atcb_set_sizes(list, data.sizes);
1194
- setTimeout(function () {
1198
+ listWrapper.style.display = 'none';
1199
+ setTimeout(function () {
1200
+ listWrapper.style.display = 'block';
1195
1201
  if (data.listStyle === 'dropdown-static') {
1196
1202
  atcb_position_list(button, listWrapper, true);
1197
1203
  } else {
@@ -8,14 +8,14 @@ const tzlibActions = require('timezones-ical-library');
8
8
  * Add to Calendar Button
9
9
  * ++++++++++++++++++++++
10
10
  *
11
- * Version: 1.18.2
11
+ * Version: 1.18.3
12
12
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
13
13
  * Project: https://github.com/add2cal/add-to-calendar-button
14
14
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
15
15
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
16
16
  *
17
17
  */
18
- const atcbVersion = '1.18.2';
18
+ const atcbVersion = '1.18.3';
19
19
  const isBrowser = () => {
20
20
  if (typeof window === 'undefined') {
21
21
  return false;
@@ -970,7 +970,11 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
970
970
  atcb_manage_body_scroll();
971
971
  } else {
972
972
  const positionWrapper = document.createElement('div');
973
- positionWrapper.id = 'atcb-pos-wrapper';
973
+ positionWrapper.id = 'atcb-pos-wrapper';
974
+ positionWrapper.style.position = 'absolute';
975
+ positionWrapper.style.top = '0';
976
+ positionWrapper.style.bottom = '0';
977
+ positionWrapper.style.width = '100%';
974
978
  document.body.appendChild(positionWrapper);
975
979
  positionWrapper.appendChild(listWrapper);
976
980
  listWrapper.appendChild(list);
@@ -982,7 +986,9 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
982
986
  }
983
987
  document.body.appendChild(bgOverlay);
984
988
  atcb_set_sizes(list, data.sizes);
985
- setTimeout(function () {
989
+ listWrapper.style.display = 'none';
990
+ setTimeout(function () {
991
+ listWrapper.style.display = 'block';
986
992
  if (data.listStyle === 'dropdown-static') {
987
993
  atcb_position_list(button, listWrapper, true);
988
994
  } else {
@@ -7,14 +7,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
7
7
  * Add to Calendar Button
8
8
  * ++++++++++++++++++++++
9
9
  *
10
- * Version: 1.18.2
10
+ * Version: 1.18.3
11
11
  * Creator: Jens Kuerschner (https://jenskuerschner.de)
12
12
  * Project: https://github.com/add2cal/add-to-calendar-button
13
13
  * License: Apache-2.0 with “Commons Clause” License Condition v1.0
14
14
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
15
15
  *
16
16
  */
17
- const atcbVersion = '1.18.2';
17
+ const atcbVersion = '1.18.3';
18
18
  const isBrowser = () => {
19
19
  if (typeof window === 'undefined') {
20
20
  return false;
@@ -969,7 +969,11 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
969
969
  atcb_manage_body_scroll();
970
970
  } else {
971
971
  const positionWrapper = document.createElement('div');
972
- positionWrapper.id = 'atcb-pos-wrapper';
972
+ positionWrapper.id = 'atcb-pos-wrapper';
973
+ positionWrapper.style.position = 'absolute';
974
+ positionWrapper.style.top = '0';
975
+ positionWrapper.style.bottom = '0';
976
+ positionWrapper.style.width = '100%';
973
977
  document.body.appendChild(positionWrapper);
974
978
  positionWrapper.appendChild(listWrapper);
975
979
  listWrapper.appendChild(list);
@@ -981,7 +985,9 @@ function atcb_open(data, button, keyboardTrigger = false, generatedButton = fals
981
985
  }
982
986
  document.body.appendChild(bgOverlay);
983
987
  atcb_set_sizes(list, data.sizes);
984
- setTimeout(function () {
988
+ listWrapper.style.display = 'none';
989
+ setTimeout(function () {
990
+ listWrapper.style.display = 'block';
985
991
  if (data.listStyle === 'dropdown-static') {
986
992
  atcb_position_list(button, listWrapper, true);
987
993
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-to-calendar-button",
3
- "version": "1.18.2",
3
+ "version": "1.18.3",
4
4
  "engines": {
5
5
  "node": ">=14.20.0"
6
6
  },