@stylable/runtime
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -5,2 +5,3 @@ export { $, RuntimeRenderer } from './css-runtime-renderer'; | ||
export { DOMListRenderer, createDOMListRenderer } from './keyed-list-renderer'; | ||
export * from './runtime'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -13,2 +27,3 @@ exports.createDOMListRenderer = exports.createRenderable = exports.create = exports.RuntimeRenderer = exports.$ = void 0; | ||
Object.defineProperty(exports, "createDOMListRenderer", { enumerable: true, get: function () { return keyed_list_renderer_1.createDOMListRenderer; } }); | ||
__exportStar(require("./runtime"), exports); | ||
//# sourceMappingURL=index.js.map |
import type { Host } from './types'; | ||
export declare function injectStyles(host: Host): void; | ||
export declare function injectStyles(host: Host): Host; | ||
//# sourceMappingURL=inject-styles.d.ts.map |
@@ -46,4 +46,5 @@ "use strict"; | ||
host.sti = stylableRuntime; | ||
return host; | ||
} | ||
exports.injectStyles = injectStyles; | ||
//# sourceMappingURL=inject-styles.js.map |
@@ -1,3 +0,6 @@ | ||
import type { Host } from './types'; | ||
import type { Host, StateMap } from './types'; | ||
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.stylesheet = void 0; | ||
exports.classesRuntime = exports.statesRuntime = exports.injectCSS = exports.stylesheet = void 0; | ||
const inject_styles_1 = require("./inject-styles"); | ||
function stylesheet(host) { | ||
@@ -74,2 +75,7 @@ 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 |
@@ -5,2 +5,3 @@ export { $, RuntimeRenderer } from './css-runtime-renderer'; | ||
export { DOMListRenderer, createDOMListRenderer } from './keyed-list-renderer'; | ||
export * from './runtime'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,3 @@ export { $, RuntimeRenderer } from './css-runtime-renderer'; | ||
export { createDOMListRenderer } from './keyed-list-renderer'; | ||
export * from './runtime'; | ||
//# sourceMappingURL=index.js.map |
import type { Host } from './types'; | ||
export declare function injectStyles(host: Host): void; | ||
export declare function injectStyles(host: Host): Host; | ||
//# sourceMappingURL=inject-styles.d.ts.map |
@@ -43,3 +43,4 @@ export function injectStyles(host) { | ||
host.sti = stylableRuntime; | ||
return host; | ||
} | ||
//# sourceMappingURL=inject-styles.js.map |
@@ -1,3 +0,6 @@ | ||
import type { Host } from './types'; | ||
import type { Host, StateMap } from './types'; | ||
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 |
@@ -0,1 +1,2 @@ | ||
import { injectStyles } from './inject-styles'; | ||
export function stylesheet(host) { | ||
@@ -70,2 +71,5 @@ 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.1.0", | ||
"version": "5.2.0", | ||
"description": "Stylable runtime DOM integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -18,1 +18,2 @@ export { $, RuntimeRenderer } from './css-runtime-renderer'; | ||
export { DOMListRenderer, createDOMListRenderer } from './keyed-list-renderer'; | ||
export * from './runtime'; |
@@ -47,2 +47,3 @@ /* eslint-disable no-var */ | ||
host.sti = stylableRuntime; | ||
return host; | ||
} |
/* eslint-disable no-var */ | ||
import type { Host, StateMap, StateValue } from './types'; | ||
import { injectStyles } from './inject-styles'; | ||
@@ -90,1 +91,5 @@ 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
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
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
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
116283
1445