@descope/flow-components 3.20.4 → 3.21.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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.20.4",
8
+ "buildVersion": "3.21.1",
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.20.4",
8
+ "buildVersion": "3.21.1",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -89206,6 +89206,37 @@ function requireIndex_cjs () {
89206
89206
 
89207
89207
  const componentName$16 = getComponentName('recovery-codes');
89208
89208
 
89209
+ const NO_ACTION = 'none';
89210
+ const DEFAULT_ERROR_MESSAGE =
89211
+ 'Copy or download your recovery codes to continue.';
89212
+
89213
+ // default button label per action (buttons variant). the icons variant uses the vaadin
89214
+ // glyphs hardcoded in the shadow-DOM template below; the buttons variant uses image srcs.
89215
+ const ACTIONS = {
89216
+ copy: { defaultText: 'Copy' },
89217
+ download: { defaultText: 'Download' },
89218
+ };
89219
+
89220
+ // per-button config suffixes; the full attribute is `${action}-${suffix}`.
89221
+ // `icon`/`icon-dark` are image srcs (the seeded glyph or a custom upload), matching
89222
+ // the standard button's start-icon (light/dark), not a boolean.
89223
+ const BUTTON_SUFFIXES = [
89224
+ 'text',
89225
+ 'variant',
89226
+ 'color',
89227
+ 'size',
89228
+ 'icon',
89229
+ 'icon-dark',
89230
+ ];
89231
+
89232
+ // changing any of these rebuilds the buttons (so the editor preview stays live)
89233
+ const BUTTON_ATTRS = [
89234
+ 'show-download',
89235
+ ...Object.keys(ACTIONS).flatMap((action) =>
89236
+ BUTTON_SUFFIXES.map((suffix) => `${action}-${suffix}`),
89237
+ ),
89238
+ ];
89239
+
89209
89240
  const itemRenderer$5 = ({ value }, _, ref) => {
89210
89241
  return `
89211
89242
  <descope-text variant="${ref.variant}" mode="${ref.mode}">
@@ -89219,24 +89250,44 @@ function requireIndex_cjs () {
89219
89250
  baseSelector: ':host > div',
89220
89251
  }) {
89221
89252
  static get observedAttributes() {
89222
- return ['readonly'];
89253
+ return ['readonly', 'required', ...BUTTON_ATTRS];
89223
89254
  }
89224
89255
 
89256
+ // 'none' | 'copied' | 'downloaded' - the last action the user took on the codes
89257
+ #action = NO_ACTION;
89258
+
89259
+ // the error is shown only after a submit attempt (reportValidity), like inputs
89260
+ #showError = false;
89261
+
89262
+ // init() builds the buttons once with all seeded attrs; guards against rebuilding
89263
+ // on every per-attribute change fired during element upgrade (before init runs)
89264
+ #initialized = false;
89265
+
89225
89266
  constructor() {
89226
89267
  super();
89227
89268
 
89228
89269
  this.attachShadow({ mode: 'open' }).innerHTML = `
89229
89270
  <div class="wrapper">
89230
- <div class="list"></div>
89231
- <descope-text class="icon-wrapper">
89232
- <vaadin-icon class="icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>
89233
- </descope-text>
89271
+ <div class="codes-box">
89272
+ <div class="list"></div>
89273
+ <descope-text class="icon-wrapper">
89274
+ <div class="icons">
89275
+ <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>
89276
+ <vaadin-icon class="icon download-icon" icon="vaadin:download-alt" title="Download"></vaadin-icon>
89277
+ </div>
89278
+ </descope-text>
89279
+ </div>
89280
+ <div class="error-message"></div>
89281
+ <div class="buttons-row"></div>
89234
89282
  </div>
89235
89283
  `;
89236
89284
 
89237
89285
  this.list = this.shadowRoot.querySelector('.list');
89238
- this.icon = this.shadowRoot.querySelector('.icon');
89286
+ this.copyIcon = this.shadowRoot.querySelector('.copy-icon');
89287
+ this.downloadIcon = this.shadowRoot.querySelector('.download-icon');
89239
89288
  this.iconWrapper = this.shadowRoot.querySelector('.icon-wrapper');
89289
+ this.errorMessageEle = this.shadowRoot.querySelector('.error-message');
89290
+ this.buttonsRow = this.shadowRoot.querySelector('.buttons-row');
89240
89291
 
89241
89292
  injectStyle(
89242
89293
  `
@@ -89245,8 +89296,14 @@ function requireIndex_cjs () {
89245
89296
  position: relative;
89246
89297
  }
89247
89298
  .wrapper {
89299
+ display: flex;
89300
+ flex-direction: column;
89301
+ }
89302
+ .codes-box {
89248
89303
  display: flex;
89249
89304
  justify-content: space-between;
89305
+ box-sizing: border-box;
89306
+ /* border shows the error ring inside the box; style/width/color/radius come from theme */
89250
89307
  }
89251
89308
  .list {
89252
89309
  display: flex;
@@ -89265,15 +89322,57 @@ function requireIndex_cjs () {
89265
89322
  .icon-wrapper {
89266
89323
  align-self: flex-start;
89267
89324
  }
89325
+ .icons {
89326
+ display: flex;
89327
+ flex-direction: column;
89328
+ }
89268
89329
  .icon {
89269
89330
  cursor: pointer;
89270
89331
  }
89271
89332
  .icon.copied {
89272
89333
  cursor: initial;
89334
+ /* block re-clicks while the checkmark shows, so rapid clicks cannot repeat the action */
89335
+ pointer-events: none;
89273
89336
  }
89274
- .icon.readonly {
89337
+ /* readonly is a host attribute, so disable pointer events from one place */
89338
+ :host([readonly="true"]) .icon,
89339
+ :host([readonly="true"]) .buttons-row {
89275
89340
  pointer-events: none;
89276
89341
  }
89342
+ .download-icon {
89343
+ display: none;
89344
+ }
89345
+ :host([show-download="true"]) .download-icon {
89346
+ display: inline-flex;
89347
+ }
89348
+ .error-message {
89349
+ display: none;
89350
+ /* width:0 + min-width:100% lets the message wrap to the component width without
89351
+ its text expanding the (shrink-to-fit) component; full-width still fills the parent */
89352
+ width: 0;
89353
+ min-width: 100%;
89354
+ box-sizing: border-box;
89355
+ line-height: 1.2;
89356
+ overflow-wrap: break-word;
89357
+ }
89358
+ :host([invalid]) .error-message {
89359
+ display: block;
89360
+ }
89361
+ .buttons-row {
89362
+ display: none;
89363
+ }
89364
+ :host([display-variant="buttons"]) .icon-wrapper {
89365
+ display: none;
89366
+ }
89367
+ :host([display-variant="buttons"]) .buttons-row {
89368
+ display: flex;
89369
+ flex-wrap: wrap;
89370
+ }
89371
+ /* grow to fill equally; don't shrink below content, so they wrap to a new line
89372
+ when they don't fit (like a container with auto-fit items) */
89373
+ .buttons-row > descope-button {
89374
+ flex: 1 0 auto;
89375
+ }
89277
89376
  `,
89278
89377
  this,
89279
89378
  );
@@ -89287,41 +89386,190 @@ function requireIndex_cjs () {
89287
89386
  return this.getAttribute('mode');
89288
89387
  }
89289
89388
 
89389
+ // the form value read by the flow SDK (#getFormData reads `.value`)
89390
+ get value() {
89391
+ return this.#action;
89392
+ }
89393
+
89394
+ // a boolean attribute is "on" when present and not explicitly "false"
89395
+ #boolAttr(name) {
89396
+ return this.hasAttribute(name) && this.getAttribute(name) !== 'false';
89397
+ }
89398
+
89399
+ get isRequired() {
89400
+ return this.#boolAttr('required');
89401
+ }
89402
+
89403
+ get isReadOnly() {
89404
+ return this.#boolAttr('readonly');
89405
+ }
89406
+
89407
+ get errorMessage() {
89408
+ return (
89409
+ this.getAttribute('data-errormessage-value-missing') ||
89410
+ DEFAULT_ERROR_MESSAGE
89411
+ );
89412
+ }
89413
+
89414
+ get codesText() {
89415
+ return String((this.data || []).map((rc) => rc.value).join('\n'));
89416
+ }
89417
+
89290
89418
  init() {
89291
89419
  super.init();
89292
89420
 
89293
- this.icon.addEventListener('click', this.onCopy.bind(this));
89421
+ this.copyIcon.addEventListener('click', this.onCopy.bind(this));
89422
+ this.downloadIcon.addEventListener('click', this.onDownload.bind(this));
89294
89423
 
89295
89424
  forwardAttrs(this, this.iconWrapper, { includeAttrs: ['variant', 'mode'] });
89425
+
89426
+ this.renderButtons();
89427
+ this.#initialized = true;
89296
89428
  }
89297
89429
 
89298
- onCopy() {
89299
- navigator.clipboard.writeText(
89300
- String(this.data.map((rc) => rc.value).join('\n')),
89430
+ get isDownloadEnabled() {
89431
+ return this.getAttribute('show-download') === 'true';
89432
+ }
89433
+
89434
+ // buttons variant: copy (+ download when enabled) as descope-buttons, each independently
89435
+ // configurable. rendered even in the icons variant (CSS hides the row) so a variant switch is instant.
89436
+ renderButtons() {
89437
+ if (!this.buttonsRow) return;
89438
+
89439
+ const buttons = [this.buildButton('copy')];
89440
+ if (this.isDownloadEnabled) {
89441
+ buttons.push(this.buildButton('download'));
89442
+ }
89443
+ this.buttonsRow.replaceChildren(...buttons);
89444
+ }
89445
+
89446
+ buildButton(action) {
89447
+ const { defaultText } = ACTIONS[action];
89448
+ const attr = (name, fallback) =>
89449
+ this.getAttribute(`${action}-${name}`) || fallback;
89450
+
89451
+ const button = document.createElement('descope-button');
89452
+ button.setAttribute('data-action', action);
89453
+ button.setAttribute('variant', attr('variant', 'outline'));
89454
+ button.setAttribute('mode', attr('color', 'primary'));
89455
+ button.setAttribute('size', attr('size', 'md'));
89456
+
89457
+ // icon is an image src - the seeded glyph or a custom upload (light/dark),
89458
+ // same as the standard button's start icon. rendered via descope-icon in the
89459
+ // default slot (not slot="prefix") so it centers with the label when the
89460
+ // button grows. descope-icon inlines SVGs, so the glyph (authored with
89461
+ // fill="currentColor") tracks the button text color while an uploaded image
89462
+ // keeps its own colors.
89463
+ const iconSrc = this.getAttribute(`${action}-icon`);
89464
+ if (iconSrc) {
89465
+ const icon = document.createElement('descope-icon');
89466
+ icon.setAttribute('src', iconSrc);
89467
+ const iconDark = this.getAttribute(`${action}-icon-dark`);
89468
+ if (iconDark) icon.setAttribute('src-dark', iconDark);
89469
+ button.appendChild(icon);
89470
+ }
89471
+
89472
+ button.appendChild(document.createTextNode(attr('text', defaultText)));
89473
+ button.addEventListener('click', () =>
89474
+ action === 'copy' ? this.onCopy() : this.onDownload(),
89301
89475
  );
89476
+ return button;
89477
+ }
89302
89478
 
89303
- this.icon.setAttribute('icon', 'vaadin:check-circle-o');
89304
- this.icon.setAttribute('title', 'Copied');
89305
- this.icon.classList.add('copied');
89479
+ onCopy() {
89480
+ if (this.isReadOnly) return;
89481
+ navigator.clipboard.writeText(this.codesText);
89482
+ this.showActionFeedback(this.copyIcon, 'Copied');
89483
+ this.recordAction('copied');
89484
+ }
89306
89485
 
89307
- setTimeout(() => {
89308
- this.icon.setAttribute('icon', 'vaadin:copy-o');
89309
- this.icon.setAttribute('title', 'Copy');
89310
- this.icon.classList.remove('copied');
89486
+ onDownload() {
89487
+ if (this.isReadOnly) return;
89488
+ const blob = new Blob([this.codesText], { type: 'text/plain' });
89489
+ const url = URL.createObjectURL(blob);
89490
+ const anchor = document.createElement('a');
89491
+ anchor.href = url;
89492
+ anchor.download = 'recovery-codes.txt';
89493
+ anchor.click();
89494
+ URL.revokeObjectURL(url);
89495
+
89496
+ this.showActionFeedback(this.downloadIcon, 'Downloaded');
89497
+ this.recordAction('downloaded');
89498
+ }
89499
+
89500
+ // copy/download share this - only the visual feedback differs by variant
89501
+ recordAction(action) {
89502
+ this.#action = action;
89503
+ // let the flow re-evaluate real-time conditions and pick up the new value
89504
+ this.dispatchEvent(new Event('change', { bubbles: true }));
89505
+ // acting clears the mandatory error
89506
+ if (this.checkValidity()) {
89507
+ this.#showError = false;
89508
+ }
89509
+ this.syncValidityUI();
89510
+ }
89511
+
89512
+ // icons variant: swap the icon to a checkmark for 5s (buttons variant is static)
89513
+ showActionFeedback(iconEle, doneTitle) {
89514
+ // on a rapid re-click the checkmark is already showing, so cancel the pending restore
89515
+ // and keep the glyph/title we saved the first time (never capture the checkmark itself)
89516
+ if (iconEle.feedbackTimer) {
89517
+ clearTimeout(iconEle.feedbackTimer);
89518
+ } else {
89519
+ iconEle.originalIcon = iconEle.getAttribute('icon');
89520
+ iconEle.originalTitle = iconEle.getAttribute('title');
89521
+ }
89522
+
89523
+ iconEle.setAttribute('icon', 'vaadin:check-circle-o');
89524
+ iconEle.setAttribute('title', doneTitle);
89525
+ iconEle.classList.add('copied');
89526
+
89527
+ iconEle.feedbackTimer = setTimeout(() => {
89528
+ iconEle.setAttribute('icon', iconEle.originalIcon);
89529
+ iconEle.setAttribute('title', iconEle.originalTitle);
89530
+ iconEle.classList.remove('copied');
89531
+ iconEle.feedbackTimer = null;
89311
89532
  }, 5000);
89312
89533
  }
89313
89534
 
89314
- onReadOnly(isReadOnly) {
89315
- this.icon.classList.toggle('readonly', isReadOnly);
89535
+ // the flow SDK's #validateInputs calls checkValidity/reportValidity on every *[name]
89536
+ checkValidity() {
89537
+ return this.isReadOnly || !this.isRequired || this.value !== NO_ACTION;
89538
+ }
89539
+
89540
+ reportValidity() {
89541
+ const valid = this.checkValidity();
89542
+ this.#showError = !valid;
89543
+ this.syncValidityUI();
89544
+ return valid;
89545
+ }
89546
+
89547
+ // single source of truth for the error UI - reflects `invalid` (theme `_invalid`
89548
+ // draws the outline) and fills the message. never toggled anywhere else.
89549
+ syncValidityUI() {
89550
+ this.toggleAttribute('invalid', this.#showError);
89551
+ if (this.errorMessageEle) {
89552
+ this.errorMessageEle.textContent = this.#showError
89553
+ ? this.errorMessage
89554
+ : '';
89555
+ }
89316
89556
  }
89317
89557
 
89318
89558
  attributeChangedCallback(attrName, oldValue, newValue) {
89319
89559
  super.attributeChangedCallback?.(attrName, oldValue, newValue);
89320
89560
 
89321
- if (newValue !== oldValue) {
89322
- if (attrName === 'readonly') {
89323
- this.onReadOnly(newValue === 'true');
89324
- }
89561
+ if (newValue === oldValue) return;
89562
+
89563
+ // if it stops being required, drop any error already shown
89564
+ if (attrName === 'required' && !this.isRequired) {
89565
+ this.#showError = false;
89566
+ this.syncValidityUI();
89567
+ }
89568
+
89569
+ // only rebuild for live edits after init (init already built once with all attrs);
89570
+ // avoids rebuilding once per attribute during the initial element upgrade
89571
+ if (this.#initialized && BUTTON_ATTRS.includes(attrName)) {
89572
+ this.renderButtons();
89325
89573
  }
89326
89574
  }
89327
89575
  }
@@ -89341,10 +89589,66 @@ function requireIndex_cjs () {
89341
89589
  textAlign: { selector: () => '.list', property: 'align-items' },
89342
89590
  iconColor: { selector: () => 'vaadin-icon', property: 'color' },
89343
89591
  iconSize: { selector: () => 'vaadin-icon', property: 'font-size' },
89344
- iconGap: { selector: () => '.wrapper', property: 'gap' },
89592
+ iconGap: { selector: () => '.codes-box', property: 'gap' },
89593
+ iconStackGap: { selector: () => '.icons', property: 'gap' },
89594
+ buttonsGap: { selector: () => '.buttons-row', property: 'gap' },
89595
+ sectionsGap: { selector: () => '.wrapper', property: 'gap' },
89345
89596
  bulletGap: { selector: () => 'descope-text span', property: 'gap' },
89597
+ // top + bottom padding sit inside the border (below the codes) in both variants; in the
89598
+ // buttons variant the bottom padding also repeats below the buttons (the buttons-row entry
89599
+ // is inert in the icons variant, where the row is display:none).
89600
+ verticalPadding: [
89601
+ { selector: () => '.codes-box', property: 'padding-top' },
89602
+ { selector: () => '.codes-box', property: 'padding-bottom' },
89603
+ { selector: () => '.buttons-row', property: 'padding-bottom' },
89604
+ ],
89605
+ // horizontal padding insets the codes (inside the border) and the buttons, but NOT the
89606
+ // error message, which stays aligned to the component edge (like the input error).
89607
+ horizontalPadding: [
89608
+ { selector: () => '.codes-box', property: 'padding-left' },
89609
+ { selector: () => '.codes-box', property: 'padding-right' },
89610
+ { selector: () => '.buttons-row', property: 'padding-left' },
89611
+ { selector: () => '.buttons-row', property: 'padding-right' },
89612
+ ],
89613
+ errorBorderColor: {
89614
+ selector: () => '.codes-box',
89615
+ property: 'border-color',
89616
+ },
89617
+ errorMessageColor: {
89618
+ selector: () => '.error-message',
89619
+ property: 'color',
89620
+ },
89621
+ errorMessageFontSize: {
89622
+ selector: () => '.error-message',
89623
+ property: 'font-size',
89624
+ },
89625
+ errorMessageFontWeight: {
89626
+ selector: () => '.error-message',
89627
+ property: 'font-weight',
89628
+ },
89629
+ errorMessageFontFamily: {
89630
+ selector: () => '.error-message',
89631
+ property: 'font-family',
89632
+ },
89633
+ boxBorderRadius: {
89634
+ selector: () => '.codes-box',
89635
+ property: 'border-radius',
89636
+ },
89637
+ errorBorderWidth: {
89638
+ selector: () => '.codes-box',
89639
+ property: 'border-width',
89640
+ },
89641
+ boxBorderStyle: {
89642
+ selector: () => '.codes-box',
89643
+ property: 'border-style',
89644
+ },
89346
89645
  },
89347
89646
  }),
89647
+ // also inject the shared input-wrapper theme onto our host (like the input components do),
89648
+ // so the error message + border track the console "customize inputs" tokens
89649
+ createStyleMixin$1({
89650
+ componentNameOverride: getComponentName('input-wrapper'),
89651
+ }),
89348
89652
  createDynamicDataMixin$1({
89349
89653
  itemRenderer: itemRenderer$5,
89350
89654
  rerenderAttrsList: ['variant', 'mode'],
@@ -89363,9 +89667,33 @@ function requireIndex_cjs () {
89363
89667
  [vars$T.hostDirection]: globalRefs$t.direction,
89364
89668
  [vars$T.iconColor]: useVar$1(textVars$6.textColor),
89365
89669
  [vars$T.iconSize]: useVar$1(textVars$6.fontSize),
89670
+ // gap between the codes and the icon column
89366
89671
  [vars$T.iconGap]: '8px',
89672
+ // gap between the stacked copy and download icons
89673
+ [vars$T.iconStackGap]: '16px',
89674
+ // gap between the copy and download buttons (buttons variant)
89675
+ [vars$T.buttonsGap]: '8px',
89676
+ // gap between the codes, the error message and the buttons
89677
+ [vars$T.sectionsGap]: '8px',
89367
89678
  [vars$T.bulletGap]: '0.35em',
89368
89679
 
89680
+ // no padding by default so the current look is unchanged; the editor overrides per instance
89681
+ [vars$T.verticalPadding]: '0',
89682
+ [vars$T.horizontalPadding]: '0',
89683
+
89684
+ // error ring is transparent until the component is marked invalid (see _invalid below).
89685
+ // message color/font + border come from the shared input-wrapper tokens, so customizing
89686
+ // inputs in the console updates the recovery-codes error styling from the same place.
89687
+ [vars$T.errorBorderColor]: 'transparent',
89688
+ [vars$T.errorBorderWidth]: refs$1.borderWidth,
89689
+ [vars$T.boxBorderRadius]: refs$1.borderRadius,
89690
+ // local default; can later map to the input-wrapper border style if it exposes one
89691
+ [vars$T.boxBorderStyle]: 'solid',
89692
+ [vars$T.errorMessageColor]: refs$1.errorMessageTextColor,
89693
+ [vars$T.errorMessageFontSize]: refs$1.errorMessageFontSize,
89694
+ [vars$T.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
89695
+ [vars$T.errorMessageFontFamily]: refs$1.fontFamily,
89696
+
89369
89697
  textAlign: {
89370
89698
  right: { [vars$T.textAlign]: 'flex-end' },
89371
89699
  left: { [vars$T.textAlign]: 'flex-start' },
@@ -89375,6 +89703,11 @@ function requireIndex_cjs () {
89375
89703
  _fullWidth: {
89376
89704
  [vars$T.hostWidth]: '100%',
89377
89705
  },
89706
+
89707
+ // reflected `invalid` attribute (set by the component on a failed submit)
89708
+ _invalid: {
89709
+ [vars$T.errorBorderColor]: refs$1.errorMessageTextColor,
89710
+ },
89378
89711
  };
89379
89712
 
89380
89713
  var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
package/dist/index.d.ts CHANGED
@@ -1298,6 +1298,25 @@ type Props$5 = {
1298
1298
  'text-align': TextAlign;
1299
1299
  'full-width': boolean;
1300
1300
  data?: Item[];
1301
+ name?: string;
1302
+ required?: boolean;
1303
+ 'data-errormessage-value-missing'?: string;
1304
+ 'display-variant'?: 'icons' | 'buttons';
1305
+ 'show-download'?: boolean;
1306
+ 'st-horizontal-padding'?: string;
1307
+ 'st-vertical-padding'?: string;
1308
+ 'copy-text'?: string;
1309
+ 'copy-variant'?: string;
1310
+ 'copy-color'?: string;
1311
+ 'copy-size'?: string;
1312
+ 'copy-icon'?: string;
1313
+ 'copy-icon-dark'?: string;
1314
+ 'download-text'?: string;
1315
+ 'download-variant'?: string;
1316
+ 'download-color'?: string;
1317
+ 'download-size'?: string;
1318
+ 'download-icon'?: string;
1319
+ 'download-icon-dark'?: string;
1301
1320
  };
1302
1321
  declare global {
1303
1322
  namespace React.JSX {
@@ -9,6 +9,25 @@ type Props = {
9
9
  'text-align': TextAlign;
10
10
  'full-width': boolean;
11
11
  data?: Item[];
12
+ name?: string;
13
+ required?: boolean;
14
+ 'data-errormessage-value-missing'?: string;
15
+ 'display-variant'?: 'icons' | 'buttons';
16
+ 'show-download'?: boolean;
17
+ 'st-horizontal-padding'?: string;
18
+ 'st-vertical-padding'?: string;
19
+ 'copy-text'?: string;
20
+ 'copy-variant'?: string;
21
+ 'copy-color'?: string;
22
+ 'copy-size'?: string;
23
+ 'copy-icon'?: string;
24
+ 'copy-icon-dark'?: string;
25
+ 'download-text'?: string;
26
+ 'download-variant'?: string;
27
+ 'download-color'?: string;
28
+ 'download-size'?: string;
29
+ 'download-icon'?: string;
30
+ 'download-icon-dark'?: string;
12
31
  };
13
32
  declare global {
14
33
  namespace React.JSX {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.20.4",
3
+ "version": "3.21.1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -98,7 +98,7 @@
98
98
  "webpack-subresource-integrity": "5.2.0-rc.1"
99
99
  },
100
100
  "dependencies": {
101
- "@descope/web-components-ui": "3.20.4"
101
+ "@descope/web-components-ui": "3.21.1"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "react": ">= 18"