@imbricate/core 1.28.0 → 1.30.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imbricate/core",
|
|
3
3
|
"main": "index.js",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.30.0",
|
|
5
5
|
"description": "Imbricate Core, Notebook for Engineers",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://imbricate.io",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@sudoo/marked": "
|
|
23
|
-
"@sudoo/marked-mixin-
|
|
24
|
-
"@sudoo/marked-mixin-
|
|
25
|
-
"@sudoo/marked-mixin-
|
|
26
|
-
"@sudoo/marked-mixin-
|
|
27
|
-
|
|
22
|
+
"@sudoo/marked-mixin-date": "1.0.0",
|
|
23
|
+
"@sudoo/marked-mixin-json": "1.0.0",
|
|
24
|
+
"@sudoo/marked-mixin-math": "1.4.0",
|
|
25
|
+
"@sudoo/marked-mixin-object": "1.3.0",
|
|
26
|
+
"@sudoo/marked-mixin-parse": "1.0.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@sudoo/marked": "*"
|
|
28
30
|
}
|
|
29
31
|
}
|
package/script-manager/base.d.ts
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* @namespace ScriptManager
|
|
4
4
|
* @description Base
|
|
5
5
|
*/
|
|
6
|
+
import { MarkedResult } from "@sudoo/marked";
|
|
6
7
|
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
8
|
import { ImbricateCapability } from "../capability/definition";
|
|
8
9
|
import type { PromiseOr } from "../definition/promise";
|
|
9
10
|
import { ImbricateScriptQuery, ImbricateScriptQueryConfig, ImbricateSearchScriptConfig } from "../query/script";
|
|
11
|
+
import { SandboxExecuteConfig, SandboxExecuteParameter } from "../sandbox/definition/config";
|
|
12
|
+
import { SandboxFeature } from "../sandbox/feature/feature";
|
|
10
13
|
import { IImbricateScriptManager } from "../script-manager/interface";
|
|
11
14
|
import { ImbricateScriptMetadata, ImbricateScriptSnapshot } from "../script/definition";
|
|
12
15
|
import { IImbricateScript } from "../script/interface";
|
|
@@ -25,4 +28,5 @@ export declare abstract class ImbricateScriptManagerBase implements IImbricateSc
|
|
|
25
28
|
listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
|
|
26
29
|
searchScripts(_keyword: string, _config: ImbricateSearchScriptConfig): PromiseOr<any[]>;
|
|
27
30
|
queryScripts(_query: ImbricateScriptQuery, _config: ImbricateScriptQueryConfig): PromiseOr<IImbricateScript[]>;
|
|
31
|
+
executeScriptSnippet(_snippet: string, _features: SandboxFeature[], _config: SandboxExecuteConfig, _parameter: SandboxExecuteParameter): PromiseOr<MarkedResult>;
|
|
28
32
|
}
|
package/script-manager/base.js
CHANGED
|
@@ -47,5 +47,8 @@ class ImbricateScriptManagerBase {
|
|
|
47
47
|
queryScripts(_query, _config) {
|
|
48
48
|
throw not_implemented_1.ImbricateNotImplemented.create("QueryScripts", definition_2.IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.LIST_SCRIPTS);
|
|
49
49
|
}
|
|
50
|
+
executeScriptSnippet(_snippet, _features, _config, _parameter) {
|
|
51
|
+
throw not_implemented_1.ImbricateNotImplemented.create("ExecuteScriptSnippet", definition_2.IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.EXECUTE_SCRIPT_SNIPPET);
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
exports.ImbricateScriptManagerBase = ImbricateScriptManagerBase;
|
|
@@ -11,6 +11,7 @@ export declare enum IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY {
|
|
|
11
11
|
RENAME_SCRIPT = "imbricate.script-manager.rename",
|
|
12
12
|
DELETE_SCRIPT = "imbricate.script-manager.delete",
|
|
13
13
|
GET_SCRIPT = "imbricate.script-manager.get",
|
|
14
|
-
LIST_SCRIPTS = "imbricate.script-manager.list"
|
|
14
|
+
LIST_SCRIPTS = "imbricate.script-manager.list",
|
|
15
|
+
EXECUTE_SCRIPT_SNIPPET = "imbricate.script-manager.execute-script-snippet"
|
|
15
16
|
}
|
|
16
17
|
export declare const ImbricateScriptManagerCapabilityList: IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY[];
|
|
@@ -14,6 +14,7 @@ var IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY;
|
|
|
14
14
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY["DELETE_SCRIPT"] = "imbricate.script-manager.delete";
|
|
15
15
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY["GET_SCRIPT"] = "imbricate.script-manager.get";
|
|
16
16
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY["LIST_SCRIPTS"] = "imbricate.script-manager.list";
|
|
17
|
+
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY["EXECUTE_SCRIPT_SNIPPET"] = "imbricate.script-manager.execute-script-snippet";
|
|
17
18
|
})(IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY || (exports.IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY = IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY = {}));
|
|
18
19
|
exports.ImbricateScriptManagerCapabilityList = [
|
|
19
20
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.CREATE_SCRIPT,
|
|
@@ -22,4 +23,5 @@ exports.ImbricateScriptManagerCapabilityList = [
|
|
|
22
23
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.DELETE_SCRIPT,
|
|
23
24
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.GET_SCRIPT,
|
|
24
25
|
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.LIST_SCRIPTS,
|
|
26
|
+
IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.EXECUTE_SCRIPT_SNIPPET,
|
|
25
27
|
];
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
* @namespace ScriptManager
|
|
4
4
|
* @description Interface
|
|
5
5
|
*/
|
|
6
|
+
import { MarkedResult } from "@sudoo/marked";
|
|
6
7
|
import { PromiseOr } from "../definition/promise";
|
|
7
8
|
import { ImbricateScriptQuery, ImbricateScriptQueryConfig, ImbricateSearchScriptConfig } from "../query/script";
|
|
9
|
+
import { SandboxExecuteConfig, SandboxExecuteParameter } from "../sandbox/definition/config";
|
|
10
|
+
import { SandboxFeature } from "../sandbox/feature/feature";
|
|
8
11
|
import { ImbricateScriptMetadata, ImbricateScriptSearchResult, ImbricateScriptSnapshot } from "../script/definition";
|
|
9
12
|
import { IImbricateScript } from "../script/interface";
|
|
10
13
|
import { ImbricateScriptManagerCapability } from "./definition";
|
|
@@ -31,4 +34,5 @@ export interface IImbricateScriptManager {
|
|
|
31
34
|
listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
|
|
32
35
|
searchScripts(keyword: string, config: ImbricateSearchScriptConfig): PromiseOr<ImbricateScriptSearchResult[]>;
|
|
33
36
|
queryScripts(query: ImbricateScriptQuery, config: ImbricateScriptQueryConfig): PromiseOr<IImbricateScript[]>;
|
|
37
|
+
executeScriptSnippet(snippet: string, features: SandboxFeature[], config: SandboxExecuteConfig, parameter: SandboxExecuteParameter): PromiseOr<MarkedResult>;
|
|
34
38
|
}
|
package/search/snippet.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ export declare enum IMBRICATE_SEARCH_SNIPPET_SCRIPT_SNIPPET_SOURCE {
|
|
|
17
17
|
}
|
|
18
18
|
type IMBRICATE_SEARCH_SNIPPET_SNIPPET_SOURCE<T extends IMBRICATE_SEARCH_RESULT_TYPE> = T extends IMBRICATE_SEARCH_RESULT_TYPE.PAGE ? IMBRICATE_SEARCH_SNIPPET_PAGE_SNIPPET_SOURCE : T extends IMBRICATE_SEARCH_RESULT_TYPE.SCRIPT ? IMBRICATE_SEARCH_SNIPPET_SCRIPT_SNIPPET_SOURCE : never;
|
|
19
19
|
type ImbricateSearchSnippetSwitch<T extends IMBRICATE_SEARCH_RESULT_TYPE> = T extends IMBRICATE_SEARCH_RESULT_TYPE.PAGE ? {
|
|
20
|
-
readonly
|
|
20
|
+
readonly collectionName: string;
|
|
21
|
+
readonly collectionUniqueIdentifier: string;
|
|
21
22
|
} : T extends IMBRICATE_SEARCH_RESULT_TYPE.SCRIPT ? {} : never;
|
|
22
23
|
export type ImbricateSearchSnippetHighlight = {
|
|
23
24
|
readonly start: number;
|