@promptbook/node 0.112.0-118 → 0.112.0-119

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.
Files changed (27) hide show
  1. package/esm/index.es.js +2 -2
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/book-components/BookEditor/BookEditor.d.ts +1 -1
  4. package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +1 -1
  5. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  6. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  7. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  8. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
  9. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
  10. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
  11. package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  12. package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  13. package/esm/src/version.d.ts +1 -1
  14. package/package.json +2 -2
  15. package/umd/index.umd.js +2 -2
  16. package/umd/index.umd.js.map +1 -1
  17. package/umd/src/book-components/BookEditor/BookEditor.d.ts +1 -1
  18. package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +1 -1
  19. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  20. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  21. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  22. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
  23. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
  24. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
  25. package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  26. package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  27. package/umd/src/version.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { type CSSProperties } from 'react';
2
2
  import type { Promisable } from 'type-fest';
3
3
  import type { string_book } from '../../book-2.0/agent-source/string_book';
4
4
  import type { number_percent } from '../../types/number_percent';
@@ -1,4 +1,4 @@
1
- import { BookEditorProps } from './BookEditor';
1
+ import type { BookEditorProps } from './BookEditor';
2
2
  /**
3
3
  * Renders a book editor
4
4
  *
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Props for the citation iframe preview component.
3
+ *
4
+ * @private component of `<ChatCitationModal/>`
5
+ */
6
+ export type CitationIframePreviewProps = {
7
+ src: string;
8
+ title: string;
9
+ };
10
+ /**
11
+ * Renders a citation URL preview as an iframe when the target page allows embedding,
12
+ * or falls back to a server-side screenshot with an "Open in new tab" link when it
13
+ * does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
14
+ *
15
+ * Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
16
+ * If that endpoint is unavailable the component falls back to the iframe directly.
17
+ *
18
+ * @private component of `<ChatCitationModal/>`
19
+ */
20
+ export declare function CitationIframePreview({ src, title }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Props for dropdown.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Item that can be hoisted to the top menu
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Handles modal.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
2
  /**
3
3
  * Renders an information/about icon.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
2
  /**
3
3
  * Renders a download icon.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import type { JSX } from 'react';
2
2
  /**
3
3
  * Renders an icon that represents the exit fullscreen action
4
4
  *
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import type { JSX } from 'react';
2
2
  /**
3
3
  * Renders an icon that represents the fullscreen action
4
4
  *
@@ -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.112.0-117`).
18
+ * It follows semantic versioning (e.g., `0.112.0-118`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/node",
3
- "version": "0.112.0-118",
3
+ "version": "0.112.0-119",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -97,7 +97,7 @@
97
97
  "types": "./esm/src/_packages/node.index.d.ts",
98
98
  "typings": "./esm/src/_packages/node.index.d.ts",
99
99
  "peerDependencies": {
100
- "@promptbook/core": "0.112.0-118"
100
+ "@promptbook/core": "0.112.0-119"
101
101
  },
102
102
  "dependencies": {
103
103
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -51,7 +51,7 @@
51
51
  * @generated
52
52
  * @see https://github.com/webgptorg/promptbook
53
53
  */
54
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-118';
54
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-119';
55
55
  /**
56
56
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
57
57
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -33780,7 +33780,7 @@
33780
33780
  return { skippedReason: 'invalid_data_url' };
33781
33781
  }
33782
33782
  return {
33783
- file: new File([parsed.buffer], parsed.filename, {
33783
+ file: new File([new Uint8Array(parsed.buffer)], parsed.filename, {
33784
33784
  type: parsed.mimeType,
33785
33785
  }),
33786
33786
  sizeBytes: parsed.buffer.length,