@gcforms/types 1.0.24 → 1.0.26

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
@@ -5,6 +5,10 @@ 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.25] - 2025-10-17
9
+
10
+ - Remove File Upload as a beta option
11
+
8
12
 
9
13
  ## [1.0.23] - 2025-10-01
10
14
 
package/dist/index.d.mts CHANGED
@@ -40,33 +40,31 @@ type NextActionRule = {
40
40
  choiceId: string;
41
41
  };
42
42
  type HTMLTextInputTypeAttribute = "text" | "email" | "name" | "number" | "password" | "search" | "tel" | "url";
43
- declare enum FormElementTypes {
44
- textField = "textField",
45
- textArea = "textArea",
46
- dropdown = "dropdown",
47
- radio = "radio",
48
- checkbox = "checkbox",
49
- fileInput = "fileInput",
50
- richText = "richText",
51
- dynamicRow = "dynamicRow",
52
- attestation = "attestation",
53
- address = "address",
54
- addressComplete = "addressComplete",
55
- name = "name",
56
- firstMiddleLastName = "firstMiddleLastName",
57
- departments = "departments",
58
- contact = "contact",
59
- combobox = "combobox",
60
- formattedDate = "formattedDate",
61
- customJson = "customJson"
62
- }
43
+ declare const FormElementTypes: {
44
+ readonly textField: "textField";
45
+ readonly textArea: "textArea";
46
+ readonly dropdown: "dropdown";
47
+ readonly radio: "radio";
48
+ readonly checkbox: "checkbox";
49
+ readonly fileInput: "fileInput";
50
+ readonly richText: "richText";
51
+ readonly dynamicRow: "dynamicRow";
52
+ readonly attestation: "attestation";
53
+ readonly address: "address";
54
+ readonly addressComplete: "addressComplete";
55
+ readonly name: "name";
56
+ readonly firstMiddleLastName: "firstMiddleLastName";
57
+ readonly departments: "departments";
58
+ readonly contact: "contact";
59
+ readonly combobox: "combobox";
60
+ readonly formattedDate: "formattedDate";
61
+ readonly customJson: "customJson";
62
+ };
63
+ type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
63
64
  declare const BetaFormElementTypes: {
64
65
  addressComplete: {
65
66
  flag: string;
66
67
  };
67
- fileInput: {
68
- flag: string;
69
- };
70
68
  };
71
69
  type ConditionalRule = {
72
70
  choiceId: string;
@@ -121,6 +119,7 @@ interface ElementProperties {
121
119
  autoComplete?: string;
122
120
  dateFormat?: string;
123
121
  allowNegativeNumbers?: boolean;
122
+ stepCount?: number;
124
123
  conditionalRules?: ConditionalRule[];
125
124
  full?: boolean;
126
125
  addressComponents?: AddressComponents | undefined;
@@ -217,11 +216,12 @@ interface DateObject {
217
216
  MM: number;
218
217
  DD: number;
219
218
  }
220
- declare enum DatePart {
221
- DD = "day",
222
- MM = "month",
223
- YYYY = "year"
224
- }
219
+ declare const DatePart: {
220
+ readonly DD: "day";
221
+ readonly MM: "month";
222
+ readonly YYYY: "year";
223
+ };
224
+ type DatePart = (typeof DatePart)[keyof typeof DatePart];
225
225
  interface FileInput extends FileInputResponse {
226
226
  name: string;
227
227
  size: number;
@@ -246,10 +246,11 @@ interface AddressCompleteChoice {
246
246
  Description: string;
247
247
  Next: AddressCompleNext;
248
248
  }
249
- declare enum AddressCompleNext {
250
- Find = "Find",
251
- Retrieve = "Retrieve"
252
- }
249
+ declare const AddressCompleNext: {
250
+ readonly Find: "Find";
251
+ readonly Retrieve: "Retrieve";
252
+ };
253
+ type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
253
254
  interface AddressCompleteResult {
254
255
  Id: string;
255
256
  DomesticId: string;
package/dist/index.d.ts CHANGED
@@ -40,33 +40,31 @@ type NextActionRule = {
40
40
  choiceId: string;
41
41
  };
42
42
  type HTMLTextInputTypeAttribute = "text" | "email" | "name" | "number" | "password" | "search" | "tel" | "url";
43
- declare enum FormElementTypes {
44
- textField = "textField",
45
- textArea = "textArea",
46
- dropdown = "dropdown",
47
- radio = "radio",
48
- checkbox = "checkbox",
49
- fileInput = "fileInput",
50
- richText = "richText",
51
- dynamicRow = "dynamicRow",
52
- attestation = "attestation",
53
- address = "address",
54
- addressComplete = "addressComplete",
55
- name = "name",
56
- firstMiddleLastName = "firstMiddleLastName",
57
- departments = "departments",
58
- contact = "contact",
59
- combobox = "combobox",
60
- formattedDate = "formattedDate",
61
- customJson = "customJson"
62
- }
43
+ declare const FormElementTypes: {
44
+ readonly textField: "textField";
45
+ readonly textArea: "textArea";
46
+ readonly dropdown: "dropdown";
47
+ readonly radio: "radio";
48
+ readonly checkbox: "checkbox";
49
+ readonly fileInput: "fileInput";
50
+ readonly richText: "richText";
51
+ readonly dynamicRow: "dynamicRow";
52
+ readonly attestation: "attestation";
53
+ readonly address: "address";
54
+ readonly addressComplete: "addressComplete";
55
+ readonly name: "name";
56
+ readonly firstMiddleLastName: "firstMiddleLastName";
57
+ readonly departments: "departments";
58
+ readonly contact: "contact";
59
+ readonly combobox: "combobox";
60
+ readonly formattedDate: "formattedDate";
61
+ readonly customJson: "customJson";
62
+ };
63
+ type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
63
64
  declare const BetaFormElementTypes: {
64
65
  addressComplete: {
65
66
  flag: string;
66
67
  };
67
- fileInput: {
68
- flag: string;
69
- };
70
68
  };
71
69
  type ConditionalRule = {
72
70
  choiceId: string;
@@ -121,6 +119,7 @@ interface ElementProperties {
121
119
  autoComplete?: string;
122
120
  dateFormat?: string;
123
121
  allowNegativeNumbers?: boolean;
122
+ stepCount?: number;
124
123
  conditionalRules?: ConditionalRule[];
125
124
  full?: boolean;
126
125
  addressComponents?: AddressComponents | undefined;
@@ -217,11 +216,12 @@ interface DateObject {
217
216
  MM: number;
218
217
  DD: number;
219
218
  }
220
- declare enum DatePart {
221
- DD = "day",
222
- MM = "month",
223
- YYYY = "year"
224
- }
219
+ declare const DatePart: {
220
+ readonly DD: "day";
221
+ readonly MM: "month";
222
+ readonly YYYY: "year";
223
+ };
224
+ type DatePart = (typeof DatePart)[keyof typeof DatePart];
225
225
  interface FileInput extends FileInputResponse {
226
226
  name: string;
227
227
  size: number;
@@ -246,10 +246,11 @@ interface AddressCompleteChoice {
246
246
  Description: string;
247
247
  Next: AddressCompleNext;
248
248
  }
249
- declare enum AddressCompleNext {
250
- Find = "Find",
251
- Retrieve = "Retrieve"
252
- }
249
+ declare const AddressCompleNext: {
250
+ readonly Find: "Find";
251
+ readonly Retrieve: "Retrieve";
252
+ };
253
+ type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
253
254
  interface AddressCompleteResult {
254
255
  Id: string;
255
256
  DomesticId: string;
package/dist/index.js CHANGED
@@ -30,30 +30,28 @@ __export(index_exports, {
30
30
  module.exports = __toCommonJS(index_exports);
31
31
 
32
32
  // src/form-types.ts
33
- var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
34
- FormElementTypes2["textField"] = "textField";
35
- FormElementTypes2["textArea"] = "textArea";
36
- FormElementTypes2["dropdown"] = "dropdown";
37
- FormElementTypes2["radio"] = "radio";
38
- FormElementTypes2["checkbox"] = "checkbox";
39
- FormElementTypes2["fileInput"] = "fileInput";
40
- FormElementTypes2["richText"] = "richText";
41
- FormElementTypes2["dynamicRow"] = "dynamicRow";
42
- FormElementTypes2["attestation"] = "attestation";
43
- FormElementTypes2["address"] = "address";
44
- FormElementTypes2["addressComplete"] = "addressComplete";
45
- FormElementTypes2["name"] = "name";
46
- FormElementTypes2["firstMiddleLastName"] = "firstMiddleLastName";
47
- FormElementTypes2["departments"] = "departments";
48
- FormElementTypes2["contact"] = "contact";
49
- FormElementTypes2["combobox"] = "combobox";
50
- FormElementTypes2["formattedDate"] = "formattedDate";
51
- FormElementTypes2["customJson"] = "customJson";
52
- return FormElementTypes2;
53
- })(FormElementTypes || {});
33
+ var FormElementTypes = {
34
+ textField: "textField",
35
+ textArea: "textArea",
36
+ dropdown: "dropdown",
37
+ radio: "radio",
38
+ checkbox: "checkbox",
39
+ fileInput: "fileInput",
40
+ richText: "richText",
41
+ dynamicRow: "dynamicRow",
42
+ attestation: "attestation",
43
+ address: "address",
44
+ addressComplete: "addressComplete",
45
+ name: "name",
46
+ firstMiddleLastName: "firstMiddleLastName",
47
+ departments: "departments",
48
+ contact: "contact",
49
+ combobox: "combobox",
50
+ formattedDate: "formattedDate",
51
+ customJson: "customJson"
52
+ };
54
53
  var BetaFormElementTypes = {
55
- ["addressComplete" /* addressComplete */]: { flag: "addressComplete" },
56
- ["fileInput" /* fileInput */]: { flag: "fileUpload" }
54
+ [FormElementTypes.addressComplete]: { flag: "addressComplete" }
57
55
  };
58
56
  var SortOption = {
59
57
  NONE: "none",
package/dist/index.mjs CHANGED
@@ -1,28 +1,26 @@
1
1
  // src/form-types.ts
2
- var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
3
- FormElementTypes2["textField"] = "textField";
4
- FormElementTypes2["textArea"] = "textArea";
5
- FormElementTypes2["dropdown"] = "dropdown";
6
- FormElementTypes2["radio"] = "radio";
7
- FormElementTypes2["checkbox"] = "checkbox";
8
- FormElementTypes2["fileInput"] = "fileInput";
9
- FormElementTypes2["richText"] = "richText";
10
- FormElementTypes2["dynamicRow"] = "dynamicRow";
11
- FormElementTypes2["attestation"] = "attestation";
12
- FormElementTypes2["address"] = "address";
13
- FormElementTypes2["addressComplete"] = "addressComplete";
14
- FormElementTypes2["name"] = "name";
15
- FormElementTypes2["firstMiddleLastName"] = "firstMiddleLastName";
16
- FormElementTypes2["departments"] = "departments";
17
- FormElementTypes2["contact"] = "contact";
18
- FormElementTypes2["combobox"] = "combobox";
19
- FormElementTypes2["formattedDate"] = "formattedDate";
20
- FormElementTypes2["customJson"] = "customJson";
21
- return FormElementTypes2;
22
- })(FormElementTypes || {});
2
+ var FormElementTypes = {
3
+ textField: "textField",
4
+ textArea: "textArea",
5
+ dropdown: "dropdown",
6
+ radio: "radio",
7
+ checkbox: "checkbox",
8
+ fileInput: "fileInput",
9
+ richText: "richText",
10
+ dynamicRow: "dynamicRow",
11
+ attestation: "attestation",
12
+ address: "address",
13
+ addressComplete: "addressComplete",
14
+ name: "name",
15
+ firstMiddleLastName: "firstMiddleLastName",
16
+ departments: "departments",
17
+ contact: "contact",
18
+ combobox: "combobox",
19
+ formattedDate: "formattedDate",
20
+ customJson: "customJson"
21
+ };
23
22
  var BetaFormElementTypes = {
24
- ["addressComplete" /* addressComplete */]: { flag: "addressComplete" },
25
- ["fileInput" /* fileInput */]: { flag: "fileUpload" }
23
+ [FormElementTypes.addressComplete]: { flag: "addressComplete" }
26
24
  };
27
25
  var SortOption = {
28
26
  NONE: "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {