Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rpascene/shared

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpascene/shared - npm Package Compare versions

Comparing version
0.30.12
to
0.30.13
+73
-27
dist/es/constants/index.mjs

@@ -24,52 +24,98 @@ import { PLAYWRIGHT_EXAMPLE_CODE, YAML_EXAMPLE_CODE } from "./example-code.mjs";

const DEFAULT_WAIT_FOR_NETWORK_IDLE_CONCURRENCY = 2;
const rpasceneCommand = {
Tap: "Tap",
RightClick: "RightClick",
DoubleClick: "DoubleClick",
Hover: "Hover",
Input: "Input",
KeyboardPress: "KeyboardPress",
Scroll: "Scroll",
DragAndDrop: "DragAndDrop",
ClearInput: "ClearInput",
Sleep: "Sleep",
LongPress: "LongPress",
Swipe: "Swipe",
Reload: "Reload",
GoBack: "GoBack",
Navigate: 'Navigate'
};
const rpastudioCommand = {
SeleniumClickCommand: "SeleniumClickCommand",
SeleniumRightClickCommand: "SeleniumRightClickCommand",
SeleniumDoubleClickCommand: "SeleniumDoubleClickCommand",
SeleniumMouseHoverCommand: "SeleniumMouseHoverCommand",
SeleniumSetValueCommand: "SeleniumSetValueCommand",
SeleniumElementSendKeysCommand: "SeleniumElementSendKeysCommand",
SeleniumSendKeysCommand: "SeleniumSendKeysCommand",
SeleniumElementScrollCommand: 'SeleniumElementScrollCommand',
SeleniumWindowScrollCommand: 'SeleniumWindowScrollCommand',
SeleniumDragAndDropCommand: 'SeleniumDragAndDropCommand',
SeleniumClearValueCommand: "SeleniumClearValueCommand",
PauseCommand: "PauseCommand",
SeleniumBrowserRefreshCommand: "SeleniumBrowserRefreshCommand",
SeleniumBrowserNavigateBackCommand: 'SeleniumBrowserNavigateBackCommand',
SeleniumBrowserNavigateCommand: 'SeleniumBrowserNavigateCommand'
};
const commandMap = {
Tap: {
CommandName: "SeleniumClickCommand",
[rpasceneCommand.Tap]: {
CommandName: rpastudioCommand.SeleniumClickCommand,
DisplayName: "\u5143\u7D20\u70B9\u51FB"
},
RightClick: {
CommandName: "SeleniumRightClickCommand",
[rpasceneCommand.RightClick]: {
CommandName: rpastudioCommand.SeleniumRightClickCommand,
DisplayName: "\u5143\u7D20\u53F3\u952E\u70B9\u51FB"
},
DoubleClick: {
CommandName: "SeleniumDoubleClickCommand",
[rpasceneCommand.DoubleClick]: {
CommandName: rpastudioCommand.SeleniumDoubleClickCommand,
DisplayName: "\u5143\u7D20\u53CC\u51FB"
},
Hover: {
CommandName: "SeleniumMouseHoverCommand",
[rpasceneCommand.Hover]: {
CommandName: rpastudioCommand.SeleniumMouseHoverCommand,
DisplayName: "\u9F20\u6807\u60AC\u505C"
},
Input: {
CommandName: "SeleniumSetValueCommand",
[rpasceneCommand.Input]: {
CommandName: rpastudioCommand.SeleniumSetValueCommand,
DisplayName: "\u8BBE\u7F6E\u6587\u672C"
},
KeyboardPress: {
CommandName: "SeleniumSendKeysCommand",
[rpasceneCommand.KeyboardPress]: {
CommandName: rpastudioCommand.SeleniumElementSendKeysCommand,
DisplayName: "\u6A21\u62DF\u6309\u952E"
},
Scroll: {
CommandName: "SeleniumElementScrollCommand",
[rpasceneCommand.Scroll]: {
CommandName: rpastudioCommand.SeleniumElementScrollCommand,
DisplayName: "\u5143\u7D20\u6EDA\u52A8"
},
DragAndDrop: {
CommandName: "SeleniumDragDropCommand",
[rpasceneCommand.DragAndDrop]: {
CommandName: rpastudioCommand.SeleniumDragAndDropCommand,
DisplayName: "\u5143\u7D20\u62D6\u62FD\uFF08\u81F3\u6307\u5B9A\u5143\u7D20\uFF09"
},
ClearInput: {
CommandName: "SeleniumClearTextCommand",
[rpasceneCommand.ClearInput]: {
CommandName: rpastudioCommand.SeleniumClearValueCommand,
DisplayName: "\u6E05\u7A7A\u6587\u672C"
},
Sleep: {
CommandName: "SeleniumPauseCommand",
[rpasceneCommand.Sleep]: {
CommandName: rpastudioCommand.PauseCommand,
DisplayName: "\u6682\u505C\u811A\u672C"
},
LongPress: {
CommandName: "SeleniumSendKeysCommand",
DisplayName: "\u6A21\u62DF\u6309\u952E"
[rpasceneCommand.LongPress]: {
CommandName: "",
DisplayName: ""
},
Swipe: {
CommandName: "SeleniumClickCommand",
DisplayName: "\u5143\u7D20\u70B9\u51FB"
[rpasceneCommand.Swipe]: {
CommandName: "",
DisplayName: ""
},
[rpasceneCommand.Reload]: {
CommandName: rpastudioCommand.SeleniumBrowserRefreshCommand,
DisplayName: "\u5237\u65B0"
},
[rpasceneCommand.GoBack]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateBackCommand,
DisplayName: "\u540E\u9000"
},
[rpasceneCommand.Navigate]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateCommand,
DisplayName: "\u6253\u5F00\u9875\u9762"
}
};
export { CONTAINER_MINI_HEIGHT, CONTAINER_MINI_WIDTH, DEFAULT_WAIT_FOR_NAVIGATION_TIMEOUT, DEFAULT_WAIT_FOR_NETWORK_IDLE_CONCURRENCY, DEFAULT_WAIT_FOR_NETWORK_IDLE_TIME, DEFAULT_WAIT_FOR_NETWORK_IDLE_TIMEOUT, DEFAULT_WDA_PORT, constants_NodeType as NodeType, PLAYGROUND_SERVER_PORT, PLAYWRIGHT_EXAMPLE_CODE, SCRCPY_SERVER_PORT, TEXT_MAX_SIZE, TEXT_SIZE_THRESHOLD, WEBDRIVER_ELEMENT_ID_KEY, YAML_EXAMPLE_CODE, commandMap };
export { CONTAINER_MINI_HEIGHT, CONTAINER_MINI_WIDTH, DEFAULT_WAIT_FOR_NAVIGATION_TIMEOUT, DEFAULT_WAIT_FOR_NETWORK_IDLE_CONCURRENCY, DEFAULT_WAIT_FOR_NETWORK_IDLE_TIME, DEFAULT_WAIT_FOR_NETWORK_IDLE_TIMEOUT, DEFAULT_WDA_PORT, constants_NodeType as NodeType, PLAYGROUND_SERVER_PORT, PLAYWRIGHT_EXAMPLE_CODE, SCRCPY_SERVER_PORT, TEXT_MAX_SIZE, TEXT_SIZE_THRESHOLD, WEBDRIVER_ELEMENT_ID_KEY, YAML_EXAMPLE_CODE, commandMap, rpasceneCommand, rpastudioCommand };

@@ -36,2 +36,3 @@ "use strict";

CONTAINER_MINI_WIDTH: ()=>CONTAINER_MINI_WIDTH,
rpastudioCommand: ()=>rpastudioCommand,
CONTAINER_MINI_HEIGHT: ()=>CONTAINER_MINI_HEIGHT,

@@ -41,2 +42,3 @@ TEXT_MAX_SIZE: ()=>TEXT_MAX_SIZE,

WEBDRIVER_ELEMENT_ID_KEY: ()=>WEBDRIVER_ELEMENT_ID_KEY,
rpasceneCommand: ()=>rpasceneCommand,
DEFAULT_WDA_PORT: ()=>DEFAULT_WDA_PORT,

@@ -69,50 +71,96 @@ DEFAULT_WAIT_FOR_NETWORK_IDLE_TIME: ()=>DEFAULT_WAIT_FOR_NETWORK_IDLE_TIME,

const DEFAULT_WAIT_FOR_NETWORK_IDLE_CONCURRENCY = 2;
const rpasceneCommand = {
Tap: "Tap",
RightClick: "RightClick",
DoubleClick: "DoubleClick",
Hover: "Hover",
Input: "Input",
KeyboardPress: "KeyboardPress",
Scroll: "Scroll",
DragAndDrop: "DragAndDrop",
ClearInput: "ClearInput",
Sleep: "Sleep",
LongPress: "LongPress",
Swipe: "Swipe",
Reload: "Reload",
GoBack: "GoBack",
Navigate: 'Navigate'
};
const rpastudioCommand = {
SeleniumClickCommand: "SeleniumClickCommand",
SeleniumRightClickCommand: "SeleniumRightClickCommand",
SeleniumDoubleClickCommand: "SeleniumDoubleClickCommand",
SeleniumMouseHoverCommand: "SeleniumMouseHoverCommand",
SeleniumSetValueCommand: "SeleniumSetValueCommand",
SeleniumElementSendKeysCommand: "SeleniumElementSendKeysCommand",
SeleniumSendKeysCommand: "SeleniumSendKeysCommand",
SeleniumElementScrollCommand: 'SeleniumElementScrollCommand',
SeleniumWindowScrollCommand: 'SeleniumWindowScrollCommand',
SeleniumDragAndDropCommand: 'SeleniumDragAndDropCommand',
SeleniumClearValueCommand: "SeleniumClearValueCommand",
PauseCommand: "PauseCommand",
SeleniumBrowserRefreshCommand: "SeleniumBrowserRefreshCommand",
SeleniumBrowserNavigateBackCommand: 'SeleniumBrowserNavigateBackCommand',
SeleniumBrowserNavigateCommand: 'SeleniumBrowserNavigateCommand'
};
const commandMap = {
Tap: {
CommandName: "SeleniumClickCommand",
[rpasceneCommand.Tap]: {
CommandName: rpastudioCommand.SeleniumClickCommand,
DisplayName: "\u5143\u7D20\u70B9\u51FB"
},
RightClick: {
CommandName: "SeleniumRightClickCommand",
[rpasceneCommand.RightClick]: {
CommandName: rpastudioCommand.SeleniumRightClickCommand,
DisplayName: "\u5143\u7D20\u53F3\u952E\u70B9\u51FB"
},
DoubleClick: {
CommandName: "SeleniumDoubleClickCommand",
[rpasceneCommand.DoubleClick]: {
CommandName: rpastudioCommand.SeleniumDoubleClickCommand,
DisplayName: "\u5143\u7D20\u53CC\u51FB"
},
Hover: {
CommandName: "SeleniumMouseHoverCommand",
[rpasceneCommand.Hover]: {
CommandName: rpastudioCommand.SeleniumMouseHoverCommand,
DisplayName: "\u9F20\u6807\u60AC\u505C"
},
Input: {
CommandName: "SeleniumSetValueCommand",
[rpasceneCommand.Input]: {
CommandName: rpastudioCommand.SeleniumSetValueCommand,
DisplayName: "\u8BBE\u7F6E\u6587\u672C"
},
KeyboardPress: {
CommandName: "SeleniumSendKeysCommand",
[rpasceneCommand.KeyboardPress]: {
CommandName: rpastudioCommand.SeleniumElementSendKeysCommand,
DisplayName: "\u6A21\u62DF\u6309\u952E"
},
Scroll: {
CommandName: "SeleniumElementScrollCommand",
[rpasceneCommand.Scroll]: {
CommandName: rpastudioCommand.SeleniumElementScrollCommand,
DisplayName: "\u5143\u7D20\u6EDA\u52A8"
},
DragAndDrop: {
CommandName: "SeleniumDragDropCommand",
[rpasceneCommand.DragAndDrop]: {
CommandName: rpastudioCommand.SeleniumDragAndDropCommand,
DisplayName: "\u5143\u7D20\u62D6\u62FD\uFF08\u81F3\u6307\u5B9A\u5143\u7D20\uFF09"
},
ClearInput: {
CommandName: "SeleniumClearTextCommand",
[rpasceneCommand.ClearInput]: {
CommandName: rpastudioCommand.SeleniumClearValueCommand,
DisplayName: "\u6E05\u7A7A\u6587\u672C"
},
Sleep: {
CommandName: "SeleniumPauseCommand",
[rpasceneCommand.Sleep]: {
CommandName: rpastudioCommand.PauseCommand,
DisplayName: "\u6682\u505C\u811A\u672C"
},
LongPress: {
CommandName: "SeleniumSendKeysCommand",
DisplayName: "\u6A21\u62DF\u6309\u952E"
[rpasceneCommand.LongPress]: {
CommandName: "",
DisplayName: ""
},
Swipe: {
CommandName: "SeleniumClickCommand",
DisplayName: "\u5143\u7D20\u70B9\u51FB"
[rpasceneCommand.Swipe]: {
CommandName: "",
DisplayName: ""
},
[rpasceneCommand.Reload]: {
CommandName: rpastudioCommand.SeleniumBrowserRefreshCommand,
DisplayName: "\u5237\u65B0"
},
[rpasceneCommand.GoBack]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateBackCommand,
DisplayName: "\u540E\u9000"
},
[rpasceneCommand.Navigate]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateCommand,
DisplayName: "\u6253\u5F00\u9875\u9762"
}

@@ -136,2 +184,4 @@ };

exports.commandMap = __webpack_exports__.commandMap;
exports.rpasceneCommand = __webpack_exports__.rpasceneCommand;
exports.rpastudioCommand = __webpack_exports__.rpastudioCommand;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [

@@ -153,3 +203,5 @@ "CONTAINER_MINI_HEIGHT",

"YAML_EXAMPLE_CODE",
"commandMap"
"commandMap",
"rpasceneCommand",
"rpastudioCommand"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];

@@ -156,0 +208,0 @@ Object.defineProperty(exports, '__esModule', {

@@ -23,2 +23,36 @@ export declare const TEXT_SIZE_THRESHOLD = 9;

export { PLAYWRIGHT_EXAMPLE_CODE, YAML_EXAMPLE_CODE } from './example-code';
export declare const rpasceneCommand: {
Tap: string;
RightClick: string;
DoubleClick: string;
Hover: string;
Input: string;
KeyboardPress: string;
Scroll: string;
DragAndDrop: string;
ClearInput: string;
Sleep: string;
LongPress: string;
Swipe: string;
Reload: string;
GoBack: string;
Navigate: string;
};
export declare const rpastudioCommand: {
SeleniumClickCommand: string;
SeleniumRightClickCommand: string;
SeleniumDoubleClickCommand: string;
SeleniumMouseHoverCommand: string;
SeleniumSetValueCommand: string;
SeleniumElementSendKeysCommand: string;
SeleniumSendKeysCommand: string;
SeleniumElementScrollCommand: string;
SeleniumWindowScrollCommand: string;
SeleniumDragAndDropCommand: string;
SeleniumClearValueCommand: string;
PauseCommand: string;
SeleniumBrowserRefreshCommand: string;
SeleniumBrowserNavigateBackCommand: string;
SeleniumBrowserNavigateCommand: string;
};
export declare const commandMap: any;
{
"name": "@rpascene/shared",
"description": "RPA shared",
"version": "0.30.12",
"version": "0.30.13",
"repository": "",

@@ -6,0 +6,0 @@ "homepage": "",

@@ -32,51 +32,102 @@ export const TEXT_SIZE_THRESHOLD = 9;

export const rpasceneCommand = {
Tap: "Tap",
RightClick: "RightClick",
DoubleClick: "DoubleClick",
Hover: "Hover",
Input: "Input",
KeyboardPress: "KeyboardPress",
Scroll: "Scroll",
DragAndDrop: "DragAndDrop",
ClearInput: "ClearInput",
Sleep: "Sleep",
LongPress: "LongPress",
Swipe: "Swipe",
Reload: "Reload",
GoBack: "GoBack",
Navigate: 'Navigate'
}
export const rpastudioCommand = {
SeleniumClickCommand: "SeleniumClickCommand",
SeleniumRightClickCommand: "SeleniumRightClickCommand",
SeleniumDoubleClickCommand: "SeleniumDoubleClickCommand",
SeleniumMouseHoverCommand: "SeleniumMouseHoverCommand",
SeleniumSetValueCommand: "SeleniumSetValueCommand",
SeleniumElementSendKeysCommand: "SeleniumElementSendKeysCommand",
SeleniumSendKeysCommand: "SeleniumSendKeysCommand",
SeleniumElementScrollCommand: 'SeleniumElementScrollCommand',
SeleniumWindowScrollCommand: 'SeleniumWindowScrollCommand',
SeleniumDragAndDropCommand: 'SeleniumDragAndDropCommand',
SeleniumClearValueCommand: "SeleniumClearValueCommand",
PauseCommand: "PauseCommand",
SeleniumBrowserRefreshCommand: "SeleniumBrowserRefreshCommand",
SeleniumBrowserNavigateBackCommand: 'SeleniumBrowserNavigateBackCommand',
SeleniumBrowserNavigateCommand: 'SeleniumBrowserNavigateCommand'
}
export const commandMap: any = {
Tap: {
CommandName: "SeleniumClickCommand",
[rpasceneCommand.Tap]: {
CommandName: rpastudioCommand.SeleniumClickCommand,
DisplayName: '元素点击'
},
RightClick: {
CommandName: "SeleniumRightClickCommand",
[rpasceneCommand.RightClick]: {
CommandName: rpastudioCommand.SeleniumRightClickCommand,
DisplayName: "元素右键点击"
},
DoubleClick: {
CommandName: "SeleniumDoubleClickCommand",
[rpasceneCommand.DoubleClick]: {
CommandName: rpastudioCommand.SeleniumDoubleClickCommand,
DisplayName: "元素双击"
},
Hover: {
CommandName: "SeleniumMouseHoverCommand",
[rpasceneCommand.Hover]: {
CommandName: rpastudioCommand.SeleniumMouseHoverCommand,
DisplayName: "鼠标悬停"
},
Input: {
CommandName: "SeleniumSetValueCommand",
[rpasceneCommand.Input]: {
CommandName: rpastudioCommand.SeleniumSetValueCommand,
DisplayName: "设置文本"
},
KeyboardPress: {
CommandName: "SeleniumSendKeysCommand",
[rpasceneCommand.KeyboardPress]: {
CommandName: rpastudioCommand.SeleniumElementSendKeysCommand,
DisplayName: "模拟按键"
},
Scroll: {
CommandName: "SeleniumElementScrollCommand",
[rpasceneCommand.Scroll]: {
CommandName: rpastudioCommand.SeleniumElementScrollCommand,
DisplayName: "元素滚动"
},
DragAndDrop: {
CommandName: "SeleniumDragDropCommand",
[rpasceneCommand.DragAndDrop]: {
CommandName: rpastudioCommand.SeleniumDragAndDropCommand,
DisplayName: "元素拖拽(至指定元素)"
},
ClearInput: {
CommandName: "SeleniumClearTextCommand",
[rpasceneCommand.ClearInput]: {
CommandName: rpastudioCommand.SeleniumClearValueCommand,
DisplayName: "清空文本"
},
Sleep: {
CommandName: "SeleniumPauseCommand",
[rpasceneCommand.Sleep]: {
CommandName: rpastudioCommand.PauseCommand,
DisplayName: "暂停脚本"
},
LongPress: {
CommandName: "SeleniumSendKeysCommand",
DisplayName: "模拟按键"
[rpasceneCommand.LongPress]: {
CommandName: "",
DisplayName: ""
},
Swipe: {
CommandName: "SeleniumClickCommand",
DisplayName: "元素点击"
[rpasceneCommand.Swipe]: {
CommandName: "",
DisplayName: ""
},
[rpasceneCommand.Reload]: {
CommandName: rpastudioCommand.SeleniumBrowserRefreshCommand,
DisplayName: "刷新"
},
[rpasceneCommand.GoBack]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateBackCommand,
DisplayName: "后退"
},
[rpasceneCommand.Navigate]: {
CommandName: rpastudioCommand.SeleniumBrowserNavigateCommand,
DisplayName: "打开页面"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display