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

ununura-shared

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ununura-shared - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

8

dist/index.d.ts

@@ -39,3 +39,4 @@ declare enum UnunuraIdentifier {

type UnunuraContextualizeResponsive = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
type UnunuraContextualize = UnunuraContextualizeTheme | UnunuraContextualizeResponsive;
type UnunuraContextualizePseudoClasses = 'hover' | 'focus' | 'active';
type UnunuraContextualize = UnunuraContextualizeTheme | UnunuraContextualizeResponsive | UnunuraContextualizePseudoClasses;
type UnunuraContextualizeStack = UnunuraContextualize[];

@@ -93,8 +94,9 @@ type CSSResourceSizer = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | `${string}xl`;

declare const isKey: (char: string) => boolean;
declare const isGlobal: (str: string) => Option<string>;
declare const isThemeContextIdentifier: (str: string) => string | undefined;
declare const isResponsiveContextIdentifier: (str: string) => Option<UnunuraContextualizeResponsive>;
declare const isPseudoClassContextIdentifier: (str: string) => Option<UnunuraContextualizePseudoClasses>;
declare const isContextIdentifier: (str: string) => string | undefined;
declare const isCommonIdentifier: (str: string) => boolean;
declare const isIdentifier: (str: string) => string | true | undefined;
declare const isGlobal: (str: string) => Option<string>;

@@ -107,2 +109,2 @@ declare const findResource: (contents: string[], target: string[]) => string;

export { ANTIALIASED_RESET_CSS, CSSInject, CSSResourceSizer, MEYER_RESET_CSS, NOVOUT_RESET_CSS, NULLABLE, Nullable, Option, RESOLVED_VIRTUAL_CSS_INJECT_FILENAME, STANDARD_EXCLUDE_SCAN, STANDARD_INCLUDE_SCAN, UNUNURA_RESPONSIVE, UnunuraBounce, UnunuraContextualize, UnunuraContextualizeResponsive, UnunuraContextualizeStack, UnunuraContextualizeTheme, UnunuraCoreOptions, UnunuraGenerateContext, UnunuraGlobals, UnunuraIdentifier, UnunuraKeys, VIRTUAL_CSS_INJECT_FILENAME, VueSFC, browserFonts, findResource, findResourceInStart, googleFonts, isBorderStyle, isCSSColor, isCloseMultipleKey, isCommonIdentifier, isContextCloseKey, isContextIdentifier, isContextKey, isContextOpenKey, isCursor, isDefaultFont, isFlexHorizontal, isFlexVertical, isGlobal, isGoogleFont, isHTTPSImage, isHex, isIdentifier, isImage, isImageRepeat, isImageSize, isKey, isNullable, isNumber, isNumberSuffix, isOpenMultipleKey, isResponsiveContextIdentifier, isScroll, isSizer, isSlashImage, isThemeContextIdentifier, isUniqueKey, isVueFile };
export { ANTIALIASED_RESET_CSS, CSSInject, CSSResourceSizer, MEYER_RESET_CSS, NOVOUT_RESET_CSS, NULLABLE, Nullable, Option, RESOLVED_VIRTUAL_CSS_INJECT_FILENAME, STANDARD_EXCLUDE_SCAN, STANDARD_INCLUDE_SCAN, UNUNURA_RESPONSIVE, UnunuraBounce, UnunuraContextualize, UnunuraContextualizePseudoClasses, UnunuraContextualizeResponsive, UnunuraContextualizeStack, UnunuraContextualizeTheme, UnunuraCoreOptions, UnunuraGenerateContext, UnunuraGlobals, UnunuraIdentifier, UnunuraKeys, VIRTUAL_CSS_INJECT_FILENAME, VueSFC, browserFonts, findResource, findResourceInStart, googleFonts, isBorderStyle, isCSSColor, isCloseMultipleKey, isCommonIdentifier, isContextCloseKey, isContextIdentifier, isContextKey, isContextOpenKey, isCursor, isDefaultFont, isFlexHorizontal, isFlexVertical, isGlobal, isGoogleFont, isHTTPSImage, isHex, isIdentifier, isImage, isImageRepeat, isImageSize, isKey, isNullable, isNumber, isNumberSuffix, isOpenMultipleKey, isPseudoClassContextIdentifier, isResponsiveContextIdentifier, isScroll, isSizer, isSlashImage, isThemeContextIdentifier, isUniqueKey, isVueFile };

@@ -64,2 +64,3 @@ "use strict";

isOpenMultipleKey: () => isOpenMultipleKey,
isPseudoClassContextIdentifier: () => isPseudoClassContextIdentifier,
isResponsiveContextIdentifier: () => isResponsiveContextIdentifier,

@@ -509,8 +510,9 @@ isScroll: () => isScroll,

var isKey = (char) => Object.values(UnunuraKeys).some((key) => key === char);
var isGlobal = (str) => Object.values(UnunuraGlobals).find((key) => str.startsWith(key));
var isThemeContextIdentifier = (str) => ["dark", "light", "sepia"].find((key) => key === str);
var isResponsiveContextIdentifier = (str) => ["xs", "sm", "md", "lg", "xl"].find((key) => key === str);
var isContextIdentifier = (str) => isThemeContextIdentifier(str) || isResponsiveContextIdentifier(str);
var isResponsiveContextIdentifier = (str) => ["xs", "sm", "md", "lg", "xl"]?.find((key) => key === str);
var isPseudoClassContextIdentifier = (str) => ["hover", "focus", "active"]?.find((key) => key === str);
var isContextIdentifier = (str) => isThemeContextIdentifier(str) || isResponsiveContextIdentifier(str) || isPseudoClassContextIdentifier(str);
var isCommonIdentifier = (str) => Object.values(UnunuraIdentifier).some((key) => key === str);
var isIdentifier = (str) => isCommonIdentifier(str) || isContextIdentifier(str);
var isGlobal = (str) => Object.values(UnunuraGlobals).find((key) => str.startsWith(key));

@@ -575,2 +577,3 @@ // src/utils.ts

isOpenMultipleKey,
isPseudoClassContextIdentifier,
isResponsiveContextIdentifier,

@@ -577,0 +580,0 @@ isScroll,

{
"name": "ununura-shared",
"version": "0.0.10",
"version": "0.0.11",
"description": "Atomic CSS Engine.",
"author": "Novout",
"license": "MIT",
"homepage": "https://github.com/Novout/ununura",
"homepage": "https://github.com/Novout/ununuracss",
"keywords": [

@@ -31,3 +31,3 @@ "ununura",

},
"gitHead": "0181b89fe0115484c709d4107f649537c5add24d"
"gitHead": "c0b5cfaa01cb198b16de6cafbdabf8d41268895a"
}

Sorry, the diff of this file is not supported yet

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