@haklex/rich-renderer-linkcard 0.28.0 → 0.29.0

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.
@@ -1,11 +1,11 @@
1
1
  import { CommandItemConfig } from '@haklex/rich-editor/commands';
2
- import { LinkCardNode, LinkCardNodePayload, SerializedLinkCardNode } from '@haklex/rich-editor/nodes';
3
- import { EditorConfig, Klass, LexicalEditor, LexicalNode } from 'lexical';
2
+ import { LinkCardNode, LinkCardNodePayload } from '@haklex/rich-editor/nodes';
3
+ import { EditorConfig, Klass, LexicalEditor, LexicalNode, SerializedLexicalNode } from 'lexical';
4
4
  import { ReactElement } from 'react';
5
5
  export declare class LinkCardEditNode extends LinkCardNode {
6
6
  static commandItems: CommandItemConfig[];
7
7
  static clone(node: LinkCardEditNode): LinkCardEditNode;
8
- static importJSON(serializedNode: SerializedLinkCardNode): LinkCardEditNode;
8
+ static importJSON(_serializedNode: SerializedLexicalNode & Record<string, unknown>): LinkCardEditNode;
9
9
  decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
10
10
  }
11
11
  export declare function $createLinkCardEditNode(payload: LinkCardNodePayload): LinkCardEditNode;
@@ -1 +1 @@
1
- {"version":3,"file":"LinkCardEditNode.d.ts","sourceRoot":"","sources":["../src/LinkCardEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAatC;IAEF,MAA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GED
@@ -149,7 +149,7 @@ function LinkCardEditDecorator({ nodeKey, payload, children }) {
149
149
  });
150
150
  }
151
151
  //#endregion
152
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
152
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
153
153
  function _typeof(o) {
154
154
  "@babel/helpers - typeof";
155
155
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -159,7 +159,7 @@ function _typeof(o) {
159
159
  }, _typeof(o);
160
160
  }
161
161
  //#endregion
162
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
162
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
163
163
  function toPrimitive(t, r) {
164
164
  if ("object" != _typeof(t) || !t) return t;
165
165
  var e = t[Symbol.toPrimitive];
@@ -171,13 +171,13 @@ function toPrimitive(t, r) {
171
171
  return ("string" === r ? String : Number)(t);
172
172
  }
173
173
  //#endregion
174
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
174
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
175
175
  function toPropertyKey(t) {
176
176
  var i = toPrimitive(t, "string");
177
177
  return "symbol" == _typeof(i) ? i : i + "";
178
178
  }
179
179
  //#endregion
180
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
180
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
181
181
  function _defineProperty(e, r, t) {
182
182
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
183
183
  value: t,
@@ -198,7 +198,8 @@ var LinkCardEditNode = class LinkCardEditNode extends LinkCardNode {
198
198
  image: node.__image
199
199
  }, node.__key);
200
200
  }
201
- static importJSON(serializedNode) {
201
+ static importJSON(_serializedNode) {
202
+ const serializedNode = _serializedNode;
202
203
  return new LinkCardEditNode({
203
204
  url: serializedNode.url,
204
205
  title: serializedNode.title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-linkcard",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "Rich link preview card renderer with extensible URL plugins",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,29 +28,29 @@
28
28
  "react-intersection-observer": "^10.0.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@lexical/link": "^0.45.0",
32
- "@lexical/react": "^0.45.0",
31
+ "@lexical/link": "^0.46.0",
32
+ "@lexical/react": "^0.46.0",
33
33
  "@types/react": "^19.2.17",
34
34
  "@types/react-dom": "^19.2.3",
35
- "@vanilla-extract/css": "^1.20.1",
36
- "@vanilla-extract/vite-plugin": "^5.2.2",
37
- "lexical": "^0.45.0",
38
- "react": "19.2.6",
39
- "react-dom": "19.2.6",
40
- "typescript": "^5.9.3",
41
- "unplugin-dts": "^1.0.2",
42
- "vite": "^8.0.16"
35
+ "@vanilla-extract/css": "^1.21.0",
36
+ "@vanilla-extract/vite-plugin": "^5.2.3",
37
+ "lexical": "^0.46.0",
38
+ "react": "^19.2.7",
39
+ "react-dom": "^19.2.7",
40
+ "typescript": "^6.0.3",
41
+ "unplugin-dts": "^1.0.3",
42
+ "vite": "^8.1.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@lexical/link": "^0.45.0",
46
- "@lexical/react": "^0.45.0",
47
- "lexical": "^0.45.0",
45
+ "@lexical/link": "^0.46.0",
46
+ "@lexical/react": "^0.46.0",
47
+ "lexical": "^0.46.0",
48
48
  "lucide-react": "^1.0.0",
49
49
  "react": ">=19",
50
50
  "react-dom": ">=19",
51
- "@haklex/rich-editor": "^0.28.0",
52
- "@haklex/rich-editor-ui": "^0.28.0",
53
- "@haklex/rich-style-token": "^0.28.0"
51
+ "@haklex/rich-editor": "^0.29.0",
52
+ "@haklex/rich-editor-ui": "^0.29.0",
53
+ "@haklex/rich-style-token": "^0.29.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"