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