@kajoo-ai/sitecore-react 20.0.3 → 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 -12
- 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 -12
- 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 -109
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -56
package/dist/index.d.ts
CHANGED
|
@@ -3,94 +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
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
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
|
+
}
|
|
15
15
|
declare const Button: FC<IButton>;
|
|
16
16
|
|
|
17
|
-
interface IProps$a {
|
|
18
|
-
className: string;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
17
|
+
interface IProps$a {
|
|
18
|
+
className: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
21
|
declare const CheckBox: FC<IProps$a>;
|
|
22
22
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
33
33
|
declare const Container: FC<IProps$9>;
|
|
34
34
|
|
|
35
35
|
declare const Dropdown: FC<any>;
|
|
36
36
|
|
|
37
37
|
declare const Header: FC<any>;
|
|
38
38
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
53
53
|
declare const Image: FC<IProps$8>;
|
|
54
54
|
|
|
55
55
|
declare const Label: FC<any>;
|
|
56
56
|
|
|
57
|
-
type IProps$7 = JSX.IntrinsicElements["hr"];
|
|
57
|
+
type IProps$7 = JSX.IntrinsicElements["hr"];
|
|
58
58
|
declare const Linebreak: FC<IProps$7>;
|
|
59
59
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
69
69
|
declare const Link: FC<ILink>;
|
|
70
70
|
|
|
71
71
|
declare const List: FC<any>;
|
|
72
72
|
|
|
73
73
|
declare const Paragraph: FC<any>;
|
|
74
74
|
|
|
75
|
-
interface IProps$6 {
|
|
76
|
-
className: string;
|
|
77
|
-
}
|
|
75
|
+
interface IProps$6 {
|
|
76
|
+
className: string;
|
|
77
|
+
}
|
|
78
78
|
declare const ProgressBar: FC<IProps$6>;
|
|
79
79
|
|
|
80
|
-
interface IProps$5 {
|
|
81
|
-
className: string;
|
|
82
|
-
}
|
|
80
|
+
interface IProps$5 {
|
|
81
|
+
className: string;
|
|
82
|
+
}
|
|
83
83
|
declare const Radiobutton: FC<IProps$5>;
|
|
84
84
|
|
|
85
|
-
interface IProps$4 {
|
|
86
|
-
className: string;
|
|
87
|
-
}
|
|
85
|
+
interface IProps$4 {
|
|
86
|
+
className: string;
|
|
87
|
+
}
|
|
88
88
|
declare const Slider: FC<IProps$4>;
|
|
89
89
|
|
|
90
|
-
type IProps$3 = JSX.IntrinsicElements["textarea"];
|
|
90
|
+
type IProps$3 = JSX.IntrinsicElements["textarea"];
|
|
91
91
|
declare const Textarea: FC<IProps$3>;
|
|
92
92
|
|
|
93
|
-
type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
93
|
+
type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
94
94
|
declare const Textinput: FC<IProps$2>;
|
|
95
95
|
|
|
96
96
|
declare const Toggle: FC<any>;
|
|
@@ -99,65 +99,65 @@ declare const TypeForm: FC<any>;
|
|
|
99
99
|
|
|
100
100
|
declare const Video: FC<any>;
|
|
101
101
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
110
110
|
declare const Text: FC<IProps$1>;
|
|
111
111
|
|
|
112
112
|
declare const RichText: FC<any>;
|
|
113
113
|
|
|
114
114
|
declare const Repeater: FC<any>;
|
|
115
115
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
151
151
|
declare const KajooComponent: (props: IProps) => react_jsx_runtime.JSX.Element;
|
|
152
152
|
|
|
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;
|
|
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;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
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 };
|