@promptbook/website-crawler 0.103.0 → 0.104.0-0

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.
@@ -39,6 +39,21 @@ export type PromptbookAgentIntegrationProps = {
39
39
  * Optional CSS style which will be added to root element
40
40
  */
41
41
  readonly style?: CSSProperties;
42
+ /**
43
+ * Is the writing textarea automatically focused?
44
+ *
45
+ * @default false (to prevent focus being stolen when widget loads)
46
+ */
47
+ readonly isFocusedOnLoad?: boolean;
48
+ /**
49
+ * Use iframe instead of implementing the chat directly
50
+ *
51
+ * When `true`, the chat will be rendered in an iframe pointing to the agent's chat endpoint.
52
+ * When `false`, the chat will be rendered directly using React components.
53
+ *
54
+ * @default true
55
+ */
56
+ readonly isIframeUsed?: boolean;
42
57
  };
43
58
  /**
44
59
  * Renders a floating agent button that opens a chat window with the remote agent.
@@ -1,5 +1,15 @@
1
1
  import { PromptbookAgentIntegrationProps } from './PromptbookAgentIntegration';
2
- type PromptbookAgentSeamlessIntegrationProps = Omit<PromptbookAgentIntegrationProps, 'formfactor'>;
2
+ type PromptbookAgentSeamlessIntegrationProps = Omit<PromptbookAgentIntegrationProps, 'formfactor'> & {
3
+ /**
4
+ * Use iframe instead of implementing the chat directly
5
+ *
6
+ * When `true`, the chat will be rendered in an iframe pointing to the agent's chat endpoint.
7
+ * When `false`, the chat will be rendered directly using React components.
8
+ *
9
+ * @default false
10
+ */
11
+ readonly isIframeUsed?: boolean;
12
+ };
3
13
  /**
4
14
  * Renders a floating agent button that opens a chat window with the remote agent.
5
15
  *
@@ -8,7 +18,6 @@ type PromptbookAgentSeamlessIntegrationProps = Omit<PromptbookAgentIntegrationPr
8
18
  export declare function PromptbookAgentSeamlessIntegration(props: PromptbookAgentSeamlessIntegrationProps): import("react/jsx-runtime").JSX.Element;
9
19
  export {};
10
20
  /**
11
- * TODO: !!!! Use iframe here instead of implementing the chat directly, allow to switch between seamless and iframe mode via `isIframeUsed` prop
12
21
  * TODO: !!! Load the full branding
13
22
  * TODO: !!! <promptbook-agent> element
14
23
  */
@@ -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-68`).
18
+ * It follows semantic versioning (e.g., `0.103.0`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/website-crawler",
3
- "version": "0.103.0",
3
+ "version": "0.104.0-0",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
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/website-crawler.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.103.0"
98
+ "@promptbook/core": "0.104.0-0"
99
99
  },
100
100
  "dependencies": {
101
101
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0';
27
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-0';
28
28
  /**
29
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
30
30
  * Note: [💞] Ignore a discrepancy between file name and entity name