@kajoo-ai/sitecore-react 18.0.1 → 18.0.3

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 (74) hide show
  1. package/README.md +33 -33
  2. package/dist/cjs/components/button.d.ts +11 -11
  3. package/dist/cjs/components/check-box.d.ts +7 -7
  4. package/dist/cjs/components/container.d.ts +13 -13
  5. package/dist/cjs/components/drop-down/drop-down.d.ts +3 -3
  6. package/dist/cjs/components/drop-down/index.d.ts +1 -1
  7. package/dist/cjs/components/header.d.ts +3 -3
  8. package/dist/cjs/components/image.d.ts +17 -17
  9. package/dist/cjs/components/kajoo-component/index.d.ts +1 -1
  10. package/dist/cjs/components/kajoo-component/kajoo-component.d.ts +39 -39
  11. package/dist/cjs/components/kajoo-component/services.d.ts +8 -8
  12. package/dist/cjs/components/label.d.ts +3 -3
  13. package/dist/cjs/components/linebreak.d.ts +4 -4
  14. package/dist/cjs/components/link.d.ts +13 -13
  15. package/dist/cjs/components/list.d.ts +3 -3
  16. package/dist/cjs/components/paragraph.d.ts +3 -3
  17. package/dist/cjs/components/progress-bar.d.ts +6 -6
  18. package/dist/cjs/components/radio-button.d.ts +6 -6
  19. package/dist/cjs/components/repeater.d.ts +3 -3
  20. package/dist/cjs/components/rich-text.d.ts +3 -3
  21. package/dist/cjs/components/slider.d.ts +6 -6
  22. package/dist/cjs/components/text-area.d.ts +4 -4
  23. package/dist/cjs/components/text-input.d.ts +4 -4
  24. package/dist/cjs/components/text.d.ts +11 -11
  25. package/dist/cjs/components/toggle/index.d.ts +1 -1
  26. package/dist/cjs/components/toggle/toggle.d.ts +3 -3
  27. package/dist/cjs/components/type-form/index.d.ts +1 -1
  28. package/dist/cjs/components/type-form/type-form.d.ts +3 -3
  29. package/dist/cjs/components/video.d.ts +3 -3
  30. package/dist/cjs/factories/KajooLayoutFactory.d.ts +12 -12
  31. package/dist/cjs/index.d.ts +37 -37
  32. package/dist/cjs/index.js +1 -1
  33. package/dist/cjs/index.js.map +1 -1
  34. package/dist/cjs/toObject.d.ts +2 -2
  35. package/dist/cjs/types.d.ts +3 -3
  36. package/dist/cjs/utils.d.ts +6 -6
  37. package/dist/esm/components/button.d.ts +11 -11
  38. package/dist/esm/components/check-box.d.ts +7 -7
  39. package/dist/esm/components/container.d.ts +13 -13
  40. package/dist/esm/components/drop-down/drop-down.d.ts +3 -3
  41. package/dist/esm/components/drop-down/index.d.ts +1 -1
  42. package/dist/esm/components/header.d.ts +3 -3
  43. package/dist/esm/components/image.d.ts +17 -17
  44. package/dist/esm/components/kajoo-component/index.d.ts +1 -1
  45. package/dist/esm/components/kajoo-component/kajoo-component.d.ts +39 -39
  46. package/dist/esm/components/kajoo-component/services.d.ts +8 -8
  47. package/dist/esm/components/label.d.ts +3 -3
  48. package/dist/esm/components/linebreak.d.ts +4 -4
  49. package/dist/esm/components/link.d.ts +13 -13
  50. package/dist/esm/components/list.d.ts +3 -3
  51. package/dist/esm/components/paragraph.d.ts +3 -3
  52. package/dist/esm/components/progress-bar.d.ts +6 -6
  53. package/dist/esm/components/radio-button.d.ts +6 -6
  54. package/dist/esm/components/repeater.d.ts +3 -3
  55. package/dist/esm/components/rich-text.d.ts +3 -3
  56. package/dist/esm/components/slider.d.ts +6 -6
  57. package/dist/esm/components/text-area.d.ts +4 -4
  58. package/dist/esm/components/text-input.d.ts +4 -4
  59. package/dist/esm/components/text.d.ts +11 -11
  60. package/dist/esm/components/toggle/index.d.ts +1 -1
  61. package/dist/esm/components/toggle/toggle.d.ts +3 -3
  62. package/dist/esm/components/type-form/index.d.ts +1 -1
  63. package/dist/esm/components/type-form/type-form.d.ts +3 -3
  64. package/dist/esm/components/video.d.ts +3 -3
  65. package/dist/esm/factories/KajooLayoutFactory.d.ts +12 -12
  66. package/dist/esm/index.d.ts +37 -37
  67. package/dist/esm/index.js +1 -1
  68. package/dist/esm/index.js.map +1 -1
  69. package/dist/esm/toObject.d.ts +2 -2
  70. package/dist/esm/types.d.ts +3 -3
  71. package/dist/esm/utils.d.ts +6 -6
  72. package/dist/index.d.ts +108 -108
  73. package/dist/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +56 -55
package/dist/index.d.ts CHANGED
@@ -3,93 +3,93 @@ import { Link as Link$1, RouteData, LayoutServiceData } from '@sitecore-jss/site
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { JsonObject } from 'type-fest';
5
5
 
6
- type ITextField$1 = {
7
- value?: string | number;
8
- editable?: string;
9
- };
10
- interface IButton {
11
- text: ITextField$1 | string;
12
- [key: string]: unknown;
13
- }
6
+ type ITextField$1 = {
7
+ value?: string | number;
8
+ editable?: string;
9
+ };
10
+ interface IButton {
11
+ text: ITextField$1 | string;
12
+ [key: string]: unknown;
13
+ }
14
14
  declare const Button: FC<IButton>;
15
15
 
16
- interface IProps$a {
17
- className: string;
18
- [key: string]: unknown;
19
- }
16
+ interface IProps$a {
17
+ className: string;
18
+ [key: string]: unknown;
19
+ }
20
20
  declare const CheckBox: FC<IProps$a>;
21
21
 
22
- interface IProps$9 {
23
- bgImage?: {
24
- value: {
25
- src: string;
26
- };
27
- };
28
- tag?: keyof JSX.IntrinsicElements;
29
- [key: string]: any;
30
- children: ReactNode | ReactNode[];
31
- }
22
+ interface IProps$9 {
23
+ bgImage?: {
24
+ value: {
25
+ src: string;
26
+ };
27
+ };
28
+ tag?: keyof JSX.IntrinsicElements;
29
+ [key: string]: any;
30
+ children: ReactNode | ReactNode[];
31
+ }
32
32
  declare const Container: FC<IProps$9>;
33
33
 
34
34
  declare const Dropdown: FC<any>;
35
35
 
36
36
  declare const Header: FC<any>;
37
37
 
38
- interface ImageFieldValue {
39
- [attributeName: string]: unknown;
40
- src?: string;
41
- alt?: string;
42
- }
43
- interface ImageField {
44
- value?: ImageFieldValue;
45
- editable?: string;
46
- }
47
- interface IProps$8 {
48
- src: ImageField | ImageFieldValue;
49
- alt?: string;
50
- srcSet?: string | any[];
51
- }
38
+ interface ImageFieldValue {
39
+ [attributeName: string]: unknown;
40
+ src?: string;
41
+ alt?: string;
42
+ }
43
+ interface ImageField {
44
+ value?: ImageFieldValue;
45
+ editable?: string;
46
+ }
47
+ interface IProps$8 {
48
+ src: ImageField | ImageFieldValue;
49
+ alt?: string;
50
+ srcSet?: string | any[];
51
+ }
52
52
  declare const Image: FC<IProps$8>;
53
53
 
54
54
  declare const Label: FC<any>;
55
55
 
56
- type IProps$7 = JSX.IntrinsicElements["hr"];
56
+ type IProps$7 = JSX.IntrinsicElements["hr"];
57
57
  declare const Linebreak: FC<IProps$7>;
58
58
 
59
- type ISitecoreLink = Parameters<typeof Link$1>[0];
60
- type ITextField = {
61
- value?: string | number;
62
- editable?: string;
63
- };
64
- interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
65
- text?: ITextField | string;
66
- href: ISitecoreLink["field"] | string;
67
- }
59
+ type ISitecoreLink = Parameters<typeof Link$1>[0];
60
+ type ITextField = {
61
+ value?: string | number;
62
+ editable?: string;
63
+ };
64
+ interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
65
+ text?: ITextField | string;
66
+ href: ISitecoreLink["field"] | string;
67
+ }
68
68
  declare const Link: FC<ILink>;
69
69
 
70
70
  declare const List: FC<any>;
71
71
 
72
72
  declare const Paragraph: FC<any>;
73
73
 
74
- interface IProps$6 {
75
- className: string;
76
- }
74
+ interface IProps$6 {
75
+ className: string;
76
+ }
77
77
  declare const ProgressBar: FC<IProps$6>;
78
78
 
79
- interface IProps$5 {
80
- className: string;
81
- }
79
+ interface IProps$5 {
80
+ className: string;
81
+ }
82
82
  declare const Radiobutton: FC<IProps$5>;
83
83
 
84
- interface IProps$4 {
85
- className: string;
86
- }
84
+ interface IProps$4 {
85
+ className: string;
86
+ }
87
87
  declare const Slider: FC<IProps$4>;
88
88
 
89
- type IProps$3 = JSX.IntrinsicElements["textarea"];
89
+ type IProps$3 = JSX.IntrinsicElements["textarea"];
90
90
  declare const Textarea: FC<IProps$3>;
91
91
 
92
- type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
92
+ type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
93
93
  declare const Textinput: FC<IProps$2>;
94
94
 
95
95
  declare const Toggle: FC<any>;
@@ -98,65 +98,65 @@ declare const TypeForm: FC<any>;
98
98
 
99
99
  declare const Video: FC<any>;
100
100
 
101
- interface IProps$1 {
102
- text?: {
103
- value?: string | number;
104
- editable?: string;
105
- } | string;
106
- tag?: keyof JSX.IntrinsicElements;
107
- [key: string]: any;
108
- }
101
+ interface IProps$1 {
102
+ text?: {
103
+ value?: string | number;
104
+ editable?: string;
105
+ } | string;
106
+ tag?: keyof JSX.IntrinsicElements;
107
+ [key: string]: any;
108
+ }
109
109
  declare const Text: FC<IProps$1>;
110
110
 
111
111
  declare const RichText: FC<any>;
112
112
 
113
113
  declare const Repeater: FC<any>;
114
114
 
115
- interface IProps {
116
- component: ({ fields, children }: React.PropsWithChildren<{
117
- fields: JsonObject;
118
- }>) => JSX.Element;
119
- datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
120
- loadingComponent?: JSX.Element;
121
- errorComponent?: JSX.Element;
122
- emptyComponent?: JSX.Element;
123
- children?: JSX.Element[];
124
- }
125
- interface IContentstackIntegration {
126
- provider: 'contentstack';
127
- hostUrl?: string;
128
- apiKey: string;
129
- deliveryToken: string;
130
- language?: string;
131
- branch?: string;
132
- environment: string;
133
- contentTypeUid: string;
134
- entryUid: string;
135
- }
136
- interface IConsciaIntegration {
137
- provider: 'conscia.ai';
138
- hostUrl: string;
139
- customerCode: string;
140
- apiToken: string;
141
- environment: string;
142
- componentCode: string;
143
- }
144
- interface IKontentAiIntegration {
145
- provider: "kontent.ai";
146
- environmentId: string;
147
- deliveryApiToken: string;
148
- contentItemCodename: string;
149
- }
115
+ interface IProps {
116
+ component: ({ fields, children }: React.PropsWithChildren<{
117
+ fields: JsonObject;
118
+ }>) => JSX.Element;
119
+ datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
120
+ loadingComponent?: JSX.Element;
121
+ errorComponent?: JSX.Element;
122
+ emptyComponent?: JSX.Element;
123
+ children?: JSX.Element[];
124
+ }
125
+ interface IContentstackIntegration {
126
+ provider: 'contentstack';
127
+ hostUrl?: string;
128
+ apiKey: string;
129
+ deliveryToken: string;
130
+ language?: string;
131
+ branch?: string;
132
+ environment: string;
133
+ contentTypeUid: string;
134
+ entryUid: string;
135
+ }
136
+ interface IConsciaIntegration {
137
+ provider: 'conscia.ai';
138
+ hostUrl: string;
139
+ customerCode: string;
140
+ apiToken: string;
141
+ environment: string;
142
+ componentCode: string;
143
+ }
144
+ interface IKontentAiIntegration {
145
+ provider: "kontent.ai";
146
+ environmentId: string;
147
+ deliveryApiToken: string;
148
+ contentItemCodename: string;
149
+ }
150
150
  declare const KajooComponent: (props: IProps) => react_jsx_runtime.JSX.Element;
151
151
 
152
- interface ILayoutProps extends RouteData {
153
- layoutData: LayoutServiceData;
154
- }
155
- type ILayout = React.FC<ILayoutProps>;
156
- declare class KajooLayoutFactory {
157
- private static readonly layoutsByName;
158
- static getLayout: (route: RouteData) => ILayout;
159
- static registerLayout: (name: string, layout: ILayout) => void;
152
+ interface ILayoutProps extends RouteData {
153
+ layoutData: LayoutServiceData;
154
+ }
155
+ type ILayout = React.FC<ILayoutProps>;
156
+ declare class KajooLayoutFactory {
157
+ private static readonly layoutsByName;
158
+ static getLayout: (route: RouteData) => ILayout;
159
+ static registerLayout: (name: string, layout: ILayout) => void;
160
160
  }
161
161
 
162
162
  export { Button, CheckBox as Checkbox, IProps$a as CheckboxProps, Container, Dropdown, Header, Image, KajooComponent, IProps as KajooComponentProps, KajooLayoutFactory, Label, Linebreak, IProps$7 as LinebreakProps, Link, List, Paragraph, ProgressBar, Radiobutton, IProps$5 as RadiobuttonProps, Repeater, RichText, Slider, IProps$4 as SliderProps, Text, Textarea, IProps$3 as TextareaProps, Textinput, IProps$2 as TextinputProps, Toggle, TypeForm, Video };