cem-plugin-better-lit-types
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -9,2 +9,5 @@ import { FIELD } from "./types"; | ||
}; | ||
name: any; | ||
description: any; | ||
default: any; | ||
control: { | ||
@@ -14,5 +17,19 @@ type: string; | ||
options?: undefined; | ||
type: string; | ||
required: boolean; | ||
} | { | ||
table: { | ||
category: FIELD; | ||
defaultValue: { | ||
summary: any; | ||
}; | ||
}; | ||
control: { | ||
type: string; | ||
}; | ||
name: any; | ||
description: any; | ||
default?: undefined; | ||
options?: undefined; | ||
type: string; | ||
name: any; | ||
required: boolean; | ||
@@ -30,5 +47,6 @@ } | { | ||
}; | ||
name: any; | ||
description: any; | ||
default?: undefined; | ||
type: string; | ||
name: any; | ||
required: boolean; | ||
@@ -43,7 +61,8 @@ } | { | ||
type: any; | ||
name: any; | ||
description: any; | ||
default?: undefined; | ||
control?: undefined; | ||
options?: undefined; | ||
description: any; | ||
name: any; | ||
required: boolean; | ||
}; |
@@ -6,2 +6,11 @@ import { FIELD } from "./types"; | ||
return undefined; | ||
if (field === FIELD.css) | ||
return { | ||
name: item.name, | ||
description: item.description || undefined, | ||
default: item.default, | ||
control: { | ||
type: 'text', | ||
}, | ||
}; | ||
if (field === FIELD.slots) | ||
@@ -113,3 +122,3 @@ return { | ||
return true; | ||
if (field === FIELD.slots) | ||
if (field === FIELD.slots || field === FIELD.css) | ||
return false; | ||
@@ -116,0 +125,0 @@ if (privacy !== 'public' && (kind === 'method' || field !== 'attributes')) |
@@ -35,3 +35,3 @@ import { convertToArgs } from './converter'; | ||
return; | ||
return Object.assign(Object.assign(Object.assign({}, reduceTypes(declaration.attributes, FIELD.attributes, mapArgs)), reduceTypes(declaration.members, FIELD.properties, mapArgs)), reduceTypes(declaration.slots, FIELD.slots, mapArgs)); | ||
return Object.assign(Object.assign(Object.assign(Object.assign({}, reduceTypes(declaration.attributes, FIELD.attributes, mapArgs)), reduceTypes(declaration.members, FIELD.properties, mapArgs)), reduceTypes(declaration.slots, FIELD.slots, mapArgs)), reduceTypes(declaration.cssProperties, FIELD.css, mapArgs)); | ||
}; |
@@ -5,3 +5,4 @@ export declare enum FIELD { | ||
'properties' = "properties", | ||
'methods' = "methods" | ||
'methods' = "methods", | ||
'css' = "css variables" | ||
} |
@@ -7,2 +7,3 @@ export var FIELD; | ||
FIELD["methods"] = "methods"; | ||
FIELD["css"] = "css variables"; | ||
})(FIELD || (FIELD = {})); |
{ | ||
"name": "cem-plugin-better-lit-types", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Updates CEM definitions with Typescript Schema", | ||
@@ -11,2 +11,3 @@ "main": "dist/plugin.js", | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
@@ -13,0 +14,0 @@ "dist" |
17568
17
407