@haklex/rich-ext-code-snippet 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/CodeEditorModal.d.ts +3 -3
- package/dist/CodeEditorModal.d.ts.map +1 -1
- package/dist/CodeSnippetEditDecorator.d.ts +3 -3
- package/dist/CodeSnippetEditDecorator.d.ts.map +1 -1
- package/dist/CodeSnippetEditRenderer.d.ts +2 -2
- package/dist/CodeSnippetEditRenderer.d.ts.map +1 -1
- package/dist/{CodeSnippetRenderer-DluMDooV.js → CodeSnippetRenderer-CD2LzPbL.js} +9 -3
- package/dist/CodeSnippetRenderer.d.ts +2 -2
- package/dist/CodeSnippetRenderer.d.ts.map +1 -1
- package/dist/augment.d.ts +2 -2
- package/dist/augment.d.ts.map +1 -1
- package/dist/{edit-Cw-jfMh1.js → edit-BhPOmgcH.js} +22 -21
- package/dist/edit.d.ts +2 -1
- package/dist/edit.d.ts.map +1 -1
- package/dist/edit.mjs +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/nodes/CodeSnippetEditNode.d.ts +4 -4
- package/dist/nodes/CodeSnippetEditNode.d.ts.map +1 -1
- package/dist/nodes/CodeSnippetNode.d.ts +5 -3
- package/dist/nodes/CodeSnippetNode.d.ts.map +1 -1
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.d.ts.map +1 -1
- package/dist/renderer.mjs +2 -5
- package/dist/slot.d.ts +1 -1
- package/dist/slot.d.ts.map +1 -1
- package/dist/static.d.ts.map +1 -1
- package/dist/static.mjs +1 -1
- package/dist/styles.css.d.ts +39 -39
- package/dist/styles.css.d.ts.map +1 -1
- package/dist/transformer.d.ts.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +7 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColorScheme } from '@haklex/rich-editor/static';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { CodeFile } from './types';
|
|
1
|
+
import type { ColorScheme } from '@haklex/rich-editor/static';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { CodeFile } from './types';
|
|
4
4
|
export interface CodeEditorModalProps {
|
|
5
5
|
colorScheme: ColorScheme;
|
|
6
6
|
dismiss: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditorModal.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeEditorModal.d.ts","sources":["../src/CodeEditorModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAW9D,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AA4FD,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAuSpD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NodeKey } from 'lexical';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { CodeFile } from './types';
|
|
1
|
+
import type { NodeKey } from 'lexical';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { CodeFile } from './types';
|
|
4
4
|
export interface CodeSnippetEditDecoratorProps {
|
|
5
5
|
files: CodeFile[];
|
|
6
6
|
nodeKey: NodeKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeSnippetEditDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeSnippetEditDecorator.d.ts","sources":["../src/CodeSnippetEditDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAgBtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeSnippetEditRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeSnippetEditRenderer.d.ts","sources":["../src/CodeSnippetEditRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAYhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAiDpE,CAAC"}
|
|
@@ -233,6 +233,12 @@ function getLanguageFromFilename(filename) {
|
|
|
233
233
|
}
|
|
234
234
|
//#endregion
|
|
235
235
|
//#region src/CodeSnippetRenderer.tsx
|
|
236
|
+
function toNumberedLines(code) {
|
|
237
|
+
return code.split("\n").map((text, offset) => ({
|
|
238
|
+
lineNumber: offset + 1,
|
|
239
|
+
text
|
|
240
|
+
}));
|
|
241
|
+
}
|
|
236
242
|
var CopyButton = ({ text }) => {
|
|
237
243
|
const [copied, setCopied] = useState(false);
|
|
238
244
|
const timerRef = useRef(void 0);
|
|
@@ -323,10 +329,10 @@ var CodeSnippetRenderer = ({ files }) => {
|
|
|
323
329
|
dangerouslySetInnerHTML: { __html: html }
|
|
324
330
|
}) : /* @__PURE__ */ jsx("pre", {
|
|
325
331
|
className: `${codeBody} ${semanticClassNames.codeBody}`,
|
|
326
|
-
children: /* @__PURE__ */ jsx("code", { children: file.code
|
|
332
|
+
children: /* @__PURE__ */ jsx("code", { children: toNumberedLines(file.code).map(({ lineNumber, text }) => /* @__PURE__ */ jsx("span", {
|
|
327
333
|
className: "line",
|
|
328
|
-
children:
|
|
329
|
-
},
|
|
334
|
+
children: text
|
|
335
|
+
}, lineNumber)) })
|
|
330
336
|
})
|
|
331
337
|
})
|
|
332
338
|
}, file.filename);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { CodeSnippetRendererProps } from './types';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { CodeSnippetRendererProps } from './types';
|
|
3
3
|
export declare const CodeSnippetRenderer: ComponentType<CodeSnippetRendererProps>;
|
|
4
4
|
//# sourceMappingURL=CodeSnippetRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeSnippetRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeSnippetRenderer.d.ts","sources":["../src/CodeSnippetRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAM,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA8BxD,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,wBAAwB,CAqHvE,CAAC"}
|
package/dist/augment.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { CodeSnippetRendererProps } from './types';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { CodeSnippetRendererProps } from './types';
|
|
3
3
|
declare module '@haklex/rich-editor/static' {
|
|
4
4
|
interface RendererConfig {
|
|
5
5
|
CodeSnippet?: ComponentType<CodeSnippetRendererProps>;
|
package/dist/augment.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augment.d.ts","
|
|
1
|
+
{"version":3,"file":"augment.d.ts","sources":["../src/augment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,cAAc;QACtB,WAAW,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;KACvD;CACF;AAED,eAAO,MAAM,4BAA4B,OAAO,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as renameInput, E as sidebarHeader, S as modalSidebar, T as sidebarAddButton, _ as fileList, a as breadcrumbLeft, b as modalBody, c as dragOverlay, d as editOverlay, f as editorContainer, g as fileItem, h as fileIcon, l as editContainer, m as fileDragHandle, n as getLanguageFromFilename, r as breadcrumb, s as codeSnippetDialogPopup, t as CodeSnippetRenderer, u as editLabel, v as fileName, w as semanticClassNames, x as modalEditor, y as modal } from "./CodeSnippetRenderer-
|
|
1
|
+
import { C as renameInput, E as sidebarHeader, S as modalSidebar, T as sidebarAddButton, _ as fileList, a as breadcrumbLeft, b as modalBody, c as dragOverlay, d as editOverlay, f as editorContainer, g as fileItem, h as fileIcon, l as editContainer, m as fileDragHandle, n as getLanguageFromFilename, r as breadcrumb, s as codeSnippetDialogPopup, t as CodeSnippetRenderer, u as editLabel, v as fileName, w as semanticClassNames, x as modalEditor, y as modal } from "./CodeSnippetRenderer-CD2LzPbL.js";
|
|
2
2
|
import { i as _defineProperty, n as $isCodeSnippetNode, r as CodeSnippetNode } from "./CodeSnippetNode-hEriw2U5.js";
|
|
3
3
|
import { $getNodeByKey, $insertNodes } from "lexical";
|
|
4
4
|
import { FileCode, FileCode2, GripVertical, Pencil, Plus, Trash2 } from "lucide-react";
|
|
5
|
-
import { createElement, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { createElement, useCallback, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
7
7
|
import { useColorScheme } from "@haklex/rich-editor/static";
|
|
8
8
|
import { ModalShell, ModalShellBody, ModalShellFooter, ModalShellHeader, confirmDiscardChanges, presentDialog } from "@haklex/rich-editor-ui";
|
|
@@ -83,31 +83,25 @@ var CodeEditorModal = ({ files: initialFiles, onFilesChange, onDirtyChange, dism
|
|
|
83
83
|
const [dragActiveId, setDragActiveId] = useState(null);
|
|
84
84
|
const containerRef = useRef(null);
|
|
85
85
|
const editorRef = useRef(null);
|
|
86
|
-
const languageCompartmentRef = useRef(null);
|
|
87
86
|
const themeCompartmentRef = useRef(null);
|
|
88
|
-
if (!languageCompartmentRef.current) languageCompartmentRef.current = new Compartment();
|
|
89
|
-
if (!themeCompartmentRef.current) themeCompartmentRef.current = new Compartment();
|
|
90
|
-
const onCodeChangeRef = useRef(void 0);
|
|
91
|
-
const editFilesRef = useRef(editFiles);
|
|
92
|
-
editFilesRef.current = editFiles;
|
|
93
87
|
const dirty = useMemo(() => JSON.stringify(editFiles) !== JSON.stringify(initialFiles), [editFiles, initialFiles]);
|
|
94
88
|
useEffect(() => {
|
|
95
89
|
onDirtyChange?.(dirty);
|
|
96
90
|
}, [dirty, onDirtyChange]);
|
|
97
91
|
const activeFile = editFiles.find((f) => f.filename === activeFilename) ?? editFiles[0];
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} : f));
|
|
103
|
-
};
|
|
92
|
+
const readEditorSeed = useEffectEvent((filename) => ({
|
|
93
|
+
file: editFiles.find((f) => f.filename === filename),
|
|
94
|
+
colorScheme
|
|
95
|
+
}));
|
|
104
96
|
useEffect(() => {
|
|
105
97
|
const container = containerRef.current;
|
|
106
98
|
if (!container) return;
|
|
107
|
-
const file
|
|
99
|
+
const { file, colorScheme: initialColorScheme } = readEditorSeed(activeFilename);
|
|
108
100
|
if (!file) return;
|
|
109
101
|
let cancelled = false;
|
|
110
102
|
const lang = normalizeLanguage(file.language ?? getLanguageFromFilename(file.filename));
|
|
103
|
+
const languageCompartment = new Compartment();
|
|
104
|
+
const themeCompartment = new Compartment();
|
|
111
105
|
const editor = new EditorView({
|
|
112
106
|
parent: container,
|
|
113
107
|
state: EditorState.create({
|
|
@@ -121,30 +115,37 @@ var CodeEditorModal = ({ files: initialFiles, onFilesChange, onDirtyChange, dism
|
|
|
121
115
|
]),
|
|
122
116
|
EditorView.updateListener.of((update) => {
|
|
123
117
|
if (!update.docChanged) return;
|
|
124
|
-
|
|
118
|
+
const code = update.state.doc.toString();
|
|
119
|
+
setEditFiles((prev) => prev.map((f) => f.filename === activeFilename ? {
|
|
120
|
+
...f,
|
|
121
|
+
code
|
|
122
|
+
} : f));
|
|
125
123
|
}),
|
|
126
124
|
lineNumbers(),
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
themeCompartment.of(getThemeExtensions(initialColorScheme)),
|
|
126
|
+
languageCompartment.of([])
|
|
129
127
|
]
|
|
130
128
|
})
|
|
131
129
|
});
|
|
132
130
|
editorRef.current = editor;
|
|
131
|
+
themeCompartmentRef.current = themeCompartment;
|
|
133
132
|
(async () => {
|
|
134
133
|
const extension = await loadLanguageExtension(lang);
|
|
135
134
|
if (cancelled) return;
|
|
136
|
-
editor.dispatch({ effects:
|
|
135
|
+
editor.dispatch({ effects: languageCompartment.reconfigure(extension) });
|
|
137
136
|
})();
|
|
138
137
|
return () => {
|
|
139
138
|
cancelled = true;
|
|
140
139
|
editor.destroy();
|
|
141
140
|
editorRef.current = null;
|
|
141
|
+
themeCompartmentRef.current = null;
|
|
142
142
|
};
|
|
143
143
|
}, [activeFilename]);
|
|
144
144
|
useEffect(() => {
|
|
145
145
|
const editor = editorRef.current;
|
|
146
|
-
|
|
147
|
-
editor
|
|
146
|
+
const themeCompartment = themeCompartmentRef.current;
|
|
147
|
+
if (!editor || !themeCompartment) return;
|
|
148
|
+
editor.dispatch({ effects: themeCompartment.reconfigure(getThemeExtensions(colorScheme)) });
|
|
148
149
|
}, [colorScheme]);
|
|
149
150
|
const handleSave = useCallback(() => {
|
|
150
151
|
onFilesChange?.(editFiles);
|
package/dist/edit.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import type { Klass, LexicalNode } from 'lexical';
|
|
2
3
|
export * from './augment';
|
|
3
4
|
export type { CodeSnippetEditRendererProps } from './CodeSnippetEditRenderer';
|
|
4
5
|
export { CodeSnippetEditRenderer } from './CodeSnippetEditRenderer';
|
package/dist/edit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.d.ts","
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sources":["../src/edit.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAIlD,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAyB,CAAC"}
|
package/dist/edit.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-B79wHSjn.js";
|
|
2
|
-
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-
|
|
2
|
+
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-BhPOmgcH.js";
|
|
3
3
|
export { $createCodeSnippetEditNode, $isCodeSnippetEditNode, CodeSnippetEditNode, CodeSnippetEditRenderer, __augmentLoaded_code_snippet, codeSnippetEditNodes };
|
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,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-B79wHSjn.js";
|
|
2
|
-
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-
|
|
3
|
-
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-
|
|
2
|
+
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-CD2LzPbL.js";
|
|
3
|
+
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-BhPOmgcH.js";
|
|
4
4
|
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-hEriw2U5.js";
|
|
5
5
|
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-tm3aVlCq.js";
|
|
6
6
|
import "./renderer.mjs";
|
package/dist/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Klass, LexicalNode } from 'lexical';
|
|
1
|
+
import type { Klass, LexicalNode } from 'lexical';
|
|
2
2
|
export * from './augment';
|
|
3
3
|
export type { SerializedCodeSnippetNode } from './nodes/CodeSnippetNode';
|
|
4
4
|
export { $createCodeSnippetNode, $isCodeSnippetNode, CodeSnippetNode, } from './nodes/CodeSnippetNode';
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","
|
|
1
|
+
{"version":3,"file":"node.d.ts","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAIlD,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAC/D,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandItemConfig } from '@haklex/rich-editor/commands';
|
|
2
|
-
import { EditorConfig, LexicalEditor, LexicalNode, SerializedLexicalNode } from 'lexical';
|
|
3
|
-
import { ReactElement } from 'react';
|
|
4
|
-
import { CodeFile } from '../types';
|
|
1
|
+
import type { CommandItemConfig } from '@haklex/rich-editor/commands';
|
|
2
|
+
import type { EditorConfig, LexicalEditor, LexicalNode, SerializedLexicalNode } from 'lexical';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import type { CodeFile } from '../types';
|
|
5
5
|
import { CodeSnippetNode } from './CodeSnippetNode';
|
|
6
6
|
export declare class CodeSnippetEditNode extends CodeSnippetNode {
|
|
7
7
|
static commandItems: CommandItemConfig[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeSnippetEditNode.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeSnippetEditNode.d.ts","sources":["../../src/nodes/CodeSnippetEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAkC,MAAM,mBAAmB,CAAC;AAEpF,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAmBtC;IAEF,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB,CAE3D;IAED,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,mBAAmB,CAGrB;IAED,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY,CAKpE;CACF;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAEjF;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,mBAAmB,CAE7B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import '../augment';
|
|
2
|
+
import type { EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical';
|
|
3
|
+
import { DecoratorNode } from 'lexical';
|
|
4
|
+
import type { ReactElement } from 'react';
|
|
5
|
+
import type { CodeFile } from '../types';
|
|
4
6
|
export type SerializedCodeSnippetNode = Spread<{
|
|
5
7
|
files: CodeFile[];
|
|
6
8
|
}, SerializedLexicalNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeSnippetNode.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeSnippetNode.d.ts","sources":["../../src/nodes/CodeSnippetNode.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAGpB,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAC5C;IACE,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,EACD,qBAAqB,CACtB,CAAC;AAEF,qBAAa,eAAgB,SAAQ,aAAa,CAAC,YAAY,CAAC;IAC9D,OAAO,EAAE,QAAQ,EAAE,CAAC;IAEpB,MAAM,CAAC,OAAO,IAAI,MAAM,CAEvB;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAEnD;IAED,YAAY,KAAK,EAAE,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE,OAAO,EAG3C;IAED,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAI5C;IAED,SAAS,IAAI,OAAO,CAEnB;IAED,QAAQ,IAAI,OAAO,CAElB;IAED,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,eAAe,CAGjB;IAED,UAAU,IAAI,yBAAyB,CAOtC;IAED,QAAQ,IAAI,QAAQ,EAAE,CAErB;IAED,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAGhC;IAED,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY,CAIpE;CACF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,eAAe,CAEzE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAEhG"}
|
package/dist/renderer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
|
|
1
2
|
import { CodeSnippetRenderer } from './CodeSnippetRenderer';
|
|
2
3
|
export * from './augment';
|
|
3
|
-
export { CodeSnippetRenderer };
|
|
4
|
+
export { CodeSnippetRenderer, CodeSnippetRenderer as default };
|
|
4
5
|
export type { CodeFile, CodeSnippetRendererProps } from './types';
|
|
5
|
-
export default CodeSnippetRenderer;
|
|
6
6
|
//# sourceMappingURL=renderer.d.ts.map
|
package/dist/renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,IAAI,OAAO,EAAE,CAAC;AAC/D,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/renderer.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-B79wHSjn.js";
|
|
2
|
-
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-
|
|
3
|
-
|
|
4
|
-
var renderer_default = CodeSnippetRenderer;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { CodeSnippetRenderer, __augmentLoaded_code_snippet, renderer_default as default };
|
|
2
|
+
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-CD2LzPbL.js";
|
|
3
|
+
export { CodeSnippetRenderer, CodeSnippetRenderer as default, __augmentLoaded_code_snippet };
|
package/dist/slot.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Override modules should reference this constant instead of the bare string
|
|
5
5
|
* literal so renames stay searchable across the workspace.
|
|
6
6
|
*/
|
|
7
|
-
export declare const CODE_SNIPPET_NODE_KEY:
|
|
7
|
+
export declare const CODE_SNIPPET_NODE_KEY: 'CodeSnippet';
|
|
8
8
|
//# sourceMappingURL=slot.d.ts.map
|
package/dist/slot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.d.ts","
|
|
1
|
+
{"version":3,"file":"slot.d.ts","sources":["../src/slot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAG,aAAsB,CAAC"}
|
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,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
package/dist/static.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-B79wHSjn.js";
|
|
2
|
-
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-
|
|
2
|
+
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-CD2LzPbL.js";
|
|
3
3
|
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-hEriw2U5.js";
|
|
4
4
|
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-tm3aVlCq.js";
|
|
5
5
|
import "./renderer.mjs";
|
package/dist/styles.css.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
export declare const semanticClassNames: {
|
|
2
|
-
readonly container:
|
|
3
|
-
readonly header:
|
|
4
|
-
readonly tabs:
|
|
5
|
-
readonly tab:
|
|
6
|
-
readonly tabActive:
|
|
7
|
-
readonly titleBar:
|
|
8
|
-
readonly headerActions:
|
|
9
|
-
readonly copyButton:
|
|
10
|
-
readonly separator:
|
|
11
|
-
readonly codePanelsWrapper:
|
|
12
|
-
readonly codePanel:
|
|
13
|
-
readonly codeScroll:
|
|
14
|
-
readonly codeBody:
|
|
15
|
-
readonly fileIcon:
|
|
16
|
-
readonly editContainer:
|
|
17
|
-
readonly editOverlay:
|
|
18
|
-
readonly editLabel:
|
|
19
|
-
readonly modal:
|
|
20
|
-
readonly modalBody:
|
|
21
|
-
readonly modalSidebar:
|
|
22
|
-
readonly sidebarHeader:
|
|
23
|
-
readonly sidebarAddButton:
|
|
24
|
-
readonly fileList:
|
|
25
|
-
readonly fileItem:
|
|
26
|
-
readonly fileItemActive:
|
|
27
|
-
readonly fileItemDragging:
|
|
28
|
-
readonly fileDragHandle:
|
|
29
|
-
readonly fileName:
|
|
30
|
-
readonly fileDelete:
|
|
31
|
-
readonly renameInput:
|
|
32
|
-
readonly modalEditor:
|
|
33
|
-
readonly breadcrumb:
|
|
34
|
-
readonly breadcrumbLeft:
|
|
35
|
-
readonly breadcrumbName:
|
|
36
|
-
readonly breadcrumbLang:
|
|
37
|
-
readonly editorContainer:
|
|
38
|
-
readonly dragOverlay:
|
|
2
|
+
readonly container: 'rcs-container';
|
|
3
|
+
readonly header: 'rcs-header';
|
|
4
|
+
readonly tabs: 'rcs-tabs';
|
|
5
|
+
readonly tab: 'rcs-tab';
|
|
6
|
+
readonly tabActive: 'rcs-tab-active';
|
|
7
|
+
readonly titleBar: 'rcs-title-bar';
|
|
8
|
+
readonly headerActions: 'rcs-header-actions';
|
|
9
|
+
readonly copyButton: 'rcs-copy-btn';
|
|
10
|
+
readonly separator: 'rcs-separator';
|
|
11
|
+
readonly codePanelsWrapper: 'rcs-code-panels-wrapper';
|
|
12
|
+
readonly codePanel: 'rcs-code-panel';
|
|
13
|
+
readonly codeScroll: 'rcs-code-scroll';
|
|
14
|
+
readonly codeBody: 'rcs-code-body';
|
|
15
|
+
readonly fileIcon: 'rcs-file-icon';
|
|
16
|
+
readonly editContainer: 'rcs-edit-container';
|
|
17
|
+
readonly editOverlay: 'rcs-edit-overlay';
|
|
18
|
+
readonly editLabel: 'rcs-edit-label';
|
|
19
|
+
readonly modal: 'rcs-modal';
|
|
20
|
+
readonly modalBody: 'rcs-modal-body';
|
|
21
|
+
readonly modalSidebar: 'rcs-modal-sidebar';
|
|
22
|
+
readonly sidebarHeader: 'rcs-sidebar-header';
|
|
23
|
+
readonly sidebarAddButton: 'rcs-sidebar-add-btn';
|
|
24
|
+
readonly fileList: 'rcs-file-list';
|
|
25
|
+
readonly fileItem: 'rcs-file-item';
|
|
26
|
+
readonly fileItemActive: 'rcs-file-item-active';
|
|
27
|
+
readonly fileItemDragging: 'rcs-file-item-dragging';
|
|
28
|
+
readonly fileDragHandle: 'rcs-file-drag-handle';
|
|
29
|
+
readonly fileName: 'rcs-file-name';
|
|
30
|
+
readonly fileDelete: 'rcs-file-delete';
|
|
31
|
+
readonly renameInput: 'rcs-rename-input';
|
|
32
|
+
readonly modalEditor: 'rcs-modal-editor';
|
|
33
|
+
readonly breadcrumb: 'rcs-breadcrumb';
|
|
34
|
+
readonly breadcrumbLeft: 'rcs-breadcrumb-left';
|
|
35
|
+
readonly breadcrumbName: 'rcs-breadcrumb-name';
|
|
36
|
+
readonly breadcrumbLang: 'rcs-breadcrumb-lang';
|
|
37
|
+
readonly editorContainer: 'rcs-editor-container';
|
|
38
|
+
readonly dragOverlay: 'rcs-drag-overlay';
|
|
39
39
|
};
|
|
40
40
|
export declare const container: string;
|
|
41
41
|
export declare const header: string;
|
|
42
42
|
export declare const tabs: string;
|
|
43
|
-
export declare const tab: import(
|
|
43
|
+
export declare const tab: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
44
44
|
active: {
|
|
45
45
|
true: {
|
|
46
46
|
color: `var(--${string})`;
|
|
@@ -70,7 +70,7 @@ export declare const modalSidebar: string;
|
|
|
70
70
|
export declare const sidebarHeader: string;
|
|
71
71
|
export declare const sidebarAddButton: string;
|
|
72
72
|
export declare const fileList: string;
|
|
73
|
-
export declare const fileItem: import(
|
|
73
|
+
export declare const fileItem: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
74
74
|
active: {
|
|
75
75
|
true: {
|
|
76
76
|
background: `color-mix(in srgb, var(--${string}) 8%, transparent)`;
|
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":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.d.ts","
|
|
1
|
+
{"version":3,"file":"transformer.d.ts","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAA"}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","
|
|
1
|
+
{"version":3,"file":"types.d.ts","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB"}
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sources":["../src/utils.ts"],"names":[],"mappings":"AAmCA,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-code-snippet",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.1",
|
|
4
4
|
"description": "Multi-file code snippet extension",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@dnd-kit/core": "^6.3.1",
|
|
44
44
|
"@dnd-kit/sortable": "^10.0.0",
|
|
45
45
|
"@dnd-kit/utilities": "^3.2.2",
|
|
46
|
-
"@haklex/cm-editor": "0.69.
|
|
47
|
-
"@haklex/rich-headless": "0.69.
|
|
48
|
-
"@haklex/rich-renderer-codeblock": "0.69.
|
|
46
|
+
"@haklex/cm-editor": "0.69.1",
|
|
47
|
+
"@haklex/rich-headless": "0.69.1",
|
|
48
|
+
"@haklex/rich-renderer-codeblock": "0.69.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@lexical/react": "^0.53.0",
|
|
@@ -57,14 +57,12 @@
|
|
|
57
57
|
"lexical": "^0.53.0",
|
|
58
58
|
"react": "^19.3.1",
|
|
59
59
|
"react-dom": "^19.3.1",
|
|
60
|
-
"typescript": "^7.0.2",
|
|
61
|
-
"unplugin-dts": "^1.1.2",
|
|
62
60
|
"vite": "^8.3.5"
|
|
63
61
|
},
|
|
64
62
|
"peerDependencies": {
|
|
65
|
-
"@haklex/rich-editor": "^0.69.
|
|
66
|
-
"@haklex/rich-editor-ui": "^0.69.
|
|
67
|
-
"@haklex/rich-style-token": "^0.69.
|
|
63
|
+
"@haklex/rich-editor": "^0.69.1",
|
|
64
|
+
"@haklex/rich-editor-ui": "^0.69.1",
|
|
65
|
+
"@haklex/rich-style-token": "^0.69.1",
|
|
68
66
|
"@lexical/react": "^0.53.0",
|
|
69
67
|
"lexical": "^0.53.0",
|
|
70
68
|
"lucide-react": "^1.0.0",
|