@descope/web-components-ui 3.11.1 → 3.11.2

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
package/dist/index.esm.js CHANGED
@@ -2197,12 +2197,12 @@ const decodeHTML = (html) => {
2197
2197
  return textArea.value;
2198
2198
  };
2199
2199
 
2200
- /* eslint-disable no-param-reassign */
2201
-
2202
-
2203
2200
  const componentName$1s = getComponentName$1('enriched-text');
2204
2201
 
2205
- class EnrichedText extends createBaseClass$1({ componentName: componentName$1s, baseSelector: ':host > div' }) {
2202
+ class EnrichedText extends createBaseClass$1({
2203
+ componentName: componentName$1s,
2204
+ baseSelector: ':host > div',
2205
+ }) {
2206
2206
  #origLinkRenderer;
2207
2207
 
2208
2208
  #origEmRenderer;
@@ -2249,7 +2249,7 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1s,
2249
2249
  color: currentColor;
2250
2250
  }
2251
2251
  `,
2252
- this
2252
+ this,
2253
2253
  );
2254
2254
 
2255
2255
  this.#initProcessor();
@@ -2284,11 +2284,23 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1s,
2284
2284
 
2285
2285
  // We're overriding the rule for em with single underscore to perform as underline. (_underline_)
2286
2286
  customUnderlineRenderer() {
2287
- this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
2287
+ this.processor.renderer.rules.em_open = (
2288
+ tokens,
2289
+ idx,
2290
+ options,
2291
+ env,
2292
+ self,
2293
+ ) => {
2288
2294
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
2289
2295
  return this.#origEmRenderer(tokens, idx, options, env, self);
2290
2296
  };
2291
- this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
2297
+ this.processor.renderer.rules.em_close = (
2298
+ tokens,
2299
+ idx,
2300
+ options,
2301
+ env,
2302
+ self,
2303
+ ) => {
2292
2304
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
2293
2305
  return this.#origEmRenderer(tokens, idx, options, env, self);
2294
2306
  };
@@ -2296,7 +2308,13 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1s,
2296
2308
 
2297
2309
  #customizeLinkRenderer() {
2298
2310
  if (this.linkTargetBlank) {
2299
- this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
2311
+ this.processor.renderer.rules.link_open = (
2312
+ tokens,
2313
+ idx,
2314
+ options,
2315
+ env,
2316
+ self,
2317
+ ) => {
2300
2318
  // Add a new `target` attribute, or replace the value of the existing one.
2301
2319
  tokens[idx].attrSet('target', '_blank');
2302
2320
  // Pass the token to the default renderer.
@@ -2321,11 +2339,13 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1s,
2321
2339
  #storeOrigRenderers() {
2322
2340
  const defaultLinkRenderer = (tokens, idx, options, _, self) =>
2323
2341
  self.renderToken(tokens, idx, options);
2324
- this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
2342
+ this.#origLinkRenderer =
2343
+ this.processor.renderer.rules.link_open || defaultLinkRenderer;
2325
2344
 
2326
2345
  const defaultStrongRenderer = (tokens, idx, options, _, self) =>
2327
2346
  self.renderToken(tokens, idx, options);
2328
- this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
2347
+ this.#origEmRenderer =
2348
+ this.processor.renderer.rules.em_open || defaultStrongRenderer;
2329
2349
  }
2330
2350
 
2331
2351
  #initProcessor() {
@@ -2359,9 +2379,11 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$1s,
2359
2379
 
2360
2380
  try {
2361
2381
  const tokens = this.processor.parse(html, { references: undefined });
2362
- html = this.processor.renderer.render(tokens, { html: true, breaks: true });
2363
- } catch (e) {
2364
- // eslint-disable-next-line no-console
2382
+ html = this.processor.renderer.render(tokens, {
2383
+ html: true,
2384
+ breaks: true,
2385
+ });
2386
+ } catch {
2365
2387
  console.warn('Not parsing invalid markdown token');
2366
2388
  }
2367
2389
 
@@ -2382,7 +2404,11 @@ const EnrichedTextClass = compose$1(
2382
2404
  createStyleMixin$1({
2383
2405
  mappings: {
2384
2406
  hostWidth: { selector: () => ':host', property: 'width' },
2385
- hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
2407
+ hostDisplay: {
2408
+ selector: () => ':host',
2409
+ property: 'display',
2410
+ fallback: 'inline-block',
2411
+ },
2386
2412
  hostDirection: { selector: () => ':host', property: 'direction' },
2387
2413
  fontSize: {},
2388
2414
  fontFamily: {},
@@ -2396,15 +2422,19 @@ const EnrichedTextClass = compose$1(
2396
2422
  textAlign: {},
2397
2423
  linkColor: { selector: 'a', property: 'color' },
2398
2424
  linkTextDecoration: { selector: 'a', property: 'text-decoration' },
2399
- linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
2425
+ linkHoverTextDecoration: {
2426
+ selector: 'a:hover',
2427
+ property: 'text-decoration',
2428
+ },
2400
2429
  minHeight: {},
2401
2430
  minWidth: {},
2402
2431
  },
2403
2432
  }),
2404
2433
  createStyleMixin$1({ componentNameOverride: getComponentName$1('link') }),
2405
2434
  createStyleMixin$1({ componentNameOverride: getComponentName$1('text') }),
2435
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
2406
2436
  draggableMixin$1,
2407
- componentNameValidationMixin$1
2437
+ componentNameValidationMixin$1,
2408
2438
  )(EnrichedText);
2409
2439
 
2410
2440
  const kebabCase = (str) =>
@@ -4805,7 +4835,8 @@ class RawText extends createBaseClass$1({
4805
4835
  <slot part="text-wrapper"></slot>
4806
4836
  `;
4807
4837
 
4808
- injectStyle(`
4838
+ injectStyle(
4839
+ `
4809
4840
  :host {
4810
4841
  display: inline-block;
4811
4842
  line-height: 1em;
@@ -4814,7 +4845,9 @@ class RawText extends createBaseClass$1({
4814
4845
  width: 100%;
4815
4846
  display: inline-block;
4816
4847
  }
4817
- `, this);
4848
+ `,
4849
+ this,
4850
+ );
4818
4851
  }
4819
4852
 
4820
4853
  get hideWhenEmpty() {
@@ -4832,7 +4865,7 @@ class RawText extends createBaseClass$1({
4832
4865
  }
4833
4866
 
4834
4867
  const { host: host$y } = {
4835
- host: { selector: () => ':host' }
4868
+ host: { selector: () => ':host' },
4836
4869
  };
4837
4870
 
4838
4871
  const TextClass = compose$1(
@@ -4841,9 +4874,7 @@ const TextClass = compose$1(
4841
4874
  hostWidth: { ...host$y, property: 'width' },
4842
4875
  hostDirection: { ...host$y, property: 'direction' },
4843
4876
  fontSize: {},
4844
- textColor: [
4845
- { property: 'color' }
4846
- ],
4877
+ textColor: [{ property: 'color' }],
4847
4878
  textLineHeight: { property: 'line-height' },
4848
4879
  textLetterSpacing: { property: 'letter-spacing' },
4849
4880
  textShadow: {},
@@ -4857,6 +4888,7 @@ const TextClass = compose$1(
4857
4888
  borderColor: {},
4858
4889
  },
4859
4890
  }),
4891
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
4860
4892
  draggableMixin$1,
4861
4893
  componentNameValidationMixin$1,
4862
4894
  )(RawText);
@@ -4961,6 +4993,7 @@ const LinkClass = compose$1(
4961
4993
  cursor: anchor,
4962
4994
  },
4963
4995
  }),
4996
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
4964
4997
  draggableMixin$1,
4965
4998
  componentNameValidationMixin$1,
4966
4999
  )(RawLink);