@haklex/rich-ext-code-snippet 0.26.5 → 0.27.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.
@@ -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.132.0/helpers/typeof.js
12
+ //#region \0@oxc-project+runtime@0.133.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.132.0/helpers/toPrimitive.js
22
+ //#region \0@oxc-project+runtime@0.133.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.132.0/helpers/toPropertyKey.js
34
+ //#region \0@oxc-project+runtime@0.133.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.132.0/helpers/defineProperty.js
40
+ //#region \0@oxc-project+runtime@0.133.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-B8BuxVDx.js";
2
- import { i as _defineProperty, n as $isCodeSnippetNode, r as CodeSnippetNode } from "./CodeSnippetNode-B2wZFBh6.js";
2
+ import { i as _defineProperty, n as $isCodeSnippetNode, r as CodeSnippetNode } from "./CodeSnippetNode-DIyfPOdA.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-2FpVWtrD.js";
2
+ import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-CdAf0hrI.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-B8BuxVDx.js";
3
- import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-2FpVWtrD.js";
4
- import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-B2wZFBh6.js";
5
- import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DpGd-RRA.js";
3
+ import { a as CodeSnippetEditRenderer, i as CodeSnippetEditNode, n as $createCodeSnippetEditNode, r as $isCodeSnippetEditNode, t as codeSnippetEditNodes } from "./edit-CdAf0hrI.js";
4
+ import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-DIyfPOdA.js";
5
+ import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DCc-pqKW.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-B2wZFBh6.js";
1
+ import { r as CodeSnippetNode } from "./CodeSnippetNode-DIyfPOdA.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-B2wZFBh6.js";
3
- import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DpGd-RRA.js";
2
+ import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-DIyfPOdA.js";
3
+ import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DCc-pqKW.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-B8BuxVDx.js";
3
- import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-B2wZFBh6.js";
4
- import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DpGd-RRA.js";
3
+ import { a as CODE_SNIPPET_NODE_KEY, n as $isCodeSnippetNode, r as CodeSnippetNode, t as $createCodeSnippetNode } from "./CodeSnippetNode-DIyfPOdA.js";
4
+ import { n as CODE_SNIPPET_BLOCK_TRANSFORMER, t as codeSnippetNodes } from "./node-DCc-pqKW.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.26.5",
3
+ "version": "0.27.0",
4
4
  "description": "Multi-file code snippet extension",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,17 +39,17 @@
39
39
  "dependencies": {
40
40
  "@codemirror/commands": "^6.10.3",
41
41
  "@codemirror/state": "^6.6.0",
42
- "@codemirror/view": "^6.43.0",
42
+ "@codemirror/view": "^6.43.1",
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.26.5",
47
- "@haklex/rich-headless": "0.26.5",
48
- "@haklex/rich-renderer-codeblock": "0.26.5"
46
+ "@haklex/cm-editor": "0.27.0",
47
+ "@haklex/rich-renderer-codeblock": "0.27.0",
48
+ "@haklex/rich-headless": "0.27.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@lexical/react": "^0.45.0",
52
- "@types/react": "^19.2.15",
52
+ "@types/react": "^19.2.17",
53
53
  "@types/react-dom": "^19.2.3",
54
54
  "@vanilla-extract/css": "^1.20.1",
55
55
  "@vanilla-extract/recipes": "^0.5.7",
@@ -59,8 +59,8 @@
59
59
  "react-dom": "19.2.6",
60
60
  "shiki": "^4.2.0",
61
61
  "typescript": "^5.9.3",
62
- "unplugin-dts": "^1.0.1",
63
- "vite": "^8.0.14"
62
+ "unplugin-dts": "^1.0.2",
63
+ "vite": "^8.0.16"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@lexical/react": "^0.45.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-ui": "^0.26.5",
72
- "@haklex/rich-style-token": "^0.26.5",
73
- "@haklex/rich-editor": "^0.26.5"
71
+ "@haklex/rich-editor": "^0.27.0",
72
+ "@haklex/rich-editor-ui": "^0.27.0",
73
+ "@haklex/rich-style-token": "^0.27.0"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public"