@wise/dynamic-flow-client 4.8.2 → 4.8.4

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
@@ -5732,7 +5732,6 @@ var createPersistAsyncComponent = (props, performPersistAsync, schemaOnChange, u
5732
5732
  // src/revamp/domain/mappers/schema/persistAsyncSchemaToComponent.ts
5733
5733
  var isSupported = (type) => ["boolean", "text", "date", "integer", "number", "upload"].includes(type);
5734
5734
  var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
5735
- var _a;
5736
5735
  const { uid, schema, model, localValue } = schemaMapperProps;
5737
5736
  const { persistAsync } = schema;
5738
5737
  const performPersistAsync = getPerformPersistAsyncFn(schema, persistAsync, mapperProps);
@@ -5749,7 +5748,10 @@ var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
5749
5748
  const paComponent = createPersistAsyncComponent(
5750
5749
  {
5751
5750
  uid,
5752
- hidden: (_a = schema.hidden) != null ? _a : false,
5751
+ // This should be `schema.hidden ?? false`
5752
+ // but some steps are setting PA schemas as hidden for no good reason
5753
+ // so we default to false here to avoid hiding the the children of the PA component
5754
+ hidden: false,
5753
5755
  component: childComponent,
5754
5756
  schemaId: schema.$id,
5755
5757
  model,
package/build/main.mjs CHANGED
@@ -5689,7 +5689,6 @@ var createPersistAsyncComponent = (props, performPersistAsync, schemaOnChange, u
5689
5689
  // src/revamp/domain/mappers/schema/persistAsyncSchemaToComponent.ts
5690
5690
  var isSupported = (type) => ["boolean", "text", "date", "integer", "number", "upload"].includes(type);
5691
5691
  var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
5692
- var _a;
5693
5692
  const { uid, schema, model, localValue } = schemaMapperProps;
5694
5693
  const { persistAsync } = schema;
5695
5694
  const performPersistAsync = getPerformPersistAsyncFn(schema, persistAsync, mapperProps);
@@ -5706,7 +5705,10 @@ var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
5706
5705
  const paComponent = createPersistAsyncComponent(
5707
5706
  {
5708
5707
  uid,
5709
- hidden: (_a = schema.hidden) != null ? _a : false,
5708
+ // This should be `schema.hidden ?? false`
5709
+ // but some steps are setting PA schemas as hidden for no good reason
5710
+ // so we default to false here to avoid hiding the the children of the PA component
5711
+ hidden: false,
5710
5712
  component: childComponent,
5711
5713
  schemaId: schema.$id,
5712
5714
  model,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.8.2",
3
+ "version": "4.8.4",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -95,7 +95,7 @@
95
95
  "classnames": "2.5.1",
96
96
  "react-webcam": "^7.2.0",
97
97
  "screenfull": "^5.2.0",
98
- "@wise/dynamic-flow-types": "3.6.1"
98
+ "@wise/dynamic-flow-types": "3.6.2"
99
99
  },
100
100
  "scripts": {
101
101
  "dev": "pnpm build:visual-tests && storybook dev -p 3003",