@dev-crew-berlin/enter-js-utils 0.87.0 → 0.87.2

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.
@@ -1,7 +1,7 @@
1
1
  import { components } from '../generated/api-schema';
2
2
  import { Field } from './field';
3
3
  export type Dictionary<T> = Record<string, T>;
4
- export type FieldGroupJSON = components['schemas']['FieldGroup-Output'];
4
+ export type FieldGroupJSON = components['schemas']['FieldGroup'];
5
5
  export type FieldGroup = Omit<FieldGroupJSON, 'questions'>;
6
6
  export declare class FieldGroups {
7
7
  private _groups;
@@ -1,37 +1,34 @@
1
1
  import { components } from '../generated/api-schema';
2
- export type StaticField = components['schemas']['StaticField-Output'] & {
2
+ export type TextField = components['schemas']['TextField'] & {
3
3
  group: string;
4
4
  };
5
- export type TextField = components['schemas']['TextField-Output'] & {
5
+ export type LongtextField = components['schemas']['LongtextField'] & {
6
6
  group: string;
7
7
  };
8
- export type LongtextField = components['schemas']['LongtextField-Output'] & {
8
+ export type EmailField = components['schemas']['EmailField'] & {
9
9
  group: string;
10
10
  };
11
- export type EmailField = components['schemas']['EmailField-Output'] & {
11
+ export type NumberField = components['schemas']['NumberField'] & {
12
12
  group: string;
13
13
  };
14
- export type NumberField = components['schemas']['NumberField-Output'] & {
14
+ export type CheckboxField = components['schemas']['CheckboxGroupField'] & {
15
15
  group: string;
16
16
  };
17
- export type CheckboxField = components['schemas']['CheckboxGroupField-Output'] & {
17
+ export type ToggleField = components['schemas']['CheckboxField'] & {
18
18
  group: string;
19
19
  };
20
- export type ToggleField = components['schemas']['CheckboxField-Output'] & {
20
+ export type RadioField = components['schemas']['RadioButtonGroupField'] & {
21
21
  group: string;
22
22
  };
23
- export type RadioField = components['schemas']['RadioButtonGroupField-Output'] & {
23
+ export type SelectField = components['schemas']['DropdownField'] & {
24
24
  group: string;
25
25
  };
26
- export type SelectField = components['schemas']['DropdownField-Output'] & {
26
+ export type CodeField = components['schemas']['CodeField'] & {
27
27
  group: string;
28
28
  };
29
- export type CodeField = components['schemas']['CodeField-Output'] & {
29
+ export type DateField = components['schemas']['DateField'] & {
30
30
  group: string;
31
31
  };
32
- export type DateField = components['schemas']['DateField-Output'] & {
33
- group: string;
34
- };
35
- export type Field = components['schemas']['FieldGroup-Output']['questions'][number] & {
32
+ export type Field = components['schemas']['FieldGroup']['questions'][number] & {
36
33
  group: string;
37
34
  };
@@ -13,7 +13,7 @@ export type { Event, AttendeeUpdatedEvent, AttendeeCreatedEvent, AttendeeRespond
13
13
  export type { FieldGroup, FieldGroupJSON } from './field-group';
14
14
  export { FieldGroups } from './field-group';
15
15
  export type { FieldValue } from './field-value';
16
- export type { StaticField, TextField, EmailField, NumberField, CheckboxField, ToggleField, RadioField, SelectField, Field, } from './field';
16
+ export type { TextField, EmailField, NumberField, CheckboxField, ToggleField, RadioField, SelectField, Field, } from './field';
17
17
  export { Instance } from './instance';
18
18
  export type { InstanceJSON } from './instance';
19
19
  export type { Permission } from './permission';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.87.0",
3
+ "version": "0.87.2",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",
@@ -22,7 +22,8 @@
22
22
  "test": "echo \"Error: no test specified\" && exit 1",
23
23
  "storybook": "storybook dev -p 6006",
24
24
  "build-storybook": "storybook build",
25
- "generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type"
25
+ "generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type",
26
+ "generate-docs": "typedoc --plugin typedoc-plugin-rename-defaults --entryPointStrategy expand"
26
27
  },
27
28
  "lint-staged": {
28
29
  "**/*": "prettier --write --ignore-unknown"
@@ -43,15 +44,15 @@
43
44
  "@babel/preset-env": "^7.25.8",
44
45
  "@babel/preset-react": "^7.25.7",
45
46
  "@babel/preset-typescript": "^7.25.7",
46
- "@storybook/addon-actions": "^8.3.5",
47
- "@storybook/addon-essentials": "^8.3.5",
48
- "@storybook/addon-interactions": "^8.3.5",
49
- "@storybook/addon-links": "^8.3.5",
50
- "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
51
- "@storybook/nextjs": "^8.3.5",
52
- "@storybook/react": "^8.3.5",
53
- "@storybook/react-webpack5": "^8.3.5",
54
- "@storybook/test": "^8.3.5",
47
+ "@storybook/addon-actions": "^8.5.8",
48
+ "@storybook/addon-essentials": "^8.5.8",
49
+ "@storybook/addon-interactions": "^8.5.8",
50
+ "@storybook/addon-links": "^8.5.8",
51
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
52
+ "@storybook/nextjs": "^8.5.8",
53
+ "@storybook/react": "^8.5.8",
54
+ "@storybook/react-webpack5": "^8.5.8",
55
+ "@storybook/test": "^8.5.8",
55
56
  "@types/cookie": "^0.6.0",
56
57
  "@types/jws": "^3.2.9",
57
58
  "@types/node": "^17.0.38",
@@ -65,13 +66,15 @@
65
66
  "husky": "^7.0.1",
66
67
  "openapi-typescript": "^6.7.6",
67
68
  "prettier": "^2.6.2",
68
- "react": "^18.3.1",
69
- "react-dom": "^18.3.1",
69
+ "react": "^19.0.0",
70
+ "react-dom": "^19.0.0",
71
+ "typedoc": "^0.27.8",
72
+ "typedoc-plugin-rename-defaults": "^0.7.2",
70
73
  "typescript": "^5.7.3"
71
74
  },
72
75
  "peerDependencies": {
73
- "react": "^18.1.0",
74
- "react-dom": "^18.1.0"
76
+ "react": "^19.0.0",
77
+ "react-dom": "^19.0.0"
75
78
  },
76
79
  "dependencies": {
77
80
  "cookie": "^1.0.1",