scordi-extension 1.15.9 → 1.15.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/README.md +0 -1
- package/dist/.vite/manifest.json +15 -15
- package/dist/assets/index-DxZcS402.js +1 -0
- package/dist/assets/index.ts-2nFLTUkL.js +238 -0
- package/dist/assets/index.ts-COMnxBfB.js +238 -0
- package/dist/assets/internal-messages-BMRA0i8A.js +1 -0
- package/dist/assets/main.tsx-DnGNeWWr.js +38 -0
- package/dist/assets/main.tsx-loader-6Ftbg0YS.js +13 -0
- package/dist/assets/types-CeXfY5Yv.js +4 -0
- package/dist/blocks/ExportDataBlock.d.ts +71 -0
- package/dist/blocks/ExportDataBlock.d.ts.map +1 -0
- package/dist/blocks/TransformDataBlock.d.ts +40 -0
- package/dist/blocks/TransformDataBlock.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +52 -46
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/manifest.json +2 -3
- package/dist/sdk/EightGClient.d.ts +8 -1
- package/dist/sdk/EightGClient.d.ts.map +1 -1
- package/dist/sdk/index.cjs +6 -4
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +3110 -3012
- package/dist/sdk/types.d.ts +15 -0
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/xlsx-CZNBZqms.js +24774 -0
- package/dist/sdk/xlsx-CvJ3jy0B.cjs +105 -0
- package/dist/src/blocks/AiParseDataBlock.ts.js +1 -1
- package/dist/src/blocks/ClearValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/ElementExistsBlock.ts.js +1 -1
- package/dist/src/blocks/EventClickBlock.ts.js +1 -1
- package/dist/src/blocks/FetchApiBlock.ts.js +1 -1
- package/dist/src/blocks/GetAttributeValueBlock.ts.js +1 -1
- package/dist/src/blocks/GetElementDataBlock.ts.js +1 -1
- package/dist/src/blocks/GetTextBlock.ts.js +1 -1
- package/dist/src/blocks/GetValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/KeypressBlock.ts.js +1 -1
- package/dist/src/blocks/NavigateBlock.ts.js +1 -1
- package/dist/src/blocks/SaveAssetsBlock.ts.js +1 -1
- package/dist/src/blocks/ScrollBlock.ts.js +1 -1
- package/dist/src/blocks/SetValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/TransformDataBlock.ts.js +41 -0
- package/dist/src/blocks/WaitBlock.ts.js +1 -1
- package/dist/src/blocks/WaitForConditionBlock.ts.js +1 -1
- package/dist/src/blocks/index.ts.js +7 -15
- package/dist/src/blocks/types.ts.js +1 -1
- package/dist/src/content/components/ConfirmationUI.tsx.js +3 -3
- package/dist/src/content/components/ExecutionStatusUI.tsx.js +3 -3
- package/dist/src/content/main.tsx.js +2 -2
- package/dist/src/sdk/types.ts.js +1 -0
- package/dist/src/types/internal-messages.ts.js +0 -3
- package/dist/src/workflow/context/execution-context/types.ts.js +0 -0
- package/dist/types/internal-messages.d.ts +1 -15
- package/dist/types/internal-messages.d.ts.map +1 -1
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--af906259.js +45 -0
- package/dist/vendor/.vite-deps-chunk-DC5AMYBS.js__v--87b685c1.js +38 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--af906259.js +975 -0
- package/dist/vendor/.vite-deps-chunk-KDMJ4XM7.js__v--87b685c1.js +4154 -0
- package/dist/vendor/.vite-deps-chunk-MANNBT4V.js__v--87b685c1.js +280 -0
- package/dist/vendor/.vite-deps-chunk-NZP3G7XT.js__v--87b685c1.js +975 -0
- package/dist/vendor/.vite-deps-chunk-UW5CEYRC.js__v--af906259.js +4154 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--af906259.js +280 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--370b8ffe.js +5761 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--af906259.js +5761 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--36c31e85.js +6 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--af906259.js +6 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--aaaed31d.js +18108 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--af906259.js +18108 -0
- package/dist/vendor/.vite-deps-react.js__v--36c31e85.js +5 -0
- package/dist/vendor/.vite-deps-react.js__v--af906259.js +5 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--36c31e85.js +281 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--af906259.js +281 -0
- package/dist/vendor/.vite-deps-zod.js__v--af906259.js +222 -0
- package/dist/vendor/.vite-deps-zod.js__v--dc9842e6.js +222 -0
- package/dist/vendor/vite-client.js +1 -1
- package/dist/workflow/context/execution-context/binding.d.ts +40 -0
- package/dist/workflow/context/execution-context/binding.d.ts.map +1 -0
- package/dist/workflow/context/execution-context/condition.d.ts +69 -0
- package/dist/workflow/context/execution-context/condition.d.ts.map +1 -0
- package/dist/workflow/context/execution-context/execution-context.d.ts +36 -0
- package/dist/workflow/context/execution-context/execution-context.d.ts.map +1 -0
- package/dist/workflow/context/execution-context/index.d.ts +16 -0
- package/dist/workflow/context/execution-context/index.d.ts.map +1 -0
- package/dist/workflow/context/execution-context/resolver.d.ts +18 -0
- package/dist/workflow/context/execution-context/resolver.d.ts.map +1 -0
- package/dist/workflow/context/execution-context/types.d.ts +14 -0
- package/dist/workflow/context/execution-context/types.d.ts.map +1 -0
- package/dist/workflow/context/loop-context/index.d.ts +9 -0
- package/dist/workflow/context/loop-context/index.d.ts.map +1 -0
- package/dist/workflow/context/loop-context/loop-context.d.ts +26 -0
- package/dist/workflow/context/loop-context/loop-context.d.ts.map +1 -0
- package/dist/workflow/context/loop-context/resolver.d.ts +20 -0
- package/dist/workflow/context/loop-context/resolver.d.ts.map +1 -0
- package/dist/workflow/context/loop-context/types.d.ts +19 -0
- package/dist/workflow/context/loop-context/types.d.ts.map +1 -0
- package/dist/workflow/context/step-context/index.d.ts +9 -0
- package/dist/workflow/context/step-context/index.d.ts.map +1 -0
- package/dist/workflow/context/step-context/resolver.d.ts +18 -0
- package/dist/workflow/context/step-context/resolver.d.ts.map +1 -0
- package/dist/workflow/context/step-context/step-context.d.ts +18 -0
- package/dist/workflow/context/step-context/step-context.d.ts.map +1 -0
- package/dist/workflow/context/step-context/types.d.ts +14 -0
- package/dist/workflow/context/step-context/types.d.ts.map +1 -0
- package/dist/workflow/context/var-context/index.d.ts +9 -0
- package/dist/workflow/context/var-context/index.d.ts.map +1 -0
- package/dist/workflow/context/var-context/resolver.d.ts +18 -0
- package/dist/workflow/context/var-context/resolver.d.ts.map +1 -0
- package/dist/workflow/context/var-context/types.d.ts +9 -0
- package/dist/workflow/context/var-context/types.d.ts.map +1 -0
- package/dist/workflow/context/var-context/var-context.d.ts +22 -0
- package/dist/workflow/context/var-context/var-context.d.ts.map +1 -0
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
4
4
|
export const ClearValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("clear-value-form"),
|
|
6
6
|
type: z.enum(["text-field", "select", "checkbox"]).optional()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
4
4
|
export const ElementExistsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("element-exists")
|
|
6
6
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const EventClickBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const GetAttributeValueBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
import { CSSSelectorGenerator } from "/src/content/elements/utils/CSSSelectorGenerator.ts.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const GetTextBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
4
4
|
export const GetValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("get-value-form"),
|
|
6
6
|
type: z.enum(["text-field", "select", "checkbox"]).optional()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
4
4
|
export const SaveAssetsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("save-assets")
|
|
6
6
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const ScrollBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
4
4
|
export const SetValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("set-value-form"),
|
|
6
6
|
setValue: z.string(),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--af906259.js";
|
|
2
|
+
import __vite__cjsImport1_jsonata from "/vendor/.vite-deps-jsonata.js__v--af906259.js"; const jsonata = __vite__cjsImport1_jsonata.__esModule ? __vite__cjsImport1_jsonata.default : __vite__cjsImport1_jsonata;
|
|
3
|
+
export const TransformDataBlockSchema = z.object({
|
|
4
|
+
name: z.literal("transform-data"),
|
|
5
|
+
sourceData: z.any().optional(),
|
|
6
|
+
expression: z.string().min(1, "JSONata expression is required")
|
|
7
|
+
});
|
|
8
|
+
export function validateTransformDataBlock(data) {
|
|
9
|
+
return TransformDataBlockSchema.parse(data);
|
|
10
|
+
}
|
|
11
|
+
export async function handlerTransformData(data) {
|
|
12
|
+
try {
|
|
13
|
+
const { sourceData, expression } = data;
|
|
14
|
+
const input = sourceData !== void 0 && sourceData !== null ? sourceData : {};
|
|
15
|
+
let compiledExpression;
|
|
16
|
+
try {
|
|
17
|
+
compiledExpression = jsonata(expression);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
throw new Error(
|
|
20
|
+
`Invalid JSONata expression: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
let result;
|
|
24
|
+
try {
|
|
25
|
+
result = await compiledExpression.evaluate(input);
|
|
26
|
+
} catch (error) {
|
|
27
|
+
throw new Error(
|
|
28
|
+
`JSONata evaluation failed: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
data: result
|
|
33
|
+
};
|
|
34
|
+
} catch (error) {
|
|
35
|
+
return {
|
|
36
|
+
hasError: true,
|
|
37
|
+
message: error instanceof Error ? error.message : "Unknown error in transform-data handler",
|
|
38
|
+
data: null
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -16,8 +16,7 @@ export { GetElementDataBlockSchema } from "/src/blocks/GetElementDataBlock.ts.js
|
|
|
16
16
|
export { ScrollBlockSchema } from "/src/blocks/ScrollBlock.ts.js";
|
|
17
17
|
export { AiParseDataBlockSchema } from "/src/blocks/AiParseDataBlock.ts.js";
|
|
18
18
|
export { FetchApiBlockSchema } from "/src/blocks/FetchApiBlock.ts.js";
|
|
19
|
-
export {
|
|
20
|
-
export { CaptureNetworkBlockSchema } from "/src/blocks/CaptureNetworkBlock.ts.js";
|
|
19
|
+
export { TransformDataBlockSchema } from "/src/blocks/TransformDataBlock.ts.js";
|
|
21
20
|
import { handlerGetText, validateGetTextBlock } from "/src/blocks/GetTextBlock.ts.js";
|
|
22
21
|
import {
|
|
23
22
|
handlerGetAttributeValue,
|
|
@@ -55,8 +54,7 @@ import {
|
|
|
55
54
|
import { handlerScroll, validateScrollBlock } from "/src/blocks/ScrollBlock.ts.js";
|
|
56
55
|
import { handlerAiParseData, validateAiParseDataBlock } from "/src/blocks/AiParseDataBlock.ts.js";
|
|
57
56
|
import { handlerFetchApi, validateFetchApiBlock } from "/src/blocks/FetchApiBlock.ts.js";
|
|
58
|
-
import {
|
|
59
|
-
import { handlerCaptureNetwork, validateCaptureNetworkBlock } from "/src/blocks/CaptureNetworkBlock.ts.js";
|
|
57
|
+
import { handlerTransformData, validateTransformDataBlock } from "/src/blocks/TransformDataBlock.ts.js";
|
|
60
58
|
import { GetTextBlockSchema as GetTextBlockSchema2 } from "/src/blocks/GetTextBlock.ts.js";
|
|
61
59
|
import { GetAttributeValueBlockSchema as GetAttributeValueBlockSchema2 } from "/src/blocks/GetAttributeValueBlock.ts.js";
|
|
62
60
|
import { GetValueFormsBlockSchema as GetValueFormsBlockSchema2 } from "/src/blocks/GetValueFormBlock.ts.js";
|
|
@@ -73,8 +71,7 @@ import { GetElementDataBlockSchema as GetElementDataBlockSchema2 } from "/src/bl
|
|
|
73
71
|
import { ScrollBlockSchema as ScrollBlockSchema2 } from "/src/blocks/ScrollBlock.ts.js";
|
|
74
72
|
import { AiParseDataBlockSchema as AiParseDataBlockSchema2 } from "/src/blocks/AiParseDataBlock.ts.js";
|
|
75
73
|
import { FetchApiBlockSchema as FetchApiBlockSchema2 } from "/src/blocks/FetchApiBlock.ts.js";
|
|
76
|
-
import {
|
|
77
|
-
import { CaptureNetworkBlockSchema as CaptureNetworkBlockSchema2 } from "/src/blocks/CaptureNetworkBlock.ts.js";
|
|
74
|
+
import { TransformDataBlockSchema as TransformDataBlockSchema2 } from "/src/blocks/TransformDataBlock.ts.js";
|
|
78
75
|
export const AllBlockSchemas = {
|
|
79
76
|
"get-text": GetTextBlockSchema2,
|
|
80
77
|
"attribute-value": GetAttributeValueBlockSchema2,
|
|
@@ -92,8 +89,7 @@ export const AllBlockSchemas = {
|
|
|
92
89
|
"scroll": ScrollBlockSchema2,
|
|
93
90
|
"ai-parse-data": AiParseDataBlockSchema2,
|
|
94
91
|
"fetch-api": FetchApiBlockSchema2,
|
|
95
|
-
"data
|
|
96
|
-
"capture-network": CaptureNetworkBlockSchema2
|
|
92
|
+
"transform-data": TransformDataBlockSchema2
|
|
97
93
|
};
|
|
98
94
|
export class BlockHandler {
|
|
99
95
|
// Implementation
|
|
@@ -164,13 +160,9 @@ export class BlockHandler {
|
|
|
164
160
|
const validatedBlock = validateFetchApiBlock(block);
|
|
165
161
|
return await handlerFetchApi(validatedBlock);
|
|
166
162
|
}
|
|
167
|
-
case "data
|
|
168
|
-
const validatedBlock =
|
|
169
|
-
return await
|
|
170
|
-
}
|
|
171
|
-
case "capture-network": {
|
|
172
|
-
const validatedBlock = validateCaptureNetworkBlock(block);
|
|
173
|
-
return await handlerCaptureNetwork(validatedBlock);
|
|
163
|
+
case "transform-data": {
|
|
164
|
+
const validatedBlock = validateTransformDataBlock(block);
|
|
165
|
+
return await handlerTransformData(validatedBlock);
|
|
174
166
|
}
|
|
175
167
|
default:
|
|
176
168
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ConfirmationUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--
|
|
1
|
+
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ConfirmationUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--af906259.js"; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
|
|
2
2
|
import * as RefreshRuntime from "/vendor/react-refresh.js";
|
|
3
3
|
const inWebWorker = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
4
4
|
let prevRefreshReg;
|
|
@@ -15,8 +15,8 @@ if (import.meta.hot && !inWebWorker) {
|
|
|
15
15
|
window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
16
16
|
}
|
|
17
17
|
var _s = $RefreshSig$(), _s2 = $RefreshSig$();
|
|
18
|
-
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--
|
|
19
|
-
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--
|
|
18
|
+
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--af906259.js"; const useEffect = __vite__cjsImport3_react["useEffect"]; const useState = __vite__cjsImport3_react["useState"];
|
|
19
|
+
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--af906259.js"; const createPortal = __vite__cjsImport4_reactDom["createPortal"];
|
|
20
20
|
const positionStyles = {
|
|
21
21
|
"top-left": {
|
|
22
22
|
top: "20px",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ExecutionStatusUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--
|
|
1
|
+
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ExecutionStatusUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--af906259.js"; const Fragment = __vite__cjsImport0_react_jsxDevRuntime["Fragment"]; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
|
|
2
2
|
import * as RefreshRuntime from "/vendor/react-refresh.js";
|
|
3
3
|
const inWebWorker = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
4
4
|
let prevRefreshReg;
|
|
@@ -15,8 +15,8 @@ if (import.meta.hot && !inWebWorker) {
|
|
|
15
15
|
window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
16
16
|
}
|
|
17
17
|
var _s = $RefreshSig$(), _s2 = $RefreshSig$();
|
|
18
|
-
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--
|
|
19
|
-
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--
|
|
18
|
+
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--af906259.js"; const useEffect = __vite__cjsImport3_react["useEffect"]; const useState = __vite__cjsImport3_react["useState"];
|
|
19
|
+
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--af906259.js"; const createPortal = __vite__cjsImport4_reactDom["createPortal"];
|
|
20
20
|
export function ExecutionStatusUI({ visible, message = "실행 중" }) {
|
|
21
21
|
_s();
|
|
22
22
|
const [isAnimating, setIsAnimating] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--
|
|
2
|
-
import __vite__cjsImport1_reactDom_client from "/vendor/.vite-deps-react-dom_client.js__v--
|
|
1
|
+
import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--af906259.js"; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
|
|
2
|
+
import __vite__cjsImport1_reactDom_client from "/vendor/.vite-deps-react-dom_client.js__v--af906259.js"; const createRoot = __vite__cjsImport1_reactDom_client["createRoot"];
|
|
3
3
|
import { MessageKernel } from "/src/content/kernel/MessageKernel.ts.js";
|
|
4
4
|
import { InternalMessageHandler } from "/src/content/handler/InternalMessageHandler.ts.js";
|
|
5
5
|
import { ExternalMessageHandler } from "/src/content/handler/ExternalMessageHandler.ts.js";
|
package/dist/src/sdk/types.ts.js
CHANGED
|
@@ -10,9 +10,6 @@ export function isCdpKeypressMessage(message) {
|
|
|
10
10
|
export function isFetchApiMessage(message) {
|
|
11
11
|
return message && message.type === "FETCH_API";
|
|
12
12
|
}
|
|
13
|
-
export function isCdpCaptureNetworkMessage(message) {
|
|
14
|
-
return message && message.type === "CDP_CAPTURE_NETWORK";
|
|
15
|
-
}
|
|
16
13
|
export function isShowExecutionStatusMessage(message) {
|
|
17
14
|
return message && message.type === "SHOW_EXECUTION_STATUS";
|
|
18
15
|
}
|
|
File without changes
|
|
@@ -42,19 +42,6 @@ export interface FetchApiMessage {
|
|
|
42
42
|
returnHeaders: boolean;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export interface CdpCaptureNetworkMessage {
|
|
46
|
-
type: 'CDP_CAPTURE_NETWORK';
|
|
47
|
-
data: {
|
|
48
|
-
targetUrl: string;
|
|
49
|
-
waitForLoadComplete: boolean;
|
|
50
|
-
timeout: number;
|
|
51
|
-
includeRequestHeaders: boolean;
|
|
52
|
-
includeResponseHeaders: boolean;
|
|
53
|
-
includeResponseBody: boolean;
|
|
54
|
-
urlFilter?: string;
|
|
55
|
-
resourceTypes?: string[];
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
45
|
export interface ShowExecutionStatusMessage {
|
|
59
46
|
type: 'SHOW_EXECUTION_STATUS';
|
|
60
47
|
data: {
|
|
@@ -64,7 +51,7 @@ export interface ShowExecutionStatusMessage {
|
|
|
64
51
|
export interface HideExecutionStatusMessage {
|
|
65
52
|
type: 'HIDE_EXECUTION_STATUS';
|
|
66
53
|
}
|
|
67
|
-
export type BackgroundMessage = CollectWorkflowNewTabMessage | CdpClickMessage | CdpKeypressMessage | FetchApiMessage
|
|
54
|
+
export type BackgroundMessage = CollectWorkflowNewTabMessage | CdpClickMessage | CdpKeypressMessage | FetchApiMessage;
|
|
68
55
|
export type ContentMessage = ExecuteBlockMessage | ShowExecutionStatusMessage | HideExecutionStatusMessage;
|
|
69
56
|
export interface ErrorResponse {
|
|
70
57
|
$isError: true;
|
|
@@ -76,7 +63,6 @@ export declare function isExecuteBlockMessage(message: any): message is ExecuteB
|
|
|
76
63
|
export declare function isCdpClickMessage(message: any): message is CdpClickMessage;
|
|
77
64
|
export declare function isCdpKeypressMessage(message: any): message is CdpKeypressMessage;
|
|
78
65
|
export declare function isFetchApiMessage(message: any): message is FetchApiMessage;
|
|
79
|
-
export declare function isCdpCaptureNetworkMessage(message: any): message is CdpCaptureNetworkMessage;
|
|
80
66
|
export declare function isShowExecutionStatusMessage(message: any): message is ShowExecutionStatusMessage;
|
|
81
67
|
export declare function isHideExecutionStatusMessage(message: any): message is HideExecutionStatusMessage;
|
|
82
68
|
export declare function isErrorResponse(response: any): response is ErrorResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-messages.d.ts","sourceRoot":"","sources":["../../src/types/internal-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,KAAK,CAAC;CACb;AAGD,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,0BAA0B,CAAC;IACjC,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,QAAQ,CAAC;QACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE;QACJ,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,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AAM,sBAAsB,GAAG,WAAW,GAAG,aAAa,CAAC;AAGjE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,mBAAmB,CAElF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,eAAe,CAE1E;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,kBAAkB,CAEhF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,eAAe,CAE1E;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,0BAA0B,CAEhG;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,0BAA0B,CAEhG;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,GAAG,GAAG,QAAQ,IAAI,aAAa,CAExE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
__require,
|
|
41
|
+
__commonJS,
|
|
42
|
+
__export,
|
|
43
|
+
__toESM,
|
|
44
|
+
__publicField
|
|
45
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
__commonJS,
|
|
35
|
+
__export,
|
|
36
|
+
__toESM,
|
|
37
|
+
__publicField
|
|
38
|
+
};
|