@kajoo-ai/sitecore-react 22.0.4 → 22.0.6
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 -13
- package/dist/cjs/components/check-box.d.ts +7 -8
- package/dist/cjs/components/container.d.ts +13 -14
- package/dist/cjs/components/drop-down/drop-down.d.ts +3 -4
- package/dist/cjs/components/drop-down/index.d.ts +1 -1
- package/dist/cjs/components/header.d.ts +3 -4
- package/dist/cjs/components/image.d.ts +18 -19
- package/dist/cjs/components/kajoo-component/index.d.ts +1 -1
- package/dist/cjs/components/kajoo-component/kajoo-component.d.ts +39 -40
- package/dist/cjs/components/kajoo-component/services.d.ts +8 -8
- package/dist/cjs/components/label.d.ts +3 -4
- package/dist/cjs/components/linebreak.d.ts +4 -5
- package/dist/cjs/components/link.d.ts +13 -14
- package/dist/cjs/components/list.d.ts +3 -4
- package/dist/cjs/components/paragraph.d.ts +3 -4
- package/dist/cjs/components/progress-bar.d.ts +6 -7
- package/dist/cjs/components/radio-button.d.ts +6 -7
- package/dist/cjs/components/repeater.d.ts +3 -4
- package/dist/cjs/components/rich-text.d.ts +3 -4
- package/dist/cjs/components/slider.d.ts +6 -7
- package/dist/cjs/components/text-area.d.ts +4 -5
- package/dist/cjs/components/text-input.d.ts +4 -5
- package/dist/cjs/components/text.d.ts +11 -12
- package/dist/cjs/components/toggle/index.d.ts +1 -1
- package/dist/cjs/components/toggle/toggle.d.ts +3 -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 +3 -4
- package/dist/cjs/factories/KajooLayoutFactory.d.ts +12 -13
- 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 -4
- package/dist/cjs/utils.d.ts +6 -6
- package/dist/esm/components/button.d.ts +12 -13
- package/dist/esm/components/check-box.d.ts +7 -8
- package/dist/esm/components/container.d.ts +13 -14
- package/dist/esm/components/drop-down/drop-down.d.ts +3 -4
- package/dist/esm/components/drop-down/index.d.ts +1 -1
- package/dist/esm/components/header.d.ts +3 -4
- package/dist/esm/components/image.d.ts +18 -19
- package/dist/esm/components/kajoo-component/index.d.ts +1 -1
- package/dist/esm/components/kajoo-component/kajoo-component.d.ts +39 -40
- package/dist/esm/components/kajoo-component/services.d.ts +8 -8
- package/dist/esm/components/label.d.ts +3 -4
- package/dist/esm/components/linebreak.d.ts +4 -5
- package/dist/esm/components/link.d.ts +13 -14
- package/dist/esm/components/list.d.ts +3 -4
- package/dist/esm/components/paragraph.d.ts +3 -4
- package/dist/esm/components/progress-bar.d.ts +6 -7
- package/dist/esm/components/radio-button.d.ts +6 -7
- package/dist/esm/components/repeater.d.ts +3 -4
- package/dist/esm/components/rich-text.d.ts +3 -4
- package/dist/esm/components/slider.d.ts +6 -7
- package/dist/esm/components/text-area.d.ts +4 -5
- package/dist/esm/components/text-input.d.ts +4 -5
- package/dist/esm/components/text.d.ts +11 -12
- package/dist/esm/components/toggle/index.d.ts +1 -1
- package/dist/esm/components/toggle/toggle.d.ts +3 -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 +3 -4
- package/dist/esm/factories/KajooLayoutFactory.d.ts +12 -13
- 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 -4
- package/dist/esm/utils.d.ts +6 -6
- package/dist/index.d.ts +109 -110
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -55
package/dist/index.d.ts
CHANGED
|
@@ -1,97 +1,96 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import React, { ReactNode, FC } from 'react';
|
|
4
3
|
import { ImageSizeParameters, Link as Link$1, RouteData, LayoutServiceData } from '@sitecore-jss/sitecore-jss-react';
|
|
5
4
|
import { JsonObject } from 'type-fest';
|
|
6
5
|
|
|
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
|
-
}
|
|
6
|
+
type ITextField$1 = {
|
|
7
|
+
value?: string | number;
|
|
8
|
+
editable?: string;
|
|
9
|
+
};
|
|
10
|
+
interface IButton {
|
|
11
|
+
text: ITextField$1 | string;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
16
15
|
declare const Button: ({ text, children, ...rest }: IButton) => react_jsx_runtime.JSX.Element;
|
|
17
16
|
|
|
18
|
-
interface IProps$a {
|
|
19
|
-
className: string;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
}
|
|
17
|
+
interface IProps$a {
|
|
18
|
+
className: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
22
21
|
declare const CheckBox: FC<IProps$a>;
|
|
23
22
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
34
33
|
declare const Container: FC<IProps$9>;
|
|
35
34
|
|
|
36
35
|
declare const Dropdown: FC<any>;
|
|
37
36
|
|
|
38
37
|
declare const Header: FC<any>;
|
|
39
38
|
|
|
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
|
-
}
|
|
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 | ImageSizeParameters[];
|
|
52
|
+
}
|
|
54
53
|
declare const Image: FC<IProps$8>;
|
|
55
54
|
|
|
56
55
|
declare const Label: FC<any>;
|
|
57
56
|
|
|
58
|
-
type IProps$7 = JSX.IntrinsicElements["hr"];
|
|
57
|
+
type IProps$7 = JSX.IntrinsicElements["hr"];
|
|
59
58
|
declare const Linebreak: FC<IProps$7>;
|
|
60
59
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
70
69
|
declare const Link: FC<ILink>;
|
|
71
70
|
|
|
72
71
|
declare const List: FC<any>;
|
|
73
72
|
|
|
74
73
|
declare const Paragraph: FC<any>;
|
|
75
74
|
|
|
76
|
-
interface IProps$6 {
|
|
77
|
-
className: string;
|
|
78
|
-
}
|
|
75
|
+
interface IProps$6 {
|
|
76
|
+
className: string;
|
|
77
|
+
}
|
|
79
78
|
declare const ProgressBar: FC<IProps$6>;
|
|
80
79
|
|
|
81
|
-
interface IProps$5 {
|
|
82
|
-
className: string;
|
|
83
|
-
}
|
|
80
|
+
interface IProps$5 {
|
|
81
|
+
className: string;
|
|
82
|
+
}
|
|
84
83
|
declare const Radiobutton: FC<IProps$5>;
|
|
85
84
|
|
|
86
|
-
interface IProps$4 {
|
|
87
|
-
className: string;
|
|
88
|
-
}
|
|
85
|
+
interface IProps$4 {
|
|
86
|
+
className: string;
|
|
87
|
+
}
|
|
89
88
|
declare const Slider: FC<IProps$4>;
|
|
90
89
|
|
|
91
|
-
type IProps$3 = JSX.IntrinsicElements["textarea"];
|
|
90
|
+
type IProps$3 = JSX.IntrinsicElements["textarea"];
|
|
92
91
|
declare const Textarea: FC<IProps$3>;
|
|
93
92
|
|
|
94
|
-
type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
93
|
+
type IProps$2 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
95
94
|
declare const Textinput: FC<IProps$2>;
|
|
96
95
|
|
|
97
96
|
declare const Toggle: FC<any>;
|
|
@@ -100,65 +99,65 @@ declare const TypeForm: (props: any) => react_jsx_runtime.JSX.Element;
|
|
|
100
99
|
|
|
101
100
|
declare const Video: FC<any>;
|
|
102
101
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
111
110
|
declare const Text: FC<IProps$1>;
|
|
112
111
|
|
|
113
112
|
declare const RichText: FC<any>;
|
|
114
113
|
|
|
115
114
|
declare const Repeater: FC<any>;
|
|
116
115
|
|
|
117
|
-
interface IProps {
|
|
118
|
-
component: ({ fields, children }: React.PropsWithChildren<{
|
|
119
|
-
fields: JsonObject;
|
|
120
|
-
}>) => JSX.Element;
|
|
121
|
-
datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
|
|
122
|
-
loadingComponent?: JSX.Element;
|
|
123
|
-
errorComponent?: JSX.Element;
|
|
124
|
-
emptyComponent?: JSX.Element;
|
|
125
|
-
children?: JSX.Element[];
|
|
126
|
-
}
|
|
127
|
-
interface IContentstackIntegration {
|
|
128
|
-
provider:
|
|
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:
|
|
140
|
-
hostUrl: string;
|
|
141
|
-
customerCode: string;
|
|
142
|
-
apiToken: string;
|
|
143
|
-
environment: string;
|
|
144
|
-
componentCode: string;
|
|
145
|
-
}
|
|
146
|
-
interface IKontentAiIntegration {
|
|
147
|
-
provider: "kontent.ai";
|
|
148
|
-
environmentId: string;
|
|
149
|
-
deliveryApiToken: string;
|
|
150
|
-
contentItemCodename: string;
|
|
151
|
-
}
|
|
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
|
+
}
|
|
152
151
|
declare const KajooComponent: (props: IProps) => react_jsx_runtime.JSX.Element;
|
|
153
152
|
|
|
154
|
-
interface ILayoutProps extends RouteData {
|
|
155
|
-
layoutData: LayoutServiceData;
|
|
156
|
-
}
|
|
157
|
-
type ILayout = React.FC<ILayoutProps>;
|
|
158
|
-
declare class KajooLayoutFactory {
|
|
159
|
-
private static readonly layoutsByName;
|
|
160
|
-
static getLayout: (route: RouteData) => ILayout;
|
|
161
|
-
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;
|
|
162
161
|
}
|
|
163
162
|
|
|
164
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 };
|