@haklex/rich-renderer-file 0.69.0 → 0.69.1

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.
@@ -3,6 +3,6 @@ interface FileActionsMenuProps {
3
3
  onDelete: () => void;
4
4
  src?: string;
5
5
  }
6
- export declare function FileActionsMenu({ name, onDelete, src }: FileActionsMenuProps): import('react').JSX.Element;
6
+ export declare function FileActionsMenu({ name, onDelete, src }: FileActionsMenuProps): import("react").JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=FileActionsMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileActionsMenu.d.ts","sourceRoot":"","sources":["../src/FileActionsMenu.tsx"],"names":[],"mappings":"AAYA,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,oBAAoB,+BAyC5E"}
1
+ {"version":3,"file":"FileActionsMenu.d.ts","sources":["../src/FileActionsMenu.tsx"],"names":[],"mappings":"AAYA,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,oBAAoB,+BAyC5E"}
@@ -1,3 +1,3 @@
1
- import { FileRendererProps } from '@haklex/rich-editor/renderers';
2
- export declare function FileEditRenderer(props: FileRendererProps): import('react').JSX.Element;
1
+ import type { FileRendererProps } from '@haklex/rich-editor/renderers';
2
+ export declare function FileEditRenderer(props: FileRendererProps): import("react").JSX.Element;
3
3
  //# sourceMappingURL=FileEditRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileEditRenderer.d.ts","sourceRoot":"","sources":["../src/FileEditRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAiCvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,+BAQxD"}
1
+ {"version":3,"file":"FileEditRenderer.d.ts","sources":["../src/FileEditRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAkCvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,+BAQxD"}
@@ -1,11 +1,11 @@
1
- import { FileRendererProps } from '@haklex/rich-editor/renderers';
1
+ import type { FileRendererProps } from '@haklex/rich-editor/renderers';
2
2
  export declare function FileChipContent({ name }: {
3
3
  name: string;
4
- }): import('react').JSX.Element;
4
+ }): import("react").JSX.Element;
5
5
  export declare function FileCardContent({ name, size, ext, }: {
6
6
  ext?: string;
7
7
  name: string;
8
8
  size?: number;
9
- }): import('react').JSX.Element;
10
- export declare function FileRenderer({ src, name, size, ext, display }: FileRendererProps): import('react').JSX.Element;
9
+ }): import("react").JSX.Element;
10
+ export declare function FileRenderer({ src, name, size, ext, display }: FileRendererProps): import("react").JSX.Element;
11
11
  //# sourceMappingURL=FileRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileRenderer.d.ts","sourceRoot":"","sources":["../src/FileRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,+BAOzD;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,GAAG,GACJ,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,+BAcA;AAED,wBAAgB,YAAY,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BA0BhF"}
1
+ {"version":3,"file":"FileRenderer.d.ts","sources":["../src/FileRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,+BAOzD;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,GAAG,GACJ,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,+BAcA;AAED,wBAAgB,YAAY,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BA0BhF"}
@@ -1,10 +1,5 @@
1
- export declare function useFileReplace(nodeKey: string, onReplaced: (fileName: string) => void): {
2
- available: boolean;
3
- handleReplaceFile: (file: File | null) => Promise<void>;
4
- replacePercent: number;
5
- replacing: boolean;
6
- };
7
- type FileReplaceButtonProps = Omit<ReturnType<typeof useFileReplace>, 'available'>;
8
- export declare function FileReplaceButton({ handleReplaceFile, replacePercent, replacing, }: FileReplaceButtonProps): import('react').JSX.Element;
1
+ import type { FileReplaceState } from './useFileReplace';
2
+ type FileReplaceButtonProps = Omit<FileReplaceState, 'available'>;
3
+ export declare function FileReplaceButton({ handleReplaceFile, replacePercent, replacing, }: FileReplaceButtonProps): import("react").JSX.Element;
9
4
  export {};
10
5
  //# sourceMappingURL=FileReplaceButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileReplaceButton.d.ts","sourceRoot":"","sources":["../src/FileReplaceButton.tsx"],"names":[],"mappings":"AAQA,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI;;8BAOrE,IAAI,GAAG,IAAI;;;EAkC3B;AAED,KAAK,sBAAsB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC;AAEnF,wBAAgB,iBAAiB,CAAC,EAChC,iBAAiB,EACjB,cAAc,EACd,SAAS,GACV,EAAE,sBAAsB,+BAyBxB"}
1
+ {"version":3,"file":"FileReplaceButton.d.ts","sources":["../src/FileReplaceButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,KAAK,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;AAElE,wBAAgB,iBAAiB,CAAC,EAChC,iBAAiB,EACjB,cAAc,EACd,SAAS,GACV,EAAE,sBAAsB,+BAyBxB"}
@@ -1,8 +1,8 @@
1
- import { useFileUploadEntry } from '@haklex/rich-editor/plugins';
1
+ import type { useFileUploadEntry } from '@haklex/rich-editor/plugins';
2
2
  type FileUploadEntry = NonNullable<ReturnType<typeof useFileUploadEntry>>;
3
3
  export declare function FileUploadCard({ entry, name }: {
4
4
  entry: FileUploadEntry;
5
5
  name: string;
6
- }): import('react').JSX.Element;
6
+ }): import("react").JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=FileUploadCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploadCard.d.ts","sourceRoot":"","sources":["../src/FileUploadCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAMtE,KAAK,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAE1E,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,+BA6CvF"}
1
+ {"version":3,"file":"FileUploadCard.d.ts","sources":["../src/FileUploadCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAMtE,KAAK,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAE1E,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,+BA6CvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { ActionBar, ActionButton, DropdownMenu, DropdownMenuContent, DropdownMen
7
7
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
8
8
  import { $createParagraphNode, $getNodeByKey, HISTORY_MERGE_TAG, UNDO_COMMAND } from "lexical";
9
9
  import { AlertCircle, Download, Ellipsis, Link2, Paperclip, RefreshCw, Trash2 } from "lucide-react";
10
- import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
10
+ import { useCallback, useId, useMemo, useRef, useState } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region src/FileActionsMenu.tsx
13
13
  function FileActionsMenu({ name, onDelete, src }) {
@@ -61,55 +61,6 @@ function FileActionsMenu({ name, onDelete, src }) {
61
61
  }
62
62
  //#endregion
63
63
  //#region src/FileReplaceButton.tsx
64
- function useFileReplace(nodeKey, onReplaced) {
65
- const [editor] = useLexicalComposerContext();
66
- const fileUpload = useFileUpload();
67
- const [replacing, setReplacing] = useState(false);
68
- const [replacePercent, setReplacePercent] = useState(0);
69
- const handleReplaceFile = useCallback(async (file) => {
70
- if (!file || !fileUpload) return;
71
- setReplacing(true);
72
- setReplacePercent(0);
73
- try {
74
- const result = await fileUpload(file, { onProgress: (percent) => setReplacePercent(Math.round(percent)) });
75
- editor.update(() => {
76
- const node = $getNodeByKey(nodeKey);
77
- if (!$isFileNode(node)) return;
78
- node.setFilePayload({
79
- src: result.src,
80
- name: file.name,
81
- size: file.size,
82
- mimeType: file.type || void 0,
83
- ext: fileExtFromName(file.name)
84
- });
85
- });
86
- onReplaced(file.name);
87
- toast({
88
- title: "File replaced",
89
- tone: "success"
90
- });
91
- } catch (err) {
92
- console.error("[FileEditRenderer]", err);
93
- toast({
94
- title: "Upload failed",
95
- tone: "error"
96
- });
97
- } finally {
98
- setReplacing(false);
99
- }
100
- }, [
101
- editor,
102
- fileUpload,
103
- nodeKey,
104
- onReplaced
105
- ]);
106
- return {
107
- available: !!fileUpload,
108
- handleReplaceFile,
109
- replacePercent,
110
- replacing
111
- };
112
- }
113
64
  function FileReplaceButton({ handleReplaceFile, replacePercent, replacing }) {
114
65
  const fileInputRef = useRef(null);
115
66
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("input", {
@@ -170,6 +121,57 @@ function FileUploadCard({ entry, name }) {
170
121
  });
171
122
  }
172
123
  //#endregion
124
+ //#region src/useFileReplace.ts
125
+ function useFileReplace(nodeKey, onReplaced) {
126
+ const [editor] = useLexicalComposerContext();
127
+ const fileUpload = useFileUpload();
128
+ const [replacing, setReplacing] = useState(false);
129
+ const [replacePercent, setReplacePercent] = useState(0);
130
+ const handleReplaceFile = useCallback(async (file) => {
131
+ if (!file || !fileUpload) return;
132
+ setReplacing(true);
133
+ setReplacePercent(0);
134
+ try {
135
+ const result = await fileUpload(file, { onProgress: (percent) => setReplacePercent(Math.round(percent)) });
136
+ editor.update(() => {
137
+ const node = $getNodeByKey(nodeKey);
138
+ if (!$isFileNode(node)) return;
139
+ node.setFilePayload({
140
+ src: result.src,
141
+ name: file.name,
142
+ size: file.size,
143
+ mimeType: file.type || void 0,
144
+ ext: fileExtFromName(file.name)
145
+ });
146
+ });
147
+ onReplaced(file.name);
148
+ toast({
149
+ title: "File replaced",
150
+ tone: "success"
151
+ });
152
+ } catch (err) {
153
+ console.error("[FileEditRenderer]", err);
154
+ toast({
155
+ title: "Upload failed",
156
+ tone: "error"
157
+ });
158
+ } finally {
159
+ setReplacing(false);
160
+ }
161
+ }, [
162
+ editor,
163
+ fileUpload,
164
+ nodeKey,
165
+ onReplaced
166
+ ]);
167
+ return {
168
+ available: !!fileUpload,
169
+ handleReplaceFile,
170
+ replacePercent,
171
+ replacing
172
+ };
173
+ }
174
+ //#endregion
173
175
  //#region src/FileEditRenderer.tsx
174
176
  var DISPLAY_ITEMS = [{
175
177
  value: "block",
@@ -202,9 +204,11 @@ function FileEditRendererInner({ src, name, size, mimeType, ext, display, nodeKe
202
204
  }, merge ? { tag: HISTORY_MERGE_TAG } : void 0);
203
205
  }, [editor, nodeKey]);
204
206
  const { apply, revert } = useLiveEdit(values, open, applyName);
205
- useEffect(() => {
207
+ const [prevOpen, setPrevOpen] = useState(open);
208
+ if (prevOpen !== open) {
209
+ setPrevOpen(open);
206
210
  if (open) setEditName(name);
207
- }, [open]);
211
+ }
208
212
  const handleDelete = useCallback(() => {
209
213
  editor.update(() => {
210
214
  $getNodeByKey(nodeKey)?.remove();
@@ -1 +1 @@
1
- {"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../src/static.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"static.d.ts","sources":["../src/static.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,17 +1,17 @@
1
1
  export declare const semanticClassNames: {
2
- readonly card: "rr-file-card";
3
- readonly cardIcon: "rr-file-card-icon";
4
- readonly cardMeta: "rr-file-card-meta";
5
- readonly cardName: "rr-file-card-name";
6
- readonly cardSub: "rr-file-card-sub";
7
- readonly cardAction: "rr-file-card-action";
8
- readonly cardProgress: "rr-file-card-progress";
9
- readonly cardProgressFill: "rr-file-card-progress-fill";
10
- readonly chip: "rr-file-chip";
11
- readonly chipIcon: "rr-file-chip-icon";
12
- readonly chipName: "rr-file-chip-name";
13
- readonly editTrigger: "rr-file-edit-trigger";
14
- readonly editPanel: "rr-file-edit-panel";
2
+ readonly card: 'rr-file-card';
3
+ readonly cardIcon: 'rr-file-card-icon';
4
+ readonly cardMeta: 'rr-file-card-meta';
5
+ readonly cardName: 'rr-file-card-name';
6
+ readonly cardSub: 'rr-file-card-sub';
7
+ readonly cardAction: 'rr-file-card-action';
8
+ readonly cardProgress: 'rr-file-card-progress';
9
+ readonly cardProgressFill: 'rr-file-card-progress-fill';
10
+ readonly chip: 'rr-file-chip';
11
+ readonly chipIcon: 'rr-file-chip-icon';
12
+ readonly chipName: 'rr-file-chip-name';
13
+ readonly editTrigger: 'rr-file-edit-trigger';
14
+ readonly editPanel: 'rr-file-edit-panel';
15
15
  };
16
16
  export declare const card: string;
17
17
  export declare const cardStatic: string;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAcrB,CAAC;AAIX,eAAO,MAAM,IAAI,QAsBf,CAAC;AAEH,eAAO,MAAM,UAAU,QAAY,CAAC;AAEpC,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAQnB,CAAC;AAEH,eAAO,MAAM,OAAO,QAQlB,CAAC;AAEH,eAAO,MAAM,UAAU,QAUrB,CAAC;AAEH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAM3B,CAAC;AAEH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,aAAa,QAExB,CAAC;AAEH,eAAO,MAAM,IAAI,QAuBf,CAAC;AAEH,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAInB,CAAC;AAEH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAG5B,CAAC;AAEH,eAAO,MAAM,SAAS,QAAY,CAAC;AAEnC,eAAO,MAAM,YAAY,QAKvB,CAAC;AAEH,eAAO,MAAM,cAAc,QAGzB,CAAC;AAEH,eAAO,MAAM,UAAU,QAIrB,CAAC"}
1
+ {"version":3,"file":"styles.css.d.ts","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;aAC7B,IAAI,EAAE,cAAc;aACpB,QAAQ,EAAE,mBAAmB;aAC7B,QAAQ,EAAE,mBAAmB;aAC7B,QAAQ,EAAE,mBAAmB;aAC7B,OAAO,EAAE,kBAAkB;aAC3B,UAAU,EAAE,qBAAqB;aACjC,YAAY,EAAE,uBAAuB;aACrC,gBAAgB,EAAE,4BAA4B;aAC9C,IAAI,EAAE,cAAc;aACpB,QAAQ,EAAE,mBAAmB;aAC7B,QAAQ,EAAE,mBAAmB;aAC7B,WAAW,EAAE,sBAAsB;aACnC,SAAS,EAAE,oBAAoB;CACvB,CAAC;AAIX,eAAO,MAAM,IAAI,QAsBf,CAAC;AAEH,eAAO,MAAM,UAAU,QAAY,CAAC;AAEpC,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAQnB,CAAC;AAEH,eAAO,MAAM,OAAO,QAQlB,CAAC;AAEH,eAAO,MAAM,UAAU,QAUrB,CAAC;AAEH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAM3B,CAAC;AAEH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,aAAa,QAExB,CAAC;AAEH,eAAO,MAAM,IAAI,QAuBf,CAAC;AAEH,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAInB,CAAC;AAEH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAG5B,CAAC;AAEH,eAAO,MAAM,SAAS,QAAY,CAAC;AAEnC,eAAO,MAAM,YAAY,QAKvB,CAAC;AAEH,eAAO,MAAM,cAAc,QAGzB,CAAC;AAEH,eAAO,MAAM,UAAU,QAIrB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface FileReplaceState {
2
+ available: boolean;
3
+ handleReplaceFile: (file: File | null) => Promise<void>;
4
+ replacePercent: number;
5
+ replacing: boolean;
6
+ }
7
+ export declare function useFileReplace(nodeKey: string, onReplaced: (fileName: string) => void): FileReplaceState;
8
+ //# sourceMappingURL=useFileReplace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFileReplace.d.ts","sources":["../src/useFileReplace.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACrC,gBAAgB,CAyClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-file",
3
- "version": "0.69.0",
3
+ "version": "0.69.1",
4
4
  "description": "File attachment renderer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,15 +34,13 @@
34
34
  "lexical": "^0.53.0",
35
35
  "react": "^19.3.1",
36
36
  "react-dom": "^19.3.1",
37
- "typescript": "^7.0.2",
38
- "unplugin-dts": "^1.1.2",
39
37
  "vite": "^8.3.5"
40
38
  },
41
39
  "peerDependencies": {
42
40
  "@base-ui/react": ">=1.5.0",
43
- "@haklex/rich-editor": "^0.69.0",
44
- "@haklex/rich-editor-ui": "^0.69.0",
45
- "@haklex/rich-style-token": "^0.69.0",
41
+ "@haklex/rich-editor": "^0.69.1",
42
+ "@haklex/rich-editor-ui": "^0.69.1",
43
+ "@haklex/rich-style-token": "^0.69.1",
46
44
  "@lexical/react": "^0.53.0",
47
45
  "lexical": "^0.53.0",
48
46
  "lucide-react": "^1.0.0",