abdul-react 0.0.33 → 0.0.34

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.
Files changed (106) hide show
  1. package/lib/_virtual/index11.js +2 -2
  2. package/lib/_virtual/index9.js +2 -2
  3. package/lib/assets/icons/fia_ai_icon.svg.js +846 -0
  4. package/lib/assets/icons/fia_ai_icon.svg.js.map +1 -0
  5. package/lib/components/AppHeader/AppHeader.js +1 -1
  6. package/lib/components/AppHeader/AppHeader.js.map +1 -1
  7. package/lib/components/Comments/childComment/ChildComment.js +6 -6
  8. package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
  9. package/lib/components/DragAndDrop/DragAndDrop.d.ts +2 -0
  10. package/lib/components/DragAndDrop/DragAndDrop.js +3 -1
  11. package/lib/components/DragAndDrop/DragAndDrop.js.map +1 -1
  12. package/lib/components/Editor/Editor.js +4 -2
  13. package/lib/components/Editor/Editor.js.map +1 -1
  14. package/lib/components/Editor/types.d.ts +4 -0
  15. package/lib/components/Excel/Data.d.ts +60 -0
  16. package/lib/components/Excel/Data.js +12 -2
  17. package/lib/components/Excel/Data.js.map +1 -1
  18. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +26 -14
  19. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  20. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +6 -1
  21. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +36 -11
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.d.ts +0 -3
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js +4 -8
  26. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js.map +1 -1
  27. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.js +5 -1
  28. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.js.map +1 -1
  29. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +4 -4
  30. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
  31. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.d.ts +0 -3
  32. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js +5 -9
  33. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js.map +1 -1
  34. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +160 -189
  35. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  36. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js +9 -13
  37. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js.map +1 -1
  38. package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.js +1 -0
  39. package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.js.map +1 -1
  40. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +51 -16
  41. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
  42. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +1 -1
  43. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
  44. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +3 -5
  45. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +6 -18
  46. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +118 -67
  47. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
  48. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js +26 -25
  49. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js.map +1 -1
  50. package/lib/components/Excel/dataConversion.js +12 -3
  51. package/lib/components/Excel/dataConversion.js.map +1 -1
  52. package/lib/components/Icon/Icon.js +14 -1
  53. package/lib/components/Icon/Icon.js.map +1 -1
  54. package/lib/components/Icon/iconList.js +2 -0
  55. package/lib/components/Icon/iconList.js.map +1 -1
  56. package/lib/components/Input/Input.js +3 -2
  57. package/lib/components/Input/Input.js.map +1 -1
  58. package/lib/components/Input/types.d.ts +1 -0
  59. package/lib/components/MachineInputField/MachineInputField.js +2 -2
  60. package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
  61. package/lib/components/PrePostTable/PrePostTable.js +2 -0
  62. package/lib/components/PrePostTable/PrePostTable.js.map +1 -1
  63. package/lib/components/Prompt/Prompt.js +15 -1
  64. package/lib/components/Prompt/Prompt.js.map +1 -1
  65. package/lib/components/Prompt/types.d.ts +4 -0
  66. package/lib/components/Select/Select.js +3 -1
  67. package/lib/components/Select/Select.js.map +1 -1
  68. package/lib/components/Select/components/Dropdown.js +2 -1
  69. package/lib/components/Select/components/Dropdown.js.map +1 -1
  70. package/lib/components/Select/types.d.ts +3 -2
  71. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +4 -4
  72. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
  73. package/lib/components/StepsLandingTable/Components/StepInnerTable.js +2 -0
  74. package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
  75. package/lib/components/StepsLandingTable/StepLandingTable.js +5 -2
  76. package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
  77. package/lib/components/StepsLandingTable/types.d.ts +1 -0
  78. package/lib/components/TableTreeFn/TableTreeFn.js +30 -0
  79. package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
  80. package/lib/components/Toggle/Toggle.js +6 -2
  81. package/lib/components/Toggle/Toggle.js.map +1 -1
  82. package/lib/hooks/useFileDropzone.js +45 -17
  83. package/lib/hooks/useFileDropzone.js.map +1 -1
  84. package/lib/index.cjs +1582 -400
  85. package/lib/index.cjs.map +1 -1
  86. package/lib/index.d.ts +22 -3
  87. package/lib/index.js +1 -0
  88. package/lib/index.js.map +1 -1
  89. package/lib/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +106 -0
  90. package/lib/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js.map +1 -0
  91. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  92. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  93. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  94. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  95. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  96. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  97. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  98. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  99. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  100. package/lib/styles.css +1 -1
  101. package/lib/styles.css.map +1 -1
  102. package/lib/tsconfig.tsbuildinfo +1 -1
  103. package/lib/utils/useDeviceType/useDeviceType.d.ts +6 -0
  104. package/lib/utils/useDeviceType/useDeviceType.js +27 -0
  105. package/lib/utils/useDeviceType/useDeviceType.js.map +1 -0
  106. package/package.json +2 -1
package/lib/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import * as Form from 'react-hook-form';
7
7
  import * as DNDCore from '@dnd-kit/core';
8
8
  import * as DNDSortable from '@dnd-kit/sortable';
9
9
  import * as DNDUtilities from '@dnd-kit/utilities';
10
+ import * as DNDModifiers from '@dnd-kit/modifiers';
10
11
  import ReCAPTCHA from 'react-google-recaptcha';
11
12
  export { default as Janus } from 'janus-gateway';
12
13
  export { default as adapter } from 'webrtc-adapter';
@@ -852,6 +853,7 @@ interface InputProps {
852
853
  */
853
854
  disableAfterMaxValueReached?: boolean;
854
855
  helperTextWidth?: string | number;
856
+ fixedLabel?: boolean;
855
857
  }
856
858
 
857
859
  declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
@@ -991,8 +993,8 @@ interface SelectProps$1 {
991
993
  */
992
994
  background?: string;
993
995
  /**
994
- * No Result message
995
- */
996
+ * No Result message
997
+ */
996
998
  noResultsMessage?: string;
997
999
  /**
998
1000
  * Ref for select option dropdown
@@ -1002,6 +1004,7 @@ interface SelectProps$1 {
1002
1004
  * handling dropdownDown height
1003
1005
  */
1004
1006
  dropDownHeight?: number;
1007
+ onSearchText?: (text: string) => void;
1005
1008
  }
1006
1009
  type OptionValue$3 = any;
1007
1010
  interface Option$5 {
@@ -2622,6 +2625,7 @@ declare const DragAndDrop: {
2622
2625
  DNDCore: typeof DNDCore;
2623
2626
  DNDSortable: typeof DNDSortable;
2624
2627
  DNDUtilities: typeof DNDUtilities;
2628
+ DNDModifiers: typeof DNDModifiers;
2625
2629
  };
2626
2630
 
2627
2631
  interface VariableInputProps {
@@ -3550,6 +3554,10 @@ interface EditorProps {
3550
3554
  * Defaukt value for the editor
3551
3555
  */
3552
3556
  defaultValue?: string;
3557
+ /**
3558
+ * Custom Monaco Editor options
3559
+ */
3560
+ customOptions?: any;
3553
3561
  }
3554
3562
  interface dropdownPositionType {
3555
3563
  top: number;
@@ -3920,6 +3928,10 @@ interface promptProp {
3920
3928
  tooltipTitle?: string;
3921
3929
  value: string;
3922
3930
  disableInput?: boolean;
3931
+ isAdditionalIcon?: boolean;
3932
+ additionalIconName?: string;
3933
+ onAdditionalIconClick?: () => void;
3934
+ additionIconToolTip?: string;
3923
3935
  onPromptChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
3924
3936
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
3925
3937
  onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
@@ -5600,4 +5612,11 @@ interface ScriptGenerationLoaderProps {
5600
5612
 
5601
5613
  declare const ScriptGenerationLoader: React__default.FC<ScriptGenerationLoaderProps>;
5602
5614
 
5603
- export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, ChatModal, ChatModalAi, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LineChart, LineLoader, Link, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NoDataContent, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, type RootNode$1 as RootNode, Row, SCRIPT_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SequentialConnectingBranch, SessionDropdown, SessionManager, StateDropdown, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, type TreeNodeProps, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, XML_FILE_TYPE_VALIDATION, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, clearStore, compareArrays, compareObjects, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, rearrangeDragItem, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateTreeState, useBeforeUnload, useClickOutside, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl };
5615
+ declare const useDeviceType: () => {
5616
+ isMobile: boolean;
5617
+ isTab: boolean;
5618
+ isLargeTab: boolean;
5619
+ isWeb: boolean;
5620
+ };
5621
+
5622
+ export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, ChatModal, ChatModalAi, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LineChart, LineLoader, Link, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NoDataContent, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, type RootNode$1 as RootNode, Row, SCRIPT_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SequentialConnectingBranch, SessionDropdown, SessionManager, StateDropdown, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, type TreeNodeProps, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, XML_FILE_TYPE_VALIDATION, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, clearStore, compareArrays, compareObjects, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, rearrangeDragItem, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateTreeState, useBeforeUnload, useClickOutside, useDeviceType, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl };
package/lib/index.js CHANGED
@@ -165,4 +165,5 @@ export { default as Janus } from './node_modules/janus-gateway/npm/dist/janus.es
165
165
  export { default as adapter } from './node_modules/webrtc-adapter/src/js/adapter_core.js';
166
166
  export { default as StepResultStats } from './components/StepsLandingTable/Components/StepResultStats.js';
167
167
  export { default as ScriptGenerationLoader } from './components/ScriptGenerationLoader/ScriptGenerationLoader.js';
168
+ export { useDeviceType } from './utils/useDeviceType/useDeviceType.js';
168
169
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,106 @@
1
+ import { getEventCoordinates } from '../../utilities/dist/utilities.esm.js';
2
+
3
+ function createSnapModifier(gridSize) {
4
+ return _ref => {
5
+ let {
6
+ transform
7
+ } = _ref;
8
+ return {
9
+ ...transform,
10
+ x: Math.ceil(transform.x / gridSize) * gridSize,
11
+ y: Math.ceil(transform.y / gridSize) * gridSize
12
+ };
13
+ };
14
+ }
15
+ const restrictToHorizontalAxis = _ref => {
16
+ let {
17
+ transform
18
+ } = _ref;
19
+ return {
20
+ ...transform,
21
+ y: 0
22
+ };
23
+ };
24
+ function restrictToBoundingRect(transform, rect, boundingRect) {
25
+ const value = {
26
+ ...transform
27
+ };
28
+ if (rect.top + transform.y <= boundingRect.top) {
29
+ value.y = boundingRect.top - rect.top;
30
+ } else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {
31
+ value.y = boundingRect.top + boundingRect.height - rect.bottom;
32
+ }
33
+ if (rect.left + transform.x <= boundingRect.left) {
34
+ value.x = boundingRect.left - rect.left;
35
+ } else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {
36
+ value.x = boundingRect.left + boundingRect.width - rect.right;
37
+ }
38
+ return value;
39
+ }
40
+ const restrictToParentElement = _ref => {
41
+ let {
42
+ containerNodeRect,
43
+ draggingNodeRect,
44
+ transform
45
+ } = _ref;
46
+ if (!draggingNodeRect || !containerNodeRect) {
47
+ return transform;
48
+ }
49
+ return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);
50
+ };
51
+ const restrictToFirstScrollableAncestor = _ref => {
52
+ let {
53
+ draggingNodeRect,
54
+ transform,
55
+ scrollableAncestorRects
56
+ } = _ref;
57
+ const firstScrollableAncestorRect = scrollableAncestorRects[0];
58
+ if (!draggingNodeRect || !firstScrollableAncestorRect) {
59
+ return transform;
60
+ }
61
+ return restrictToBoundingRect(transform, draggingNodeRect, firstScrollableAncestorRect);
62
+ };
63
+ const restrictToVerticalAxis = _ref => {
64
+ let {
65
+ transform
66
+ } = _ref;
67
+ return {
68
+ ...transform,
69
+ x: 0
70
+ };
71
+ };
72
+ const restrictToWindowEdges = _ref => {
73
+ let {
74
+ transform,
75
+ draggingNodeRect,
76
+ windowRect
77
+ } = _ref;
78
+ if (!draggingNodeRect || !windowRect) {
79
+ return transform;
80
+ }
81
+ return restrictToBoundingRect(transform, draggingNodeRect, windowRect);
82
+ };
83
+ const snapCenterToCursor = _ref => {
84
+ let {
85
+ activatorEvent,
86
+ draggingNodeRect,
87
+ transform
88
+ } = _ref;
89
+ if (draggingNodeRect && activatorEvent) {
90
+ const activatorCoordinates = getEventCoordinates(activatorEvent);
91
+ if (!activatorCoordinates) {
92
+ return transform;
93
+ }
94
+ const offsetX = activatorCoordinates.x - draggingNodeRect.left;
95
+ const offsetY = activatorCoordinates.y - draggingNodeRect.top;
96
+ return {
97
+ ...transform,
98
+ x: transform.x + offsetX - draggingNodeRect.width / 2,
99
+ y: transform.y + offsetY - draggingNodeRect.height / 2
100
+ };
101
+ }
102
+ return transform;
103
+ };
104
+
105
+ export { createSnapModifier, restrictToFirstScrollableAncestor, restrictToHorizontalAxis, restrictToParentElement, restrictToVerticalAxis, restrictToWindowEdges, snapCenterToCursor };
106
+ //# sourceMappingURL=modifiers.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modifiers.esm.js","sources":["../../../../../node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js"],"sourcesContent":["import { getEventCoordinates } from '@dnd-kit/utilities';\n\nfunction createSnapModifier(gridSize) {\n return _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n x: Math.ceil(transform.x / gridSize) * gridSize,\n y: Math.ceil(transform.y / gridSize) * gridSize\n };\n };\n}\n\nconst restrictToHorizontalAxis = _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n y: 0\n };\n};\n\nfunction restrictToBoundingRect(transform, rect, boundingRect) {\n const value = { ...transform\n };\n\n if (rect.top + transform.y <= boundingRect.top) {\n value.y = boundingRect.top - rect.top;\n } else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {\n value.y = boundingRect.top + boundingRect.height - rect.bottom;\n }\n\n if (rect.left + transform.x <= boundingRect.left) {\n value.x = boundingRect.left - rect.left;\n } else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {\n value.x = boundingRect.left + boundingRect.width - rect.right;\n }\n\n return value;\n}\n\nconst restrictToParentElement = _ref => {\n let {\n containerNodeRect,\n draggingNodeRect,\n transform\n } = _ref;\n\n if (!draggingNodeRect || !containerNodeRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);\n};\n\nconst restrictToFirstScrollableAncestor = _ref => {\n let {\n draggingNodeRect,\n transform,\n scrollableAncestorRects\n } = _ref;\n const firstScrollableAncestorRect = scrollableAncestorRects[0];\n\n if (!draggingNodeRect || !firstScrollableAncestorRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, firstScrollableAncestorRect);\n};\n\nconst restrictToVerticalAxis = _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n x: 0\n };\n};\n\nconst restrictToWindowEdges = _ref => {\n let {\n transform,\n draggingNodeRect,\n windowRect\n } = _ref;\n\n if (!draggingNodeRect || !windowRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, windowRect);\n};\n\nconst snapCenterToCursor = _ref => {\n let {\n activatorEvent,\n draggingNodeRect,\n transform\n } = _ref;\n\n if (draggingNodeRect && activatorEvent) {\n const activatorCoordinates = getEventCoordinates(activatorEvent);\n\n if (!activatorCoordinates) {\n return transform;\n }\n\n const offsetX = activatorCoordinates.x - draggingNodeRect.left;\n const offsetY = activatorCoordinates.y - draggingNodeRect.top;\n return { ...transform,\n x: transform.x + offsetX - draggingNodeRect.width / 2,\n y: transform.y + offsetY - draggingNodeRect.height / 2\n };\n }\n\n return transform;\n};\n\nexport { createSnapModifier, restrictToFirstScrollableAncestor, restrictToHorizontalAxis, restrictToParentElement, restrictToVerticalAxis, restrictToWindowEdges, snapCenterToCursor };\n//# sourceMappingURL=modifiers.esm.js.map\n"],"names":["createSnapModifier","gridSize","_ref","transform","x","Math","ceil","y"],"mappings":";;AAEgBA,SAAAA,kBAAAA,CAAmBC,QAAA,EAAA;AACjC,EAAA,OAAOC,IAAA,IAAA;IAAA,IAAC;AAACC,MAAAA;AAAF,KAAA,GAAAD,IAAA;IAAA,OAAkB;AACvB,MAAA,GAAGC,SADoB;MAEvBC,CAAC,EAAEC,IAAI,CAACC,IAAL,CAAUH,SAAS,CAACC,CAAV,GAAcH,QAAxB,CAAA,GAAoCA,QAFhB;MAGvBM,CAAC,EAAEF,IAAI,CAACC,IAAL,CAAUH,SAAS,CAACI,CAAV,GAAcN,QAAxB,CAAoCA,GAAAA;AAHlC,KAAA;AAAP,GAAA;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
1
+ import { __exports as beautifier } from '../../../../../_virtual/beautifier.js';
2
2
  import { __require as requireOptions } from './options.js';
3
3
  import { __require as requireOutput } from '../core/output.js';
4
4
  import { __require as requireInputscanner } from '../core/inputscanner.js';
@@ -1,4 +1,4 @@
1
- import { __module as css } from '../../../../../_virtual/index11.js';
1
+ import { __module as css } from '../../../../../_virtual/index9.js';
2
2
  import { __require as requireBeautifier } from './beautifier.js';
3
3
  import { __require as requireOptions } from './options.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as options } from '../../../../../_virtual/options2.js';
1
+ import { __exports as options } from '../../../../../_virtual/options.js';
2
2
  import { __require as requireOptions$1 } from '../core/options.js';
3
3
 
4
4
  /*jshint node:true */
@@ -1,4 +1,4 @@
1
- import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
1
+ import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
2
2
  import { __require as requireOptions } from './options.js';
3
3
  import { __require as requireOutput } from '../core/output.js';
4
4
  import { __require as requireTokenizer } from './tokenizer.js';
@@ -1,4 +1,4 @@
1
- import { __module as html } from '../../../../../_virtual/index9.js';
1
+ import { __module as html } from '../../../../../_virtual/index11.js';
2
2
  import { __require as requireBeautifier } from './beautifier.js';
3
3
  import { __require as requireOptions } from './options.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
2
2
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
3
3
  import { __require as requireDirectives } from '../core/directives.js';
4
4
  import { __require as requireTemplatablepattern } from '../core/templatablepattern.js';
@@ -1,4 +1,4 @@
1
- import { __exports as beautifier } from '../../../../../_virtual/beautifier.js';
1
+ import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
2
2
  import { __require as requireOutput } from '../core/output.js';
3
3
  import { __require as requireToken } from '../core/token.js';
4
4
  import { __require as requireAcorn } from './acorn.js';
@@ -1,4 +1,4 @@
1
- import { __exports as options } from '../../../../../_virtual/options.js';
1
+ import { __exports as options } from '../../../../../_virtual/options2.js';
2
2
  import { __require as requireOptions$1 } from '../core/options.js';
3
3
 
4
4
  /*jshint node:true */
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
2
2
  import { __require as requireInputscanner } from '../core/inputscanner.js';
3
3
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
4
4
  import { __require as requireDirectives } from '../core/directives.js';