@stylable/runtime
Advanced tools
Comparing version 5.3.0 to 5.3.1-rc.1
@@ -1,6 +0,4 @@ | ||
import type { Host, StateMap } from './types'; | ||
import type { Host } from './types'; | ||
export { injectCSS, statesRuntime, classesRuntime } from './pure'; | ||
export declare function stylesheet(host?: Host): Required<Pick<Host, "stc" | "sts">>; | ||
declare const sti: ((namespace: string, css: string, depth: number, runtimeId: string) => void) | undefined; | ||
declare const stc: (namespace: string, stateMapping?: StateMap | null | undefined) => string, sts: (namespace: string, context: string | undefined, stateOrClass?: string | StateMap | undefined, ...classes: (string | undefined)[]) => string; | ||
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime }; | ||
//# sourceMappingURL=runtime.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.classesRuntime = exports.statesRuntime = exports.injectCSS = exports.stylesheet = void 0; | ||
const inject_styles_1 = require("./inject-styles"); | ||
exports.stylesheet = exports.classesRuntime = exports.statesRuntime = exports.injectCSS = void 0; | ||
var pure_1 = require("./pure"); | ||
Object.defineProperty(exports, "injectCSS", { enumerable: true, get: function () { return pure_1.injectCSS; } }); | ||
Object.defineProperty(exports, "statesRuntime", { enumerable: true, get: function () { return pure_1.statesRuntime; } }); | ||
Object.defineProperty(exports, "classesRuntime", { enumerable: true, get: function () { return pure_1.classesRuntime; } }); | ||
function stylesheet(host) { | ||
@@ -75,7 +78,2 @@ host = host || {}; | ||
exports.stylesheet = stylesheet; | ||
const { sti } = (0, inject_styles_1.injectStyles)({}); | ||
exports.injectCSS = sti; | ||
const { stc, sts } = stylesheet({}); | ||
exports.statesRuntime = stc; | ||
exports.classesRuntime = sts; | ||
//# sourceMappingURL=runtime.js.map |
@@ -1,6 +0,4 @@ | ||
import type { Host, StateMap } from './types'; | ||
import type { Host } from './types'; | ||
export { injectCSS, statesRuntime, classesRuntime } from './pure'; | ||
export declare function stylesheet(host?: Host): Required<Pick<Host, "stc" | "sts">>; | ||
declare const sti: ((namespace: string, css: string, depth: number, runtimeId: string) => void) | undefined; | ||
declare const stc: (namespace: string, stateMapping?: StateMap | null | undefined) => string, sts: (namespace: string, context: string | undefined, stateOrClass?: string | StateMap | undefined, ...classes: (string | undefined)[]) => string; | ||
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime }; | ||
//# sourceMappingURL=runtime.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { injectStyles } from './inject-styles'; | ||
export { injectCSS, statesRuntime, classesRuntime } from './pure'; | ||
export function stylesheet(host) { | ||
@@ -71,5 +71,2 @@ host = host || {}; | ||
} | ||
const { sti } = injectStyles({}); | ||
const { stc, sts } = stylesheet({}); | ||
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime }; | ||
//# sourceMappingURL=runtime.js.map |
{ | ||
"name": "@stylable/runtime", | ||
"version": "5.3.0", | ||
"version": "5.3.1-rc.1", | ||
"description": "Stylable runtime DOM integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
/* eslint-disable no-var */ | ||
import type { Host, StateMap, StateValue } from './types'; | ||
import { injectStyles } from './inject-styles'; | ||
export { injectCSS, statesRuntime, classesRuntime } from './pure'; | ||
@@ -91,5 +91,1 @@ export function stylesheet(host?: Host) { | ||
} | ||
const { sti } = injectStyles({}); | ||
const { stc, sts } = stylesheet({}); | ||
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime }; |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
133177
87
1725
2