@lax-wp/design-system 0.6.0 → 0.6.2

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,3 +1,4 @@
1
+ import type React from 'react';
1
2
  export * from './icon-picker';
2
3
  export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
3
4
  export type JsonObject = {
@@ -10,6 +11,14 @@ export interface Tab<T extends string> {
10
11
  is_hidden: boolean;
11
12
  is_pinned: boolean;
12
13
  }
14
+ export interface CodeEditorToolbarContext {
15
+ editor: any;
16
+ value: string;
17
+ onChange: (value: string) => void;
18
+ language: 'json' | 'python';
19
+ isEditMode: boolean;
20
+ activeTab: 'JSON' | 'Grid';
21
+ }
13
22
  export interface CodeEditorProps {
14
23
  value: string;
15
24
  onChange?: (value: string) => void;
@@ -26,6 +35,9 @@ export interface CodeEditorProps {
26
35
  editorTheme?: 'vs' | 'vs-dark';
27
36
  setEditorTheme?: (theme: 'vs' | 'vs-dark') => void;
28
37
  theme?: 'light' | 'dark';
38
+ className?: string;
39
+ enableAutoFormatting?: boolean;
40
+ renderToolbarActions?: (context: CodeEditorToolbarContext) => React.ReactNode;
29
41
  }
30
42
  export interface ThemeContextType {
31
43
  theme: 'light' | 'dark';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lax-wp/design-system",
3
3
  "private": false,
4
- "version": "0.6.0",
4
+ "version": "0.6.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",