@kajoo-ai/sitecore-react 18.0.1 → 18.0.3
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 +11 -11
- package/dist/cjs/components/check-box.d.ts +7 -7
- package/dist/cjs/components/container.d.ts +13 -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 +3 -3
- package/dist/cjs/components/image.d.ts +17 -17
- package/dist/cjs/components/kajoo-component/index.d.ts +1 -1
- package/dist/cjs/components/kajoo-component/kajoo-component.d.ts +39 -39
- package/dist/cjs/components/kajoo-component/services.d.ts +8 -8
- package/dist/cjs/components/label.d.ts +3 -3
- package/dist/cjs/components/linebreak.d.ts +4 -4
- package/dist/cjs/components/link.d.ts +13 -13
- package/dist/cjs/components/list.d.ts +3 -3
- package/dist/cjs/components/paragraph.d.ts +3 -3
- package/dist/cjs/components/progress-bar.d.ts +6 -6
- package/dist/cjs/components/radio-button.d.ts +6 -6
- package/dist/cjs/components/repeater.d.ts +3 -3
- package/dist/cjs/components/rich-text.d.ts +3 -3
- package/dist/cjs/components/slider.d.ts +6 -6
- package/dist/cjs/components/text-area.d.ts +4 -4
- package/dist/cjs/components/text-input.d.ts +4 -4
- package/dist/cjs/components/text.d.ts +11 -11
- package/dist/cjs/components/toggle/index.d.ts +1 -1
- package/dist/cjs/components/toggle/toggle.d.ts +3 -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 +3 -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 +11 -11
- package/dist/esm/components/check-box.d.ts +7 -7
- package/dist/esm/components/container.d.ts +13 -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 +3 -3
- package/dist/esm/components/image.d.ts +17 -17
- package/dist/esm/components/kajoo-component/index.d.ts +1 -1
- package/dist/esm/components/kajoo-component/kajoo-component.d.ts +39 -39
- package/dist/esm/components/kajoo-component/services.d.ts +8 -8
- package/dist/esm/components/label.d.ts +3 -3
- package/dist/esm/components/linebreak.d.ts +4 -4
- package/dist/esm/components/link.d.ts +13 -13
- package/dist/esm/components/list.d.ts +3 -3
- package/dist/esm/components/paragraph.d.ts +3 -3
- package/dist/esm/components/progress-bar.d.ts +6 -6
- package/dist/esm/components/radio-button.d.ts +6 -6
- package/dist/esm/components/repeater.d.ts +3 -3
- package/dist/esm/components/rich-text.d.ts +3 -3
- package/dist/esm/components/slider.d.ts +6 -6
- package/dist/esm/components/text-area.d.ts +4 -4
- package/dist/esm/components/text-input.d.ts +4 -4
- package/dist/esm/components/text.d.ts +11 -11
- package/dist/esm/components/toggle/index.d.ts +1 -1
- package/dist/esm/components/toggle/toggle.d.ts +3 -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 +3 -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 +108 -108
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -55
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@18.x`, then you should use `@kajoo-ai/sitecore-react@18.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@18.x`, then you should use `@kajoo-ai/sitecore-react@18.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,11 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
type ITextField = {
|
|
3
|
-
value?: string | number;
|
|
4
|
-
editable?: string;
|
|
5
|
-
};
|
|
6
|
-
interface IButton {
|
|
7
|
-
text: ITextField | string;
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: FC<IButton>;
|
|
11
|
-
export default Button;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type ITextField = {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
editable?: string;
|
|
5
|
+
};
|
|
6
|
+
interface IButton {
|
|
7
|
+
text: ITextField | string;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: FC<IButton>;
|
|
11
|
+
export default Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
className: string;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}
|
|
6
|
-
declare const CheckBox: FC<IProps>;
|
|
7
|
-
export default CheckBox;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
className: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
declare const CheckBox: FC<IProps>;
|
|
7
|
+
export default CheckBox;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
bgImage?: {
|
|
4
|
-
value: {
|
|
5
|
-
src: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
tag?: keyof JSX.IntrinsicElements;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
children: ReactNode | ReactNode[];
|
|
11
|
-
}
|
|
12
|
-
declare const Container: FC<IProps>;
|
|
13
|
-
export default Container;
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
bgImage?: {
|
|
4
|
+
value: {
|
|
5
|
+
src: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
children: ReactNode | ReactNode[];
|
|
11
|
+
}
|
|
12
|
+
declare const Container: FC<IProps>;
|
|
13
|
+
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,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Header: FC<any>;
|
|
3
|
-
export default Header;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Header: FC<any>;
|
|
3
|
+
export default Header;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
interface ImageFieldValue {
|
|
3
|
-
[attributeName: string]: unknown;
|
|
4
|
-
src?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ImageField {
|
|
8
|
-
value?: ImageFieldValue;
|
|
9
|
-
editable?: string;
|
|
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 { FC } from "react";
|
|
2
|
+
interface ImageFieldValue {
|
|
3
|
+
[attributeName: string]: unknown;
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ImageField {
|
|
8
|
+
value?: ImageFieldValue;
|
|
9
|
+
editable?: string;
|
|
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 +1 @@
|
|
|
1
|
-
export { default } from "./kajoo-component";
|
|
1
|
+
export { default } from "./kajoo-component";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { JsonObject } from 'type-fest';
|
|
3
|
-
export interface IProps {
|
|
4
|
-
component: ({ fields, children }: React.PropsWithChildren<{
|
|
5
|
-
fields: JsonObject;
|
|
6
|
-
}>) => JSX.Element;
|
|
7
|
-
datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
|
|
8
|
-
loadingComponent?: JSX.Element;
|
|
9
|
-
errorComponent?: JSX.Element;
|
|
10
|
-
emptyComponent?: JSX.Element;
|
|
11
|
-
children?: JSX.Element[];
|
|
12
|
-
}
|
|
13
|
-
export interface IContentstackIntegration {
|
|
14
|
-
provider: 'contentstack';
|
|
15
|
-
hostUrl?: string;
|
|
16
|
-
apiKey: string;
|
|
17
|
-
deliveryToken: string;
|
|
18
|
-
language?: string;
|
|
19
|
-
branch?: string;
|
|
20
|
-
environment: string;
|
|
21
|
-
contentTypeUid: string;
|
|
22
|
-
entryUid: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IConsciaIntegration {
|
|
25
|
-
provider: 'conscia.ai';
|
|
26
|
-
hostUrl: string;
|
|
27
|
-
customerCode: string;
|
|
28
|
-
apiToken: string;
|
|
29
|
-
environment: string;
|
|
30
|
-
componentCode: string;
|
|
31
|
-
}
|
|
32
|
-
export interface IKontentAiIntegration {
|
|
33
|
-
provider: "kontent.ai";
|
|
34
|
-
environmentId: string;
|
|
35
|
-
deliveryApiToken: string;
|
|
36
|
-
contentItemCodename: string;
|
|
37
|
-
}
|
|
38
|
-
declare const KajooComponent: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
export default KajooComponent;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JsonObject } from 'type-fest';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
component: ({ fields, children }: React.PropsWithChildren<{
|
|
5
|
+
fields: JsonObject;
|
|
6
|
+
}>) => JSX.Element;
|
|
7
|
+
datasource: IConsciaIntegration | IContentstackIntegration | IKontentAiIntegration;
|
|
8
|
+
loadingComponent?: JSX.Element;
|
|
9
|
+
errorComponent?: JSX.Element;
|
|
10
|
+
emptyComponent?: JSX.Element;
|
|
11
|
+
children?: JSX.Element[];
|
|
12
|
+
}
|
|
13
|
+
export interface IContentstackIntegration {
|
|
14
|
+
provider: 'contentstack';
|
|
15
|
+
hostUrl?: string;
|
|
16
|
+
apiKey: string;
|
|
17
|
+
deliveryToken: string;
|
|
18
|
+
language?: string;
|
|
19
|
+
branch?: string;
|
|
20
|
+
environment: string;
|
|
21
|
+
contentTypeUid: string;
|
|
22
|
+
entryUid: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IConsciaIntegration {
|
|
25
|
+
provider: 'conscia.ai';
|
|
26
|
+
hostUrl: string;
|
|
27
|
+
customerCode: string;
|
|
28
|
+
apiToken: string;
|
|
29
|
+
environment: string;
|
|
30
|
+
componentCode: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IKontentAiIntegration {
|
|
33
|
+
provider: "kontent.ai";
|
|
34
|
+
environmentId: string;
|
|
35
|
+
deliveryApiToken: string;
|
|
36
|
+
contentItemCodename: string;
|
|
37
|
+
}
|
|
38
|
+
declare const KajooComponent: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
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<
|
|
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,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Label: FC<any>;
|
|
3
|
-
export default Label;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Label: FC<any>;
|
|
3
|
+
export default Label;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export type IProps = JSX.IntrinsicElements["hr"];
|
|
3
|
-
declare const Linebreak: FC<IProps>;
|
|
4
|
-
export default Linebreak;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export type IProps = JSX.IntrinsicElements["hr"];
|
|
3
|
+
declare const Linebreak: FC<IProps>;
|
|
4
|
+
export default Linebreak;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { Link as SitecoreLink } from "@sitecore-jss/sitecore-jss-react";
|
|
3
|
-
type ISitecoreLink = Parameters<typeof SitecoreLink>[0];
|
|
4
|
-
type ITextField = {
|
|
5
|
-
value?: string | number;
|
|
6
|
-
editable?: string;
|
|
7
|
-
};
|
|
8
|
-
interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
|
|
9
|
-
text?: ITextField | string;
|
|
10
|
-
href: ISitecoreLink["field"] | string;
|
|
11
|
-
}
|
|
12
|
-
declare const Link: FC<ILink>;
|
|
13
|
-
export default Link;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { Link as SitecoreLink } from "@sitecore-jss/sitecore-jss-react";
|
|
3
|
+
type ISitecoreLink = Parameters<typeof SitecoreLink>[0];
|
|
4
|
+
type ITextField = {
|
|
5
|
+
value?: string | number;
|
|
6
|
+
editable?: string;
|
|
7
|
+
};
|
|
8
|
+
interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
|
|
9
|
+
text?: ITextField | string;
|
|
10
|
+
href: ISitecoreLink["field"] | string;
|
|
11
|
+
}
|
|
12
|
+
declare const Link: FC<ILink>;
|
|
13
|
+
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,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Paragraph: FC<any>;
|
|
3
|
-
export default Paragraph;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Paragraph: FC<any>;
|
|
3
|
+
export default Paragraph;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
className: string;
|
|
4
|
-
}
|
|
5
|
-
declare const ProgressBar: FC<IProps>;
|
|
6
|
-
export default ProgressBar;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
className: string;
|
|
4
|
+
}
|
|
5
|
+
declare const ProgressBar: FC<IProps>;
|
|
6
|
+
export default ProgressBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
className: string;
|
|
4
|
-
}
|
|
5
|
-
declare const Radiobutton: FC<IProps>;
|
|
6
|
-
export default Radiobutton;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
className: string;
|
|
4
|
+
}
|
|
5
|
+
declare const Radiobutton: FC<IProps>;
|
|
6
|
+
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,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const RichText: FC<any>;
|
|
3
|
-
export default RichText;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const RichText: FC<any>;
|
|
3
|
+
export default RichText;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
className: string;
|
|
4
|
-
}
|
|
5
|
-
declare const Slider: FC<IProps>;
|
|
6
|
-
export default Slider;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
className: string;
|
|
4
|
+
}
|
|
5
|
+
declare const Slider: FC<IProps>;
|
|
6
|
+
export default Slider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export type IProps = JSX.IntrinsicElements["textarea"];
|
|
3
|
-
declare const Textarea: FC<IProps>;
|
|
4
|
-
export default Textarea;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export type IProps = JSX.IntrinsicElements["textarea"];
|
|
3
|
+
declare const Textarea: FC<IProps>;
|
|
4
|
+
export default Textarea;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export type IProps = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
3
|
-
declare const Textinput: FC<IProps>;
|
|
4
|
-
export default Textinput;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export type IProps = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
3
|
+
declare const Textinput: FC<IProps>;
|
|
4
|
+
export default Textinput;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IProps {
|
|
3
|
-
text?: {
|
|
4
|
-
value?: string | number;
|
|
5
|
-
editable?: string;
|
|
6
|
-
} | string;
|
|
7
|
-
tag?: keyof JSX.IntrinsicElements;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare const Text: FC<IProps>;
|
|
11
|
-
export default Text;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface IProps {
|
|
3
|
+
text?: {
|
|
4
|
+
value?: string | number;
|
|
5
|
+
editable?: string;
|
|
6
|
+
} | string;
|
|
7
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare const Text: FC<IProps>;
|
|
11
|
+
export default Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './toggle';
|
|
1
|
+
export { default } from './toggle';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Toggle: FC<any>;
|
|
3
|
-
export default Toggle;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Toggle: FC<any>;
|
|
3
|
+
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,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
declare const Video: FC<any>;
|
|
3
|
-
export default Video;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
declare const Video: FC<any>;
|
|
3
|
+
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";
|