@bigbinary/neeto-form-frontend 1.2.20 → 1.2.21

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/README.md CHANGED
@@ -7,6 +7,7 @@ The `neeto-form-nano` allows us to build forms within neeto applications. This n
7
7
  - [Engine](#engine)
8
8
  - [Frontend package](#frontend-package)
9
9
  - [Installation](#installation-1)
10
+ - [Instructions for development](#instructions-for-development)
10
11
  - [Usage](#usage)
11
12
  2. [Instructions for Publishing](#instructions-for-publishing)
12
13
 
@@ -99,6 +100,10 @@ the below command:
99
100
  @import "@bigbinary/neeto-form-frontend/dist/main.css";
100
101
  ```
101
102
 
103
+ ### Instructions for development
104
+
105
+ Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the frontend package.
106
+
102
107
  ### Usage
103
108
 
104
109
  You can learn more about the usage here:
package/dist/index.cjs.js CHANGED
@@ -10065,7 +10065,7 @@ var Accordion = function Accordion(_ref) {
10065
10065
  }, label)), /*#__PURE__*/React__default["default"].createElement("div", {
10066
10066
  className: "neeto-form-engine-question-accordion__header-action-block flex items-center gap-2"
10067
10067
  }, /*#__PURE__*/React__default["default"].createElement("button", {
10068
- className: "outline-none flex items-center justify-center border-0 bg-transparent",
10068
+ className: "flex items-center justify-center border-0 bg-transparent outline-none",
10069
10069
  type: "button",
10070
10070
  onClick: onToggle
10071
10071
  }, isExpanded ? /*#__PURE__*/React__default["default"].createElement(neetoIcons.Up, null) : /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, null)), (onDuplicate || shouldShowDeleteOption) && /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
@@ -10073,7 +10073,7 @@ var Accordion = function Accordion(_ref) {
10073
10073
  position: "bottom-end",
10074
10074
  customTarget: function customTarget() {
10075
10075
  return /*#__PURE__*/React__default["default"].createElement("button", {
10076
- className: "outline-none flex items-center justify-center border-0 bg-transparent",
10076
+ className: "flex items-center justify-center border-0 bg-transparent outline-none",
10077
10077
  type: "button"
10078
10078
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.MenuHorizontal, null));
10079
10079
  }
@@ -15973,7 +15973,8 @@ var generateInitValues = function generateInitValues(_ref7) {
15973
15973
  initialValues = _ref7$initialValues === void 0 ? [] : _ref7$initialValues,
15974
15974
  _ref7$localValues = _ref7.localValues,
15975
15975
  localValues = _ref7$localValues === void 0 ? {} : _ref7$localValues,
15976
- fieldCodes = _ref7.fieldCodes;
15976
+ _ref7$fieldCodes = _ref7.fieldCodes,
15977
+ fieldCodes = _ref7$fieldCodes === void 0 ? {} : _ref7$fieldCodes;
15977
15978
  var initValues = {};
15978
15979
  var valuesMap = {};
15979
15980
  if (initialValues) {
@@ -27112,7 +27113,9 @@ var ExternalForm = function ExternalForm(_ref) {
27112
27113
  var _editorRef$current, _formDomProps$onReset;
27113
27114
  if (clearValuesOnReset) {
27114
27115
  clearLocalStorageValues("".concat(formId, "/values"));
27115
- setLocalValues(generateInitValues(questions));
27116
+ setLocalValues(generateInitValues({
27117
+ questions: questions
27118
+ }));
27116
27119
  submissionId && queryClient.setQueryData([QUERY_KEYS.SUBMISSION, formId, submissionId], {
27117
27120
  responses: []
27118
27121
  });