@kajoo-ai/sitecore-nextjs 0.0.6 → 0.0.8
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/kajoo-component/index.d.ts +1 -0
- package/dist/cjs/components/kajoo-component/kajoo-component.d.ts +32 -0
- package/dist/cjs/components/kajoo-component/services.d.ts +5 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/kajoo-component/index.d.ts +1 -0
- package/dist/esm/components/kajoo-component/kajoo-component.d.ts +32 -0
- package/dist/esm/components/kajoo-component/services.d.ts +5 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +53 -21
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentProps, FC, ComponentType } from 'react';
|
|
2
3
|
import { Text as Text$1, Link as Link$1 } from '@sitecore-jss/sitecore-jss-nextjs';
|
|
4
|
+
import { JsonObject } from 'type-fest';
|
|
3
5
|
|
|
4
6
|
declare type TextField = ComponentProps<typeof Text$1>["field"];
|
|
5
7
|
|
|
@@ -18,13 +20,13 @@ interface IButton {
|
|
|
18
20
|
}
|
|
19
21
|
declare const Button: FC<IButton>;
|
|
20
22
|
|
|
21
|
-
interface IProps$
|
|
23
|
+
interface IProps$a {
|
|
22
24
|
className: string;
|
|
23
25
|
[key: string]: unknown;
|
|
24
26
|
}
|
|
25
|
-
declare const CheckBox: FC<IProps$
|
|
27
|
+
declare const CheckBox: FC<IProps$a>;
|
|
26
28
|
|
|
27
|
-
interface IProps$
|
|
29
|
+
interface IProps$9 {
|
|
28
30
|
bgImage?: {
|
|
29
31
|
value: {
|
|
30
32
|
src: string;
|
|
@@ -33,7 +35,7 @@ interface IProps$8 {
|
|
|
33
35
|
tag?: keyof JSX.IntrinsicElements | ComponentType;
|
|
34
36
|
[key: string]: any;
|
|
35
37
|
}
|
|
36
|
-
declare const Container: FC<IProps$
|
|
38
|
+
declare const Container: FC<IProps$9>;
|
|
37
39
|
|
|
38
40
|
declare const Dropdown: FC<any>;
|
|
39
41
|
|
|
@@ -46,47 +48,47 @@ interface ImageField {
|
|
|
46
48
|
value?: ImageFieldValue;
|
|
47
49
|
editable?: string;
|
|
48
50
|
}
|
|
49
|
-
interface IProps$
|
|
51
|
+
interface IProps$8 {
|
|
50
52
|
src: ImageField | ImageFieldValue;
|
|
51
53
|
alt?: string;
|
|
52
54
|
[key: string]: any;
|
|
53
55
|
}
|
|
54
|
-
declare const Image: FC<IProps$
|
|
56
|
+
declare const Image: FC<IProps$8>;
|
|
55
57
|
|
|
56
|
-
interface IProps$
|
|
58
|
+
interface IProps$7 {
|
|
57
59
|
list: {
|
|
58
60
|
name: string;
|
|
59
61
|
displayName: string;
|
|
60
62
|
}[];
|
|
61
63
|
[key: string]: any;
|
|
62
64
|
}
|
|
63
|
-
declare const List: FC<IProps$
|
|
65
|
+
declare const List: FC<IProps$7>;
|
|
64
66
|
|
|
65
|
-
interface IProps$
|
|
67
|
+
interface IProps$6 {
|
|
66
68
|
className: string;
|
|
67
69
|
[key: string]: any;
|
|
68
70
|
}
|
|
69
|
-
declare const Radiobutton: FC<IProps$
|
|
71
|
+
declare const Radiobutton: FC<IProps$6>;
|
|
70
72
|
|
|
71
|
-
declare type IProps$
|
|
72
|
-
declare const Textarea: FC<IProps$
|
|
73
|
+
declare type IProps$5 = JSX.IntrinsicElements["textarea"];
|
|
74
|
+
declare const Textarea: FC<IProps$5>;
|
|
73
75
|
|
|
74
|
-
declare type IProps$
|
|
75
|
-
declare const Textinput: FC<IProps$
|
|
76
|
+
declare type IProps$4 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
77
|
+
declare const Textinput: FC<IProps$4>;
|
|
76
78
|
|
|
77
79
|
declare const Toggle: FC<any>;
|
|
78
80
|
|
|
79
81
|
declare const TypeForm: FC<any>;
|
|
80
82
|
|
|
81
83
|
declare type IVideo = Omit<JSX.IntrinsicElements["video"], "src">;
|
|
82
|
-
interface IProps$
|
|
84
|
+
interface IProps$3 extends IVideo {
|
|
83
85
|
src?: {
|
|
84
86
|
url: string;
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
|
-
declare const Video: FC<IProps$
|
|
89
|
+
declare const Video: FC<IProps$3>;
|
|
88
90
|
|
|
89
|
-
interface IProps$
|
|
91
|
+
interface IProps$2 {
|
|
90
92
|
text?: {
|
|
91
93
|
value?: string | number;
|
|
92
94
|
editable?: string;
|
|
@@ -94,17 +96,47 @@ interface IProps$1 {
|
|
|
94
96
|
tag?: keyof JSX.IntrinsicElements;
|
|
95
97
|
[key: string]: any;
|
|
96
98
|
}
|
|
97
|
-
declare const Text: FC<IProps$
|
|
99
|
+
declare const Text: FC<IProps$2>;
|
|
98
100
|
|
|
99
|
-
interface IProps {
|
|
101
|
+
interface IProps$1 {
|
|
100
102
|
value?: {
|
|
101
103
|
value?: string;
|
|
102
104
|
editable?: string;
|
|
103
105
|
} | string;
|
|
104
106
|
[key: string]: any;
|
|
105
107
|
}
|
|
106
|
-
declare const RichText: FC<IProps>;
|
|
108
|
+
declare const RichText: FC<IProps$1>;
|
|
107
109
|
|
|
108
110
|
declare const Repeater: FC<any>;
|
|
109
111
|
|
|
110
|
-
|
|
112
|
+
interface IProps {
|
|
113
|
+
component: ({ fields }: {
|
|
114
|
+
fields: JsonObject;
|
|
115
|
+
}) => JSX.Element;
|
|
116
|
+
datasource: IConsciaIntegration | IContentstackIntegration;
|
|
117
|
+
loadingComponent?: JSX.Element;
|
|
118
|
+
errorComponent?: JSX.Element;
|
|
119
|
+
emptyComponent?: JSX.Element;
|
|
120
|
+
}
|
|
121
|
+
interface IContentstackIntegration {
|
|
122
|
+
provider: "contentstack";
|
|
123
|
+
hostUrl?: string;
|
|
124
|
+
apiKey: string;
|
|
125
|
+
deliveryToken: string;
|
|
126
|
+
language?: string;
|
|
127
|
+
branch?: string;
|
|
128
|
+
environment: string;
|
|
129
|
+
contentTypeUid: string;
|
|
130
|
+
entryUid: string;
|
|
131
|
+
}
|
|
132
|
+
interface IConsciaIntegration {
|
|
133
|
+
provider: "conscia.ai";
|
|
134
|
+
hostUrl: string;
|
|
135
|
+
customerCode: string;
|
|
136
|
+
apiToken: string;
|
|
137
|
+
environment: string;
|
|
138
|
+
componentCode: string;
|
|
139
|
+
}
|
|
140
|
+
declare const KajooComponent: (props: IProps) => JSX.Element;
|
|
141
|
+
|
|
142
|
+
export { Button, CheckBox as Checkbox, IProps$a as CheckboxProps, Container, Dropdown, Image, KajooComponent, IProps as KajooComponentProps, Link, List, Radiobutton, IProps$6 as RadiobuttonProps, Repeater, RichText, Text, Textarea, IProps$5 as TextareaProps, Textinput, IProps$4 as TextinputProps, Toggle, TypeForm, Video };
|