@bolttech/form-engine 3.0.0-beta.20 → 3.0.0-beta.22

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.
Files changed (2) hide show
  1. package/index.esm.js +9 -0
  2. package/package.json +2 -2
package/index.esm.js CHANGED
@@ -2467,6 +2467,7 @@ const Form = ({
2467
2467
  const formInstance = new FormCore({
2468
2468
  schema,
2469
2469
  initialValues: initialValues || (schema === null || schema === void 0 ? void 0 : schema.initialValues),
2470
+ iVars: iVars || (schema === null || schema === void 0 ? void 0 : schema.iVars),
2470
2471
  action: action || (schema === null || schema === void 0 ? void 0 : schema.action),
2471
2472
  method: method || (schema === null || schema === void 0 ? void 0 : schema.method),
2472
2473
  index: schemaIndex,
@@ -2569,6 +2570,14 @@ const Form = ({
2569
2570
  })) === null || _a === void 0 ? void 0 : _a.printValues();
2570
2571
  },
2571
2572
  children: "print values"
2573
+ }), jsx("button", {
2574
+ onClick: () => {
2575
+ var _a;
2576
+ return (_a = getForm({
2577
+ key: schemaIndex
2578
+ })) === null || _a === void 0 ? void 0 : _a.submit();
2579
+ },
2580
+ children: "try submit"
2572
2581
  }), jsx("br", {}), jsx("hr", {})]
2573
2582
  }), jsx("form", {
2574
2583
  onSubmit: handleSubmit,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.22",
4
4
  "description": "A react adapter for bolttech form engine",
5
5
  "module": "./index.esm.js",
6
6
  "type": "module",
7
7
  "main": "./index.esm.js",
8
8
  "dependencies": {
9
- "@bolttech/form-engine-core": "0.0.1-beta.11",
9
+ "@bolttech/form-engine-core": "0.0.1-beta.13",
10
10
  "react": "18.2.0"
11
11
  },
12
12
  "peerDependencies": {}