@tenphi/tasty 3.9.0 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/chunks/{debug-C9LeNVoJ.js → debug-CiiHDgmR.js} +2 -2
- package/dist/chunks/{debug-C9LeNVoJ.js.map → debug-CiiHDgmR.js.map} +1 -1
- package/dist/chunks/{react-runtime-O-OUrKLH.js → react-runtime-sH6r6Ajr.js} +2 -2
- package/dist/chunks/{react-runtime-O-OUrKLH.js.map → react-runtime-sH6r6Ajr.js.map} +1 -1
- package/dist/chunks/{runtime-engine-DvnE2g-E.js → runtime-engine-BrRcOZwD.js} +8 -7
- package/dist/chunks/runtime-engine-BrRcOZwD.js.map +1 -0
- package/dist/core/index.js +2 -2
- package/dist/index.js +3 -3
- package/dist/ssr/next.js +1 -1
- package/docs/runtime-benchmarks.md +1 -1
- package/docs/ssr.md +1 -1
- package/package.json +2 -1
- package/dist/chunks/runtime-engine-DvnE2g-E.js.map +0 -1
package/dist/core/index.js
CHANGED
|
@@ -4,6 +4,6 @@ import { C as DEFAULT_NAME_PREFIX, w as DEFAULT_ZERO_NAME_PREFIX } from "../chun
|
|
|
4
4
|
import { A as APPEARANCE_CHUNK_STYLES, B as getGlobalPredefinedStates, F as LAYOUT_CHUNK_STYLES, H as hasStylesGenerated, I as POSITION_CHUNK_STYLES, L as STYLE_TO_CHUNK, M as DIMENSION_CHUNK_STYLES, N as DISPLAY_CHUNK_STYLES, O as styleHandlers, P as FONT_CHUNK_STYLES, V as setGlobalPredefinedStates, _ as POSITION_STYLES, b as renderStyles, c as BLOCK_INNER_STYLES, d as COLOR_STYLES, f as CONTAINER_STYLES, g as OUTER_STYLES, h as INNER_STYLES, j as CHUNK_NAMES, l as BLOCK_OUTER_STYLES, m as FLOW_STYLES, p as DIMENSION_STYLES, r as categorizeStyleKeys, s as BASE_STYLES, u as BLOCK_STYLES, v as TEXT_STYLES, w as defineHandler, x as parseStateKey, z as createStateParserContext } from "../chunks/style-engine-C1ECBZxR.js";
|
|
5
5
|
import { i as generateTypographyTokens } from "../chunks/config-engine-C3pF9EK9.js";
|
|
6
6
|
import { c as getGlobalFunctions, o as getGlobalCounterStyles, s as getGlobalFontFaces } from "../chunks/runtime-state-BTDqSYBk.js";
|
|
7
|
-
import { A as ownKeyframes, B as getNamePrefix, C as holdKeyframes, D as injector, E as injectRawCSS, F as configure, G as resetConfig, H as hasGlobalRecipes, I as getConfig, K as StyleInjector, M as touch, N as ChunkSheetRegistry, O as isPropertyDefined, P as chunkSheetRegistry, Q as resetStyleBatch, R as getGlobalKeyframes, S as getRawCSSText, T as injectGlobal, U as isConfigLocked, V as hasGlobalKeyframes, W as isTestEnvironment, X as hasPendingStyleWrites, Y as flushStyles, _ as fontFace, a as filterBaseProps, b as getCSSText, g as destroy, h as createInjector, i as modAttrs, j as property, k as keyframes, m as counterStyle, o as computeStyles, p as cleanup, q as SheetManager, r as processTokens, s as resolveRecipes, v as func, w as inject, x as getCSSTextForNode, y as gc, z as getGlobalRecipes } from "../chunks/runtime-engine-
|
|
8
|
-
import { t as tastyDebug } from "../chunks/debug-
|
|
7
|
+
import { A as ownKeyframes, B as getNamePrefix, C as holdKeyframes, D as injector, E as injectRawCSS, F as configure, G as resetConfig, H as hasGlobalRecipes, I as getConfig, K as StyleInjector, M as touch, N as ChunkSheetRegistry, O as isPropertyDefined, P as chunkSheetRegistry, Q as resetStyleBatch, R as getGlobalKeyframes, S as getRawCSSText, T as injectGlobal, U as isConfigLocked, V as hasGlobalKeyframes, W as isTestEnvironment, X as hasPendingStyleWrites, Y as flushStyles, _ as fontFace, a as filterBaseProps, b as getCSSText, g as destroy, h as createInjector, i as modAttrs, j as property, k as keyframes, m as counterStyle, o as computeStyles, p as cleanup, q as SheetManager, r as processTokens, s as resolveRecipes, v as func, w as inject, x as getCSSTextForNode, y as gc, z as getGlobalRecipes } from "../chunks/runtime-engine-BrRcOZwD.js";
|
|
8
|
+
import { t as tastyDebug } from "../chunks/debug-CiiHDgmR.js";
|
|
9
9
|
export { APPEARANCE_CHUNK_STYLES, BASE_STYLES, BLOCK_INNER_STYLES, BLOCK_OUTER_STYLES, BLOCK_STYLES, CHUNK_NAMES, COLOR_STYLES, CONTAINER_STYLES, CUSTOM_UNITS, ChunkSheetRegistry, DEFAULT_NAME_PREFIX, DEFAULT_ZERO_NAME_PREFIX, DIMENSION_CHUNK_STYLES, DIMENSION_STYLES, DIRECTIONS, DISPLAY_CHUNK_STYLES, FLOW_STYLES, FONT_CHUNK_STYLES, INNER_STYLES, LAYOUT_CHUNK_STYLES, OUTER_STYLES, POSITION_CHUNK_STYLES, POSITION_STYLES, STYLE_TO_CHUNK, SheetManager, StyleInjector, StyleParser, TEXT_STYLES, categorizeStyleKeys, chunkSheetRegistry, cleanup, color, computeStyles, configure, counterStyle, createColorFunc, createInjector, createStateParserContext, defineHandler, destroy, filterBaseProps, filterMods, flushStyles, fontFace, func, gc, generateTypographyTokens, getCSSText, getCSSTextForNode, getConfig, getGlobalCounterStyles, getGlobalFontFaces, getGlobalFunctions, getGlobalKeyframes, getGlobalParser, getGlobalPredefinedStates, getGlobalPredefinedTokens, getGlobalRecipes, getNamePrefix, getNamedColorHex, getRawCSSText, getRgbValuesFromRgbaString, hasGlobalKeyframes, hasGlobalRecipes, hasPendingStyleWrites, hasStylesGenerated, hexToRgb, holdKeyframes, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, ownKeyframes, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { C as DEFAULT_NAME_PREFIX, w as DEFAULT_ZERO_NAME_PREFIX } from "./chunk
|
|
|
4
4
|
import { A as APPEARANCE_CHUNK_STYLES, B as getGlobalPredefinedStates, F as LAYOUT_CHUNK_STYLES, H as hasStylesGenerated, I as POSITION_CHUNK_STYLES, L as STYLE_TO_CHUNK, M as DIMENSION_CHUNK_STYLES, N as DISPLAY_CHUNK_STYLES, O as styleHandlers, P as FONT_CHUNK_STYLES, V as setGlobalPredefinedStates, _ as POSITION_STYLES, b as renderStyles, c as BLOCK_INNER_STYLES, d as COLOR_STYLES, f as CONTAINER_STYLES, g as OUTER_STYLES, h as INNER_STYLES, j as CHUNK_NAMES, l as BLOCK_OUTER_STYLES, m as FLOW_STYLES, p as DIMENSION_STYLES, r as categorizeStyleKeys, s as BASE_STYLES, u as BLOCK_STYLES, v as TEXT_STYLES, w as defineHandler, x as parseStateKey, z as createStateParserContext } from "./chunks/style-engine-C1ECBZxR.js";
|
|
5
5
|
import { i as generateTypographyTokens } from "./chunks/config-engine-C3pF9EK9.js";
|
|
6
6
|
import { c as getGlobalFunctions, o as getGlobalCounterStyles, s as getGlobalFontFaces } from "./chunks/runtime-state-BTDqSYBk.js";
|
|
7
|
-
import { A as ownKeyframes, B as getNamePrefix, C as holdKeyframes, D as injector, E as injectRawCSS, F as configure, G as resetConfig, H as hasGlobalRecipes, I as getConfig, K as StyleInjector, M as touch, N as ChunkSheetRegistry, O as isPropertyDefined, P as chunkSheetRegistry, Q as resetStyleBatch, R as getGlobalKeyframes, S as getRawCSSText, T as injectGlobal, U as isConfigLocked, V as hasGlobalKeyframes, W as isTestEnvironment, X as hasPendingStyleWrites, Y as flushStyles, _ as fontFace, a as filterBaseProps, b as getCSSText, g as destroy, h as createInjector, i as modAttrs, j as property, k as keyframes, m as counterStyle, o as computeStyles, p as cleanup, q as SheetManager, r as processTokens, s as resolveRecipes, v as func, w as inject, x as getCSSTextForNode, y as gc, z as getGlobalRecipes } from "./chunks/runtime-engine-
|
|
8
|
-
import { t as tastyDebug } from "./chunks/debug-
|
|
7
|
+
import { A as ownKeyframes, B as getNamePrefix, C as holdKeyframes, D as injector, E as injectRawCSS, F as configure, G as resetConfig, H as hasGlobalRecipes, I as getConfig, K as StyleInjector, M as touch, N as ChunkSheetRegistry, O as isPropertyDefined, P as chunkSheetRegistry, Q as resetStyleBatch, R as getGlobalKeyframes, S as getRawCSSText, T as injectGlobal, U as isConfigLocked, V as hasGlobalKeyframes, W as isTestEnvironment, X as hasPendingStyleWrites, Y as flushStyles, _ as fontFace, a as filterBaseProps, b as getCSSText, g as destroy, h as createInjector, i as modAttrs, j as property, k as keyframes, m as counterStyle, o as computeStyles, p as cleanup, q as SheetManager, r as processTokens, s as resolveRecipes, v as func, w as inject, x as getCSSTextForNode, y as gc, z as getGlobalRecipes } from "./chunks/runtime-engine-BrRcOZwD.js";
|
|
8
|
+
import { t as tastyDebug } from "./chunks/debug-CiiHDgmR.js";
|
|
9
9
|
import "./core/index.js";
|
|
10
|
-
import { a as useProperty, c as useGlobalStyles, d as Element, f as tasty, i as useFontFace, l as useStyles, n as useFunction, o as useKeyframes, p as getDisplayName, r as useCounterStyle, s as useRawCSS, t as TastyBatchProvider } from "./chunks/react-runtime-
|
|
10
|
+
import { a as useProperty, c as useGlobalStyles, d as Element, f as tasty, i as useFontFace, l as useStyles, n as useFunction, o as useKeyframes, p as getDisplayName, r as useCounterStyle, s as useRawCSS, t as TastyBatchProvider } from "./chunks/react-runtime-sH6r6Ajr.js";
|
|
11
11
|
export { APPEARANCE_CHUNK_STYLES, BASE_STYLES, BLOCK_INNER_STYLES, BLOCK_OUTER_STYLES, BLOCK_STYLES, CHUNK_NAMES, COLOR_STYLES, CONTAINER_STYLES, CUSTOM_UNITS, ChunkSheetRegistry, DEFAULT_NAME_PREFIX, DEFAULT_ZERO_NAME_PREFIX, DIMENSION_CHUNK_STYLES, DIMENSION_STYLES, DIRECTIONS, DISPLAY_CHUNK_STYLES, Element, FLOW_STYLES, FONT_CHUNK_STYLES, INNER_STYLES, LAYOUT_CHUNK_STYLES, OUTER_STYLES, POSITION_CHUNK_STYLES, POSITION_STYLES, STYLE_TO_CHUNK, SheetManager, StyleInjector, StyleParser, TEXT_STYLES, TastyBatchProvider, categorizeStyleKeys, chunkSheetRegistry, cleanup, color, computeStyles, configure, counterStyle, createColorFunc, createInjector, createStateParserContext, defineHandler, destroy, filterBaseProps, filterMods, flushStyles, fontFace, func, gc, generateTypographyTokens, getCSSText, getCSSTextForNode, getConfig, getDisplayName, getGlobalCounterStyles, getGlobalFontFaces, getGlobalFunctions, getGlobalKeyframes, getGlobalParser, getGlobalPredefinedStates, getGlobalPredefinedTokens, getGlobalRecipes, getNamePrefix, getNamedColorHex, getRawCSSText, getRgbValuesFromRgbaString, hasGlobalKeyframes, hasGlobalRecipes, hasPendingStyleWrites, hasStylesGenerated, hexToRgb, holdKeyframes, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, ownKeyframes, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tasty, tastyDebug, touch, useCounterStyle, useFontFace, useFunction, useGlobalStyles, useKeyframes, useProperty, useRawCSS, useStyles };
|
package/dist/ssr/next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as registerSSRCollectorGetter, u as getRuntimeConfigState } from "../chunks/runtime-state-BTDqSYBk.js";
|
|
3
|
-
import { u as getTastySSRContext } from "../chunks/react-runtime-
|
|
3
|
+
import { u as getTastySSRContext } from "../chunks/react-runtime-sH6r6Ajr.js";
|
|
4
4
|
import { t as ServerStyleCollector } from "../chunks/collector-B0LTHw6Z.js";
|
|
5
5
|
import { t as hydrateTastyClasses } from "../chunks/hydration-TRcz5vnk.js";
|
|
6
6
|
import { Fragment, createElement, useState } from "react";
|
|
@@ -71,7 +71,7 @@ Single-call throughput, three consecutive runs on an Apple M3 Pro with Node
|
|
|
71
71
|
| `parseStyle` — value tokens like `2x 4x` (cold) | 575,000–605,000 | ~1.7 us |
|
|
72
72
|
| `parseStyle` — color tokens (cold) | 1,160,000–1,240,000 | 0.80–0.90 us |
|
|
73
73
|
| `parseStyle` — layered functions (cold) | 175,000–184,000 | 5.4–5.7 us |
|
|
74
|
-
| `parseStyle` — any value (cached) | 29,500,000–30,750,000 |
|
|
74
|
+
| `parseStyle` — any value (cached) | 29,500,000–30,750,000 | ~0.03 us |
|
|
75
75
|
|
|
76
76
|
“Cold” cases use unique inputs to bypass the relevant caches. Cached cases
|
|
77
77
|
reuse one input and measure the LRU hot path. Run-to-run spread on an idle
|
package/docs/ssr.md
CHANGED
|
@@ -506,7 +506,7 @@ const stream = await runWithCollector(collector, () =>
|
|
|
506
506
|
| `@tenphi/tasty/ssr/next-config` | Next.js config wrapper: shared, content-hashed global stylesheet |
|
|
507
507
|
| `@tenphi/tasty/ssr/astro` | Astro: `tastyIntegration`, `tastyMiddleware` |
|
|
508
508
|
| `@tenphi/tasty/ssr/astro-client` | Astro: client-side cache hydration (auto-injected by integration, or import manually) |
|
|
509
|
-
| `@tenphi/tasty/ssr/astro-middleware`<br
|
|
509
|
+
| `@tenphi/tasty/ssr/astro-middleware`<br />`@tenphi/tasty/ssr/astro-middleware-static`<br />`@tenphi/tasty/ssr/astro-middleware-extract`<br />`@tenphi/tasty/ssr/astro-middleware-extract-static` | Astro: the middleware entrypoints `tastyIntegration()` registers via `addMiddleware()`. Exported so Astro can resolve them by specifier; you should not import them. For manual setups use `tastyMiddleware()`. |
|
|
510
510
|
|
|
511
511
|
### `ServerStyleCollector`
|
|
512
512
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/tasty",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"description": "A design-system-integrated styling system and DSL for concise, state-aware UI styling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -304,6 +304,7 @@
|
|
|
304
304
|
"release": "changeset publish",
|
|
305
305
|
"knip": "knip",
|
|
306
306
|
"check:build": "node scripts/check-built-entries.mjs",
|
|
307
|
+
"check:react-compat": "node scripts/check-react-compat.mjs",
|
|
307
308
|
"check:test-only": "node scripts/check-test-only-code.mjs",
|
|
308
309
|
"hygiene": "pnpm lint && pnpm format:check && pnpm typecheck",
|
|
309
310
|
"hygiene:fix": "pnpm lint:fix && pnpm format && pnpm typecheck"
|