@blocklet/editor 2.3.45 → 2.3.47

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.
@@ -205,7 +205,7 @@
205
205
  }
206
206
 
207
207
  .auto-embed-menu {
208
- width: 150px;
208
+ width: 200px;
209
209
  }
210
210
 
211
211
  .emoji-menu {
@@ -329,9 +329,19 @@ export default function AutoEmbedPlugin() {
329
329
  }, [editor]);
330
330
  return (_jsxs(_Fragment, { children: [modal, _jsx(LexicalAutoEmbedPlugin, { embedConfigs: EmbedConfigs, onOpenEmbedModalForConfig: openEmbedModal, getMenuOptions: getMenuOptions, menuRenderFn: (anchorElementRef, { selectedIndex, options, selectOptionAndCleanUp, setHighlightedIndex }) => {
331
331
  return anchorElementRef.current
332
- ? createPortal(_jsx("div", { className: "typeahead-popover auto-embed-menu", style: {
332
+ ? createPortal(_jsx(Box, { className: "typeahead-popover auto-embed-menu", sx: {
333
333
  marginLeft: `${Math.max(parseFloat(anchorElementRef.current.style.width) - 200, 0)}px`,
334
334
  width: 200,
335
+ border: 1,
336
+ borderColor: 'divider',
337
+ color: 'text.primary',
338
+ bgcolor: 'background.default',
339
+ 'li.selected': {
340
+ bgcolor: 'action.selected',
341
+ },
342
+ 'li:hover': {
343
+ bgcolor: 'action.hover',
344
+ },
335
345
  }, children: _jsx(AutoEmbedMenu, { options: options, selectedItemIndex: selectedIndex, onOptionClick: (option, index) => {
336
346
  setHighlightedIndex(index);
337
347
  selectOptionAndCleanUp(option);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.3.45",
3
+ "version": "2.3.47",
4
4
  "main": "lib/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,7 +68,7 @@
68
68
  "ufo": "^1.5.4",
69
69
  "url-join": "^4.0.1",
70
70
  "zustand": "^4.5.5",
71
- "@blocklet/pdf": "^2.3.45"
71
+ "@blocklet/pdf": "^2.3.47"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@babel/core": "^7.25.2",