@promptbook/editable 0.102.0-11 → 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,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: number): ColorTransformer;
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: number): ColorTransformer;
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: 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-10`).
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/editable",
3
- "version": "0.102.0-11",
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/editable.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.102.0-11"
98
+ "@promptbook/core": "0.102.0-12"
99
99
  },
100
100
  "dependencies": {
101
101
  "crypto-js": "4.2.0",