paraqeet 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
2
+ * Bootstrap v5.3.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
@@ -307,6 +307,7 @@ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed
307
307
  * --------------------------------------------------------------------------
308
308
  */
309
309
 
310
+
310
311
  /**
311
312
  * Constants
312
313
  */
@@ -585,6 +586,7 @@ const Manipulator = {
585
586
  * --------------------------------------------------------------------------
586
587
  */
587
588
 
589
+
588
590
  /**
589
591
  * Class definition
590
592
  */
@@ -637,11 +639,12 @@ class Config {
637
639
  * --------------------------------------------------------------------------
638
640
  */
639
641
 
642
+
640
643
  /**
641
644
  * Constants
642
645
  */
643
646
 
644
- const VERSION = '5.3.0-alpha2';
647
+ const VERSION = '5.3.0';
645
648
 
646
649
  /**
647
650
  * Class definition
@@ -704,6 +707,7 @@ class BaseComponent extends Config {
704
707
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
705
708
  * --------------------------------------------------------------------------
706
709
  */
710
+
707
711
  const getSelector = element => {
708
712
  let selector = element.getAttribute('data-bs-target');
709
713
  if (!selector || selector === '#') {
@@ -792,6 +796,7 @@ const SelectorEngine = {
792
796
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
793
797
  * --------------------------------------------------------------------------
794
798
  */
799
+
795
800
  const enableDismissTrigger = (component, method = 'hide') => {
796
801
  const clickEvent = `click.dismiss${component.EVENT_KEY}`;
797
802
  const name = component.NAME;
@@ -817,6 +822,7 @@ const enableDismissTrigger = (component, method = 'hide') => {
817
822
  * --------------------------------------------------------------------------
818
823
  */
819
824
 
825
+
820
826
  /**
821
827
  * Constants
822
828
  */
@@ -891,6 +897,7 @@ defineJQueryPlugin(Alert);
891
897
  * --------------------------------------------------------------------------
892
898
  */
893
899
 
900
+
894
901
  /**
895
902
  * Constants
896
903
  */
@@ -954,6 +961,7 @@ defineJQueryPlugin(Button);
954
961
  * --------------------------------------------------------------------------
955
962
  */
956
963
 
964
+
957
965
  /**
958
966
  * Constants
959
967
  */
@@ -1073,6 +1081,7 @@ class Swipe extends Config {
1073
1081
  * --------------------------------------------------------------------------
1074
1082
  */
1075
1083
 
1084
+
1076
1085
  /**
1077
1086
  * Constants
1078
1087
  */
@@ -1445,6 +1454,7 @@ defineJQueryPlugin(Carousel);
1445
1454
  * --------------------------------------------------------------------------
1446
1455
  */
1447
1456
 
1457
+
1448
1458
  /**
1449
1459
  * Constants
1450
1460
  */
@@ -1678,6 +1688,7 @@ defineJQueryPlugin(Collapse);
1678
1688
  * --------------------------------------------------------------------------
1679
1689
  */
1680
1690
 
1691
+
1681
1692
  /**
1682
1693
  * Constants
1683
1694
  */
@@ -2045,6 +2056,7 @@ defineJQueryPlugin(Dropdown);
2045
2056
  * --------------------------------------------------------------------------
2046
2057
  */
2047
2058
 
2059
+
2048
2060
  /**
2049
2061
  * Constants
2050
2062
  */
@@ -2169,6 +2181,7 @@ class Backdrop extends Config {
2169
2181
  * --------------------------------------------------------------------------
2170
2182
  */
2171
2183
 
2184
+
2172
2185
  /**
2173
2186
  * Constants
2174
2187
  */
@@ -2267,6 +2280,7 @@ class FocusTrap extends Config {
2267
2280
  * --------------------------------------------------------------------------
2268
2281
  */
2269
2282
 
2283
+
2270
2284
  /**
2271
2285
  * Constants
2272
2286
  */
@@ -2364,6 +2378,7 @@ class ScrollBarHelper {
2364
2378
  * --------------------------------------------------------------------------
2365
2379
  */
2366
2380
 
2381
+
2367
2382
  /**
2368
2383
  * Constants
2369
2384
  */
@@ -2668,6 +2683,7 @@ defineJQueryPlugin(Modal);
2668
2683
  * --------------------------------------------------------------------------
2669
2684
  */
2670
2685
 
2686
+
2671
2687
  /**
2672
2688
  * Constants
2673
2689
  */
@@ -2898,34 +2914,6 @@ defineJQueryPlugin(Offcanvas);
2898
2914
  * --------------------------------------------------------------------------
2899
2915
  */
2900
2916
 
2901
- const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
2902
-
2903
- /**
2904
- * A pattern that recognizes a commonly useful subset of URLs that are safe.
2905
- *
2906
- * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
2907
- */
2908
- const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
2909
-
2910
- /**
2911
- * A pattern that matches safe data URLs. Only matches image, video and audio types.
2912
- *
2913
- * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
2914
- */
2915
- const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
2916
- const allowedAttribute = (attribute, allowedAttributeList) => {
2917
- const attributeName = attribute.nodeName.toLowerCase();
2918
- if (allowedAttributeList.includes(attributeName)) {
2919
- if (uriAttributes.has(attributeName)) {
2920
- return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue) || DATA_URL_PATTERN.test(attribute.nodeValue));
2921
- }
2922
- return true;
2923
- }
2924
-
2925
- // Check if a regular expression validates the attribute.
2926
- return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
2927
- };
2928
-
2929
2917
  // js-docs-start allow-list
2930
2918
  const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2931
2919
  const DefaultAllowlist = {
@@ -2963,6 +2951,28 @@ const DefaultAllowlist = {
2963
2951
  };
2964
2952
  // js-docs-end allow-list
2965
2953
 
2954
+ const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
2955
+
2956
+ /**
2957
+ * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation
2958
+ * contexts.
2959
+ *
2960
+ * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
2961
+ */
2962
+ // eslint-disable-next-line unicorn/better-regex
2963
+ const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
2964
+ const allowedAttribute = (attribute, allowedAttributeList) => {
2965
+ const attributeName = attribute.nodeName.toLowerCase();
2966
+ if (allowedAttributeList.includes(attributeName)) {
2967
+ if (uriAttributes.has(attributeName)) {
2968
+ return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));
2969
+ }
2970
+ return true;
2971
+ }
2972
+
2973
+ // Check if a regular expression validates the attribute.
2974
+ return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
2975
+ };
2966
2976
  function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2967
2977
  if (!unsafeHtml.length) {
2968
2978
  return unsafeHtml;
@@ -2997,6 +3007,7 @@ function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2997
3007
  * --------------------------------------------------------------------------
2998
3008
  */
2999
3009
 
3010
+
3000
3011
  /**
3001
3012
  * Constants
3002
3013
  */
@@ -3132,6 +3143,7 @@ class TemplateFactory extends Config {
3132
3143
  * --------------------------------------------------------------------------
3133
3144
  */
3134
3145
 
3146
+
3135
3147
  /**
3136
3148
  * Constants
3137
3149
  */
@@ -3643,6 +3655,7 @@ defineJQueryPlugin(Tooltip);
3643
3655
  * --------------------------------------------------------------------------
3644
3656
  */
3645
3657
 
3658
+
3646
3659
  /**
3647
3660
  * Constants
3648
3661
  */
@@ -3723,6 +3736,7 @@ defineJQueryPlugin(Popover);
3723
3736
  * --------------------------------------------------------------------------
3724
3737
  */
3725
3738
 
3739
+
3726
3740
  /**
3727
3741
  * Constants
3728
3742
  */
@@ -3901,11 +3915,11 @@ class ScrollSpy extends BaseComponent {
3901
3915
  if (!anchor.hash || isDisabled(anchor)) {
3902
3916
  continue;
3903
3917
  }
3904
- const observableSection = SelectorEngine.findOne(anchor.hash, this._element);
3918
+ const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);
3905
3919
 
3906
3920
  // ensure that the observableSection exists & is visible
3907
3921
  if (isVisible(observableSection)) {
3908
- this._targetLinks.set(anchor.hash, anchor);
3922
+ this._targetLinks.set(decodeURI(anchor.hash), anchor);
3909
3923
  this._observableSections.set(anchor.hash, observableSection);
3910
3924
  }
3911
3925
  }
@@ -3982,6 +3996,7 @@ defineJQueryPlugin(ScrollSpy);
3982
3996
  * --------------------------------------------------------------------------
3983
3997
  */
3984
3998
 
3999
+
3985
4000
  /**
3986
4001
  * Constants
3987
4002
  */
@@ -4243,6 +4258,7 @@ defineJQueryPlugin(Tab);
4243
4258
  * --------------------------------------------------------------------------
4244
4259
  */
4245
4260
 
4261
+
4246
4262
  /**
4247
4263
  * Constants
4248
4264
  */