@blocklet/editor 2.4.77 → 2.4.79

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.
@@ -51,6 +51,7 @@ class ComponentPickerOption extends TypeaheadOption {
51
51
  constructor(title, options) {
52
52
  super(title);
53
53
  this.title = title;
54
+ this.key = options.key || title;
54
55
  this.keywords = options.keywords || [];
55
56
  this.icon = options.icon;
56
57
  this.keyboardShortcut = options.keyboardShortcut;
@@ -322,6 +323,7 @@ export default function ComponentPickerMenuPlugin() {
322
323
  : pagesKitComponents
323
324
  .filter((x) => !!x.name)
324
325
  .map((x) => new ComponentPickerOption(`${x.name}`, {
326
+ key: x.id,
325
327
  icon: (_jsx(Box, { component: "span", sx: { display: 'inline-flex', width: 20, px: 0.25, mr: '1px', fontSize: 13 }, title: "Pages kit custom component", children: "\uD83E\uDDE9" })),
326
328
  keywords: [x.name],
327
329
  onSelect: () => editor.dispatchCommand(INSERT_PAGES_KIT_COMPONENT_COMMAND, { id: x.id, name: x.name }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.4.77",
3
+ "version": "2.4.79",
4
4
  "main": "lib/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -71,7 +71,7 @@
71
71
  "ufo": "^1.5.4",
72
72
  "url-join": "^4.0.1",
73
73
  "zustand": "^4.5.5",
74
- "@blocklet/pdf": "2.4.77"
74
+ "@blocklet/pdf": "2.4.79"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/core": "^7.25.2",