@vef-framework/components 1.0.129 → 1.0.130
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
+
"use strict";var S=Object.create;var l=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var L=(e,r,s,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of E(r))!y.call(e,a)&&a!==s&&l(e,a,{get:()=>r[a],enumerable:!(t=j(r,a))||t.enumerable});return e};var w=(e,r,s)=>(s=e!=null?S(H(e)):{},L(r||!e||!e.__esModule?l(s,"default",{value:e,enumerable:!0}):s,e));Object.defineProperty(exports,"__esModule",{value:!0});var u=require("@emotion/react/jsx-runtime"),z=require("@uiw/codemirror-theme-material"),i=require("react"),M=require("../vef-loading-placeholder/index.cjs"),O=require("./hooks/use-change-handler.cjs"),P=require("./hooks/use-config-extensions.cjs"),F=require("./hooks/use-height-props.cjs"),N=require("./hooks/use-language-extensions.cjs"),T=require("./hooks/use-setup-options.cjs"),_=require("./styles.cjs");const k=i.lazy(()=>import("@uiw/react-codemirror"));function R({value:e,language:r,disabled:s,height:t=320,minHeight:a,maxHeight:d,placeholder:c,tabSize:g=4,autoFocus:m,jsonSchema:p,onChange:v,showLineNumbers:x=!0}){const n=P.useConfigExtensions(),o=N.useLanguageExtensions(r,p),q=i.useMemo(()=>[...n,...o],[n,o]),b=F.useHeightProps(t,d,a),f=O.useChangeHandler(v),C=T.useSetupOptions(g,x);return u.jsx(i.Suspense,{fallback:u.jsx(M.default,{}),children:u.jsx(k,{indentWithTab:!0,autoFocus:m,basicSetup:C,css:_.editorStyle,editable:!s,extensions:q,placeholder:c,theme:z.materialLight,value:e,width:"auto",onChange:f,...b})})}const h=i.memo(R);h.displayName="VefCodeEditor",exports.default=h;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import{jsx as
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{materialLight as S}from"@uiw/codemirror-theme-material";import{lazy as E,useMemo as H,Suspense as w,memo as y}from"react";import z from"../vef-loading-placeholder/index.js";import{useChangeHandler as L}from"./hooks/use-change-handler.js";import{useConfigExtensions as j}from"./hooks/use-config-extensions.js";import{useHeightProps as v}from"./hooks/use-height-props.js";import{useLanguageExtensions as F}from"./hooks/use-language-extensions.js";import{useSetupOptions as N}from"./hooks/use-setup-options.js";import{editorStyle as k}from"./styles.js";const M=E(()=>import("@uiw/react-codemirror"));function O({value:r,language:s,disabled:a,height:m=320,minHeight:n,maxHeight:u,placeholder:p,tabSize:h=4,autoFocus:l,jsonSchema:c,onChange:f,showLineNumbers:d=!0}){const o=j(),t=F(s,c),g=H(()=>[...o,...t],[o,t]),b=v(m,u,n),x=L(f),C=N(h,d);return e(w,{fallback:e(z,{}),children:e(M,{indentWithTab:!0,autoFocus:l,basicSetup:C,css:k,editable:!a,extensions:g,placeholder:p,theme:S,value:r,width:"auto",onChange:x,...b})})}const i=y(O);i.displayName="VefCodeEditor";export{i as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.130",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Components fundamental to the VEF framework",
|
|
7
7
|
"author": "Venus",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@emotion/styled": "11.14.0",
|
|
26
26
|
"antd": "5.24.5",
|
|
27
27
|
"use-sync-external-store": "^1.4.0",
|
|
28
|
-
"@ant-design/icons": "6.
|
|
28
|
+
"@ant-design/icons": "5.6.1",
|
|
29
29
|
"@codemirror/lang-json": "^6.0.1",
|
|
30
30
|
"@codemirror/lang-yaml": "^6.1.2",
|
|
31
31
|
"@codemirror/language": "^6.11.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@uiw/codemirror-extensions-langs": "^4.23.10",
|
|
49
49
|
"@uiw/codemirror-theme-material": "^4.23.10",
|
|
50
50
|
"@uiw/react-codemirror": "^4.23.10",
|
|
51
|
-
"@vef-framework/core": "1.0.
|
|
52
|
-
"@vef-framework/hooks": "1.0.
|
|
53
|
-
"@vef-framework/shared": "1.0.
|
|
51
|
+
"@vef-framework/core": "1.0.130",
|
|
52
|
+
"@vef-framework/hooks": "1.0.130",
|
|
53
|
+
"@vef-framework/shared": "1.0.130",
|
|
54
54
|
"@xyflow/react": "^12.4.4",
|
|
55
55
|
"clsx": "2.1.1",
|
|
56
56
|
"codemirror-json-schema": "^0.8.0",
|