@sampleapp.ai/sdk 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sampleapp.ai/sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for your components",
6
6
  "main": "./dist/index.umd.js",
@@ -20,8 +20,10 @@
20
20
  "access": "public"
21
21
  },
22
22
  "scripts": {
23
- "dev": "vite",
24
- "build": "tsc && vite build",
23
+ "dev": "vite --config vite.es.config.ts",
24
+ "build": "npm run build:es && npm run build:umd",
25
+ "build:es": "tsc && vite build --config vite.es.config.ts",
26
+ "build:umd": "vite build --config vite.umd.config.ts",
25
27
  "preview": "vite preview",
26
28
  "type-check": "tsc --noEmit",
27
29
  "prepublishOnly": "npm run build"
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SDKSettings } from '../types';
3
-
4
- interface ChatButtonProps {
5
- settings: SDKSettings;
6
- onClick?: () => void;
7
- }
8
- export declare const ChatButton: React.FC<ChatButtonProps>;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SDKSettings } from '../types';
3
-
4
- interface ModalSearchAndChatProps {
5
- settings: SDKSettings;
6
- onClose?: () => void;
7
- }
8
- export declare const ModalSearchAndChat: React.FC<ModalSearchAndChatProps>;
9
- export {};
package/dist/index.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import { ChatButton } from './components/ChatButton';
2
- import { ModalSearchAndChat } from './components/ModalSearchAndChat';
3
- import { SDKSettings } from './types';
4
-
5
- export { ChatButton, ModalSearchAndChat };
6
- export type { SDKSettings, BaseSettings, AiChatSettings } from './types';
7
- declare class SampleAppSDK {
8
- ModalSearchAndChat: (settings: SDKSettings, container?: HTMLElement) => {
9
- unmount: () => void;
10
- show: () => void;
11
- hide: () => void;
12
- };
13
- ChatButton: (settings: SDKSettings, container?: HTMLElement) => {
14
- unmount: () => void;
15
- };
16
- private createButtonContainer;
17
- }
18
- declare const sdk: SampleAppSDK;
19
- export default sdk;