@descope/flow-components 3.27.7 → 3.27.9

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": "3.27.7",
8
+ "buildVersion": "3.27.9",
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": "3.27.7",
8
+ "buildVersion": "3.27.9",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -100863,6 +100863,8 @@ function requireIndex_cjs () {
100863
100863
  vaadin-password-field::part(input-field) {
100864
100864
  box-sizing: border-box;
100865
100865
  padding: 0;
100866
+ /* keep the input inside the border, so browser autofill paint does not cover it (same as text-field) */
100867
+ overflow: hidden;
100866
100868
  }
100867
100869
  vaadin-password-field[focus-ring]::part(input-field) {
100868
100870
  box-shadow: none;
@@ -111532,20 +111534,26 @@ descope-enriched-text {
111532
111534
  const componentName$a = getComponentName$1('scopes-list');
111533
111535
  const variants = ['checkbox', 'switch'];
111534
111536
 
111537
+ // we return a template instead of a string, and fill the item data with DOM APIs, so we can avoid XSS
111535
111538
  const itemRenderer = ({ id, desc, required = false }, _, ref) => {
111536
111539
  const ComponentClass = ref.variant === 'checkbox' ? CheckboxClass : SwitchToggleClass;
111537
111540
 
111538
- return `
111541
+ const template = document.createElement('template');
111542
+ template.innerHTML = `
111539
111543
  <${ComponentClass.componentName}
111540
111544
  bordered="true"
111541
111545
  size=${ref.size}
111542
- label="${desc}"
111543
- data-id="${id}"
111544
- readonly="${required || ref.isReadOnly}"
111545
- required="${required}"
111546
111546
  checked="true"
111547
111547
  ></${ComponentClass.componentName}>
111548
111548
  `;
111549
+
111550
+ const item = template.content.firstElementChild;
111551
+ item.setAttribute('label', desc);
111552
+ item.setAttribute('data-id', id);
111553
+ item.setAttribute('readonly', `${required || ref.isReadOnly}`);
111554
+ item.setAttribute('required', `${required}`);
111555
+
111556
+ return template;
111549
111557
  };
111550
111558
 
111551
111559
  class RawScopesList extends createBaseClass({ componentName: componentName$a, baseSelector: 'div' }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.27.7",
3
+ "version": "3.27.9",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -98,7 +98,7 @@
98
98
  "webpack-subresource-integrity": "5.2.0-rc.1"
99
99
  },
100
100
  "dependencies": {
101
- "@descope/web-components-ui": "3.27.7"
101
+ "@descope/web-components-ui": "3.27.9"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "react": ">= 18"