scordi-extension 1.14.6 → 1.14.8
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/assets/loading-page-1924caaa.js +51 -0
- package/dist/blocks/ClearValueFormBlock.d.ts +8 -8
- package/dist/blocks/DataExtractBlock.d.ts +2 -2
- package/dist/blocks/ElementExistsBlock.d.ts +8 -8
- package/dist/blocks/EventClickBlock.d.ts +12 -12
- package/dist/blocks/FetchApiBlock.d.ts +2 -2
- package/dist/blocks/GetAttributeValueBlock.d.ts +8 -8
- package/dist/blocks/GetElementDataBlock.d.ts +14 -14
- package/dist/blocks/GetTextBlock.d.ts +10 -10
- package/dist/blocks/GetValueFormBlock.d.ts +8 -8
- package/dist/blocks/SaveAssetsBlock.d.ts +8 -8
- package/dist/blocks/ScrollBlock.d.ts +8 -8
- package/dist/blocks/SetValueFormBlock.d.ts +8 -8
- package/dist/blocks/WaitForConditionBlock.d.ts +176 -0
- package/dist/blocks/WaitForConditionBlock.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +232 -96
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/types.d.ts +25 -8
- package/dist/blocks/types.d.ts.map +1 -1
- package/dist/logo.png +0 -0
- package/dist/manifest.json +55 -0
- package/dist/public/logo.png +0 -0
- package/dist/sdk/index.cjs +4 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +5569 -1437
- package/dist/sdk/types.d.ts +3 -3
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/service-worker-loader.js +3 -0
- package/dist/src/blocks/AiParseDataBlock.ts.js +101 -0
- package/dist/src/blocks/ClearValueFormBlock.ts.js +55 -0
- package/dist/src/blocks/DataExtractBlock.ts.js +28 -0
- package/dist/src/blocks/ElementExistsBlock.ts.js +26 -0
- package/dist/src/blocks/EventClickBlock.ts.js +143 -0
- package/dist/src/blocks/FetchApiBlock.ts.js +50 -0
- package/dist/src/blocks/GetAttributeValueBlock.ts.js +33 -0
- package/dist/src/blocks/GetElementDataBlock.ts.js +114 -0
- package/dist/src/blocks/GetTextBlock.ts.js +152 -0
- package/dist/src/blocks/GetValueFormBlock.ts.js +52 -0
- package/dist/src/blocks/KeypressBlock.ts.js +89 -0
- package/dist/src/blocks/SaveAssetsBlock.ts.js +35 -0
- package/dist/src/blocks/ScrollBlock.ts.js +111 -0
- package/dist/src/blocks/SetValueFormBlock.ts.js +56 -0
- package/dist/src/blocks/WaitBlock.ts.js +24 -0
- package/dist/src/blocks/WaitForConditionBlock.ts.js +187 -0
- package/dist/src/blocks/index.ts.js +174 -0
- package/dist/src/blocks/types.ts.js +12 -0
- package/dist/src/content/components/ConfirmationUI.tsx.js +236 -0
- package/dist/src/content/elements/finders/CssSelector.ts.js +51 -0
- package/dist/src/content/elements/finders/ElementSelector.ts.js +20 -0
- package/dist/src/content/elements/finders/IframeSelector.ts.js +32 -0
- package/dist/src/content/elements/finders/ShadowDOMSelector.ts.js +38 -0
- package/dist/src/content/elements/finders/XPathFinder.ts.js +32 -0
- package/dist/src/content/elements/index.ts.js +26 -0
- package/dist/src/content/elements/utils/CSSSelectorGenerator.ts.js +72 -0
- package/dist/src/content/elements/utils/XPathGenerator.ts.js +62 -0
- package/dist/src/content/handler/ExternalMessageHandler.ts.js +78 -0
- package/dist/src/content/handler/InternalMessageHandler.ts.js +18 -0
- package/dist/src/content/kernel/MessageKernel.ts.js +83 -0
- package/dist/src/content/main.tsx-loader.js +22 -0
- package/dist/src/content/main.tsx.js +27 -0
- package/dist/src/content/utils/index.ts.js +1 -0
- package/dist/src/content/utils/synchronizedLock.ts.js +35 -0
- package/dist/src/popup/index.html +12 -0
- package/dist/src/types/internal-messages.ts.js +15 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--9054997c.js +45 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--e2a1f584.js +45 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--e2a1f584.js +975 -0
- package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--9054997c.js +4158 -0
- package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--e2a1f584.js +4158 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--e2a1f584.js +280 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--d602c657.js +5761 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--e2a1f584.js +5761 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--e2a1f584.js +6 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--e2a1f584.js +18108 -0
- package/dist/vendor/.vite-deps-react.js__v--e2a1f584.js +5 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--e2a1f584.js +281 -0
- package/dist/vendor/.vite-deps-zod.js__v--9e0f4cc1.js +219 -0
- package/dist/vendor/.vite-deps-zod.js__v--e2a1f584.js +219 -0
- package/dist/vendor/crx-client-port.js +66 -0
- package/dist/vendor/crx-client-preamble.js +4 -0
- package/dist/vendor/react-refresh.js +670 -0
- package/dist/vendor/vite-client.js +1134 -0
- package/dist/vendor/vite-dist-client-env.mjs.js +24 -0
- package/dist/vendor/webcomponents-custom-elements.js +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { Block, BlockResult } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* WaitForConditionBlock - 특정 조건 만족 또는 사용자 확인 대기
|
|
5
|
+
*
|
|
6
|
+
* 지원 기능:
|
|
7
|
+
* - 자동 조건: URL 패턴, 요소 존재, 쿠키 존재, 스토리지 키
|
|
8
|
+
* - 수동 확인: Floating UI의 확인 버튼 클릭
|
|
9
|
+
* - 모드: auto (자동만), manual (수동만), auto-or-manual (둘 중 하나)
|
|
10
|
+
*/
|
|
11
|
+
export interface WaitForConditionBlock extends Omit<Block, 'selector' | 'findBy' | 'option'> {
|
|
12
|
+
readonly name: 'wait-for-condition';
|
|
13
|
+
conditions: {
|
|
14
|
+
urlPattern?: string;
|
|
15
|
+
elementExists?: {
|
|
16
|
+
selector: string;
|
|
17
|
+
findBy: 'cssSelector' | 'xpath';
|
|
18
|
+
};
|
|
19
|
+
cookieExists?: string;
|
|
20
|
+
storageKey?: {
|
|
21
|
+
type: 'localStorage' | 'sessionStorage';
|
|
22
|
+
key: string;
|
|
23
|
+
};
|
|
24
|
+
userConfirmation?: boolean;
|
|
25
|
+
message?: string;
|
|
26
|
+
buttonText?: string;
|
|
27
|
+
};
|
|
28
|
+
mode?: 'auto' | 'manual' | 'auto-or-manual';
|
|
29
|
+
pollingIntervalMs?: number;
|
|
30
|
+
timeoutMs?: number;
|
|
31
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
32
|
+
}
|
|
33
|
+
export declare const WaitForConditionBlockSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodLiteral<"wait-for-condition">;
|
|
35
|
+
conditions: z.ZodEffects<z.ZodObject<{
|
|
36
|
+
urlPattern: z.ZodOptional<z.ZodString>;
|
|
37
|
+
elementExists: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
selector: z.ZodString;
|
|
39
|
+
findBy: z.ZodEnum<["cssSelector", "xpath"]>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
selector: string;
|
|
42
|
+
findBy: "cssSelector" | "xpath";
|
|
43
|
+
}, {
|
|
44
|
+
selector: string;
|
|
45
|
+
findBy: "cssSelector" | "xpath";
|
|
46
|
+
}>>;
|
|
47
|
+
cookieExists: z.ZodOptional<z.ZodString>;
|
|
48
|
+
storageKey: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
type: z.ZodEnum<["localStorage", "sessionStorage"]>;
|
|
50
|
+
key: z.ZodString;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
type: "localStorage" | "sessionStorage";
|
|
53
|
+
key: string;
|
|
54
|
+
}, {
|
|
55
|
+
type: "localStorage" | "sessionStorage";
|
|
56
|
+
key: string;
|
|
57
|
+
}>>;
|
|
58
|
+
userConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
message: z.ZodOptional<z.ZodString>;
|
|
60
|
+
buttonText: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
message?: string | undefined;
|
|
63
|
+
urlPattern?: string | undefined;
|
|
64
|
+
elementExists?: {
|
|
65
|
+
selector: string;
|
|
66
|
+
findBy: "cssSelector" | "xpath";
|
|
67
|
+
} | undefined;
|
|
68
|
+
cookieExists?: string | undefined;
|
|
69
|
+
storageKey?: {
|
|
70
|
+
type: "localStorage" | "sessionStorage";
|
|
71
|
+
key: string;
|
|
72
|
+
} | undefined;
|
|
73
|
+
userConfirmation?: boolean | undefined;
|
|
74
|
+
buttonText?: string | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
message?: string | undefined;
|
|
77
|
+
urlPattern?: string | undefined;
|
|
78
|
+
elementExists?: {
|
|
79
|
+
selector: string;
|
|
80
|
+
findBy: "cssSelector" | "xpath";
|
|
81
|
+
} | undefined;
|
|
82
|
+
cookieExists?: string | undefined;
|
|
83
|
+
storageKey?: {
|
|
84
|
+
type: "localStorage" | "sessionStorage";
|
|
85
|
+
key: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
userConfirmation?: boolean | undefined;
|
|
88
|
+
buttonText?: string | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
message?: string | undefined;
|
|
91
|
+
urlPattern?: string | undefined;
|
|
92
|
+
elementExists?: {
|
|
93
|
+
selector: string;
|
|
94
|
+
findBy: "cssSelector" | "xpath";
|
|
95
|
+
} | undefined;
|
|
96
|
+
cookieExists?: string | undefined;
|
|
97
|
+
storageKey?: {
|
|
98
|
+
type: "localStorage" | "sessionStorage";
|
|
99
|
+
key: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
userConfirmation?: boolean | undefined;
|
|
102
|
+
buttonText?: string | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
message?: string | undefined;
|
|
105
|
+
urlPattern?: string | undefined;
|
|
106
|
+
elementExists?: {
|
|
107
|
+
selector: string;
|
|
108
|
+
findBy: "cssSelector" | "xpath";
|
|
109
|
+
} | undefined;
|
|
110
|
+
cookieExists?: string | undefined;
|
|
111
|
+
storageKey?: {
|
|
112
|
+
type: "localStorage" | "sessionStorage";
|
|
113
|
+
key: string;
|
|
114
|
+
} | undefined;
|
|
115
|
+
userConfirmation?: boolean | undefined;
|
|
116
|
+
buttonText?: string | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
mode: z.ZodOptional<z.ZodEnum<["auto", "manual", "auto-or-manual"]>>;
|
|
119
|
+
pollingIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
position: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right"]>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
name: "wait-for-condition";
|
|
124
|
+
conditions: {
|
|
125
|
+
message?: string | undefined;
|
|
126
|
+
urlPattern?: string | undefined;
|
|
127
|
+
elementExists?: {
|
|
128
|
+
selector: string;
|
|
129
|
+
findBy: "cssSelector" | "xpath";
|
|
130
|
+
} | undefined;
|
|
131
|
+
cookieExists?: string | undefined;
|
|
132
|
+
storageKey?: {
|
|
133
|
+
type: "localStorage" | "sessionStorage";
|
|
134
|
+
key: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
userConfirmation?: boolean | undefined;
|
|
137
|
+
buttonText?: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
mode?: "auto" | "manual" | "auto-or-manual" | undefined;
|
|
140
|
+
pollingIntervalMs?: number | undefined;
|
|
141
|
+
timeoutMs?: number | undefined;
|
|
142
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
name: "wait-for-condition";
|
|
145
|
+
conditions: {
|
|
146
|
+
message?: string | undefined;
|
|
147
|
+
urlPattern?: string | undefined;
|
|
148
|
+
elementExists?: {
|
|
149
|
+
selector: string;
|
|
150
|
+
findBy: "cssSelector" | "xpath";
|
|
151
|
+
} | undefined;
|
|
152
|
+
cookieExists?: string | undefined;
|
|
153
|
+
storageKey?: {
|
|
154
|
+
type: "localStorage" | "sessionStorage";
|
|
155
|
+
key: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
userConfirmation?: boolean | undefined;
|
|
158
|
+
buttonText?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
mode?: "auto" | "manual" | "auto-or-manual" | undefined;
|
|
161
|
+
pollingIntervalMs?: number | undefined;
|
|
162
|
+
timeoutMs?: number | undefined;
|
|
163
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
export declare function validateWaitForConditionBlock(data: unknown): WaitForConditionBlock;
|
|
166
|
+
export interface WaitForConditionResult {
|
|
167
|
+
success: boolean;
|
|
168
|
+
reason?: 'urlPattern' | 'elementExists' | 'cookieExists' | 'storageKey' | 'userConfirmation' | 'timeout' | 'tabClosed';
|
|
169
|
+
message?: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* wait-for-condition block 핸들러
|
|
173
|
+
* content script에서 호출되며 floating UI와 연동
|
|
174
|
+
*/
|
|
175
|
+
export declare function handlerWaitForCondition(data: WaitForConditionBlock): Promise<BlockResult<WaitForConditionResult>>;
|
|
176
|
+
//# sourceMappingURL=WaitForConditionBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaitForConditionBlock.d.ts","sourceRoot":"","sources":["../../src/blocks/WaitForConditionBlock.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;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