@coding-flow/flow-mobile-approval 0.0.45 → 0.0.47

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.
@@ -8,6 +8,7 @@ const FormViewComponent = (props)=>{
8
8
  const { state, context } = useApprovalContext();
9
9
  const review = state.review || false;
10
10
  const ViewComponent = ViewBindPlugin.getInstance().get(state.flow?.view || 'default') || FlowFormView;
11
+ const viewCode = state.flow?.code;
11
12
  const flowForm = state.flow?.form;
12
13
  const fieldPermissions = state.flow?.fieldPermissions || [];
13
14
  const formMeta = react.useMemo(()=>context.convertMeta(flowForm || void 0, fieldPermissions), [
@@ -56,7 +57,8 @@ const FormViewComponent = (props)=>{
56
57
  meta: formMeta,
57
58
  formList: formList,
58
59
  onValuesChange: props.onValuesChange,
59
- onMergeRecordIdsSelected: handleMergeRecordIdsSelected
60
+ onMergeRecordIdsSelected: handleMergeRecordIdsSelected,
61
+ viewCode: viewCode
60
62
  });
61
63
  return /*#__PURE__*/ jsx(Fragment, {
62
64
  children: formList.map((item, index)=>/*#__PURE__*/ jsx(ViewComponent, {
@@ -67,7 +69,8 @@ const FormViewComponent = (props)=>{
67
69
  review: review,
68
70
  meta: formMeta,
69
71
  form: item.form,
70
- onValuesChange: props.onValuesChange
72
+ onValuesChange: props.onValuesChange,
73
+ viewCode: viewCode
71
74
  }, index))
72
75
  });
73
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-mobile-approval",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "flow-engine pc mobile approval components",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -39,19 +39,19 @@
39
39
  "dayjs": "^1.11.19",
40
40
  "immer": "^11.1.3",
41
41
  "react-redux": "^9.2.0",
42
- "@coding-flow/flow-core": "0.0.45",
43
- "@coding-flow/flow-types": "0.0.45",
44
- "@coding-flow/flow-icons": "0.0.45",
45
- "@coding-flow/flow-approval-presenter": "0.0.45",
46
- "@coding-flow/flow-mobile-ui": "0.0.45",
47
- "@coding-flow/flow-mobile-form": "0.0.45"
42
+ "@coding-flow/flow-core": "0.0.47",
43
+ "@coding-flow/flow-icons": "0.0.47",
44
+ "@coding-flow/flow-mobile-ui": "0.0.47",
45
+ "@coding-flow/flow-approval-presenter": "0.0.47",
46
+ "@coding-flow/flow-types": "0.0.47",
47
+ "@coding-flow/flow-mobile-form": "0.0.47"
48
48
  },
49
49
  "devDependencies": {
50
- "@coding-flow/flow-types": "0.0.45",
51
- "@coding-flow/flow-approval-presenter": "0.0.45",
52
- "@coding-flow/flow-mobile-form": "0.0.45",
53
- "@coding-flow/flow-core": "0.0.45",
54
- "@coding-flow/flow-mobile-ui": "0.0.45"
50
+ "@coding-flow/flow-core": "0.0.47",
51
+ "@coding-flow/flow-approval-presenter": "0.0.47",
52
+ "@coding-flow/flow-mobile-ui": "0.0.47",
53
+ "@coding-flow/flow-mobile-form": "0.0.47",
54
+ "@coding-flow/flow-types": "0.0.47"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "rslib build",