@gcforms/types 0.0.2 → 0.0.4

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/dist/cjs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FormElementTypes = void 0;
4
- const form_types_js_1 = require("./form-types.js");
4
+ var form_types_js_1 = require("./form-types.js");
5
5
  Object.defineProperty(exports, "FormElementTypes", { enumerable: true, get: function () { return form_types_js_1.FormElementTypes; } });
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- import { FormElementTypes, } from "./form-types.js";
2
- export { FormElementTypes };
1
+ export { FormElementTypes, } from "./form-types.js";
@@ -1,19 +1,2 @@
1
- import { dynamicRowType, FormElement, Group, FormElementTypes, ElementProperties, PropertyChoices, BrandProperties, DeliveryOption, ConditionalRule, FormRecord, SecurityAttribute, FormPurpose, PublicFormRecord, ValidationProperties, FormProperties, AddressComponents, ClosedDetails } from "./form-types.js";
1
+ export { FormElementTypes, type dynamicRowType, type FormElement, type Group, type ElementProperties, type PropertyChoices, type BrandProperties, type DeliveryOption, type ConditionalRule, type FormRecord, type SecurityAttribute, type FormPurpose, type PublicFormRecord, type ValidationProperties, type FormProperties, type AddressComponents, type ClosedDetails, } from "./form-types.js";
2
2
  export type { Response, Responses, FileInputResponse } from "./form-response-types.js";
3
- export { type dynamicRowType };
4
- export type { FormElement };
5
- export { FormElementTypes };
6
- export type { Group };
7
- export type { ElementProperties };
8
- export type { PropertyChoices };
9
- export type { BrandProperties };
10
- export type { DeliveryOption };
11
- export type { ConditionalRule };
12
- export type { FormRecord };
13
- export type { SecurityAttribute };
14
- export type { FormPurpose };
15
- export type { PublicFormRecord };
16
- export type { ValidationProperties };
17
- export type { FormProperties };
18
- export type { AddressComponents };
19
- export type { ClosedDetails };
@@ -1,19 +1,2 @@
1
- import { dynamicRowType, FormElement, Group, FormElementTypes, ElementProperties, PropertyChoices, BrandProperties, DeliveryOption, ConditionalRule, FormRecord, SecurityAttribute, FormPurpose, PublicFormRecord, ValidationProperties, FormProperties, AddressComponents, ClosedDetails } from "./form-types.js";
1
+ export { FormElementTypes, type dynamicRowType, type FormElement, type Group, type ElementProperties, type PropertyChoices, type BrandProperties, type DeliveryOption, type ConditionalRule, type FormRecord, type SecurityAttribute, type FormPurpose, type PublicFormRecord, type ValidationProperties, type FormProperties, type AddressComponents, type ClosedDetails, } from "./form-types.js";
2
2
  export type { Response, Responses, FileInputResponse } from "./form-response-types.js";
3
- export { type dynamicRowType };
4
- export type { FormElement };
5
- export { FormElementTypes };
6
- export type { Group };
7
- export type { ElementProperties };
8
- export type { PropertyChoices };
9
- export type { BrandProperties };
10
- export type { DeliveryOption };
11
- export type { ConditionalRule };
12
- export type { FormRecord };
13
- export type { SecurityAttribute };
14
- export type { FormPurpose };
15
- export type { PublicFormRecord };
16
- export type { ValidationProperties };
17
- export type { FormProperties };
18
- export type { AddressComponents };
19
- export type { ClosedDetails };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -11,8 +11,14 @@
11
11
  "module": "./dist/esm/index.js",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/esm/index.js",
15
- "require": "./dist/cjs/index.js"
14
+ "require": {
15
+ "default": "./dist/cjs/index.js",
16
+ "types": "./dist/types/cjs/index.d.ts"
17
+ },
18
+ "import": {
19
+ "default": "./dist/esm/index.js",
20
+ "types": "./dist/types/esm/index.d.ts"
21
+ }
16
22
  }
17
23
  },
18
24
  "types": "./dist/types/index.d.ts",
@@ -23,7 +29,7 @@
23
29
  "scripts": {
24
30
  "build:cjs": "tsc -p tsconfig.cjs.json",
25
31
  "build:esm": "tsc -p tsconfig.esm.json",
26
- "build": "rm -rf dist && yarn build:cjs && yarn build:esm && node copy-types.mjs",
32
+ "build": "rm -rf dist && yarn build:cjs && yarn build:esm",
27
33
  "prepare": "yarn build"
28
34
  },
29
35
  "dependencies": {
@@ -1,19 +0,0 @@
1
- import { dynamicRowType, FormElement, Group, FormElementTypes, ElementProperties, PropertyChoices, BrandProperties, DeliveryOption, ConditionalRule, FormRecord, SecurityAttribute, FormPurpose, PublicFormRecord, ValidationProperties, FormProperties, AddressComponents, ClosedDetails } from "./form-types.js";
2
- export type { Response, Responses, FileInputResponse } from "./form-response-types.js";
3
- export { type dynamicRowType };
4
- export type { FormElement };
5
- export { FormElementTypes };
6
- export type { Group };
7
- export type { ElementProperties };
8
- export type { PropertyChoices };
9
- export type { BrandProperties };
10
- export type { DeliveryOption };
11
- export type { ConditionalRule };
12
- export type { FormRecord };
13
- export type { SecurityAttribute };
14
- export type { FormPurpose };
15
- export type { PublicFormRecord };
16
- export type { ValidationProperties };
17
- export type { FormProperties };
18
- export type { AddressComponents };
19
- export type { ClosedDetails };