@omni-commerce/sdk 0.29.1 → 0.30.0
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/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -19
- package/dist/index.d.ts +27 -19
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/package.json +1 -1
package/dist/react.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { OmniChatEmbedOptions, OmniApplicationChatOptions } from './embed.cjs';
|
|
4
4
|
export { OmniApplicationOptions, OmniChatApplication, OmniChatSession, OmniFrontendTool } from './embed.cjs';
|
|
@@ -7,7 +7,7 @@ type OmniChatOptions = OmniChatEmbedOptions | OmniApplicationChatOptions;
|
|
|
7
7
|
type OmniProviderProps = OmniChatOptions & {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare function OmniProvider({ children, ...options }: OmniProviderProps):
|
|
10
|
+
declare function OmniProvider({ children, ...options }: OmniProviderProps): react.JSX.Element;
|
|
11
11
|
interface OmniChatProps {
|
|
12
12
|
className?: string;
|
|
13
13
|
style?: CSSProperties;
|
|
@@ -20,8 +20,8 @@ interface OmniChatLayoutProps {
|
|
|
20
20
|
title?: string;
|
|
21
21
|
}
|
|
22
22
|
/** Full-height desktop docking; below 960px a launcher opens a full-height modal. */
|
|
23
|
-
declare function OmniChatLayout({ children, className, title, }: OmniChatLayoutProps):
|
|
23
|
+
declare function OmniChatLayout({ children, className, title, }: OmniChatLayoutProps): react.JSX.Element;
|
|
24
24
|
/** The hosted assistant owns its styles and runtime, so the host needs no Tailwind or assistant-ui dependencies. */
|
|
25
|
-
declare function OmniChat({ className, style, title, onRequestClose, }: OmniChatProps):
|
|
25
|
+
declare function OmniChat({ className, style, title, onRequestClose, }: OmniChatProps): react.JSX.Element;
|
|
26
26
|
|
|
27
27
|
export { OmniApplicationChatOptions, OmniChat, OmniChatEmbedOptions, OmniChatLayout, type OmniChatLayoutProps, type OmniChatProps, OmniProvider, type OmniProviderProps };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { OmniChatEmbedOptions, OmniApplicationChatOptions } from './embed.js';
|
|
4
4
|
export { OmniApplicationOptions, OmniChatApplication, OmniChatSession, OmniFrontendTool } from './embed.js';
|
|
@@ -7,7 +7,7 @@ type OmniChatOptions = OmniChatEmbedOptions | OmniApplicationChatOptions;
|
|
|
7
7
|
type OmniProviderProps = OmniChatOptions & {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare function OmniProvider({ children, ...options }: OmniProviderProps):
|
|
10
|
+
declare function OmniProvider({ children, ...options }: OmniProviderProps): react.JSX.Element;
|
|
11
11
|
interface OmniChatProps {
|
|
12
12
|
className?: string;
|
|
13
13
|
style?: CSSProperties;
|
|
@@ -20,8 +20,8 @@ interface OmniChatLayoutProps {
|
|
|
20
20
|
title?: string;
|
|
21
21
|
}
|
|
22
22
|
/** Full-height desktop docking; below 960px a launcher opens a full-height modal. */
|
|
23
|
-
declare function OmniChatLayout({ children, className, title, }: OmniChatLayoutProps):
|
|
23
|
+
declare function OmniChatLayout({ children, className, title, }: OmniChatLayoutProps): react.JSX.Element;
|
|
24
24
|
/** The hosted assistant owns its styles and runtime, so the host needs no Tailwind or assistant-ui dependencies. */
|
|
25
|
-
declare function OmniChat({ className, style, title, onRequestClose, }: OmniChatProps):
|
|
25
|
+
declare function OmniChat({ className, style, title, onRequestClose, }: OmniChatProps): react.JSX.Element;
|
|
26
26
|
|
|
27
27
|
export { OmniApplicationChatOptions, OmniChat, OmniChatEmbedOptions, OmniChatLayout, type OmniChatLayoutProps, type OmniChatProps, OmniProvider, type OmniProviderProps };
|