@descope/flow-components 2.3.1 → 2.3.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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.3.1",
8
+ "buildVersion": "2.3.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.3.1",
8
+ "buildVersion": "2.3.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -4396,7 +4396,7 @@ function requireColor () {
4396
4396
  return color;
4397
4397
  }
4398
4398
 
4399
- /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
4399
+ /*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */
4400
4400
 
4401
4401
  var purify_cjs;
4402
4402
  var hasRequiredPurify_cjs;
@@ -4701,7 +4701,7 @@ function requirePurify_cjs () {
4701
4701
  function createDOMPurify() {
4702
4702
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
4703
4703
  const DOMPurify = root => createDOMPurify(root);
4704
- DOMPurify.version = '3.3.1';
4704
+ DOMPurify.version = '3.3.2';
4705
4705
  DOMPurify.removed = [];
4706
4706
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
4707
4707
  // Not running in a browser, provide a factory function
@@ -4996,7 +4996,7 @@ function requirePurify_cjs () {
4996
4996
  /* Parse profile info */
4997
4997
  if (USE_PROFILES) {
4998
4998
  ALLOWED_TAGS = addToSet({}, text);
4999
- ALLOWED_ATTR = [];
4999
+ ALLOWED_ATTR = create(null);
5000
5000
  if (USE_PROFILES.html === true) {
5001
5001
  addToSet(ALLOWED_TAGS, html$1);
5002
5002
  addToSet(ALLOWED_ATTR, html);
@@ -5017,6 +5017,13 @@ function requirePurify_cjs () {
5017
5017
  addToSet(ALLOWED_ATTR, xml);
5018
5018
  }
5019
5019
  }
5020
+ /* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
5021
+ if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
5022
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
5023
+ }
5024
+ if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
5025
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
5026
+ }
5020
5027
  /* Merge configuration parameters */
5021
5028
  if (cfg.ADD_TAGS) {
5022
5029
  if (typeof cfg.ADD_TAGS === 'function') {
@@ -5414,6 +5421,10 @@ function requirePurify_cjs () {
5414
5421
  */
5415
5422
  // eslint-disable-next-line complexity
5416
5423
  const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
5424
+ /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
5425
+ if (FORBID_ATTR[lcName]) {
5426
+ return false;
5427
+ }
5417
5428
  /* Make sure attribute cannot clobber */
5418
5429
  if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
5419
5430
  return false;
@@ -5506,7 +5517,7 @@ function requirePurify_cjs () {
5506
5517
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
5507
5518
  }
5508
5519
  /* Work around a security issue with comments inside attributes */
5509
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
5520
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
5510
5521
  _removeAttribute(name, currentNode);
5511
5522
  continue;
5512
5523
  }
@@ -89180,7 +89191,7 @@ descope-enriched-text {
89180
89191
  },
89181
89192
  {
89182
89193
  name: 'Guyana',
89183
- dialCode: '+595',
89194
+ dialCode: '+592',
89184
89195
  code: 'GY',
89185
89196
  },
89186
89197
  {
@@ -99494,7 +99505,9 @@ descope-enriched-text {
99494
99505
 
99495
99506
  set value(val) {
99496
99507
  this.handleActiveInput(val);
99497
- this.activeInput.value = val;
99508
+ setTimeout(() => {
99509
+ this.activeInput.value = val;
99510
+ });
99498
99511
  }
99499
99512
 
99500
99513
  async init() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -60,7 +60,7 @@
60
60
  "eslint-config-standard": "17.1.0",
61
61
  "eslint-import-resolver-typescript": "4.4.4",
62
62
  "eslint-plugin-import": "2.32.0",
63
- "eslint-plugin-jest": "29.12.2",
63
+ "eslint-plugin-jest": "29.14.0",
64
64
  "eslint-plugin-jest-dom": "5.5.0",
65
65
  "eslint-plugin-jest-formatting": "3.1.0",
66
66
  "eslint-plugin-jsx-a11y": "^6.6.1",
@@ -96,7 +96,7 @@
96
96
  "webpack-dev-server": "5.2.3"
97
97
  },
98
98
  "dependencies": {
99
- "@descope/web-components-ui": "2.3.1"
99
+ "@descope/web-components-ui": "2.3.3"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">= 18"