@digigov/form 0.10.1 → 0.10.3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @digigov/form
2
2
 
3
- This log was last generated on Wed, 19 Oct 2022 14:25:05 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Nov 2022 12:13:21 GMT and should not be manually modified.
4
+
5
+ ## 0.10.3
6
+ Wed, 02 Nov 2022 12:13:21 GMT
7
+
8
+ ### Patches
9
+
10
+ - Add missing types in FieldSpec
11
+
12
+ ## 0.10.2
13
+ Tue, 01 Nov 2022 11:34:42 GMT
14
+
15
+ ### Patches
16
+
17
+ - Fix i18n support for caption in StepTitle'
4
18
 
5
19
  ## 0.10.1
6
20
  Wed, 19 Oct 2022 14:25:05 GMT
@@ -40,7 +40,7 @@ var StepTitleBase = function StepTitleBase(_ref) {
40
40
  var _useTranslation = (0, _i18n.useTranslation)(),
41
41
  t = _useTranslation.t;
42
42
 
43
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref2, /*#__PURE__*/_react["default"].createElement(_PageTitle["default"], null, children || /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleSection, null, /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleCaption, null, caption), step && /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleCaption, null, step)), /*#__PURE__*/_react["default"].createElement(StepTitleHeading, null, title && t(title)))));
43
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref2, /*#__PURE__*/_react["default"].createElement(_PageTitle["default"], null, children || /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleSection, null, /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleCaption, null, step)), /*#__PURE__*/_react["default"].createElement(StepTitleHeading, null, title && t(title)))));
44
44
  };
45
45
  /**
46
46
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -18,7 +18,7 @@ export var StepTitleBase = function StepTitleBase(_ref) {
18
18
  var _useTranslation = useTranslation(),
19
19
  t = _useTranslation.t;
20
20
 
21
- return /*#__PURE__*/React.createElement(React.Fragment, null, _ref2, /*#__PURE__*/React.createElement(PageTitle, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleSection, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step)), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
21
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _ref2, /*#__PURE__*/React.createElement(PageTitle, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleSection, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step)), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
22
22
  };
23
23
  /**
24
24
  * The StepTitle component accepts a title, a caption and a step indicator
@@ -18,7 +18,7 @@ export var StepTitleBase = function StepTitleBase(_ref) {
18
18
  var _useTranslation = useTranslation(),
19
19
  t = _useTranslation.t;
20
20
 
21
- return /*#__PURE__*/React.createElement(React.Fragment, null, _ref2, /*#__PURE__*/React.createElement(PageTitle, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleSection, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step)), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
21
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _ref2, /*#__PURE__*/React.createElement(PageTitle, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageTitleSection, null, /*#__PURE__*/React.createElement(PageTitleCaption, null, caption && t(caption)), step && /*#__PURE__*/React.createElement(PageTitleCaption, null, step)), /*#__PURE__*/React.createElement(StepTitleHeading, null, title && t(title)))));
22
22
  };
23
23
  /**
24
24
  * The StepTitle component accepts a title, a caption and a step indicator
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.10.1
1
+ /** @license Digigov v0.10.3
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -18,7 +18,7 @@
18
18
  "@hookform/resolvers": "2.9.6"
19
19
  },
20
20
  "peerDependencies": {
21
- "@digigov/ui": "0.27.0",
21
+ "@digigov/ui": "0.27.1",
22
22
  "@digigov/react-core": "0.17.0",
23
23
  "@digigov/react-extensions": "0.19.0",
24
24
  "clsx": "1.1.1",
package/types.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface FieldCondition {
17
17
  }
18
18
  export interface FieldSpec {
19
19
  key: string;
20
- type?: 'int' | 'string' | 'boolean' | 'choice:multiple' | 'choice:single' | 'mobile_phone' | 'date' | 'afm' | 'iban' | 'file' | 'postal_code' | 'phone_number' | 'array' | 'object';
20
+ type?: 'int' | 'string' | 'boolean' | 'email' | 'uuid4' | 'choice:multiple' | 'choice:single' | 'mobile_phone' | 'date' | 'afm' | 'iban' | 'file' | 'postal_code' | 'phone_number' | 'array' | 'object';
21
21
  component?: any;
22
22
  condition?: Record<string, FieldCondition>;
23
23
  controlled?: boolean;