New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basis-theory/basis-theory-elements-interfaces

Package Overview
Dependencies
Maintainers
9
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-elements-interfaces - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

package.json
{
"name": "@basis-theory/basis-theory-elements-interfaces",
"version": "1.0.0",
"version": "1.1.0",
"repository": "https://github.com/Basis-Theory/basis-theory-elements-interfaces",

@@ -16,5 +16,11 @@ "license": "Apache-2.0",

],
"prettier": "@basis-theory/eslint-config/prettier",
"dependencies": {
"csstype": "^3.0.8"
},
"resolutions": {
"semver-regex": "^3.1.3",
"tar": "^6.1.11",
"path-parse": "^1.0.7"
},
"publishConfig": {

@@ -21,0 +27,0 @@ "access": "public"

11

README.md

@@ -1,5 +0,10 @@

# BasisTheory Elements interfaces
# Basis Theory Elements Interfaces
This project exposes common types/constants used across Basis Theory Elements projects.
[![Version](https://img.shields.io/npm/v/@basis-theory/basis-theory-elements-interfaces.svg)](https://www.npmjs.org/package/@basis-theory/basis-theory-elements-interfaces)
[![Verify](https://github.com/Basis-Theory/basis-theory-elements-interfaces/actions/workflows/release.yml/badge.svg)](https://github.com/Basis-Theory/basis-theory-elements-interfaces/actions/workflows/release.yml)
Make sure to check out [our docs](https://docs.basistheory.com/elements).
The [Basis Theory](https://basistheory.com/) Elements Interfaces exposes common types/constants used for development against the Basis Theory Elements package
## Documentation
For a complete guide with examples, please refer to our [Elements docs](https://docs.basistheory.com/elements).
import type { Properties as CSSProperties } from 'csstype';
export declare const SAFE_CSS_PROPERTIES: readonly ["backgroundColor", "color", "fontFamily", "fontSize", "fontSmooth", "fontStyle", "fontVariant", "fontWeight", "lineHeight", "letterSpacing", "textAlign", "padding", "textDecoration", "textShadow", "textTransform"];
export declare type SafeCSSProperty = typeof SAFE_CSS_PROPERTIES[number];
export declare const SAFE_CSS_PROPERTIES_ALTERNATES: Partial<Record<SafeCSSProperty, string[]>>;
export declare const SAFE_CSS_PROPERTIES_WITH_ALTERNATES: string[];
export declare type SafeStyle = Pick<CSSProperties, SafeCSSProperty>;
export declare const CARD_ELEMENT_STYLE_VARIANT_SELECTORS: readonly [":hover", ":focus", "::placeholder", "::selection"];
export declare type CardElementStyleVariantSelector = typeof CARD_ELEMENT_STYLE_VARIANT_SELECTORS[number];
export declare type CardElementStyleVariantStyle = SafeStyle & Partial<Record<CardElementStyleVariantSelector, SafeStyle>>;
export declare const CARD_ELEMENT_STYLE_VARIANTS: readonly ["base", "complete", "invalid", "empty"];
export declare const CARD_ELEMENT_STYLE_FONTS_ATTR: "fonts";
export declare type CardElementStyleVariant = typeof CARD_ELEMENT_STYLE_VARIANTS[number];
declare const SAFE_CSS_PROPERTIES: readonly ["backgroundColor", "color", "fontFamily", "fontSize", "fontSmooth", "fontStyle", "fontVariant", "fontWeight", "lineHeight", "letterSpacing", "textAlign", "padding", "textDecoration", "textShadow", "textTransform"];
declare type SafeCSSProperty = typeof SAFE_CSS_PROPERTIES[number];
declare const SAFE_CSS_PROPERTIES_ALTERNATES: Partial<Record<SafeCSSProperty, string[]>>;
declare const SAFE_CSS_PROPERTIES_WITH_ALTERNATES: string[];
declare type SafeStyle = Pick<CSSProperties, SafeCSSProperty>;
declare const CARD_ELEMENT_STYLE_VARIANT_SELECTORS: readonly [":hover", ":focus", "::placeholder", "::selection"];
declare type CardElementStyleVariantSelector = typeof CARD_ELEMENT_STYLE_VARIANT_SELECTORS[number];
declare type CardElementStyleVariantStyle = SafeStyle & Partial<Record<CardElementStyleVariantSelector, SafeStyle>>;
declare const CARD_ELEMENT_STYLE_VARIANTS: readonly ["base", "complete", "invalid", "empty"];
declare const CARD_ELEMENT_STYLE_FONTS_ATTR: "fonts";
declare type CardElementStyleVariant = typeof CARD_ELEMENT_STYLE_VARIANTS[number];
declare type CardElementStyleFontAttr = typeof CARD_ELEMENT_STYLE_FONTS_ATTR;
declare type FontSource = string;
export declare type FontSources = FontSource[];
export declare type Fonts = Record<CardElementStyleFontAttr, FontSources>;
export declare type CardElementStyle = Partial<Record<CardElementStyleVariant, CardElementStyleVariantStyle> & Fonts>;
export declare type ElementStyle = CardElementStyle;
export {};
declare type FontSources = FontSource[];
declare type Fonts = Record<CardElementStyleFontAttr, FontSources>;
declare type CardElementStyle = Partial<Record<CardElementStyleVariant, CardElementStyleVariantStyle> & Fonts>;
declare type ElementStyle = CardElementStyle;
export { SAFE_CSS_PROPERTIES, SAFE_CSS_PROPERTIES_ALTERNATES, SAFE_CSS_PROPERTIES_WITH_ALTERNATES, CARD_ELEMENT_STYLE_VARIANT_SELECTORS, CARD_ELEMENT_STYLE_VARIANTS, CARD_ELEMENT_STYLE_FONTS_ATTR, };
export type { SafeCSSProperty, SafeStyle, CardElementStyleVariantSelector, CardElementStyleVariantStyle, CardElementStyleVariant, FontSources, Fonts, CardElementStyle, ElementStyle, };

@@ -6,3 +6,3 @@ "use strict";

});
exports.CARD_ELEMENT_STYLE_FONTS_ATTR = exports.CARD_ELEMENT_STYLE_VARIANTS = exports.CARD_ELEMENT_STYLE_VARIANT_SELECTORS = exports.SAFE_CSS_PROPERTIES_WITH_ALTERNATES = exports.SAFE_CSS_PROPERTIES_ALTERNATES = exports.SAFE_CSS_PROPERTIES = void 0;
exports.SAFE_CSS_PROPERTIES_WITH_ALTERNATES = exports.SAFE_CSS_PROPERTIES_ALTERNATES = exports.SAFE_CSS_PROPERTIES = exports.CARD_ELEMENT_STYLE_VARIANT_SELECTORS = exports.CARD_ELEMENT_STYLE_VARIANTS = exports.CARD_ELEMENT_STYLE_FONTS_ATTR = void 0;
const SAFE_CSS_PROPERTIES = ['backgroundColor', 'color', 'fontFamily', 'fontSize', 'fontSmooth', 'fontStyle', 'fontVariant', 'fontWeight', 'lineHeight', 'letterSpacing', 'textAlign', 'padding', 'textDecoration', 'textShadow', 'textTransform'];

@@ -20,4 +20,3 @@ exports.SAFE_CSS_PROPERTIES = SAFE_CSS_PROPERTIES;

exports.CARD_ELEMENT_STYLE_VARIANTS = CARD_ELEMENT_STYLE_VARIANTS;
const CARD_ELEMENT_STYLE_FONTS_ATTR = 'fonts'; // add others here as union type
const CARD_ELEMENT_STYLE_FONTS_ATTR = 'fonts';
exports.CARD_ELEMENT_STYLE_FONTS_ATTR = CARD_ELEMENT_STYLE_FONTS_ATTR;

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

export declare type FieldErrorType = 'incomplete' | 'invalid';
export declare type ConfigErrorType = 'missing-configuration' | 'missing-permission';
export interface ConfigError {
declare type FieldErrorType = 'incomplete' | 'invalid';
declare type ConfigErrorType = 'missing-configuration' | 'missing-permission' | 'invalid-configuration';
interface ConfigError {
type: ConfigErrorType;
message: string;
}
export interface Targeted {
interface Targeted {
targetId: string;
}
export declare type ListenableKey = 'Escape' | 'Enter';
export interface FieldError {
declare type ListenableKey = 'Escape' | 'Enter';
interface FieldError {
targetId: string;

@@ -18,2 +18,3 @@ type: FieldErrorType;

*/
export declare type Brand = 'visa' | 'mastercard' | 'american-express' | 'discover' | 'diners-club' | 'jcb' | 'unionpay' | 'maestro' | 'elo' | 'hiper' | 'hipercard' | 'mir' | 'unknown';
declare type Brand = 'visa' | 'mastercard' | 'american-express' | 'discover' | 'diners-club' | 'jcb' | 'unionpay' | 'maestro' | 'elo' | 'hiper' | 'hipercard' | 'mir' | 'unknown';
export type { FieldErrorType, ConfigErrorType, ConfigError, Targeted, ListenableKey, FieldError, Brand, };

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