conversion-ui-library 1.0.8 → 1.1.10

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,4 +1,3 @@
1
- import { OnMount } from '@monaco-editor/react';
2
1
  import { VariantProps } from 'class-variance-authority';
3
2
  import * as React from "react";
4
3
  declare const editorFieldVariants: (props?: ({
@@ -19,7 +18,7 @@ export interface EditorTextFieldProps extends VariantProps<typeof editorFieldVar
19
18
  /**
20
19
  * Callback when editor value changes
21
20
  */
22
- onChange?: (value: string | undefined) => void;
21
+ onChange?: (value: string) => void;
23
22
  /**
24
23
  * Label text displayed above the editor
25
24
  */
@@ -40,12 +39,12 @@ export interface EditorTextFieldProps extends VariantProps<typeof editorFieldVar
40
39
  * Programming language for syntax highlighting
41
40
  * @default "javascript"
42
41
  */
43
- language?: "javascript" | "typescript" | "python" | "java" | "json" | "html" | "css" | "sql" | "markdown" | "yaml" | "xml" | "plaintext";
42
+ language?: "javascript" | "typescript" | "jsx" | "tsx" | "python" | "json" | "html" | "css" | "sql" | "markdown" | "xml" | "yaml" | "plaintext";
44
43
  /**
45
44
  * Editor theme
46
45
  * @default "light"
47
46
  */
48
- theme?: "light" | "vs-dark" | "hc-black";
47
+ theme?: "light" | "dark";
49
48
  /**
50
49
  * Height of the editor
51
50
  * @default "200px"
@@ -60,13 +59,15 @@ export interface EditorTextFieldProps extends VariantProps<typeof editorFieldVar
60
59
  */
61
60
  className?: string;
62
61
  /**
63
- * Options to pass to Monaco Editor
62
+ * Whether to show line numbers
63
+ * @default true
64
64
  */
65
- options?: any;
65
+ lineNumbers?: boolean;
66
66
  /**
67
- * Callback when editor is mounted
67
+ * Whether the editor is read-only
68
+ * @default false
68
69
  */
69
- onMount?: OnMount;
70
+ readOnly?: boolean;
70
71
  }
71
72
  export declare const EditorTextField: React.ForwardRefExoticComponent<EditorTextFieldProps & React.RefAttributes<HTMLDivElement>>;
72
73
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"EditorTextField.d.ts","sourceRoot":"","sources":["../../../src/components/EditorTextField/EditorTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,QAAA,MAAM,mBAAmB;;;;;mFA0BxB,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EACL,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,UAAU,GACV,MAAM,GACN,KAAK,GACL,WAAW,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,6FA8F3B,CAAC"}
1
+ {"version":3,"file":"EditorTextField.d.ts","sourceRoot":"","sources":["../../../src/components/EditorTextField/EditorTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuB/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,yBAAyB,CAAC;AAyBjC,QAAA,MAAM,mBAAmB;;;;;mFA0BxB,CAAC;AAkBF,MAAM,WAAW,oBACf,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EACL,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,KAAK,GACL,QAAQ,GACR,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,UAAU,GACV,KAAK,GACL,MAAM,GACN,WAAW,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,6FAuK3B,CAAC"}
@@ -4,18 +4,28 @@ declare const meta: Meta<typeof EditorTextField>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof EditorTextField>;
6
6
  export declare const Default: Story;
7
- export declare const WithLabel: Story;
7
+ export declare const ColorfulSyntax: Story;
8
+ export declare const JavaScript: Story;
8
9
  export declare const TypeScript: Story;
9
- export declare const JSON: Story;
10
+ export declare const ReactJSX: Story;
11
+ export declare const ReactTSX: Story;
10
12
  export declare const Python: Story;
13
+ export declare const JSON: Story;
14
+ export declare const HTML: Story;
15
+ export declare const CSS: Story;
11
16
  export declare const SQL: Story;
17
+ export declare const Markdown: Story;
18
+ export declare const ThemeComparison: Story;
12
19
  export declare const DarkTheme: Story;
20
+ export declare const WithoutLineNumbers: Story;
21
+ export declare const ReadOnly: Story;
22
+ export declare const Disabled: Story;
13
23
  export declare const WithError: Story;
14
24
  export declare const WithSuccess: Story;
15
- export declare const Disabled: Story;
16
25
  export declare const Required: Story;
17
26
  export declare const Variants: Story;
18
- export declare const TallEditor: Story;
27
+ export declare const DifferentHeights: Story;
19
28
  export declare const Controlled: Story;
20
- export declare const MultipleLanguages: Story;
29
+ export declare const MultipleEditors: Story;
30
+ export declare const APIExample: Story;
21
31
  //# sourceMappingURL=EditorTextField.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorTextField.stories.d.ts","sourceRoot":"","sources":["../../../src/components/EditorTextField/EditorTextField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CA6DtC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9C,e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