@descope/web-components-ui 3.11.1 → 3.11.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.
Files changed (46) hide show
  1. package/dist/cjs/index.cjs.js +55 -22
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +55 -22
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/9582.js +1 -1
  6. package/dist/umd/9582.js.map +1 -1
  7. package/dist/umd/DescopeDev.js +1 -1
  8. package/dist/umd/DescopeDev.js.map +1 -1
  9. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  10. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -1
  11. package/dist/umd/descope-alert-index-js.js +1 -1
  12. package/dist/umd/descope-alert-index-js.js.map +1 -1
  13. package/dist/umd/descope-apps-list.js +1 -1
  14. package/dist/umd/descope-apps-list.js.map +1 -1
  15. package/dist/umd/descope-collapsible-container.js +1 -1
  16. package/dist/umd/descope-collapsible-container.js.map +1 -1
  17. package/dist/umd/descope-divider-index-js.js +1 -1
  18. package/dist/umd/descope-divider-index-js.js.map +1 -1
  19. package/dist/umd/descope-enriched-text.js +1 -1
  20. package/dist/umd/descope-enriched-text.js.map +1 -1
  21. package/dist/umd/descope-link.js +1 -1
  22. package/dist/umd/descope-link.js.map +1 -1
  23. package/dist/umd/descope-outbound-apps.js +1 -1
  24. package/dist/umd/descope-outbound-apps.js.map +1 -1
  25. package/dist/umd/descope-recovery-codes.js +1 -1
  26. package/dist/umd/descope-recovery-codes.js.map +1 -1
  27. package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
  28. package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -1
  29. package/dist/umd/descope-text.js +1 -1
  30. package/dist/umd/descope-text.js.map +1 -1
  31. package/dist/umd/descope-tooltip.js +1 -1
  32. package/dist/umd/descope-tooltip.js.map +1 -1
  33. package/dist/umd/descope-trusted-devices.js +1 -1
  34. package/dist/umd/descope-trusted-devices.js.map +1 -1
  35. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  36. package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
  37. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  38. package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
  39. package/dist/umd/descope-user-passkeys.js +1 -1
  40. package/dist/umd/descope-user-passkeys.js.map +1 -1
  41. package/dist/umd/index.js +1 -1
  42. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  43. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
  44. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  45. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
  46. package/package.json +36 -36
@@ -3620,7 +3620,8 @@ class RawText extends createBaseClass$1({
3620
3620
  <slot part="text-wrapper"></slot>
3621
3621
  `;
3622
3622
 
3623
- injectStyle(`
3623
+ injectStyle(
3624
+ `
3624
3625
  :host {
3625
3626
  display: inline-block;
3626
3627
  line-height: 1em;
@@ -3629,7 +3630,9 @@ class RawText extends createBaseClass$1({
3629
3630
  width: 100%;
3630
3631
  display: inline-block;
3631
3632
  }
3632
- `, this);
3633
+ `,
3634
+ this,
3635
+ );
3633
3636
  }
3634
3637
 
3635
3638
  get hideWhenEmpty() {
@@ -3647,7 +3650,7 @@ class RawText extends createBaseClass$1({
3647
3650
  }
3648
3651
 
3649
3652
  const { host: host$y } = {
3650
- host: { selector: () => ':host' }
3653
+ host: { selector: () => ':host' },
3651
3654
  };
3652
3655
 
3653
3656
  const TextClass = compose(
@@ -3656,9 +3659,7 @@ const TextClass = compose(
3656
3659
  hostWidth: { ...host$y, property: 'width' },
3657
3660
  hostDirection: { ...host$y, property: 'direction' },
3658
3661
  fontSize: {},
3659
- textColor: [
3660
- { property: 'color' }
3661
- ],
3662
+ textColor: [{ property: 'color' }],
3662
3663
  textLineHeight: { property: 'line-height' },
3663
3664
  textLetterSpacing: { property: 'letter-spacing' },
3664
3665
  textShadow: {},
@@ -3672,6 +3673,7 @@ const TextClass = compose(
3672
3673
  borderColor: {},
3673
3674
  },
3674
3675
  }),
3676
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
3675
3677
  draggableMixin$1,
3676
3678
  componentNameValidationMixin$1,
3677
3679
  )(RawText);
@@ -3800,12 +3802,12 @@ const decodeHTML = (html) => {
3800
3802
  return textArea.value;
3801
3803
  };
3802
3804
 
3803
- /* eslint-disable no-param-reassign */
3804
-
3805
-
3806
3805
  const componentName$1j = getComponentName('enriched-text');
3807
3806
 
3808
- class EnrichedText extends createBaseClass$1({ componentName: componentName$1j, baseSelector: ':host > div' }) {
3807
+ class EnrichedText extends createBaseClass$1({
3808
+ componentName: componentName$1j,
3809
+ baseSelector: ':host > div',
3810
+ }) {
3809
3811
  #origLinkRenderer;
3810
3812
 
3811
3813
  #origEmRenderer;
@@ -3852,7 +3854,7 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1j,
3852
3854
  color: currentColor;
3853
3855
  }
3854
3856
  `,
3855
- this
3857
+ this,
3856
3858
  );
3857
3859
 
3858
3860
  this.#initProcessor();
@@ -3887,11 +3889,23 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1j,
3887
3889
 
3888
3890
  // We're overriding the rule for em with single underscore to perform as underline. (_underline_)
3889
3891
  customUnderlineRenderer() {
3890
- this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
3892
+ this.processor.renderer.rules.em_open = (
3893
+ tokens,
3894
+ idx,
3895
+ options,
3896
+ env,
3897
+ self,
3898
+ ) => {
3891
3899
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
3892
3900
  return this.#origEmRenderer(tokens, idx, options, env, self);
3893
3901
  };
3894
- this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
3902
+ this.processor.renderer.rules.em_close = (
3903
+ tokens,
3904
+ idx,
3905
+ options,
3906
+ env,
3907
+ self,
3908
+ ) => {
3895
3909
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
3896
3910
  return this.#origEmRenderer(tokens, idx, options, env, self);
3897
3911
  };
@@ -3899,7 +3913,13 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1j,
3899
3913
 
3900
3914
  #customizeLinkRenderer() {
3901
3915
  if (this.linkTargetBlank) {
3902
- this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
3916
+ this.processor.renderer.rules.link_open = (
3917
+ tokens,
3918
+ idx,
3919
+ options,
3920
+ env,
3921
+ self,
3922
+ ) => {
3903
3923
  // Add a new `target` attribute, or replace the value of the existing one.
3904
3924
  tokens[idx].attrSet('target', '_blank');
3905
3925
  // Pass the token to the default renderer.
@@ -3924,11 +3944,13 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1j,
3924
3944
  #storeOrigRenderers() {
3925
3945
  const defaultLinkRenderer = (tokens, idx, options, _, self) =>
3926
3946
  self.renderToken(tokens, idx, options);
3927
- this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
3947
+ this.#origLinkRenderer =
3948
+ this.processor.renderer.rules.link_open || defaultLinkRenderer;
3928
3949
 
3929
3950
  const defaultStrongRenderer = (tokens, idx, options, _, self) =>
3930
3951
  self.renderToken(tokens, idx, options);
3931
- this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
3952
+ this.#origEmRenderer =
3953
+ this.processor.renderer.rules.em_open || defaultStrongRenderer;
3932
3954
  }
3933
3955
 
3934
3956
  #initProcessor() {
@@ -3962,9 +3984,11 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1j,
3962
3984
 
3963
3985
  try {
3964
3986
  const tokens = this.processor.parse(html, { references: undefined });
3965
- html = this.processor.renderer.render(tokens, { html: true, breaks: true });
3966
- } catch (e) {
3967
- // eslint-disable-next-line no-console
3987
+ html = this.processor.renderer.render(tokens, {
3988
+ html: true,
3989
+ breaks: true,
3990
+ });
3991
+ } catch {
3968
3992
  console.warn('Not parsing invalid markdown token');
3969
3993
  }
3970
3994
 
@@ -3985,7 +4009,11 @@ const EnrichedTextClass = compose(
3985
4009
  createStyleMixin$1({
3986
4010
  mappings: {
3987
4011
  hostWidth: { selector: () => ':host', property: 'width' },
3988
- hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
4012
+ hostDisplay: {
4013
+ selector: () => ':host',
4014
+ property: 'display',
4015
+ fallback: 'inline-block',
4016
+ },
3989
4017
  hostDirection: { selector: () => ':host', property: 'direction' },
3990
4018
  fontSize: {},
3991
4019
  fontFamily: {},
@@ -3999,15 +4027,19 @@ const EnrichedTextClass = compose(
3999
4027
  textAlign: {},
4000
4028
  linkColor: { selector: 'a', property: 'color' },
4001
4029
  linkTextDecoration: { selector: 'a', property: 'text-decoration' },
4002
- linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
4030
+ linkHoverTextDecoration: {
4031
+ selector: 'a:hover',
4032
+ property: 'text-decoration',
4033
+ },
4003
4034
  minHeight: {},
4004
4035
  minWidth: {},
4005
4036
  },
4006
4037
  }),
4007
4038
  createStyleMixin$1({ componentNameOverride: getComponentName('link') }),
4008
4039
  createStyleMixin$1({ componentNameOverride: getComponentName('text') }),
4040
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
4009
4041
  draggableMixin$1,
4010
- componentNameValidationMixin$1
4042
+ componentNameValidationMixin$1,
4011
4043
  )(EnrichedText);
4012
4044
 
4013
4045
  const componentName$1i = getComponentName('link');
@@ -4110,6 +4142,7 @@ const LinkClass = compose(
4110
4142
  cursor: anchor,
4111
4143
  },
4112
4144
  }),
4145
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
4113
4146
  draggableMixin$1,
4114
4147
  componentNameValidationMixin$1,
4115
4148
  )(RawLink);