@promptbook/vercel 0.103.0-15 → 0.103.0-16
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 +1 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +18 -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/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-16';
|
|
20
20
|
/**
|
|
21
21
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
22
22
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -56,6 +56,24 @@ export type BookEditorProps = {
|
|
|
56
56
|
* By default, the download button is shown.
|
|
57
57
|
*/
|
|
58
58
|
readonly isDownloadButtonShown?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If true, shows the about button in the action bar.
|
|
61
|
+
* By default, the about button is shown.
|
|
62
|
+
*/
|
|
63
|
+
readonly isAboutButtonShown?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* If defined, the editor will be synced with other editors with the same sync configuration.
|
|
66
|
+
*/
|
|
67
|
+
readonly sync?: {
|
|
68
|
+
/**
|
|
69
|
+
* The URL of the y-websocket server.
|
|
70
|
+
*/
|
|
71
|
+
readonly serverUrl: string;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the room to join.
|
|
74
|
+
*/
|
|
75
|
+
readonly roomName: string;
|
|
76
|
+
};
|
|
59
77
|
};
|
|
60
78
|
/**
|
|
61
79
|
* Renders a book editor
|
|
@@ -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
|
+
*/
|
|
@@ -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-15`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/vercel",
|
|
3
|
-
"version": "0.103.0-
|
|
3
|
+
"version": "0.103.0-16",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"module": "./esm/index.es.js",
|
|
95
95
|
"typings": "./esm/typings/src/_packages/vercel.index.d.ts",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@promptbook/core": "0.103.0-
|
|
97
|
+
"@promptbook/core": "0.103.0-16"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-16';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|