@descope-ui/descope-user-passkeys 3.13.3 → 3.14.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-user-passkeys",
3
- "version": "3.13.3",
3
+ "version": "3.14.1",
4
4
  "files": [
5
5
  "src",
6
6
  "stories"
@@ -18,18 +18,18 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@playwright/test": "1.58.2",
21
- "e2e-utils": "3.13.3",
22
- "test-drivers": "3.13.3"
21
+ "e2e-utils": "3.14.1",
22
+ "test-drivers": "3.14.1"
23
23
  },
24
24
  "dependencies": {
25
- "@descope-ui/theme-globals": "3.13.3",
26
- "@descope-ui/descope-list": "3.13.3",
27
- "@descope-ui/descope-text": "3.13.3",
28
- "@descope-ui/descope-link": "3.13.3",
29
- "@descope-ui/common": "3.13.3",
30
- "@descope-ui/descope-icon": "3.13.3",
31
- "@descope-ui/descope-button": "3.13.3",
32
- "@descope-ui/descope-list-item": "3.13.3"
25
+ "@descope-ui/common": "3.14.1",
26
+ "@descope-ui/descope-list": "3.14.1",
27
+ "@descope-ui/theme-globals": "3.14.1",
28
+ "@descope-ui/descope-list-item": "3.14.1",
29
+ "@descope-ui/descope-text": "3.14.1",
30
+ "@descope-ui/descope-link": "3.14.1",
31
+ "@descope-ui/descope-icon": "3.14.1",
32
+ "@descope-ui/descope-button": "3.14.1"
33
33
  },
34
34
  "publishConfig": {
35
35
  "link-workspace-packages": false
@@ -127,6 +127,7 @@ class RawUserPasskeysClass extends BaseClass {
127
127
  }
128
128
 
129
129
  .header {
130
+ width: 100%;
130
131
  display: flex;
131
132
  justify-content: space-between;
132
133
  align-items: center;
@@ -134,10 +135,19 @@ class RawUserPasskeysClass extends BaseClass {
134
135
 
135
136
  .header .method {
136
137
  display: flex;
138
+ flex: 1;
139
+ min-width: 0;
140
+ }
141
+
142
+ slot[name="method-icon"] {
143
+ display: inline-flex;
144
+ flex-shrink: 0;
137
145
  }
138
146
 
139
147
  .button {
140
148
  min-width: 0;
149
+ max-width: 50%;
150
+ flex-shrink: 1;
141
151
  }
142
152
 
143
153
  .add-passkey-button {
@@ -195,7 +205,7 @@ class RawUserPasskeysClass extends BaseClass {
195
205
 
196
206
  descope-text {
197
207
  display: flex;
198
- align-items: center;
208
+ align-items: center;
199
209
  min-width: 0;
200
210
  }
201
211
  descope-text::part(text-wrapper) {
@@ -217,7 +227,7 @@ class RawUserPasskeysClass extends BaseClass {
217
227
  .hidden {
218
228
  display: none
219
229
  }
220
-
230
+
221
231
  `,
222
232
  this,
223
233
  );
@@ -1,3 +1,4 @@
1
+ import { cloneSlottedNodes } from '@descope-ui/common/components-helpers';
1
2
  import onePasswordDark from './providers/1password-dark.svg';
2
3
  import onePasswordLight from './providers/1password-light.svg';
3
4
  import appleDark from './providers/apple-dark.svg';
@@ -140,21 +141,6 @@ export const iconMap = {
140
141
  },
141
142
  };
142
143
 
143
- export const cloneSlottedNodes = (element, slotName) => {
144
- if (!element || !slotName) return null;
145
- const sources = element.querySelectorAll(`:scope > [slot="${slotName}"]`);
146
- if (!sources.length) return null;
147
- const fragment = document.createDocumentFragment();
148
- sources.forEach((source) => {
149
- const clone = source.content
150
- ? source.content.cloneNode(true)
151
- : source.cloneNode(true);
152
- if (clone.removeAttribute) clone.removeAttribute('slot');
153
- fragment.append(clone);
154
- });
155
- return fragment;
156
- };
157
-
158
144
  export const populateRemoveButton = (template, id, ref) => {
159
145
  const button = template.content.querySelector('.remove-button-content');
160
146
  button.dataset.passkeyId = id;