@uione/compiler 0.6.9 → 0.6.11
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/index.d.ts +1 -1
- package/dist/one.wasm +0 -0
- package/dist/project.d.ts +35 -0
- package/dist/project.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Built, Checked, Definition, Files, Shown } from "./project.js";
|
|
2
|
-
export type { Built, Checked, Definition, Files, GeneratedFile, Outline, OutlinedEnvironment, OutlinedSetting, Problem, Shown, ShownFile, Source } from "./project.js";
|
|
2
|
+
export type { Built, Checked, Definition, Files, GeneratedFile, Outline, OutlinedEnvironment, OutlinedItem, OutlinedScreen, OutlinedSetting, OutlinedTable, Problem, Shown, ShownFile, Source } from "./project.js";
|
|
3
3
|
export interface Compiler {
|
|
4
4
|
version(): Promise<string>;
|
|
5
5
|
check(files: Files): Promise<Checked>;
|
package/dist/one.wasm
CHANGED
|
Binary file
|
package/dist/project.d.ts
CHANGED
|
@@ -34,6 +34,40 @@ export interface Outline {
|
|
|
34
34
|
settings: OutlinedSetting[];
|
|
35
35
|
environments: OutlinedEnvironment[];
|
|
36
36
|
}
|
|
37
|
+
export interface OutlinedItem {
|
|
38
|
+
kind: string;
|
|
39
|
+
subject: string;
|
|
40
|
+
label: string;
|
|
41
|
+
line: number;
|
|
42
|
+
items: OutlinedItem[];
|
|
43
|
+
table: OutlinedTable | null;
|
|
44
|
+
}
|
|
45
|
+
export interface OutlinedTable {
|
|
46
|
+
columns: {
|
|
47
|
+
value: string;
|
|
48
|
+
label: string | null;
|
|
49
|
+
when: string;
|
|
50
|
+
line: number;
|
|
51
|
+
}[];
|
|
52
|
+
rows: {
|
|
53
|
+
name: string;
|
|
54
|
+
choices: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
by: string;
|
|
57
|
+
search: string[];
|
|
58
|
+
sort: string;
|
|
59
|
+
page: number;
|
|
60
|
+
link: string;
|
|
61
|
+
}
|
|
62
|
+
export interface OutlinedScreen {
|
|
63
|
+
path: string;
|
|
64
|
+
title: string;
|
|
65
|
+
route: string;
|
|
66
|
+
line: number;
|
|
67
|
+
layout: string;
|
|
68
|
+
layoutLine: number;
|
|
69
|
+
items: OutlinedItem[];
|
|
70
|
+
}
|
|
37
71
|
export type Definition = {
|
|
38
72
|
found: false;
|
|
39
73
|
} | {
|
|
@@ -50,6 +84,7 @@ export interface Checked {
|
|
|
50
84
|
problems: Problem[];
|
|
51
85
|
files: number;
|
|
52
86
|
project: Outline | null;
|
|
87
|
+
screens: OutlinedScreen[];
|
|
53
88
|
}
|
|
54
89
|
export interface Built {
|
|
55
90
|
problems: Problem[];
|
package/dist/project.js
CHANGED
|
@@ -10,6 +10,8 @@ export function run(one, request) {
|
|
|
10
10
|
const checked = within(call("one_check", project));
|
|
11
11
|
if (checked.project)
|
|
12
12
|
checked.project.path = inside(checked.project.path);
|
|
13
|
+
for (const screen of checked.screens)
|
|
14
|
+
screen.path = inside(screen.path);
|
|
13
15
|
return checked;
|
|
14
16
|
}
|
|
15
17
|
if (request.kind === "define") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uione/compiler",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"description": "The uione compiler, built for the browser and run in a Web Worker: check a project, build it, and see what each line becomes.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"author": "Daher Alfawares",
|