@deepdesk/deepdesk-sdk 18.2.1-beta.2 → 18.2.1-beta.4
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.js +8 -8
- package/dist/index.d.mts +5 -12
- package/dist/index.d.ts +5 -12
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +72 -72
- package/input.css +1 -1
- package/package.json +32 -32
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
4
4
|
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import { Unsubscribe } from 'redux';
|
|
7
|
-
import * as redux_thunk from 'redux-thunk';
|
|
8
7
|
|
|
9
8
|
declare const styles$s: {
|
|
10
9
|
readonly "content": string;
|
|
@@ -101,6 +100,8 @@ declare const styles$n: {
|
|
|
101
100
|
readonly "actionsIsFixed": string;
|
|
102
101
|
readonly "button": string;
|
|
103
102
|
readonly "buttonDisabled": string;
|
|
103
|
+
readonly "buttonPrimary": string;
|
|
104
|
+
readonly "buttonSecondary": string;
|
|
104
105
|
readonly "buttonWithIcon": string;
|
|
105
106
|
readonly "buttonsContainer": string;
|
|
106
107
|
readonly "dropdownButton": string;
|
|
@@ -126,8 +127,9 @@ interface ButtonProps<T extends React.ElementType> {
|
|
|
126
127
|
title?: string;
|
|
127
128
|
icon?: ReactNode;
|
|
128
129
|
disabled?: boolean;
|
|
130
|
+
variant?: 'primary' | 'secondary';
|
|
129
131
|
}
|
|
130
|
-
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, variant, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
131
133
|
declare const ButtonsContainer: React.FC<{
|
|
132
134
|
children: React.ReactNode;
|
|
133
135
|
}>;
|
|
@@ -3558,16 +3560,7 @@ type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
|
3558
3560
|
name: T;
|
|
3559
3561
|
data: SendEventArgumentMap[P]['data'];
|
|
3560
3562
|
};
|
|
3561
|
-
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>,
|
|
3562
|
-
state?: unknown;
|
|
3563
|
-
dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
|
|
3564
|
-
extra?: unknown;
|
|
3565
|
-
rejectValue?: unknown;
|
|
3566
|
-
serializedErrorType?: unknown;
|
|
3567
|
-
pendingMeta?: unknown;
|
|
3568
|
-
fulfilledMeta?: unknown;
|
|
3569
|
-
rejectedMeta?: unknown;
|
|
3570
|
-
}>;
|
|
3563
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, _reduxjs_toolkit.AsyncThunkConfig>;
|
|
3571
3564
|
|
|
3572
3565
|
type CSSModule = Record<string, string>;
|
|
3573
3566
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
4
4
|
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import { Unsubscribe } from 'redux';
|
|
7
|
-
import * as redux_thunk from 'redux-thunk';
|
|
8
7
|
|
|
9
8
|
declare const styles$s: {
|
|
10
9
|
readonly "content": string;
|
|
@@ -101,6 +100,8 @@ declare const styles$n: {
|
|
|
101
100
|
readonly "actionsIsFixed": string;
|
|
102
101
|
readonly "button": string;
|
|
103
102
|
readonly "buttonDisabled": string;
|
|
103
|
+
readonly "buttonPrimary": string;
|
|
104
|
+
readonly "buttonSecondary": string;
|
|
104
105
|
readonly "buttonWithIcon": string;
|
|
105
106
|
readonly "buttonsContainer": string;
|
|
106
107
|
readonly "dropdownButton": string;
|
|
@@ -126,8 +127,9 @@ interface ButtonProps<T extends React.ElementType> {
|
|
|
126
127
|
title?: string;
|
|
127
128
|
icon?: ReactNode;
|
|
128
129
|
disabled?: boolean;
|
|
130
|
+
variant?: 'primary' | 'secondary';
|
|
129
131
|
}
|
|
130
|
-
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, variant, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
131
133
|
declare const ButtonsContainer: React.FC<{
|
|
132
134
|
children: React.ReactNode;
|
|
133
135
|
}>;
|
|
@@ -3558,16 +3560,7 @@ type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
|
3558
3560
|
name: T;
|
|
3559
3561
|
data: SendEventArgumentMap[P]['data'];
|
|
3560
3562
|
};
|
|
3561
|
-
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>,
|
|
3562
|
-
state?: unknown;
|
|
3563
|
-
dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
|
|
3564
|
-
extra?: unknown;
|
|
3565
|
-
rejectValue?: unknown;
|
|
3566
|
-
serializedErrorType?: unknown;
|
|
3567
|
-
pendingMeta?: unknown;
|
|
3568
|
-
fulfilledMeta?: unknown;
|
|
3569
|
-
rejectedMeta?: unknown;
|
|
3570
|
-
}>;
|
|
3563
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, _reduxjs_toolkit.AsyncThunkConfig>;
|
|
3571
3564
|
|
|
3572
3565
|
type CSSModule = Record<string, string>;
|
|
3573
3566
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|