@howone/sdk 0.6.0 → 0.7.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.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +435 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +407 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -6
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import React$1, { Component, ReactNode } from 'react';
|
|
|
2
2
|
import * as axios from 'axios';
|
|
3
3
|
import { AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosInstance } from 'axios';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import {
|
|
5
|
+
import { ToastOptions } from 'react-toastify';
|
|
6
6
|
|
|
7
7
|
interface FloatingButtonProps {
|
|
8
8
|
text?: string;
|
|
@@ -1169,18 +1169,16 @@ declare function ThemeToggle({ className }: ThemeToggleProps): react_jsx_runtime
|
|
|
1169
1169
|
|
|
1170
1170
|
declare function GlobalToastContainer(): react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
-
|
|
1173
|
-
autoClose?: number | false;
|
|
1174
|
-
id?: string | number;
|
|
1175
|
-
}
|
|
1172
|
+
type ToastType = "success" | "error" | "warning" | "info" | "default";
|
|
1176
1173
|
interface ToastParams {
|
|
1177
1174
|
title?: string;
|
|
1178
1175
|
message?: string;
|
|
1179
1176
|
render?: (closeToast: () => void) => React$1.ReactNode;
|
|
1180
1177
|
component?: React$1.ReactNode;
|
|
1181
|
-
options?:
|
|
1178
|
+
options?: Partial<ToastOptions>;
|
|
1182
1179
|
}
|
|
1183
|
-
|
|
1180
|
+
|
|
1181
|
+
declare const ClayxToast: {
|
|
1184
1182
|
success: (params: ToastParams) => void;
|
|
1185
1183
|
error: (params: ToastParams) => void;
|
|
1186
1184
|
warning: (params: ToastParams) => void;
|
|
@@ -1353,4 +1351,4 @@ declare const elementSelector: {
|
|
|
1353
1351
|
isActive: () => boolean;
|
|
1354
1352
|
};
|
|
1355
1353
|
|
|
1356
|
-
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton, type CostUpdate, DefaultErrorFallback, type ElementSelectionData, ElementSelector, ElementSelectorProvider, type EmailLoginRequest, type EmailLoginResponse, type Environment, ErrorBoundary, type ExecutionResult, FloatingButton, type GenerateImageOptions, type GenerateImageResponse, GlobalToastContainer,
|
|
1354
|
+
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton, ClayxToast, type CostUpdate, DefaultErrorFallback, type ElementSelectionData, ElementSelector, ElementSelectorProvider, type EmailLoginRequest, type EmailLoginResponse, type Environment, ErrorBoundary, type ExecutionResult, FloatingButton, type GenerateImageOptions, type GenerateImageResponse, GlobalToastContainer, HowOneProvider, type HowOneProviderProps, Loading, LoadingSpinner, LoginForm, type NodeExecution, type SSEClient, type SSEClientConfig, type SSEEventPayload, type SSEExecutionOptions, type SSERequest, type SSESession, type SSEStreamConfig, type SSEWorkflowOptions, type SSEWorkflowRequestInit, type SendCodeRequest, type SendCodeResponse, type SourceLocation, ThemeProvider, ThemeToggle, type ToastParams, type ToastType, type UploadOptions, type UploadResponse, type UseElementSelectorReturn, type UseWorkflowStreamState, type Visibility, aiWorkflow, canAccessArtifact, createAIWorkflowClient, createAIWorkflowClientAxios, createArtifactsClient, createClient, createSSEClient, createSSERequest, createUploadClient, elementSelector, type envs, executeSSEWorkflow, getCodeStatus, getDefaultProjectId, getEnvironment, getEnvs, getGlobalEnvironment, getToken, howone, iframeNavigation, initIframeNavigation, isTokenValid, loginWithEmailCode, onAuthStateChanged, parseUserFromToken, sendElementSelectionToParent, sendEmailVerificationCode, setDefaultProjectId, setEnvironment, setToken, showLimitUpgradeToast, unifiedAuth, unifiedOAuth, useAuth, useDebounce, useElementSelector, useHowoneContext, useIsMobile, useTheme, useWorkflowStream };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React$1, { Component, ReactNode } from 'react';
|
|
|
2
2
|
import * as axios from 'axios';
|
|
3
3
|
import { AxiosResponse, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosInstance } from 'axios';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import {
|
|
5
|
+
import { ToastOptions } from 'react-toastify';
|
|
6
6
|
|
|
7
7
|
interface FloatingButtonProps {
|
|
8
8
|
text?: string;
|
|
@@ -1169,18 +1169,16 @@ declare function ThemeToggle({ className }: ThemeToggleProps): react_jsx_runtime
|
|
|
1169
1169
|
|
|
1170
1170
|
declare function GlobalToastContainer(): react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
-
|
|
1173
|
-
autoClose?: number | false;
|
|
1174
|
-
id?: string | number;
|
|
1175
|
-
}
|
|
1172
|
+
type ToastType = "success" | "error" | "warning" | "info" | "default";
|
|
1176
1173
|
interface ToastParams {
|
|
1177
1174
|
title?: string;
|
|
1178
1175
|
message?: string;
|
|
1179
1176
|
render?: (closeToast: () => void) => React$1.ReactNode;
|
|
1180
1177
|
component?: React$1.ReactNode;
|
|
1181
|
-
options?:
|
|
1178
|
+
options?: Partial<ToastOptions>;
|
|
1182
1179
|
}
|
|
1183
|
-
|
|
1180
|
+
|
|
1181
|
+
declare const ClayxToast: {
|
|
1184
1182
|
success: (params: ToastParams) => void;
|
|
1185
1183
|
error: (params: ToastParams) => void;
|
|
1186
1184
|
warning: (params: ToastParams) => void;
|
|
@@ -1353,4 +1351,4 @@ declare const elementSelector: {
|
|
|
1353
1351
|
isActive: () => boolean;
|
|
1354
1352
|
};
|
|
1355
1353
|
|
|
1356
|
-
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton, type CostUpdate, DefaultErrorFallback, type ElementSelectionData, ElementSelector, ElementSelectorProvider, type EmailLoginRequest, type EmailLoginResponse, type Environment, ErrorBoundary, type ExecutionResult, FloatingButton, type GenerateImageOptions, type GenerateImageResponse, GlobalToastContainer,
|
|
1354
|
+
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton, ClayxToast, type CostUpdate, DefaultErrorFallback, type ElementSelectionData, ElementSelector, ElementSelectorProvider, type EmailLoginRequest, type EmailLoginResponse, type Environment, ErrorBoundary, type ExecutionResult, FloatingButton, type GenerateImageOptions, type GenerateImageResponse, GlobalToastContainer, HowOneProvider, type HowOneProviderProps, Loading, LoadingSpinner, LoginForm, type NodeExecution, type SSEClient, type SSEClientConfig, type SSEEventPayload, type SSEExecutionOptions, type SSERequest, type SSESession, type SSEStreamConfig, type SSEWorkflowOptions, type SSEWorkflowRequestInit, type SendCodeRequest, type SendCodeResponse, type SourceLocation, ThemeProvider, ThemeToggle, type ToastParams, type ToastType, type UploadOptions, type UploadResponse, type UseElementSelectorReturn, type UseWorkflowStreamState, type Visibility, aiWorkflow, canAccessArtifact, createAIWorkflowClient, createAIWorkflowClientAxios, createArtifactsClient, createClient, createSSEClient, createSSERequest, createUploadClient, elementSelector, type envs, executeSSEWorkflow, getCodeStatus, getDefaultProjectId, getEnvironment, getEnvs, getGlobalEnvironment, getToken, howone, iframeNavigation, initIframeNavigation, isTokenValid, loginWithEmailCode, onAuthStateChanged, parseUserFromToken, sendElementSelectionToParent, sendEmailVerificationCode, setDefaultProjectId, setEnvironment, setToken, showLimitUpgradeToast, unifiedAuth, unifiedOAuth, useAuth, useDebounce, useElementSelector, useHowoneContext, useIsMobile, useTheme, useWorkflowStream };
|