@kajoo-ai/sitecore-nextjs 0.0.8 → 0.0.9
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/link.d.ts +1 -1
- package/dist/cjs/components/text-area.d.ts +1 -1
- package/dist/cjs/components/text-input.d.ts +1 -1
- package/dist/cjs/components/video.d.ts +1 -1
- package/dist/cjs/factories/KajooLayoutFactory.d.ts +12 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/esm/components/link.d.ts +1 -1
- package/dist/esm/components/text-area.d.ts +1 -1
- package/dist/esm/components/text-input.d.ts +1 -1
- package/dist/esm/components/video.d.ts +1 -1
- package/dist/esm/factories/KajooLayoutFactory.d.ts +12 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/dist/index.d.ts +18 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentProps, FC, ComponentType } from 'react';
|
|
3
|
-
import { Text as Text$1, Link as Link$1 } from '@sitecore-jss/sitecore-jss-nextjs';
|
|
2
|
+
import React, { ComponentProps, FC, ComponentType } from 'react';
|
|
3
|
+
import { Text as Text$1, Link as Link$1, RouteData, LayoutServiceData } from '@sitecore-jss/sitecore-jss-nextjs';
|
|
4
4
|
import { JsonObject } from 'type-fest';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type TextField = ComponentProps<typeof Text$1>["field"];
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
type ISitecoreLink = Parameters<typeof Link$1>[0];
|
|
9
9
|
interface ILink extends Omit<ISitecoreLink, "field" | "href"> {
|
|
10
10
|
text?: TextField | string;
|
|
11
11
|
href: ISitecoreLink["field"] | string;
|
|
@@ -70,17 +70,17 @@ interface IProps$6 {
|
|
|
70
70
|
}
|
|
71
71
|
declare const Radiobutton: FC<IProps$6>;
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
type IProps$5 = JSX.IntrinsicElements["textarea"];
|
|
74
74
|
declare const Textarea: FC<IProps$5>;
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
type IProps$4 = Omit<JSX.IntrinsicElements["input"], "type">;
|
|
77
77
|
declare const Textinput: FC<IProps$4>;
|
|
78
78
|
|
|
79
79
|
declare const Toggle: FC<any>;
|
|
80
80
|
|
|
81
81
|
declare const TypeForm: FC<any>;
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
type IVideo = Omit<JSX.IntrinsicElements["video"], "src">;
|
|
84
84
|
interface IProps$3 extends IVideo {
|
|
85
85
|
src?: {
|
|
86
86
|
url: string;
|
|
@@ -139,4 +139,14 @@ interface IConsciaIntegration {
|
|
|
139
139
|
}
|
|
140
140
|
declare const KajooComponent: (props: IProps) => JSX.Element;
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
interface ILayoutProps extends RouteData {
|
|
143
|
+
layoutData: LayoutServiceData;
|
|
144
|
+
}
|
|
145
|
+
type ILayout = React.FC<ILayoutProps>;
|
|
146
|
+
declare class KajooLayoutFactory {
|
|
147
|
+
private static readonly layoutsByName;
|
|
148
|
+
static getLayout: (route: RouteData) => ILayout;
|
|
149
|
+
static registerLayout: (name: string, layout: ILayout) => void;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { Button, CheckBox as Checkbox, IProps$a as CheckboxProps, Container, Dropdown, Image, KajooComponent, IProps as KajooComponentProps, KajooLayoutFactory, Link, List, Radiobutton, IProps$6 as RadiobuttonProps, Repeater, RichText, Text, Textarea, IProps$5 as TextareaProps, Textinput, IProps$4 as TextinputProps, Toggle, TypeForm, Video };
|