@descope/flow-components 3.1.4 → 3.1.6
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/fm/119.js +1 -1
- package/dist/fm/119.js.map +1 -1
- package/dist/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types.zip +0 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +194 -25
- package/package.json +2 -2
package/dist/fm/mf-manifest.json
CHANGED
package/dist/fm/mf-stats.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -88530,10 +88530,14 @@ function requireIndex_cjs () {
|
|
|
88530
88530
|
return `<div data-id="${escapedStateCode}" data-name="${escapedSearchTerms}" data-label="${escapedLabel}">${escapedLabel}</div>`;
|
|
88531
88531
|
};
|
|
88532
88532
|
|
|
88533
|
-
const cityItem = ({ name }) => {
|
|
88533
|
+
const cityItem = ({ name, translations, lang }) => {
|
|
88534
|
+
const displayName = resolveTranslation({ name, translations }, lang);
|
|
88535
|
+
const searchTerms = [displayName];
|
|
88536
|
+
if (displayName !== name) searchTerms.push(name);
|
|
88534
88537
|
const escapedId = escapeHtml(name);
|
|
88535
|
-
const
|
|
88536
|
-
|
|
88538
|
+
const escapedSearchTerms = escapeHtml(searchTerms.join(' '));
|
|
88539
|
+
const escapedLabel = escapeHtml(displayName);
|
|
88540
|
+
return `<div data-id="${escapedId}" data-name="${escapedSearchTerms}" data-label="${escapedLabel}">${escapedLabel}</div>`;
|
|
88537
88541
|
};
|
|
88538
88542
|
|
|
88539
88543
|
const comboBoxHTML = (id) =>
|
|
@@ -88593,6 +88597,7 @@ function requireIndex_cjs () {
|
|
|
88593
88597
|
#countriesMap = new Map();
|
|
88594
88598
|
#cachedCountries = null;
|
|
88595
88599
|
#cachedSubdivisions = null;
|
|
88600
|
+
#cachedCities = null;
|
|
88596
88601
|
#labels = null;
|
|
88597
88602
|
|
|
88598
88603
|
// Value requested programmatically before data has loaded.
|
|
@@ -88639,8 +88644,8 @@ function requireIndex_cjs () {
|
|
|
88639
88644
|
const lang = this.getAttribute('lang') || undefined;
|
|
88640
88645
|
if (!lang) return undefined;
|
|
88641
88646
|
try {
|
|
88642
|
-
Intl.getCanonicalLocales(lang);
|
|
88643
|
-
return
|
|
88647
|
+
const [canonical] = Intl.getCanonicalLocales(lang);
|
|
88648
|
+
return canonical;
|
|
88644
88649
|
} catch {
|
|
88645
88650
|
return undefined; // invalid BCP47 tag — fall back to English
|
|
88646
88651
|
}
|
|
@@ -88823,8 +88828,11 @@ function requireIndex_cjs () {
|
|
|
88823
88828
|
|
|
88824
88829
|
#setupValueTransform() {
|
|
88825
88830
|
// Display only the item name in the input, while data-name includes ISO codes for search
|
|
88826
|
-
[
|
|
88827
|
-
|
|
88831
|
+
[
|
|
88832
|
+
this.#countryComboBox,
|
|
88833
|
+
this.#subdivisionComboBox,
|
|
88834
|
+
this.#cityComboBox,
|
|
88835
|
+
].forEach((combo) => {
|
|
88828
88836
|
combo.customValueTransformFn = (val) => {
|
|
88829
88837
|
const item = combo.baseElement?.items?.find(
|
|
88830
88838
|
(i) => i['data-name'] === val,
|
|
@@ -88969,7 +88977,11 @@ function requireIndex_cjs () {
|
|
|
88969
88977
|
if (cities) {
|
|
88970
88978
|
this.#cityVisible = cities.length > 0;
|
|
88971
88979
|
if (cities.length > 0) {
|
|
88972
|
-
this.#
|
|
88980
|
+
this.#cachedCities = cities;
|
|
88981
|
+
this.#cityComboBox.data = cities.map((c) => ({
|
|
88982
|
+
...c,
|
|
88983
|
+
lang: this.#lang,
|
|
88984
|
+
}));
|
|
88973
88985
|
if (pendingCity) toSelect.push([this.#cityComboBox, pendingCity]);
|
|
88974
88986
|
}
|
|
88975
88987
|
}
|
|
@@ -89080,7 +89092,6 @@ function requireIndex_cjs () {
|
|
|
89080
89092
|
if (!this.#pendingValue && this.#defaultCountry)
|
|
89081
89093
|
this.#onCountrySelected(this.#defaultCountry);
|
|
89082
89094
|
} catch (e) {
|
|
89083
|
-
|
|
89084
89095
|
console.error(`[${componentName$V}] Failed to load countries`, e);
|
|
89085
89096
|
} finally {
|
|
89086
89097
|
this.#countryComboBox.removeAttribute('loading');
|
|
@@ -89105,7 +89116,6 @@ function requireIndex_cjs () {
|
|
|
89105
89116
|
this.#loadCities(countryIso2);
|
|
89106
89117
|
}
|
|
89107
89118
|
} catch (e) {
|
|
89108
|
-
|
|
89109
89119
|
console.error(
|
|
89110
89120
|
`[${componentName$V}] Failed to load subdivisions for ${countryIso2}`,
|
|
89111
89121
|
e,
|
|
@@ -89127,10 +89137,13 @@ function requireIndex_cjs () {
|
|
|
89127
89137
|
this.#cityVisible = cities.length > 0;
|
|
89128
89138
|
this.#refreshState();
|
|
89129
89139
|
if (cities.length > 0) {
|
|
89130
|
-
this.#
|
|
89140
|
+
this.#cachedCities = cities;
|
|
89141
|
+
this.#cityComboBox.data = cities.map((c) => ({
|
|
89142
|
+
...c,
|
|
89143
|
+
lang: this.#lang,
|
|
89144
|
+
}));
|
|
89131
89145
|
}
|
|
89132
89146
|
} catch (e) {
|
|
89133
|
-
|
|
89134
89147
|
console.error(
|
|
89135
89148
|
`[${componentName$V}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,
|
|
89136
89149
|
e,
|
|
@@ -89155,6 +89168,14 @@ function requireIndex_cjs () {
|
|
|
89155
89168
|
if (prevSubdivision)
|
|
89156
89169
|
this.#selectItemById(this.#subdivisionComboBox, prevSubdivision);
|
|
89157
89170
|
}
|
|
89171
|
+
if (this.#cachedCities && this.#cityVisible) {
|
|
89172
|
+
const prevCity = this.#cityComboBox.value;
|
|
89173
|
+
this.#cityComboBox.data = this.#cachedCities.map((c) => ({
|
|
89174
|
+
...c,
|
|
89175
|
+
lang: this.#lang,
|
|
89176
|
+
}));
|
|
89177
|
+
if (prevCity) this.#selectItemById(this.#cityComboBox, prevCity);
|
|
89178
|
+
}
|
|
89158
89179
|
// Re-apply translated subdivision type label for the new lang
|
|
89159
89180
|
const currentIso2 = this.#countryComboBox.value;
|
|
89160
89181
|
if (currentIso2) {
|
|
@@ -89268,6 +89289,7 @@ function requireIndex_cjs () {
|
|
|
89268
89289
|
#resetCity() {
|
|
89269
89290
|
this.#cityComboBox.value = '';
|
|
89270
89291
|
this.#cityComboBox.data = [];
|
|
89292
|
+
this.#cachedCities = null;
|
|
89271
89293
|
this.#cityVisible = false;
|
|
89272
89294
|
this.#refreshState();
|
|
89273
89295
|
}
|
|
@@ -97260,7 +97282,7 @@ descope-enriched-text {
|
|
|
97260
97282
|
};
|
|
97261
97283
|
|
|
97262
97284
|
const renderCodeSnippet = (value, lang) =>
|
|
97263
|
-
`<descope-code-snippet lang="${lang}" class="row-details__value code">${escapeXML(value)}</descope-code-snippet>`;
|
|
97285
|
+
`<descope-code-snippet copy-button="true" lang="${lang}" class="row-details__value code">${escapeXML(value)}</descope-code-snippet>`;
|
|
97264
97286
|
|
|
97265
97287
|
const renderText = (text) =>
|
|
97266
97288
|
`<div class="row-details__value text" title="${text}">${escapeXML(text)}</div>`;
|
|
@@ -97288,16 +97310,31 @@ descope-enriched-text {
|
|
|
97288
97310
|
return renderText(value);
|
|
97289
97311
|
};
|
|
97290
97312
|
|
|
97313
|
+
const isCodeSnippetValue = (value) => {
|
|
97314
|
+
const type = getValueType(value);
|
|
97315
|
+
return (
|
|
97316
|
+
type === 'object' ||
|
|
97317
|
+
type === 'xml' ||
|
|
97318
|
+
(type === 'array' && value.some((v) => getValueType(v) === 'object'))
|
|
97319
|
+
);
|
|
97320
|
+
};
|
|
97321
|
+
|
|
97291
97322
|
const defaultRowDetailsRenderer = (item, itemLabelsMapping) => `
|
|
97292
97323
|
<div class="row-details">
|
|
97293
97324
|
${Object.entries(item)
|
|
97294
|
-
.map(
|
|
97295
|
-
|
|
97296
|
-
|
|
97297
|
-
|
|
97325
|
+
.map(([key, value]) => {
|
|
97326
|
+
const label = itemLabelsMapping[key] || toTitle(key);
|
|
97327
|
+
if (isCodeSnippetValue(value)) {
|
|
97328
|
+
return `<details class="row-details__item">
|
|
97329
|
+
<summary class="row-details__label">${label}</summary>
|
|
97298
97330
|
${defaultRowDetailsValueRenderer(value)}
|
|
97299
|
-
</
|
|
97300
|
-
|
|
97331
|
+
</details>`;
|
|
97332
|
+
}
|
|
97333
|
+
return `<div class="row-details__item">
|
|
97334
|
+
<div class="row-details__label">${label}</div>
|
|
97335
|
+
${defaultRowDetailsValueRenderer(value)}
|
|
97336
|
+
</div>`;
|
|
97337
|
+
})
|
|
97301
97338
|
.join('\n')}
|
|
97302
97339
|
</div>
|
|
97303
97340
|
`;
|
|
@@ -97325,6 +97362,18 @@ descope-enriched-text {
|
|
|
97325
97362
|
};
|
|
97326
97363
|
|
|
97327
97364
|
this.baseElement.rowDetailsRenderer = this.#rowDetailsRenderer.bind(this);
|
|
97365
|
+
|
|
97366
|
+
// Stop wheel events from propagating to vaadin-grid when scrolling
|
|
97367
|
+
// inside code snippets, so touchpad horizontal scroll works
|
|
97368
|
+
this.baseElement.addEventListener(
|
|
97369
|
+
'wheel',
|
|
97370
|
+
(e) => {
|
|
97371
|
+
if (e.target.closest('descope-code-snippet')) {
|
|
97372
|
+
e.stopPropagation();
|
|
97373
|
+
}
|
|
97374
|
+
},
|
|
97375
|
+
true
|
|
97376
|
+
);
|
|
97328
97377
|
}
|
|
97329
97378
|
|
|
97330
97379
|
// this renders the details panel content
|
|
@@ -97635,6 +97684,14 @@ descope-enriched-text {
|
|
|
97635
97684
|
grid-column: 1 / -1;
|
|
97636
97685
|
order: 2;
|
|
97637
97686
|
}
|
|
97687
|
+
vaadin-grid details.row-details__item {
|
|
97688
|
+
padding: 0;
|
|
97689
|
+
}
|
|
97690
|
+
vaadin-grid details.row-details__item > summary.row-details__label {
|
|
97691
|
+
cursor: pointer;
|
|
97692
|
+
list-style: revert;
|
|
97693
|
+
display: revert;
|
|
97694
|
+
}
|
|
97638
97695
|
vaadin-grid .row-details__value.text {
|
|
97639
97696
|
overflow: hidden;
|
|
97640
97697
|
text-overflow: ellipsis;
|
|
@@ -97642,8 +97699,7 @@ descope-enriched-text {
|
|
|
97642
97699
|
}
|
|
97643
97700
|
vaadin-grid .row-details__value.code {
|
|
97644
97701
|
margin-top: 5px;
|
|
97645
|
-
|
|
97646
|
-
overflow: scroll;
|
|
97702
|
+
overflow-x: auto;
|
|
97647
97703
|
font-size: 0.85em;
|
|
97648
97704
|
}
|
|
97649
97705
|
vaadin-grid vaadin-icon.toggle-details-button {
|
|
@@ -99574,18 +99630,24 @@ descope-enriched-text {
|
|
|
99574
99630
|
|
|
99575
99631
|
const tpl = (input, inline) => (inline ? input : `<pre>${input}</pre>`);
|
|
99576
99632
|
|
|
99633
|
+
var copyIconSrc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogIDxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+CiAgPHBhdGggZD0iTTUgMTVINGEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg5YTIgMiAwIDAgMSAyIDJ2MSI+PC9wYXRoPgo8L3N2Zz4K";
|
|
99634
|
+
|
|
99635
|
+
var checkIconSrc = "data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY2hlY2staWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT4KPC9zdmc+Cg==";
|
|
99636
|
+
|
|
99577
99637
|
const componentName$e = getComponentName$1('code-snippet');
|
|
99578
99638
|
|
|
99579
|
-
let CodeSnippet$1 = class CodeSnippet extends createBaseClass({ componentName: componentName$e, baseSelector: ':host >
|
|
99639
|
+
let CodeSnippet$1 = class CodeSnippet extends createBaseClass({ componentName: componentName$e, baseSelector: ':host > .wrapper' }) {
|
|
99580
99640
|
static get observedAttributes() {
|
|
99581
|
-
return ['lang', 'inline'];
|
|
99641
|
+
return ['lang', 'inline', 'copy-button'];
|
|
99582
99642
|
}
|
|
99583
99643
|
|
|
99584
99644
|
constructor() {
|
|
99585
99645
|
super();
|
|
99586
99646
|
|
|
99587
99647
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
99588
|
-
|
|
99648
|
+
<div class="wrapper">
|
|
99649
|
+
<code class="hljs"></code>
|
|
99650
|
+
</div>
|
|
99589
99651
|
`;
|
|
99590
99652
|
|
|
99591
99653
|
injectStyle(
|
|
@@ -99594,6 +99656,10 @@ descope-enriched-text {
|
|
|
99594
99656
|
display: inline-block;
|
|
99595
99657
|
width: 100%;
|
|
99596
99658
|
}
|
|
99659
|
+
.wrapper {
|
|
99660
|
+
position: relative;
|
|
99661
|
+
width: 100%;
|
|
99662
|
+
}
|
|
99597
99663
|
code {
|
|
99598
99664
|
display: block;
|
|
99599
99665
|
width: 100%;
|
|
@@ -99604,6 +99670,38 @@ descope-enriched-text {
|
|
|
99604
99670
|
pre {
|
|
99605
99671
|
margin: 0;
|
|
99606
99672
|
}
|
|
99673
|
+
.copy-btn {
|
|
99674
|
+
position: absolute;
|
|
99675
|
+
top: 8px;
|
|
99676
|
+
right: 8px;
|
|
99677
|
+
display: flex;
|
|
99678
|
+
align-items: center;
|
|
99679
|
+
justify-content: center;
|
|
99680
|
+
padding: 0;
|
|
99681
|
+
border-style: solid;
|
|
99682
|
+
cursor: pointer;
|
|
99683
|
+
opacity: 0;
|
|
99684
|
+
transition: opacity 150ms ease, background 150ms ease;
|
|
99685
|
+
}
|
|
99686
|
+
.wrapper:hover .copy-btn,
|
|
99687
|
+
.copy-btn:focus-visible {
|
|
99688
|
+
opacity: 1;
|
|
99689
|
+
}
|
|
99690
|
+
.copy-btn descope-icon {
|
|
99691
|
+
width: 16px;
|
|
99692
|
+
height: 16px;
|
|
99693
|
+
pointer-events: none;
|
|
99694
|
+
flex-shrink: 0;
|
|
99695
|
+
}
|
|
99696
|
+
.copy-btn .check-icon {
|
|
99697
|
+
display: none;
|
|
99698
|
+
}
|
|
99699
|
+
.copy-btn.copied .check-icon {
|
|
99700
|
+
display: block;
|
|
99701
|
+
}
|
|
99702
|
+
.copy-btn.copied descope-icon:not(.check-icon) {
|
|
99703
|
+
display: none;
|
|
99704
|
+
}
|
|
99607
99705
|
`,
|
|
99608
99706
|
this
|
|
99609
99707
|
);
|
|
@@ -99615,11 +99713,15 @@ descope-enriched-text {
|
|
|
99615
99713
|
this.lang = this.getAttribute('lang');
|
|
99616
99714
|
this.isInline = this.getAttribute('inline') === 'true';
|
|
99617
99715
|
|
|
99716
|
+
if (this.getAttribute('copy-button') === 'true') {
|
|
99717
|
+
this.#initCopyButton();
|
|
99718
|
+
}
|
|
99719
|
+
|
|
99618
99720
|
observeChildren$1(this, this.#renderSnippet.bind(this));
|
|
99619
99721
|
}
|
|
99620
99722
|
|
|
99621
99723
|
get contentNode() {
|
|
99622
|
-
return this.shadowRoot.querySelector(
|
|
99724
|
+
return this.shadowRoot.querySelector('code');
|
|
99623
99725
|
}
|
|
99624
99726
|
|
|
99625
99727
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -99634,10 +99736,58 @@ descope-enriched-text {
|
|
|
99634
99736
|
this.lang = newValue;
|
|
99635
99737
|
}
|
|
99636
99738
|
|
|
99739
|
+
if (attrName === 'copy-button') {
|
|
99740
|
+
if (newValue === 'true') {
|
|
99741
|
+
this.#initCopyButton();
|
|
99742
|
+
} else {
|
|
99743
|
+
this.#destroyCopyButton();
|
|
99744
|
+
}
|
|
99745
|
+
}
|
|
99746
|
+
|
|
99637
99747
|
this.#renderSnippet();
|
|
99638
99748
|
}
|
|
99639
99749
|
}
|
|
99640
99750
|
|
|
99751
|
+
// ── Copy button ────────────────────────────────────────────────────────────
|
|
99752
|
+
|
|
99753
|
+
#initCopyButton() {
|
|
99754
|
+
if (this.shadowRoot.querySelector('.copy-btn')) return;
|
|
99755
|
+
|
|
99756
|
+
const btn = document.createElement('button');
|
|
99757
|
+
btn.className = 'copy-btn';
|
|
99758
|
+
btn.type = 'button';
|
|
99759
|
+
btn.setAttribute('aria-label', 'Copy code');
|
|
99760
|
+
const copyIcon = document.createElement('descope-icon');
|
|
99761
|
+
copyIcon.setAttribute('src', copyIconSrc);
|
|
99762
|
+
|
|
99763
|
+
const checkIcon = document.createElement('descope-icon');
|
|
99764
|
+
checkIcon.setAttribute('src', checkIconSrc);
|
|
99765
|
+
checkIcon.classList.add('check-icon');
|
|
99766
|
+
|
|
99767
|
+
btn.appendChild(copyIcon);
|
|
99768
|
+
btn.appendChild(checkIcon);
|
|
99769
|
+
btn.addEventListener('click', () => this.#handleCopyClick());
|
|
99770
|
+
|
|
99771
|
+
this.shadowRoot.querySelector('.wrapper').appendChild(btn);
|
|
99772
|
+
}
|
|
99773
|
+
|
|
99774
|
+
#destroyCopyButton() {
|
|
99775
|
+
this.shadowRoot.querySelector('.copy-btn')?.remove();
|
|
99776
|
+
}
|
|
99777
|
+
|
|
99778
|
+
#handleCopyClick() {
|
|
99779
|
+
const btn = this.shadowRoot.querySelector('.copy-btn');
|
|
99780
|
+
navigator.clipboard
|
|
99781
|
+
.writeText(decode(this.textContent))
|
|
99782
|
+
.then(() => {
|
|
99783
|
+
btn.classList.add('copied');
|
|
99784
|
+
setTimeout(() => btn.classList.remove('copied'), 2000);
|
|
99785
|
+
})
|
|
99786
|
+
.catch(() => {});
|
|
99787
|
+
}
|
|
99788
|
+
|
|
99789
|
+
// ── Snippet rendering ──────────────────────────────────────────────────────
|
|
99790
|
+
|
|
99641
99791
|
#renderSnippet() {
|
|
99642
99792
|
const sanitized = decode(this.textContent);
|
|
99643
99793
|
const language = this.lang;
|
|
@@ -99653,6 +99803,8 @@ descope-enriched-text {
|
|
|
99653
99803
|
}
|
|
99654
99804
|
};
|
|
99655
99805
|
|
|
99806
|
+
const copyBtn = { selector: () => '.copy-btn' };
|
|
99807
|
+
|
|
99656
99808
|
const {
|
|
99657
99809
|
root,
|
|
99658
99810
|
docTag,
|
|
@@ -99804,6 +99956,16 @@ descope-enriched-text {
|
|
|
99804
99956
|
propertyTextColor: { ...property, property: 'color' },
|
|
99805
99957
|
punctuationTextColor: { ...punctuation, property: 'color' },
|
|
99806
99958
|
tagTextColor: { ...tag, property: 'color' },
|
|
99959
|
+
copyButtonSize: [
|
|
99960
|
+
{ ...copyBtn, property: 'width' },
|
|
99961
|
+
{ ...copyBtn, property: 'height' },
|
|
99962
|
+
],
|
|
99963
|
+
copyButtonBorderRadius: { ...copyBtn, property: 'border-radius' },
|
|
99964
|
+
copyButtonBorderWidth: { ...copyBtn, property: 'border-width' },
|
|
99965
|
+
copyButtonBorderColor: { ...copyBtn, property: 'border-color' },
|
|
99966
|
+
copyButtonBgColor: { ...copyBtn, property: 'background-color' },
|
|
99967
|
+
copyButtonHoverBgColor: { selector: () => '.copy-btn:hover', property: 'background-color' },
|
|
99968
|
+
copyButtonColor: { ...copyBtn, property: 'color' },
|
|
99807
99969
|
},
|
|
99808
99970
|
}),
|
|
99809
99971
|
draggableMixin,
|
|
@@ -99841,6 +100003,13 @@ descope-enriched-text {
|
|
|
99841
100003
|
};
|
|
99842
100004
|
|
|
99843
100005
|
const CodeSnippet = {
|
|
100006
|
+
[vars$c.copyButtonSize]: '32px',
|
|
100007
|
+
[vars$c.copyButtonBorderRadius]: globalRefs$6.radius.xs,
|
|
100008
|
+
[vars$c.copyButtonBorderWidth]: globalRefs$6.border.xs,
|
|
100009
|
+
[vars$c.copyButtonBorderColor]: globalRefs$6.colors.surface.light,
|
|
100010
|
+
[vars$c.copyButtonBgColor]: globalRefs$6.colors.surface.highlight,
|
|
100011
|
+
[vars$c.copyButtonHoverBgColor]: globalRefs$6.colors.surface.light,
|
|
100012
|
+
[vars$c.copyButtonColor]: globalRefs$6.colors.surface.contrast,
|
|
99844
100013
|
[vars$c.rootBgColor]: globalRefs$6.colors.surface.main,
|
|
99845
100014
|
[vars$c.rootTextColor]: globalRefs$6.colors.surface.contrast,
|
|
99846
100015
|
[vars$c.docTagTextColor]: light.color2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
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.1.
|
|
100
|
+
"@descope/web-components-ui": "3.1.6"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": ">= 18"
|