@guihz/trading-vue-editor-tes 0.0.218 → 0.0.220
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/lib/assets/{scriptsRunWorker-B3l8bZZ1.js → scriptsRunWorker-o4tS14Ih.js} +18 -18
 - package/lib/components/editor/index.d.ts +2 -1
 - package/lib/components/editor/parseScript/buildInFuncNamespace/log.d.ts +3 -1
 - package/lib/components/editor/parseScript/buildInFuncNamespace/string.d.ts +1 -0
 - package/lib/components/referenceManual/index.d.ts +1 -0
 - package/lib/i18n/local/en.d.ts +4 -1
 - package/lib/i18n/local/zh_cn.d.ts +4 -1
 - package/lib/trading-vue-editor.js +3131 -3121
 - package/lib/trading-vue-editor.umd.cjs +33 -33
 - package/package.json +1 -1
 
| 
         @@ -3,7 +3,7 @@ import { Theme } from "@monaco-editor/react"; 
     | 
|
| 
       3 
3 
     | 
    
         
             
            import { IPosition, editor } from "monaco-editor";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import "./style.css";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import { IKeyObjectValue } from "./type";
         
     | 
| 
       6 
     | 
    
         
            -
            import  
     | 
| 
      
 6 
     | 
    
         
            +
            import "../../i18n";
         
     | 
| 
       7 
7 
     | 
    
         
             
            interface IProps {
         
     | 
| 
       8 
8 
     | 
    
         
             
                height?: string | number;
         
     | 
| 
       9 
9 
     | 
    
         
             
                width?: string | number;
         
     | 
| 
         @@ -12,6 +12,7 @@ interface IProps { 
     | 
|
| 
       12 
12 
     | 
    
         
             
                options?: editor.IStandaloneEditorConstructionOptions;
         
     | 
| 
       13 
13 
     | 
    
         
             
                hasDiff?: boolean;
         
     | 
| 
       14 
14 
     | 
    
         
             
                defaultValue?: string;
         
     | 
| 
      
 15 
     | 
    
         
            +
                language?: string;
         
     | 
| 
       15 
16 
     | 
    
         
             
                onEditorDidMount?: () => void;
         
     | 
| 
       16 
17 
     | 
    
         
             
                onCursorPositionChange?: (position: IPosition) => void;
         
     | 
| 
       17 
18 
     | 
    
         
             
                onChange?: (value: string) => void;
         
     | 
| 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { BuiltInVariables } from "../buildInVariables";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { PseudoArray } from "./array";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import { BuildInStr } from ".";
         
     | 
| 
       3 
4 
     | 
    
         
             
            interface ILogArgs {
         
     | 
| 
       4 
5 
     | 
    
         
             
                message?: string;
         
     | 
| 
       5 
6 
     | 
    
         
             
                formatString?: string;
         
     | 
| 
         @@ -15,7 +16,8 @@ export declare class Log { 
     | 
|
| 
       15 
16 
     | 
    
         
             
                private _logs;
         
     | 
| 
       16 
17 
     | 
    
         
             
                private _variables;
         
     | 
| 
       17 
18 
     | 
    
         
             
                private _intlFormat;
         
     | 
| 
       18 
     | 
    
         
            -
                 
     | 
| 
      
 19 
     | 
    
         
            +
                private _str;
         
     | 
| 
      
 20 
     | 
    
         
            +
                constructor(variables: BuiltInVariables, str: BuildInStr);
         
     | 
| 
       19 
21 
     | 
    
         
             
                get logs(): ILog[];
         
     | 
| 
       20 
22 
     | 
    
         
             
                clearLogs(): void;
         
     | 
| 
       21 
23 
     | 
    
         
             
                info(args: ILogArgs, replaces: (string | number | PseudoArray)[], posStr: string): void;
         
     | 
    
        package/lib/i18n/local/en.d.ts
    CHANGED
    
    | 
         @@ -53,6 +53,9 @@ declare const _default: { 
     | 
|
| 
       53 
53 
     | 
    
         
             
                Fields: string;
         
     | 
| 
       54 
54 
     | 
    
         
             
                Description: string;
         
     | 
| 
       55 
55 
     | 
    
         
             
                Example: string;
         
     | 
| 
       56 
     | 
    
         
            -
                 
     | 
| 
      
 56 
     | 
    
         
            +
                'Enum members': string;
         
     | 
| 
      
 57 
     | 
    
         
            +
                statement: string;
         
     | 
| 
      
 58 
     | 
    
         
            +
                loop: string;
         
     | 
| 
      
 59 
     | 
    
         
            +
                '`click` on keyword for more help': string;
         
     | 
| 
       57 
60 
     | 
    
         
             
            };
         
     | 
| 
       58 
61 
     | 
    
         
             
            export default _default;
         
     | 
| 
         @@ -53,6 +53,9 @@ declare const _default: { 
     | 
|
| 
       53 
53 
     | 
    
         
             
                Fields: string;
         
     | 
| 
       54 
54 
     | 
    
         
             
                Description: string;
         
     | 
| 
       55 
55 
     | 
    
         
             
                Example: string;
         
     | 
| 
       56 
     | 
    
         
            -
                 
     | 
| 
      
 56 
     | 
    
         
            +
                'Enum members': string;
         
     | 
| 
      
 57 
     | 
    
         
            +
                statement: string;
         
     | 
| 
      
 58 
     | 
    
         
            +
                loop: string;
         
     | 
| 
      
 59 
     | 
    
         
            +
                '`click` on keyword for more help': string;
         
     | 
| 
       57 
60 
     | 
    
         
             
            };
         
     | 
| 
       58 
61 
     | 
    
         
             
            export default _default;
         
     |