@fileverse-dev/ddoc 2.2.9-reminder-1 → 2.2.9-reminder-3

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-DIxiD3eO.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-CWqIv_7R.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;
@@ -88821,7 +88821,7 @@ async function n5(e, t) {
88821
88821
  });
88822
88822
  return Z === "0x" ? { data: void 0 } : { data: Z };
88823
88823
  } catch (G) {
88824
- const B = M7t(G), { offchainLookup: O, offchainLookupSignature: H } = await import("./ccip-_RVAEFXa.mjs");
88824
+ const B = M7t(G), { offchainLookup: O, offchainLookupSignature: H } = await import("./ccip-D7e6QCiE.mjs");
88825
88825
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === H && k)
88826
88826
  return { data: await O(e, { data: B, to: k }) };
88827
88827
  throw D && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new Skt({ factory: u }) : yQ(G, {
@@ -103472,7 +103472,7 @@ const iSt = /* @__PURE__ */ q1(oSt), fh = () => {
103472
103472
  const c = i.current.closest('[role="dialog"]');
103473
103473
  c && c.remove();
103474
103474
  }
103475
- o && o("");
103475
+ o("");
103476
103476
  },
103477
103477
  handleReminderCreate: async (l, c) => {
103478
103478
  try {
@@ -103602,8 +103602,7 @@ const iSt = /* @__PURE__ */ q1(oSt), fh = () => {
103602
103602
  },
103603
103603
  {
103604
103604
  name: "Reminder",
103605
- isActive: () => {
103606
- },
103605
+ isActive: () => !1,
103607
103606
  command: () => {
103608
103607
  var H;
103609
103608
  const O = ((H = t.state.selection.content().content.firstChild) == null ? void 0 : H.textContent) || "";
@@ -222682,6 +222681,8 @@ const ZXt = ({
222682
222681
  }
222683
222682
  }
222684
222683
  ].filter((c) => {
222684
+ if (c.title === "AI Writer" && c.isDisabled)
222685
+ return !1;
222685
222686
  if (typeof e == "string" && e.length > 0) {
222686
222687
  const u = e.toLowerCase();
222687
222688
  return c.title.toLowerCase().includes(u) || c.description.toLowerCase().includes(u) || c.searchTerms && c.searchTerms.some((d) => d.includes(u));
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-DIxiD3eO.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CWqIv_7R.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
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-reminder-1",
5
+ "version": "2.2.9-reminder-3",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {