@haklex/rich-renderer-mention 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.
- package/dist/ExtraPlatformContext.d.ts +4 -0
- package/dist/ExtraPlatformContext.d.ts.map +1 -0
- package/dist/MentionEditRenderer.d.ts +2 -2
- package/dist/MentionEditRenderer.d.ts.map +1 -1
- package/dist/{MentionRenderer-DtRmgofi.js → MentionRenderer-CJXX0ryS.js} +16 -14
- package/dist/MentionRenderer.d.ts +5 -11
- package/dist/MentionRenderer.d.ts.map +1 -1
- package/dist/history-shortcuts.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/mention-platforms.d.ts +8 -0
- package/dist/mention-platforms.d.ts.map +1 -0
- package/dist/static.d.ts +4 -2
- package/dist/static.d.ts.map +1 -1
- package/dist/static.mjs +1 -1
- package/dist/styles.css.d.ts +7 -7
- package/dist/styles.css.d.ts.map +1 -1
- package/package.json +4 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MentionPlatformMeta } from './mention-platforms';
|
|
2
|
+
export declare const ExtraPlatformContext: import("react").Context<Record<string, MentionPlatformMeta>>;
|
|
3
|
+
export declare function useExtraPlatforms(): Record<string, MentionPlatformMeta>;
|
|
4
|
+
//# sourceMappingURL=ExtraPlatformContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtraPlatformContext.d.ts","sources":["../src/ExtraPlatformContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,eAAO,MAAM,oBAAoB,8DAAyD,CAAC;AAE3F,wBAAgB,iBAAiB,wCAEhC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MentionRendererProps } from './MentionRenderer';
|
|
2
|
-
export declare function MentionEditRenderer(props: MentionRendererProps): import(
|
|
1
|
+
import type { MentionRendererProps } from './MentionRenderer';
|
|
2
|
+
export declare function MentionEditRenderer(props: MentionRendererProps): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=MentionEditRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionEditRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"MentionEditRenderer.d.ts","sources":["../src/MentionEditRenderer.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAY9D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,oBAAoB,+BAQ9D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createContext, use } from "react";
|
|
2
1
|
import { SiGithub, SiTelegram, SiX, SiZhihu } from "@icons-pack/react-simple-icons";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, use } from "react";
|
|
4
4
|
//#region src/styles.css.ts
|
|
5
5
|
var semanticClassNames = {
|
|
6
6
|
mention: "rich-mention",
|
|
@@ -21,18 +21,6 @@ var editPanel = "b6sgtu6";
|
|
|
21
21
|
var handleControl = "b6sgtu7";
|
|
22
22
|
var handleIcon = "b6sgtu8";
|
|
23
23
|
var handleInput = "b6sgtu9";
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/MentionRenderer.tsx
|
|
26
|
-
var ExtraPlatformContext = createContext({});
|
|
27
|
-
function MentionPlatformProvider({ platforms, children }) {
|
|
28
|
-
return /* @__PURE__ */ jsx(ExtraPlatformContext, {
|
|
29
|
-
value: platforms,
|
|
30
|
-
children
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function useExtraPlatforms() {
|
|
34
|
-
return use(ExtraPlatformContext);
|
|
35
|
-
}
|
|
36
24
|
var platformMetaMap = {
|
|
37
25
|
GH: {
|
|
38
26
|
label: "GitHub",
|
|
@@ -68,6 +56,20 @@ var platformMetaMap = {
|
|
|
68
56
|
}
|
|
69
57
|
};
|
|
70
58
|
var platformKeys = Object.keys(platformMetaMap);
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/ExtraPlatformContext.ts
|
|
61
|
+
var ExtraPlatformContext = createContext({});
|
|
62
|
+
function useExtraPlatforms() {
|
|
63
|
+
return use(ExtraPlatformContext);
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/MentionRenderer.tsx
|
|
67
|
+
function MentionPlatformProvider({ platforms, children }) {
|
|
68
|
+
return /* @__PURE__ */ jsx(ExtraPlatformContext, {
|
|
69
|
+
value: platforms,
|
|
70
|
+
children
|
|
71
|
+
});
|
|
72
|
+
}
|
|
71
73
|
function MentionRenderer({ platform, handle, displayName }) {
|
|
72
74
|
const extraPlatforms = useExtraPlatforms();
|
|
73
75
|
const normalizedHandle = handle.replace(/^@+/, "");
|
|
@@ -96,4 +98,4 @@ function MentionRenderer({ platform, handle, displayName }) {
|
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
100
|
//#endregion
|
|
99
|
-
export {
|
|
101
|
+
export { platformMetaMap as a, handleControl as c, semanticClassNames as d, platformKeys as i, handleIcon as l, MentionRenderer as n, editPanel as o, useExtraPlatforms as r, editTrigger as s, MentionPlatformProvider as t, handleInput as u };
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { MentionPlatformMeta } from './mention-platforms';
|
|
1
3
|
export interface MentionRendererProps {
|
|
2
4
|
displayName?: string;
|
|
3
5
|
handle: string;
|
|
4
6
|
platform: string;
|
|
5
7
|
}
|
|
6
|
-
export interface MentionPlatformMeta {
|
|
7
|
-
getUrl: (handle: string) => string;
|
|
8
|
-
icon: React.ReactNode;
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
8
|
export declare function MentionPlatformProvider({ platforms, children, }: {
|
|
12
9
|
platforms: Record<string, MentionPlatformMeta>;
|
|
13
|
-
children:
|
|
14
|
-
}): import(
|
|
15
|
-
export declare function
|
|
16
|
-
export declare const platformMetaMap: Record<string, MentionPlatformMeta>;
|
|
17
|
-
export declare const platformKeys: string[];
|
|
18
|
-
export declare function MentionRenderer({ platform, handle, displayName }: MentionRendererProps): import('react').JSX.Element;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export declare function MentionRenderer({ platform, handle, displayName }: MentionRendererProps): import("react").JSX.Element;
|
|
19
13
|
//# sourceMappingURL=MentionRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"MentionRenderer.d.ts","sources":["../src/MentionRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI/D,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,oBAAoB,+BAoCtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-shortcuts.d.ts","
|
|
1
|
+
{"version":3,"file":"history-shortcuts.d.ts","sources":["../src/history-shortcuts.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,0BAA0B,EACjC,OAAO,GAAE,4BAAiC,GACzC,qBAAqB,GAAG,IAAI,CAgB9B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export type { MentionPlatformMeta } from './mention-platforms';
|
|
2
|
+
export { platformKeys, platformMetaMap } from './mention-platforms';
|
|
1
3
|
export { MentionEditRenderer } from './MentionEditRenderer';
|
|
2
|
-
export type {
|
|
3
|
-
export { MentionPlatformProvider, MentionRenderer
|
|
4
|
+
export type { MentionRendererProps } from './MentionRenderer';
|
|
5
|
+
export { MentionPlatformProvider, MentionRenderer } from './MentionRenderer';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as platformMetaMap, c as handleControl, d as semanticClassNames, i as platformKeys, l as handleIcon, n as MentionRenderer, o as editPanel, r as useExtraPlatforms, s as editTrigger, t as MentionPlatformProvider, u as handleInput } from "./MentionRenderer-CJXX0ryS.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { useRendererMode } from "@haklex/rich-editor/static";
|
|
3
4
|
import { ActionBar, ActionButton, Field, Popover, PopoverPanel, PopoverTrigger, SegmentedControl, TextInput } from "@haklex/rich-editor-ui";
|
|
4
5
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
5
6
|
import { $getNearestNodeFromDOMNode, REDO_COMMAND, UNDO_COMMAND } from "lexical";
|
|
6
7
|
import { AtSign, ExternalLink, Trash2 } from "lucide-react";
|
|
7
8
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/history-shortcuts.ts
|
|
10
10
|
function getEditorHistoryShortcut(event, options = {}) {
|
|
11
11
|
if (options.isDirty) return null;
|
|
@@ -39,8 +39,8 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
39
39
|
displayName
|
|
40
40
|
]);
|
|
41
41
|
const [open, setOpen] = useState(false);
|
|
42
|
-
const [
|
|
43
|
-
const draftRef = useRef(
|
|
42
|
+
const [draftState, setDraftState] = useState(current);
|
|
43
|
+
const draftRef = useRef(draftState);
|
|
44
44
|
const snapshotRef = useRef(current);
|
|
45
45
|
const setDraft = useCallback((next) => {
|
|
46
46
|
draftRef.current = next;
|
|
@@ -52,12 +52,12 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
52
52
|
}, [current, setDraft]);
|
|
53
53
|
const platformItems = useMemo(() => {
|
|
54
54
|
const keys = [...platformKeys, ...Object.keys(extraPlatforms)];
|
|
55
|
-
if (!keys.includes(
|
|
55
|
+
if (!keys.includes(draftState.platform)) keys.push(draftState.platform);
|
|
56
56
|
return [...new Set(keys)].map((key) => ({
|
|
57
57
|
value: key,
|
|
58
58
|
label: platformMetaMap[key]?.label ?? extraPlatforms[key]?.label ?? key
|
|
59
59
|
}));
|
|
60
|
-
}, [
|
|
60
|
+
}, [draftState.platform, extraPlatforms]);
|
|
61
61
|
const writeNode = useCallback((next) => {
|
|
62
62
|
const trimmedHandle = next.handle.trim();
|
|
63
63
|
if (!trimmedHandle || !wrapperRef.current) return;
|
|
@@ -112,12 +112,12 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
112
112
|
setOpen(false);
|
|
113
113
|
}, [editor]);
|
|
114
114
|
const handleOpen = useCallback(() => {
|
|
115
|
-
const normalizedHandle =
|
|
116
|
-
const meta = platformMetaMap[
|
|
115
|
+
const normalizedHandle = draftState.handle.trim().replace(LEADING_AT_RE, "");
|
|
116
|
+
const meta = platformMetaMap[draftState.platform] ?? extraPlatforms[draftState.platform];
|
|
117
117
|
if (meta && normalizedHandle) window.open(meta.getUrl(normalizedHandle), "_blank", "noopener,noreferrer");
|
|
118
118
|
}, [
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
draftState.handle,
|
|
120
|
+
draftState.platform,
|
|
121
121
|
extraPlatforms
|
|
122
122
|
]);
|
|
123
123
|
const handleInputKeyDown = useCallback((e) => {
|
|
@@ -133,14 +133,14 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
133
133
|
revert();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
-
const shortcut = getEditorHistoryShortcut(e, { isDirty:
|
|
136
|
+
const shortcut = getEditorHistoryShortcut(e, { isDirty: draftState.handle.trim() !== current.handle || draftState.displayName.trim() !== current.displayName });
|
|
137
137
|
if (!shortcut) return;
|
|
138
138
|
e.preventDefault();
|
|
139
139
|
e.stopPropagation();
|
|
140
140
|
editor.dispatchCommand(shortcut === "undo" ? UNDO_COMMAND : REDO_COMMAND, void 0);
|
|
141
141
|
}, [
|
|
142
142
|
current,
|
|
143
|
-
|
|
143
|
+
draftState,
|
|
144
144
|
editor,
|
|
145
145
|
revert
|
|
146
146
|
]);
|
|
@@ -174,7 +174,7 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
174
174
|
/* @__PURE__ */ jsx(SegmentedControl, {
|
|
175
175
|
fullWidth: true,
|
|
176
176
|
items: platformItems,
|
|
177
|
-
value:
|
|
177
|
+
value: draftState.platform,
|
|
178
178
|
onChange: (next) => applyDraft({ platform: next })
|
|
179
179
|
}),
|
|
180
180
|
/* @__PURE__ */ jsx(Field, {
|
|
@@ -189,7 +189,7 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
189
189
|
className: handleInput,
|
|
190
190
|
id: handleId,
|
|
191
191
|
placeholder: "username",
|
|
192
|
-
value:
|
|
192
|
+
value: draftState.handle,
|
|
193
193
|
onChange: (e) => applyDraft({ handle: e.target.value }),
|
|
194
194
|
onKeyDown: handleInputKeyDown
|
|
195
195
|
})]
|
|
@@ -201,13 +201,13 @@ function MentionEditRendererInner({ platform, handle, displayName }) {
|
|
|
201
201
|
label: "Display name",
|
|
202
202
|
children: /* @__PURE__ */ jsx(TextInput, {
|
|
203
203
|
id: nameId,
|
|
204
|
-
value:
|
|
204
|
+
value: draftState.displayName,
|
|
205
205
|
onChange: (e) => applyDraft({ displayName: e.target.value }),
|
|
206
206
|
onKeyDown: handleInputKeyDown
|
|
207
207
|
})
|
|
208
208
|
}),
|
|
209
209
|
/* @__PURE__ */ jsxs(ActionBar, { children: [/* @__PURE__ */ jsxs(ActionButton, {
|
|
210
|
-
disabled: !
|
|
210
|
+
disabled: !draftState.handle.trim(),
|
|
211
211
|
onClick: handleOpen,
|
|
212
212
|
children: [/* @__PURE__ */ jsx(ExternalLink, {}), "Open"]
|
|
213
213
|
}), /* @__PURE__ */ jsxs(ActionButton, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MentionPlatformMeta {
|
|
2
|
+
getUrl: (handle: string) => string;
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const platformMetaMap: Record<string, MentionPlatformMeta>;
|
|
7
|
+
export declare const platformKeys: string[];
|
|
8
|
+
//# sourceMappingURL=mention-platforms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mention-platforms.d.ts","sources":["../src/mention-platforms.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAYD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAqB/D,CAAC;AAEF,eAAO,MAAM,YAAY,UAA+B,CAAC"}
|
package/dist/static.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export type { MentionPlatformMeta
|
|
2
|
-
export {
|
|
1
|
+
export type { MentionPlatformMeta } from './mention-platforms';
|
|
2
|
+
export { platformKeys, platformMetaMap } from './mention-platforms';
|
|
3
|
+
export type { MentionRendererProps } from './MentionRenderer';
|
|
4
|
+
export { MentionPlatformProvider, MentionRenderer } from './MentionRenderer';
|
|
3
5
|
//# sourceMappingURL=static.d.ts.map
|
package/dist/static.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.d.ts","
|
|
1
|
+
{"version":3,"file":"static.d.ts","sources":["../src/static.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/static.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MentionPlatformProvider, n as MentionRenderer,
|
|
1
|
+
export { t as MentionPlatformProvider, n as MentionRenderer, i as platformKeys, a as platformMetaMap } from "./MentionRenderer-CJXX0ryS.js";
|
package/dist/styles.css.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const semanticClassNames: {
|
|
2
|
-
readonly mention:
|
|
3
|
-
readonly mentionIcon:
|
|
4
|
-
readonly mentionIconGitHub:
|
|
5
|
-
readonly mentionHandle:
|
|
6
|
-
readonly mentionPlain:
|
|
7
|
-
readonly editPanel:
|
|
8
|
-
readonly editTrigger:
|
|
2
|
+
readonly mention: 'rich-mention';
|
|
3
|
+
readonly mentionIcon: 'rich-mention-icon';
|
|
4
|
+
readonly mentionIconGitHub: 'rich-mention-icon-gh';
|
|
5
|
+
readonly mentionHandle: 'rich-mention-handle';
|
|
6
|
+
readonly mentionPlain: 'rich-mention-plain';
|
|
7
|
+
readonly editPanel: 'rich-mention-edit-panel';
|
|
8
|
+
readonly editTrigger: 'rich-mention-edit-trigger';
|
|
9
9
|
};
|
|
10
10
|
export declare const mention: string;
|
|
11
11
|
export declare const mentionPlain: string;
|
package/dist/styles.css.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;aAC7B,OAAO,EAAE,cAAc;aACvB,WAAW,EAAE,mBAAmB;aAChC,iBAAiB,EAAE,sBAAsB;aACzC,aAAa,EAAE,qBAAqB;aACpC,YAAY,EAAE,oBAAoB;aAClC,SAAS,EAAE,yBAAyB;aACpC,WAAW,EAAE,2BAA2B;CAChC,CAAC;AAGX,eAAO,MAAM,OAAO,QAqBlB,CAAC;AAEH,eAAO,MAAM,YAAY,QAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,QAItB,CAAC;AAQH,eAAO,MAAM,iBAAiB,QAE5B,CAAC;AAEH,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAMtB,CAAC;AAMH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,aAAa,QAIxB,CAAC;AAEH,eAAO,MAAM,UAAU,QAOrB,CAAC;AAEH,eAAO,MAAM,WAAW,QAMtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-mention",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.1",
|
|
4
4
|
"description": "Social mention renderer with platform badges",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,14 +36,12 @@
|
|
|
36
36
|
"lexical": "^0.53.0",
|
|
37
37
|
"react": "^19.3.1",
|
|
38
38
|
"react-dom": "^19.3.1",
|
|
39
|
-
"typescript": "^7.0.2",
|
|
40
|
-
"unplugin-dts": "^1.1.2",
|
|
41
39
|
"vite": "^8.3.5"
|
|
42
40
|
},
|
|
43
41
|
"peerDependencies": {
|
|
44
|
-
"@haklex/rich-editor": "^0.69.
|
|
45
|
-
"@haklex/rich-editor-ui": "^0.69.
|
|
46
|
-
"@haklex/rich-style-token": "^0.69.
|
|
42
|
+
"@haklex/rich-editor": "^0.69.1",
|
|
43
|
+
"@haklex/rich-editor-ui": "^0.69.1",
|
|
44
|
+
"@haklex/rich-style-token": "^0.69.1",
|
|
47
45
|
"@lexical/react": "^0.53.0",
|
|
48
46
|
"lexical": "^0.53.0",
|
|
49
47
|
"lucide-react": "^1.0.0",
|