@haklex/rich-ext-code-snippet 0.14.1 → 0.15.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.
- package/dist/CodeEditorModal.d.ts +1 -1
- package/dist/CodeEditorModal.d.ts.map +1 -1
- package/dist/{CodeSnippetNode-AQ_DQ1mj.js → CodeSnippetNode-CUOcjxbr.js} +4 -4
- package/dist/augment.d.ts +1 -1
- package/dist/augment.d.ts.map +1 -1
- package/dist/{edit-DO9YLH0Z.js → edit-Ce8hh9jO.js} +2 -2
- package/dist/edit.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{node-CvHtP3Jq.js → node-DwVwRvTH.js} +1 -1
- package/dist/node.mjs +2 -2
- package/dist/static.mjs +2 -2
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditorModal.d.ts","sourceRoot":"","sources":["../src/CodeEditorModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CodeEditorModal.d.ts","sourceRoot":"","sources":["../src/CodeEditorModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAK9D,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,QAAQ,EAAE,KAAK,IAAI,CAAC;CAC7C;AA8FD,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAmSpD,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { createRendererDecoration } from "@haklex/rich-editor/renderers";
|
|
|
9
9
|
*/
|
|
10
10
|
var CODE_SNIPPET_NODE_KEY = "CodeSnippet";
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
13
13
|
function _typeof(o) {
|
|
14
14
|
"@babel/helpers - typeof";
|
|
15
15
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -19,7 +19,7 @@ function _typeof(o) {
|
|
|
19
19
|
}, _typeof(o);
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region \0@oxc-project+runtime@0.
|
|
22
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
23
23
|
function toPrimitive(t, r) {
|
|
24
24
|
if ("object" != _typeof(t) || !t) return t;
|
|
25
25
|
var e = t[Symbol.toPrimitive];
|
|
@@ -31,13 +31,13 @@ function toPrimitive(t, r) {
|
|
|
31
31
|
return ("string" === r ? String : Number)(t);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
35
35
|
function toPropertyKey(t) {
|
|
36
36
|
var i = toPrimitive(t, "string");
|
|
37
37
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region \0@oxc-project+runtime@0.
|
|
40
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
41
41
|
function _defineProperty(e, r, t) {
|
|
42
42
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
43
|
value: t,
|
package/dist/augment.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { CodeSnippetRendererProps } from './types';
|
|
3
|
-
declare module '@haklex/rich-editor' {
|
|
3
|
+
declare module '@haklex/rich-editor/static' {
|
|
4
4
|
interface RendererConfig {
|
|
5
5
|
CodeSnippet?: ComponentType<CodeSnippetRendererProps>;
|
|
6
6
|
}
|
package/dist/augment.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augment.d.ts","sourceRoot":"","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,
|
|
1
|
+
{"version":3,"file":"augment.d.ts","sourceRoot":"","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,9 +1,9 @@
|
|
|
1
1
|
import { C as modalSidebar, D as semanticClassNames, E as renameInput, O as sidebarAddButton, S as modalIconButton, T as modalTitlebar, _ as fileList, a as breadcrumbLeft, b as modalBody, c as dragOverlay, d as editOverlay, f as editorContainer, g as fileItem, h as fileIcon, k as sidebarHeader, 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 modalTitle, x as modalEditor, y as modal } from "./CodeSnippetRenderer-DkotUEm3.js";
|
|
2
|
-
import { i as _defineProperty, n as $isCodeSnippetNode, r as CodeSnippetNode } from "./CodeSnippetNode-
|
|
2
|
+
import { i as _defineProperty, n as $isCodeSnippetNode, r as CodeSnippetNode } from "./CodeSnippetNode-CUOcjxbr.js";
|
|
3
3
|
import { $getNodeByKey, $insertNodes } from "lexical";
|
|
4
4
|
import { FileCode, GripVertical, Pencil, Plus, Trash2, X } from "lucide-react";
|
|
5
5
|
import { createContext, createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
6
|
-
import { useColorScheme } from "@haklex/rich-editor";
|
|
6
|
+
import { useColorScheme } from "@haklex/rich-editor/static";
|
|
7
7
|
import { presentDialog } from "@haklex/rich-editor-ui";
|
|
8
8
|
import { usePortalTheme } from "@haklex/rich-style-token";
|
|
9
9
|
import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands";
|
package/dist/edit.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-DszWIR0j.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-Ce8hh9jO.js";
|
|
3
3
|
export { $createCodeSnippetEditNode, $isCodeSnippetEditNode, CodeSnippetEditNode, CodeSnippetEditRenderer, __augmentLoaded_code_snippet, codeSnippetEditNodes };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-DszWIR0j.js";
|
|
2
2
|
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-DkotUEm3.js";
|
|
3
|
-
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-
|
|
4
|
-
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-
|
|
5
|
-
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-
|
|
3
|
+
import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-Ce8hh9jO.js";
|
|
4
|
+
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-CUOcjxbr.js";
|
|
5
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DwVwRvTH.js";
|
|
6
6
|
import "./renderer.mjs";
|
|
7
7
|
export { $createCodeSnippetEditNode, $createCodeSnippetNode, $isCodeSnippetEditNode, $isCodeSnippetNode, CODE_SNIPPET_BLOCK_TRANSFORMER, CODE_SNIPPET_NODE_KEY, CodeSnippetEditNode, CodeSnippetEditRenderer, CodeSnippetNode, CodeSnippetRenderer, __augmentLoaded_code_snippet, codeSnippetEditNodes, codeSnippetNodes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CodeSnippetNode } from "./CodeSnippetNode-
|
|
1
|
+
import { r as CodeSnippetNode } from "./CodeSnippetNode-CUOcjxbr.js";
|
|
2
2
|
import { CODE_SNIPPET_BLOCK_TRANSFORMER } from "@haklex/rich-headless/transformers";
|
|
3
3
|
//#region src/node.ts
|
|
4
4
|
var codeSnippetNodes = [CodeSnippetNode];
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-DszWIR0j.js";
|
|
2
|
-
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-
|
|
3
|
-
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-
|
|
2
|
+
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-CUOcjxbr.js";
|
|
3
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DwVwRvTH.js";
|
|
4
4
|
export { $createCodeSnippetNode, $isCodeSnippetNode, CODE_SNIPPET_BLOCK_TRANSFORMER, CODE_SNIPPET_NODE_KEY, CodeSnippetNode, __augmentLoaded_code_snippet, codeSnippetNodes };
|
package/dist/static.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __augmentLoaded_code_snippet } from "./augment-DszWIR0j.js";
|
|
2
2
|
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-DkotUEm3.js";
|
|
3
|
-
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-
|
|
4
|
-
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-
|
|
3
|
+
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-CUOcjxbr.js";
|
|
4
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DwVwRvTH.js";
|
|
5
5
|
import "./renderer.mjs";
|
|
6
6
|
export { $createCodeSnippetNode, $isCodeSnippetNode, CODE_SNIPPET_BLOCK_TRANSFORMER, CODE_SNIPPET_NODE_KEY, CodeSnippetNode, CodeSnippetRenderer, __augmentLoaded_code_snippet, codeSnippetNodes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-code-snippet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Multi-file code snippet extension",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@codemirror/commands": "^6.10.3",
|
|
41
41
|
"@codemirror/state": "^6.6.0",
|
|
42
|
-
"@codemirror/view": "^6.
|
|
42
|
+
"@codemirror/view": "^6.43.0",
|
|
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
|
-
"shiki": "^4.0
|
|
47
|
-
"@haklex/rich-renderer-codeblock": "0.
|
|
48
|
-
"@haklex/rich-headless": "0.
|
|
49
|
-
"@haklex/cm-editor": "0.
|
|
46
|
+
"shiki": "^4.1.0",
|
|
47
|
+
"@haklex/rich-renderer-codeblock": "0.15.0",
|
|
48
|
+
"@haklex/rich-headless": "0.15.0",
|
|
49
|
+
"@haklex/cm-editor": "0.15.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@lexical/react": "^0.44.0",
|
|
53
|
-
"@types/react": "^19.2.
|
|
53
|
+
"@types/react": "^19.2.15",
|
|
54
54
|
"@types/react-dom": "^19.2.3",
|
|
55
55
|
"@vanilla-extract/css": "^1.20.1",
|
|
56
56
|
"@vanilla-extract/recipes": "^0.5.7",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"react": "19.2.5",
|
|
60
60
|
"react-dom": "19.2.5",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
|
-
"
|
|
63
|
-
"vite
|
|
62
|
+
"unplugin-dts": "^1.0.1",
|
|
63
|
+
"vite": "^8.0.13"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"lexical": "^0.44.0",
|
|
67
67
|
"lucide-react": "^1.0.0",
|
|
68
68
|
"react": ">=19",
|
|
69
|
-
"@haklex/rich-
|
|
70
|
-
"@haklex/rich-
|
|
71
|
-
"@haklex/rich-editor-ui": "0.
|
|
69
|
+
"@haklex/rich-style-token": "0.15.0",
|
|
70
|
+
"@haklex/rich-editor": "0.15.0",
|
|
71
|
+
"@haklex/rich-editor-ui": "0.15.0"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|