superleap-code-editor 1.0.7 → 1.0.9
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/dist/components/codeEditorWrapper.d.ts +1 -1
- package/dist/components/codeEditorWrapper.d.ts.map +1 -1
- package/dist/components/editor/codeEditor.d.ts.map +1 -1
- package/dist/components/layout/editorLayout.d.ts +2 -2
- package/dist/components/layout/header.d.ts +3 -2
- package/dist/components/layout/header.d.ts.map +1 -1
- package/dist/components/layout/sidebar.d.ts +2 -2
- package/dist/components/layout/sidebar.d.ts.map +1 -1
- package/dist/components/panels/dataExplorer.d.ts +64 -1
- package/dist/components/panels/dataExplorer.d.ts.map +1 -1
- package/dist/components/panels/fileExplorer.d.ts.map +1 -1
- package/dist/examples/codeEditorExamples.d.ts +5 -5
- package/dist/examples/codeEditorExamples.d.ts.map +1 -1
- package/dist/hooks/useFileManager.d.ts.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +51763 -1034
- package/dist/index.js +216 -0
- package/dist/providers/fileProviders.d.ts.map +1 -1
- package/dist/types/schemaTypes.d.ts +410 -0
- package/dist/types/schemaTypes.d.ts.map +1 -0
- package/dist/utils/dataExplorerHelpers.d.ts +42 -0
- package/dist/utils/dataExplorerHelpers.d.ts.map +1 -0
- package/dist/utils/monacoHelper.d.ts +2 -0
- package/dist/utils/monacoHelper.d.ts.map +1 -0
- package/package.json +16 -8
- package/dist/index.cjs.js +0 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileProviders.d.ts","sourceRoot":"","sources":["../../src/providers/fileProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACb,MAAM,oBAAoB,CAAC;AAG5B,qBAAa,oBAAqB,YAAW,YAAY;IACvD,OAAO,CAAC,MAAM,CAAqC;IACnD,OAAO,CAAC,KAA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D,OAAO,CAAC,MAAM,CAAgC;IAC9C,OAAO,CAAC,KAAK,CAAkB;gBAEnB,MAAM,EAAE,gBAAgB,CAAC,WAAW,CAAC;IAK3C,QAAQ,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI/B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAkB/C,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUjE,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAKpE,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,YAAY;CAGrB;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAUzE"}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
export declare enum DataType {
|
|
2
|
+
Int = 1,
|
|
3
|
+
Varchar = 5,
|
|
4
|
+
Checkbox = 6,
|
|
5
|
+
DateTime = 7,
|
|
6
|
+
Date = 8,
|
|
7
|
+
SecondsSinceMidnight = 9,
|
|
8
|
+
Email = 11,
|
|
9
|
+
Text = 14,
|
|
10
|
+
SingleSelect = 15,
|
|
11
|
+
MultiSelect = 16,
|
|
12
|
+
Url = 17,
|
|
13
|
+
FileUpload = 20,
|
|
14
|
+
PhoneNumber = 21,
|
|
15
|
+
Rating = 22,
|
|
16
|
+
Decimal = 4,
|
|
17
|
+
Currency = 23,
|
|
18
|
+
Stage = 24,
|
|
19
|
+
Location = 18,
|
|
20
|
+
Region = 27,
|
|
21
|
+
MultiFileUpload = 29
|
|
22
|
+
}
|
|
23
|
+
export declare enum FieldType {
|
|
24
|
+
Text = "text",
|
|
25
|
+
LongText = "long_text",
|
|
26
|
+
Number = "number",
|
|
27
|
+
Decimal = "decimal",
|
|
28
|
+
DateTime = "date_time",
|
|
29
|
+
Date = "date",
|
|
30
|
+
Time = "time",
|
|
31
|
+
Currency = "currency",
|
|
32
|
+
Checkbox = "checkbox",
|
|
33
|
+
Rating = "rating",
|
|
34
|
+
PhoneNumber = "phone_number",
|
|
35
|
+
Relationship = "relationship",
|
|
36
|
+
FileUpload = "file_upload",
|
|
37
|
+
MultiFileUpload = "multi_file_upload",
|
|
38
|
+
Email = "email",
|
|
39
|
+
Url = "url",
|
|
40
|
+
SingleSelect = "single_select",
|
|
41
|
+
MultiSelect = "multi_select",
|
|
42
|
+
Stage = "stage",
|
|
43
|
+
Location = "location",
|
|
44
|
+
Region = "region"
|
|
45
|
+
}
|
|
46
|
+
type DataTypeMapping = Partial<Record<DataType, FieldType>>;
|
|
47
|
+
type FieldTypeMapping = Partial<Record<FieldType, DataType>>;
|
|
48
|
+
export declare const dataTypeToFieldType: DataTypeMapping;
|
|
49
|
+
export declare const fieldTypeToDataType: FieldTypeMapping;
|
|
50
|
+
export declare const getDefaultColumnWidth: (dataType: DataType | undefined) => number;
|
|
51
|
+
export interface Constraints {
|
|
52
|
+
max_length?: number;
|
|
53
|
+
min_length?: number;
|
|
54
|
+
regex_pattern?: string;
|
|
55
|
+
min_value?: number;
|
|
56
|
+
max_value?: number;
|
|
57
|
+
decimal_scale?: number;
|
|
58
|
+
allowed_extensions?: string[];
|
|
59
|
+
disallow_past_dates?: number;
|
|
60
|
+
}
|
|
61
|
+
export type ImplicitDataType = {
|
|
62
|
+
id: string;
|
|
63
|
+
access_level: any;
|
|
64
|
+
};
|
|
65
|
+
export interface RelationData {
|
|
66
|
+
object_slug: string;
|
|
67
|
+
column_slug: string;
|
|
68
|
+
associated_col_name: string;
|
|
69
|
+
implicit_data: ImplicitDataType | null;
|
|
70
|
+
is_virtual: number;
|
|
71
|
+
is_master: number;
|
|
72
|
+
cascade_on_delete: number;
|
|
73
|
+
}
|
|
74
|
+
export type AuditUserType = {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
avatar: string;
|
|
78
|
+
};
|
|
79
|
+
export interface AuditData {
|
|
80
|
+
created_by: AuditUserType;
|
|
81
|
+
updated_by: AuditUserType;
|
|
82
|
+
created_at: number;
|
|
83
|
+
updated_at: number;
|
|
84
|
+
}
|
|
85
|
+
export declare enum StageType {
|
|
86
|
+
INTERMEDIATE = 1,
|
|
87
|
+
LOSS = 2,
|
|
88
|
+
WIN = 3
|
|
89
|
+
}
|
|
90
|
+
export type badgeConfigType = {
|
|
91
|
+
badge_label?: string;
|
|
92
|
+
start_icon?: string;
|
|
93
|
+
end_icon?: string;
|
|
94
|
+
class_name?: string;
|
|
95
|
+
icon_color?: string;
|
|
96
|
+
size?: "small" | "medium";
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
};
|
|
99
|
+
export type optionType = {
|
|
100
|
+
id?: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
alternate_values?: string[] | any;
|
|
103
|
+
display_name: string;
|
|
104
|
+
is_active?: boolean;
|
|
105
|
+
category?: StageType;
|
|
106
|
+
rank?: number;
|
|
107
|
+
badge_config?: badgeConfigType;
|
|
108
|
+
dependent_enum_slugs?: string[] | null;
|
|
109
|
+
};
|
|
110
|
+
export type FieldRenderRuleType = {
|
|
111
|
+
id: string;
|
|
112
|
+
condition: {
|
|
113
|
+
operator: any;
|
|
114
|
+
value: string;
|
|
115
|
+
};
|
|
116
|
+
show_as_badge: boolean;
|
|
117
|
+
badge_config?: badgeConfigType;
|
|
118
|
+
expression: string;
|
|
119
|
+
};
|
|
120
|
+
type UrlConfigHeader = {
|
|
121
|
+
name: string;
|
|
122
|
+
value: string;
|
|
123
|
+
};
|
|
124
|
+
type UrlValueConfig = {
|
|
125
|
+
name_key: string;
|
|
126
|
+
value_key: string;
|
|
127
|
+
};
|
|
128
|
+
export type UrlConfig = {
|
|
129
|
+
url: string;
|
|
130
|
+
method: "GET" | "POST" | "PUT" | "PATCH";
|
|
131
|
+
body: unknown;
|
|
132
|
+
content_type: string;
|
|
133
|
+
headers: UrlConfigHeader[];
|
|
134
|
+
value_config: UrlValueConfig;
|
|
135
|
+
};
|
|
136
|
+
type optionGroupProperties = {
|
|
137
|
+
url_config: UrlConfig;
|
|
138
|
+
};
|
|
139
|
+
export declare enum optionGroupTypes {
|
|
140
|
+
Normal = "normal",
|
|
141
|
+
Url = "url",
|
|
142
|
+
Dynamic = "dynamic"
|
|
143
|
+
}
|
|
144
|
+
export interface optionsGroup {
|
|
145
|
+
slug: string;
|
|
146
|
+
is_global?: boolean;
|
|
147
|
+
values: optionType[];
|
|
148
|
+
enum_group_type?: optionGroupTypes;
|
|
149
|
+
properties?: optionGroupProperties;
|
|
150
|
+
dynamic_enum_key?: string;
|
|
151
|
+
}
|
|
152
|
+
export declare enum RelationshipType {
|
|
153
|
+
OneToOne = 1,
|
|
154
|
+
ManyToOne = 3,
|
|
155
|
+
OneToMany = 2,
|
|
156
|
+
Restricted = 6
|
|
157
|
+
}
|
|
158
|
+
export declare enum ColumnTypes {
|
|
159
|
+
Standard = "standard",
|
|
160
|
+
Custom = "custom",
|
|
161
|
+
System = "system"
|
|
162
|
+
}
|
|
163
|
+
export type IconData = {
|
|
164
|
+
icon: string;
|
|
165
|
+
color: string;
|
|
166
|
+
};
|
|
167
|
+
type currencyData = {
|
|
168
|
+
currency: string;
|
|
169
|
+
display_style: "code" | "symbol";
|
|
170
|
+
};
|
|
171
|
+
type phoneData = {
|
|
172
|
+
country_code: string;
|
|
173
|
+
};
|
|
174
|
+
type urlProperties = {
|
|
175
|
+
is_audio?: boolean;
|
|
176
|
+
};
|
|
177
|
+
type transformationProperties = {
|
|
178
|
+
rules: FieldRenderRuleType[];
|
|
179
|
+
};
|
|
180
|
+
type FieldUploadProperties = {
|
|
181
|
+
is_private: boolean;
|
|
182
|
+
};
|
|
183
|
+
export declare enum ColumnFormatTypes {
|
|
184
|
+
DURATION_FROM_SECONDS = "duration_from_seconds",
|
|
185
|
+
DURATION_FROM_MILLISECONDS = "duration_from_milliseconds"
|
|
186
|
+
}
|
|
187
|
+
type ObjectColumnProperties = {
|
|
188
|
+
icon_data?: IconData;
|
|
189
|
+
currency?: currencyData;
|
|
190
|
+
phone_number?: phoneData;
|
|
191
|
+
url_properties?: urlProperties;
|
|
192
|
+
format?: ColumnFormatTypes | string;
|
|
193
|
+
rank?: string | number;
|
|
194
|
+
transformation?: transformationProperties;
|
|
195
|
+
[key: string]: any;
|
|
196
|
+
file_upload_properties?: FieldUploadProperties;
|
|
197
|
+
};
|
|
198
|
+
export interface OrgObjectColumn extends AuditData {
|
|
199
|
+
id: string;
|
|
200
|
+
org_object_id: string;
|
|
201
|
+
display_name: string;
|
|
202
|
+
description: string;
|
|
203
|
+
rank: string | number;
|
|
204
|
+
slug: string;
|
|
205
|
+
column_data_type: DataType;
|
|
206
|
+
default_value: string | null;
|
|
207
|
+
placeholder: string | null;
|
|
208
|
+
is_formula_type?: number;
|
|
209
|
+
is_visible: number;
|
|
210
|
+
is_required: number;
|
|
211
|
+
is_unique: number;
|
|
212
|
+
is_history_field: number;
|
|
213
|
+
lock_after_create: number;
|
|
214
|
+
ignore_validation_errors?: number;
|
|
215
|
+
force_data_storage?: number;
|
|
216
|
+
constraints: Constraints | null;
|
|
217
|
+
expression?: string | null;
|
|
218
|
+
column_type: ColumnTypes;
|
|
219
|
+
is_archived: number;
|
|
220
|
+
is_primary: number;
|
|
221
|
+
is_dependent_field: number;
|
|
222
|
+
relationship_type: RelationshipType;
|
|
223
|
+
relation: RelationData | null;
|
|
224
|
+
enum_group: optionsGroup;
|
|
225
|
+
parent_column_slug?: string;
|
|
226
|
+
is_primary_relation?: boolean;
|
|
227
|
+
properties: ObjectColumnProperties | null;
|
|
228
|
+
help_text?: string;
|
|
229
|
+
stage?: optionType;
|
|
230
|
+
}
|
|
231
|
+
export declare enum ObjectTypes {
|
|
232
|
+
Standard = "standard",
|
|
233
|
+
Custom = "custom",
|
|
234
|
+
System = "system"
|
|
235
|
+
}
|
|
236
|
+
export declare enum ObjectBaseTypes {
|
|
237
|
+
Object = "object",
|
|
238
|
+
Task = "task",
|
|
239
|
+
Activity = "activity",
|
|
240
|
+
communication = "communication_type",
|
|
241
|
+
CallLog = "call_log"
|
|
242
|
+
}
|
|
243
|
+
export type ObjectActions = {
|
|
244
|
+
task_complete?: {
|
|
245
|
+
task_complete_form_id?: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
export type ObjectProperties = {
|
|
249
|
+
icon_data?: IconData;
|
|
250
|
+
call_data?: any;
|
|
251
|
+
actions?: ObjectActions;
|
|
252
|
+
record_select_display_field?: string;
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
};
|
|
255
|
+
type MasterObjectType = {
|
|
256
|
+
master_object_id: string;
|
|
257
|
+
master_object_slug: string;
|
|
258
|
+
};
|
|
259
|
+
export interface ObjectType extends AuditData {
|
|
260
|
+
id: string;
|
|
261
|
+
slug: string;
|
|
262
|
+
display_singular_name: string;
|
|
263
|
+
display_plural_name: string;
|
|
264
|
+
state: number;
|
|
265
|
+
status: string;
|
|
266
|
+
is_hidden: number;
|
|
267
|
+
type: ObjectTypes;
|
|
268
|
+
base_type: ObjectBaseTypes;
|
|
269
|
+
related_object_slug: string | null;
|
|
270
|
+
is_task_enabled?: number;
|
|
271
|
+
is_activity_enabled?: number;
|
|
272
|
+
is_communication_enabled?: number;
|
|
273
|
+
is_call_enabled?: number;
|
|
274
|
+
is_whatsapp_enabled?: number;
|
|
275
|
+
is_sms_enabled?: number;
|
|
276
|
+
is_email_enabled?: number;
|
|
277
|
+
access_type: AsyncGeneratorFunctionConstructor;
|
|
278
|
+
properties: ObjectProperties | null;
|
|
279
|
+
org_object_columns: OrgObjectColumn[];
|
|
280
|
+
master_object: MasterObjectType | null;
|
|
281
|
+
}
|
|
282
|
+
export interface RoleType extends AuditData {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
description: string;
|
|
286
|
+
}
|
|
287
|
+
export interface SampleCsv {
|
|
288
|
+
id: string;
|
|
289
|
+
url: string;
|
|
290
|
+
ObjectSlug: string;
|
|
291
|
+
}
|
|
292
|
+
export interface UserMe {
|
|
293
|
+
user_id: string;
|
|
294
|
+
email: string;
|
|
295
|
+
role_id: string;
|
|
296
|
+
team_id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
avatar: string | null;
|
|
299
|
+
is_checked_in: number;
|
|
300
|
+
is_holiday: number;
|
|
301
|
+
break_info: {
|
|
302
|
+
expires_at: number | null;
|
|
303
|
+
id: string | null;
|
|
304
|
+
name: string | null;
|
|
305
|
+
} | null;
|
|
306
|
+
check_in_time: number;
|
|
307
|
+
check_out_time: number;
|
|
308
|
+
server_current_time: number;
|
|
309
|
+
notification_channel_token: string;
|
|
310
|
+
ws_token: string | null;
|
|
311
|
+
is_check_in_check_out_enabled: number;
|
|
312
|
+
timezone: string;
|
|
313
|
+
org_info: {
|
|
314
|
+
id: string | null;
|
|
315
|
+
name: string | null;
|
|
316
|
+
domain: string | null;
|
|
317
|
+
logo: string | null;
|
|
318
|
+
};
|
|
319
|
+
user_record: any;
|
|
320
|
+
}
|
|
321
|
+
export interface GroupUserType {
|
|
322
|
+
id: string;
|
|
323
|
+
name?: string;
|
|
324
|
+
record_permissions: string[];
|
|
325
|
+
}
|
|
326
|
+
export interface GroupType extends AuditData {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
description?: string;
|
|
330
|
+
deleted_at?: any;
|
|
331
|
+
users?: GroupUserType[];
|
|
332
|
+
members?: GroupUserType[];
|
|
333
|
+
}
|
|
334
|
+
export interface TeamType extends AuditData {
|
|
335
|
+
id: string;
|
|
336
|
+
name: string;
|
|
337
|
+
description: string;
|
|
338
|
+
total_user_count: number;
|
|
339
|
+
work_day_template_id: string;
|
|
340
|
+
parent_team_id: string;
|
|
341
|
+
parent_team: TeamType;
|
|
342
|
+
calendar: any;
|
|
343
|
+
work_day_template: any;
|
|
344
|
+
users: any[];
|
|
345
|
+
replace_sub_team: number;
|
|
346
|
+
cumulative_users: number;
|
|
347
|
+
is_holiday_inherited: number;
|
|
348
|
+
is_workday_inherited: number;
|
|
349
|
+
}
|
|
350
|
+
export declare enum ExportType {
|
|
351
|
+
CSV = "csv",
|
|
352
|
+
XLS = "xlsx"
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Function to get an OrgObjectColumn by its slug from an ObjectType
|
|
356
|
+
* @param objectType - The ObjectType to search in
|
|
357
|
+
* @param slug - The slug of the OrgObjectColumn to find
|
|
358
|
+
* @returns The OrgObjectColumn if found, otherwise null
|
|
359
|
+
*/
|
|
360
|
+
export declare function getOrgObjectColumnBySlug({ org_object_columns }: {
|
|
361
|
+
org_object_columns: OrgObjectColumn[];
|
|
362
|
+
}, slug: string): OrgObjectColumn | null;
|
|
363
|
+
export interface RelatedColumnWithName {
|
|
364
|
+
column: OrgObjectColumn | undefined;
|
|
365
|
+
namePath: string[];
|
|
366
|
+
}
|
|
367
|
+
export interface ReverseRelatedColumnWithName {
|
|
368
|
+
column: OrgObjectColumn | undefined;
|
|
369
|
+
objectSlug?: string;
|
|
370
|
+
reversePathInDot?: string[];
|
|
371
|
+
}
|
|
372
|
+
export declare const getReversePath: (path: string, schema: ObjectType, schemas?: ObjectType[]) => ReverseRelatedColumnWithName;
|
|
373
|
+
export declare const getColumnFromPath: (path: string, schema: ObjectType, schemas: ObjectType[]) => RelatedColumnWithName;
|
|
374
|
+
export declare enum AttachmentFileTypes {
|
|
375
|
+
ImagePng = "png",
|
|
376
|
+
ImageJpeg = "jpeg",
|
|
377
|
+
ImageJpg = "jpg",
|
|
378
|
+
ImageGif = "gif",
|
|
379
|
+
ImageBmp = "bmp",
|
|
380
|
+
ImageTiff = "tiff",
|
|
381
|
+
CSV = "csv",
|
|
382
|
+
PDF = "pdf",
|
|
383
|
+
PPT = "ppt",
|
|
384
|
+
PPTX = "pptx",
|
|
385
|
+
WordDoc = "doc",
|
|
386
|
+
WordDocx = "docx",
|
|
387
|
+
ExcelXls = "xls",
|
|
388
|
+
ExcelXlsx = "xlsx"
|
|
389
|
+
}
|
|
390
|
+
export declare enum AllObjectsPermissionSlugs {
|
|
391
|
+
ObjectRecordManagement = "object_record_management",
|
|
392
|
+
CommunicationCallsManagement = "communication_calls_management",
|
|
393
|
+
AdminObjectManagement = "admin_object_management",
|
|
394
|
+
AdminUserManagementRoles = "admin_user_management_roles",
|
|
395
|
+
AdminUserManagementGroups = "admin_user_management_groups",
|
|
396
|
+
AdminUserTeamManagement = "admin_user_management_teams",
|
|
397
|
+
ModuleAutomations = "module_automations",
|
|
398
|
+
AdminUserManagementUsers = "admin_user_management_users",
|
|
399
|
+
ModuleReports = "module_reports"
|
|
400
|
+
}
|
|
401
|
+
export declare enum AppSlugs {
|
|
402
|
+
Telephony = "telephony"
|
|
403
|
+
}
|
|
404
|
+
export declare enum FilterOperatorScope {
|
|
405
|
+
Filter = "filter",
|
|
406
|
+
Workflows = "workflows",
|
|
407
|
+
Reports = "reports"
|
|
408
|
+
}
|
|
409
|
+
export {};
|
|
410
|
+
//# sourceMappingURL=schemaTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaTypes.d.ts","sourceRoot":"","sources":["../../src/types/schemaTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,IAAI;IACP,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,IAAI,IAAI;IACR,oBAAoB,IAAI;IACxB,KAAK,KAAK;IACV,IAAI,KAAK;IACT,YAAY,KAAK;IACjB,WAAW,KAAK;IAChB,GAAG,KAAK;IACR,UAAU,KAAK;IACf,WAAW,KAAK;IAChB,MAAM,KAAK;IACX,OAAO,IAAI;IACX,QAAQ,KAAK;IACb,KAAK,KAAK;IACV,QAAQ,KAAK;IACb,MAAM,KAAK;IACX,eAAe,KAAK;CACrB;AAED,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,cAAc;IACtB,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,cAAc,GACzB,MAAM,MAAM,EACZ,QAAQ,UAAU,EAClB,UAAU,UAAU,EAAE,KACrB,4BA8BF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,MAAM,EACZ,QAAQ,UAAU,EAClB,SAAS,UAAU,EAAE,KACpB,qBAgCF,CAAC;AAEF,oBAAY,mBAAmB;IAC7B,QAAQ,QAAQ;IAChB,SAAS,SAAS;IAClB,QAAQ,QAAQ;IAChB,QAAQ,QAAQ;IAChB,QAAQ,QAAQ;IAChB,SAAS,SAAS;IAClB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,QAAQ;IACf,QAAQ,SAAS;IACjB,QAAQ,QAAQ;IAChB,SAAS,SAAS;CACnB;AAED,oBAAY,yBAAyB;IACnC,sBAAsB,6BAA6B;IACnD,4BAA4B,mCAAmC;IAC/D,qBAAqB,4BAA4B;IACjD,wBAAwB,gCAAgC;IACxD,yBAAyB,iCAAiC;IAC1D,uBAAuB,gCAAgC;IACvD,iBAAiB,uBAAuB;IACxC,wBAAwB,gCAAgC;IACxD,aAAa,mBAAmB;CACjC;AAED,oBAAY,QAAQ;IAClB,SAAS,cAAc;CACxB;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { DataExplorerItem, DataExplorerItemType } from "../components/panels/dataExplorer";
|
|
2
|
+
import type { ObjectType, OrgObjectColumn } from "../types/schemaTypes";
|
|
3
|
+
/**
|
|
4
|
+
* Utility functions to convert various data structures to DataExplorer format
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Convert a DataType enum to DataExplorerItemType
|
|
8
|
+
*/
|
|
9
|
+
export declare const mapDataTypeToExplorerType: (dataType: number) => DataExplorerItemType;
|
|
10
|
+
/**
|
|
11
|
+
* Convert a FieldType to DataExplorerItemType
|
|
12
|
+
*/
|
|
13
|
+
export declare const mapFieldTypeToExplorerType: (fieldType: string) => DataExplorerItemType;
|
|
14
|
+
/**
|
|
15
|
+
* Convert relationship type to string
|
|
16
|
+
*/
|
|
17
|
+
export declare const mapRelationshipType: (relationshipType: number) => "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
|
|
18
|
+
/**
|
|
19
|
+
* Convert an OrgObjectColumn to DataExplorerItem
|
|
20
|
+
*/
|
|
21
|
+
export declare const convertColumnToExplorerItem: (column: OrgObjectColumn) => DataExplorerItem;
|
|
22
|
+
/**
|
|
23
|
+
* Convert an ObjectType to DataExplorerItem
|
|
24
|
+
*/
|
|
25
|
+
export declare const convertObjectToExplorerItem: (objectType: ObjectType, recordCount?: number) => DataExplorerItem;
|
|
26
|
+
/**
|
|
27
|
+
* Convert an array of objects to DataExplorer format
|
|
28
|
+
*/
|
|
29
|
+
export declare const convertObjectsToExplorerData: (objects: ObjectType[], recordCounts?: Record<string, number>) => DataExplorerItem[];
|
|
30
|
+
/**
|
|
31
|
+
* Convert any generic data structure to DataExplorer format
|
|
32
|
+
*/
|
|
33
|
+
export declare const convertGenericDataToExplorerItem: (data: unknown, key: string, name?: string, parentPath?: string[]) => DataExplorerItem;
|
|
34
|
+
/**
|
|
35
|
+
* Auto-detect and convert any data structure to DataExplorer format
|
|
36
|
+
*/
|
|
37
|
+
export declare const autoConvertToExplorerData: (data: unknown) => DataExplorerItem[];
|
|
38
|
+
/**
|
|
39
|
+
* Create sample data for testing
|
|
40
|
+
*/
|
|
41
|
+
export declare const createSampleExplorerData: () => DataExplorerItem[];
|
|
42
|
+
//# sourceMappingURL=dataExplorerHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataExplorerHelpers.d.ts","sourceRoot":"","sources":["../../src/utils/dataExplorerHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAExE;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,UAAU,MAAM,KACf,oBA6CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,WAAW,MAAM,KAChB,oBA+CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,MAAM,KACvB,YAAY,GAAG,aAAa,GAAG,aAAa,GAAG,cAWjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,GACtC,QAAQ,eAAe,KACtB,gBAoDF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,UAAU,EACtB,cAAc,MAAM,KACnB,gBA0BF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,GACvC,SAAS,UAAU,EAAE,EACrB,eAAe,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,gBAAgB,EAIlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAC3C,MAAM,OAAO,EACb,KAAK,MAAM,EACX,OAAO,MAAM,EACb,aAAY,MAAM,EAAO,KACxB,gBA6EF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,MAAM,OAAO,KACZ,gBAAgB,EA0ClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAO,gBAAgB,EAuI3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monacoHelper.d.ts","sourceRoot":"","sources":["../../src/utils/monacoHelper.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,kEAiBzD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superleap-code-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A flexible, reusable code editor component with multiple file handling modes",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -58,25 +58,33 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
62
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
63
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
64
|
+
"@superleapai/ui": "^2.0.17",
|
|
61
65
|
"@tabler/icons-react": "^3.34.1",
|
|
62
|
-
"antd": "^5.27.
|
|
66
|
+
"antd": "^5.27.4",
|
|
67
|
+
"class-variance-authority": "^0.7.1",
|
|
68
|
+
"clsx": "^2.1.1",
|
|
69
|
+
"lucide-react": "^0.544.0",
|
|
70
|
+
"tailwind-merge": "^3.3.1"
|
|
63
71
|
},
|
|
64
72
|
"resolutions": {
|
|
65
|
-
"@types/react": "^18",
|
|
66
|
-
"@types/react-dom": "^18"
|
|
73
|
+
"@types/react": "^18.0.0",
|
|
74
|
+
"@types/react-dom": "^18.0.0"
|
|
67
75
|
},
|
|
68
76
|
"devDependencies": {
|
|
69
77
|
"@eslint/js": "^9.33.0",
|
|
70
78
|
"@tailwindcss/vite": "^4.1.13",
|
|
71
|
-
"@types/react": "^18.
|
|
72
|
-
"@types/react-dom": "^18.
|
|
79
|
+
"@types/react": "^18.0.0",
|
|
80
|
+
"@types/react-dom": "^18.0.0",
|
|
73
81
|
"@vitejs/plugin-react": "^5.0.0",
|
|
74
82
|
"eslint": "^9.33.0",
|
|
75
83
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
76
84
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
77
85
|
"globals": "^16.3.0",
|
|
78
|
-
"react": "^18.
|
|
79
|
-
"react-dom": "^18.
|
|
86
|
+
"react": "^18.0.0",
|
|
87
|
+
"react-dom": "^18.0.0",
|
|
80
88
|
"tailwindcss": "^4.1.13",
|
|
81
89
|
"typescript": "~5.8.3",
|
|
82
90
|
"typescript-eslint": "^8.39.1",
|