@iblai/web-containers 1.68.0 → 1.68.1

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 (34) hide show
  1. package/dist/cjs/components/document-sidebar.js +5 -4
  2. package/dist/cjs/components/document-sidebar.js.map +1 -1
  3. package/dist/cjs/i18n/messages/en.json.js +1 -0
  4. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  5. package/dist/cjs/i18n/messages/es.json.js +1 -0
  6. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  7. package/dist/cjs/i18n/messages/fr.json.js +1 -0
  8. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  9. package/dist/cjs/i18n/messages/zh.json.js +1 -0
  10. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  11. package/dist/cjs/lib/document-preview.js +14 -6
  12. package/dist/cjs/lib/document-preview.js.map +1 -1
  13. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  14. package/dist/esm/_virtual/index2.js +2 -2
  15. package/dist/esm/_virtual/index3.js +2 -2
  16. package/dist/esm/components/document-sidebar.js +5 -4
  17. package/dist/esm/components/document-sidebar.js.map +1 -1
  18. package/dist/esm/i18n/messages/en.json.js +1 -0
  19. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  20. package/dist/esm/i18n/messages/es.json.js +1 -0
  21. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  22. package/dist/esm/i18n/messages/fr.json.js +1 -0
  23. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  24. package/dist/esm/i18n/messages/zh.json.js +1 -0
  25. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  26. package/dist/esm/lib/document-preview.js +14 -6
  27. package/dist/esm/lib/document-preview.js.map +1 -1
  28. package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  29. package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  30. package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  31. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  32. package/dist/index.d.ts +8 -3
  33. package/dist/package.json +1 -1
  34. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -6928,18 +6928,23 @@ declare function conversationTopics(topics: unknown): string[];
6928
6928
  * audio, video, ZIPs, GitHub repos, YouTube videos, web pages and crawls, and
6929
6929
  * links to Google Drive, OneDrive and Dropbox. Only some of those a browser
6930
6930
  * can render on its own; the rest get no Preview button rather than a blank
6931
- * frame. Decided from the source URL (extension and host) and, when the
6932
- * backend sends one, the document's kind.
6931
+ * frame. Web pages are opened in a new tab instead: many refuse framing, the
6932
+ * passage highlight only works in a full tab, and in-frame sign-ins break.
6933
+ * Decided from the source URL (extension and host) and, when the backend
6934
+ * sends one, the document's kind.
6933
6935
  */
6934
- type PreviewKind = 'image' | 'audio' | 'video' | 'frame';
6936
+ type PreviewKind = 'image' | 'audio' | 'video' | 'frame' | 'page';
6935
6937
  interface PreviewPlan {
6936
6938
  kind: PreviewKind;
6937
6939
  /** What to load: the source itself, or an embed URL derived from it. */
6938
6940
  src: string;
6941
+ /** For a frame; defaults to `no-referrer`. */
6942
+ referrerPolicy?: 'no-referrer' | 'strict-origin-when-cross-origin';
6939
6943
  }
6940
6944
  /**
6941
6945
  * `null` when the document cannot be shown here: no URL, a host that refuses
6942
6946
  * framing, or a file type a browser cannot render (Office files, archives).
6947
+ * `page` for a web page, which is opened in a new tab rather than shown here.
6943
6948
  */
6944
6949
  declare function previewPlan(source: string | null | undefined, hint?: string | null): PreviewPlan | null;
6945
6950
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "1.67.2",
3
+ "version": "1.68.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "1.68.0",
3
+ "version": "1.68.1",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -181,8 +181,8 @@
181
181
  "react-remove-scroll-bar": "^2.3.8",
182
182
  "sonner": "^2.0.0",
183
183
  "@iblai/agent-ai": "2.13.5",
184
- "@iblai/data-layer": "1.40.0",
185
- "@iblai/web-utils": "2.22.0"
184
+ "@iblai/web-utils": "2.22.0",
185
+ "@iblai/data-layer": "1.40.0"
186
186
  },
187
187
  "peerDependenciesMeta": {
188
188
  "@livekit/components-react": {