@kajoo-ai/sitecore-nextjs 16.0.4 → 16.0.6

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