@hiver/connector-agent 1.3.4-beta.0 → 1.4.0-beta.0

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.
Files changed (69) hide show
  1. package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
  2. package/features/connector-cards/components/card-list/style.d.ts +0 -1
  3. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  4. package/features/connector-cards/constants/card-content.d.ts +0 -2
  5. package/features/connector-cards/constants/card-content.d.ts.map +1 -1
  6. package/features/connector-cards/store/hooks.d.ts +7 -0
  7. package/features/connector-cards/store/hooks.d.ts.map +1 -0
  8. package/features/connector-cards/store/index.d.ts +25 -0
  9. package/features/connector-cards/store/index.d.ts.map +1 -0
  10. package/features/connector-cards/store/selectors.d.ts +1 -1
  11. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  12. package/index.es.js +17262 -26685
  13. package/index.umd.js +165 -296
  14. package/package.json +1 -1
  15. package/testing/mocks/handlers.d.ts.map +1 -1
  16. package/testing/test-utils.d.ts +1 -1
  17. package/testing/test-utils.d.ts.map +1 -1
  18. package/components/ui/async-select/index.d.ts +0 -4
  19. package/components/ui/async-select/index.d.ts.map +0 -1
  20. package/components/ui/date-field/index.d.ts +0 -3
  21. package/components/ui/date-field/index.d.ts.map +0 -1
  22. package/components/ui/form/index.d.ts +0 -35
  23. package/components/ui/form/index.d.ts.map +0 -1
  24. package/components/ui/form/styles.d.ts +0 -4
  25. package/components/ui/form/styles.d.ts.map +0 -1
  26. package/components/ui/form-fields/index.d.ts +0 -21
  27. package/components/ui/form-fields/index.d.ts.map +0 -1
  28. package/components/ui/form-fields/styles.d.ts +0 -7
  29. package/components/ui/form-fields/styles.d.ts.map +0 -1
  30. package/components/ui/layover/index.d.ts +0 -9
  31. package/components/ui/layover/index.d.ts.map +0 -1
  32. package/components/ui/layover/styles.d.ts +0 -6
  33. package/components/ui/layover/styles.d.ts.map +0 -1
  34. package/components/ui/select/index.d.ts +0 -3
  35. package/components/ui/select/index.d.ts.map +0 -1
  36. package/components/ui/select/style.d.ts +0 -2
  37. package/components/ui/select/style.d.ts.map +0 -1
  38. package/constants/app-constants.d.ts +0 -4
  39. package/constants/app-constants.d.ts.map +0 -1
  40. package/features/write-form/api/index.d.ts +0 -5
  41. package/features/write-form/api/index.d.ts.map +0 -1
  42. package/features/write-form/components/write-form/index.d.ts +0 -3
  43. package/features/write-form/components/write-form/index.d.ts.map +0 -1
  44. package/features/write-form/components/write-form/reducer.d.ts +0 -12
  45. package/features/write-form/components/write-form/reducer.d.ts.map +0 -1
  46. package/features/write-form/components/write-form/styles.d.ts +0 -2
  47. package/features/write-form/components/write-form/styles.d.ts.map +0 -1
  48. package/features/write-form/constants/api.d.ts +0 -4
  49. package/features/write-form/constants/api.d.ts.map +0 -1
  50. package/features/write-form/constants/index.d.ts +0 -9
  51. package/features/write-form/constants/index.d.ts.map +0 -1
  52. package/features/write-form/store/initial-state.d.ts +0 -29
  53. package/features/write-form/store/initial-state.d.ts.map +0 -1
  54. package/features/write-form/store/selectors.d.ts +0 -11
  55. package/features/write-form/store/selectors.d.ts.map +0 -1
  56. package/features/write-form/store/slice.d.ts +0 -62
  57. package/features/write-form/store/slice.d.ts.map +0 -1
  58. package/features/write-form/types/form.d.ts +0 -80
  59. package/features/write-form/types/form.d.ts.map +0 -1
  60. package/features/write-form/utils/index.d.ts +0 -22
  61. package/features/write-form/utils/index.d.ts.map +0 -1
  62. package/store/hooks.d.ts +0 -9
  63. package/store/hooks.d.ts.map +0 -1
  64. package/store/index.d.ts +0 -31
  65. package/store/index.d.ts.map +0 -1
  66. package/testing/mocks/handlers/write-capability.d.ts +0 -2
  67. package/testing/mocks/handlers/write-capability.d.ts.map +0 -1
  68. package/types/form.d.ts +0 -62
  69. package/types/form.d.ts.map +0 -1
package/types/form.d.ts DELETED
@@ -1,62 +0,0 @@
1
- import { default as React } from 'react';
2
- import { OutlinedInputProps, DatePickerProps } from '@hiver/hiver-ui-kit';
3
- import { Props as SelectProps, GroupBase, OptionsOrGroups } from 'react-select';
4
- import { AsyncProps } from 'react-select/async';
5
- export interface BaseFormFieldProps {
6
- helperText?: string;
7
- error?: boolean;
8
- name: string;
9
- toolTipTitle?: string;
10
- isRequired?: boolean;
11
- key?: string;
12
- }
13
- export type FIELD_TYPES = 'text' | 'number' | 'password' | 'select' | 'async-select' | 'date';
14
- export interface TextFieldBaseProps extends BaseFormFieldProps {
15
- type: Extract<FIELD_TYPES, 'text' | 'number' | 'password'>;
16
- label?: React.ReactNode;
17
- max?: number;
18
- min?: number;
19
- }
20
- export interface TextFieldProps extends TextFieldBaseProps, Omit<OutlinedInputProps, 'label' | 'name' | 'type'> {
21
- }
22
- export interface SelectFieldProps extends BaseFormFieldProps, Omit<SelectProps, 'name'> {
23
- type: Extract<FIELD_TYPES, 'select'>;
24
- label?: string;
25
- }
26
- export type AsyncLoadOptions<OptionType, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>> = (inputValue: string, callback: (options: OptionsOrGroups<OptionType, GroupType>) => void, isScrollToBottomEvent: boolean) => void;
27
- export interface AsyncSelectFieldProps<OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>> extends BaseFormFieldProps, Omit<AsyncProps<OptionType, IsMulti, GroupType>, 'name' | 'loadOptions'> {
28
- type: Extract<FIELD_TYPES, 'async-select'>;
29
- label?: string;
30
- loadOptions?: AsyncLoadOptions<OptionType, GroupType>;
31
- isApiSearchEnabled?: boolean;
32
- isInfiniteScrollable?: boolean;
33
- loadOptionsOnFocus?: boolean;
34
- }
35
- export interface DateFieldProps extends BaseFormFieldProps, DatePickerProps<Date, Date> {
36
- type: Extract<FIELD_TYPES, 'date'>;
37
- label?: string;
38
- placeholder?: string;
39
- onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
40
- onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
41
- id?: string;
42
- }
43
- export type FormFieldProps = TextFieldProps | SelectFieldProps | AsyncSelectFieldProps<unknown> | DateFieldProps;
44
- export interface IFormConfig {
45
- id: string | number;
46
- title?: string;
47
- formFields: FormFieldProps[];
48
- }
49
- export interface IValidateConfig {
50
- id?: string;
51
- name: string;
52
- label?: React.ReactNode | string;
53
- [key: string]: unknown;
54
- }
55
- export interface ElementValidation {
56
- isRequired?: boolean | ((value: unknown) => boolean | string);
57
- validate?: (values: unknown, appConfigs: IValidateConfig) => boolean | string;
58
- }
59
- export interface FormValidation {
60
- [x: string]: ElementValidation;
61
- }
62
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAC;AAE9F,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,MA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