@kajoo-ai/sitecore-nextjs 20.0.2 → 20.0.4

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