@fileverse-dev/ddoc 2.2.9-patch-5.1 → 2.2.9-patch-7

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/README.md CHANGED
@@ -124,6 +124,14 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
124
124
  | `setShowTOC` | `React.Dispatch<SetStateAction<boolean>>` | Function to toggle TOC |
125
125
  | `proExtensions` | `{ TableOfContents: any, [key: string]: any }` | Pro feature extensions |
126
126
 
127
+ ## AI Writer Props
128
+
129
+ | Property | Type | Description |
130
+ | ------------------ | --------- | ---------------------------------------------- |
131
+ | `activeModel` | `CustomModel` | Currently selected AI model for text generation |
132
+ | `maxTokens` | `number` | Maximum token limit for AI-generated content |
133
+ | `isAIAgentEnabled` | `boolean` | Toggle for AI agent functionality |
134
+
127
135
  ### Steps to run this example locally
128
136
 
129
137
  - `npm i`
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-CfRUkHcI.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-C3WXYO0C.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -86540,7 +86540,7 @@ async function g6(e, t) {
86540
86540
  });
86541
86541
  return Z === "0x" ? { data: void 0 } : { data: Z };
86542
86542
  } catch (W) {
86543
- const O = Kxt(W), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Dc33GUUU.mjs");
86543
+ const O = Kxt(W), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-DAht5lzJ.mjs");
86544
86544
  if (e.ccipRead !== !1 && (O == null ? void 0 : O.slice(0, 10)) === G && k)
86545
86545
  return { data: await _(e, { data: O, to: k }) };
86546
86546
  throw D && (O == null ? void 0 : O.slice(0, 10)) === "0x101bb98d" ? new ext({ factory: u }) : j$(W, {
@@ -219235,6 +219235,8 @@ const OKt = 200, BKt = new nn("emoji"), zKt = _t.create({
219235
219235
  }
219236
219236
  }
219237
219237
  ].filter((l) => {
219238
+ if (l.title === "AI Writer" && l.isDisabled)
219239
+ return !1;
219238
219240
  if (typeof e == "string" && e.length > 0) {
219239
219241
  const c = e.toLowerCase();
219240
219242
  return l.title.toLowerCase().includes(c) || l.description.toLowerCase().includes(c) || l.searchTerms && l.searchTerms.some((u) => u.includes(c));
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-CfRUkHcI.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-C3WXYO0C.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.2.9-patch-5.1",
5
+ "version": "2.2.9-patch-7",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {