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