@firecms/editor 3.0.0-canary.182 → 3.0.0-canary.184

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/dist/index.umd.js CHANGED
@@ -1354,25 +1354,15 @@
1354
1354
  });
1355
1355
  const suggestion = (ref, {
1356
1356
  upload,
1357
- onDisabledAutocompleteClick,
1358
1357
  aiController
1359
1358
  }) => ({
1360
1359
  items: ({
1361
1360
  query
1362
1361
  }) => {
1363
1362
  const availableSuggestionItems = [...suggestionItems];
1364
- if (!onDisabledAutocompleteClick && aiController) {
1363
+ if (aiController) {
1365
1364
  availableSuggestionItems.push(autocompleteSuggestionItem);
1366
1365
  }
1367
- if (onDisabledAutocompleteClick) {
1368
- availableSuggestionItems.push({
1369
- title: "Autocomplete",
1370
- description: "Add text based on the context.",
1371
- searchTerms: ["ai"],
1372
- icon: /* @__PURE__ */ jsxRuntime.jsx(ui.AutoFixHighIcon, { size: 18 }),
1373
- command: onDisabledAutocompleteClick
1374
- });
1375
- }
1376
1366
  return availableSuggestionItems.filter((item) => {
1377
1367
  const inTitle = item.title.toLowerCase().startsWith(query.toLowerCase());
1378
1368
  if (inTitle) return inTitle;
@@ -1607,6 +1597,7 @@
1607
1597
  }
1608
1598
  return t12;
1609
1599
  });
1600
+ CommandList.displayName = "CommandList";
1610
1601
  const autocompleteSuggestionItem = {
1611
1602
  title: "Autocomplete",
1612
1603
  description: "Add text based on the context.",
@@ -1802,8 +1793,7 @@
1802
1793
  textSize = "base",
1803
1794
  highlight,
1804
1795
  handleImageUpload,
1805
- aiController,
1806
- onDisabledAutocompleteClick
1796
+ aiController
1807
1797
  }) => {
1808
1798
  const ref = React.useRef(null);
1809
1799
  const editorRef = React.useRef(null);
@@ -1887,8 +1877,7 @@
1887
1877
  },
1888
1878
  suggestion: suggestion(ref, {
1889
1879
  upload: handleImageUpload,
1890
- aiController,
1891
- onDisabledAutocompleteClick
1880
+ aiController
1892
1881
  })
1893
1882
  })
1894
1883
  ], []);