@promptbook/components 0.103.0-55 → 0.103.0-66
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/esm/index.es.js +1083 -552
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +2 -2
- package/esm/typings/src/_packages/core.index.d.ts +6 -8
- package/esm/typings/src/_packages/types.index.d.ts +7 -1
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -1
- package/esm/typings/src/book-2.0/agent-source/createCommitmentRegex.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/AgentChat/AgentChat.d.ts +3 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +5 -0
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +52 -0
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +14 -0
- package/esm/typings/src/book-components/icons/SendIcon.d.ts +3 -0
- package/esm/typings/src/commitments/CLOSED/CLOSED.d.ts +4 -0
- package/esm/typings/src/commitments/CLOSED/CLOSED.test.d.ts +4 -0
- package/esm/typings/src/commitments/META_COLOR/META_COLOR.d.ts +6 -0
- package/esm/typings/src/commitments/META_FONT/META_FONT.d.ts +42 -0
- package/esm/typings/src/commitments/USE/USE.d.ts +53 -0
- package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +42 -0
- package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts +1 -0
- package/esm/typings/src/commitments/{IMPORTANT/IMPORTANT.d.ts → USE_MCP/USE_MCP.d.ts} +16 -5
- package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +38 -0
- package/esm/typings/src/commitments/_base/BaseCommitmentDefinition.d.ts +6 -0
- package/esm/typings/src/commitments/index.d.ts +93 -1
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +3 -1
- package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +1 -1
- package/esm/typings/src/playground/playground.d.ts +3 -0
- package/esm/typings/src/types/typeAliases.d.ts +6 -0
- package/esm/typings/src/utils/color/Color.d.ts +9 -1
- package/esm/typings/src/utils/color/css-colors.d.ts +1 -0
- package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +6 -0
- package/esm/typings/src/utils/random/CzechNamePool.d.ts +7 -0
- package/esm/typings/src/utils/random/EnglishNamePool.d.ts +7 -0
- package/esm/typings/src/utils/random/NamePool.d.ts +17 -0
- package/esm/typings/src/utils/random/getNamePool.d.ts +10 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1071 -540
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgent.d.ts +0 -29
- package/esm/typings/src/commitments/registry.d.ts +0 -68
- package/esm/typings/src/playground/playground1.d.ts +0 -2
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { AgentBasicInformation } from '../../book-2.0/agent-source/AgentBasicInformation';
|
|
2
|
-
type PromptbookAgentProps = {
|
|
3
|
-
/**
|
|
4
|
-
* URL of the agent to connect to
|
|
5
|
-
*
|
|
6
|
-
* @example "http://s6.ptbk.io/benjamin-white"
|
|
7
|
-
*/
|
|
8
|
-
agentUrl: string;
|
|
9
|
-
/**
|
|
10
|
-
* Optional metadata to show before the agent is connected
|
|
11
|
-
* Or to override the agent metadata if the agent does not provide it
|
|
12
|
-
*/
|
|
13
|
-
meta?: Partial<AgentBasicInformation['meta']>;
|
|
14
|
-
/**
|
|
15
|
-
* Callback when the window is opened or closed
|
|
16
|
-
*/
|
|
17
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Renders a floating agent button that opens a chat window with the remote agent.
|
|
21
|
-
*
|
|
22
|
-
* @public exported from `@promptbook/components`
|
|
23
|
-
*/
|
|
24
|
-
export declare function PromptbookAgent(props: PromptbookAgentProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
26
|
-
/**
|
|
27
|
-
* TODO: !!! Load the full branding
|
|
28
|
-
* TODO: !!! <promptbook-agent> element
|
|
29
|
-
*/
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { BookCommitment } from './_base/BookCommitment';
|
|
2
|
-
import type { CommitmentDefinition } from './_base/CommitmentDefinition';
|
|
3
|
-
/**
|
|
4
|
-
* Registry of all available commitment definitions
|
|
5
|
-
* This array contains instances of all commitment definitions
|
|
6
|
-
* This is the single source of truth for all commitments in the system
|
|
7
|
-
*
|
|
8
|
-
* @private Use functions to access commitments instead of this array directly
|
|
9
|
-
*/
|
|
10
|
-
export declare const COMMITMENT_REGISTRY: CommitmentDefinition[];
|
|
11
|
-
/**
|
|
12
|
-
* Registers a new commitment definition
|
|
13
|
-
* @param definition The commitment definition to register
|
|
14
|
-
*
|
|
15
|
-
* @public exported from `@promptbook/core`
|
|
16
|
-
*/
|
|
17
|
-
export declare function registerCommitment(definition: CommitmentDefinition): void;
|
|
18
|
-
/**
|
|
19
|
-
* Gets a commitment definition by its type
|
|
20
|
-
* @param type The commitment type to look up
|
|
21
|
-
* @returns The commitment definition or null if not found
|
|
22
|
-
*
|
|
23
|
-
* @public exported from `@promptbook/core`
|
|
24
|
-
*/
|
|
25
|
-
export declare function getCommitmentDefinition(type: BookCommitment): CommitmentDefinition | null;
|
|
26
|
-
/**
|
|
27
|
-
* Gets all available commitment definitions
|
|
28
|
-
* @returns Array of all commitment definitions
|
|
29
|
-
*
|
|
30
|
-
* @public exported from `@promptbook/core`
|
|
31
|
-
*/
|
|
32
|
-
export declare function getAllCommitmentDefinitions(): ReadonlyArray<CommitmentDefinition>;
|
|
33
|
-
/**
|
|
34
|
-
* Gets all available commitment types
|
|
35
|
-
* @returns Array of all commitment types
|
|
36
|
-
*
|
|
37
|
-
* @public exported from `@promptbook/core`
|
|
38
|
-
*/
|
|
39
|
-
export declare function getAllCommitmentTypes(): ReadonlyArray<BookCommitment>;
|
|
40
|
-
/**
|
|
41
|
-
* Checks if a commitment type is supported
|
|
42
|
-
* @param type The commitment type to check
|
|
43
|
-
* @returns True if the commitment type is supported
|
|
44
|
-
*
|
|
45
|
-
* @public exported from `@promptbook/core`
|
|
46
|
-
*/
|
|
47
|
-
export declare function isCommitmentSupported(type: BookCommitment): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Grouped commitment definition
|
|
50
|
-
*
|
|
51
|
-
* @public exported from `@promptbook/core`
|
|
52
|
-
*/
|
|
53
|
-
export type GroupedCommitmentDefinition = {
|
|
54
|
-
primary: CommitmentDefinition;
|
|
55
|
-
aliases: string[];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Gets all commitment definitions grouped by their aliases
|
|
59
|
-
*
|
|
60
|
-
* @returns Array of grouped commitment definitions
|
|
61
|
-
*
|
|
62
|
-
* @public exported from `@promptbook/core`
|
|
63
|
-
*/
|
|
64
|
-
export declare function getGroupedCommitmentDefinitions(): ReadonlyArray<GroupedCommitmentDefinition>;
|
|
65
|
-
/**
|
|
66
|
-
* TODO: !!!! Proofread this file
|
|
67
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
68
|
-
*/
|