@descope/flow-components 3.11.3 → 3.11.5

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.3",
8
+ "buildVersion": "3.11.5",
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.3",
8
+ "buildVersion": "3.11.5",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -82715,8 +82715,6 @@ function requireIndex_cjs () {
82715
82715
  }
82716
82716
  };
82717
82717
 
82718
- /* eslint-disable no-use-before-define */
82719
-
82720
82718
  const componentName$1n = getComponentName('image');
82721
82719
 
82722
82720
  const srcAttrs = ['src', 'src-dark'];
@@ -82796,7 +82794,7 @@ function requireIndex_cjs () {
82796
82794
 
82797
82795
  // in order to fill an SVG with `currentColor` override all of its `fill` and `path` nodes
82798
82796
  // with the value from the `st-fill` attribute
82799
- // eslint-disable-next-line class-methods-use-this
82797
+
82800
82798
  updateFillColor(node) {
82801
82799
  // set fill to root node and all its relevant selectors
82802
82800
  const elementsToReplace = [node, ...node.querySelectorAll('*[fill]')];
@@ -82856,6 +82854,8 @@ function requireIndex_cjs () {
82856
82854
  createStyleMixin$1({
82857
82855
  mappings: {
82858
82856
  fill: [{}, { property: ImageClass.cssVarList.fill }],
82857
+ height: { selector: () => ':host' },
82858
+ width: { selector: () => ':host' },
82859
82859
  },
82860
82860
  }),
82861
82861
  draggableMixin$1,
@@ -82867,10 +82867,12 @@ function requireIndex_cjs () {
82867
82867
  style: () => `
82868
82868
  :host {
82869
82869
  display: inline-flex;
82870
+ align-items: center;
82871
+ justify-content: center;
82870
82872
  max-height: 100%;
82871
82873
  }
82872
82874
  `,
82873
- excludeAttrsSync: ['tabindex', 'class', 'style'],
82875
+ excludeAttrsSync: ['tabindex', 'class', 'style', 'st-height', 'st-width'],
82874
82876
  componentName: componentName$1m,
82875
82877
  }),
82876
82878
  );
@@ -91860,7 +91862,7 @@ function requireIndex_cjs () {
91860
91862
  };
91861
91863
 
91862
91864
  const populateRemoveButton = (template, id, ref) => {
91863
- const button = template.content.querySelector('.remove-button');
91865
+ const button = template.content.querySelector('.remove-button-content');
91864
91866
  button.dataset.passkeyId = id;
91865
91867
  const clonedSlottedContent = cloneSlottedNodes(ref, 'remove-button');
91866
91868
  if (clonedSlottedContent) button.append(clonedSlottedContent);
@@ -91876,10 +91878,6 @@ function requireIndex_cjs () {
91876
91878
 
91877
91879
  var checkmark = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==";
91878
91880
 
91879
- customElements.define(componentName$1k, TextClass);
91880
-
91881
- customElements.define(componentName$1i, LinkClass);
91882
-
91883
91881
  const componentName$U = getComponentName('user-passkeys');
91884
91882
 
91885
91883
  const itemRenderer$1 = ({ id, name, createdAt, passkeyType }, _, ref) => {
@@ -91901,7 +91899,14 @@ function requireIndex_cjs () {
91901
91899
  <descope-text class="item-name" variant="body1" mode="primary"></descope-text>
91902
91900
  </span>
91903
91901
  <span class="item-panel">
91904
- ${ref.allowRemove ? `<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button"></descope-link>` : `<descope-icon src="${checkmark}"></descope-icon>`}
91902
+ ${
91903
+ ref.allowRemove
91904
+ ? `<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button">
91905
+ <div class="remove-button-content">
91906
+ </div>
91907
+ </descope-link>`
91908
+ : `<descope-icon src="${checkmark}"></descope-icon>`
91909
+ }
91905
91910
  </span>
91906
91911
  </div>
91907
91912
  <div class="meta">
@@ -91973,6 +91978,10 @@ function requireIndex_cjs () {
91973
91978
 
91974
91979
  injectStyle(
91975
91980
  `
91981
+ .remove-button-content {
91982
+ display: flex;
91983
+ align-items: center;
91984
+ }
91976
91985
  :host {
91977
91986
  display: inline-block;
91978
91987
  }
@@ -92002,11 +92011,6 @@ function requireIndex_cjs () {
92002
92011
  white-space: nowrap;
92003
92012
  }
92004
92013
 
92005
- slot[name="method-icon"] {
92006
- display: inline-flex;
92007
- align-items: center;
92008
- }
92009
-
92010
92014
  .descope-list-item {
92011
92015
  min-width: 0;
92012
92016
  }
@@ -92070,7 +92074,6 @@ function requireIndex_cjs () {
92070
92074
  display: flex;
92071
92075
  width: 100%;
92072
92076
  }
92073
-
92074
92077
  .hidden {
92075
92078
  display: none
92076
92079
  }
@@ -92192,8 +92195,10 @@ function requireIndex_cjs () {
92192
92195
  }
92193
92196
  }
92194
92197
 
92195
- const { host: host$k } = {
92198
+ const { host: host$k, methodIconSlotted, addIconSlotted } = {
92196
92199
  host: { selector: () => ':host' },
92200
+ methodIconSlotted: { selector: () => 'slot[name="method-icon"]::slotted(*)' },
92201
+ addIconSlotted: { selector: () => 'slot[name="button-icon"]::slotted(*)' },
92197
92202
  };
92198
92203
 
92199
92204
  const UserPasskeysClass = compose(
@@ -92317,10 +92322,19 @@ function requireIndex_cjs () {
92317
92322
  },
92318
92323
 
92319
92324
  removeButtonGap: {
92320
- selector: () =>
92321
- `${LinkClass.componentName}.remove-button > *:not(:last-child)`,
92322
- property: 'margin-inline-end',
92325
+ selector: () => '.remove-button-content',
92326
+ property: 'gap',
92327
+ },
92328
+
92329
+ iconColor: {
92330
+ selector: () => ButtonClass.componentName,
92331
+ property: ButtonClass.cssVarList.iconColor,
92323
92332
  },
92333
+
92334
+ iconSize: [
92335
+ { ...methodIconSlotted, property: 'height' },
92336
+ { ...addIconSlotted, property: 'height' },
92337
+ ],
92324
92338
  },
92325
92339
  }),
92326
92340
  draggableMixin$1,
@@ -92367,6 +92381,9 @@ function requireIndex_cjs () {
92367
92381
 
92368
92382
  [vars$I.removeButtonGap]: globals.spacing.sm,
92369
92383
 
92384
+ [vars$I.iconSize]: '1.5em',
92385
+ [vars$I.iconColor]: 'currentcolor',
92386
+
92370
92387
  _fullWidth: {
92371
92388
  [vars$I.hostWidth]: '100%',
92372
92389
  },
@@ -108318,9 +108335,9 @@ const LastAuthBadge = React__default.default.forwardRef(({ children, offsetX, of
108318
108335
  });
108319
108336
 
108320
108337
  const UserPasskeys = React__default.default.forwardRef(({ allowRemove, createdAtLabel, addButtonLabel, removeButtonLabel, methodIcon, methodIconDark, buttonIcon, buttonIconDark, removeIcon, removeIconDark, ...props }, ref) => (React__default.default.createElement("descope-user-passkeys", { "allow-remove": allowRemove, "created-at-label": createdAtLabel, "add-passkey-button-label": addButtonLabel, ...props, ref: ref },
108321
- methodIcon && methodIconDark && (React__default.default.createElement(Icon, { icon: methodIcon, "src-dark": methodIconDark, slot: "method-icon" })),
108322
- buttonIcon && buttonIconDark && (React__default.default.createElement(Icon, { icon: buttonIcon, "src-dark": buttonIconDark, slot: "button-icon" })),
108323
- allowRemove && removeIcon && removeIconDark && (React__default.default.createElement(Icon, { icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button" })),
108338
+ methodIcon && methodIconDark && (React__default.default.createElement(Icon, { icon: methodIcon, "src-dark": methodIconDark, slot: "method-icon", "st-fill": "currentcolor" })),
108339
+ buttonIcon && buttonIconDark && (React__default.default.createElement(Icon, { icon: buttonIcon, "src-dark": buttonIconDark, slot: "button-icon", "st-fill": "currentcolor" })),
108340
+ allowRemove && removeIcon && removeIconDark && (React__default.default.createElement(Icon, { icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button", "st-fill": "currentcolor", "st-height": "1.5em" })),
108324
108341
  allowRemove && React__default.default.createElement("span", { slot: "remove-button" }, removeButtonLabel))));
108325
108342
 
108326
108343
  const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
package/dist/index.esm.js CHANGED
@@ -677,9 +677,9 @@ const LastAuthBadge = React.forwardRef(({ children, offsetX, offsetY, badgeLabel
677
677
  });
678
678
 
679
679
  const UserPasskeys = React.forwardRef(({ allowRemove, createdAtLabel, addButtonLabel, removeButtonLabel, methodIcon, methodIconDark, buttonIcon, buttonIconDark, removeIcon, removeIconDark, ...props }, ref) => (React.createElement("descope-user-passkeys", { "allow-remove": allowRemove, "created-at-label": createdAtLabel, "add-passkey-button-label": addButtonLabel, ...props, ref: ref },
680
- methodIcon && methodIconDark && (React.createElement(Icon, { icon: methodIcon, "src-dark": methodIconDark, slot: "method-icon" })),
681
- buttonIcon && buttonIconDark && (React.createElement(Icon, { icon: buttonIcon, "src-dark": buttonIconDark, slot: "button-icon" })),
682
- allowRemove && removeIcon && removeIconDark && (React.createElement(Icon, { icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button" })),
680
+ methodIcon && methodIconDark && (React.createElement(Icon, { icon: methodIcon, "src-dark": methodIconDark, slot: "method-icon", "st-fill": "currentcolor" })),
681
+ buttonIcon && buttonIconDark && (React.createElement(Icon, { icon: buttonIcon, "src-dark": buttonIconDark, slot: "button-icon", "st-fill": "currentcolor" })),
682
+ allowRemove && removeIcon && removeIconDark && (React.createElement(Icon, { icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button", "st-fill": "currentcolor", "st-height": "1.5em" })),
683
683
  allowRemove && React.createElement("span", { slot: "remove-button" }, removeButtonLabel))));
684
684
 
685
685
  const globalsThemeToStyle = globalsThemeToStyle$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.11.3",
3
+ "version": "3.11.5",
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.11.3"
100
+ "@descope/web-components-ui": "3.11.5"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"