@wise/dynamic-flow-client 4.19.2 → 4.19.3-experimental-ebee37a

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
@@ -7525,10 +7525,11 @@ var className = "dynamic-flow";
7525
7525
  function DynamicFlowCore(props) {
7526
7526
  var _a;
7527
7527
  const { flowId, renderers, httpClient, onEvent, onError, onLog } = props;
7528
+ const normalisedFlowId = flowId.replaceAll(" ", "-");
7528
7529
  const { rootComponent } = useDynamicFlowCore(__spreadProps(__spreadValues({}, props), {
7529
7530
  scrollToTop: (behavior) => {
7530
7531
  var _a2;
7531
- const element = document.querySelector(`div#${flowId}.${className}`);
7532
+ const element = document.querySelector(`div#${normalisedFlowId}.${className}`);
7532
7533
  (_a2 = element == null ? void 0 : element.scrollIntoView) == null ? void 0 : _a2.call(element, { behavior });
7533
7534
  }
7534
7535
  }));
@@ -7551,7 +7552,7 @@ function DynamicFlowCore(props) {
7551
7552
  onError == null ? void 0 : onError(error);
7552
7553
  onLog == null ? void 0 : onLog("error", "Dynamic Flow - ErrorBoundary", { errorMessage: getErrorMessage(error) });
7553
7554
  },
7554
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { id: flowId, className, children: render(tree) })
7555
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { id: normalisedFlowId, className, children: render(tree) })
7555
7556
  }
7556
7557
  );
7557
7558
  }
package/build/main.mjs CHANGED
@@ -7482,10 +7482,11 @@ var className = "dynamic-flow";
7482
7482
  function DynamicFlowCore(props) {
7483
7483
  var _a;
7484
7484
  const { flowId, renderers, httpClient, onEvent, onError, onLog } = props;
7485
+ const normalisedFlowId = flowId.replaceAll(" ", "-");
7485
7486
  const { rootComponent } = useDynamicFlowCore(__spreadProps(__spreadValues({}, props), {
7486
7487
  scrollToTop: (behavior) => {
7487
7488
  var _a2;
7488
- const element = document.querySelector(`div#${flowId}.${className}`);
7489
+ const element = document.querySelector(`div#${normalisedFlowId}.${className}`);
7489
7490
  (_a2 = element == null ? void 0 : element.scrollIntoView) == null ? void 0 : _a2.call(element, { behavior });
7490
7491
  }
7491
7492
  }));
@@ -7508,7 +7509,7 @@ function DynamicFlowCore(props) {
7508
7509
  onError == null ? void 0 : onError(error);
7509
7510
  onLog == null ? void 0 : onLog("error", "Dynamic Flow - ErrorBoundary", { errorMessage: getErrorMessage(error) });
7510
7511
  },
7511
- children: /* @__PURE__ */ jsx6("div", { id: flowId, className, children: render(tree) })
7512
+ children: /* @__PURE__ */ jsx6("div", { id: normalisedFlowId, className, children: render(tree) })
7512
7513
  }
7513
7514
  );
7514
7515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.19.2",
3
+ "version": "4.19.3-experimental-ebee37a",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -79,8 +79,8 @@
79
79
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
80
80
  "tsx": "4.20.6",
81
81
  "typescript": "5.9.3",
82
- "@wise/dynamic-flow-renderers": "0.0.0",
83
- "@wise/dynamic-flow-fixtures": "0.0.1"
82
+ "@wise/dynamic-flow-fixtures": "0.0.1",
83
+ "@wise/dynamic-flow-renderers": "0.0.0"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@transferwise/components": "^46.104.0",