@descope/flow-components 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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.11.1",
8
+ "buildVersion": "3.11.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.11.1",
8
+ "buildVersion": "3.11.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -83195,7 +83195,8 @@ function requireIndex_cjs () {
83195
83195
  <slot part="text-wrapper"></slot>
83196
83196
  `;
83197
83197
 
83198
- injectStyle(`
83198
+ injectStyle(
83199
+ `
83199
83200
  :host {
83200
83201
  display: inline-block;
83201
83202
  line-height: 1em;
@@ -83204,7 +83205,9 @@ function requireIndex_cjs () {
83204
83205
  width: 100%;
83205
83206
  display: inline-block;
83206
83207
  }
83207
- `, this);
83208
+ `,
83209
+ this,
83210
+ );
83208
83211
  }
83209
83212
 
83210
83213
  get hideWhenEmpty() {
@@ -83222,7 +83225,7 @@ function requireIndex_cjs () {
83222
83225
  }
83223
83226
 
83224
83227
  const { host: host$y } = {
83225
- host: { selector: () => ':host' }
83228
+ host: { selector: () => ':host' },
83226
83229
  };
83227
83230
 
83228
83231
  const TextClass = compose(
@@ -83231,9 +83234,7 @@ function requireIndex_cjs () {
83231
83234
  hostWidth: { ...host$y, property: 'width' },
83232
83235
  hostDirection: { ...host$y, property: 'direction' },
83233
83236
  fontSize: {},
83234
- textColor: [
83235
- { property: 'color' }
83236
- ],
83237
+ textColor: [{ property: 'color' }],
83237
83238
  textLineHeight: { property: 'line-height' },
83238
83239
  textLetterSpacing: { property: 'letter-spacing' },
83239
83240
  textShadow: {},
@@ -83247,6 +83248,7 @@ function requireIndex_cjs () {
83247
83248
  borderColor: {},
83248
83249
  },
83249
83250
  }),
83251
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
83250
83252
  draggableMixin$1,
83251
83253
  componentNameValidationMixin$1,
83252
83254
  )(RawText);
@@ -83375,12 +83377,12 @@ function requireIndex_cjs () {
83375
83377
  return textArea.value;
83376
83378
  };
83377
83379
 
83378
- /* eslint-disable no-param-reassign */
83379
-
83380
-
83381
83380
  const componentName$1j = getComponentName('enriched-text');
83382
83381
 
83383
- class EnrichedText extends createBaseClass$1({ componentName: componentName$1j, baseSelector: ':host > div' }) {
83382
+ class EnrichedText extends createBaseClass$1({
83383
+ componentName: componentName$1j,
83384
+ baseSelector: ':host > div',
83385
+ }) {
83384
83386
  #origLinkRenderer;
83385
83387
 
83386
83388
  #origEmRenderer;
@@ -83427,7 +83429,7 @@ function requireIndex_cjs () {
83427
83429
  color: currentColor;
83428
83430
  }
83429
83431
  `,
83430
- this
83432
+ this,
83431
83433
  );
83432
83434
 
83433
83435
  this.#initProcessor();
@@ -83462,11 +83464,23 @@ function requireIndex_cjs () {
83462
83464
 
83463
83465
  // We're overriding the rule for em with single underscore to perform as underline. (_underline_)
83464
83466
  customUnderlineRenderer() {
83465
- this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
83467
+ this.processor.renderer.rules.em_open = (
83468
+ tokens,
83469
+ idx,
83470
+ options,
83471
+ env,
83472
+ self,
83473
+ ) => {
83466
83474
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
83467
83475
  return this.#origEmRenderer(tokens, idx, options, env, self);
83468
83476
  };
83469
- this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
83477
+ this.processor.renderer.rules.em_close = (
83478
+ tokens,
83479
+ idx,
83480
+ options,
83481
+ env,
83482
+ self,
83483
+ ) => {
83470
83484
  if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
83471
83485
  return this.#origEmRenderer(tokens, idx, options, env, self);
83472
83486
  };
@@ -83474,7 +83488,13 @@ function requireIndex_cjs () {
83474
83488
 
83475
83489
  #customizeLinkRenderer() {
83476
83490
  if (this.linkTargetBlank) {
83477
- this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
83491
+ this.processor.renderer.rules.link_open = (
83492
+ tokens,
83493
+ idx,
83494
+ options,
83495
+ env,
83496
+ self,
83497
+ ) => {
83478
83498
  // Add a new `target` attribute, or replace the value of the existing one.
83479
83499
  tokens[idx].attrSet('target', '_blank');
83480
83500
  // Pass the token to the default renderer.
@@ -83499,11 +83519,13 @@ function requireIndex_cjs () {
83499
83519
  #storeOrigRenderers() {
83500
83520
  const defaultLinkRenderer = (tokens, idx, options, _, self) =>
83501
83521
  self.renderToken(tokens, idx, options);
83502
- this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
83522
+ this.#origLinkRenderer =
83523
+ this.processor.renderer.rules.link_open || defaultLinkRenderer;
83503
83524
 
83504
83525
  const defaultStrongRenderer = (tokens, idx, options, _, self) =>
83505
83526
  self.renderToken(tokens, idx, options);
83506
- this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
83527
+ this.#origEmRenderer =
83528
+ this.processor.renderer.rules.em_open || defaultStrongRenderer;
83507
83529
  }
83508
83530
 
83509
83531
  #initProcessor() {
@@ -83537,9 +83559,11 @@ function requireIndex_cjs () {
83537
83559
 
83538
83560
  try {
83539
83561
  const tokens = this.processor.parse(html, { references: undefined });
83540
- html = this.processor.renderer.render(tokens, { html: true, breaks: true });
83541
- } catch (e) {
83542
- // eslint-disable-next-line no-console
83562
+ html = this.processor.renderer.render(tokens, {
83563
+ html: true,
83564
+ breaks: true,
83565
+ });
83566
+ } catch {
83543
83567
  console.warn('Not parsing invalid markdown token');
83544
83568
  }
83545
83569
 
@@ -83560,7 +83584,11 @@ function requireIndex_cjs () {
83560
83584
  createStyleMixin$1({
83561
83585
  mappings: {
83562
83586
  hostWidth: { selector: () => ':host', property: 'width' },
83563
- hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
83587
+ hostDisplay: {
83588
+ selector: () => ':host',
83589
+ property: 'display',
83590
+ fallback: 'inline-block',
83591
+ },
83564
83592
  hostDirection: { selector: () => ':host', property: 'direction' },
83565
83593
  fontSize: {},
83566
83594
  fontFamily: {},
@@ -83574,15 +83602,19 @@ function requireIndex_cjs () {
83574
83602
  textAlign: {},
83575
83603
  linkColor: { selector: 'a', property: 'color' },
83576
83604
  linkTextDecoration: { selector: 'a', property: 'text-decoration' },
83577
- linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
83605
+ linkHoverTextDecoration: {
83606
+ selector: 'a:hover',
83607
+ property: 'text-decoration',
83608
+ },
83578
83609
  minHeight: {},
83579
83610
  minWidth: {},
83580
83611
  },
83581
83612
  }),
83582
83613
  createStyleMixin$1({ componentNameOverride: getComponentName('link') }),
83583
83614
  createStyleMixin$1({ componentNameOverride: getComponentName('text') }),
83615
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
83584
83616
  draggableMixin$1,
83585
- componentNameValidationMixin$1
83617
+ componentNameValidationMixin$1,
83586
83618
  )(EnrichedText);
83587
83619
 
83588
83620
  const componentName$1i = getComponentName('link');
@@ -83685,6 +83717,7 @@ function requireIndex_cjs () {
83685
83717
  cursor: anchor,
83686
83718
  },
83687
83719
  }),
83720
+ stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
83688
83721
  draggableMixin$1,
83689
83722
  componentNameValidationMixin$1,
83690
83723
  )(RawLink);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.11.1",
3
+ "version": "3.11.3",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -93,11 +93,11 @@
93
93
  "typescript": "^6.0.0",
94
94
  "webpack": "^5.74.0",
95
95
  "webpack-cli": "^7.0.0",
96
- "webpack-dev-server": "5.2.3",
96
+ "webpack-dev-server": "5.2.4",
97
97
  "webpack-subresource-integrity": "5.2.0-rc.1"
98
98
  },
99
99
  "dependencies": {
100
- "@descope/web-components-ui": "3.11.1"
100
+ "@descope/web-components-ui": "3.11.3"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"