@kajoo-ai/sitecore-react 22.0.5 → 22.0.7
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/dist/cjs/components/button.d.ts +4 -9
- package/dist/cjs/components/check-box.d.ts +2 -6
- package/dist/cjs/components/container.d.ts +5 -8
- package/dist/cjs/components/header.d.ts +7 -2
- package/dist/cjs/components/image.d.ts +6 -14
- package/dist/cjs/components/kajoo-component/kajoo-component.d.ts +11 -4
- package/dist/cjs/components/label.d.ts +7 -2
- package/dist/cjs/components/linebreak.d.ts +1 -2
- package/dist/cjs/components/link.d.ts +4 -8
- package/dist/cjs/components/paragraph.d.ts +7 -2
- package/dist/cjs/components/progress-bar.d.ts +1 -2
- package/dist/cjs/components/radio-button.d.ts +2 -5
- package/dist/cjs/components/rich-text.d.ts +7 -2
- package/dist/cjs/components/slider.d.ts +1 -2
- package/dist/cjs/components/text-area.d.ts +1 -2
- package/dist/cjs/components/text-input.d.ts +1 -2
- package/dist/cjs/components/text.d.ts +6 -8
- package/dist/cjs/components/toggle/toggle.d.ts +4 -2
- package/dist/cjs/components/video.d.ts +7 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils.d.ts +1 -1
- package/dist/esm/components/button.d.ts +4 -9
- package/dist/esm/components/check-box.d.ts +2 -6
- package/dist/esm/components/container.d.ts +5 -8
- package/dist/esm/components/header.d.ts +7 -2
- package/dist/esm/components/image.d.ts +6 -14
- package/dist/esm/components/kajoo-component/kajoo-component.d.ts +11 -4
- package/dist/esm/components/label.d.ts +7 -2
- package/dist/esm/components/linebreak.d.ts +1 -2
- package/dist/esm/components/link.d.ts +4 -8
- package/dist/esm/components/paragraph.d.ts +7 -2
- package/dist/esm/components/progress-bar.d.ts +1 -2
- package/dist/esm/components/radio-button.d.ts +2 -5
- package/dist/esm/components/rich-text.d.ts +7 -2
- package/dist/esm/components/slider.d.ts +1 -2
- package/dist/esm/components/text-area.d.ts +1 -2
- package/dist/esm/components/text-input.d.ts +1 -2
- package/dist/esm/components/text.d.ts +6 -8
- package/dist/esm/components/toggle/toggle.d.ts +4 -2
- package/dist/esm/components/video.d.ts +7 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils.d.ts +1 -1
- package/dist/index.d.ts +75 -74
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,127 +1,128 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React, { ReactNode, FC } from 'react';
|
|
3
|
-
import { ImageSizeParameters, Link as Link$1, RouteData, LayoutServiceData } from '@sitecore-jss/sitecore-jss-react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
value?: string | number;
|
|
8
|
-
editable?: string;
|
|
9
|
-
};
|
|
10
|
-
interface IButton {
|
|
11
|
-
text: ITextField$1 | string;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
[key: string]: unknown;
|
|
2
|
+
import React, { ReactNode, FC, ComponentProps, VideoHTMLAttributes } from 'react';
|
|
3
|
+
import { Field, ImageField, Text as Text$1, ImageSizeParameters, Image as Image$1, Link as Link$1, RichText as RichText$1, RouteData, LayoutServiceData } from '@sitecore-jss/sitecore-jss-react';
|
|
4
|
+
|
|
5
|
+
interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
text: Field<string> | string;
|
|
14
7
|
}
|
|
15
8
|
declare const Button: ({ text, children, ...rest }: IButton) => react_jsx_runtime.JSX.Element;
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
declare const CheckBox: FC<IProps$a>;
|
|
10
|
+
type IProps$g = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
11
|
+
declare const CheckBox: (props: IProps$g) => react_jsx_runtime.JSX.Element;
|
|
22
12
|
|
|
23
|
-
interface IProps$
|
|
24
|
-
bgImage?:
|
|
25
|
-
value: {
|
|
26
|
-
src: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
13
|
+
interface IProps$f {
|
|
14
|
+
bgImage?: ImageField | ImageField['value'] | string;
|
|
29
15
|
tag?: keyof JSX.IntrinsicElements;
|
|
30
16
|
[key: string]: any;
|
|
31
|
-
children
|
|
17
|
+
children?: ReactNode | ReactNode[];
|
|
32
18
|
}
|
|
33
|
-
declare const Container:
|
|
19
|
+
declare const Container: ({ bgImage, style, tag, children, ...rest }: IProps$f) => react_jsx_runtime.JSX.Element;
|
|
34
20
|
|
|
35
21
|
declare const Dropdown: FC<any>;
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
[attributeName: string]: unknown;
|
|
41
|
-
src?: string;
|
|
42
|
-
alt?: string;
|
|
43
|
-
}
|
|
44
|
-
interface ImageField {
|
|
45
|
-
value?: ImageFieldValue;
|
|
46
|
-
editable?: string;
|
|
23
|
+
type IScText$2 = ComponentProps<typeof Text$1>;
|
|
24
|
+
interface IProps$e extends Omit<IScText$2, 'field'> {
|
|
25
|
+
text?: Field<string> | string;
|
|
47
26
|
}
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
declare const Header: ({ text, ...rest }: IProps$e) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type ISitecoreImage = ComponentProps<typeof Image$1>;
|
|
30
|
+
interface IProps$d extends Omit<ISitecoreImage, "field" | "src" | 'srcSet' | 'alt'> {
|
|
31
|
+
src: ISitecoreImage['field'] | string;
|
|
50
32
|
alt?: string;
|
|
51
33
|
srcSet?: string | ImageSizeParameters[];
|
|
52
34
|
}
|
|
53
|
-
declare const Image:
|
|
35
|
+
declare const Image: ({ src, alt, srcSet: htmlSrcSet, ...rest }: IProps$d) => react_jsx_runtime.JSX.Element;
|
|
54
36
|
|
|
55
|
-
|
|
37
|
+
type IScText$1 = ComponentProps<typeof Text$1>;
|
|
38
|
+
interface IProps$c extends Omit<IScText$1, 'field'> {
|
|
39
|
+
text?: Field<string> | string;
|
|
40
|
+
}
|
|
41
|
+
declare const Label: ({ text, ...rest }: IProps$c) => react_jsx_runtime.JSX.Element;
|
|
56
42
|
|
|
57
|
-
type IProps$
|
|
58
|
-
declare const Linebreak:
|
|
43
|
+
type IProps$b = JSX.IntrinsicElements["hr"];
|
|
44
|
+
declare const Linebreak: (props: IProps$b) => react_jsx_runtime.JSX.Element;
|
|
59
45
|
|
|
60
46
|
type ISitecoreLink = Parameters<typeof Link$1>[0];
|
|
61
|
-
type ITextField = {
|
|
62
|
-
value?: string | number;
|
|
63
|
-
editable?: string;
|
|
64
|
-
};
|
|
65
47
|
interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
|
|
66
|
-
text?:
|
|
48
|
+
text?: Field<string> | string;
|
|
67
49
|
href: ISitecoreLink["field"] | string;
|
|
50
|
+
[key: string]: any;
|
|
68
51
|
}
|
|
69
|
-
declare const Link:
|
|
52
|
+
declare const Link: (props: ILink) => react_jsx_runtime.JSX.Element;
|
|
70
53
|
|
|
71
54
|
declare const List: FC<any>;
|
|
72
55
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
className: string;
|
|
56
|
+
type IScRichText = ComponentProps<typeof RichText$1>;
|
|
57
|
+
interface IProps$a extends Omit<IScRichText, 'field'> {
|
|
58
|
+
text?: Field<string> | string;
|
|
77
59
|
}
|
|
78
|
-
declare const
|
|
60
|
+
declare const Paragraph: ({ tag, text, ...rest }: IProps$a) => react_jsx_runtime.JSX.Element;
|
|
79
61
|
|
|
80
|
-
interface IProps$
|
|
62
|
+
interface IProps$9 {
|
|
81
63
|
className: string;
|
|
82
64
|
}
|
|
83
|
-
declare const
|
|
65
|
+
declare const ProgressBar: (props: IProps$9) => react_jsx_runtime.JSX.Element;
|
|
84
66
|
|
|
85
|
-
|
|
67
|
+
type IProps$8 = Omit<JSX.IntrinsicElements["input"], "type" | 'name'>;
|
|
68
|
+
declare const Radiobutton: (props: IProps$8) => react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
interface IProps$7 {
|
|
86
71
|
className: string;
|
|
87
72
|
}
|
|
88
|
-
declare const Slider:
|
|
73
|
+
declare const Slider: (props: IProps$7) => react_jsx_runtime.JSX.Element;
|
|
89
74
|
|
|
90
|
-
type IProps$
|
|
91
|
-
declare const Textarea:
|
|
75
|
+
type IProps$6 = JSX.IntrinsicElements["textarea"];
|
|
76
|
+
declare const Textarea: (props: IProps$6) => react_jsx_runtime.JSX.Element;
|
|
92
77
|
|
|
93
|
-
type IProps$
|
|
94
|
-
declare const Textinput:
|
|
78
|
+
type IProps$5 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
79
|
+
declare const Textinput: (props: IProps$5) => react_jsx_runtime.JSX.Element;
|
|
95
80
|
|
|
96
|
-
|
|
81
|
+
interface IProps$4 extends Omit<JSX.IntrinsicElements["input"], "type"> {
|
|
82
|
+
slider?: string;
|
|
83
|
+
}
|
|
84
|
+
declare const Toggle: (props: IProps$4) => react_jsx_runtime.JSX.Element;
|
|
97
85
|
|
|
98
86
|
declare const TypeForm: (props: any) => react_jsx_runtime.JSX.Element;
|
|
99
87
|
|
|
100
|
-
|
|
88
|
+
interface IProps$3 extends Omit<VideoHTMLAttributes<HTMLVideoElement>, 'src' | 'muted'> {
|
|
89
|
+
src?: Field<string> | string;
|
|
90
|
+
muted?: boolean | string;
|
|
91
|
+
}
|
|
92
|
+
declare const Video: ({ src, ...rest }: IProps$3) => react_jsx_runtime.JSX.Element;
|
|
101
93
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
editable?: string;
|
|
106
|
-
} | string;
|
|
94
|
+
type IScText = ComponentProps<typeof Text$1>;
|
|
95
|
+
interface IProps$2 extends Omit<IScText, 'field' | 'tag'> {
|
|
96
|
+
text?: Field<string> | string;
|
|
107
97
|
tag?: keyof JSX.IntrinsicElements;
|
|
108
|
-
[key: string]: any;
|
|
109
98
|
}
|
|
110
|
-
declare const Text:
|
|
99
|
+
declare const Text: ({ text, children, tag, ...rest }: IProps$2) => react_jsx_runtime.JSX.Element;
|
|
111
100
|
|
|
112
|
-
|
|
101
|
+
type ScRichTextProps = ComponentProps<typeof RichText$1>;
|
|
102
|
+
interface IProps$1 extends Omit<ScRichTextProps, 'field'> {
|
|
103
|
+
value?: Field<string> | string;
|
|
104
|
+
}
|
|
105
|
+
declare const RichText: ({ value, tag, ...rest }: IProps$1) => react_jsx_runtime.JSX.Element;
|
|
113
106
|
|
|
114
107
|
declare const Repeater: FC<any>;
|
|
115
108
|
|
|
109
|
+
interface ICompProps {
|
|
110
|
+
fields: any;
|
|
111
|
+
children?: JSX.Element[];
|
|
112
|
+
params?: {
|
|
113
|
+
styles: string;
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
};
|
|
116
|
+
rootClassName?: string;
|
|
117
|
+
}
|
|
116
118
|
interface IProps {
|
|
117
|
-
component: ({ fields, children, }: React.PropsWithChildren<
|
|
118
|
-
fields: JsonObject;
|
|
119
|
-
}>) => JSX.Element;
|
|
119
|
+
component: ({ fields, children, params, rootClassName }: React.PropsWithChildren<ICompProps>) => JSX.Element;
|
|
120
120
|
datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
|
|
121
121
|
loadingComponent?: JSX.Element;
|
|
122
122
|
errorComponent?: JSX.Element;
|
|
123
123
|
emptyComponent?: JSX.Element;
|
|
124
124
|
children?: JSX.Element[];
|
|
125
|
+
rootClassName?: string;
|
|
125
126
|
}
|
|
126
127
|
interface IContentstackIntegration {
|
|
127
128
|
provider: "contentstack";
|
|
@@ -160,4 +161,4 @@ declare class KajooLayoutFactory {
|
|
|
160
161
|
static registerLayout: (name: string, layout: ILayout) => void;
|
|
161
162
|
}
|
|
162
163
|
|
|
163
|
-
export { Button, CheckBox as Checkbox, IProps$
|
|
164
|
+
export { Button, CheckBox as Checkbox, IProps$g as CheckboxProps, Container, Dropdown, Header, Image, KajooComponent, IProps as KajooComponentProps, KajooLayoutFactory, Label, Linebreak, IProps$b as LinebreakProps, Link, List, Paragraph, ProgressBar, Radiobutton, IProps$8 as RadiobuttonProps, Repeater, RichText, Slider, IProps$7 as SliderProps, Text, Textarea, IProps$6 as TextareaProps, Textinput, IProps$5 as TextinputProps, Toggle, TypeForm, Video };
|