@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.83",
3
+ "version": "0.20.84",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -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
- thisFields.push(aliases[key].alias)
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
  }