@gcforms/types 1.0.6 → 1.0.8
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 +11 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.8] - 2025-05-20
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Add questionId and tags to ElementProperties
|
|
13
|
+
- Add uuid to FormElement
|
|
14
|
+
|
|
15
|
+
## [1.0.7] - 2025-04-09
|
|
16
|
+
|
|
17
|
+
Add form element type for custom json
|
|
18
|
+
|
|
8
19
|
## [1.0.6] - 2025-04-29
|
|
9
20
|
|
|
10
21
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -42,7 +42,8 @@ declare enum FormElementTypes {
|
|
|
42
42
|
departments = "departments",
|
|
43
43
|
contact = "contact",
|
|
44
44
|
combobox = "combobox",
|
|
45
|
-
formattedDate = "formattedDate"
|
|
45
|
+
formattedDate = "formattedDate",
|
|
46
|
+
customJson = "customJson"
|
|
46
47
|
}
|
|
47
48
|
type ConditionalRule = {
|
|
48
49
|
choiceId: string;
|
|
@@ -78,6 +79,8 @@ declare const SortOption: {
|
|
|
78
79
|
};
|
|
79
80
|
type SortValue = (typeof SortOption)[keyof typeof SortOption];
|
|
80
81
|
interface ElementProperties {
|
|
82
|
+
questionId?: string;
|
|
83
|
+
tags?: string[];
|
|
81
84
|
titleEn: string;
|
|
82
85
|
titleFr: string;
|
|
83
86
|
placeholderEn?: string;
|
|
@@ -99,7 +102,7 @@ interface ElementProperties {
|
|
|
99
102
|
addressComponents?: AddressComponents | undefined;
|
|
100
103
|
dynamicRow?: dynamicRowType;
|
|
101
104
|
sortOrder?: SortValue;
|
|
102
|
-
[key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
105
|
+
[key: string]: string | string[] | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
103
106
|
}
|
|
104
107
|
interface BrandProperties {
|
|
105
108
|
name?: string;
|
|
@@ -114,6 +117,7 @@ interface BrandProperties {
|
|
|
114
117
|
}
|
|
115
118
|
interface FormElement {
|
|
116
119
|
id: number;
|
|
120
|
+
uuid?: string;
|
|
117
121
|
subId?: string;
|
|
118
122
|
type: FormElementTypes;
|
|
119
123
|
properties: ElementProperties;
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,8 @@ declare enum FormElementTypes {
|
|
|
42
42
|
departments = "departments",
|
|
43
43
|
contact = "contact",
|
|
44
44
|
combobox = "combobox",
|
|
45
|
-
formattedDate = "formattedDate"
|
|
45
|
+
formattedDate = "formattedDate",
|
|
46
|
+
customJson = "customJson"
|
|
46
47
|
}
|
|
47
48
|
type ConditionalRule = {
|
|
48
49
|
choiceId: string;
|
|
@@ -78,6 +79,8 @@ declare const SortOption: {
|
|
|
78
79
|
};
|
|
79
80
|
type SortValue = (typeof SortOption)[keyof typeof SortOption];
|
|
80
81
|
interface ElementProperties {
|
|
82
|
+
questionId?: string;
|
|
83
|
+
tags?: string[];
|
|
81
84
|
titleEn: string;
|
|
82
85
|
titleFr: string;
|
|
83
86
|
placeholderEn?: string;
|
|
@@ -99,7 +102,7 @@ interface ElementProperties {
|
|
|
99
102
|
addressComponents?: AddressComponents | undefined;
|
|
100
103
|
dynamicRow?: dynamicRowType;
|
|
101
104
|
sortOrder?: SortValue;
|
|
102
|
-
[key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
105
|
+
[key: string]: string | string[] | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
103
106
|
}
|
|
104
107
|
interface BrandProperties {
|
|
105
108
|
name?: string;
|
|
@@ -114,6 +117,7 @@ interface BrandProperties {
|
|
|
114
117
|
}
|
|
115
118
|
interface FormElement {
|
|
116
119
|
id: number;
|
|
120
|
+
uuid?: string;
|
|
117
121
|
subId?: string;
|
|
118
122
|
type: FormElementTypes;
|
|
119
123
|
properties: ElementProperties;
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,7 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
47
47
|
FormElementTypes2["contact"] = "contact";
|
|
48
48
|
FormElementTypes2["combobox"] = "combobox";
|
|
49
49
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
50
|
+
FormElementTypes2["customJson"] = "customJson";
|
|
50
51
|
return FormElementTypes2;
|
|
51
52
|
})(FormElementTypes || {});
|
|
52
53
|
var SortOption = {
|
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,7 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
17
17
|
FormElementTypes2["contact"] = "contact";
|
|
18
18
|
FormElementTypes2["combobox"] = "combobox";
|
|
19
19
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
20
|
+
FormElementTypes2["customJson"] = "customJson";
|
|
20
21
|
return FormElementTypes2;
|
|
21
22
|
})(FormElementTypes || {});
|
|
22
23
|
var SortOption = {
|