@descope/flow-components 3.9.0 → 3.9.2
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/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/741.js +2 -0
- package/dist/fm/741.js.map +1 -0
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/MultiLineMappings/MultiLineMappings.d.ts +31 -0
- package/dist/fm/@mf-types/compiled-types/MultiLineMappings/index.d.ts +1 -0
- package/dist/fm/@mf-types/compiled-types/componentClasses.d.ts +1 -0
- package/dist/fm/@mf-types/compiled-types/components.d.ts +1 -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 +2 -2
- package/dist/fm/mf-stats.json +2 -2
- package/dist/index.cjs.js +50 -0
- package/dist/index.d.ts +105 -74
- package/dist/index.esm.js +19 -2
- package/dist/types/MultiLineMappings/MultiLineMappings.d.ts +31 -0
- package/dist/types/MultiLineMappings/index.d.ts +1 -0
- package/dist/types/componentClasses.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/package.json +2 -2
- package/dist/fm/477.js +0 -2
- package/dist/fm/477.js.map +0 -1
package/dist/fm/mf-manifest.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "flowComponents",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "3.9.
|
|
8
|
+
"buildVersion": "3.9.2",
|
|
9
9
|
"buildName": "@descope/flow-components"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"assets": {
|
|
52
52
|
"js": {
|
|
53
53
|
"sync": [
|
|
54
|
-
"
|
|
54
|
+
"741.js",
|
|
55
55
|
"__federation_expose_components.js"
|
|
56
56
|
],
|
|
57
57
|
"async": []
|
package/dist/fm/mf-stats.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "flowComponents",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "3.9.
|
|
8
|
+
"buildVersion": "3.9.2",
|
|
9
9
|
"buildName": "@descope/flow-components"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"assets": {
|
|
59
59
|
"js": {
|
|
60
60
|
"sync": [
|
|
61
|
-
"
|
|
61
|
+
"741.js",
|
|
62
62
|
"__federation_expose_components.js"
|
|
63
63
|
],
|
|
64
64
|
"async": []
|
package/dist/index.cjs.js
CHANGED
|
@@ -90031,6 +90031,15 @@ function requireIndex_cjs () {
|
|
|
90031
90031
|
|
|
90032
90032
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
90033
90033
|
this.tooltip = this.shadowRoot.querySelector('vaadin-tooltip');
|
|
90034
|
+
|
|
90035
|
+
this.anchored = this.shadowRoot.querySelector('descope-anchored');
|
|
90036
|
+
}
|
|
90037
|
+
|
|
90038
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
90039
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
90040
|
+
#syncComponentState() {
|
|
90041
|
+
const hasHidden = this.anchored?.classList?.contains('hidden');
|
|
90042
|
+
this.classList.toggle('hidden', hasHidden);
|
|
90034
90043
|
}
|
|
90035
90044
|
|
|
90036
90045
|
static get observedAttributes() {
|
|
@@ -90125,6 +90134,8 @@ function requireIndex_cjs () {
|
|
|
90125
90134
|
);
|
|
90126
90135
|
this.#setTooltipTarget();
|
|
90127
90136
|
|
|
90137
|
+
this.#syncComponentState();
|
|
90138
|
+
|
|
90128
90139
|
setTimeout(() => this.#onOverlayReady());
|
|
90129
90140
|
}
|
|
90130
90141
|
|
|
@@ -91433,6 +91444,8 @@ function requireIndex_cjs () {
|
|
|
91433
91444
|
this.attachmentSlot = this.shadowRoot.querySelector(
|
|
91434
91445
|
'slot[name="attachment"]',
|
|
91435
91446
|
);
|
|
91447
|
+
|
|
91448
|
+
this.anchored = this.shadowRoot.querySelector('descope-anchored');
|
|
91436
91449
|
}
|
|
91437
91450
|
|
|
91438
91451
|
get #attachment() {
|
|
@@ -91453,6 +91466,8 @@ function requireIndex_cjs () {
|
|
|
91453
91466
|
init() {
|
|
91454
91467
|
super.init?.();
|
|
91455
91468
|
|
|
91469
|
+
this.#syncComponentState();
|
|
91470
|
+
|
|
91456
91471
|
injectStyle(
|
|
91457
91472
|
`
|
|
91458
91473
|
:host {
|
|
@@ -91496,6 +91511,13 @@ function requireIndex_cjs () {
|
|
|
91496
91511
|
window.requestAnimationFrame(() => this.#setVisibility());
|
|
91497
91512
|
}
|
|
91498
91513
|
|
|
91514
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
91515
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
91516
|
+
#syncComponentState() {
|
|
91517
|
+
const hasHidden = this.anchored?.classList?.contains('hidden');
|
|
91518
|
+
this.classList.toggle('hidden', hasHidden);
|
|
91519
|
+
}
|
|
91520
|
+
|
|
91499
91521
|
#syncAvailableSizeAttr() {
|
|
91500
91522
|
const anchor = this.defaultSlot?.assignedElements()?.[0];
|
|
91501
91523
|
|
|
@@ -106459,6 +106481,8 @@ descope-enriched-text {
|
|
|
106459
106481
|
`;
|
|
106460
106482
|
|
|
106461
106483
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
106484
|
+
|
|
106485
|
+
this.#syncComponentState();
|
|
106462
106486
|
}
|
|
106463
106487
|
|
|
106464
106488
|
init() {
|
|
@@ -106513,6 +106537,13 @@ descope-enriched-text {
|
|
|
106513
106537
|
this.#syncAnchor();
|
|
106514
106538
|
}
|
|
106515
106539
|
|
|
106540
|
+
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
106541
|
+
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
106542
|
+
#syncComponentState() {
|
|
106543
|
+
const hasHidden = this.#anchor.classList.contains('hidden');
|
|
106544
|
+
this.classList.toggle('hidden', hasHidden);
|
|
106545
|
+
}
|
|
106546
|
+
|
|
106516
106547
|
#syncAnchor() {
|
|
106517
106548
|
this.#onAnchorChanged();
|
|
106518
106549
|
|
|
@@ -106838,6 +106869,7 @@ const NotificationClass = index_cjsExports.NotificationClass;
|
|
|
106838
106869
|
const GridClass = index_cjsExports.GridClass;
|
|
106839
106870
|
const BadgeClass = index_cjsExports.BadgeClass;
|
|
106840
106871
|
const MultiSelectComboBoxClass = index_cjsExports.MultiSelectComboBoxClass;
|
|
106872
|
+
const MultiLineMappingsClass = index_cjsExports.MultiLineMappingsClass;
|
|
106841
106873
|
const AvatarClass = index_cjsExports.AvatarClass;
|
|
106842
106874
|
const UserAttributeClass = index_cjsExports.UserAttributeClass;
|
|
106843
106875
|
const UserAuthMethodClass = index_cjsExports.UserAuthMethodClass;
|
|
@@ -107328,6 +107360,22 @@ const SAMLGroupMappings = React__default.default.forwardRef(({ options, size = '
|
|
|
107328
107360
|
return (React__default.default.createElement("descope-saml-group-mappings", { size: size, ...props, options: serializedOptions ?? undefined, ref: ref }));
|
|
107329
107361
|
});
|
|
107330
107362
|
|
|
107363
|
+
const MultiLineMappings = React__default.default.forwardRef(({ data, ...props }, ref) => {
|
|
107364
|
+
const serializedData = React.useMemo(() => {
|
|
107365
|
+
if (!data)
|
|
107366
|
+
return undefined;
|
|
107367
|
+
try {
|
|
107368
|
+
return JSON.stringify(data);
|
|
107369
|
+
}
|
|
107370
|
+
catch (e) {
|
|
107371
|
+
// eslint-disable-next-line no-console
|
|
107372
|
+
console.error('could not parse data string from attribute "data" -', e.message);
|
|
107373
|
+
return undefined;
|
|
107374
|
+
}
|
|
107375
|
+
}, [data]);
|
|
107376
|
+
return (React__default.default.createElement("descope-multi-line-mappings", { data: serializedData, ...props, ref: ref }));
|
|
107377
|
+
});
|
|
107378
|
+
|
|
107331
107379
|
const UserAuthMethod = React__default.default.forwardRef(({ methodIcon, methodIconDark, buttonIcon, buttonIconDark, fulfilledButtonIcon, fulfilledButtonIconDark, ...props }, ref) => (React__default.default.createElement("descope-user-auth-method", { ...props, ref: ref },
|
|
107332
107380
|
methodIcon && methodIconDark && React__default.default.createElement(Icon, { icon: methodIcon, "src-dark": methodIconDark, slot: "method-icon", noColor: true }),
|
|
107333
107381
|
buttonIcon && buttonIconDark && React__default.default.createElement(Icon, { icon: buttonIcon, "src-dark": buttonIconDark, slot: "button-icon", noColor: true, width: "1em", height: "1em" }),
|
|
@@ -107512,6 +107560,8 @@ exports.MappingsField = MappingsField;
|
|
|
107512
107560
|
exports.MappingsFieldClass = MappingsFieldClass;
|
|
107513
107561
|
exports.Modal = Modal;
|
|
107514
107562
|
exports.ModalClass = ModalClass;
|
|
107563
|
+
exports.MultiLineMappings = MultiLineMappings;
|
|
107564
|
+
exports.MultiLineMappingsClass = MultiLineMappingsClass;
|
|
107515
107565
|
exports.MultiSelect = MultiSelect;
|
|
107516
107566
|
exports.MultiSelectComboBoxClass = MultiSelectComboBoxClass;
|
|
107517
107567
|
exports.NOTPImage = NOTPImage;
|