asciify-engine 4.14.2 → 4.16.0
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 +12 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.cts +7 -0
- package/dist/field.d.ts +7 -0
- package/dist/field.js +1 -1
- package/dist/kit.cjs +1 -1
- package/dist/kit.d.cts +10 -1
- package/dist/kit.d.ts +10 -1
- package/dist/kit.js +1 -1
- package/package.json +1 -1
- package/skills/asciify-engine/SKILL.md +2 -2
- package/skills/asciify-engine/references/applying-asciify.md +8 -9
- package/skills/asciify-engine/references/components.md +7 -4
- package/skills/asciify-engine/references/glyph-field.md +1 -0
- package/skills/asciify-engine/references/kit.md +4 -4
package/dist/kit.d.cts
CHANGED
|
@@ -249,7 +249,7 @@ type SkeletonBlock = 'text' | 'photo' | 'avatar';
|
|
|
249
249
|
interface SkeletonOptions extends KitOptions {
|
|
250
250
|
/** Selector for the placeholder blocks inside the element. `data-block` may name the kind (`text`, `photo`, `avatar`); images default to photo. Default `[data-block]`. */
|
|
251
251
|
blocks?: string;
|
|
252
|
-
/** One shimmer
|
|
252
|
+
/** One shimmer pass in ms. The wave loops without a pause until `resolve()`. Default 1400. */
|
|
253
253
|
shimmer?: number;
|
|
254
254
|
/** Each block resolves over this many ms. Default 420. */
|
|
255
255
|
resolve?: number;
|
|
@@ -790,6 +790,15 @@ interface StreamTextOptions extends KitOptions {
|
|
|
790
790
|
onState?: (state: StreamState) => void;
|
|
791
791
|
/** Reasoning lines `reasoning()` keeps in view above the reply; older ones scroll up and fade. Default 2. */
|
|
792
792
|
reasoningLines?: number;
|
|
793
|
+
/**
|
|
794
|
+
* How characters land, set at creation. `flicker`: a glyph cell flickers, then resolves into the letter. `roll`: each
|
|
795
|
+
* character rolls up through glyphs in the text's own font and settles on the crisp letter, like the odometer. Default `flicker`.
|
|
796
|
+
*/
|
|
797
|
+
transition?: 'flicker' | 'roll';
|
|
798
|
+
/** Ms one character rolls under `transition: 'roll'`; each next character starts `stagger` ms later. Default 300. */
|
|
799
|
+
roll?: number;
|
|
800
|
+
/** Glyphs a character rolls through. Default `#%*+=-:`. */
|
|
801
|
+
glyphs?: string;
|
|
793
802
|
}
|
|
794
803
|
interface StreamTextHandle extends KitHandle<StreamTextOptions> {
|
|
795
804
|
/** Appends a token: its characters land as flickering glyph cells that resolve into letters, left to right. */
|
package/dist/kit.d.ts
CHANGED
|
@@ -249,7 +249,7 @@ type SkeletonBlock = 'text' | 'photo' | 'avatar';
|
|
|
249
249
|
interface SkeletonOptions extends KitOptions {
|
|
250
250
|
/** Selector for the placeholder blocks inside the element. `data-block` may name the kind (`text`, `photo`, `avatar`); images default to photo. Default `[data-block]`. */
|
|
251
251
|
blocks?: string;
|
|
252
|
-
/** One shimmer
|
|
252
|
+
/** One shimmer pass in ms. The wave loops without a pause until `resolve()`. Default 1400. */
|
|
253
253
|
shimmer?: number;
|
|
254
254
|
/** Each block resolves over this many ms. Default 420. */
|
|
255
255
|
resolve?: number;
|
|
@@ -790,6 +790,15 @@ interface StreamTextOptions extends KitOptions {
|
|
|
790
790
|
onState?: (state: StreamState) => void;
|
|
791
791
|
/** Reasoning lines `reasoning()` keeps in view above the reply; older ones scroll up and fade. Default 2. */
|
|
792
792
|
reasoningLines?: number;
|
|
793
|
+
/**
|
|
794
|
+
* How characters land, set at creation. `flicker`: a glyph cell flickers, then resolves into the letter. `roll`: each
|
|
795
|
+
* character rolls up through glyphs in the text's own font and settles on the crisp letter, like the odometer. Default `flicker`.
|
|
796
|
+
*/
|
|
797
|
+
transition?: 'flicker' | 'roll';
|
|
798
|
+
/** Ms one character rolls under `transition: 'roll'`; each next character starts `stagger` ms later. Default 300. */
|
|
799
|
+
roll?: number;
|
|
800
|
+
/** Glyphs a character rolls through. Default `#%*+=-:`. */
|
|
801
|
+
glyphs?: string;
|
|
793
802
|
}
|
|
794
803
|
interface StreamTextHandle extends KitHandle<StreamTextOptions> {
|
|
795
804
|
/** Appends a token: its characters land as flickering glyph cells that resolve into letters, left to right. */
|