@squiz/base-component-schemas
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -1,3 +0,106 @@ | ||
import { Schema } from 'jsonschema'; | ||
export * from './set/v1/types'; | ||
export declare const ComponentSetSchema: Schema; | ||
export declare const ComponentSetSchema: { | ||
$schema: string; | ||
$defs: { | ||
semver: { | ||
type: string; | ||
description: string; | ||
minLength: number; | ||
maxLength: number; | ||
pattern: string; | ||
}; | ||
}; | ||
type: string; | ||
additionalProperties: boolean; | ||
required: string[]; | ||
properties: { | ||
$schema: { | ||
type: string; | ||
}; | ||
name: { | ||
type: string; | ||
description: string; | ||
}; | ||
id: { | ||
type: string; | ||
description: string; | ||
}; | ||
version: { | ||
$ref: string; | ||
}; | ||
description: { | ||
type: string; | ||
description: string; | ||
}; | ||
components: { | ||
type: string; | ||
items: { | ||
type: string; | ||
required: string[]; | ||
properties: { | ||
id: { | ||
type: string; | ||
description: string; | ||
}; | ||
editable: { | ||
oneOf: ({ | ||
type: string; | ||
description: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
enum?: undefined; | ||
} | { | ||
type: string; | ||
enum: string[]; | ||
description: string; | ||
items?: undefined; | ||
})[]; | ||
}; | ||
excluded: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
renderable: { | ||
oneOf: ({ | ||
type: string; | ||
description: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
enum?: undefined; | ||
} | { | ||
type: string; | ||
enum: string[]; | ||
description: string; | ||
items?: undefined; | ||
})[]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
configuration: { | ||
type: string; | ||
properties: { | ||
environment: { | ||
type: string; | ||
additionalProperties: { | ||
type: string; | ||
}; | ||
required: never[]; | ||
}; | ||
headers: { | ||
type: string; | ||
additionalProperties: { | ||
type: string; | ||
}; | ||
required: never[]; | ||
}; | ||
}; | ||
additionalProperties: boolean; | ||
required: never[]; | ||
}; | ||
}; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import{readFileSync as r}from"fs";import{resolve as n}from"path";var t=(e=>(e.Latest="latest",e.All="all",e))(t||{});var a=JSON.parse(r(n(__dirname,"set","v1","v1.json")).toString());export{a as ComponentSetSchema,t as SetEnums}; | ||
var r=(e=>(e.Latest="latest",e.All="all",e))(r||{});var t={$schema:"https://json-schema.org/draft/2019-09/schema",$defs:{semver:{type:"string",description:"Semver version number",minLength:5,maxLength:14,pattern:"^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"}},type:"object",additionalProperties:!1,required:["name","id","version","components"],properties:{$schema:{type:"string"},name:{type:"string",description:"The component set name"},id:{type:"string",description:"The component set id"},version:{$ref:"#/$defs/semver"},description:{type:"string",description:"The component set description"},components:{type:"array",items:{type:"object",required:["id","renderable","editable"],properties:{id:{type:"string",description:"The component name including the namespace e.g {NAMESPACE/COMPONENT_NAME}"},editable:{oneOf:[{type:"array",description:"The versions of a component that are editable in this set",items:{$ref:"#/$defs/semver"}},{type:"string",enum:["latest"],description:"The latest version"}]},excluded:{type:"array",items:{$ref:"#/$defs/semver"}},renderable:{oneOf:[{type:"array",description:"The versions of a component that are renderable in this set",items:{$ref:"#/$defs/semver"}},{type:"string",enum:["all"],description:"All versions should be renderable"}]}}}},configuration:{type:"object",properties:{environment:{type:"object",additionalProperties:{type:"string"},required:[]},headers:{type:"object",additionalProperties:{type:"string"},required:[]}},additionalProperties:!1,required:[]}}};var a=t;export{a as ComponentSetSchema,r as SetEnums}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@squiz/base-component-schemas", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -32,3 +32,3 @@ "keywords": [], | ||
"types": "lib/index.d.ts", | ||
"gitHead": "f56cf6e584d507acccf56c1b373d6759664aef2a" | ||
"gitHead": "1edcb0689eeb889c86271b297d27f6fead1afc3d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
39448
663
2
1