@descope/flow-components 2.1.16 → 2.1.18

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.
package/dist/index.cjs.js CHANGED
@@ -79869,6 +79869,10 @@ function requireIndex_cjs () {
79869
79869
  _ref.adoptedStyleSheets = adoptedStyleSheets;
79870
79870
  }
79871
79871
 
79872
+ if(cssString && !style.cssRules[0]?.style){
79873
+ console.warn(`No style rules were created, make sure the CSS is valid:\n "${cssString}"`);
79874
+ }
79875
+
79872
79876
  return style;
79873
79877
  };
79874
79878
 
@@ -80960,16 +80964,25 @@ function requireIndex_cjs () {
80960
80964
  };
80961
80965
  getThemeVars$1(globals);
80962
80966
 
80963
- const createCssVar$1 = (varName, fallback) => `var(${varName}${fallback ? `, ${fallback}` : ''})`;
80967
+ const getOverrideCssVarName$1 = (origVarName) => `${origVarName}__override`;
80968
+
80969
+ const createCssVar$1 = (varName, fallback, createOverride = false) => {
80970
+ const ret = `var(${varName}${fallback ? `, ${fallback}` : ''})`;
80971
+
80972
+ if (!createOverride) return ret;
80973
+
80974
+ // we are generating an override css var to allow override with fallback to the default var
80975
+ const overrideVarName = getOverrideCssVarName$1(varName);
80976
+ return `var(${overrideVarName}, ${ret})`;
80977
+ };
80964
80978
 
80965
80979
  const createCssSelector$1 = (baseSelector = '', relativeSelectorOrSelectorFn = '') =>
80966
80980
  isFunction(relativeSelectorOrSelectorFn)
80967
80981
  ? relativeSelectorOrSelectorFn(baseSelector)
80968
- : `${baseSelector}${
80969
- /^[A-Za-z]/.test(relativeSelectorOrSelectorFn)
80970
- ? ` ${relativeSelectorOrSelectorFn}`
80971
- : relativeSelectorOrSelectorFn
80972
- }`;
80982
+ : `${baseSelector}${/^[A-Za-z]/.test(relativeSelectorOrSelectorFn)
80983
+ ? ` ${relativeSelectorOrSelectorFn}`
80984
+ : relativeSelectorOrSelectorFn
80985
+ }`;
80973
80986
 
80974
80987
  let StyleBuilder$1 = class StyleBuilder {
80975
80988
  constructor() {
@@ -81009,6 +81022,7 @@ function requireIndex_cjs () {
81009
81022
 
81010
81023
  const createStyle$1 = (componentName, baseSelector, mappings) => {
81011
81024
  const style = new StyleBuilder$1();
81025
+ // we generate all the fallback vars recursively
81012
81026
  const createFallbackVar = (fallback, origVarName) => {
81013
81027
  if (!fallback) return '';
81014
81028
  if (typeof fallback === 'string') return fallback;
@@ -81028,7 +81042,7 @@ function requireIndex_cjs () {
81028
81042
  style.add(
81029
81043
  createCssSelector$1(baseSelector, relativeSelectorOrSelectorFn),
81030
81044
  isFunction(property) ? property() : property,
81031
- createCssVar$1(cssVarName, fallbackValue) + (important ? '!important' : '')
81045
+ createCssVar$1(cssVarName, fallbackValue, true) + (important ? '!important' : '')
81032
81046
  );
81033
81047
  }
81034
81048
  );
@@ -81055,6 +81069,8 @@ function requireIndex_cjs () {
81055
81069
  return Object.assign(
81056
81070
  acc,
81057
81071
  { [attr]: varName },
81072
+ // we are exposing the override css var names, the convention is to add 'Override' suffix to the attribute name
81073
+ { [attr + 'Override']: getOverrideCssVarName$1(varName) },
81058
81074
  getFallbackVarsNames$1(attr, varName, mappings[attr])
81059
81075
  );
81060
81076
  }, {});
@@ -81156,7 +81172,7 @@ function requireIndex_cjs () {
81156
81172
  if (elementId) {
81157
81173
  // basically this is enough to make the selector more specific
81158
81174
  // but just in case there is no id, we will also add the class multiple times
81159
- classSpecifier += `#${elementId}`;
81175
+ classSpecifier += `#${CSS.escape(elementId)}`;
81160
81176
  }
81161
81177
 
81162
81178
  this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
@@ -81165,7 +81181,7 @@ function requireIndex_cjs () {
81165
81181
 
81166
81182
 
81167
81183
  #setAttrOverride(attrName, value) {
81168
- const style = this.#overrideStyleEle?.cssRules[0]?.style;
81184
+ const style = this.#overrideStyleEle.cssRules[0].style;
81169
81185
 
81170
81186
  if (!style) return;
81171
81187
 
@@ -82965,7 +82981,17 @@ function requireIndex_cjs () {
82965
82981
  vars: vars$12
82966
82982
  });
82967
82983
 
82968
- const createCssVar = (varName, fallback) => `var(${varName}${fallback ? `, ${fallback}` : ''})`;
82984
+ const getOverrideCssVarName = (origVarName) => `${origVarName}__override`;
82985
+
82986
+ const createCssVar = (varName, fallback, createOverride = false) => {
82987
+ const ret = `var(${varName}${fallback ? `, ${fallback}` : ''})`;
82988
+
82989
+ if (!createOverride) return ret;
82990
+
82991
+ // we are generating an override css var to allow override with fallback to the default var
82992
+ const overrideVarName = getOverrideCssVarName(varName);
82993
+ return `var(${overrideVarName}, ${ret})`;
82994
+ };
82969
82995
 
82970
82996
  const createCssSelector = (baseSelector = '', relativeSelectorOrSelectorFn = '') =>
82971
82997
  isFunction$1(relativeSelectorOrSelectorFn)
@@ -83014,6 +83040,7 @@ function requireIndex_cjs () {
83014
83040
 
83015
83041
  const createStyle = (componentName, baseSelector, mappings) => {
83016
83042
  const style = new StyleBuilder();
83043
+ // we generate all the fallback vars recursively
83017
83044
  const createFallbackVar = (fallback, origVarName) => {
83018
83045
  if (!fallback) return '';
83019
83046
  if (typeof fallback === 'string') return fallback;
@@ -83033,7 +83060,7 @@ function requireIndex_cjs () {
83033
83060
  style.add(
83034
83061
  createCssSelector(baseSelector, relativeSelectorOrSelectorFn),
83035
83062
  isFunction$1(property) ? property() : property,
83036
- createCssVar(cssVarName, fallbackValue) + (important ? '!important' : '')
83063
+ createCssVar(cssVarName, fallbackValue, true) + (important ? '!important' : '')
83037
83064
  );
83038
83065
  }
83039
83066
  );
@@ -83060,6 +83087,8 @@ function requireIndex_cjs () {
83060
83087
  return Object.assign(
83061
83088
  acc,
83062
83089
  { [attr]: varName },
83090
+ // we are exposing the override css var names, the convention is to add 'Override' suffix to the attribute name
83091
+ { [attr + 'Override']: getOverrideCssVarName(varName) },
83063
83092
  getFallbackVarsNames(attr, varName, mappings[attr])
83064
83093
  );
83065
83094
  }, {});
@@ -83151,7 +83180,7 @@ function requireIndex_cjs () {
83151
83180
  if (elementId) {
83152
83181
  // basically this is enough to make the selector more specific
83153
83182
  // but just in case there is no id, we will also add the class multiple times
83154
- classSpecifier += `#${elementId}`;
83183
+ classSpecifier += `#${CSS.escape(elementId)}`;
83155
83184
  }
83156
83185
 
83157
83186
  this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
@@ -83159,7 +83188,7 @@ function requireIndex_cjs () {
83159
83188
  }
83160
83189
 
83161
83190
  #setAttrOverride(attrName, value) {
83162
- const style = this.#overrideStyleEle?.cssRules[0]?.style;
83191
+ const style = this.#overrideStyleEle.cssRules[0].style;
83163
83192
 
83164
83193
  if (!style) return;
83165
83194
 
@@ -97630,125 +97659,9 @@ descope-boolean-field-internal {
97630
97659
  vars: vars$l
97631
97660
  });
97632
97661
 
97633
- const componentName$n = getComponentName('apps-list');
97634
-
97635
- const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
97636
- <a ${url ? `href="${url}" title="${url}"` : ''} target="_blank">
97637
- <descope-list-item>
97638
- <descope-avatar
97639
- ${icon ? `img="${icon}"` : ''}
97640
- ${name ? `display-name="${name}" abbr=${limitAbbreviation(name)}` : ''}
97641
- size=${ref.size}
97642
- ></descope-avatar>
97643
- <descope-text
97644
- variant="body1"
97645
- mode="primary"
97646
- >${name}</descope-text>
97647
- </descope-list-item>
97648
- </a>
97649
- `;
97662
+ const componentName$n = getComponentName('list-item');
97650
97663
 
97651
97664
  const customMixin$3 = (superclass) =>
97652
- class AppsListMixinClass extends superclass {
97653
- get size() {
97654
- return this.getAttribute('size') || 'sm';
97655
- }
97656
- };
97657
-
97658
- const AppsListClass = compose(
97659
- createStyleMixin$1({
97660
- mappings: {
97661
- maxHeight: { selector: () => ':host' },
97662
- minHeight: { selector: () => ':host' },
97663
- hostDirection: { selector: () => ':host', property: 'direction' },
97664
- itemsFontWeight: {
97665
- selector: TextClass.componentName,
97666
- property: TextClass.cssVarList.fontWeight,
97667
- },
97668
- itemsFontSize: {
97669
- selector: TextClass.componentName,
97670
- property: TextClass.cssVarList.fontSize,
97671
- },
97672
- itemsTextAlign: {
97673
- selector: TextClass.componentName,
97674
- property: TextClass.cssVarList.textAlign,
97675
- },
97676
- },
97677
- }),
97678
- createDynamicDataMixin$1({ itemRenderer: itemRenderer$4, rerenderAttrsList: ['size'] }),
97679
- draggableMixin$1,
97680
- componentNameValidationMixin$1,
97681
- customMixin$3
97682
- )(
97683
- createProxy$1({
97684
- slots: ['empty-state'],
97685
- wrappedEleName: 'descope-list',
97686
- excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
97687
- componentName: componentName$n,
97688
- style: () => `
97689
- :host {
97690
- width: 100%;
97691
- display: inline-flex;
97692
- }
97693
-
97694
- descope-text::part(text-wrapper) {
97695
- display: -webkit-box;
97696
- -webkit-line-clamp: 2;
97697
- -webkit-box-orient: vertical;
97698
- overflow: hidden;
97699
- }
97700
-
97701
- a {
97702
- text-decoration: none;
97703
- }
97704
-
97705
- descope-text {
97706
- ${TextClass.cssVarList.hostDirection}: var(${AppsListClass.cssVarList.hostDirection});
97707
- }
97708
- `,
97709
- })
97710
- );
97711
-
97712
- const vars$k = AppsListClass.cssVarList;
97713
- const globalRefs$a = getThemeRefs$1(globals);
97714
-
97715
- const defaultHeight = '400px';
97716
-
97717
- const appsList = {
97718
- [vars$k.itemsFontWeight]: 'normal',
97719
- [vars$k.itemsTextAlign]: 'start',
97720
- [vars$k.hostDirection]: globalRefs$a.direction,
97721
- [vars$k.maxHeight]: defaultHeight,
97722
-
97723
- _empty: {
97724
- [vars$k.minHeight]: defaultHeight,
97725
- },
97726
-
97727
- size: {
97728
- xs: {
97729
- [vars$k.itemsFontSize]: '14px',
97730
- },
97731
- sm: {
97732
- [vars$k.itemsFontSize]: '14px',
97733
- },
97734
- md: {
97735
- [vars$k.itemsFontSize]: '16px',
97736
- },
97737
- lg: {
97738
- [vars$k.itemsFontSize]: '20px',
97739
- },
97740
- },
97741
- };
97742
-
97743
- var appsList$1 = /*#__PURE__*/Object.freeze({
97744
- __proto__: null,
97745
- default: appsList,
97746
- vars: vars$k
97747
- });
97748
-
97749
- const componentName$m = getComponentName('list-item');
97750
-
97751
- const customMixin$2 = (superclass) =>
97752
97665
  class ListItemMixinClass extends superclass {
97753
97666
  constructor() {
97754
97667
  super();
@@ -97801,14 +97714,14 @@ descope-boolean-field-internal {
97801
97714
  }),
97802
97715
  draggableMixin$1,
97803
97716
  componentNameValidationMixin$1,
97804
- customMixin$2,
97717
+ customMixin$3,
97805
97718
  activeableMixin,
97806
- )(createBaseClass$1({ componentName: componentName$m, baseSelector: 'slot' }));
97719
+ )(createBaseClass$1({ componentName: componentName$n, baseSelector: 'slot' }));
97807
97720
 
97808
- const componentName$l = getComponentName('list');
97721
+ const componentName$m = getComponentName('list');
97809
97722
 
97810
97723
  class RawList extends createBaseClass$1({
97811
- componentName: componentName$l,
97724
+ componentName: componentName$m,
97812
97725
  baseSelector: '.wrapper',
97813
97726
  }) {
97814
97727
  static get observedAttributes() {
@@ -97976,13 +97889,194 @@ descope-boolean-field-internal {
97976
97889
  componentNameValidationMixin$1,
97977
97890
  )(RawList);
97978
97891
 
97892
+ const componentName$l = getComponentName('apps-list');
97893
+
97894
+ const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
97895
+ <a ${url ? `href="${url}" title="${url}"` : ''} target="_blank">
97896
+ <descope-list-item>
97897
+ <descope-avatar
97898
+ ${icon ? `img="${icon}"` : ''}
97899
+ ${name ? `display-name="${name}" abbr=${limitAbbreviation(name)}` : ''}
97900
+ size="${ref.logoSize || ref.size}"
97901
+ ></descope-avatar>
97902
+ <descope-text
97903
+ variant="${ref.itemTextVariant}"
97904
+ mode="primary"
97905
+ >${name}</descope-text>
97906
+ </descope-list-item>
97907
+ </a>
97908
+ `;
97909
+
97910
+ const customMixin$2 = (superclass) =>
97911
+ class AppsListMixinClass extends superclass {
97912
+ // size controls both item logo size and font size
97913
+ get size() {
97914
+ return this.getAttribute('size') || 'sm';
97915
+ }
97916
+
97917
+ get itemTextVariant() {
97918
+ return this.getAttribute('item-text-variant') || 'body1';
97919
+ }
97920
+
97921
+ get logoSize() {
97922
+ return this.getAttribute('logo-size');
97923
+ }
97924
+ };
97925
+
97926
+ const AppsListClass = compose(
97927
+ createStyleMixin$1({
97928
+ mappings: {
97929
+ maxHeight: { selector: () => ':host' },
97930
+ minHeight: { selector: () => ':host' },
97931
+ hostDirection: { selector: () => ':host', property: 'direction' },
97932
+ itemsFontWeight: {
97933
+ selector: TextClass.componentName,
97934
+ property: TextClass.cssVarList.fontWeightOverride,
97935
+ },
97936
+ itemsFontSize: {
97937
+ selector: TextClass.componentName,
97938
+ property: TextClass.cssVarList.fontSizeOverride,
97939
+ },
97940
+ itemsTextAlign: {
97941
+ selector: TextClass.componentName,
97942
+ property: TextClass.cssVarList.textAlign,
97943
+ },
97944
+ itemBackgroundColor: {
97945
+ selector: ListItemClass.componentName,
97946
+ property: ListItemClass.cssVarList.backgroundColor,
97947
+ },
97948
+ backgroundColor: {
97949
+ selector: ListClass.componentName,
97950
+ property: ListClass.cssVarList.backgroundColorOverride,
97951
+ },
97952
+ itemBorderStyle: {
97953
+ selector: ListItemClass.componentName,
97954
+ property: ListItemClass.cssVarList.borderStyleOverride,
97955
+ },
97956
+ itemBorderColor: {
97957
+ selector: ListItemClass.componentName,
97958
+ property: ListItemClass.cssVarList.borderColorOverride,
97959
+ },
97960
+ itemBorderWidth: {
97961
+ selector: ListItemClass.componentName,
97962
+ property: ListItemClass.cssVarList.borderWidthOverride,
97963
+ },
97964
+ itemVerticalPadding: {
97965
+ selector: ListItemClass.componentName,
97966
+ property: ListItemClass.cssVarList.verticalPaddingOverride,
97967
+ },
97968
+ itemHorizontalPadding: {
97969
+ selector: ListItemClass.componentName,
97970
+ property: ListItemClass.cssVarList.horizontalPaddingOverride,
97971
+ },
97972
+ itemAlignment: [
97973
+ { selector: ListItemClass.componentName, property: ListItemClass.cssVarList.alignItemsOverride },
97974
+ { selector: TextClass.componentName, property: TextClass.cssVarList.textAlign },
97975
+ ]
97976
+ },
97977
+ }),
97978
+ createDynamicDataMixin$1({ itemRenderer: itemRenderer$4, rerenderAttrsList: ['size', 'item-text-variant', 'logo-size'] }),
97979
+ draggableMixin$1,
97980
+ componentNameValidationMixin$1,
97981
+ customMixin$2
97982
+ )(
97983
+ createProxy$1({
97984
+ slots: ['empty-state'],
97985
+ wrappedEleName: 'descope-list',
97986
+ excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
97987
+ componentName: componentName$l,
97988
+ style: () => `
97989
+ :host {
97990
+ width: 100%;
97991
+ display: inline-flex;
97992
+ }
97993
+
97994
+ descope-text::part(text-wrapper) {
97995
+ display: -webkit-box;
97996
+ -webkit-line-clamp: 2;
97997
+ -webkit-box-orient: vertical;
97998
+ overflow: hidden;
97999
+ }
98000
+
98001
+ a {
98002
+ text-decoration: none;
98003
+ }
98004
+
98005
+ descope-text {
98006
+ ${TextClass.cssVarList.hostDirection}: var(${AppsListClass.cssVarList.hostDirection});
98007
+ max-width: 100%;
98008
+ }
98009
+ `,
98010
+ })
98011
+ );
98012
+
98013
+ const vars$k = AppsListClass.cssVarList;
98014
+ const globalRefs$a = getThemeRefs$1(globals);
98015
+
98016
+ const defaultHeight = '400px';
98017
+
98018
+ const appsList = {
98019
+ [vars$k.itemsFontWeight]: 'normal',
98020
+ [vars$k.itemsTextAlign]: 'start',
98021
+ [vars$k.hostDirection]: globalRefs$a.direction,
98022
+ [vars$k.maxHeight]: defaultHeight,
98023
+
98024
+ _empty: {
98025
+ [vars$k.minHeight]: defaultHeight,
98026
+ },
98027
+
98028
+ size: {
98029
+ xs: {
98030
+ [vars$k.itemsFontSize]: '14px',
98031
+ },
98032
+ sm: {
98033
+ [vars$k.itemsFontSize]: '14px',
98034
+ },
98035
+ md: {
98036
+ [vars$k.itemsFontSize]: '16px',
98037
+ },
98038
+ lg: {
98039
+ [vars$k.itemsFontSize]: '20px',
98040
+ },
98041
+ },
98042
+
98043
+ itemPadding: {
98044
+ xs: {
98045
+ [vars$k.itemVerticalPadding]: globalRefs$a.spacing.xs,
98046
+ [vars$k.itemHorizontalPadding]: globalRefs$a.spacing.xs,
98047
+ },
98048
+ sm: {
98049
+ [vars$k.itemVerticalPadding]: globalRefs$a.spacing.sm,
98050
+ [vars$k.itemHorizontalPadding]: globalRefs$a.spacing.sm,
98051
+ },
98052
+ md: {
98053
+ [vars$k.itemVerticalPadding]: globalRefs$a.spacing.md,
98054
+ [vars$k.itemHorizontalPadding]: globalRefs$a.spacing.md,
98055
+ },
98056
+ lg: {
98057
+ [vars$k.itemVerticalPadding]: globalRefs$a.spacing.lg,
98058
+ [vars$k.itemHorizontalPadding]: globalRefs$a.spacing.lg,
98059
+ },
98060
+ xl: {
98061
+ [vars$k.itemVerticalPadding]: globalRefs$a.spacing.xl,
98062
+ [vars$k.itemHorizontalPadding]: globalRefs$a.spacing.xl,
98063
+ },
98064
+ },
98065
+ };
98066
+
98067
+ var appsList$1 = /*#__PURE__*/Object.freeze({
98068
+ __proto__: null,
98069
+ default: appsList,
98070
+ vars: vars$k
98071
+ });
98072
+
97979
98073
  const globalRefs$9 = getThemeRefs$1(globals);
97980
98074
 
97981
98075
  const compVars$3 = ListClass.cssVarList;
97982
98076
 
97983
98077
  const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars$1(
97984
98078
  { shadowColor: '#00000020' },
97985
- componentName$l
98079
+ componentName$m
97986
98080
  );
97987
98081
 
97988
98082
  const { shadowColor: shadowColor$1 } = helperRefs$1;
@@ -103482,7 +103576,7 @@ const List = React__default.default.forwardRef(({ emptyState, children, ...props
103482
103576
 
103483
103577
  const ListItem = React__default.default.forwardRef((props, ref) => (React__default.default.createElement("descope-list-item", { ...props, ref: ref })));
103484
103578
 
103485
- const AppsList = React__default.default.forwardRef(({ emptyState, data, ...props }, ref) => (React__default.default.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref },
103579
+ const AppsList = React__default.default.forwardRef(({ emptyState, data, variant, ...props }, ref) => (React__default.default.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, variant: variant !== 'list' ? 'tiles' : 'list', ...props, ref: ref },
103486
103580
  React__default.default.createElement("div", { slot: "empty-state" }, emptyState))));
103487
103581
 
103488
103582
  const ScopesList = React__default.default.forwardRef(({ data, ...props }, ref) => (React__default.default.createElement("descope-scopes-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref })));
package/dist/index.d.ts CHANGED
@@ -835,7 +835,7 @@ declare const ListItem: React.ForwardRefExoticComponent<Props$f & React.RefAttri
835
835
 
836
836
  type Props$e = {
837
837
  emptyState?: React.ReactNode;
838
- variant?: 'list' | 'tiles';
838
+ variant?: 'list' | 'tiles' | 'custom';
839
839
  data?: any[];
840
840
  readonly?: boolean;
841
841
  };
package/dist/index.esm.js CHANGED
@@ -490,7 +490,7 @@ const List = React.forwardRef(({ emptyState, children, ...props }, ref) => (Reac
490
490
 
491
491
  const ListItem = React.forwardRef((props, ref) => (React.createElement("descope-list-item", { ...props, ref: ref })));
492
492
 
493
- const AppsList = React.forwardRef(({ emptyState, data, ...props }, ref) => (React.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref },
493
+ const AppsList = React.forwardRef(({ emptyState, data, variant, ...props }, ref) => (React.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, variant: variant !== 'list' ? 'tiles' : 'list', ...props, ref: ref },
494
494
  React.createElement("div", { slot: "empty-state" }, emptyState))));
495
495
 
496
496
  const ScopesList = React.forwardRef(({ data, ...props }, ref) => (React.createElement("descope-scopes-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref })));
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PropsToAttrs } from '../types';
3
3
  type Props = {
4
4
  emptyState?: React.ReactNode;
5
- variant?: 'list' | 'tiles';
5
+ variant?: 'list' | 'tiles' | 'custom';
6
6
  data?: any[];
7
7
  readonly?: boolean;
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.1.16",
3
+ "version": "2.1.18",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -93,10 +93,10 @@
93
93
  "typescript": "^5.7.2",
94
94
  "webpack": "^5.74.0",
95
95
  "webpack-cli": "^6.0.1",
96
- "webpack-dev-server": "5.0.4"
96
+ "webpack-dev-server": "5.2.1"
97
97
  },
98
98
  "dependencies": {
99
- "@descope/web-components-ui": "2.1.16"
99
+ "@descope/web-components-ui": "2.1.18"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">= 18"
@@ -135,7 +135,8 @@
135
135
  "build:rollup": "rollup -c",
136
136
  "build:webpack": "webpack --mode production",
137
137
  "build": "npm run build:rollup && npm run build:webpack",
138
- "dev": "FEDERATION_IP=127.0.0.1 NODE_ENV=development webpack serve --mode development --port 4444",
138
+ "dev": "nx dev flow-components",
139
+ "dev-server": "FEDERATION_IP=127.0.0.1 NODE_ENV=development webpack serve --mode development --port 4444",
139
140
  "test": "exit 0",
140
141
  "lint": "eslint src/**/*.* --fix",
141
142
  "format": "prettier . -w --ignore-path .gitignore",