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