Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cobalt-ui/core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cobalt-ui/core - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

CHANGELOG.md

14

dist/config.d.ts
import type { Plugin } from './build';
export interface FigmaMapping {
[url: string]: {
[ComponentName: string]: {
fill?: string | string[];
fills?: string | string[];
stroke?: string | string[];
strokes?: string | string[];
text?: string | string[];
};
};
}
export interface Config {

@@ -6,2 +17,3 @@ tokens: URL;

plugins: Plugin[];
figma?: FigmaMapping;
}

@@ -15,2 +27,4 @@ export interface UserConfig {

plugins: Plugin[];
/** add figma keys */
figma?: FigmaMapping;
}

@@ -17,0 +31,0 @@ export declare class ConfigLoader {

2

dist/config.js

@@ -29,3 +29,3 @@ import fs from 'fs';

async function loadDefaultPlugins() {
return await Promise.all(['@cobalt-ui/plugin-json', '@cobalt-ui/plugin-sass', '@cobalt-ui/plugin-ts'].map((spec) => import(spec).then((m) => m.default())));
return await Promise.all(['@cobalt-ui/plugin-json'].map((spec) => import(spec).then((m) => m.default())));
}

@@ -32,0 +32,0 @@ let m = await import(fileURLToPath(this.filePath));

{
"name": "@cobalt-ui/core",
"description": "Schemas and tools for managing design tokens",
"version": "0.0.0",
"version": "0.0.1",
"author": {

@@ -9,2 +9,8 @@ "name": "Drew Powers",

},
"repository": {
"type": "git",
"url": "https://github.com/drwpow/cobalt-ui.git",
"directory": "packages/core"
},
"homepage": "https://cobalt-ui.pages.dev",
"license": "MIT",

@@ -14,6 +20,2 @@ "type": "module",

"types": "./dist/index.d.ts",
"scripts": {
"build": "rm -rf dist && tsc",
"dev": "tsc -w"
},
"dependencies": {

@@ -29,3 +31,7 @@ "@cobalt-ui/plugin-json": "^0.0.0",

"@types/node": "^16.11.7"
},
"scripts": {
"build": "rm -rf dist && tsc",
"dev": "tsc -w"
}
}
}

@@ -6,2 +6,14 @@ import type { Plugin } from './build';

export interface FigmaMapping {
[url: string]: {
[ComponentName: string]: {
fill?: string | string[];
fills?: string | string[];
stroke?: string | string[];
strokes?: string | string[];
text?: string | string[];
};
};
}
export interface Config {

@@ -11,2 +23,3 @@ tokens: URL;

plugins: Plugin[];
figma?: FigmaMapping;
}

@@ -21,2 +34,4 @@

plugins: Plugin[];
/** add figma keys */
figma?: FigmaMapping;
}

@@ -50,3 +65,3 @@

async function loadDefaultPlugins(): Promise<Plugin[]> {
return await Promise.all(['@cobalt-ui/plugin-json', '@cobalt-ui/plugin-sass', '@cobalt-ui/plugin-ts'].map((spec) => import(spec).then((m) => m.default())));
return await Promise.all(['@cobalt-ui/plugin-json'].map((spec) => import(spec).then((m) => m.default())));
}

@@ -53,0 +68,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc