@lumel/ai-schema-host 1.0.0 → 1.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/dist/compiler/AISchemaCompiler.d.ts +1 -1
- package/dist/compiler/AISchemaCompiler.js +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +50 -5
- package/dist/knowledge/base.json +106 -0
- package/dist/knowledge/chart.json +265 -0
- package/dist/knowledge/index.d.ts +10 -0
- package/dist/knowledge/index.js +41 -0
- package/dist/{knowledge.json → knowledge/visual.json} +124 -222
- package/dist/schemaTypes/AiSchema.type.d.ts +10 -2
- package/dist/schemaTypes/AiSchema.type.js +4 -0
- package/dist/schemaTypes/visualStateSchema/BoxSchema/boxSchema.type.d.ts +29 -0
- package/dist/schemaTypes/visualStateSchema/BoxSchema/boxSchema.type.js +14 -0
- package/dist/schemaTypes/visualStateSchema/ChartSchema/chartSchema.type.d.ts +129 -17
- package/dist/schemaTypes/visualStateSchema/NavigatorSchema/navigatorSchema.type.d.ts +26 -0
- package/dist/schemaTypes/visualStateSchema/NavigatorSchema/navigatorSchema.type.js +12 -0
- package/dist/schemaTypes/visualStateSchema/ShapeSchema/shapeSchema.type.d.ts +35 -0
- package/dist/schemaTypes/visualStateSchema/ShapeSchema/shapeSchema.type.js +12 -0
- package/dist/schemaTypes/visualStateSchema/TextSchema/textSchema.type.d.ts +13 -0
- package/dist/schemaTypes/visualStateSchema/TextSchema/textSchema.type.js +11 -0
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Navigator** visual
|
|
3
|
+
* (runtime-input element: navigator button / bookmark tabs / page tabs).
|
|
4
|
+
*
|
|
5
|
+
* v1 exposes the navigator kind and the button action. The field-map driven compiler
|
|
6
|
+
* in `editable-app` (`modules/AiSchema/native/compilers/navigatorAiSchemaCompiler.ts`)
|
|
7
|
+
* maps these to the navigator store (`INavigatorState`). Per-state styling and tab
|
|
8
|
+
* layout are intentionally deferred.
|
|
9
|
+
*/
|
|
10
|
+
export interface INavigatorSchema {
|
|
11
|
+
schemaVersion?: number;
|
|
12
|
+
/** Navigator kind. */
|
|
13
|
+
type?: 'NAVIGATOR_BUTTON' | 'BOOKMARK_TABS' | 'PAGE_NAVIGATOR_TABS';
|
|
14
|
+
/** Button behaviour (applies to the NAVIGATOR_BUTTON kind). */
|
|
15
|
+
button?: {
|
|
16
|
+
action?: 'NONE' | 'BACK' | 'WEB_URL' | 'PAGE_NAVIGATION' | 'BOOKMARK_NAVIGATION' | 'CLEAR_SLICER' | 'APPLY_SLICER' | 'DRILL_THROUGH' | 'VARIABLE';
|
|
17
|
+
/** Target URL when `action` is `WEB_URL`. */
|
|
18
|
+
webUrl?: string;
|
|
19
|
+
/** Target bookmark id when `action` is `BOOKMARK_NAVIGATION`. */
|
|
20
|
+
bookmarkId?: string;
|
|
21
|
+
/** Target page id when `action` is `PAGE_NAVIGATION`. */
|
|
22
|
+
pageDestinationId?: string;
|
|
23
|
+
/** Target variable id when `action` is `VARIABLE`. */
|
|
24
|
+
variableId?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Navigator** visual
|
|
3
|
+
* (runtime-input element: navigator button / bookmark tabs / page tabs).
|
|
4
|
+
*
|
|
5
|
+
* v1 exposes the navigator kind and the button action. The field-map driven compiler
|
|
6
|
+
* in `editable-app` (`modules/AiSchema/native/compilers/navigatorAiSchemaCompiler.ts`)
|
|
7
|
+
* maps these to the navigator store (`INavigatorState`). Per-state styling and tab
|
|
8
|
+
* layout are intentionally deferred.
|
|
9
|
+
*/ "use strict";
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Shape** visual.
|
|
3
|
+
*
|
|
4
|
+
* v1 exposes the universally useful styling sections (fill, border, shadow, tooltip).
|
|
5
|
+
* The field-map driven compiler in `editable-app`
|
|
6
|
+
* (`modules/AiSchema/native/compilers/shapeAiSchemaCompiler.ts`) maps these to the
|
|
7
|
+
* shape store (`IShapeStyles`). Shape geometry (`shapeType`), text-on-shape, icon,
|
|
8
|
+
* action, and other sections are intentionally deferred.
|
|
9
|
+
*/
|
|
10
|
+
export interface IShapeSchema {
|
|
11
|
+
schemaVersion?: number;
|
|
12
|
+
/** Background fill. */
|
|
13
|
+
fill?: {
|
|
14
|
+
color?: string;
|
|
15
|
+
show?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Outline. */
|
|
18
|
+
border?: {
|
|
19
|
+
color?: string;
|
|
20
|
+
width?: number;
|
|
21
|
+
style?: 'solid' | 'dotted' | 'dashed';
|
|
22
|
+
show?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Drop shadow. */
|
|
25
|
+
shadow?: {
|
|
26
|
+
color?: string;
|
|
27
|
+
blur?: number;
|
|
28
|
+
show?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** Hover tooltip. */
|
|
31
|
+
tooltip?: {
|
|
32
|
+
content?: string;
|
|
33
|
+
show?: boolean;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Shape** visual.
|
|
3
|
+
*
|
|
4
|
+
* v1 exposes the universally useful styling sections (fill, border, shadow, tooltip).
|
|
5
|
+
* The field-map driven compiler in `editable-app`
|
|
6
|
+
* (`modules/AiSchema/native/compilers/shapeAiSchemaCompiler.ts`) maps these to the
|
|
7
|
+
* shape store (`IShapeStyles`). Shape geometry (`shapeType`), text-on-shape, icon,
|
|
8
|
+
* action, and other sections are intentionally deferred.
|
|
9
|
+
*/ "use strict";
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Text** visual (rich-text element).
|
|
3
|
+
*
|
|
4
|
+
* v1 exposes the text content only. Character styling (font, color, bold, ...) lives in
|
|
5
|
+
* the selection-scoped `textStyleStore` and is applied through the Lexical editor, not a
|
|
6
|
+
* plain state write, so it is intentionally deferred — see the compiler in `editable-app`
|
|
7
|
+
* (`modules/AiSchema/native/compilers/textAiSchemaCompiler.ts`).
|
|
8
|
+
*/
|
|
9
|
+
export interface ITextSchema {
|
|
10
|
+
schemaVersion?: number;
|
|
11
|
+
/** Plain-text content of the element. */
|
|
12
|
+
content?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated AI schema contract for the native **Text** visual (rich-text element).
|
|
3
|
+
*
|
|
4
|
+
* v1 exposes the text content only. Character styling (font, color, bold, ...) lives in
|
|
5
|
+
* the selection-scoped `textStyleStore` and is applied through the Lexical editor, not a
|
|
6
|
+
* plain state write, so it is intentionally deferred — see the compiler in `editable-app`
|
|
7
|
+
* (`modules/AiSchema/native/compilers/textAiSchemaCompiler.ts`).
|
|
8
|
+
*/ "use strict";
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
package/dist/types.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export interface SchemaOperationList {
|
|
|
61
61
|
operations: SchemaOperation[];
|
|
62
62
|
}
|
|
63
63
|
export type TKbScope = 'base' | 'visual';
|
|
64
|
-
export type TKbVisualType = 'COMMON' | 'CHART' | 'MATRIX' | 'SUPER_FILTER' | 'SECONDARY_VISUAL';
|
|
64
|
+
export type TKbVisualType = 'COMMON' | 'CHART' | 'MATRIX' | 'SUPER_FILTER' | 'SECONDARY_VISUAL' | 'BOX' | 'SHAPE' | 'NAVIGATOR' | 'TEXT';
|
|
65
65
|
export interface IKbUpdatePattern {
|
|
66
66
|
intent: string;
|
|
67
67
|
patch: Record<string, unknown>;
|