@promptbook/openai 0.103.0-15 → 0.103.0-17
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 +3 -13
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-2.0/agent-source/padBookContent.d.ts +10 -0
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +29 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +2 -0
- package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +15 -0
- package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +2 -2
- package/esm/typings/src/book-components/icons/AboutIcon.d.ts +9 -0
- package/esm/typings/src/book-components/icons/DownloadIcon.d.ts +9 -0
- package/esm/typings/src/book-components/icons/MenuIcon.d.ts +12 -0
- package/esm/typings/src/config.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +3 -13
- package/umd/index.umd.js.map +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
type DropdownProps = {
|
|
3
|
+
actions: Array<{
|
|
4
|
+
icon: JSX.Element;
|
|
5
|
+
name: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @@@
|
|
11
|
+
*
|
|
12
|
+
* @private internal subcomponent used by various components
|
|
13
|
+
*/
|
|
14
|
+
export declare function Dropdown({ actions }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @private internal subcomponent
|
|
4
|
+
* @private internal subcomponent used by various components
|
|
5
5
|
*/
|
|
6
6
|
export declare function Modal({ children, onClose, className, }: {
|
|
7
7
|
children: ReactNode;
|
|
@@ -9,5 +9,5 @@ export declare function Modal({ children, onClose, className, }: {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}): import("react").ReactPortal;
|
|
11
11
|
/**
|
|
12
|
-
* TODO: !!!! Use this also for feedback modal in Chat component -Make modals DRY
|
|
12
|
+
* TODO: !!!! Use this also for feedback modal in Chat component - Make modals DRY
|
|
13
13
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @@@
|
|
4
|
+
*
|
|
5
|
+
* @private internal subcomponent used by various components
|
|
6
|
+
*/
|
|
7
|
+
export declare function MenuIcon(props: SVGProps<SVGSVGElement> & {
|
|
8
|
+
size?: number;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* TODO: !!! Mark all components to not be used outside of browser
|
|
12
|
+
*/
|
|
@@ -53,6 +53,7 @@ export declare const PROMPTBOOK_COLOR: import("./utils/take/interfaces/ITakeChai
|
|
|
53
53
|
*/
|
|
54
54
|
export declare const PROMPTBOOK_SYNTAX_COLORS: {
|
|
55
55
|
readonly TITLE: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
|
56
|
+
readonly LINE: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
|
56
57
|
readonly COMMITMENT: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
|
57
58
|
readonly PARAMETER: import("./utils/take/interfaces/ITakeChain").WithTake<Color>;
|
|
58
59
|
};
|
|
@@ -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.103.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.103.0-16`).
|
|
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.103.0-
|
|
3
|
+
"version": "0.103.0-17",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
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.103.0-
|
|
105
|
+
"@promptbook/core": "0.103.0-17"
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
108
|
"bottleneck": "^2.19.5",
|
package/umd/index.umd.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-17';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1008,17 +1008,6 @@
|
|
|
1008
1008
|
* TODO: Maybe implement by mix+hsl
|
|
1009
1009
|
*/
|
|
1010
1010
|
|
|
1011
|
-
/**
|
|
1012
|
-
* Makes color transformer which darker the given color
|
|
1013
|
-
*
|
|
1014
|
-
* @param amount from 0 to 1
|
|
1015
|
-
*
|
|
1016
|
-
* @public exported from `@promptbook/color`
|
|
1017
|
-
*/
|
|
1018
|
-
function darken(amount) {
|
|
1019
|
-
return lighten(-amount);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
1011
|
/**
|
|
1023
1012
|
* Calculates distance between two colors
|
|
1024
1013
|
*
|
|
@@ -1173,7 +1162,8 @@
|
|
|
1173
1162
|
* @public exported from `@promptbook/core`
|
|
1174
1163
|
*/
|
|
1175
1164
|
({
|
|
1176
|
-
TITLE:
|
|
1165
|
+
TITLE: Color.fromHex('#244EA8'),
|
|
1166
|
+
LINE: Color.fromHex('#DA0F78'),
|
|
1177
1167
|
COMMITMENT: Color.fromHex('#DA0F78'),
|
|
1178
1168
|
PARAMETER: Color.fromHex('#8e44ad'),
|
|
1179
1169
|
});
|