@promptbook/wizard 0.102.0-1 → 0.102.0-10
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 +314 -231
- package/esm/index.es.js.map +1 -1
- package/esm/typings/books/index.d.ts +81 -0
- package/esm/typings/src/_packages/components.index.d.ts +21 -13
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +13 -9
- package/esm/typings/src/_packages/utils.index.d.ts +12 -14
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-2.0/utils/generateGravatarUrl.d.ts +1 -1
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +1 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +1 -1
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +1 -5
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageItem.d.ts +35 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +29 -7
- package/esm/typings/src/book-components/Chat/Chat/constants.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +19 -1
- package/esm/typings/src/book-components/Chat/MockedChat/MockedChat.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/MockedChat/constants.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +13 -0
- package/esm/typings/src/book-components/Chat/save/_common/getChatSaveFormatDefinitions.d.ts +8 -0
- package/esm/typings/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/save/index.d.ts +39 -0
- package/esm/typings/src/book-components/Chat/save/json/jsonSaveFormatDefinition.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/save/text/txtSaveFormatDefinition.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/types/ChatMessage.d.ts +31 -5
- package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +3 -3
- package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +3 -0
- package/esm/typings/src/book-components/icons/AttachmentIcon.d.ts +11 -0
- package/esm/typings/src/book-components/icons/CloseIcon.d.ts +11 -0
- package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +1 -1
- package/esm/typings/src/execution/execution-report/countWorkingDuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +1 -2
- package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +1 -1
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/agent/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/agent/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/deepseek/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/deepseek/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/ollama/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/ollama/register-constructor.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +1 -3
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +5 -5
- package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +1 -1
- package/esm/typings/src/remote-server/ui/ServerApp.d.ts +13 -0
- package/esm/typings/src/remote-server/ui/renderServerIndexHtml.d.ts +7 -0
- package/esm/typings/src/remote-server/ui/types.d.ts +16 -0
- package/esm/typings/src/scrapers/_boilerplate/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +2 -4
- package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +1 -1
- package/esm/typings/src/scrapers/document/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/document-legacy/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/markdown/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/markitdown/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/pdf/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -1
- package/esm/typings/src/scrapers/website/register-constructor.d.ts +1 -1
- package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -1
- package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +6 -6
- package/esm/typings/src/types/Prompt.d.ts +5 -0
- package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +1 -1
- package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +1 -1
- package/esm/typings/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -1
- package/esm/typings/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
- package/esm/typings/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -1
- package/esm/typings/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -1
- package/esm/typings/src/utils/markdown/prettifyMarkdown.d.ts +2 -0
- package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +1 -1
- package/esm/typings/src/utils/{trimCodeBlock.d.ts → markdown/trimCodeBlock.d.ts} +1 -1
- package/esm/typings/src/utils/{trimEndOfCodeBlock.d.ts → markdown/trimEndOfCodeBlock.d.ts} +1 -1
- package/esm/typings/src/utils/{$Register.d.ts → misc/$Register.d.ts} +2 -2
- package/esm/typings/src/utils/{$getCurrentDate.d.ts → misc/$getCurrentDate.d.ts} +1 -1
- package/esm/typings/src/utils/{arrayableToArray.d.ts → misc/arrayableToArray.d.ts} +1 -1
- package/esm/typings/src/utils/misc/debounce.d.ts +5 -0
- package/esm/typings/src/utils/{emojis.d.ts → misc/emojis.d.ts} +1 -1
- package/esm/typings/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +20 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +314 -231
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-components/BookEditor/injectCssModuleIntoShadowRoot.d.ts +0 -11
- package/esm/typings/src/book-components/Chat/save/savePlugins.d.ts +0 -105
- /package/esm/typings/src/{utils/arrayableToArray.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.delete.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{trimCodeBlock.test.d.ts → markdown/trimCodeBlock.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{trimEndOfCodeBlock.test.d.ts → markdown/trimEndOfCodeBlock.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{FromtoItems.d.ts → misc/FromtoItems.d.ts} +0 -0
- /package/esm/typings/src/utils/{markdown/prettifyMarkdown.test.d.ts → misc/arrayableToArray.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{parseNumber.d.ts → misc/parseNumber.d.ts} +0 -0
- /package/esm/typings/src/utils/{parseNumber.test.d.ts → misc/parseNumber.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{removeEmojis.d.ts → normalization/removeEmojis.d.ts} +0 -0
- /package/esm/typings/src/utils/{removeEmojis.test.d.ts → normalization/removeEmojis.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{removeQuotes.d.ts → normalization/removeQuotes.d.ts} +0 -0
- /package/esm/typings/src/utils/{removeQuotes.test.d.ts → normalization/removeQuotes.test.d.ts} +0 -0
- /package/esm/typings/src/utils/{unwrapResult.d.ts → normalization/unwrapResult.d.ts} +0 -0
- /package/esm/typings/src/utils/{unwrapResult.test.d.ts → normalization/unwrapResult.test.d.ts} +0 -0
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Inject the CSS module rules (derived from imported `styles`) into the provided shadow root.
|
3
|
-
* This allows CSS modules (which are normally emitted into the document head) to be
|
4
|
-
* available inside the component's shadow DOM.
|
5
|
-
*
|
6
|
-
* @private within the promptbook components <- TODO: Maybe make promptbook util from this
|
7
|
-
*/
|
8
|
-
export declare function injectCssModuleIntoShadowRoot(shadowRoot: ShadowRoot): void;
|
9
|
-
/**
|
10
|
-
* TODO: Make some utility functions for working with CSS modules in shadow DOM independent of `BookEditor.module.css`
|
11
|
-
*/
|
@@ -1,105 +0,0 @@
|
|
1
|
-
import { string_file_extension, string_mime_type } from '../../../types/typeAliases';
|
2
|
-
import type { ChatMessage } from '../types/ChatMessage';
|
3
|
-
/**
|
4
|
-
* Supported chat export formatNames
|
5
|
-
* @public exported from `@promptbook/components`
|
6
|
-
*/
|
7
|
-
export type string_chat_format_name = typeof CHAT_SAVE_FORMATS[number]['formatName'];
|
8
|
-
/**
|
9
|
-
* Plugin contract for chat export formatNames
|
10
|
-
* @public exported from `@promptbook/components`
|
11
|
-
*/
|
12
|
-
export type ChatSaveFormatDefinition = {
|
13
|
-
formatName: string_file_extension | string_mime_type | string;
|
14
|
-
label: string;
|
15
|
-
getContent: (messages: ChatMessage[]) => string;
|
16
|
-
mimeType: string;
|
17
|
-
fileExtension: string;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* JSON export plugin (full metadata)
|
21
|
-
*
|
22
|
-
* @public exported from `@promptbook/components`
|
23
|
-
*/
|
24
|
-
export declare const jsonSaveFormatDefinition: {
|
25
|
-
readonly formatName: "json";
|
26
|
-
readonly label: "JSON (full)";
|
27
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
28
|
-
readonly mimeType: "application/json";
|
29
|
-
readonly fileExtension: "json";
|
30
|
-
};
|
31
|
-
/**
|
32
|
-
* Plain text export plugin (messages only)
|
33
|
-
*
|
34
|
-
* @public exported from `@promptbook/components`
|
35
|
-
*/
|
36
|
-
export declare const txtSaveFormatDefinition: {
|
37
|
-
readonly formatName: "txt";
|
38
|
-
readonly label: "Plain Text";
|
39
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
40
|
-
readonly mimeType: "text/plain";
|
41
|
-
readonly fileExtension: "txt";
|
42
|
-
};
|
43
|
-
/**
|
44
|
-
* Markdown export plugin
|
45
|
-
*
|
46
|
-
* @public exported from `@promptbook/components`
|
47
|
-
*/
|
48
|
-
export declare const mdSaveFormatDefinition: {
|
49
|
-
readonly formatName: "md";
|
50
|
-
readonly label: "Markdown";
|
51
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
52
|
-
readonly mimeType: "text/markdown";
|
53
|
-
readonly fileExtension: "md";
|
54
|
-
};
|
55
|
-
/**
|
56
|
-
* HTML export plugin
|
57
|
-
*
|
58
|
-
* @public exported from `@promptbook/components`
|
59
|
-
*/
|
60
|
-
export declare const htmlSaveFormatDefinition: {
|
61
|
-
readonly formatName: "html";
|
62
|
-
readonly label: "HTML";
|
63
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
64
|
-
readonly mimeType: "text/html";
|
65
|
-
readonly fileExtension: "html";
|
66
|
-
};
|
67
|
-
/**
|
68
|
-
* Registry of all built-in chat save plugins
|
69
|
-
*
|
70
|
-
* @public exported from `@promptbook/components`
|
71
|
-
*/
|
72
|
-
export declare const CHAT_SAVE_FORMATS: readonly [{
|
73
|
-
readonly formatName: "json";
|
74
|
-
readonly label: "JSON (full)";
|
75
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
76
|
-
readonly mimeType: "application/json";
|
77
|
-
readonly fileExtension: "json";
|
78
|
-
}, {
|
79
|
-
readonly formatName: "txt";
|
80
|
-
readonly label: "Plain Text";
|
81
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
82
|
-
readonly mimeType: "text/plain";
|
83
|
-
readonly fileExtension: "txt";
|
84
|
-
}, {
|
85
|
-
readonly formatName: "md";
|
86
|
-
readonly label: "Markdown";
|
87
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
88
|
-
readonly mimeType: "text/markdown";
|
89
|
-
readonly fileExtension: "md";
|
90
|
-
}, {
|
91
|
-
readonly formatName: "html";
|
92
|
-
readonly label: "HTML";
|
93
|
-
readonly getContent: (messages: ChatMessage[]) => string;
|
94
|
-
readonly mimeType: "text/html";
|
95
|
-
readonly fileExtension: "html";
|
96
|
-
}];
|
97
|
-
/**
|
98
|
-
* Returns enabled chat save plugins filtered by formatNames (or all when omitted)
|
99
|
-
*
|
100
|
-
* @public exported from `@promptbook/components`
|
101
|
-
*/
|
102
|
-
export declare function getChatSaveFormatDefinitions(formatNames?: ReadonlyArray<string_chat_format_name>): ReadonlyArray<ChatSaveFormatDefinition>;
|
103
|
-
/**
|
104
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
105
|
-
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/esm/typings/src/utils/{removeEmojis.test.d.ts → normalization/removeEmojis.test.d.ts}
RENAMED
File without changes
|
File without changes
|
/package/esm/typings/src/utils/{removeQuotes.test.d.ts → normalization/removeQuotes.test.d.ts}
RENAMED
File without changes
|
File without changes
|
/package/esm/typings/src/utils/{unwrapResult.test.d.ts → normalization/unwrapResult.test.d.ts}
RENAMED
File without changes
|