@wise/dynamic-flow-client 3.16.1 → 3.16.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/build/main.js CHANGED
@@ -12982,9 +12982,10 @@ var useHasHttpClientProvider = () => {
12982
12982
  var import_jsx_runtime61 = require("react/jsx-runtime");
12983
12983
  var wiseRenderers2 = getWiseRenderers();
12984
12984
  var DynamicFragmentWise = (0, import_react22.forwardRef)(function DynamicFragmentWise2(props, ref) {
12985
- const { httpClient, onEvent, onError, renderers } = props;
12985
+ const { httpClient, onCompletion = () => {
12986
+ }, onEvent, onError, renderers } = props;
12986
12987
  const mergedRenderers = (0, import_react22.useMemo)(() => [...renderers != null ? renderers : [], ...wiseRenderers2], [renderers]);
12987
- const { stepComponentRef } = useDynamicFlowCore(props);
12988
+ const { stepComponentRef } = useDynamicFlowCore(__spreadValues({ onCompletion }, props));
12988
12989
  (0, import_react22.useImperativeHandle)(
12989
12990
  ref,
12990
12991
  () => ({
@@ -13021,8 +13022,9 @@ var DynamicFragmentWise_default = DynamicFragmentWise;
13021
13022
  var import_react23 = require("react");
13022
13023
  var import_jsx_runtime62 = require("react/jsx-runtime");
13023
13024
  var DynamicFragmentCore = (0, import_react23.forwardRef)(function DynamicFragmentCore2(props, ref) {
13024
- const { onEvent, onError, renderers } = props;
13025
- const { stepComponentRef } = useDynamicFlowCore(props);
13025
+ const { onCompletion = () => {
13026
+ }, onEvent, onError, renderers } = props;
13027
+ const { stepComponentRef } = useDynamicFlowCore(__spreadValues({ onCompletion }, props));
13026
13028
  (0, import_react23.useImperativeHandle)(
13027
13029
  ref,
13028
13030
  () => ({
@@ -16524,8 +16526,12 @@ var getControlType = (schema) => {
16524
16526
  };
16525
16527
  var getStringSchemaControlType = ({
16526
16528
  format,
16527
- control
16529
+ control,
16530
+ displayFormat
16528
16531
  }) => {
16532
+ if (displayFormat) {
16533
+ return "text";
16534
+ }
16529
16535
  if (control) {
16530
16536
  return stringControlToFormControlType[control] || control;
16531
16537
  }