@howone/sdk 0.5.3 → 0.6.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 +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +175 -463
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +147 -435
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -4
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 { GoeyToastOptions } from 'goey-toast';
|
|
6
6
|
|
|
7
7
|
interface FloatingButtonProps {
|
|
8
8
|
text?: string;
|
|
@@ -1169,14 +1169,18 @@ declare function ThemeToggle({ className }: ThemeToggleProps): react_jsx_runtime
|
|
|
1169
1169
|
|
|
1170
1170
|
declare function GlobalToastContainer(): react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
+
interface LegacyToastOptions {
|
|
1173
|
+
autoClose?: number | false;
|
|
1174
|
+
id?: string | number;
|
|
1175
|
+
}
|
|
1172
1176
|
interface ToastParams {
|
|
1173
1177
|
title?: string;
|
|
1174
1178
|
message?: string;
|
|
1175
1179
|
render?: (closeToast: () => void) => React$1.ReactNode;
|
|
1176
1180
|
component?: React$1.ReactNode;
|
|
1177
|
-
options?: Partial<
|
|
1181
|
+
options?: LegacyToastOptions & Partial<GoeyToastOptions>;
|
|
1178
1182
|
}
|
|
1179
|
-
declare const
|
|
1183
|
+
declare const GoeyToast: {
|
|
1180
1184
|
success: (params: ToastParams) => void;
|
|
1181
1185
|
error: (params: ToastParams) => void;
|
|
1182
1186
|
warning: (params: ToastParams) => void;
|
|
@@ -1349,4 +1353,4 @@ declare const elementSelector: {
|
|
|
1349
1353
|
isActive: () => boolean;
|
|
1350
1354
|
};
|
|
1351
1355
|
|
|
1352
|
-
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton,
|
|
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, GoeyToast, 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 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 { GoeyToastOptions } from 'goey-toast';
|
|
6
6
|
|
|
7
7
|
interface FloatingButtonProps {
|
|
8
8
|
text?: string;
|
|
@@ -1169,14 +1169,18 @@ declare function ThemeToggle({ className }: ThemeToggleProps): react_jsx_runtime
|
|
|
1169
1169
|
|
|
1170
1170
|
declare function GlobalToastContainer(): react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
+
interface LegacyToastOptions {
|
|
1173
|
+
autoClose?: number | false;
|
|
1174
|
+
id?: string | number;
|
|
1175
|
+
}
|
|
1172
1176
|
interface ToastParams {
|
|
1173
1177
|
title?: string;
|
|
1174
1178
|
message?: string;
|
|
1175
1179
|
render?: (closeToast: () => void) => React$1.ReactNode;
|
|
1176
1180
|
component?: React$1.ReactNode;
|
|
1177
|
-
options?: Partial<
|
|
1181
|
+
options?: LegacyToastOptions & Partial<GoeyToastOptions>;
|
|
1178
1182
|
}
|
|
1179
|
-
declare const
|
|
1183
|
+
declare const GoeyToast: {
|
|
1180
1184
|
success: (params: ToastParams) => void;
|
|
1181
1185
|
error: (params: ToastParams) => void;
|
|
1182
1186
|
warning: (params: ToastParams) => void;
|
|
@@ -1349,4 +1353,4 @@ declare const elementSelector: {
|
|
|
1349
1353
|
isActive: () => boolean;
|
|
1350
1354
|
};
|
|
1351
1355
|
|
|
1352
|
-
export { type AIWorkflowClientOptions, type AIWorkflowResponse, AUTH_TOKEN_KEY, type AccessContext, type Artifact, type ArtifactCreateInput, type ArtifactListQuery, type AxiosAIWorkflowOptions, type BatchUploadOptions, type BatchUploadResponse, ClayxButton,
|
|
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, GoeyToast, 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 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 };
|