@dataloop-ai/components 0.20.83 → 0.20.84
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/package.json
CHANGED
|
@@ -346,9 +346,13 @@ export function createColorSchema(
|
|
|
346
346
|
aliases: Alias[],
|
|
347
347
|
schema: Data
|
|
348
348
|
): SyntaxColorSchema {
|
|
349
|
-
const thisFields = []
|
|
349
|
+
const thisFields: string[] = []
|
|
350
350
|
for (const key in aliases) {
|
|
351
|
-
|
|
351
|
+
const aliasParts = aliases[key].alias.split('.')
|
|
352
|
+
while (aliasParts.length > 0) {
|
|
353
|
+
thisFields.push(aliasParts.join('.'))
|
|
354
|
+
aliasParts.pop()
|
|
355
|
+
}
|
|
352
356
|
}
|
|
353
357
|
|
|
354
358
|
const addKeysFromSchema = (schema: Data, parentKey?: string) => {
|
|
@@ -362,7 +366,7 @@ export function createColorSchema(
|
|
|
362
366
|
}
|
|
363
367
|
addKeysFromSchema(schema)
|
|
364
368
|
|
|
365
|
-
const thisOperators = []
|
|
369
|
+
const thisOperators: string[] = []
|
|
366
370
|
for (const key in operators) {
|
|
367
371
|
thisOperators.push(operators[key])
|
|
368
372
|
}
|