@wise/dynamic-flow-client 2.5.0 → 2.6.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/build/main.js +48 -48
- package/build/main.min.js +1 -1
- package/build/types/formControl/FormControl.d.ts +2 -2
- package/build/types/formControl/utils/getAutocompleteString.d.ts +2 -2
- package/build/types/revamp/domain/components/AlertComponent.d.ts +2 -0
- package/build/types/revamp/domain/components/BoxComponent.d.ts +18 -0
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +23 -0
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +2 -0
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +15 -7
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +2 -0
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +4 -5
- package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +2 -1
- package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +4 -0
- package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +3 -2
- package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +2 -1
- package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +2 -1
- package/build/types/revamp/domain/mappers/mapLayoutToComponent.d.ts +4 -0
- package/build/types/revamp/domain/mappers/mapSchemaToComponent.d.ts +4 -0
- package/build/types/revamp/domain/mappers/mapStepToComponents.d.ts +7 -2
- package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent.d.ts +2 -2
- package/build/types/revamp/domain/mappers/schema/types.d.ts +6 -2
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +2 -0
- package/build/types/revamp/domain/types.d.ts +13 -6
- package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +2 -1
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/types.d.ts +22 -0
- package/build/types/revamp/step/utils/render-utils.d.ts +5 -0
- package/build/types/revamp/utils/findComponent.d.ts +2 -0
- package/build/types/revamp/utils/getSubmittableData.d.ts +3 -0
- package/build/types/revamp/utils/type-utils.d.ts +4 -0
- package/build/types/revamp/wise/renderers/BoxRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ButtonRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ObjectRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/utils/layout-utils.d.ts +3 -3
- package/package.json +8 -7
- package/build/types/revamp/domain/components/Step.d.ts +0 -9
- package/build/types/revamp/domain/mappers/mapSchemaToComponents.d.ts +0 -4
package/build/main.js
CHANGED
|
@@ -2492,7 +2492,7 @@ var DynamicButton = (props) => {
|
|
|
2492
2492
|
import_components3.Button,
|
|
2493
2493
|
{
|
|
2494
2494
|
size: getButtonSize(component.size),
|
|
2495
|
-
type,
|
|
2495
|
+
type: priority === "tertiary" ? void 0 : type,
|
|
2496
2496
|
priority,
|
|
2497
2497
|
block: true,
|
|
2498
2498
|
className,
|
|
@@ -3684,67 +3684,67 @@ var logInvalidTypeFallbackWarning = ({
|
|
|
3684
3684
|
|
|
3685
3685
|
// src/formControl/utils/getAutocompleteString.ts
|
|
3686
3686
|
var getAutocompleteString = (hints) => {
|
|
3687
|
-
const validHints = hints.filter((hint) =>
|
|
3687
|
+
const validHints = hints.filter((hint) => autocompleteTokenMap[hint]);
|
|
3688
3688
|
if (validHints.length === 0) {
|
|
3689
3689
|
return "off";
|
|
3690
3690
|
}
|
|
3691
|
-
return validHints.map((hint) =>
|
|
3691
|
+
return validHints.map((hint) => autocompleteTokenMap[hint]).join(" ");
|
|
3692
3692
|
};
|
|
3693
|
-
var
|
|
3693
|
+
var autocompleteTokenMap = {
|
|
3694
3694
|
on: "on",
|
|
3695
3695
|
name: "name",
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3696
|
+
"name-prefix": "honorific-prefix",
|
|
3697
|
+
"given-name": "given-name",
|
|
3698
|
+
"additional-name": "additional-name",
|
|
3699
|
+
"family-name": "family-name",
|
|
3700
|
+
"name-suffix": "honorific-suffix",
|
|
3701
3701
|
nickname: "nickname",
|
|
3702
3702
|
email: "email",
|
|
3703
3703
|
// Web doesn't have a specific mapping for new username, but this is semantically close enough
|
|
3704
|
-
|
|
3704
|
+
"new-username": "username",
|
|
3705
3705
|
username: "username",
|
|
3706
|
-
|
|
3706
|
+
"new-password": "new-password",
|
|
3707
3707
|
password: "current-password",
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3708
|
+
"one-time-code": "one-time-code",
|
|
3709
|
+
"job-title": "organization-title",
|
|
3710
|
+
"organization-name": "organization",
|
|
3711
|
+
"full-street-address": "street-address",
|
|
3712
|
+
"street-address-line-1": "address-line1",
|
|
3713
|
+
"street-address-line-2": "address-line2",
|
|
3714
|
+
"street-address-line-3": "address-line3",
|
|
3715
|
+
"address-level-1": "address-level1",
|
|
3716
|
+
"address-level-2": "address-level2",
|
|
3717
|
+
"address-level-3": "address-level3",
|
|
3718
|
+
"address-level-4": "address-level4",
|
|
3719
|
+
"country-code": "country",
|
|
3720
|
+
"country-name": "country-name",
|
|
3721
|
+
"postal-code": "postal-code",
|
|
3722
|
+
"credit-card-name": "cc-name",
|
|
3723
|
+
"credit-card-given-name": "cc-given-name",
|
|
3724
|
+
"credit-card-middle-name": "cc-additional-name",
|
|
3725
|
+
"credit-card-family-name": "cc-family-name",
|
|
3726
|
+
"credit-card-number": "cc-number",
|
|
3727
|
+
"credit-card-expiration": "cc-exp",
|
|
3728
|
+
"credit-card-expiration-month": "cc-exp-month",
|
|
3729
|
+
"credit-card-expiration-year": "cc-exp-year",
|
|
3730
|
+
"credit-card-security-code": "cc-csc",
|
|
3731
|
+
"credit-card-type": "cc-type",
|
|
3732
|
+
"transaction-currency": "transaction-currency",
|
|
3733
|
+
"transaction-amount": "transaction-amount",
|
|
3734
3734
|
language: "language",
|
|
3735
3735
|
birthdate: "bday",
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3736
|
+
"birthdate-day": "bday-day",
|
|
3737
|
+
"birthdate-month": "bday-month",
|
|
3738
|
+
"birthdate-year": "bday-year",
|
|
3739
3739
|
gender: "sex",
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3740
|
+
"phone-number": "tel",
|
|
3741
|
+
"phone-country-code": "tel-country-code",
|
|
3742
|
+
"phone-national": "tel-national",
|
|
3743
|
+
"phone-area-code": "tel-area-code",
|
|
3744
|
+
"phone-local": "tel-local",
|
|
3745
|
+
"phone-local-prefix": "tel-local-prefix",
|
|
3746
|
+
"phone-local-suffix": "tel-local-suffix",
|
|
3747
|
+
"phone-extension": "tel-extension",
|
|
3748
3748
|
url: "url",
|
|
3749
3749
|
photo: "photo",
|
|
3750
3750
|
impp: "impp",
|