@promptbook/wizard 0.102.0-10 → 0.102.0-12
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 +920 -15
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/color.index.d.ts +2 -0
- package/esm/typings/src/_packages/components.index.d.ts +2 -0
- package/esm/typings/src/_packages/core.index.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/typings/src/book-components/icons/SaveIcon.d.ts +10 -0
- package/esm/typings/src/config.d.ts +26 -4
- package/esm/typings/src/utils/color/Color.d.ts +1 -0
- package/esm/typings/src/utils/color/operators/darken.d.ts +2 -1
- package/esm/typings/src/utils/color/operators/grayscale.d.ts +2 -1
- package/esm/typings/src/utils/color/operators/lighten.d.ts +2 -1
- package/esm/typings/src/utils/color/operators/mixWithColor.d.ts +2 -1
- package/esm/typings/src/utils/color/operators/saturate.d.ts +13 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +920 -15
- package/umd/index.umd.js.map +1 -1
@@ -12,6 +12,7 @@ import { mixWithColor } from '../utils/color/operators/mixWithColor';
|
|
12
12
|
import { nearest } from '../utils/color/operators/nearest';
|
13
13
|
import { negative } from '../utils/color/operators/negative';
|
14
14
|
import { negativeLightness } from '../utils/color/operators/negativeLightness';
|
15
|
+
import { saturate } from '../utils/color/operators/saturate';
|
15
16
|
import { withAlpha } from '../utils/color/operators/withAlpha';
|
16
17
|
import { areColorsEqual } from '../utils/color/utils/areColorsEqual';
|
17
18
|
import { colorDistance } from '../utils/color/utils/colorDistance';
|
@@ -37,6 +38,7 @@ export { mixWithColor };
|
|
37
38
|
export { nearest };
|
38
39
|
export { negative };
|
39
40
|
export { negativeLightness };
|
41
|
+
export { saturate };
|
40
42
|
export { withAlpha };
|
41
43
|
export { areColorsEqual };
|
42
44
|
export { colorDistance };
|
@@ -47,6 +47,7 @@ import { CloseIcon } from '../book-components/icons/CloseIcon';
|
|
47
47
|
import { PauseIcon } from '../book-components/icons/PauseIcon';
|
48
48
|
import { PlayIcon } from '../book-components/icons/PlayIcon';
|
49
49
|
import { ResetIcon } from '../book-components/icons/ResetIcon';
|
50
|
+
import { SaveIcon } from '../book-components/icons/SaveIcon';
|
50
51
|
import { SendIcon } from '../book-components/icons/SendIcon';
|
51
52
|
import { TemplateIcon } from '../book-components/icons/TemplateIcon';
|
52
53
|
import { injectCssModuleIntoShadowRoot } from '../utils/misc/injectCssModuleIntoShadowRoot';
|
@@ -99,6 +100,7 @@ export { CloseIcon };
|
|
99
100
|
export { PauseIcon };
|
100
101
|
export { PlayIcon };
|
101
102
|
export { ResetIcon };
|
103
|
+
export { SaveIcon };
|
102
104
|
export { SendIcon };
|
103
105
|
export { TemplateIcon };
|
104
106
|
export { injectCssModuleIntoShadowRoot };
|
@@ -23,6 +23,9 @@ import { NAME } from '../config';
|
|
23
23
|
import { ADMIN_EMAIL } from '../config';
|
24
24
|
import { ADMIN_GITHUB_NAME } from '../config';
|
25
25
|
import { CLAIM } from '../config';
|
26
|
+
import { PROMPTBOOK_COLOR } from '../config';
|
27
|
+
import { PROMPTBOOK_CHAT_COLOR } from '../config';
|
28
|
+
import { USER_CHAT_COLOR } from '../config';
|
26
29
|
import { DEFAULT_BOOK_TITLE } from '../config';
|
27
30
|
import { DEFAULT_TASK_TITLE } from '../config';
|
28
31
|
import { DEFAULT_PROMPT_TASK_TITLE } from '../config';
|
@@ -195,6 +198,9 @@ export { NAME };
|
|
195
198
|
export { ADMIN_EMAIL };
|
196
199
|
export { ADMIN_GITHUB_NAME };
|
197
200
|
export { CLAIM };
|
201
|
+
export { PROMPTBOOK_COLOR };
|
202
|
+
export { PROMPTBOOK_CHAT_COLOR };
|
203
|
+
export { USER_CHAT_COLOR };
|
198
204
|
export { DEFAULT_BOOK_TITLE };
|
199
205
|
export { DEFAULT_TASK_TITLE };
|
200
206
|
export { DEFAULT_PROMPT_TASK_TITLE };
|
@@ -25,7 +25,7 @@ export type ChatParticipant = {
|
|
25
25
|
/**
|
26
26
|
* Color associated with the participant
|
27
27
|
*/
|
28
|
-
color
|
28
|
+
color?: string_color | Color;
|
29
29
|
};
|
30
30
|
/**
|
31
31
|
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* @@@
|
4
|
+
*
|
5
|
+
* @public exported from `@promptbook/components`
|
6
|
+
*/
|
7
|
+
export declare function SaveIcon({ size, color, ...props }: {
|
8
|
+
size?: number;
|
9
|
+
color?: string;
|
10
|
+
} & React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
@@ -1,9 +1,7 @@
|
|
1
|
+
import { Color } from './_packages/color.index';
|
1
2
|
import type { CsvSettings } from './formats/csv/CsvSettings';
|
2
3
|
import type { IntermediateFilesStrategy } from './types/IntermediateFilesStrategy';
|
3
|
-
import type { string_app_id } from './types/typeAliases';
|
4
|
-
import type { string_email } from './types/typeAliases';
|
5
|
-
import type { string_name } from './types/typeAliases';
|
6
|
-
import type { string_promptbook_server_url } from './types/typeAliases';
|
4
|
+
import type { string_app_id, string_email, string_name, string_promptbook_server_url } from './types/typeAliases';
|
7
5
|
/**
|
8
6
|
* Warning message for the generated sections and files files
|
9
7
|
*
|
@@ -38,6 +36,30 @@ export declare const ADMIN_GITHUB_NAME: string_name;
|
|
38
36
|
* @public exported from `@promptbook/core`
|
39
37
|
*/
|
40
38
|
export declare const CLAIM = "It's time for a paradigm shift. The future of software in plain English, French or Latin";
|
39
|
+
/**
|
40
|
+
* Color of the Promptbook
|
41
|
+
*
|
42
|
+
* TODO: [🗽] Unite branding and make single place for it
|
43
|
+
*
|
44
|
+
* @public exported from `@promptbook/core`
|
45
|
+
*/
|
46
|
+
export declare const PROMPTBOOK_COLOR: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
47
|
+
/**
|
48
|
+
* Dark color of the Promptbook
|
49
|
+
*
|
50
|
+
* TODO: [🗽] Unite branding and make single place for it
|
51
|
+
*
|
52
|
+
* @public exported from `@promptbook/core`
|
53
|
+
*/
|
54
|
+
export declare const PROMPTBOOK_CHAT_COLOR: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
55
|
+
/**
|
56
|
+
* Color of the user (in chat)
|
57
|
+
*
|
58
|
+
* TODO: [🗽] Unite branding and make single place for it
|
59
|
+
*
|
60
|
+
* @public exported from `@promptbook/core`
|
61
|
+
*/
|
62
|
+
export declare const USER_CHAT_COLOR: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
41
63
|
/**
|
42
64
|
* When the title is not provided, the default title is used
|
43
65
|
*
|
@@ -163,6 +163,7 @@ export declare class Color {
|
|
163
163
|
toHsl(): string_color;
|
164
164
|
}
|
165
165
|
/**
|
166
|
+
* TODO: [🥻] Split Color class and color type
|
166
167
|
* TODO: For each method a corresponding static method should be created
|
167
168
|
* Like clone can be done by color.clone() OR Color.clone(color)
|
168
169
|
* TODO: Probably as an independent LIB OR add to LIB xyzt (ask @roseckyj)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { number_percent } from '../../../types/typeAliases';
|
1
2
|
import type { ColorTransformer } from './ColorTransformer';
|
2
3
|
/**
|
3
4
|
* Makes color transformer which darker the given color
|
@@ -6,4 +7,4 @@ import type { ColorTransformer } from './ColorTransformer';
|
|
6
7
|
*
|
7
8
|
* @public exported from `@promptbook/color`
|
8
9
|
*/
|
9
|
-
export declare function darken(amount:
|
10
|
+
export declare function darken(amount: number_percent): ColorTransformer;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { number_percent } from '../../../types/typeAliases';
|
1
2
|
import type { ColorTransformer } from './ColorTransformer';
|
2
3
|
/**
|
3
4
|
* Makes color transformer which returns a grayscale version of the color
|
@@ -6,4 +7,4 @@ import type { ColorTransformer } from './ColorTransformer';
|
|
6
7
|
*
|
7
8
|
* @public exported from `@promptbook/color`
|
8
9
|
*/
|
9
|
-
export declare function grayscale(amount:
|
10
|
+
export declare function grayscale(amount: number_percent): ColorTransformer;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ColorTransformer } from './ColorTransformer';
|
2
|
+
import { number_percent } from '../../../types/typeAliases';
|
2
3
|
/**
|
3
4
|
* Makes color transformer which lighten the given color
|
4
5
|
*
|
@@ -6,7 +7,7 @@ import type { ColorTransformer } from './ColorTransformer';
|
|
6
7
|
*
|
7
8
|
* @public exported from `@promptbook/color`
|
8
9
|
*/
|
9
|
-
export declare function lighten(amount:
|
10
|
+
export declare function lighten(amount: number_percent): ColorTransformer;
|
10
11
|
/**
|
11
12
|
* TODO: Maybe implement by mix+hsl
|
12
13
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Color } from '../Color';
|
2
2
|
import type { ColorTransformer } from './ColorTransformer';
|
3
|
+
import { number_percent } from '../../../types/typeAliases';
|
3
4
|
/**
|
4
5
|
* Makes color transformer which returns a mix of two colors based on a ratio
|
5
6
|
*
|
@@ -8,4 +9,4 @@ import type { ColorTransformer } from './ColorTransformer';
|
|
8
9
|
*
|
9
10
|
* @public exported from `@promptbook/color`
|
10
11
|
*/
|
11
|
-
export declare function mixWithColor(ratio:
|
12
|
+
export declare function mixWithColor(ratio: number_percent, additionalColor: Color): ColorTransformer;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { number_percent } from '../../../types/typeAliases';
|
2
|
+
import type { ColorTransformer } from './ColorTransformer';
|
3
|
+
/**
|
4
|
+
* Makes color transformer which saturate the given color
|
5
|
+
*
|
6
|
+
* @param amount from -1 to 1
|
7
|
+
*
|
8
|
+
* @public exported from `@promptbook/color`
|
9
|
+
*/
|
10
|
+
export declare function saturate(amount: number_percent): ColorTransformer;
|
11
|
+
/**
|
12
|
+
* TODO: Maybe implement by mix+hsl
|
13
|
+
*/
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
16
16
|
/**
|
17
17
|
* Represents the version string of the Promptbook engine.
|
18
|
-
* It follows semantic versioning (e.g., `0.102.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.102.0-11`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/wizard",
|
3
|
-
"version": "0.102.0-
|
3
|
+
"version": "0.102.0-12",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"module": "./esm/index.es.js",
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
97
97
|
"peerDependencies": {
|
98
|
-
"@promptbook/core": "0.102.0-
|
98
|
+
"@promptbook/core": "0.102.0-12"
|
99
99
|
},
|
100
100
|
"dependencies": {
|
101
101
|
"@ai-sdk/deepseek": "0.1.6",
|