@wise/dynamic-flow-client 3.16.3 → 3.16.5
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 +80 -75
- package/build/main.min.js +1 -1
- package/build/main.mjs +58 -53
- package/build/types/common/httpClientContext/HttpClientContext.d.ts +0 -1
- package/build/types/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -1
- package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +0 -1
- package/build/types/legacy/common/contexts/logContext/LogContext.d.ts +0 -1
- package/build/types/legacy/common/utils/api-utils.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/responseParsers/response-parsers.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/useDynamicFlowState.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/utils/useErrorResponse.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +0 -1
- package/build/types/legacy/formControl/FormControl.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +1 -1
- package/build/types/legacy/test-utils/log-utils.d.ts +0 -1
- package/build/types/revamp/DynamicFragmentCore.d.ts +2 -3
- package/build/types/revamp/DynamicFragmentWise.d.ts +2 -3
- package/build/types/revamp/domain/components/AlertComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BoxComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ColumnsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DividerComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/FormComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ImageComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/InstructionsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MarkdownComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ModalComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ReviewComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/StatusListComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/StepDomainComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TupleComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +2 -3
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +1 -1
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +3 -3
- package/build/types/revamp/useDynamicFlowCore.d.ts +0 -1
- package/build/types/revamp/utils/type-utils.d.ts +2 -2
- package/package.json +28 -28
package/build/main.mjs
CHANGED
|
@@ -138,12 +138,12 @@ var init_clsx = __esm({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.
|
|
141
|
+
// ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.14.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-93a0c34e.esm.js
|
|
142
142
|
import { useState as useState2, useEffect as useEffect2, forwardRef, Suspense, lazy } from "react";
|
|
143
143
|
import { jsx as jsx17, jsxs as jsxs4, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
144
144
|
var unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
|
|
145
145
|
var init_index_93a0c34e_esm = __esm({
|
|
146
|
-
"../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.
|
|
146
|
+
"../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.14.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-93a0c34e.esm.js"() {
|
|
147
147
|
"use strict";
|
|
148
148
|
init_clsx();
|
|
149
149
|
unknownFlagName = "wise";
|
|
@@ -6175,7 +6175,7 @@ var linkHandlerSchema = z.object({
|
|
|
6175
6175
|
var pollingOnErrorSchema = z.object({
|
|
6176
6176
|
action: actionSchema
|
|
6177
6177
|
});
|
|
6178
|
-
var
|
|
6178
|
+
var navigationBackBehaviorSchema = z.object({
|
|
6179
6179
|
title: z.string().optional(),
|
|
6180
6180
|
action: actionSchema
|
|
6181
6181
|
});
|
|
@@ -6227,8 +6227,8 @@ var pollingSchema = z.object({
|
|
|
6227
6227
|
onError: pollingOnErrorSchema
|
|
6228
6228
|
});
|
|
6229
6229
|
var navigationSchema = z.object({
|
|
6230
|
-
backButton:
|
|
6231
|
-
back:
|
|
6230
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
6231
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
6232
6232
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
6233
6233
|
});
|
|
6234
6234
|
var alertLayoutSchema = z.object({
|
|
@@ -6345,9 +6345,9 @@ var stepSchema = z.lazy(
|
|
|
6345
6345
|
refreshFormUrl: z.string().optional(),
|
|
6346
6346
|
id: z.string(),
|
|
6347
6347
|
title: z.string(),
|
|
6348
|
-
description: z.string().optional(),
|
|
6349
6348
|
schemas: z.array(schemaSchema),
|
|
6350
6349
|
layout: z.array(layoutSchema),
|
|
6350
|
+
description: z.string().optional(),
|
|
6351
6351
|
model: jsonElementSchema.optional(),
|
|
6352
6352
|
external: externalSchema.optional(),
|
|
6353
6353
|
polling: pollingSchema.optional(),
|
|
@@ -11241,7 +11241,7 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11241
11241
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11242
11242
|
import { NavigationOptionsList, NavigationOption, Header } from "@transferwise/components";
|
|
11243
11243
|
|
|
11244
|
-
// ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.
|
|
11244
|
+
// ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.14.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
|
|
11245
11245
|
init_index_93a0c34e_esm();
|
|
11246
11246
|
init_clsx();
|
|
11247
11247
|
import "react";
|
|
@@ -12178,6 +12178,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
|
|
|
12178
12178
|
import { Markdown as Markdown4, Typeahead } from "@transferwise/components";
|
|
12179
12179
|
import { Search } from "@transferwise/icons";
|
|
12180
12180
|
import { useState as useState8 } from "react";
|
|
12181
|
+
import { useIntl as useIntl8 } from "react-intl";
|
|
12181
12182
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
12182
12183
|
function InlineSearchRenderer({
|
|
12183
12184
|
id,
|
|
@@ -12189,10 +12190,12 @@ function InlineSearchRenderer({
|
|
|
12189
12190
|
}) {
|
|
12190
12191
|
const [hasSearched, setHasSearched] = useState8(false);
|
|
12191
12192
|
const trackEvent = useTrackEvent();
|
|
12193
|
+
const intl = useIntl8();
|
|
12192
12194
|
return /* @__PURE__ */ jsx42("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx42(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: /* @__PURE__ */ jsx42(
|
|
12193
12195
|
Typeahead,
|
|
12194
12196
|
{
|
|
12195
12197
|
id: "typeahead-input-id",
|
|
12198
|
+
intl,
|
|
12196
12199
|
name: "typeahead-input-name",
|
|
12197
12200
|
size: "md",
|
|
12198
12201
|
maxHeight: 100,
|
|
@@ -12753,7 +12756,7 @@ var getFieldValue = (value, help, orientation) => {
|
|
|
12753
12756
|
import { useMemo as useMemo3 } from "react";
|
|
12754
12757
|
|
|
12755
12758
|
// ../renderers/src/step/ExternalConfirmationDialog.tsx
|
|
12756
|
-
import { useIntl as
|
|
12759
|
+
import { useIntl as useIntl9 } from "react-intl";
|
|
12757
12760
|
|
|
12758
12761
|
// ../renderers/src/messages/external-confirmation.messages.ts
|
|
12759
12762
|
import { defineMessages as defineMessages10 } from "react-intl";
|
|
@@ -12787,7 +12790,7 @@ function ExternalConfirmationDialog({
|
|
|
12787
12790
|
external,
|
|
12788
12791
|
onClose
|
|
12789
12792
|
}) {
|
|
12790
|
-
const { formatMessage } =
|
|
12793
|
+
const { formatMessage } = useIntl9();
|
|
12791
12794
|
return /* @__PURE__ */ jsx55("div", { className: "df-box-renderer-fixed-width", children: /* @__PURE__ */ jsxs20("div", { className: "df-box-renderer-width-lg", children: [
|
|
12792
12795
|
/* @__PURE__ */ jsx55("h2", { className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.title) }),
|
|
12793
12796
|
/* @__PURE__ */ jsx55(Markdown5, { config: { link: { target: "_blank" } }, className: "text-xs-center m-b-5", children: formatMessage(external_confirmation_messages_default.description, { origin: getOrigin(external.url) }) }),
|
|
@@ -12874,8 +12877,10 @@ function StepRendererComponent(props) {
|
|
|
12874
12877
|
}
|
|
12875
12878
|
return /* @__PURE__ */ jsxs22(StepRendererContextProvider, { value, children: [
|
|
12876
12879
|
back ? /* @__PURE__ */ jsx57(BackButton_default, __spreadValues({}, back)) : null,
|
|
12877
|
-
title ? /* @__PURE__ */
|
|
12878
|
-
|
|
12880
|
+
title || description ? /* @__PURE__ */ jsxs22("div", { className: "m-b-4", children: [
|
|
12881
|
+
title ? /* @__PURE__ */ jsx57(Title, { as: "h1", type: "title-section", className: "text-xs-center m-b-2", children: title }) : void 0,
|
|
12882
|
+
description ? /* @__PURE__ */ jsx57("p", { className: "text-xs-center", children: description }) : void 0
|
|
12883
|
+
] }) : void 0,
|
|
12879
12884
|
error ? /* @__PURE__ */ jsx57(Alert3, { type: "negative", className: "m-b-2", message: error }) : void 0,
|
|
12880
12885
|
children
|
|
12881
12886
|
] });
|
|
@@ -13332,7 +13337,7 @@ function isReference(block) {
|
|
|
13332
13337
|
|
|
13333
13338
|
// src/legacy/dynamicFlow/DynamicFlow.tsx
|
|
13334
13339
|
import { useCallback as useCallback11, useEffect as useEffect26, useMemo as useMemo23, useState as useState34 } from "react";
|
|
13335
|
-
import { useIntl as
|
|
13340
|
+
import { useIntl as useIntl30 } from "react-intl";
|
|
13336
13341
|
|
|
13337
13342
|
// src/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.tsx
|
|
13338
13343
|
import { createContext as createContext4, useContext as useContext5, useMemo as useMemo8 } from "react";
|
|
@@ -14253,11 +14258,11 @@ function useExternalStepPolling(polling, onAction) {
|
|
|
14253
14258
|
|
|
14254
14259
|
// src/legacy/common/hooks/usePersistAsync/usePersistAsync.ts
|
|
14255
14260
|
import { useState as useState28 } from "react";
|
|
14256
|
-
import { useIntl as
|
|
14261
|
+
import { useIntl as useIntl24 } from "react-intl";
|
|
14257
14262
|
|
|
14258
14263
|
// src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.tsx
|
|
14259
14264
|
import { useEffect as useEffect18, useState as useState27 } from "react";
|
|
14260
|
-
import { useIntl as
|
|
14265
|
+
import { useIntl as useIntl23 } from "react-intl";
|
|
14261
14266
|
|
|
14262
14267
|
// src/legacy/common/constants/DateMode.ts
|
|
14263
14268
|
var DateMode = {
|
|
@@ -14676,7 +14681,7 @@ var DynamicDivider_default = DynamicDivider;
|
|
|
14676
14681
|
// src/legacy/layout/external/DynamicExternal.tsx
|
|
14677
14682
|
import { Button as Button7, Loader as Loader2, Size as Size2 } from "@transferwise/components";
|
|
14678
14683
|
import { useCallback as useCallback6, useEffect as useEffect8 } from "react";
|
|
14679
|
-
import { useIntl as
|
|
14684
|
+
import { useIntl as useIntl10 } from "react-intl";
|
|
14680
14685
|
|
|
14681
14686
|
// src/legacy/layout/external/DynamicExternal.messages.ts
|
|
14682
14687
|
import { defineMessages as defineMessages11 } from "react-intl";
|
|
@@ -14692,7 +14697,7 @@ var DynamicExternal_messages_default = defineMessages11({
|
|
|
14692
14697
|
import { Fragment as Fragment11, jsx as jsx76, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
14693
14698
|
var DynamicExternal = ({ component, onAction }) => {
|
|
14694
14699
|
const { requestUrl, responseHandlers, polling, retryTitle } = component;
|
|
14695
|
-
const intl =
|
|
14700
|
+
const intl = useIntl10();
|
|
14696
14701
|
const openExternalUrl = useCallback6(
|
|
14697
14702
|
() => window.open(requestUrl, "df-external-window"),
|
|
14698
14703
|
[requestUrl]
|
|
@@ -14774,7 +14779,7 @@ import { useMemo as useMemo12, useState as useState13 } from "react";
|
|
|
14774
14779
|
// src/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.tsx
|
|
14775
14780
|
import { InlineAlert as InlineAlert3 } from "@transferwise/components";
|
|
14776
14781
|
import { formatDate as formatDate3 } from "@transferwise/formatting";
|
|
14777
|
-
import { useIntl as
|
|
14782
|
+
import { useIntl as useIntl11 } from "react-intl";
|
|
14778
14783
|
import { jsx as jsx78, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
14779
14784
|
function ControlFeedback(props) {
|
|
14780
14785
|
var _a;
|
|
@@ -14800,7 +14805,7 @@ ControlFeedback.defaultProps = {
|
|
|
14800
14805
|
validationAsyncSuccessMessage: null
|
|
14801
14806
|
};
|
|
14802
14807
|
function useDefaultValidationMessages(schema) {
|
|
14803
|
-
const { formatMessage, locale } =
|
|
14808
|
+
const { formatMessage, locale } = useIntl11();
|
|
14804
14809
|
const formattedMessages = {
|
|
14805
14810
|
type: formatMessage(validation_messages_default.type),
|
|
14806
14811
|
minimum: formatMessage(validation_messages_default.minimum, {
|
|
@@ -14887,7 +14892,7 @@ function constructUploadError(response) {
|
|
|
14887
14892
|
}
|
|
14888
14893
|
|
|
14889
14894
|
// src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.tsx
|
|
14890
|
-
import { useIntl as
|
|
14895
|
+
import { useIntl as useIntl12 } from "react-intl";
|
|
14891
14896
|
|
|
14892
14897
|
// src/legacy/common/messages.ts
|
|
14893
14898
|
import { defineMessages as defineMessages12 } from "react-intl";
|
|
@@ -14904,7 +14909,7 @@ function useFormattedDefaultErrorMessages({
|
|
|
14904
14909
|
maxItems,
|
|
14905
14910
|
minItems
|
|
14906
14911
|
}) {
|
|
14907
|
-
const { formatMessage } =
|
|
14912
|
+
const { formatMessage } = useIntl12();
|
|
14908
14913
|
const { maxFileSizeError, maxItemsError, minItemsError } = multi_file_upload_messages_default;
|
|
14909
14914
|
return {
|
|
14910
14915
|
maxFileSizeErrorMessage: formatMessage(maxFileSizeError),
|
|
@@ -15024,7 +15029,7 @@ function getValidationMessages(schema, required, defaultErrorMessages) {
|
|
|
15024
15029
|
var import_classnames8 = __toESM(require_classnames());
|
|
15025
15030
|
import { SelectInput as SelectInput3, SelectInputOptionContent as SelectInputOptionContent3 } from "@transferwise/components";
|
|
15026
15031
|
import { useEffect as useEffect9, useMemo as useMemo13, useState as useState14 } from "react";
|
|
15027
|
-
import { useIntl as
|
|
15032
|
+
import { useIntl as useIntl13 } from "react-intl";
|
|
15028
15033
|
|
|
15029
15034
|
// src/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.tsx
|
|
15030
15035
|
import { Avatar as Avatar6, AvatarType as AvatarType5 } from "@transferwise/components";
|
|
@@ -15137,7 +15142,7 @@ function MultiSelectSchema({
|
|
|
15137
15142
|
errors,
|
|
15138
15143
|
onChange
|
|
15139
15144
|
}) {
|
|
15140
|
-
const { formatMessage, locale } =
|
|
15145
|
+
const { formatMessage, locale } = useIntl13();
|
|
15141
15146
|
const { disabled, items, validationMessages, placeholder } = schema;
|
|
15142
15147
|
const options = items.oneOf.map((item) => mapConstSchemaToOption(item, "select"));
|
|
15143
15148
|
const id = useMemo13(() => schema.$id || generateRandomId(), [schema.$id]);
|
|
@@ -15241,7 +15246,7 @@ var getInitialModelIndices2 = (model, options) => {
|
|
|
15241
15246
|
import { Header as Header9, Modal as Modal3, NavigationOption as NavigationOption6 } from "@transferwise/components";
|
|
15242
15247
|
import { Plus as Plus2 } from "@transferwise/icons";
|
|
15243
15248
|
import { useMemo as useMemo14, useState as useState16 } from "react";
|
|
15244
|
-
import { useIntl as
|
|
15249
|
+
import { useIntl as useIntl15 } from "react-intl";
|
|
15245
15250
|
|
|
15246
15251
|
// src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.tsx
|
|
15247
15252
|
import { NavigationOption as NavigationOption5 } from "@transferwise/components";
|
|
@@ -15286,7 +15291,7 @@ var repeatable_messages_default2 = defineMessages14({
|
|
|
15286
15291
|
|
|
15287
15292
|
// src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.tsx
|
|
15288
15293
|
import { useState as useState15 } from "react";
|
|
15289
|
-
import { useIntl as
|
|
15294
|
+
import { useIntl as useIntl14 } from "react-intl";
|
|
15290
15295
|
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
15291
15296
|
function RepeatableSchemaStep({
|
|
15292
15297
|
type,
|
|
@@ -15297,7 +15302,7 @@ function RepeatableSchemaStep({
|
|
|
15297
15302
|
onModelChange,
|
|
15298
15303
|
onAction
|
|
15299
15304
|
}) {
|
|
15300
|
-
const { formatMessage } =
|
|
15305
|
+
const { formatMessage } = useIntl14();
|
|
15301
15306
|
const [filename, setFilename] = useState15(void 0);
|
|
15302
15307
|
const step = {
|
|
15303
15308
|
layout: [
|
|
@@ -15604,7 +15609,7 @@ function RepeatableSchema({
|
|
|
15604
15609
|
setEditableItem({ item: null, model: null });
|
|
15605
15610
|
setOpenModalType(null);
|
|
15606
15611
|
};
|
|
15607
|
-
const { formatMessage } =
|
|
15612
|
+
const { formatMessage } = useIntl15();
|
|
15608
15613
|
const validations = getValidationFailures(model, schema, required);
|
|
15609
15614
|
const base64ValidationMessages = useFormattedDefaultErrorMessages({
|
|
15610
15615
|
minItems: schema.minItems,
|
|
@@ -15820,7 +15825,7 @@ import { useEffect as useEffect12, useMemo as useMemo15, useState as useState18
|
|
|
15820
15825
|
|
|
15821
15826
|
// src/legacy/jsonSchemaForm/help/Help.tsx
|
|
15822
15827
|
import { Markdown as Markdown6, Info as Info2 } from "@transferwise/components";
|
|
15823
|
-
import { useIntl as
|
|
15828
|
+
import { useIntl as useIntl16 } from "react-intl";
|
|
15824
15829
|
|
|
15825
15830
|
// src/common/messages/help.messages.ts
|
|
15826
15831
|
import { defineMessages as defineMessages15 } from "react-intl";
|
|
@@ -15835,7 +15840,7 @@ var help_messages_default2 = defineMessages15({
|
|
|
15835
15840
|
// src/legacy/jsonSchemaForm/help/Help.tsx
|
|
15836
15841
|
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
15837
15842
|
function Help2(props) {
|
|
15838
|
-
const intl =
|
|
15843
|
+
const intl = useIntl16();
|
|
15839
15844
|
return /* @__PURE__ */ jsx88(
|
|
15840
15845
|
Info2,
|
|
15841
15846
|
{
|
|
@@ -15851,7 +15856,7 @@ var Help_default2 = Help2;
|
|
|
15851
15856
|
|
|
15852
15857
|
// src/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.tsx
|
|
15853
15858
|
import { useEffect as useEffect11 } from "react";
|
|
15854
|
-
import { useIntl as
|
|
15859
|
+
import { useIntl as useIntl17 } from "react-intl";
|
|
15855
15860
|
|
|
15856
15861
|
// src/legacy/formControl/FormControl.tsx
|
|
15857
15862
|
import {
|
|
@@ -16569,7 +16574,7 @@ function SchemaFormControl(props) {
|
|
|
16569
16574
|
labelledBy
|
|
16570
16575
|
} = props;
|
|
16571
16576
|
const log = useLogger();
|
|
16572
|
-
const intl =
|
|
16577
|
+
const intl = useIntl17();
|
|
16573
16578
|
const getSanitisedValue = (value2) => isNativeInput(schema.type) && (isNull3(value2) || isUndefined3(value2)) ? "" : value2;
|
|
16574
16579
|
const onModelChange = (value2, type, metadata) => {
|
|
16575
16580
|
onChange(getValidBasicModelOrNull(value2, schema), type, metadata);
|
|
@@ -16812,7 +16817,7 @@ var OneOfSchema_default = OneOfSchema;
|
|
|
16812
16817
|
// src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
|
|
16813
16818
|
var import_classnames12 = __toESM(require_classnames());
|
|
16814
16819
|
import { useEffect as useEffect13, useState as useState19 } from "react";
|
|
16815
|
-
import { useIntl as
|
|
16820
|
+
import { useIntl as useIntl18 } from "react-intl";
|
|
16816
16821
|
|
|
16817
16822
|
// src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.tsx
|
|
16818
16823
|
import { Status as Status2, UploadInput as UploadInput4 } from "@transferwise/components";
|
|
@@ -16879,7 +16884,7 @@ function PersistAsyncBlobSchema(props) {
|
|
|
16879
16884
|
const [persistAsyncValidations, setPersistAsyncValidations] = useState19(null);
|
|
16880
16885
|
const [validations, setValidations] = useState19([]);
|
|
16881
16886
|
const [changed, setChanged] = useState19(false);
|
|
16882
|
-
const intl =
|
|
16887
|
+
const intl = useIntl18();
|
|
16883
16888
|
const httpClient = useHttpClient();
|
|
16884
16889
|
const onEvent = useEventDispatcher();
|
|
16885
16890
|
useEffect13(() => {
|
|
@@ -17125,7 +17130,7 @@ var PromotedOneOfSchema_default = PromotedOneOfSchema;
|
|
|
17125
17130
|
|
|
17126
17131
|
// src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
|
|
17127
17132
|
import { DefinitionList as DefinitionList2, Layout } from "@transferwise/components";
|
|
17128
|
-
import { useIntl as
|
|
17133
|
+
import { useIntl as useIntl19 } from "react-intl";
|
|
17129
17134
|
|
|
17130
17135
|
// src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.ts
|
|
17131
17136
|
import { defineMessages as defineMessages16 } from "react-intl";
|
|
@@ -17146,7 +17151,7 @@ var ReadOnlySchema_messages_default = defineMessages16({
|
|
|
17146
17151
|
import { Fragment as Fragment18, jsx as jsx99, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
17147
17152
|
function ReadOnlySchema({ schema, model }) {
|
|
17148
17153
|
const { title = "" } = schema;
|
|
17149
|
-
const { formatMessage } =
|
|
17154
|
+
const { formatMessage } = useIntl19();
|
|
17150
17155
|
const value = getValueForSchema({ schema, model, formatMessage });
|
|
17151
17156
|
return /* @__PURE__ */ jsx99(DefinitionList2, { layout: Layout.VERTICAL_ONE_COLUMN, definitions: [{ title, value, key: "" }] });
|
|
17152
17157
|
}
|
|
@@ -17647,7 +17652,7 @@ var DynamicLoadingIndicator_default = DynamicLoadingIndicator;
|
|
|
17647
17652
|
|
|
17648
17653
|
// src/legacy/layout/paragraph/DynamicParagraph.tsx
|
|
17649
17654
|
import { Button as Button8 } from "@transferwise/components";
|
|
17650
|
-
import { useIntl as
|
|
17655
|
+
import { useIntl as useIntl20 } from "react-intl";
|
|
17651
17656
|
|
|
17652
17657
|
// src/common/messages/paragraph.messages.ts
|
|
17653
17658
|
import { defineMessages as defineMessages17 } from "react-intl";
|
|
@@ -17687,7 +17692,7 @@ function BasicDynamicParagraph({ component }) {
|
|
|
17687
17692
|
] });
|
|
17688
17693
|
}
|
|
17689
17694
|
function CopyableDynamicParagraph({ component }) {
|
|
17690
|
-
const { formatMessage } =
|
|
17695
|
+
const { formatMessage } = useIntl20();
|
|
17691
17696
|
const createSnackbar = useSnackBarIfAvailable2();
|
|
17692
17697
|
const { text } = component;
|
|
17693
17698
|
const copy = () => {
|
|
@@ -17802,7 +17807,7 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
|
|
|
17802
17807
|
|
|
17803
17808
|
// src/legacy/layout/search/SearchResults.tsx
|
|
17804
17809
|
import { NavigationOption as NavigationOption7, NavigationOptionsList as NavigationOptionsList4 } from "@transferwise/components";
|
|
17805
|
-
import { useIntl as
|
|
17810
|
+
import { useIntl as useIntl21 } from "react-intl";
|
|
17806
17811
|
import { jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17807
17812
|
function SearchResults2({ results, emptyMessage, onSelect }) {
|
|
17808
17813
|
if (results.length === 0) {
|
|
@@ -17822,7 +17827,7 @@ function SearchResults2({ results, emptyMessage, onSelect }) {
|
|
|
17822
17827
|
)) });
|
|
17823
17828
|
}
|
|
17824
17829
|
function ErrorResult2({ onRetrySearch }) {
|
|
17825
|
-
const intl =
|
|
17830
|
+
const intl = useIntl21();
|
|
17826
17831
|
return /* @__PURE__ */ jsxs42("p", { className: "m-t-2", children: [
|
|
17827
17832
|
intl.formatMessage(generic_error_messages_default.genericError),
|
|
17828
17833
|
"\xA0",
|
|
@@ -17912,12 +17917,12 @@ var addQueryParameter2 = (url, key, value) => {
|
|
|
17912
17917
|
// src/legacy/layout/search/DynamicSearch.tsx
|
|
17913
17918
|
var import_classnames14 = __toESM(require_classnames());
|
|
17914
17919
|
import { Markdown as Markdown8, Typeahead as Typeahead2 } from "@transferwise/components";
|
|
17915
|
-
import { useIntl as
|
|
17920
|
+
import { useIntl as useIntl22 } from "react-intl";
|
|
17916
17921
|
import { jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
17917
17922
|
var DEBOUNCE_TIME2 = 400;
|
|
17918
17923
|
function DynamicSearch({ component, onAction }) {
|
|
17919
17924
|
const [query, setQuery] = useState24("");
|
|
17920
|
-
const intl =
|
|
17925
|
+
const intl = useIntl22();
|
|
17921
17926
|
const { control, title, margin, url, method, param, emptyMessage } = component;
|
|
17922
17927
|
const { status, results, search } = useSearch({ url, method, param });
|
|
17923
17928
|
const onEvent = useEventDispatcher();
|
|
@@ -18194,7 +18199,7 @@ var controlTypesWithPersistOnChange = /* @__PURE__ */ new Set([
|
|
|
18194
18199
|
]);
|
|
18195
18200
|
function PersistAsyncBasicSchema(props) {
|
|
18196
18201
|
const { schema, required, submitted, errors, onChange, onPersistAsync } = props;
|
|
18197
|
-
const intl =
|
|
18202
|
+
const intl = useIntl23();
|
|
18198
18203
|
const httpClient = useHttpClient();
|
|
18199
18204
|
const onEvent = useEventDispatcher();
|
|
18200
18205
|
const [persistAsyncModel, setPersistAsyncModel] = useState27(null);
|
|
@@ -18292,7 +18297,7 @@ var PersistAsyncBasicSchema_default = PersistAsyncBasicSchema;
|
|
|
18292
18297
|
var usePersistAsync = (persistAsync) => {
|
|
18293
18298
|
const [abortController, setAbortController] = useState28(null);
|
|
18294
18299
|
const httpClient = useHttpClient();
|
|
18295
|
-
const intl =
|
|
18300
|
+
const intl = useIntl24();
|
|
18296
18301
|
const { schema } = persistAsync;
|
|
18297
18302
|
async function handlePersistAsync(model) {
|
|
18298
18303
|
const isInvalidSchema = model instanceof Blob ? !isBlobSchema2(schema) : !isValidSchema(model, schema);
|
|
@@ -18523,7 +18528,7 @@ import { useEffect as useEffect25, useState as useState31 } from "react";
|
|
|
18523
18528
|
|
|
18524
18529
|
// src/common/cameraCapture/CameraCapture.tsx
|
|
18525
18530
|
import { useCallback as useCallback10, useEffect as useEffect24, useMemo as useMemo21, useRef as useRef8, useState as useState30 } from "react";
|
|
18526
|
-
import { useIntl as
|
|
18531
|
+
import { useIntl as useIntl27 } from "react-intl";
|
|
18527
18532
|
import Webcam from "react-webcam";
|
|
18528
18533
|
|
|
18529
18534
|
// src/common/cameraCapture/CameraCapture.messages.ts
|
|
@@ -18588,14 +18593,14 @@ var CameraCapture_messages_default = defineMessages18({
|
|
|
18588
18593
|
|
|
18589
18594
|
// src/common/cameraCapture/components/bottomBar/BottomBar.tsx
|
|
18590
18595
|
import { Button as Button10, ControlType, Priority, Size as Size3 } from "@transferwise/components";
|
|
18591
|
-
import { useIntl as
|
|
18596
|
+
import { useIntl as useIntl25 } from "react-intl";
|
|
18592
18597
|
import { jsx as jsx119, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
18593
18598
|
var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ jsx119("div", { className: "bottom-bar", children: /* @__PURE__ */ jsx119(CaptureButton, { onClick: onCapture }) });
|
|
18594
18599
|
var ReviewBottomBar = ({
|
|
18595
18600
|
onSubmit,
|
|
18596
18601
|
onRetry
|
|
18597
18602
|
}) => {
|
|
18598
|
-
const intl =
|
|
18603
|
+
const intl = useIntl25();
|
|
18599
18604
|
return /* @__PURE__ */ jsx119("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ jsx119("div", { className: "row", children: /* @__PURE__ */ jsxs46("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
|
|
18600
18605
|
/* @__PURE__ */ jsx119(
|
|
18601
18606
|
Button10,
|
|
@@ -18634,7 +18639,7 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ jsx119(
|
|
|
18634
18639
|
);
|
|
18635
18640
|
|
|
18636
18641
|
// src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
|
|
18637
|
-
import { useIntl as
|
|
18642
|
+
import { useIntl as useIntl26 } from "react-intl";
|
|
18638
18643
|
|
|
18639
18644
|
// src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
|
|
18640
18645
|
import { defineMessages as defineMessages19 } from "react-intl";
|
|
@@ -18649,7 +18654,7 @@ var OrientationLockOverlay_messages_default = defineMessages19({
|
|
|
18649
18654
|
// src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
|
|
18650
18655
|
import { jsx as jsx120, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
18651
18656
|
function OrientationLockOverlay() {
|
|
18652
|
-
const intl =
|
|
18657
|
+
const intl = useIntl26();
|
|
18653
18658
|
return /* @__PURE__ */ jsxs47("div", { className: "orientation-lock-overlay", children: [
|
|
18654
18659
|
/* @__PURE__ */ jsx120(
|
|
18655
18660
|
"img",
|
|
@@ -18939,7 +18944,7 @@ function CameraCapture({
|
|
|
18939
18944
|
shouldLockOrientation,
|
|
18940
18945
|
onEvent
|
|
18941
18946
|
);
|
|
18942
|
-
const intl =
|
|
18947
|
+
const intl = useIntl27();
|
|
18943
18948
|
const handleCapture = useCallback10(async () => {
|
|
18944
18949
|
var _a, _b, _c, _d, _e, _f;
|
|
18945
18950
|
if (((_a = webcamReference == null ? void 0 : webcamReference.current) == null ? void 0 : _a.video) && ((_c = (_b = webcamReference == null ? void 0 : webcamReference.current) == null ? void 0 : _b.video) == null ? void 0 : _c.readyState) >= 3) {
|
|
@@ -19162,7 +19167,7 @@ function getFirstAction(step) {
|
|
|
19162
19167
|
}
|
|
19163
19168
|
|
|
19164
19169
|
// src/legacy/step/externalConfirmationStep/ExternalConfirmationStep.tsx
|
|
19165
|
-
import { useIntl as
|
|
19170
|
+
import { useIntl as useIntl28 } from "react-intl";
|
|
19166
19171
|
|
|
19167
19172
|
// src/common/messages/external-confirmation.messages.ts
|
|
19168
19173
|
import { defineMessages as defineMessages20 } from "react-intl";
|
|
@@ -19194,7 +19199,7 @@ import { jsx as jsx125 } from "react/jsx-runtime";
|
|
|
19194
19199
|
var noop6 = () => {
|
|
19195
19200
|
};
|
|
19196
19201
|
function ExternalConfirmationStep({ url, onClose }) {
|
|
19197
|
-
const { formatMessage } =
|
|
19202
|
+
const { formatMessage } = useIntl28();
|
|
19198
19203
|
return /* @__PURE__ */ jsx125(
|
|
19199
19204
|
DynamicLayout_default,
|
|
19200
19205
|
{
|
|
@@ -19567,9 +19572,9 @@ var assertResponseIsValid2 = (response) => {
|
|
|
19567
19572
|
var isResponse2 = (response) => typeof response === "object" && response !== null && "clone" in response && "bodyUsed" in response;
|
|
19568
19573
|
|
|
19569
19574
|
// src/legacy/dynamicFlow/utils/useErrorResponse.tsx
|
|
19570
|
-
import { useIntl as
|
|
19575
|
+
import { useIntl as useIntl29 } from "react-intl";
|
|
19571
19576
|
var useErrorResponse = () => {
|
|
19572
|
-
const { formatMessage } =
|
|
19577
|
+
const { formatMessage } = useIntl29();
|
|
19573
19578
|
return async (response, fetchType, isInitialRequest) => {
|
|
19574
19579
|
try {
|
|
19575
19580
|
const errorResponse = await parseErrorResponse(response);
|
|
@@ -19613,7 +19618,7 @@ var DynamicFlowComponent = ({
|
|
|
19613
19618
|
setSchemaModel
|
|
19614
19619
|
} = useDynamicFlowState(initialStep);
|
|
19615
19620
|
const [submitted, setSubmitted] = useState34(false);
|
|
19616
|
-
const { locale } =
|
|
19621
|
+
const { locale } = useIntl30();
|
|
19617
19622
|
const { isLoading, loader, setLoadingState } = useLoader(
|
|
19618
19623
|
loaderConfig,
|
|
19619
19624
|
initialStep ? "idle" : "initial"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { LogLevel, LogEventHandler } from '../../../dynamic-flow-types';
|
|
3
2
|
export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation warning' | 'Deprecated schema' | 'Error fetching';
|
|
4
3
|
type LogFunction = (title: LogTitle, description: string, extra?: Record<string, unknown>) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function isStatus2xx(status: Response['status']): boolean;
|
|
2
|
-
export declare function isStatus422(status: Response['status']):
|
|
2
|
+
export declare function isStatus422(status: Response['status']): status is 422;
|
|
@@ -13,5 +13,5 @@ type ParsedBody = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const parseFetchResponse: (response: Response) => Promise<ParsedBody>;
|
|
15
15
|
export declare const parseErrorResponse: (response: Response) => Promise<ErrorResponseBody>;
|
|
16
|
-
export declare const getJsonObjectOrNull: (response: Response) => Promise<Parameters<DynamicFlowProps[
|
|
16
|
+
export declare const getJsonObjectOrNull: (response: Response) => Promise<Parameters<DynamicFlowProps["onCompletion"]>[0]>;
|
|
17
17
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ErrorResponseBody } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const useErrorResponse: () => (response: Response, fetchType:
|
|
2
|
+
export declare const useErrorResponse: () => (response: Response, fetchType: "refresh" | "submission", isInitialRequest: boolean) => Promise<ErrorResponseBody>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DynamicFlowProps } from '../../dynamic-flow-types';
|
|
3
2
|
type LoadingState = 'idle' | 'initial' | 'refresh' | 'submission';
|
|
4
3
|
export declare function useLoader(loaderConfig: DynamicFlowProps['loaderConfig'], initialState: LoadingState): {
|
|
@@ -49,7 +49,7 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
|
|
|
49
49
|
prefix?: string | undefined;
|
|
50
50
|
suffix?: string | undefined;
|
|
51
51
|
}) => string;
|
|
52
|
-
handleOnChange: (value: string | number | boolean | null, metadata?: OnChangeProps[
|
|
52
|
+
handleOnChange: (value: string | number | boolean | null, metadata?: OnChangeProps["metadata"]) => void;
|
|
53
53
|
handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
54
54
|
handleOnFocus: () => void;
|
|
55
55
|
handleOnBlur: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ArraySchema, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
2
|
import type { ItemSummary } from '../ItemSummary';
|
|
3
|
-
export declare const getItemSummaryFromSchema: (schema: Schema, model: Model | null, defaults?: ArraySchema[
|
|
3
|
+
export declare const getItemSummaryFromSchema: (schema: Schema, model: Model | null, defaults?: ArraySchema["summary"], summaryTextOverride?: string) => ItemSummary;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Icon, Image, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
declare const mapConstSchemaToOption: <ControlType extends string>(schema: Schema, controlType?: ControlType) => ControlType extends
|
|
2
|
+
declare const mapConstSchemaToOption: <ControlType extends string>(schema: Schema, controlType?: ControlType) => ControlType extends "select" ? SelectOption : RadioOption;
|
|
3
3
|
type RadioOption = {
|
|
4
4
|
disabled?: boolean | undefined;
|
|
5
5
|
avatar?: JSX.Element | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DynamicFlowCoreProps, DynamicFragmentController } from './types';
|
|
3
2
|
import type { OnValueChange } from './domain/types';
|
|
4
3
|
/**
|
|
@@ -7,6 +6,6 @@ import type { OnValueChange } from './domain/types';
|
|
|
7
6
|
* @experimental This component may be changed in the future without notice.
|
|
8
7
|
*/
|
|
9
8
|
export declare const DynamicFragmentCore: import("react").ForwardRefExoticComponent<Omit<DynamicFlowCoreProps, "onCompletion"> & {
|
|
10
|
-
onValueChange?: OnValueChange
|
|
11
|
-
onCompletion?:
|
|
9
|
+
onValueChange?: OnValueChange;
|
|
10
|
+
onCompletion?: DynamicFlowCoreProps["onCompletion"];
|
|
12
11
|
} & import("react").RefAttributes<DynamicFragmentController>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DynamicFlowWiseProps, DynamicFragmentController } from './types';
|
|
3
2
|
/** @deprecated This component is deprecated. Please use `DynamicFragment` from `@wise/dynamic-flow-client-internal` instead. */
|
|
4
3
|
declare const DynamicFragmentWise: import("react").ForwardRefExoticComponent<Omit<DynamicFlowWiseProps, "onCompletion"> & {
|
|
5
|
-
onValueChange?: (
|
|
6
|
-
onCompletion?:
|
|
4
|
+
onValueChange?: () => void;
|
|
5
|
+
onCompletion?: DynamicFlowWiseProps["onCompletion"];
|
|
7
6
|
} & import("react").RefAttributes<DynamicFragmentController>>;
|
|
8
7
|
export default DynamicFragmentWise;
|
|
@@ -17,4 +17,4 @@ export type AlertCallToAction = {
|
|
|
17
17
|
title: string;
|
|
18
18
|
onClick: () => void;
|
|
19
19
|
};
|
|
20
|
-
export declare const createAlertComponent: (alertProps: Pick<AlertComponent,
|
|
20
|
+
export declare const createAlertComponent: (alertProps: Pick<AlertComponent, "uid" | "callToAction" | "context" | "control" | "margin" | "markdown">) => AlertComponent;
|
|
@@ -11,7 +11,7 @@ export type AllOfComponent = BaseComponent & {
|
|
|
11
11
|
getChildren: () => DomainComponent[];
|
|
12
12
|
getLocalValue: () => LocalValue;
|
|
13
13
|
};
|
|
14
|
-
export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent,
|
|
14
|
+
export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "control" | "description" | "components" | "title" | "help" | "hidden"> & {
|
|
15
15
|
uid: string;
|
|
16
16
|
analyticsId?: string;
|
|
17
17
|
summariser: (value: Model | null) => RepeatableSummary;
|
|
@@ -8,7 +8,7 @@ export type BooleanInputComponent = InputComponent<boolean> & {
|
|
|
8
8
|
validationState: ValidationState;
|
|
9
9
|
onChange: (value: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent,
|
|
11
|
+
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "uid" | "id" | "analyticsId" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "persistedState" | "required" | "title" | "value" | "validationState"> & {
|
|
12
12
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
13
13
|
performRefresh: PerformRefresh | undefined;
|
|
14
14
|
performValidationAsync: PerformValidationAsync | undefined;
|
|
@@ -7,4 +7,4 @@ export type BoxComponent = LayoutComponent & {
|
|
|
7
7
|
components: DomainComponent[];
|
|
8
8
|
getChildren: () => DomainComponent[];
|
|
9
9
|
};
|
|
10
|
-
export declare const createBoxComponent: (boxProps: Pick<BoxComponent,
|
|
10
|
+
export declare const createBoxComponent: (boxProps: Pick<BoxComponent, "uid" | "border" | "components" | "control" | "margin" | "width">) => BoxComponent;
|
|
@@ -9,4 +9,4 @@ export type ButtonComponent = LayoutComponent & {
|
|
|
9
9
|
title: string;
|
|
10
10
|
onClick: () => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const createButtonComponent: (buttonProps: Pick<ButtonComponent,
|
|
12
|
+
export declare const createButtonComponent: (buttonProps: Pick<ButtonComponent, "uid" | "context" | "control" | "disabled" | "margin" | "onClick" | "pinOrder" | "size" | "title">) => ButtonComponent;
|