@klarkxy/dsh-deep-view 0.0.0-stage → 0.2.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 +201 -0
- package/NOTICE +23 -0
- package/README.md +25 -2
- package/cordis.patch.yml +5 -0
- package/docs/README.zh-CN.md +26 -0
- package/icon.svg +6 -0
- package/lib/answer-text.d.ts +15 -0
- package/lib/answer-text.js +110 -0
- package/lib/answer-text.js.map +1 -0
- package/lib/answers.d.ts +49 -0
- package/lib/answers.js +60 -0
- package/lib/answers.js.map +1 -0
- package/lib/client.inner.cjs +3423 -0
- package/lib/client.inner.cjs.map +1 -0
- package/lib/client.js +3432 -0
- package/lib/contracts.d.ts +2 -0
- package/lib/contracts.js +12 -0
- package/lib/contracts.js.map +1 -0
- package/lib/contracts2.d.ts +103 -0
- package/lib/copy.d.ts +37 -0
- package/lib/copy.js +69 -0
- package/lib/copy.js.map +1 -0
- package/lib/core.d.ts +57 -0
- package/lib/core.js +2 -0
- package/lib/core2.js +1079 -0
- package/lib/core2.js.map +1 -0
- package/lib/index.d.ts +104 -0
- package/lib/index.js +1153 -0
- package/lib/index.js.map +1 -0
- package/lib/widget.d.ts +71 -0
- package/lib/widget.js +1365 -0
- package/lib/widget.js.map +1 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +152 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as ViewPresentation, a as PLUGIN_NAME, c as RpcResult, d as VIEW_OWNER, f as Value, g as ViewNode, h as ViewFailure, i as HOST_SERVICE, l as Scalar, m as ViewAnswerMetadata, n as DeepViewHost, o as PendingView, p as ViewAnswer, r as Formula, s as RPC_CHANNEL, t as ChoiceOption, u as ShownView, v as isRecord } from "./contracts2.js";
|
|
2
|
+
export { ChoiceOption, DeepViewHost, Formula, HOST_SERVICE, PLUGIN_NAME, PendingView, RPC_CHANNEL, RpcResult, Scalar, ShownView, VIEW_OWNER, Value, ViewAnswer, ViewAnswerMetadata, ViewFailure, ViewNode, ViewPresentation, isRecord };
|
package/lib/contracts.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/contracts.ts
|
|
2
|
+
const PLUGIN_NAME = "@klarkxy/dsh-deep-view";
|
|
3
|
+
const RPC_CHANNEL = "/dsh-deep-view";
|
|
4
|
+
const VIEW_OWNER = "dsh-deep-view";
|
|
5
|
+
const HOST_SERVICE = "dshDeepView";
|
|
6
|
+
function isRecord(value) {
|
|
7
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { HOST_SERVICE, PLUGIN_NAME, RPC_CHANNEL, VIEW_OWNER, isRecord };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","names":[],"sources":["../src/contracts.ts"],"sourcesContent":["import type { RpcResult as SharedRpcResult } from '@klarkxy/dsh-plugin-kit/contracts'\nexport type RpcResult<T = unknown> = SharedRpcResult<T>\nexport const PLUGIN_NAME = '@klarkxy/dsh-deep-view'\nexport const RPC_CHANNEL = '/dsh-deep-view'\nexport const VIEW_OWNER = 'dsh-deep-view'\nexport const HOST_SERVICE = 'dshDeepView'\nexport type DeepViewHost = {\n /** Move an open card and route stale session lookups to a replacement root session. */\n handoffSession(fromSessionId: string, toSessionId: string): boolean\n}\n\nexport type Scalar = string | number | boolean\nexport type Formula = { '=': string }\nexport type Value = Scalar | Formula\nexport type ChoiceOption = { label: string; value?: Scalar }\nexport type ViewNode = {\n type: 'stack' | 'row' | 'text' | 'metric' | 'table' | 'chart' | 'progress' | 'callout' | 'sources'\n | 'slider' | 'number' | 'choice' | 'toggle' | 'options' | 'confirm' | 'form' | 'submit'\n id?: string\n children?: ViewNode[]\n let?: Record<string, string>\n text?: Value\n label?: string\n value?: Value\n tone?: Value\n caption?: Value\n columns?: { key: string; label: string }[]\n rows?: Value[][]\n kind?: 'bar' | 'hbar' | 'line' | 'area' | 'donut'\n categories?: Scalar[]\n series?: { name?: string; values: (number | Formula)[] }[]\n unit?: string\n percent?: Value\n max?: Value\n valueLabel?: Value\n items?: { label: string; url: string }[]\n min?: number\n step?: number\n options?: ChoiceOption[] | { label: string; description?: string }[]\n multi?: boolean\n confirmLabel?: string\n cancelLabel?: string\n fields?: { id: string; label: string; placeholder?: string }[]\n submitLabel?: string\n}\nexport type ShownView = { title: string; view: ViewNode; interactive: boolean }\nexport type ViewFailure = { error: string }\nexport type PendingView = { id: string; sessionId: string; callId?: string; title: string; view: ViewNode }\nexport type ViewAnswer = { id: string; action: string; values: Record<string, unknown> }\n/** Stored on the same user message as its readable answer, outside model text. */\nexport type ViewAnswerMetadata = { owner: typeof VIEW_OWNER; version: 1; answer: ViewAnswer }\nexport type ViewPresentation = {\n owner: typeof VIEW_OWNER\n viewId?: string\n title: string\n view: ViewNode\n interactive: boolean\n awaitReply: boolean\n}\nexport function isRecord(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n}\n"],"mappings":";AAEA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,eAAe;AAsD5B,SAAgB,SAAS,OAAkD;CACzE,OAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK;AAC5E"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { RpcResult } from "@klarkxy/dsh-plugin-kit/contracts";
|
|
2
|
+
//#region src/contracts.d.ts
|
|
3
|
+
type RpcResult$1<T = unknown> = RpcResult<T>;
|
|
4
|
+
declare const PLUGIN_NAME = "@klarkxy/dsh-deep-view";
|
|
5
|
+
declare const RPC_CHANNEL = "/dsh-deep-view";
|
|
6
|
+
declare const VIEW_OWNER = "dsh-deep-view";
|
|
7
|
+
declare const HOST_SERVICE = "dshDeepView";
|
|
8
|
+
type DeepViewHost = {
|
|
9
|
+
/** Move an open card and route stale session lookups to a replacement root session. */
|
|
10
|
+
handoffSession(fromSessionId: string, toSessionId: string): boolean;
|
|
11
|
+
};
|
|
12
|
+
type Scalar = string | number | boolean;
|
|
13
|
+
type Formula = {
|
|
14
|
+
'=': string;
|
|
15
|
+
};
|
|
16
|
+
type Value = Scalar | Formula;
|
|
17
|
+
type ChoiceOption = {
|
|
18
|
+
label: string;
|
|
19
|
+
value?: Scalar;
|
|
20
|
+
};
|
|
21
|
+
type ViewNode = {
|
|
22
|
+
type: 'stack' | 'row' | 'text' | 'metric' | 'table' | 'chart' | 'progress' | 'callout' | 'sources' | 'slider' | 'number' | 'choice' | 'toggle' | 'options' | 'confirm' | 'form' | 'submit';
|
|
23
|
+
id?: string;
|
|
24
|
+
children?: ViewNode[];
|
|
25
|
+
let?: Record<string, string>;
|
|
26
|
+
text?: Value;
|
|
27
|
+
label?: string;
|
|
28
|
+
value?: Value;
|
|
29
|
+
tone?: Value;
|
|
30
|
+
caption?: Value;
|
|
31
|
+
columns?: {
|
|
32
|
+
key: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
rows?: Value[][];
|
|
36
|
+
kind?: 'bar' | 'hbar' | 'line' | 'area' | 'donut';
|
|
37
|
+
categories?: Scalar[];
|
|
38
|
+
series?: {
|
|
39
|
+
name?: string;
|
|
40
|
+
values: (number | Formula)[];
|
|
41
|
+
}[];
|
|
42
|
+
unit?: string;
|
|
43
|
+
percent?: Value;
|
|
44
|
+
max?: Value;
|
|
45
|
+
valueLabel?: Value;
|
|
46
|
+
items?: {
|
|
47
|
+
label: string;
|
|
48
|
+
url: string;
|
|
49
|
+
}[];
|
|
50
|
+
min?: number;
|
|
51
|
+
step?: number;
|
|
52
|
+
options?: ChoiceOption[] | {
|
|
53
|
+
label: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
}[];
|
|
56
|
+
multi?: boolean;
|
|
57
|
+
confirmLabel?: string;
|
|
58
|
+
cancelLabel?: string;
|
|
59
|
+
fields?: {
|
|
60
|
+
id: string;
|
|
61
|
+
label: string;
|
|
62
|
+
placeholder?: string;
|
|
63
|
+
}[];
|
|
64
|
+
submitLabel?: string;
|
|
65
|
+
};
|
|
66
|
+
type ShownView = {
|
|
67
|
+
title: string;
|
|
68
|
+
view: ViewNode;
|
|
69
|
+
interactive: boolean;
|
|
70
|
+
};
|
|
71
|
+
type ViewFailure = {
|
|
72
|
+
error: string;
|
|
73
|
+
};
|
|
74
|
+
type PendingView = {
|
|
75
|
+
id: string;
|
|
76
|
+
sessionId: string;
|
|
77
|
+
callId?: string;
|
|
78
|
+
title: string;
|
|
79
|
+
view: ViewNode;
|
|
80
|
+
};
|
|
81
|
+
type ViewAnswer = {
|
|
82
|
+
id: string;
|
|
83
|
+
action: string;
|
|
84
|
+
values: Record<string, unknown>;
|
|
85
|
+
};
|
|
86
|
+
/** Stored on the same user message as its readable answer, outside model text. */
|
|
87
|
+
type ViewAnswerMetadata = {
|
|
88
|
+
owner: typeof VIEW_OWNER;
|
|
89
|
+
version: 1;
|
|
90
|
+
answer: ViewAnswer;
|
|
91
|
+
};
|
|
92
|
+
type ViewPresentation = {
|
|
93
|
+
owner: typeof VIEW_OWNER;
|
|
94
|
+
viewId?: string;
|
|
95
|
+
title: string;
|
|
96
|
+
view: ViewNode;
|
|
97
|
+
interactive: boolean;
|
|
98
|
+
awaitReply: boolean;
|
|
99
|
+
};
|
|
100
|
+
declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
101
|
+
//#endregion
|
|
102
|
+
export { ViewPresentation as _, PLUGIN_NAME as a, RpcResult$1 as c, VIEW_OWNER as d, Value as f, ViewNode as g, ViewFailure as h, HOST_SERVICE as i, Scalar as l, ViewAnswerMetadata as m, DeepViewHost as n, PendingView as o, ViewAnswer as p, Formula as r, RPC_CHANNEL as s, ChoiceOption as t, ShownView as u, isRecord as v };
|
|
103
|
+
//# sourceMappingURL=contracts2.d.ts.map
|
package/lib/copy.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/copy.d.ts
|
|
2
|
+
declare const uiZh: {
|
|
3
|
+
copy: string;
|
|
4
|
+
copied: string;
|
|
5
|
+
footnotes: string;
|
|
6
|
+
code: string;
|
|
7
|
+
wrap: string;
|
|
8
|
+
unwrap: string;
|
|
9
|
+
prepared: string;
|
|
10
|
+
preparing: string;
|
|
11
|
+
error: string;
|
|
12
|
+
invalid: string;
|
|
13
|
+
local: string;
|
|
14
|
+
answerFailed: string;
|
|
15
|
+
chart: string;
|
|
16
|
+
chartOptions: string;
|
|
17
|
+
viewAsChart: string;
|
|
18
|
+
viewAsTable: string;
|
|
19
|
+
copyData: string;
|
|
20
|
+
chartNumber: string;
|
|
21
|
+
value: string;
|
|
22
|
+
series: string;
|
|
23
|
+
view: string;
|
|
24
|
+
sources: string;
|
|
25
|
+
progress: string;
|
|
26
|
+
yourAnswer: string;
|
|
27
|
+
options: string;
|
|
28
|
+
submit: string;
|
|
29
|
+
cancel: string;
|
|
30
|
+
confirm: string;
|
|
31
|
+
send: string;
|
|
32
|
+
selected: string;
|
|
33
|
+
};
|
|
34
|
+
declare const uiEn: Record<keyof typeof uiZh, string>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { uiEn, uiZh };
|
|
37
|
+
//# sourceMappingURL=copy.d.ts.map
|
package/lib/copy.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
//#region src/copy.ts
|
|
2
|
+
const uiZh = {
|
|
3
|
+
copy: "复制",
|
|
4
|
+
copied: "已复制",
|
|
5
|
+
footnotes: "脚注",
|
|
6
|
+
code: "代码",
|
|
7
|
+
wrap: "自动换行",
|
|
8
|
+
unwrap: "不换行",
|
|
9
|
+
prepared: "卡片将在最终回复中显示",
|
|
10
|
+
preparing: "正在准备视图…",
|
|
11
|
+
error: "视图未能显示",
|
|
12
|
+
invalid: "视图数据无效",
|
|
13
|
+
local: "仅本地预览;此卡片不会发送回答。",
|
|
14
|
+
answerFailed: "回答未能发送,请重试。",
|
|
15
|
+
chart: "图表",
|
|
16
|
+
chartOptions: "图表选项",
|
|
17
|
+
viewAsChart: "查看图表",
|
|
18
|
+
viewAsTable: "查看表格",
|
|
19
|
+
copyData: "复制数据",
|
|
20
|
+
chartNumber: "图表 {n}",
|
|
21
|
+
value: "值",
|
|
22
|
+
series: "系列",
|
|
23
|
+
view: "视图",
|
|
24
|
+
sources: "来源",
|
|
25
|
+
progress: "进度",
|
|
26
|
+
yourAnswer: "你的回答",
|
|
27
|
+
options: "选项",
|
|
28
|
+
submit: "提交",
|
|
29
|
+
cancel: "取消",
|
|
30
|
+
confirm: "确认",
|
|
31
|
+
send: "发送",
|
|
32
|
+
selected: "已选择"
|
|
33
|
+
};
|
|
34
|
+
const uiEn = {
|
|
35
|
+
copy: "Copy",
|
|
36
|
+
copied: "Copied",
|
|
37
|
+
footnotes: "Footnotes",
|
|
38
|
+
code: "Code",
|
|
39
|
+
wrap: "Wrap lines",
|
|
40
|
+
unwrap: "Do not wrap lines",
|
|
41
|
+
prepared: "The card will appear in the final reply",
|
|
42
|
+
preparing: "Preparing view…",
|
|
43
|
+
error: "The view could not be shown",
|
|
44
|
+
invalid: "Invalid view data",
|
|
45
|
+
local: "Local preview only; this card does not send an answer.",
|
|
46
|
+
answerFailed: "The answer could not be sent; try again.",
|
|
47
|
+
chart: "Chart",
|
|
48
|
+
chartOptions: "Chart options",
|
|
49
|
+
viewAsChart: "View as chart",
|
|
50
|
+
viewAsTable: "View as table",
|
|
51
|
+
copyData: "Copy data",
|
|
52
|
+
chartNumber: "Chart {n}",
|
|
53
|
+
value: "Value",
|
|
54
|
+
series: "Series",
|
|
55
|
+
view: "View",
|
|
56
|
+
sources: "Sources",
|
|
57
|
+
progress: "Progress",
|
|
58
|
+
yourAnswer: "Your answer",
|
|
59
|
+
options: "Options",
|
|
60
|
+
submit: "Submit",
|
|
61
|
+
cancel: "Cancel",
|
|
62
|
+
confirm: "Confirm",
|
|
63
|
+
send: "Send",
|
|
64
|
+
selected: "Selected"
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { uiEn, uiZh };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=copy.js.map
|
package/lib/copy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","names":[],"sources":["../src/copy.ts"],"sourcesContent":["export const uiZh = {\n copy: '复制', copied: '已复制', footnotes: '脚注', code: '代码', wrap: '自动换行', unwrap: '不换行',\n prepared: '卡片将在最终回复中显示', preparing: '正在准备视图…', error: '视图未能显示', invalid: '视图数据无效',\n local: '仅本地预览;此卡片不会发送回答。', answerFailed: '回答未能发送,请重试。',\n chart: '图表', chartOptions: '图表选项', viewAsChart: '查看图表', viewAsTable: '查看表格', copyData: '复制数据',\n chartNumber: '图表 {n}', value: '值', series: '系列', view: '视图', sources: '来源', progress: '进度', yourAnswer: '你的回答',\n options: '选项', submit: '提交', cancel: '取消', confirm: '确认', send: '发送', selected: '已选择',\n}\n\nexport const uiEn: Record<keyof typeof uiZh, string> = {\n copy: 'Copy', copied: 'Copied', footnotes: 'Footnotes', code: 'Code', wrap: 'Wrap lines', unwrap: 'Do not wrap lines',\n prepared: 'The card will appear in the final reply', preparing: 'Preparing view…', error: 'The view could not be shown', invalid: 'Invalid view data',\n local: 'Local preview only; this card does not send an answer.', answerFailed: 'The answer could not be sent; try again.',\n chart: 'Chart', chartOptions: 'Chart options', viewAsChart: 'View as chart', viewAsTable: 'View as table', copyData: 'Copy data',\n chartNumber: 'Chart {n}', value: 'Value', series: 'Series', view: 'View', sources: 'Sources', progress: 'Progress', yourAnswer: 'Your answer',\n options: 'Options', submit: 'Submit', cancel: 'Cancel', confirm: 'Confirm', send: 'Send', selected: 'Selected',\n}\n"],"mappings":";AAAA,MAAa,OAAO;CAClB,MAAM;CAAM,QAAQ;CAAO,WAAW;CAAM,MAAM;CAAM,MAAM;CAAQ,QAAQ;CAC9E,UAAU;CAAe,WAAW;CAAW,OAAO;CAAU,SAAS;CACzE,OAAO;CAAoB,cAAc;CACzC,OAAO;CAAM,cAAc;CAAQ,aAAa;CAAQ,aAAa;CAAQ,UAAU;CACvF,aAAa;CAAU,OAAO;CAAK,QAAQ;CAAM,MAAM;CAAM,SAAS;CAAM,UAAU;CAAM,YAAY;CACxG,SAAS;CAAM,QAAQ;CAAM,QAAQ;CAAM,SAAS;CAAM,MAAM;CAAM,UAAU;AAClF;AAEA,MAAa,OAA0C;CACrD,MAAM;CAAQ,QAAQ;CAAU,WAAW;CAAa,MAAM;CAAQ,MAAM;CAAc,QAAQ;CAClG,UAAU;CAA2C,WAAW;CAAmB,OAAO;CAA+B,SAAS;CAClI,OAAO;CAA0D,cAAc;CAC/E,OAAO;CAAS,cAAc;CAAiB,aAAa;CAAiB,aAAa;CAAiB,UAAU;CACrH,aAAa;CAAa,OAAO;CAAS,QAAQ;CAAU,MAAM;CAAQ,SAAS;CAAW,UAAU;CAAY,YAAY;CAChI,SAAS;CAAW,QAAQ;CAAU,QAAQ;CAAU,SAAS;CAAW,MAAM;CAAQ,UAAU;AACtG"}
|
package/lib/core.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { g as ViewNode, h as ViewFailure, l as Scalar, r as Formula, u as ShownView } from "./contracts2.js";
|
|
2
|
+
//#region src/core/index.d.ts
|
|
3
|
+
declare const CHART_KINDS: readonly string[];
|
|
4
|
+
declare const VIEW_BYTE_LIMIT: number;
|
|
5
|
+
declare const FORMULA_FUNCTIONS: readonly string[];
|
|
6
|
+
declare function isName(value: unknown): value is string;
|
|
7
|
+
declare function show(value: unknown): string;
|
|
8
|
+
declare function asText(value: unknown): string;
|
|
9
|
+
declare function checkShownView(title: unknown, sent: unknown): ShownView | ViewFailure;
|
|
10
|
+
declare function normalizeView(value: unknown): unknown;
|
|
11
|
+
declare function validateView(view: unknown): {
|
|
12
|
+
ok: true;
|
|
13
|
+
interactive: boolean;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
error: string;
|
|
17
|
+
};
|
|
18
|
+
declare function viewBytes(title: unknown, view: unknown): number;
|
|
19
|
+
declare function viewInputs(view: ViewNode): ViewNode[];
|
|
20
|
+
declare function inputDefault(node: ViewNode): unknown;
|
|
21
|
+
declare function choiceValue(option: {
|
|
22
|
+
label?: string;
|
|
23
|
+
value?: Scalar;
|
|
24
|
+
} | undefined): Scalar | undefined;
|
|
25
|
+
declare function viewScope(view: ViewNode, values?: Record<string, unknown>): (name: string) => unknown;
|
|
26
|
+
declare function resolve(value: unknown, lookup: (name: string) => unknown, fallback?: unknown): unknown;
|
|
27
|
+
declare function validateViewAnswer(view: ViewNode, action: unknown, values: unknown): Record<string, unknown> & {
|
|
28
|
+
error?: string;
|
|
29
|
+
};
|
|
30
|
+
declare function viewSummary(view: ViewNode): string;
|
|
31
|
+
declare function inputsSummary(view: ViewNode, values: unknown): string;
|
|
32
|
+
declare function hasInputs(view: ViewNode): boolean;
|
|
33
|
+
declare function isFormula(value: unknown): value is Formula;
|
|
34
|
+
type FormulaTree = {
|
|
35
|
+
type: string;
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
declare function compileFormula(source: unknown): {
|
|
39
|
+
tree: FormulaTree;
|
|
40
|
+
names: string[];
|
|
41
|
+
error?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
error: string;
|
|
44
|
+
tree?: undefined;
|
|
45
|
+
names?: undefined;
|
|
46
|
+
};
|
|
47
|
+
declare function createScope(inputs: Map<string, unknown>, lets: Map<string, FormulaTree>): (name: string) => unknown;
|
|
48
|
+
declare function evaluate(tree: FormulaTree, lookup: (name: string) => unknown): {
|
|
49
|
+
value: unknown;
|
|
50
|
+
error?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
error: string;
|
|
53
|
+
value?: undefined;
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { CHART_KINDS, FORMULA_FUNCTIONS, VIEW_BYTE_LIMIT, asText, checkShownView, choiceValue, compileFormula, createScope, evaluate, hasInputs, inputDefault, inputsSummary, isFormula, isName, normalizeView, resolve, show, validateView, validateViewAnswer, viewBytes, viewInputs, viewScope, viewSummary };
|
|
57
|
+
//# sourceMappingURL=core.d.ts.map
|
package/lib/core.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as show, S as isName, _ as viewSummary, a as choiceValue, b as createScope, c as inputsSummary, d as resolve, f as validateView, g as viewScope, h as viewInputs, i as checkShownView, l as isFormula, m as viewBytes, n as VIEW_BYTE_LIMIT, o as hasInputs, p as validateViewAnswer, r as asText, s as inputDefault, t as CHART_KINDS, u as normalizeView, v as FORMULA_FUNCTIONS, x as evaluate, y as compileFormula } from "./core2.js";
|
|
2
|
+
export { CHART_KINDS, FORMULA_FUNCTIONS, VIEW_BYTE_LIMIT, asText, checkShownView, choiceValue, compileFormula, createScope, evaluate, hasInputs, inputDefault, inputsSummary, isFormula, isName, normalizeView, resolve, show, validateView, validateViewAnswer, viewBytes, viewInputs, viewScope, viewSummary };
|