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

@master/css

Package Overview
Dependencies
Maintainers
2
Versions
429
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master/css - npm Package Compare versions

Comparing version 2.0.0-beta.207 to 2.0.0-beta.208

dist/constants/base-unit-regex.d.ts

15

dist/config/index.d.ts

@@ -8,3 +8,3 @@ import mediaQueries from './media-queries';

import functions from './functions';
import { CSSDeclarations } from '../types/css-declarations';
import type { PropertiesHyphen } from 'csstype';
import type { Rule, RuleDefinition, ValueComponent } from '../rule';

@@ -19,9 +19,7 @@ declare const config: Config;

};
export type AnimationDefinition = {
[key in 'from' | 'to']?: CSSDeclarations;
} & {
[key: string]: CSSDeclarations;
export type CSSKeyframes = {
[key in 'from' | 'to' | string]: PropertiesHyphen;
};
export type AnimationDefinitions = {
[key: string]: AnimationDefinition;
[key: string]: CSSKeyframes;
};

@@ -46,5 +44,5 @@ export type SelectorDefinitions = {

export type SemanticDefinitions = {
[key in keyof typeof semantics]?: CSSDeclarations;
[key in keyof typeof semantics]?: PropertiesHyphen;
} & {
[key: string]: CSSDeclarations;
[key: string]: PropertiesHyphen;
};

@@ -68,2 +66,3 @@ export interface FunctionDefinition {

rootSize?: number;
baseUnit?: number;
scope?: string;

@@ -70,0 +69,0 @@ important?: boolean;

@@ -49,14 +49,20 @@ import { Rule, NativeRule, RegisteredRule } from './rule';

/**
* Match check if Master CSS class syntax
* @param syntax class syntax
* Match check if Master CSS syntax
* @param className
* @returns css text
*/
match(syntax: string): RegisteredRule | undefined;
match(className: string): RegisteredRule | undefined;
/**
* Create rules from class syntax
* @param syntax class syntax
* Generate rules from class name
* @param className
* @returns Rule[]
*/
create(syntax: string): Rule[];
generate(className: string): Rule[];
/**
* Create rule from given syntax
* @param syntax
* @returns Rule
*/
create(syntax: string): Rule | undefined;
/**
* 根據蒐集到的所有 DOM class 重新 create

@@ -67,4 +73,4 @@ */

destroy(): this;
add(syntax: string): boolean;
delete(syntax: string): void;
add(...classNames: string[]): this;
delete(...classNames: string[]): void;
/**

@@ -85,3 +91,3 @@ * 加工插入規則

*/
insert(rules: Rule[]): void;
insert(rule: Rule): void;
get text(): string;

@@ -88,0 +94,0 @@ handleRuleWithAnimationNames(rule: Rule, initializing?: boolean): void;

import type { MasterCSS, Variable } from './core';
import { CSSDeclarations } from './types/css-declarations';
import { Layer } from './layer';
import { PropertiesHyphen } from 'csstype';
export declare class Rule {

@@ -13,3 +13,3 @@ readonly className: string;

readonly stateToken: string;
readonly declarations?: CSSDeclarations;
readonly declarations?: PropertiesHyphen;
animationNames?: string[];

@@ -91,7 +91,7 @@ variableNames?: string[];

native?: boolean;
declarations?: CSSDeclarations;
declarations?: PropertiesHyphen;
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
transformValue?(this: Rule, value: string): string;
transformValueComponents?(this: Rule, valueComponents: ValueComponent[]): ValueComponent[];
declare?(this: Rule, value: string): CSSDeclarations;
declare?(this: Rule, value: string): PropertiesHyphen;
delete?(this: Rule, className: string): void;

@@ -98,0 +98,0 @@ create?(this: Rule, className: string): void;

@@ -1,1 +0,1 @@

{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/runtime.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/runtime.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.207","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","css-shared":"^2.0.0-beta.207","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.207"}
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/runtime.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/runtime.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"files":["dist"],"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.208","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","@types/jest":"^29.5.11","css-shared":"^2.0.0-beta.208","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.208"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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