@descope/flow-components 3.3.2 → 3.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": "3.3.2",
8
+ "buildVersion": "3.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": "3.3.2",
8
+ "buildVersion": "3.3.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -83521,7 +83521,16 @@ function requireIndex_cjs () {
83521
83521
 
83522
83522
  const componentName$1f = getComponentName('link');
83523
83523
 
83524
- class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host a' }) {
83524
+ const observedAttrs$6 = ['href', 'readonly'];
83525
+
83526
+ class RawLink extends createBaseClass$1({
83527
+ componentName: componentName$1f,
83528
+ baseSelector: ':host a',
83529
+ }) {
83530
+ static get observedAttributes() {
83531
+ return observedAttrs$6.concat(super.observedAttributes || []);
83532
+ }
83533
+
83525
83534
  constructor() {
83526
83535
  super();
83527
83536
 
@@ -83554,10 +83563,12 @@ function requireIndex_cjs () {
83554
83563
  white-space: nowrap;
83555
83564
  }
83556
83565
  `,
83557
- this
83566
+ this,
83558
83567
  );
83559
83568
 
83560
- forwardAttrs(this, this.shadowRoot.querySelector('a'), {
83569
+ this.anchor = this.shadowRoot.querySelector('a');
83570
+
83571
+ forwardAttrs(this, this.anchor, {
83561
83572
  includeAttrs: ['href', 'target', 'tooltip'],
83562
83573
  mapAttrs: {
83563
83574
  tooltip: 'title',
@@ -83567,6 +83578,16 @@ function requireIndex_cjs () {
83567
83578
  forwardAttrs(this, this.shadowRoot.querySelector('descope-text'), {
83568
83579
  includeAttrs: ['mode', 'variant'],
83569
83580
  });
83581
+
83582
+ this.anchor.addEventListener('click', (e) => {
83583
+ if (this.readOnly) {
83584
+ e.preventDefault();
83585
+ }
83586
+ });
83587
+ }
83588
+
83589
+ get readOnly() {
83590
+ return this.getAttribute('readonly') === 'true';
83570
83591
  }
83571
83592
  }
83572
83593
 
@@ -83586,7 +83607,11 @@ function requireIndex_cjs () {
83586
83607
  hostWidth: { ...host$v, property: 'width' },
83587
83608
  hostDirection: { ...text$2, property: 'direction' },
83588
83609
  textAlign: wrapper$1,
83589
- textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
83610
+ textDecoration: {
83611
+ ...link$3,
83612
+ property: 'text-decoration',
83613
+ fallback: 'none',
83614
+ },
83590
83615
  textColor: [
83591
83616
  { ...anchor, property: 'color' },
83592
83617
  { ...text$2, property: TextClass.cssVarList.textColor },
@@ -83595,7 +83620,7 @@ function requireIndex_cjs () {
83595
83620
  },
83596
83621
  }),
83597
83622
  draggableMixin$1,
83598
- componentNameValidationMixin$1
83623
+ componentNameValidationMixin$1,
83599
83624
  )(RawLink);
83600
83625
 
83601
83626
  const globalRefs$F = getThemeRefs$1(globals);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -97,7 +97,7 @@
97
97
  "webpack-subresource-integrity": "5.2.0-rc.1"
98
98
  },
99
99
  "dependencies": {
100
- "@descope/web-components-ui": "3.3.2"
100
+ "@descope/web-components-ui": "3.3.3"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"