@haklex/rich-ext-embed 0.0.55 → 0.0.57

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.mjs CHANGED
@@ -22,7 +22,7 @@ const _EmbedEditNode = class _EmbedEditNode extends EmbedNode {
22
22
  });
23
23
  }
24
24
  };
25
- __publicField(_EmbedEditNode, "slashMenuItems", [
25
+ __publicField(_EmbedEditNode, "commandItems", [
26
26
  {
27
27
  title: "Embed",
28
28
  icon: createElement(Code, { size: 20 }),
@@ -36,6 +36,8 @@ __publicField(_EmbedEditNode, "slashMenuItems", [
36
36
  "thinking"
37
37
  ],
38
38
  section: "EMBED",
39
+ placement: ["slash", "toolbar"],
40
+ group: "insert",
39
41
  onSelect: (editor) => {
40
42
  editor.update(() => {
41
43
  $insertNodes([$createEmbedEditNode("", null)]);
@@ -1,10 +1,10 @@
1
- import { SlashMenuItemConfig } from '@haklex/rich-editor';
1
+ import { CommandItemConfig } from '@haklex/rich-editor';
2
2
  import { EditorConfig, LexicalEditor, LexicalNode } from 'lexical';
3
3
  import { ReactElement } from 'react';
4
4
  import { EmbedType } from '../url-matchers';
5
5
  import { EmbedNode, SerializedEmbedNode } from './EmbedNode';
6
6
  export declare class EmbedEditNode extends EmbedNode {
7
- static slashMenuItems: SlashMenuItemConfig[];
7
+ static commandItems: CommandItemConfig[];
8
8
  static clone(node: EmbedEditNode): EmbedEditNode;
9
9
  static importJSON(serializedNode: SerializedEmbedNode): EmbedEditNode;
10
10
  decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedEditNode.d.ts","sourceRoot":"","sources":["../../src/nodes/EmbedEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGvE,OA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AM,CAAC,UAAU,CAAC,cAAc,EAAE,mBAAmB,GAAG,aAAa;IAIrE,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAOtE;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,SAAS,GAAG,IAAI,GACvB,aAAa,CAEf;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,aAAa,CAEvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-embed",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "Embed extension for Twitter, YouTube, etc.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "lucide-react": "^0.575.0",
24
24
  "react-tweet": "npm:@innei/react-tweet@3.4.2",
25
- "@haklex/rich-editor": "0.0.55",
26
- "@haklex/rich-style-token": "0.0.55"
25
+ "@haklex/rich-editor": "0.0.57",
26
+ "@haklex/rich-style-token": "0.0.57"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lexical/react": "^0.41.0",