@kajoo-ai/sitecore-react 22.0.0 → 22.0.1

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