@promptbook/openai 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.
@@ -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: number): ColorTransformer;
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: number, additionalColor: Color): ColorTransformer;
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-9`).
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/openai",
3
- "version": "0.102.0-10",
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,
@@ -102,7 +102,7 @@
102
102
  "module": "./esm/index.es.js",
103
103
  "typings": "./esm/typings/src/_packages/openai.index.d.ts",
104
104
  "peerDependencies": {
105
- "@promptbook/core": "0.102.0-10"
105
+ "@promptbook/core": "0.102.0-12"
106
106
  },
107
107
  "dependencies": {
108
108
  "bottleneck": "^2.19.5",