@haklex/rich-ext-code-snippet 0.35.0 → 0.37.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/{CodeSnippetNode-CmjgIWmm.js → CodeSnippetNode-CKlAzYMs.js} +4 -4
- package/dist/{edit-BxlBj5vH.js → edit-CanJcAgV.js} +1 -1
- package/dist/edit.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{node-o-rq-ZHb.js → node-CH8hUkdf.js} +1 -1
- package/dist/node.mjs +2 -2
- package/dist/static.mjs +2 -2
- package/package.json +11 -11
|
@@ -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.146.0/helpers/esm/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.146.0/helpers/esm/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.146.0/helpers/esm/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.146.0/helpers/esm/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,
|
|
@@ -1,5 +1,5 @@
|
|
|
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-CVcw3SRW.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-CKlAzYMs.js";
|
|
3
3
|
import { $getNodeByKey, $insertNodes } from "lexical";
|
|
4
4
|
import { FileCode, GripVertical, Pencil, Plus, Trash2, X } from "lucide-react";
|
|
5
5
|
import { createElement, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
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-CanJcAgV.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-B79wHSjn.js";
|
|
2
2
|
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-CVcw3SRW.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-CanJcAgV.js";
|
|
4
|
+
import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-CKlAzYMs.js";
|
|
5
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-CH8hUkdf.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-CKlAzYMs.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-B79wHSjn.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-CKlAzYMs.js";
|
|
3
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-CH8hUkdf.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-B79wHSjn.js";
|
|
2
2
|
import { t as CodeSnippetRenderer } from "./CodeSnippetRenderer-CVcw3SRW.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-CKlAzYMs.js";
|
|
4
|
+
import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-CH8hUkdf.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.37.0",
|
|
4
4
|
"description": "Multi-file code snippet extension",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@codemirror/commands": "^6.
|
|
40
|
+
"@codemirror/commands": "^6.11.0",
|
|
41
41
|
"@codemirror/state": "^6.7.1",
|
|
42
|
-
"@codemirror/view": "^6.43.
|
|
42
|
+
"@codemirror/view": "^6.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.
|
|
47
|
-
"@haklex/rich-
|
|
48
|
-
"@haklex/rich-
|
|
46
|
+
"@haklex/cm-editor": "0.37.0",
|
|
47
|
+
"@haklex/rich-renderer-codeblock": "0.37.0",
|
|
48
|
+
"@haklex/rich-headless": "0.37.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@lexical/react": "^0.49.0",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"lexical": "^0.49.0",
|
|
58
58
|
"react": "^19.2.8",
|
|
59
59
|
"react-dom": "^19.2.8",
|
|
60
|
-
"shiki": "^4.4.
|
|
60
|
+
"shiki": "^4.4.3",
|
|
61
61
|
"typescript": "^7.0.2",
|
|
62
62
|
"unplugin-dts": "^1.0.3",
|
|
63
|
-
"vite": "^8.2.
|
|
63
|
+
"vite": "^8.2.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@lexical/react": "^0.49.0",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"lucide-react": "^1.0.0",
|
|
69
69
|
"react": ">=19",
|
|
70
70
|
"shiki": ">=4.0.0",
|
|
71
|
-
"@haklex/rich-editor": "^0.
|
|
72
|
-
"@haklex/rich-
|
|
73
|
-
"@haklex/rich-
|
|
71
|
+
"@haklex/rich-editor": "^0.37.0",
|
|
72
|
+
"@haklex/rich-editor-ui": "^0.37.0",
|
|
73
|
+
"@haklex/rich-style-token": "^0.37.0"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|