@dataloop-ai/components 0.19.112 → 0.19.113

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.19.112",
3
+ "version": "0.19.113",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -11,7 +11,7 @@ import {
11
11
  removeBrackets
12
12
  } from '../../../../../hooks/use-suggestions'
13
13
  import moment from 'moment'
14
- import { cloneDeep } from 'lodash'
14
+ import { cloneDeep, get } from 'lodash'
15
15
 
16
16
  export const isEndOfString = (
17
17
  str: string,
@@ -190,7 +190,7 @@ export function setAliases(str: string, aliases: Alias[]) {
190
190
 
191
191
  function valueAliases(schema: Data, field: string) {
192
192
  let aliases: Data = {}
193
- const type: any = schema[field]
193
+ const type: any = get(schema, field)
194
194
  if (Array.isArray(type)) {
195
195
  for (const element of type) {
196
196
  if (typeof element === 'object')
@@ -147,6 +147,15 @@ export default defineComponent({
147
147
  Connor: '42'
148
148
  }
149
149
  ],
150
+ nested: {
151
+ value: [
152
+ 'string',
153
+ {
154
+ John: 'AB34',
155
+ Connor: '42'
156
+ }
157
+ ]
158
+ },
150
159
  type: [
151
160
  'class',
152
161
  'point',