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