@kajoo-ai/sitecore-react 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 +33 -33
- package/dist/cjs/components/button.d.ts +7 -12
- 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/header.d.ts +8 -3
- package/dist/cjs/components/image.d.ts +10 -17
- 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/label.d.ts +8 -3
- package/dist/cjs/components/linebreak.d.ts +3 -4
- package/dist/cjs/components/link.d.ts +9 -13
- package/dist/cjs/components/list.d.ts +3 -3
- package/dist/cjs/components/paragraph.d.ts +8 -3
- package/dist/cjs/components/progress-bar.d.ts +5 -6
- package/dist/cjs/components/radio-button.d.ts +3 -6
- package/dist/cjs/components/repeater.d.ts +3 -3
- package/dist/cjs/components/rich-text.d.ts +8 -3
- package/dist/cjs/components/slider.d.ts +5 -6
- 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 -3
- package/dist/cjs/factories/KajooLayoutFactory.d.ts +12 -12
- 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 -3
- package/dist/cjs/utils.d.ts +6 -6
- package/dist/esm/components/button.d.ts +7 -12
- 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/header.d.ts +8 -3
- package/dist/esm/components/image.d.ts +10 -17
- 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/label.d.ts +8 -3
- package/dist/esm/components/linebreak.d.ts +3 -4
- package/dist/esm/components/link.d.ts +9 -13
- package/dist/esm/components/list.d.ts +3 -3
- package/dist/esm/components/paragraph.d.ts +8 -3
- package/dist/esm/components/progress-bar.d.ts +5 -6
- package/dist/esm/components/radio-button.d.ts +3 -6
- package/dist/esm/components/repeater.d.ts +3 -3
- package/dist/esm/components/rich-text.d.ts +8 -3
- package/dist/esm/components/slider.d.ts +5 -6
- 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 -3
- package/dist/esm/factories/KajooLayoutFactory.d.ts +12 -12
- 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 -3
- package/dist/esm/utils.d.ts +6 -6
- package/dist/index.d.ts +139 -138
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +51 -56
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# Kajoo-ai Sitecore React Components
|
|
2
|
-
|
|
3
|
-
## Introduction
|
|
4
|
-
|
|
5
|
-
The Kajoo-ai Sitecore React components are a lightweight wrapper around the `@sitecore-jss/sitecore-jss-react` library. They are designed to provide a seamless integration with your Sitecore JSS React projects.
|
|
6
|
-
|
|
7
|
-
## Compatibility
|
|
8
|
-
|
|
9
|
-
Please ensure to use a version of this package that matches with your project's `@sitecore-jss/sitecore-jss-react` version. For instance, if your project is using `@sitecore-jss/sitecore-jss-react@20.x`, then you should use `@kajoo-ai/sitecore-react@20.x`.
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
You can install the package using either npm or yarn:
|
|
14
|
-
|
|
15
|
-
With npm:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
npm install @kajoo-ai/sitecore-react
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Or with yarn:
|
|
22
|
-
|
|
23
|
-
```sh
|
|
24
|
-
yarn add @kajoo-ai/sitecore-react
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
To utilize Kajoo Sitecore React components in your project, import the specific components you need:
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
import { Text, Image } from "@kajoo-ai/sitecore-react";
|
|
33
|
-
```
|
|
1
|
+
# Kajoo-ai Sitecore React Components
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
The Kajoo-ai Sitecore React components are a lightweight wrapper around the `@sitecore-jss/sitecore-jss-react` library. They are designed to provide a seamless integration with your Sitecore JSS React projects.
|
|
6
|
+
|
|
7
|
+
## Compatibility
|
|
8
|
+
|
|
9
|
+
Please ensure to use a version of this package that matches with your project's `@sitecore-jss/sitecore-jss-react` version. For instance, if your project is using `@sitecore-jss/sitecore-jss-react@20.x`, then you should use `@kajoo-ai/sitecore-react@20.x`.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
You can install the package using either npm or yarn:
|
|
14
|
+
|
|
15
|
+
With npm:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install @kajoo-ai/sitecore-react
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or with yarn:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
yarn add @kajoo-ai/sitecore-react
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
To utilize Kajoo Sitecore React components in your project, import the specific components you need:
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
import { Text, Image } from "@kajoo-ai/sitecore-react";
|
|
33
|
+
```
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare const Button: FC<IButton>;
|
|
12
|
-
export default Button;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Field } from "@sitecore-jss/sitecore-jss-react";
|
|
3
|
+
interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
text: Field<string> | string;
|
|
5
|
+
}
|
|
6
|
+
declare const Button: ({ text, children, ...rest }: IButton) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Button;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}
|
|
6
|
-
declare const CheckBox: FC<IProps>;
|
|
7
|
-
export default CheckBox;
|
|
1
|
+
export type IProps = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
2
|
+
declare const CheckBox: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CheckBox;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
declare const Container: FC<IProps>;
|
|
13
|
-
export default Container;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ImageField } from "@sitecore-jss/sitecore-jss-react";
|
|
3
|
+
export interface IProps {
|
|
4
|
+
bgImage?: ImageField | ImageField['value'] | string;
|
|
5
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
children?: ReactNode | ReactNode[];
|
|
8
|
+
}
|
|
9
|
+
declare const Container: ({ bgImage, style, tag, children, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Container;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Dropdown: FC<any>;
|
|
3
|
-
export default Dropdown;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Dropdown: FC<any>;
|
|
3
|
+
export default Dropdown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './drop-down';
|
|
1
|
+
export { default } from './drop-down';
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Text as SitecoreText, Field } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
type IScText = ComponentProps<typeof SitecoreText>;
|
|
4
|
+
export interface IProps extends Omit<IScText, 'field'> {
|
|
5
|
+
text?: Field<string> | string;
|
|
6
|
+
}
|
|
7
|
+
declare const Header: ({ text, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Header;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export interface IProps {
|
|
12
|
-
src: ImageField | ImageFieldValue;
|
|
13
|
-
alt?: string;
|
|
14
|
-
srcSet?: string | any[];
|
|
15
|
-
}
|
|
16
|
-
declare const Image: FC<IProps>;
|
|
17
|
-
export default Image;
|
|
1
|
+
import { ImageSizeParameters, Image as SitecoreImage } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
type ISitecoreImage = ComponentProps<typeof SitecoreImage>;
|
|
4
|
+
export interface IProps extends Omit<ISitecoreImage, "field" | "src" | 'srcSet' | 'alt'> {
|
|
5
|
+
src: ISitecoreImage['field'] | string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
srcSet?: string | ImageSizeParameters[];
|
|
8
|
+
}
|
|
9
|
+
declare const Image: ({ src, alt, srcSet: htmlSrcSet, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Image;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./kajoo-component";
|
|
1
|
+
export { default } from "./kajoo-component";
|
|
@@ -1,39 +1,46 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ICompProps {
|
|
3
|
+
fields: any;
|
|
4
|
+
children?: JSX.Element[];
|
|
5
|
+
params?: {
|
|
6
|
+
styles: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
rootClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IProps {
|
|
12
|
+
component: ({ fields, children, params, rootClassName }: React.PropsWithChildren<ICompProps>) => JSX.Element;
|
|
13
|
+
datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
|
|
14
|
+
loadingComponent?: JSX.Element;
|
|
15
|
+
errorComponent?: JSX.Element;
|
|
16
|
+
emptyComponent?: JSX.Element;
|
|
17
|
+
children?: JSX.Element[];
|
|
18
|
+
rootClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IContentstackIntegration {
|
|
21
|
+
provider: "contentstack";
|
|
22
|
+
hostUrl?: string;
|
|
23
|
+
apiKey: string;
|
|
24
|
+
deliveryToken: string;
|
|
25
|
+
language?: string;
|
|
26
|
+
branch?: string;
|
|
27
|
+
environment: string;
|
|
28
|
+
contentTypeUid: string;
|
|
29
|
+
entryUid: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IConsciaIntegration {
|
|
32
|
+
provider: "conscia.ai";
|
|
33
|
+
hostUrl: string;
|
|
34
|
+
customerCode: string;
|
|
35
|
+
apiToken: string;
|
|
36
|
+
environment: string;
|
|
37
|
+
componentCode: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IKontentAiIntegration {
|
|
40
|
+
provider: "kontent.ai";
|
|
41
|
+
environmentId: string;
|
|
42
|
+
deliveryApiToken: string;
|
|
43
|
+
contentItemCodename: string;
|
|
44
|
+
}
|
|
45
|
+
declare const KajooComponent: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export default KajooComponent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IConsciaIntegration, IContentstackIntegration, IKontentAiIntegration } from "./kajoo-component";
|
|
2
|
-
export declare const contentstackService: {
|
|
3
|
-
getSingleEntry: (datasource: IContentstackIntegration) => Promise<any>;
|
|
4
|
-
};
|
|
5
|
-
export declare const queryComponent: (datasource: IConsciaIntegration) => Promise<any>;
|
|
6
|
-
export declare const kontentAiService: {
|
|
7
|
-
getContentItem: (connection: IKontentAiIntegration) => Promise<any>;
|
|
8
|
-
};
|
|
1
|
+
import { IConsciaIntegration, IContentstackIntegration, IKontentAiIntegration } from "./kajoo-component";
|
|
2
|
+
export declare const contentstackService: {
|
|
3
|
+
getSingleEntry: (datasource: IContentstackIntegration) => Promise<any>;
|
|
4
|
+
};
|
|
5
|
+
export declare const queryComponent: (datasource: IConsciaIntegration) => Promise<any>;
|
|
6
|
+
export declare const kontentAiService: {
|
|
7
|
+
getContentItem: (connection: IKontentAiIntegration) => Promise<any>;
|
|
8
|
+
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Text, Field } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
type IScText = ComponentProps<typeof Text>;
|
|
4
|
+
export interface IProps extends Omit<IScText, 'field'> {
|
|
5
|
+
text?: Field<string> | string;
|
|
6
|
+
}
|
|
7
|
+
declare const Label: ({ text, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Label;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default Linebreak;
|
|
1
|
+
export type IProps = JSX.IntrinsicElements["hr"];
|
|
2
|
+
declare const Linebreak: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Linebreak;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
href: ISitecoreLink["field"] | string;
|
|
11
|
-
}
|
|
12
|
-
declare const Link: FC<ILink>;
|
|
13
|
-
export default Link;
|
|
1
|
+
import { Link as SitecoreLink, Field } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
type ISitecoreLink = Parameters<typeof SitecoreLink>[0];
|
|
3
|
+
interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
|
|
4
|
+
text?: Field<string> | string;
|
|
5
|
+
href: ISitecoreLink["field"] | string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
declare const Link: (props: ILink) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Link;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const List: FC<any>;
|
|
3
|
-
export default List;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const List: FC<any>;
|
|
3
|
+
export default List;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { RichText, Field } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
type IScRichText = ComponentProps<typeof RichText>;
|
|
4
|
+
export interface IProps extends Omit<IScRichText, 'field'> {
|
|
5
|
+
text?: Field<string> | string;
|
|
6
|
+
}
|
|
7
|
+
declare const Paragraph: ({ tag, text, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Paragraph;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default ProgressBar;
|
|
1
|
+
export interface IProps {
|
|
2
|
+
className: string;
|
|
3
|
+
}
|
|
4
|
+
declare const ProgressBar: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default ProgressBar;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const Radiobutton: FC<IProps>;
|
|
6
|
-
export default Radiobutton;
|
|
1
|
+
export type IProps = Omit<JSX.IntrinsicElements["input"], "type" | 'name'>;
|
|
2
|
+
declare const Radiobutton: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Radiobutton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Repeater: FC<any>;
|
|
3
|
-
export default Repeater;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Repeater: FC<any>;
|
|
3
|
+
export default Repeater;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Field, RichText as SitecoreRichText } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
type ScRichTextProps = ComponentProps<typeof SitecoreRichText>;
|
|
4
|
+
export interface IProps extends Omit<ScRichTextProps, 'field'> {
|
|
5
|
+
value?: Field<string> | string;
|
|
6
|
+
}
|
|
7
|
+
declare const RichText: ({ value, tag, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default RichText;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default Slider;
|
|
1
|
+
export interface IProps {
|
|
2
|
+
className: string;
|
|
3
|
+
}
|
|
4
|
+
declare const Slider: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default Slider;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default Textarea;
|
|
1
|
+
export type IProps = JSX.IntrinsicElements["textarea"];
|
|
2
|
+
declare const Textarea: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Textarea;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default Textinput;
|
|
1
|
+
export type IProps = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
2
|
+
declare const Textinput: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Textinput;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const Text: FC<IProps>;
|
|
11
|
-
export default Text;
|
|
1
|
+
import { Text as SitecoreText, Field } from '@sitecore-jss/sitecore-jss-react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
type IScText = ComponentProps<typeof SitecoreText>;
|
|
4
|
+
export interface IProps extends Omit<IScText, 'field' | 'tag'> {
|
|
5
|
+
text?: Field<string> | string;
|
|
6
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
7
|
+
}
|
|
8
|
+
declare const Text: ({ text, children, tag, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './toggle';
|
|
1
|
+
export { default } from './toggle';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
interface IProps extends Omit<JSX.IntrinsicElements["input"], "type"> {
|
|
2
|
+
slider?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const Toggle: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default Toggle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './type-form';
|
|
1
|
+
export { default } from './type-form';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const TypeForm: FC<any>;
|
|
3
|
-
export default TypeForm;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const TypeForm: FC<any>;
|
|
3
|
+
export default TypeForm;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Field } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import { VideoHTMLAttributes } from "react";
|
|
3
|
+
export interface IProps extends Omit<VideoHTMLAttributes<HTMLVideoElement>, 'src' | 'muted'> {
|
|
4
|
+
src?: Field<string> | string;
|
|
5
|
+
muted?: boolean | string;
|
|
6
|
+
}
|
|
7
|
+
declare const Video: ({ src, ...rest }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Video;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RouteData, LayoutServiceData } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface ILayoutProps extends RouteData {
|
|
4
|
-
layoutData: LayoutServiceData;
|
|
5
|
-
}
|
|
6
|
-
type ILayout = React.FC<ILayoutProps>;
|
|
7
|
-
export declare class KajooLayoutFactory {
|
|
8
|
-
private static readonly layoutsByName;
|
|
9
|
-
static getLayout: (route: RouteData) => ILayout;
|
|
10
|
-
static registerLayout: (name: string, layout: ILayout) => void;
|
|
11
|
-
}
|
|
12
|
-
export default KajooLayoutFactory;
|
|
1
|
+
import { RouteData, LayoutServiceData } from "@sitecore-jss/sitecore-jss-react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface ILayoutProps extends RouteData {
|
|
4
|
+
layoutData: LayoutServiceData;
|
|
5
|
+
}
|
|
6
|
+
type ILayout = React.FC<ILayoutProps>;
|
|
7
|
+
export declare class KajooLayoutFactory {
|
|
8
|
+
private static readonly layoutsByName;
|
|
9
|
+
static getLayout: (route: RouteData) => ILayout;
|
|
10
|
+
static registerLayout: (name: string, layout: ILayout) => void;
|
|
11
|
+
}
|
|
12
|
+
export default KajooLayoutFactory;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Exported Components
|
|
3
|
-
*/
|
|
4
|
-
export { default as Button } from "./components/button";
|
|
5
|
-
export { default as Checkbox } from "./components/check-box";
|
|
6
|
-
export { default as Container } from "./components/container";
|
|
7
|
-
export { default as Dropdown } from "./components/drop-down";
|
|
8
|
-
export { default as Header } from "./components/header";
|
|
9
|
-
export { default as Image } from "./components/image";
|
|
10
|
-
export { default as Label } from "./components/label";
|
|
11
|
-
export { default as Linebreak } from "./components/linebreak";
|
|
12
|
-
export { default as Link } from "./components/link";
|
|
13
|
-
export { default as List } from "./components/list";
|
|
14
|
-
export { default as Paragraph } from "./components/paragraph";
|
|
15
|
-
export { default as ProgressBar } from "./components/progress-bar";
|
|
16
|
-
export { default as Radiobutton } from "./components/radio-button";
|
|
17
|
-
export { default as Slider } from "./components/slider";
|
|
18
|
-
export { default as Textarea } from "./components/text-area";
|
|
19
|
-
export { default as Textinput } from "./components/text-input";
|
|
20
|
-
export { default as Toggle } from "./components/toggle";
|
|
21
|
-
export { default as TypeForm } from "./components/type-form";
|
|
22
|
-
export { default as Video } from "./components/video";
|
|
23
|
-
export { default as Text } from "./components/text";
|
|
24
|
-
export { default as RichText } from "./components/rich-text";
|
|
25
|
-
export { default as Repeater } from "./components/repeater";
|
|
26
|
-
export { default as KajooComponent } from "./components/kajoo-component";
|
|
27
|
-
export { default as KajooLayoutFactory } from "./factories/KajooLayoutFactory";
|
|
28
|
-
/**
|
|
29
|
-
* Exported Types
|
|
30
|
-
*/
|
|
31
|
-
export type { IProps as CheckboxProps } from "./components/check-box";
|
|
32
|
-
export type { IProps as LinebreakProps } from "./components/linebreak";
|
|
33
|
-
export type { IProps as RadiobuttonProps } from "./components/radio-button";
|
|
34
|
-
export type { IProps as SliderProps } from "./components/slider";
|
|
35
|
-
export type { IProps as TextareaProps } from "./components/text-area";
|
|
36
|
-
export type { IProps as TextinputProps } from "./components/text-input";
|
|
37
|
-
export type { IProps as KajooComponentProps } from "./components/kajoo-component/kajoo-component";
|
|
1
|
+
/**
|
|
2
|
+
* Exported Components
|
|
3
|
+
*/
|
|
4
|
+
export { default as Button } from "./components/button";
|
|
5
|
+
export { default as Checkbox } from "./components/check-box";
|
|
6
|
+
export { default as Container } from "./components/container";
|
|
7
|
+
export { default as Dropdown } from "./components/drop-down";
|
|
8
|
+
export { default as Header } from "./components/header";
|
|
9
|
+
export { default as Image } from "./components/image";
|
|
10
|
+
export { default as Label } from "./components/label";
|
|
11
|
+
export { default as Linebreak } from "./components/linebreak";
|
|
12
|
+
export { default as Link } from "./components/link";
|
|
13
|
+
export { default as List } from "./components/list";
|
|
14
|
+
export { default as Paragraph } from "./components/paragraph";
|
|
15
|
+
export { default as ProgressBar } from "./components/progress-bar";
|
|
16
|
+
export { default as Radiobutton } from "./components/radio-button";
|
|
17
|
+
export { default as Slider } from "./components/slider";
|
|
18
|
+
export { default as Textarea } from "./components/text-area";
|
|
19
|
+
export { default as Textinput } from "./components/text-input";
|
|
20
|
+
export { default as Toggle } from "./components/toggle";
|
|
21
|
+
export { default as TypeForm } from "./components/type-form";
|
|
22
|
+
export { default as Video } from "./components/video";
|
|
23
|
+
export { default as Text } from "./components/text";
|
|
24
|
+
export { default as RichText } from "./components/rich-text";
|
|
25
|
+
export { default as Repeater } from "./components/repeater";
|
|
26
|
+
export { default as KajooComponent } from "./components/kajoo-component";
|
|
27
|
+
export { default as KajooLayoutFactory } from "./factories/KajooLayoutFactory";
|
|
28
|
+
/**
|
|
29
|
+
* Exported Types
|
|
30
|
+
*/
|
|
31
|
+
export type { IProps as CheckboxProps } from "./components/check-box";
|
|
32
|
+
export type { IProps as LinebreakProps } from "./components/linebreak";
|
|
33
|
+
export type { IProps as RadiobuttonProps } from "./components/radio-button";
|
|
34
|
+
export type { IProps as SliderProps } from "./components/slider";
|
|
35
|
+
export type { IProps as TextareaProps } from "./components/text-area";
|
|
36
|
+
export type { IProps as TextinputProps } from "./components/text-input";
|
|
37
|
+
export type { IProps as KajooComponentProps } from "./components/kajoo-component/kajoo-component";
|