@knime/scripting-editor 0.0.56 → 0.0.58
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/lib/main.d.ts +2 -1
- package/dist/main.js +14438 -8178
- package/dist/src/components/InputOutputItem.vue.d.ts +5 -1
- package/dist/src/components/utils/shouldFocusBePainted.d.ts +7 -0
- package/dist/src/scripting-service.d.ts +14 -17
- package/package.json +1 -1
- package/dist/scripting-service-D2dMGdjE.js +0 -6185
- package/dist/scripting-service-instance.d.ts +0 -1
- package/dist/scripting-service-instance.js +0 -5
- package/dist/src/scripting-service-instance.d.ts +0 -13
|
@@ -25,7 +25,11 @@ export type InputOutputModel = {
|
|
|
25
25
|
export declare const INPUT_OUTPUT_DRAG_EVENT_ID = "input_output_drag_event";
|
|
26
26
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
27
27
|
inputOutputItem: InputOutputModel;
|
|
28
|
-
}>, {
|
|
28
|
+
}>, {
|
|
29
|
+
toggleExpansion: () => void;
|
|
30
|
+
setExpanded: (b: boolean) => void;
|
|
31
|
+
isExpanded: () => any;
|
|
32
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
29
33
|
inputOutputItem: InputOutputModel;
|
|
30
34
|
}>>>, {}, {}>;
|
|
31
35
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable that returns whether focus is currently painted. It turn focus
|
|
3
|
+
* painting on when the document is navigated using key presses, and off again
|
|
4
|
+
* when the document is clicked.
|
|
5
|
+
*/
|
|
6
|
+
declare const useShouldFocusBePainted: () => import('vue').Ref<boolean>;
|
|
7
|
+
export default useShouldFocusBePainted;
|
|
@@ -28,24 +28,21 @@ export type ScriptingServiceType = typeof scriptingService;
|
|
|
28
28
|
*
|
|
29
29
|
* @returns the scripting service instance
|
|
30
30
|
* @example
|
|
31
|
-
* // Provide a custom scripting service instance in a browser development environment
|
|
32
|
-
* // vite.config.ts
|
|
33
|
-
* resolve: {
|
|
34
|
-
* alias: {
|
|
35
|
-
* "./scripting-service-instance.js":
|
|
36
|
-
* process.env.APP_ENV === "browser"
|
|
37
|
-
* ? <path to scripting-service-instance-browser.ts>,
|
|
38
|
-
* : "./scripting-service-instance.js",
|
|
39
|
-
* },
|
|
40
|
-
* },
|
|
41
|
-
*
|
|
42
|
-
* // scripting-service-instance-browser.ts
|
|
43
31
|
* import { createScriptingServiceMock } from "@knime/scripting-editor/scripting-service-browser-mock";
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
32
|
+
* import { getScriptingService } from "@knime/scripting-editor";
|
|
33
|
+
*
|
|
34
|
+
* if (import.meta.env.MODE === "development.browser") {
|
|
35
|
+
* const scriptingService = createScriptingServiceMock({
|
|
36
|
+
* sendToServiceMockResponses: {
|
|
37
|
+
* myBackendFunction: (options) => {
|
|
38
|
+
* consola.log("called my backend function with", options);
|
|
39
|
+
* return Promise.resolve();
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* Object.assign(getScriptingService(), scriptingService);
|
|
45
|
+
* }
|
|
49
46
|
*/
|
|
50
47
|
export declare const getScriptingService: () => ScriptingServiceType;
|
|
51
48
|
export declare const initConsoleEventHandler: () => void;
|
package/package.json
CHANGED