@glyphjs/types 0.1.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/LICENSE +21 -0
- package/README.md +36 -0
- package/dist/ast.d.ts +43 -0
- package/dist/ast.d.ts.map +1 -0
- package/dist/block-data.d.ts +64 -0
- package/dist/block-data.d.ts.map +1 -0
- package/dist/container.d.ts +19 -0
- package/dist/container.d.ts.map +1 -0
- package/dist/diagnostic.d.ts +11 -0
- package/dist/diagnostic.d.ts.map +1 -0
- package/dist/graph.d.ts +16 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/ir.d.ts +71 -0
- package/dist/ir.d.ts.map +1 -0
- package/dist/migration.d.ts +7 -0
- package/dist/migration.d.ts.map +1 -0
- package/dist/patch.d.ts +31 -0
- package/dist/patch.d.ts.map +1 -0
- package/dist/plugin.d.ts +38 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/runtime.d.ts +43 -0
- package/dist/runtime.d.ts.map +1 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Glyph JS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @glyphjs/types
|
|
2
|
+
|
|
3
|
+
Shared TypeScript type definitions for the Glyph JS ecosystem.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @glyphjs/types
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import type { GlyphIR, Block, CompilationResult } from '@glyphjs/types';
|
|
15
|
+
|
|
16
|
+
const doc: GlyphIR = {
|
|
17
|
+
version: '0.1',
|
|
18
|
+
documentId: 'doc-1',
|
|
19
|
+
metadata: { title: 'Hello' },
|
|
20
|
+
blocks: [],
|
|
21
|
+
references: [],
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What's included
|
|
26
|
+
|
|
27
|
+
- **IR types** -- `GlyphIR`, `Block`, `Reference`, `CompilationResult`, and related interfaces
|
|
28
|
+
- **AST types** -- `GlyphRoot`, `GlyphUIBlock`, `RawRef` for the parsed markdown AST
|
|
29
|
+
- **Block data types** -- `HeadingData`, `ParagraphData`, `CodeData`, `ListData`, and more
|
|
30
|
+
- **Patch types** -- `GlyphPatch`, `GlyphPatchOperation` for IR diffing/patching
|
|
31
|
+
- **Runtime types** -- `GlyphRuntime`, `GlyphTheme`, `BlockProps`, `GlyphRuntimeConfig`
|
|
32
|
+
- **Plugin types** -- `GlyphComponentDefinition`, `GlyphComponentProps`
|
|
33
|
+
|
|
34
|
+
## Docs
|
|
35
|
+
|
|
36
|
+
https://github.com/VledicFranco/glyphjs
|
package/dist/ast.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SourcePosition } from './ir.js';
|
|
2
|
+
export interface RawRef {
|
|
3
|
+
target: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
sourceAnchor?: string;
|
|
7
|
+
targetAnchor?: string;
|
|
8
|
+
bidirectional?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface GlyphUIBlock {
|
|
11
|
+
type: 'glyphUIBlock';
|
|
12
|
+
componentType: string;
|
|
13
|
+
rawYaml: string;
|
|
14
|
+
parsedData: Record<string, unknown> | null;
|
|
15
|
+
yamlError?: string;
|
|
16
|
+
glyphId?: string;
|
|
17
|
+
refs?: RawRef[];
|
|
18
|
+
position: SourcePosition;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The Glyph AST root node. Extends the standard MDAST Root
|
|
22
|
+
* with GlyphUIBlock nodes mixed into the children array.
|
|
23
|
+
*
|
|
24
|
+
* We use a structural type rather than extending MdastRoot directly
|
|
25
|
+
* to avoid a hard dependency on @types/mdast in this package.
|
|
26
|
+
*/
|
|
27
|
+
export interface GlyphRoot {
|
|
28
|
+
type: 'root';
|
|
29
|
+
children: (GlyphUIBlock | MdastContentNode)[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Represents any standard MDAST content node.
|
|
33
|
+
* This is a loose type — the actual MDAST types are richer,
|
|
34
|
+
* but we only need this for the union in GlyphRoot.
|
|
35
|
+
*/
|
|
36
|
+
export interface MdastContentNode {
|
|
37
|
+
type: string;
|
|
38
|
+
children?: unknown[];
|
|
39
|
+
value?: string;
|
|
40
|
+
position?: SourcePosition;
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=ast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAID,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAID;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,YAAY,GAAG,gBAAgB,CAAC,EAAE,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type InlineNode = {
|
|
2
|
+
type: 'text';
|
|
3
|
+
value: string;
|
|
4
|
+
} | {
|
|
5
|
+
type: 'strong';
|
|
6
|
+
children: InlineNode[];
|
|
7
|
+
} | {
|
|
8
|
+
type: 'emphasis';
|
|
9
|
+
children: InlineNode[];
|
|
10
|
+
} | {
|
|
11
|
+
type: 'delete';
|
|
12
|
+
children: InlineNode[];
|
|
13
|
+
} | {
|
|
14
|
+
type: 'inlineCode';
|
|
15
|
+
value: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'link';
|
|
18
|
+
url: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
children: InlineNode[];
|
|
21
|
+
} | {
|
|
22
|
+
type: 'image';
|
|
23
|
+
src: string;
|
|
24
|
+
alt?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
} | {
|
|
27
|
+
type: 'break';
|
|
28
|
+
};
|
|
29
|
+
export interface HeadingData {
|
|
30
|
+
depth: 1 | 2 | 3 | 4 | 5 | 6;
|
|
31
|
+
children: InlineNode[];
|
|
32
|
+
}
|
|
33
|
+
export interface ParagraphData {
|
|
34
|
+
children: InlineNode[];
|
|
35
|
+
}
|
|
36
|
+
export interface ListData {
|
|
37
|
+
ordered: boolean;
|
|
38
|
+
start?: number;
|
|
39
|
+
items: ListItemData[];
|
|
40
|
+
}
|
|
41
|
+
export interface ListItemData {
|
|
42
|
+
children: InlineNode[];
|
|
43
|
+
subList?: ListData;
|
|
44
|
+
}
|
|
45
|
+
export interface CodeData {
|
|
46
|
+
language?: string;
|
|
47
|
+
value: string;
|
|
48
|
+
meta?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface BlockquoteData {
|
|
51
|
+
children: InlineNode[];
|
|
52
|
+
}
|
|
53
|
+
export interface ImageData {
|
|
54
|
+
src: string;
|
|
55
|
+
alt?: string;
|
|
56
|
+
title?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ThematicBreakData {
|
|
59
|
+
}
|
|
60
|
+
export interface HtmlData {
|
|
61
|
+
value: string;
|
|
62
|
+
}
|
|
63
|
+
export type BlockData = HeadingData | ParagraphData | ListData | CodeData | BlockquoteData | ImageData | ThematicBreakData | HtmlData | Record<string, unknown>;
|
|
64
|
+
//# sourceMappingURL=block-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-data.d.ts","sourceRoot":"","sources":["../src/block-data.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAItB,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,iBAAiB;CAEjC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAID,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,QAAQ,GACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container-width tier resolved from measured pixel width.
|
|
3
|
+
* - `compact`: < 500px — chat sidebars, mobile, narrow panels
|
|
4
|
+
* - `standard`: 500–899px — docs sites, split-pane editors
|
|
5
|
+
* - `wide`: ≥ 900px — dashboards, full-width, presentations
|
|
6
|
+
*/
|
|
7
|
+
export type ContainerTier = 'compact' | 'standard' | 'wide';
|
|
8
|
+
/**
|
|
9
|
+
* Container measurement context injected into every component via props.
|
|
10
|
+
* The runtime measures the document container via ResizeObserver and
|
|
11
|
+
* resolves the tier using hysteresis to prevent layout thrashing.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContainerContext {
|
|
14
|
+
/** Measured container width in CSS pixels. 0 before first measurement. */
|
|
15
|
+
width: number;
|
|
16
|
+
/** Resolved breakpoint tier. Defaults to `'wide'` when width is 0. */
|
|
17
|
+
tier: ContainerTier;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,IAAI,EAAE,aAAa,CAAC;CACrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SourcePosition } from './ir.js';
|
|
2
|
+
export type DiagnosticSource = 'parser' | 'compiler' | 'schema' | 'runtime' | 'plugin';
|
|
3
|
+
export interface Diagnostic {
|
|
4
|
+
severity: 'error' | 'warning' | 'info';
|
|
5
|
+
code: string;
|
|
6
|
+
message: string;
|
|
7
|
+
position?: SourcePosition;
|
|
8
|
+
source: DiagnosticSource;
|
|
9
|
+
details?: unknown;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=diagnostic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../src/diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEvF,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/graph.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GraphNode {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
style?: Record<string, string>;
|
|
6
|
+
group?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GraphEdge {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
cardinality?: '1:1' | '1:N' | 'N:1' | 'N:M';
|
|
14
|
+
style?: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { InlineNode, HeadingData, ParagraphData, ListData, ListItemData, CodeData, BlockquoteData, ImageData, ThematicBreakData, HtmlData, BlockData, } from './block-data.js';
|
|
2
|
+
export type { SourcePosition, BlockType, Block, ReferenceType, Reference, DocumentMetadata, BlockLayoutOverride, LayoutHints, LayoutSemantic, GlyphIR, CompilationResult, } from './ir.js';
|
|
3
|
+
export type { RawRef, GlyphUIBlock, GlyphRoot, MdastContentNode } from './ast.js';
|
|
4
|
+
export type { GlyphPatchOperation, GlyphPatch } from './patch.js';
|
|
5
|
+
export type { IRMigration } from './migration.js';
|
|
6
|
+
export type { DiagnosticSource, Diagnostic } from './diagnostic.js';
|
|
7
|
+
export type { GlyphComponentDefinition, GlyphComponentProps, ComponentType } from './plugin.js';
|
|
8
|
+
export type { GlyphTheme, GlyphThemeContext, BlockProps, AnimationConfig, GlyphRuntimeConfig, GlyphRuntime, } from './runtime.js';
|
|
9
|
+
export type { ContainerTier, ContainerContext } from './container.js';
|
|
10
|
+
export type { GraphNode, GraphEdge } from './graph.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,SAAS,GACV,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,cAAc,EACd,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,OAAO,EACP,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGlF,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGlE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGpE,YAAY,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGhG,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGtE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/ir.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { BlockData } from './block-data.js';
|
|
2
|
+
import type { Diagnostic } from './diagnostic.js';
|
|
3
|
+
export interface SourcePosition {
|
|
4
|
+
start: {
|
|
5
|
+
line: number;
|
|
6
|
+
column: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
};
|
|
9
|
+
end: {
|
|
10
|
+
line: number;
|
|
11
|
+
column: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type BlockType = 'heading' | 'paragraph' | 'list' | 'code' | 'blockquote' | 'thematic-break' | 'image' | 'html' | 'ui:graph' | 'ui:table' | 'ui:chart' | 'ui:relation' | 'ui:timeline' | 'ui:callout' | 'ui:tabs' | 'ui:steps' | 'ui:kpi' | 'ui:accordion' | 'ui:comparison' | 'ui:codediff' | 'ui:flowchart' | 'ui:filetree' | 'ui:sequence' | 'ui:mindmap' | 'ui:equation' | 'ui:quiz' | 'ui:card' | 'ui:infographic' | `ui:${string}`;
|
|
16
|
+
export interface Block {
|
|
17
|
+
id: string;
|
|
18
|
+
type: BlockType;
|
|
19
|
+
data: BlockData;
|
|
20
|
+
position: SourcePosition;
|
|
21
|
+
children?: Block[];
|
|
22
|
+
diagnostics?: Diagnostic[];
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
export type ReferenceType = 'navigates-to' | 'details' | 'depends-on' | 'data-source' | `custom:${string}`;
|
|
26
|
+
export interface Reference {
|
|
27
|
+
id: string;
|
|
28
|
+
type: ReferenceType;
|
|
29
|
+
sourceBlockId: string;
|
|
30
|
+
targetBlockId: string;
|
|
31
|
+
sourceAnchor?: string;
|
|
32
|
+
targetAnchor?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
bidirectional?: boolean;
|
|
35
|
+
unresolved?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface DocumentMetadata {
|
|
38
|
+
title?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
authors?: string[];
|
|
41
|
+
createdAt?: string;
|
|
42
|
+
sourceFile?: string;
|
|
43
|
+
tags?: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface BlockLayoutOverride {
|
|
46
|
+
gridColumn?: string;
|
|
47
|
+
gridRow?: string;
|
|
48
|
+
span?: number;
|
|
49
|
+
}
|
|
50
|
+
export interface LayoutHints {
|
|
51
|
+
mode: 'document' | 'dashboard' | 'presentation';
|
|
52
|
+
columns?: number;
|
|
53
|
+
maxWidth?: string;
|
|
54
|
+
spacing?: 'compact' | 'normal' | 'relaxed';
|
|
55
|
+
blockLayout?: Record<string, BlockLayoutOverride>;
|
|
56
|
+
}
|
|
57
|
+
export type LayoutSemantic = 'top-down' | 'left-right' | 'bottom-up' | 'radial' | 'force';
|
|
58
|
+
export interface GlyphIR {
|
|
59
|
+
version: string;
|
|
60
|
+
id: string;
|
|
61
|
+
metadata: DocumentMetadata;
|
|
62
|
+
blocks: Block[];
|
|
63
|
+
references: Reference[];
|
|
64
|
+
layout: LayoutHints;
|
|
65
|
+
}
|
|
66
|
+
export interface CompilationResult {
|
|
67
|
+
ir: GlyphIR;
|
|
68
|
+
diagnostics: Diagnostic[];
|
|
69
|
+
hasErrors: boolean;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=ir.d.ts.map
|
package/dist/ir.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../src/ir.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../src/migration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIvC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC;CACnC"}
|
package/dist/patch.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Block, DocumentMetadata, LayoutHints, Reference } from './ir.js';
|
|
2
|
+
export type GlyphPatchOperation = {
|
|
3
|
+
op: 'addBlock';
|
|
4
|
+
block: Block;
|
|
5
|
+
afterBlockId?: string;
|
|
6
|
+
} | {
|
|
7
|
+
op: 'removeBlock';
|
|
8
|
+
blockId: string;
|
|
9
|
+
} | {
|
|
10
|
+
op: 'updateBlock';
|
|
11
|
+
blockId: string;
|
|
12
|
+
data: Partial<Block>;
|
|
13
|
+
} | {
|
|
14
|
+
op: 'moveBlock';
|
|
15
|
+
blockId: string;
|
|
16
|
+
afterBlockId?: string;
|
|
17
|
+
} | {
|
|
18
|
+
op: 'addReference';
|
|
19
|
+
reference: Reference;
|
|
20
|
+
} | {
|
|
21
|
+
op: 'removeReference';
|
|
22
|
+
referenceId: string;
|
|
23
|
+
} | {
|
|
24
|
+
op: 'updateMetadata';
|
|
25
|
+
metadata: Partial<DocumentMetadata>;
|
|
26
|
+
} | {
|
|
27
|
+
op: 'updateLayout';
|
|
28
|
+
layout: Partial<LayoutHints>;
|
|
29
|
+
};
|
|
30
|
+
export type GlyphPatch = GlyphPatchOperation[];
|
|
31
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../src/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI/E,MAAM,MAAM,mBAAmB,GAC3B;IAAE,EAAE,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GACvD;IAAE,EAAE,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,EAAE,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;CAAE,GAC5D;IAAE,EAAE,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,EAAE,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,GAC5C;IAAE,EAAE,EAAE,iBAAiB,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC9C;IAAE,EAAE,EAAE,gBAAgB,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;CAAE,GAC7D;IAAE,EAAE,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,mBAAmB,EAAE,CAAC"}
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Block, LayoutHints, Reference } from './ir.js';
|
|
2
|
+
import type { GlyphThemeContext } from './runtime.js';
|
|
3
|
+
import type { ContainerContext } from './container.js';
|
|
4
|
+
/**
|
|
5
|
+
* Definition for a Glyph UI component plugin.
|
|
6
|
+
* The `schema` field uses Zod but is typed loosely here to avoid
|
|
7
|
+
* a hard dependency on zod in this type-only package.
|
|
8
|
+
*/
|
|
9
|
+
export interface GlyphComponentDefinition<T = unknown> {
|
|
10
|
+
type: `ui:${string}`;
|
|
11
|
+
schema: {
|
|
12
|
+
parse: (data: unknown) => T;
|
|
13
|
+
safeParse: (data: unknown) => {
|
|
14
|
+
success: boolean;
|
|
15
|
+
data?: T;
|
|
16
|
+
error?: unknown;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
render: ComponentType<GlyphComponentProps<T>>;
|
|
20
|
+
themeDefaults?: Record<string, string>;
|
|
21
|
+
dependencies?: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface GlyphComponentProps<T = unknown> {
|
|
24
|
+
data: T;
|
|
25
|
+
block: Block;
|
|
26
|
+
outgoingRefs: Reference[];
|
|
27
|
+
incomingRefs: Reference[];
|
|
28
|
+
onNavigate: (ref: Reference) => void;
|
|
29
|
+
theme: GlyphThemeContext;
|
|
30
|
+
layout: LayoutHints;
|
|
31
|
+
container: ContainerContext;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Minimal React component type to avoid depending on @types/react.
|
|
35
|
+
* Compatible with React.ComponentType<P>.
|
|
36
|
+
*/
|
|
37
|
+
export type ComponentType<P = {}> = ((props: P) => unknown) | (new (props: P) => unknown);
|
|
38
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC,GAAG,OAAO;IACnD,IAAI,EAAE,MAAM,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,CAAC,CAAC;QAC5B,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAAC,KAAK,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC;KAC/E,CAAC;IACF,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,OAAO;IAC9C,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED;;;GAGG;AAEH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Block, GlyphIR, LayoutHints, Reference } from './ir.js';
|
|
2
|
+
import type { Diagnostic } from './diagnostic.js';
|
|
3
|
+
import type { ComponentType, GlyphComponentDefinition } from './plugin.js';
|
|
4
|
+
export interface GlyphTheme {
|
|
5
|
+
name: string;
|
|
6
|
+
variables: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export interface GlyphThemeContext {
|
|
9
|
+
name: string;
|
|
10
|
+
resolveVar: (varName: string) => string;
|
|
11
|
+
isDark: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface BlockProps {
|
|
14
|
+
block: Block;
|
|
15
|
+
layout: LayoutHints;
|
|
16
|
+
}
|
|
17
|
+
export interface AnimationConfig {
|
|
18
|
+
/** Whether animations are enabled. Defaults to `true`. */
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
/** Base duration in milliseconds. Defaults to `300`. */
|
|
21
|
+
duration?: number;
|
|
22
|
+
/** CSS easing function. Defaults to `'ease-out'`. */
|
|
23
|
+
easing?: string;
|
|
24
|
+
/** Stagger delay between consecutive blocks in milliseconds. Defaults to `50`. */
|
|
25
|
+
staggerDelay?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface GlyphRuntimeConfig {
|
|
28
|
+
components?: GlyphComponentDefinition[];
|
|
29
|
+
overrides?: Partial<Record<string, ComponentType<BlockProps>>>;
|
|
30
|
+
theme?: 'light' | 'dark' | GlyphTheme;
|
|
31
|
+
animation?: AnimationConfig;
|
|
32
|
+
onDiagnostic?: (diagnostic: Diagnostic) => void;
|
|
33
|
+
onNavigate?: (ref: Reference, targetBlock: Block) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface GlyphRuntime {
|
|
36
|
+
GlyphDocument: ComponentType<{
|
|
37
|
+
ir: GlyphIR;
|
|
38
|
+
className?: string;
|
|
39
|
+
}>;
|
|
40
|
+
registerComponent(definition: GlyphComponentDefinition): void;
|
|
41
|
+
setTheme(theme: 'light' | 'dark' | GlyphTheme): void;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAI3E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;CACrB;AAID,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC/D,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACtC,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,KAAK,IAAI,CAAC;CAC3D;AAID,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,iBAAiB,CAAC,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC9D,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC;CACtD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@glyphjs/types",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared TypeScript type definitions for Glyph JS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Vledic Franco",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/VledicFranco/glyphjs.git",
|
|
23
|
+
"directory": "packages/types"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/VledicFranco/glyphjs#readme",
|
|
26
|
+
"bugs": "https://github.com/VledicFranco/glyphjs/issues",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"glyph",
|
|
29
|
+
"glyphjs",
|
|
30
|
+
"markdown",
|
|
31
|
+
"react",
|
|
32
|
+
"ui-components",
|
|
33
|
+
"interactive-documents",
|
|
34
|
+
"typescript",
|
|
35
|
+
"types"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc --emitDeclarationOnly --outDir dist",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"lint": "eslint src/",
|
|
42
|
+
"clean": "rm -rf dist .turbo"
|
|
43
|
+
}
|
|
44
|
+
}
|