@beppla/tapas-ui 1.4.35 → 1.5.2
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/commonjs/Alert/Alert.js +88 -0
- package/commonjs/BarChart/BarChart.js +543 -0
- package/commonjs/BarChart/BarChart.js.map +1 -0
- package/commonjs/Button/ButtonGroup.js +154 -0
- package/commonjs/Button/ButtonGroup.js.map +1 -0
- package/commonjs/Calendar/ConcreteTimeSelector.js +415 -0
- package/commonjs/Calendar/ConcreteTimeSelector.js.map +1 -0
- package/commonjs/Calendar/TimeSelector.js +435 -0
- package/commonjs/Calendar/TimeSelector.js.map +1 -0
- package/commonjs/Calendar/types.js +29 -0
- package/commonjs/Calendar/types.js.map +1 -0
- package/commonjs/Card/Card.js +235 -0
- package/commonjs/Card/Card.js.map +1 -0
- package/commonjs/CheckBox/CheckBox.js +139 -0
- package/commonjs/CheckBox/CheckBox.js.map +1 -0
- package/commonjs/CheckBox/CheckBoxItem.js +138 -0
- package/commonjs/CheckBox/CheckBoxItem.js.map +1 -0
- package/commonjs/CircularProgress/CircularProgress.js +54 -0
- package/commonjs/CircularProgress/CircularProgress.js.map +1 -0
- package/commonjs/Collapsible/Collapsible.js +79 -0
- package/commonjs/Collapsible/Collapsible.js.map +1 -0
- package/commonjs/ComboChart/ComboChart.js +185 -0
- package/commonjs/ComboChart/ComboChart.js.map +1 -0
- package/commonjs/DashboardCard/DashboardCard.js +229 -0
- package/commonjs/DashboardCard/DashboardCard.js.map +1 -0
- package/commonjs/DataCell/DataCell.js +520 -0
- package/commonjs/DataCell/DataCell.js.map +1 -0
- package/commonjs/DataTable/DataTable.js.map +1 -0
- package/commonjs/Dropdown/CustomDropdown.js +262 -0
- package/commonjs/Dropdown/CustomDropdown.js.map +1 -0
- package/commonjs/Dropdown/Dropdown.js +679 -0
- package/commonjs/Dropdown/InputDropdown.js +169 -0
- package/commonjs/Dropdown/InputDropdown.js.map +1 -0
- package/commonjs/Gantt/Gantt.js +196 -0
- package/commonjs/Gantt/Gantt.js.map +1 -0
- package/commonjs/Gantt/helper.js +387 -0
- package/commonjs/Gantt/helper.js.map +1 -0
- package/commonjs/Grid/FixedSizeGrid.js +175 -0
- package/commonjs/Grid/FixedSizeGrid.js.map +1 -0
- package/commonjs/Grid/Grid.base.js +530 -0
- package/commonjs/Grid/Grid.base.js.map +1 -0
- package/commonjs/Grid/StaticFixedSizeGrid.js +383 -0
- package/commonjs/Grid/StaticFixedSizeGrid.js.map +1 -0
- package/commonjs/Grid/VariableSizeGrid.js +280 -0
- package/commonjs/Grid/VariableSizeGrid.js.map +1 -0
- package/commonjs/Header/Header.js +202 -0
- package/commonjs/Header/Header.js.map +1 -0
- package/commonjs/IconText/IconText.js +115 -0
- package/commonjs/IconText/IconText.js.map +1 -0
- package/commonjs/Icons/TapasIcon.js +170 -0
- package/commonjs/Icons/TapasIcon.js.map +1 -0
- package/commonjs/Icons/TapasIconExpo.js +113 -0
- package/commonjs/Icons/TapasIconExpo.js.map +1 -0
- package/commonjs/Icons/expoFontLoader.js +18 -0
- package/commonjs/Icons/expoFontLoader.js.map +1 -0
- package/commonjs/Icons/fontLoader.js +18 -0
- package/commonjs/Icons/fontLoader.js.map +1 -0
- package/commonjs/Icons/smartFontLoader.js +316 -0
- package/commonjs/Icons/smartFontLoader.js.map +1 -0
- package/commonjs/Image/PreviewImg.js +126 -0
- package/commonjs/Image/PreviewImg.js.map +1 -0
- package/commonjs/Input/Input.js +288 -0
- package/commonjs/Input/Input.js.map +1 -0
- package/commonjs/Layout/DrawerContext.js +43 -0
- package/commonjs/Layout/DrawerContext.js.map +1 -0
- package/commonjs/Layout/Layout.js +124 -0
- package/commonjs/Layout/Layout.js.map +1 -0
- package/commonjs/Layout/ToastContext.js +41 -0
- package/commonjs/Layout/ToastContext.js.map +1 -0
- package/commonjs/LineChart/LineChart.js +461 -0
- package/commonjs/LineChart/LineChart.js.map +1 -0
- package/commonjs/ListItem/ListItem.js +207 -0
- package/commonjs/ListItem/ListItem.js.map +1 -0
- package/commonjs/Navigation/Navigation.js.map +1 -0
- package/commonjs/NumericInput/NumericInput.js +228 -0
- package/commonjs/Pagination/Pagination.js +300 -0
- package/commonjs/Pagination/Pagination.js.map +1 -0
- package/commonjs/PieChart/PieChart.js +406 -0
- package/commonjs/PieChart/PieChart.js.map +1 -0
- package/commonjs/Progress/Progress.js +224 -0
- package/commonjs/Progress/Progress.js.map +1 -0
- package/commonjs/RadioButton/RadioButton.js +110 -0
- package/commonjs/RadioButton/RadioButton.js.map +1 -0
- package/commonjs/SearchInput/SearchInput.js +331 -0
- package/commonjs/SearchInput/SearchInput.js.map +1 -0
- package/commonjs/SheetTitle/SheetTitle.js +95 -0
- package/commonjs/SheetTitle/SheetTitle.js.map +1 -0
- package/commonjs/Shell/types.js +12 -0
- package/commonjs/Shell/types.js.map +1 -0
- package/commonjs/StatisticCard/StatisticCard.js +128 -0
- package/commonjs/StatisticCard/StatisticCard.js.map +1 -0
- package/commonjs/StatisticsTable/StatisticsTable.js.map +1 -0
- package/commonjs/Status/Status.js +128 -0
- package/commonjs/Status/Status.js.map +1 -0
- package/commonjs/Steps/Steps.js +153 -0
- package/commonjs/Steps/Steps.js.map +1 -0
- package/commonjs/Tag/Tag.js +106 -0
- package/commonjs/Tag/Tag.js.map +1 -0
- package/commonjs/Theme/ThemeProvider.js +34 -0
- package/commonjs/Theme/ThemeProvider.js.map +1 -0
- package/commonjs/Theme/defaultTheme.js +338 -0
- package/commonjs/Theme/defaultTheme.js.map +1 -0
- package/commonjs/Theme/types.js +2 -0
- package/commonjs/Theme/types.js.map +1 -0
- package/commonjs/Timeline/Timeline.js +230 -0
- package/commonjs/Timeline/Timeline.js.map +1 -0
- package/commonjs/WebViewBridge/WebViewBridge.js +975 -0
- package/commonjs/WebViewBridge/WebViewBridge.js.map +1 -0
- package/commonjs/common/bridgelessUtils.js +29 -0
- package/commonjs/common/bridgelessUtils.js.map +1 -0
- package/commonjs/common/hooks/useBridgelessFix.js +76 -0
- package/commonjs/common/hooks/useBridgelessFix.js.map +1 -0
- package/commonjs/index.js +975 -0
- package/commonjs/index.js.map +1 -0
- package/module/Alert/Alert.js +82 -0
- package/module/BarChart/BarChart.js +537 -0
- package/module/BarChart/BarChart.js.map +1 -0
- package/module/Button/ButtonGroup.js +148 -0
- package/module/Button/ButtonGroup.js.map +1 -0
- package/module/Calendar/ConcreteTimeSelector.js +409 -0
- package/module/Calendar/ConcreteTimeSelector.js.map +1 -0
- package/module/Calendar/TimeSelector.js +429 -0
- package/module/Calendar/TimeSelector.js.map +1 -0
- package/module/Calendar/types.js +27 -0
- package/module/Calendar/types.js.map +1 -0
- package/module/Card/Card.js +229 -0
- package/module/Card/Card.js.map +1 -0
- package/module/CheckBox/CheckBox.js +133 -0
- package/module/CheckBox/CheckBox.js.map +1 -0
- package/module/CheckBox/CheckBoxItem.js +132 -0
- package/module/CheckBox/CheckBoxItem.js.map +1 -0
- package/module/CircularProgress/CircularProgress.js +49 -0
- package/module/CircularProgress/CircularProgress.js.map +1 -0
- package/module/Collapsible/Collapsible.js +73 -0
- package/module/Collapsible/Collapsible.js.map +1 -0
- package/module/ComboChart/ComboChart.js +180 -0
- package/module/ComboChart/ComboChart.js.map +1 -0
- package/module/DashboardCard/DashboardCard.js +223 -0
- package/module/DashboardCard/DashboardCard.js.map +1 -0
- package/module/DataCell/DataCell.js +515 -0
- package/module/DataCell/DataCell.js.map +1 -0
- package/module/DataTable/DataTable.js.map +1 -0
- package/module/Dropdown/CustomDropdown.js +254 -0
- package/module/Dropdown/CustomDropdown.js.map +1 -0
- package/module/Dropdown/Dropdown.js +663 -0
- package/module/Dropdown/InputDropdown.js +152 -0
- package/module/Dropdown/InputDropdown.js.map +1 -0
- package/module/Gantt/Gantt.js +191 -0
- package/module/Gantt/Gantt.js.map +1 -0
- package/module/Gantt/helper.js +371 -0
- package/module/Gantt/helper.js.map +1 -0
- package/module/Grid/FixedSizeGrid.js +170 -0
- package/module/Grid/FixedSizeGrid.js.map +1 -0
- package/module/Grid/Grid.base.js +526 -0
- package/module/Grid/Grid.base.js.map +1 -0
- package/module/Grid/StaticFixedSizeGrid.js +377 -0
- package/module/Grid/StaticFixedSizeGrid.js.map +1 -0
- package/module/Grid/VariableSizeGrid.js +275 -0
- package/module/Grid/VariableSizeGrid.js.map +1 -0
- package/module/Header/Header.js +197 -0
- package/module/Header/Header.js.map +1 -0
- package/module/IconText/IconText.js +110 -0
- package/module/IconText/IconText.js.map +1 -0
- package/module/Icons/TapasIcon.js +163 -0
- package/module/Icons/TapasIcon.js.map +1 -0
- package/module/Icons/TapasIconExpo.js +107 -0
- package/module/Icons/TapasIconExpo.js.map +1 -0
- package/module/Icons/expoFontLoader.js +14 -0
- package/module/Icons/expoFontLoader.js.map +1 -0
- package/module/Icons/fontLoader.js +14 -0
- package/module/Icons/fontLoader.js.map +1 -0
- package/module/Icons/smartFontLoader.js +311 -0
- package/module/Icons/smartFontLoader.js.map +1 -0
- package/module/Image/PreviewImg.js +120 -0
- package/module/Image/PreviewImg.js.map +1 -0
- package/module/Input/Input.js +283 -0
- package/module/Input/Input.js.map +1 -0
- package/module/Layout/DrawerContext.js +37 -0
- package/module/Layout/DrawerContext.js.map +1 -0
- package/module/Layout/Layout.js +119 -0
- package/module/Layout/Layout.js.map +1 -0
- package/module/Layout/ToastContext.js +35 -0
- package/module/Layout/ToastContext.js.map +1 -0
- package/module/LineChart/LineChart.js +455 -0
- package/module/LineChart/LineChart.js.map +1 -0
- package/module/ListItem/ListItem.js +201 -0
- package/module/ListItem/ListItem.js.map +1 -0
- package/module/Navigation/Navigation.js.map +1 -0
- package/module/NumericInput/NumericInput.js +222 -0
- package/module/Pagination/Pagination.js +294 -0
- package/module/Pagination/Pagination.js.map +1 -0
- package/module/PieChart/PieChart.js +400 -0
- package/module/PieChart/PieChart.js.map +1 -0
- package/module/Progress/Progress.js +219 -0
- package/module/Progress/Progress.js.map +1 -0
- package/module/RadioButton/RadioButton.js +105 -0
- package/module/RadioButton/RadioButton.js.map +1 -0
- package/module/SearchInput/SearchInput.js +327 -0
- package/module/SearchInput/SearchInput.js.map +1 -0
- package/module/SheetTitle/SheetTitle.js +90 -0
- package/module/SheetTitle/SheetTitle.js.map +1 -0
- package/module/Shell/types.js +8 -0
- package/module/Shell/types.js.map +1 -0
- package/module/StatisticCard/StatisticCard.js +123 -0
- package/module/StatisticCard/StatisticCard.js.map +1 -0
- package/module/StatisticsTable/StatisticsTable.js.map +1 -0
- package/module/Status/Status.js +122 -0
- package/module/Status/Status.js.map +1 -0
- package/module/Steps/Steps.js +148 -0
- package/module/Steps/Steps.js.map +1 -0
- package/module/Tag/Tag.js +100 -0
- package/module/Tag/Tag.js.map +1 -0
- package/module/Theme/ThemeProvider.js +29 -0
- package/module/Theme/ThemeProvider.js.map +1 -0
- package/module/Theme/defaultTheme.js +333 -0
- package/module/Theme/defaultTheme.js.map +1 -0
- package/module/Theme/types.js +2 -0
- package/module/Theme/types.js.map +1 -0
- package/module/Timeline/Timeline.js +224 -0
- package/module/Timeline/Timeline.js.map +1 -0
- package/module/WebViewBridge/WebViewBridge.js +967 -0
- package/module/WebViewBridge/WebViewBridge.js.map +1 -0
- package/module/common/bridgelessUtils.js +24 -0
- package/module/common/bridgelessUtils.js.map +1 -0
- package/module/common/hooks/useBridgelessFix.js +73 -0
- package/module/common/hooks/useBridgelessFix.js.map +1 -0
- package/module/index.js +135 -0
- package/module/index.js.map +1 -0
- package/package.json +66 -203
- package/typescript/BarChart/BarChart.d.ts.map +1 -0
- package/typescript/Button/ButtonGroup.d.ts +16 -0
- package/typescript/Button/ButtonGroup.d.ts.map +1 -0
- package/typescript/Calendar/ConcreteTimeSelector.d.ts.map +1 -0
- package/typescript/Calendar/CustomRange.d.ts +4 -0
- package/typescript/Calendar/CustomRange.d.ts.map +1 -0
- package/typescript/Calendar/TimeSelector.d.ts.map +1 -0
- package/typescript/Calendar/types.d.ts +102 -0
- package/typescript/Calendar/types.d.ts.map +1 -0
- package/typescript/Card/Card.d.ts.map +1 -0
- package/typescript/CheckBox/CheckBox.d.ts.map +1 -0
- package/typescript/CheckBox/CheckBoxItem.d.ts.map +1 -0
- package/typescript/CircularProgress/CircularProgress.d.ts.map +1 -0
- package/typescript/Collapsible/Collapsible.d.ts.map +1 -0
- package/typescript/ComboChart/ComboChart.d.ts.map +1 -0
- package/typescript/DashboardCard/DashboardCard.d.ts +30 -0
- package/typescript/DashboardCard/DashboardCard.d.ts.map +1 -0
- package/typescript/DataCell/DataCell.d.ts.map +1 -0
- package/typescript/Dropdown/CustomDropdown.d.ts.map +1 -0
- package/typescript/Dropdown/InputDropdown.d.ts.map +1 -0
- package/typescript/Gantt/Gantt.d.ts.map +1 -0
- package/typescript/Gantt/helper.d.ts +110 -0
- package/typescript/Gantt/helper.d.ts.map +1 -0
- package/typescript/Grid/FixedSizeGrid.d.ts.map +1 -0
- package/typescript/Grid/Grid.base.d.ts.map +1 -0
- package/typescript/Grid/StaticFixedSizeGrid.d.ts.map +1 -0
- package/typescript/Grid/VariableSizeGrid.d.ts.map +1 -0
- package/typescript/Header/Header.d.ts +21 -0
- package/typescript/Header/Header.d.ts.map +1 -0
- package/typescript/IconText/IconText.d.ts.map +1 -0
- package/typescript/Icons/TapasIcon.d.ts +32 -0
- package/typescript/Icons/TapasIcon.d.ts.map +1 -0
- package/typescript/Icons/TapasIconExpo.d.ts.map +1 -0
- package/typescript/Icons/expoFontLoader.d.ts +12 -0
- package/typescript/Icons/expoFontLoader.d.ts.map +1 -0
- package/typescript/Icons/fontLoader.d.ts +12 -0
- package/typescript/Icons/fontLoader.d.ts.map +1 -0
- package/typescript/Icons/smartFontLoader.d.ts +17 -0
- package/typescript/Icons/smartFontLoader.d.ts.map +1 -0
- package/typescript/Image/PreviewImg.d.ts.map +1 -0
- package/typescript/Input/Input.d.ts.map +1 -0
- package/typescript/Layout/DrawerContext.d.ts +10 -0
- package/typescript/Layout/DrawerContext.d.ts.map +1 -0
- package/typescript/Layout/Layout.d.ts.map +1 -0
- package/typescript/Layout/ToastContext.d.ts +10 -0
- package/typescript/Layout/ToastContext.d.ts.map +1 -0
- package/typescript/LineChart/LineChart.d.ts.map +1 -0
- package/typescript/ListItem/ListItem.d.ts.map +1 -0
- package/typescript/Pagination/Pagination.d.ts +27 -0
- package/typescript/Pagination/Pagination.d.ts.map +1 -0
- package/typescript/PieChart/PieChart.d.ts.map +1 -0
- package/typescript/Progress/Progress.d.ts.map +1 -0
- package/typescript/RadioButton/RadioButton.d.ts.map +1 -0
- package/typescript/SearchInput/SearchInput.d.ts.map +1 -0
- package/typescript/SheetTitle/SheetTitle.d.ts.map +1 -0
- package/typescript/Shell/types.d.ts +25 -0
- package/typescript/Shell/types.d.ts.map +1 -0
- package/typescript/StatisticCard/StatisticCard.d.ts +19 -0
- package/typescript/StatisticCard/StatisticCard.d.ts.map +1 -0
- package/typescript/Status/Status.d.ts.map +1 -0
- package/typescript/Steps/Steps.d.ts.map +1 -0
- package/typescript/Tag/Tag.d.ts +14 -0
- package/typescript/Tag/Tag.d.ts.map +1 -0
- package/typescript/Theme/ThemeProvider.d.ts +8 -0
- package/typescript/Theme/ThemeProvider.d.ts.map +1 -0
- package/typescript/Theme/defaultTheme.d.ts +290 -0
- package/typescript/Theme/defaultTheme.d.ts.map +1 -0
- package/typescript/Theme/types.d.ts +27 -0
- package/typescript/Theme/types.d.ts.map +1 -0
- package/typescript/Timeline/Timeline.d.ts.map +1 -0
- package/typescript/WebViewBridge/WebViewBridge.d.ts.map +1 -0
- package/typescript/common/hooks/useBridgelessFix.d.ts +12 -0
- package/typescript/common/hooks/useBridgelessFix.d.ts.map +1 -0
- package/typescript/index.d.ts +690 -0
- package/typescript/index.d.ts.map +1 -0
- package/components/Alert/Alert.tsx +0 -83
- package/components/AnimatedNavItem/AnimatedNavItem.tsx +0 -246
- package/components/AnimatedNavItem/index.tsx +0 -3
- package/components/BarChart/BarChart.tsx +0 -594
- package/components/BarChart/index.tsx +0 -2
- package/components/Button/Button.tsx +0 -96
- package/components/Button/ButtonGroup.tsx +0 -148
- package/components/Button/react-native-hoverable.d.ts +0 -14
- package/components/Calendar/Calendar.base.tsx +0 -393
- package/components/Calendar/Calendar.tsx +0 -107
- package/components/Calendar/ConcreteTimeSelector.tsx +0 -479
- package/components/Calendar/CustomRange.tsx +0 -538
- package/components/Calendar/DaySelector.tsx +0 -159
- package/components/Calendar/MonthSelector.tsx +0 -154
- package/components/Calendar/TimeSelector.tsx +0 -493
- package/components/Calendar/WeekDaySelector.tsx +0 -154
- package/components/Calendar/helper.ts +0 -138
- package/components/Calendar/local.ts +0 -124
- package/components/Calendar/types.ts +0 -113
- package/components/Card/Card.tsx +0 -276
- package/components/CheckBox/CheckBox.tsx +0 -157
- package/components/CheckBox/CheckBoxItem.tsx +0 -133
- package/components/CheckBox/GroupCheckBox.tsx +0 -87
- package/components/CircularProgress/CircularProgress.tsx +0 -45
- package/components/Collapsible/Collapsible.tsx +0 -88
- package/components/ComboChart/ComboChart.tsx +0 -214
- package/components/ComboChart/index.tsx +0 -3
- package/components/DashboardCard/DashboardCard.tsx +0 -221
- package/components/DataCell/DataCell.tsx +0 -670
- package/components/DataCell/index.tsx +0 -9
- package/components/DataTable/DataTable.tsx +0 -263
- package/components/DataTable/index.tsx +0 -3
- package/components/DeviceSelectionModal/DeviceSelectionModal.tsx +0 -368
- package/components/DraggableFlatList/DraggableFlatList.tsx +0 -12
- package/components/Drawer/Drawer.tsx +0 -227
- package/components/Dropdown/CustomDropdown.tsx +0 -288
- package/components/Dropdown/Dropdown.tsx +0 -830
- package/components/Dropdown/InputDropdown.tsx +0 -190
- package/components/ExternalLink/ExternalLink.tsx +0 -69
- package/components/Gantt/Accessories.tsx +0 -302
- package/components/Gantt/Gantt.tsx +0 -246
- package/components/Gantt/GanttInnerElementType.tsx +0 -131
- package/components/Gantt/helper.ts +0 -382
- package/components/Gantt/types.ts +0 -108
- package/components/Grid/FixedSizeGrid.tsx +0 -248
- package/components/Grid/Grid.base.tsx +0 -933
- package/components/Grid/StaticFixedSizeGrid.tsx +0 -511
- package/components/Grid/VariableSizeGrid.tsx +0 -514
- package/components/Grid/helper.ts +0 -69
- package/components/Grid/timer.ts +0 -32
- package/components/Header/Header.tsx +0 -240
- package/components/HelloWave/HelloWave.tsx +0 -70
- package/components/Hoverable/Hoverable.tsx +0 -65
- package/components/IconText/IconText.tsx +0 -132
- package/components/Icons/TapasIcon.tsx +0 -160
- package/components/Icons/TapasIconExpo.tsx +0 -115
- package/components/Icons/expoFontLoader.ts +0 -203
- package/components/Icons/fontLoader.ts +0 -247
- package/components/Icons/index.tsx +0 -19
- package/components/Icons/smartFontLoader.ts +0 -318
- package/components/Image/Image.tsx +0 -157
- package/components/Image/PreviewImg.tsx +0 -137
- package/components/Input/Input.tsx +0 -297
- package/components/Layout/DrawerContext.tsx +0 -31
- package/components/Layout/Layout.tsx +0 -119
- package/components/Layout/ToastContext.tsx +0 -29
- package/components/Layout/index.tsx +0 -24
- package/components/LineChart/LineChart.tsx +0 -479
- package/components/LineChart/index.tsx +0 -2
- package/components/ListItem/ListItem.tsx +0 -307
- package/components/Loading/Loading.tsx +0 -94
- package/components/MessageBox/MessageBox.tsx +0 -243
- package/components/MultiSelector/MultiSelector.tsx +0 -627
- package/components/MultiSelector/index.tsx +0 -2
- package/components/Navigation/Navigation.tsx +0 -327
- package/components/Notification/Notification.tsx +0 -289
- package/components/Notification/index.tsx +0 -2
- package/components/NumericInput/NumericInput.tsx +0 -244
- package/components/Overlay/Overlay.tsx +0 -30
- package/components/Pagination/Pagination.tsx +0 -296
- package/components/PieChart/GroupedLegend.tsx +0 -284
- package/components/PieChart/NestedPieChart.tsx +0 -606
- package/components/PieChart/NestedPieChart.types.ts +0 -171
- package/components/PieChart/NestedPieChart.utils.ts +0 -425
- package/components/PieChart/PieChart.tsx +0 -452
- package/components/PieChart/index.tsx +0 -19
- package/components/Popover/Popover.tsx +0 -172
- package/components/Progress/Progress.tsx +0 -209
- package/components/Quantity/Quantity.tsx +0 -195
- package/components/Quantity/index.tsx +0 -2
- package/components/RadioButton/RadioButton.tsx +0 -119
- package/components/ReasonModal/ReasonModal.tsx +0 -223
- package/components/ReasonModal/index.tsx +0 -3
- package/components/ScanButton/ScanButton.tsx +0 -139
- package/components/SearchInput/SearchInput.tsx +0 -361
- package/components/SearchInput/index.tsx +0 -2
- package/components/SheetTitle/SheetTitle.tsx +0 -84
- package/components/Shell/Shell.tsx +0 -116
- package/components/Shell/styles.ts +0 -29
- package/components/Shell/types.ts +0 -23
- package/components/StatisticCard/StatisticCard.tsx +0 -132
- package/components/StatisticCard/index.tsx +0 -3
- package/components/StatisticsTable/StatisticsTable.tsx +0 -1301
- package/components/StatisticsTable/index.tsx +0 -10
- package/components/Status/Status.tsx +0 -124
- package/components/Steps/Steps.tsx +0 -177
- package/components/Tab/TapasTab.tsx +0 -188
- package/components/Tab/index.tsx +0 -3
- package/components/TabTitle/TabTitle.tsx +0 -89
- package/components/TabTitle/index.tsx +0 -3
- package/components/TableColumnHeader/TableColumnHeader.tsx +0 -273
- package/components/TableColumnHeader/index.tsx +0 -7
- package/components/Tag/Tag.tsx +0 -92
- package/components/Task/Task.tsx +0 -309
- package/components/Task/type.ts +0 -6
- package/components/Text/Text.tsx +0 -152
- package/components/TextArea/TextArea.tsx +0 -348
- package/components/Theme/ThemeProvider.tsx +0 -13
- package/components/Theme/defaultTheme.ts +0 -222
- package/components/Theme/themed.d.ts +0 -102
- package/components/Timeline/Timeline.tsx +0 -230
- package/components/Toast/Toast.tsx +0 -167
- package/components/UserSwitcher/UserSwitcher.tsx +0 -272
- package/components/UserSwitcher/index.tsx +0 -3
- package/components/WebViewBridge/WebViewBridge.tsx +0 -1140
- package/components/WebViewBridge/index.tsx +0 -12
- package/components/WebViewBridge/useWebViewBridge.ts +0 -145
- package/components/WordCloud/WordCloud.tsx +0 -553
- package/components/WordCloud/index.tsx +0 -3
- package/components/common/bridgelessUtils.ts +0 -22
- package/components/common.ts +0 -8
- package/components/index.tsx +0 -205
- package/package/README.md +0 -107
- package/package/assets/adaptive-icon.png +0 -0
- package/package/assets/favicon.png +0 -0
- package/package/assets/fonts/customfont.ttf +0 -0
- package/package/assets/icon.png +0 -0
- package/package/assets/logo.png +0 -0
- package/package/assets/splash.png +0 -0
- package/package/assets/svg/customfont.svg +0 -333
- package/package/assets/svg/logo.svg +0 -9
- package/package/assets/tapas/favicon.png +0 -0
- package/package/assets/tapas/logo.png +0 -0
- package/package/assets/tapas/logo_no_word.png +0 -0
- package/package/assets/tapas/logo_transparent_white.png +0 -0
- package/package/commonjs/Alert/Alert.js +0 -88
- package/package/commonjs/BarChart/BarChart.js +0 -580
- package/package/commonjs/BarChart/BarChart.js.map +0 -1
- package/package/commonjs/Button/ButtonGroup.js +0 -150
- package/package/commonjs/Button/ButtonGroup.js.map +0 -1
- package/package/commonjs/Calendar/ConcreteTimeSelector.js +0 -416
- package/package/commonjs/Calendar/ConcreteTimeSelector.js.map +0 -1
- package/package/commonjs/Calendar/TimeSelector.js +0 -437
- package/package/commonjs/Calendar/TimeSelector.js.map +0 -1
- package/package/commonjs/Calendar/types.js +0 -26
- package/package/commonjs/Calendar/types.js.map +0 -1
- package/package/commonjs/Card/Card.js +0 -235
- package/package/commonjs/Card/Card.js.map +0 -1
- package/package/commonjs/CheckBox/CheckBox.js +0 -161
- package/package/commonjs/CheckBox/CheckBox.js.map +0 -1
- package/package/commonjs/CheckBox/CheckBoxItem.js +0 -134
- package/package/commonjs/CheckBox/CheckBoxItem.js.map +0 -1
- package/package/commonjs/CircularProgress/CircularProgress.js +0 -54
- package/package/commonjs/CircularProgress/CircularProgress.js.map +0 -1
- package/package/commonjs/Collapsible/Collapsible.js +0 -79
- package/package/commonjs/Collapsible/Collapsible.js.map +0 -1
- package/package/commonjs/ComboChart/ComboChart.js +0 -184
- package/package/commonjs/ComboChart/ComboChart.js.map +0 -1
- package/package/commonjs/DashboardCard/DashboardCard.js +0 -225
- package/package/commonjs/DashboardCard/DashboardCard.js.map +0 -1
- package/package/commonjs/DataCell/DataCell.js +0 -535
- package/package/commonjs/DataCell/DataCell.js.map +0 -1
- package/package/commonjs/DataTable/DataTable.js.map +0 -1
- package/package/commonjs/Dropdown/CustomDropdown.js +0 -270
- package/package/commonjs/Dropdown/CustomDropdown.js.map +0 -1
- package/package/commonjs/Dropdown/Dropdown.js +0 -679
- package/package/commonjs/Dropdown/InputDropdown.js +0 -173
- package/package/commonjs/Dropdown/InputDropdown.js.map +0 -1
- package/package/commonjs/Gantt/Gantt.js +0 -169
- package/package/commonjs/Gantt/Gantt.js.map +0 -1
- package/package/commonjs/Gantt/helper.js +0 -383
- package/package/commonjs/Gantt/helper.js.map +0 -1
- package/package/commonjs/Grid/FixedSizeGrid.js +0 -176
- package/package/commonjs/Grid/FixedSizeGrid.js.map +0 -1
- package/package/commonjs/Grid/Grid.base.js +0 -533
- package/package/commonjs/Grid/Grid.base.js.map +0 -1
- package/package/commonjs/Grid/StaticFixedSizeGrid.js +0 -389
- package/package/commonjs/Grid/StaticFixedSizeGrid.js.map +0 -1
- package/package/commonjs/Grid/VariableSizeGrid.js +0 -285
- package/package/commonjs/Grid/VariableSizeGrid.js.map +0 -1
- package/package/commonjs/Header/Header.js +0 -203
- package/package/commonjs/Header/Header.js.map +0 -1
- package/package/commonjs/IconText/IconText.js +0 -115
- package/package/commonjs/IconText/IconText.js.map +0 -1
- package/package/commonjs/Icons/TapasIcon.js +0 -142
- package/package/commonjs/Icons/TapasIcon.js.map +0 -1
- package/package/commonjs/Icons/TapasIconExpo.js +0 -113
- package/package/commonjs/Icons/TapasIconExpo.js.map +0 -1
- package/package/commonjs/Icons/expoFontLoader.js +0 -206
- package/package/commonjs/Icons/expoFontLoader.js.map +0 -1
- package/package/commonjs/Icons/fontLoader.js +0 -239
- package/package/commonjs/Icons/fontLoader.js.map +0 -1
- package/package/commonjs/Icons/smartFontLoader.js +0 -313
- package/package/commonjs/Icons/smartFontLoader.js.map +0 -1
- package/package/commonjs/Image/PreviewImg.js +0 -124
- package/package/commonjs/Image/PreviewImg.js.map +0 -1
- package/package/commonjs/Input/Input.js +0 -289
- package/package/commonjs/Input/Input.js.map +0 -1
- package/package/commonjs/Layout/DrawerContext.js +0 -41
- package/package/commonjs/Layout/DrawerContext.js.map +0 -1
- package/package/commonjs/Layout/Layout.js +0 -126
- package/package/commonjs/Layout/Layout.js.map +0 -1
- package/package/commonjs/Layout/ToastContext.js +0 -39
- package/package/commonjs/Layout/ToastContext.js.map +0 -1
- package/package/commonjs/LineChart/LineChart.js +0 -453
- package/package/commonjs/LineChart/LineChart.js.map +0 -1
- package/package/commonjs/ListItem/ListItem.js +0 -210
- package/package/commonjs/ListItem/ListItem.js.map +0 -1
- package/package/commonjs/Navigation/Navigation.js.map +0 -1
- package/package/commonjs/NumericInput/NumericInput.js +0 -228
- package/package/commonjs/Pagination/Pagination.js +0 -298
- package/package/commonjs/Pagination/Pagination.js.map +0 -1
- package/package/commonjs/PieChart/PieChart.js +0 -403
- package/package/commonjs/PieChart/PieChart.js.map +0 -1
- package/package/commonjs/Progress/Progress.js +0 -224
- package/package/commonjs/Progress/Progress.js.map +0 -1
- package/package/commonjs/RadioButton/RadioButton.js +0 -110
- package/package/commonjs/RadioButton/RadioButton.js.map +0 -1
- package/package/commonjs/SearchInput/SearchInput.js +0 -321
- package/package/commonjs/SearchInput/SearchInput.js.map +0 -1
- package/package/commonjs/SheetTitle/SheetTitle.js +0 -95
- package/package/commonjs/SheetTitle/SheetTitle.js.map +0 -1
- package/package/commonjs/Shell/types.js +0 -8
- package/package/commonjs/Shell/types.js.map +0 -1
- package/package/commonjs/StatisticCard/StatisticCard.js +0 -128
- package/package/commonjs/StatisticCard/StatisticCard.js.map +0 -1
- package/package/commonjs/StatisticsTable/StatisticsTable.js.map +0 -1
- package/package/commonjs/Status/Status.js +0 -128
- package/package/commonjs/Status/Status.js.map +0 -1
- package/package/commonjs/Steps/Steps.js +0 -153
- package/package/commonjs/Steps/Steps.js.map +0 -1
- package/package/commonjs/Tag/Tag.js +0 -104
- package/package/commonjs/Tag/Tag.js.map +0 -1
- package/package/commonjs/Theme/ThemeProvider.js +0 -31
- package/package/commonjs/Theme/ThemeProvider.js.map +0 -1
- package/package/commonjs/Theme/defaultTheme.js +0 -238
- package/package/commonjs/Theme/defaultTheme.js.map +0 -1
- package/package/commonjs/Timeline/Timeline.js +0 -230
- package/package/commonjs/Timeline/Timeline.js.map +0 -1
- package/package/commonjs/WebViewBridge/WebViewBridge.js +0 -973
- package/package/commonjs/WebViewBridge/WebViewBridge.js.map +0 -1
- package/package/commonjs/common/bridgelessUtils.js +0 -29
- package/package/commonjs/common/bridgelessUtils.js.map +0 -1
- package/package/commonjs/index.js +0 -941
- package/package/commonjs/index.js.map +0 -1
- package/package/init.js +0 -179
- package/package/module/Alert/Alert.js +0 -82
- package/package/module/AnimatedNavItem/README.md +0 -520
- package/package/module/BarChart/BarChart.js +0 -575
- package/package/module/BarChart/BarChart.js.map +0 -1
- package/package/module/Button/ButtonGroup.js +0 -144
- package/package/module/Button/ButtonGroup.js.map +0 -1
- package/package/module/Calendar/ConcreteTimeSelector.js +0 -410
- package/package/module/Calendar/ConcreteTimeSelector.js.map +0 -1
- package/package/module/Calendar/TimeSelector.js +0 -431
- package/package/module/Calendar/TimeSelector.js.map +0 -1
- package/package/module/Calendar/types.js +0 -22
- package/package/module/Calendar/types.js.map +0 -1
- package/package/module/Card/Card.js +0 -229
- package/package/module/Card/Card.js.map +0 -1
- package/package/module/CheckBox/CheckBox.js +0 -155
- package/package/module/CheckBox/CheckBox.js.map +0 -1
- package/package/module/CheckBox/CheckBoxItem.js +0 -128
- package/package/module/CheckBox/CheckBoxItem.js.map +0 -1
- package/package/module/CircularProgress/CircularProgress.js +0 -49
- package/package/module/CircularProgress/CircularProgress.js.map +0 -1
- package/package/module/Collapsible/Collapsible.js +0 -73
- package/package/module/Collapsible/Collapsible.js.map +0 -1
- package/package/module/ComboChart/ComboChart.js +0 -179
- package/package/module/ComboChart/ComboChart.js.map +0 -1
- package/package/module/DEPENDENCY_WARNINGS.md +0 -242
- package/package/module/DashboardCard/DashboardCard.js +0 -219
- package/package/module/DashboardCard/DashboardCard.js.map +0 -1
- package/package/module/DataCell/DataCell.js +0 -530
- package/package/module/DataCell/DataCell.js.map +0 -1
- package/package/module/DataCell/README.md +0 -1042
- package/package/module/DataTable/DataTable.js.map +0 -1
- package/package/module/Drawer/SCROLLVIEW_FIX.md +0 -127
- package/package/module/Dropdown/CustomDropdown.js +0 -261
- package/package/module/Dropdown/CustomDropdown.js.map +0 -1
- package/package/module/Dropdown/Dropdown.js +0 -663
- package/package/module/Dropdown/InputDropdown.js +0 -156
- package/package/module/Dropdown/InputDropdown.js.map +0 -1
- package/package/module/Gantt/Gantt.js +0 -164
- package/package/module/Gantt/Gantt.js.map +0 -1
- package/package/module/Gantt/helper.js +0 -367
- package/package/module/Gantt/helper.js.map +0 -1
- package/package/module/Grid/FixedSizeGrid.js +0 -171
- package/package/module/Grid/FixedSizeGrid.js.map +0 -1
- package/package/module/Grid/Grid.base.js +0 -529
- package/package/module/Grid/Grid.base.js.map +0 -1
- package/package/module/Grid/StaticFixedSizeGrid.js +0 -383
- package/package/module/Grid/StaticFixedSizeGrid.js.map +0 -1
- package/package/module/Grid/VariableSizeGrid.js +0 -280
- package/package/module/Grid/VariableSizeGrid.js.map +0 -1
- package/package/module/Header/Header.js +0 -198
- package/package/module/Header/Header.js.map +0 -1
- package/package/module/IconText/IconText.js +0 -110
- package/package/module/IconText/IconText.js.map +0 -1
- package/package/module/Icons/README.md +0 -182
- package/package/module/Icons/TapasIcon.js +0 -136
- package/package/module/Icons/TapasIcon.js.map +0 -1
- package/package/module/Icons/TapasIconExpo.js +0 -107
- package/package/module/Icons/TapasIconExpo.js.map +0 -1
- package/package/module/Icons/expoFontLoader.js +0 -201
- package/package/module/Icons/expoFontLoader.js.map +0 -1
- package/package/module/Icons/fontLoader.js +0 -234
- package/package/module/Icons/fontLoader.js.map +0 -1
- package/package/module/Icons/icon-categories.json +0 -341
- package/package/module/Icons/real-icon-mapping.json +0 -1940
- package/package/module/Icons/selection.json +0 -1
- package/package/module/Icons/smartFontLoader.js +0 -308
- package/package/module/Icons/smartFontLoader.js.map +0 -1
- package/package/module/Image/PreviewImg.js +0 -118
- package/package/module/Image/PreviewImg.js.map +0 -1
- package/package/module/Input/FOCUS_FIX_SUMMARY.md +0 -201
- package/package/module/Input/FOCUS_ISSUE_ANALYSIS.md +0 -188
- package/package/module/Input/Input.js +0 -284
- package/package/module/Input/Input.js.map +0 -1
- package/package/module/Input/README.md +0 -157
- package/package/module/Layout/DrawerContext.js +0 -35
- package/package/module/Layout/DrawerContext.js.map +0 -1
- package/package/module/Layout/Layout.js +0 -121
- package/package/module/Layout/Layout.js.map +0 -1
- package/package/module/Layout/ToastContext.js +0 -33
- package/package/module/Layout/ToastContext.js.map +0 -1
- package/package/module/LineChart/LineChart.js +0 -448
- package/package/module/LineChart/LineChart.js.map +0 -1
- package/package/module/ListItem/ListItem.js +0 -204
- package/package/module/ListItem/ListItem.js.map +0 -1
- package/package/module/Loading/README.md +0 -160
- package/package/module/MultiSelector/README.md +0 -246
- package/package/module/Navigation/Navigation.js.map +0 -1
- package/package/module/Notification/README.md +0 -158
- package/package/module/NumericInput/NumericInput.js +0 -222
- package/package/module/Pagination/BACKGROUND_COLOR.md +0 -173
- package/package/module/Pagination/DROPDOWN_IMPROVEMENTS.md +0 -321
- package/package/module/Pagination/Pagination.js +0 -292
- package/package/module/Pagination/Pagination.js.map +0 -1
- package/package/module/PieChart/BACKWARD_COMPATIBILITY.md +0 -157
- package/package/module/PieChart/BUGFIX_EMPTY_DATA.md +0 -86
- package/package/module/PieChart/IMPLEMENTATION_SUMMARY.md +0 -306
- package/package/module/PieChart/NestedPieChart.README.md +0 -421
- package/package/module/PieChart/PieChart.js +0 -398
- package/package/module/PieChart/PieChart.js.map +0 -1
- package/package/module/Progress/Progress.js +0 -219
- package/package/module/Progress/Progress.js.map +0 -1
- package/package/module/Quantity/README.md +0 -251
- package/package/module/RadioButton/RadioButton.js +0 -105
- package/package/module/RadioButton/RadioButton.js.map +0 -1
- package/package/module/ReasonModal/README.md +0 -320
- package/package/module/SearchInput/README.md +0 -304
- package/package/module/SearchInput/SearchInput.js +0 -317
- package/package/module/SearchInput/SearchInput.js.map +0 -1
- package/package/module/SheetTitle/SheetTitle.js +0 -90
- package/package/module/SheetTitle/SheetTitle.js.map +0 -1
- package/package/module/Shell/types.js +0 -4
- package/package/module/Shell/types.js.map +0 -1
- package/package/module/StatisticCard/StatisticCard.js +0 -122
- package/package/module/StatisticCard/StatisticCard.js.map +0 -1
- package/package/module/StatisticsTable/PLACEHOLDER_FEATURE.md +0 -287
- package/package/module/StatisticsTable/README.md +0 -470
- package/package/module/StatisticsTable/SORTING_FEATURE.md +0 -271
- package/package/module/StatisticsTable/STATS_CELL_CLICK.md +0 -120
- package/package/module/StatisticsTable/StatisticsTable.js.map +0 -1
- package/package/module/StatisticsTable/VIRTUAL_SCROLLING.md +0 -254
- package/package/module/Status/Status.js +0 -122
- package/package/module/Status/Status.js.map +0 -1
- package/package/module/Steps/Steps.js +0 -148
- package/package/module/Steps/Steps.js.map +0 -1
- package/package/module/TabTitle/README.md +0 -399
- package/package/module/TableColumnHeader/README.md +0 -682
- package/package/module/Tag/Tag.js +0 -98
- package/package/module/Tag/Tag.js.map +0 -1
- package/package/module/Theme/ThemeProvider.js +0 -26
- package/package/module/Theme/ThemeProvider.js.map +0 -1
- package/package/module/Theme/defaultTheme.js +0 -233
- package/package/module/Theme/defaultTheme.js.map +0 -1
- package/package/module/Timeline/Timeline.js +0 -224
- package/package/module/Timeline/Timeline.js.map +0 -1
- package/package/module/UserSwitcher/README.md +0 -334
- package/package/module/WebViewBridge/OPTIMIZATION_SUMMARY.md +0 -187
- package/package/module/WebViewBridge/README.md +0 -564
- package/package/module/WebViewBridge/WebViewBridge.js +0 -965
- package/package/module/WebViewBridge/WebViewBridge.js.map +0 -1
- package/package/module/WordCloud/README.md +0 -379
- package/package/module/common/bridgelessUtils.js +0 -24
- package/package/module/common/bridgelessUtils.js.map +0 -1
- package/package/module/index.js +0 -133
- package/package/module/index.js.map +0 -1
- package/package/package.json +0 -84
- package/package/typescript/BarChart/BarChart.d.ts.map +0 -1
- package/package/typescript/Button/ButtonGroup.d.ts +0 -16
- package/package/typescript/Button/ButtonGroup.d.ts.map +0 -1
- package/package/typescript/Calendar/ConcreteTimeSelector.d.ts.map +0 -1
- package/package/typescript/Calendar/CustomRange.d.ts +0 -5
- package/package/typescript/Calendar/CustomRange.d.ts.map +0 -1
- package/package/typescript/Calendar/TimeSelector.d.ts.map +0 -1
- package/package/typescript/Calendar/types.d.ts +0 -98
- package/package/typescript/Calendar/types.d.ts.map +0 -1
- package/package/typescript/Card/Card.d.ts.map +0 -1
- package/package/typescript/CheckBox/CheckBox.d.ts.map +0 -1
- package/package/typescript/CheckBox/CheckBoxItem.d.ts.map +0 -1
- package/package/typescript/CircularProgress/CircularProgress.d.ts.map +0 -1
- package/package/typescript/Collapsible/Collapsible.d.ts.map +0 -1
- package/package/typescript/ComboChart/ComboChart.d.ts.map +0 -1
- package/package/typescript/DashboardCard/DashboardCard.d.ts +0 -30
- package/package/typescript/DashboardCard/DashboardCard.d.ts.map +0 -1
- package/package/typescript/DataCell/DataCell.d.ts.map +0 -1
- package/package/typescript/Dropdown/CustomDropdown.d.ts.map +0 -1
- package/package/typescript/Dropdown/InputDropdown.d.ts.map +0 -1
- package/package/typescript/Gantt/Gantt.d.ts.map +0 -1
- package/package/typescript/Gantt/helper.d.ts +0 -110
- package/package/typescript/Gantt/helper.d.ts.map +0 -1
- package/package/typescript/Grid/FixedSizeGrid.d.ts.map +0 -1
- package/package/typescript/Grid/Grid.base.d.ts.map +0 -1
- package/package/typescript/Grid/StaticFixedSizeGrid.d.ts.map +0 -1
- package/package/typescript/Grid/VariableSizeGrid.d.ts.map +0 -1
- package/package/typescript/Header/Header.d.ts +0 -20
- package/package/typescript/Header/Header.d.ts.map +0 -1
- package/package/typescript/IconText/IconText.d.ts.map +0 -1
- package/package/typescript/Icons/TapasIcon.d.ts +0 -19
- package/package/typescript/Icons/TapasIcon.d.ts.map +0 -1
- package/package/typescript/Icons/TapasIconExpo.d.ts.map +0 -1
- package/package/typescript/Icons/expoFontLoader.d.ts +0 -54
- package/package/typescript/Icons/expoFontLoader.d.ts.map +0 -1
- package/package/typescript/Icons/fontLoader.d.ts +0 -55
- package/package/typescript/Icons/fontLoader.d.ts.map +0 -1
- package/package/typescript/Icons/smartFontLoader.d.ts +0 -72
- package/package/typescript/Icons/smartFontLoader.d.ts.map +0 -1
- package/package/typescript/Image/PreviewImg.d.ts.map +0 -1
- package/package/typescript/Input/Input.d.ts.map +0 -1
- package/package/typescript/Layout/DrawerContext.d.ts +0 -4
- package/package/typescript/Layout/DrawerContext.d.ts.map +0 -1
- package/package/typescript/Layout/Layout.d.ts.map +0 -1
- package/package/typescript/Layout/ToastContext.d.ts +0 -4
- package/package/typescript/Layout/ToastContext.d.ts.map +0 -1
- package/package/typescript/LineChart/LineChart.d.ts.map +0 -1
- package/package/typescript/ListItem/ListItem.d.ts.map +0 -1
- package/package/typescript/Pagination/Pagination.d.ts +0 -27
- package/package/typescript/Pagination/Pagination.d.ts.map +0 -1
- package/package/typescript/PieChart/PieChart.d.ts.map +0 -1
- package/package/typescript/Progress/Progress.d.ts.map +0 -1
- package/package/typescript/RadioButton/RadioButton.d.ts.map +0 -1
- package/package/typescript/SearchInput/SearchInput.d.ts.map +0 -1
- package/package/typescript/SheetTitle/SheetTitle.d.ts.map +0 -1
- package/package/typescript/Shell/types.d.ts +0 -21
- package/package/typescript/Shell/types.d.ts.map +0 -1
- package/package/typescript/StatisticCard/StatisticCard.d.ts +0 -19
- package/package/typescript/StatisticCard/StatisticCard.d.ts.map +0 -1
- package/package/typescript/Status/Status.d.ts.map +0 -1
- package/package/typescript/Steps/Steps.d.ts.map +0 -1
- package/package/typescript/Tag/Tag.d.ts +0 -14
- package/package/typescript/Tag/Tag.d.ts.map +0 -1
- package/package/typescript/Theme/ThemeProvider.d.ts +0 -8
- package/package/typescript/Theme/ThemeProvider.d.ts.map +0 -1
- package/package/typescript/Theme/defaultTheme.d.ts +0 -3
- package/package/typescript/Theme/defaultTheme.d.ts.map +0 -1
- package/package/typescript/Timeline/Timeline.d.ts.map +0 -1
- package/package/typescript/WebViewBridge/WebViewBridge.d.ts.map +0 -1
- package/package/typescript/index.d.ts +0 -118
- package/package/typescript/index.d.ts.map +0 -1
- /package/{package/CHANGELOG.md → CHANGELOG.md} +0 -0
- /package/{package/commonjs → commonjs}/Alert/Alert.js.map +0 -0
- /package/{package/commonjs → commonjs}/AnimatedNavItem/AnimatedNavItem.js +0 -0
- /package/{package/commonjs → commonjs}/AnimatedNavItem/AnimatedNavItem.js.map +0 -0
- /package/{components → commonjs}/AnimatedNavItem/README.md +0 -0
- /package/{package/commonjs → commonjs}/AnimatedNavItem/index.js +0 -0
- /package/{package/commonjs → commonjs}/AnimatedNavItem/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/BarChart/index.js +0 -0
- /package/{package/commonjs → commonjs}/BarChart/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Button/Button.js +0 -0
- /package/{package/commonjs → commonjs}/Button/Button.js.map +0 -0
- /package/{package/commonjs → commonjs}/Button/react-native-hoverable.d.js +0 -0
- /package/{package/commonjs → commonjs}/Button/react-native-hoverable.d.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/Calendar.base.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/Calendar.base.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/Calendar.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/Calendar.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/CustomRange.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/CustomRange.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/DaySelector.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/DaySelector.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/MonthSelector.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/MonthSelector.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/WeekDaySelector.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/WeekDaySelector.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/helper.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/helper.js.map +0 -0
- /package/{package/commonjs → commonjs}/Calendar/local.js +0 -0
- /package/{package/commonjs → commonjs}/Calendar/local.js.map +0 -0
- /package/{package/commonjs → commonjs}/CheckBox/GroupCheckBox.js +0 -0
- /package/{package/commonjs → commonjs}/CheckBox/GroupCheckBox.js.map +0 -0
- /package/{package/commonjs → commonjs}/ComboChart/index.js +0 -0
- /package/{package/commonjs → commonjs}/ComboChart/index.js.map +0 -0
- /package/{components → commonjs}/DEPENDENCY_WARNINGS.md +0 -0
- /package/{components → commonjs}/DataCell/README.md +0 -0
- /package/{package/commonjs → commonjs}/DataCell/index.js +0 -0
- /package/{package/commonjs → commonjs}/DataCell/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/DataTable/DataTable.js +0 -0
- /package/{package/commonjs → commonjs}/DataTable/index.js +0 -0
- /package/{package/commonjs → commonjs}/DataTable/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/DeviceSelectionModal/DeviceSelectionModal.js +0 -0
- /package/{package/commonjs → commonjs}/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -0
- /package/{package/commonjs → commonjs}/DraggableFlatList/DraggableFlatList.js +0 -0
- /package/{package/commonjs → commonjs}/DraggableFlatList/DraggableFlatList.js.map +0 -0
- /package/{package/commonjs → commonjs}/Drawer/Drawer.js +0 -0
- /package/{package/commonjs → commonjs}/Drawer/Drawer.js.map +0 -0
- /package/{components → commonjs}/Drawer/SCROLLVIEW_FIX.md +0 -0
- /package/{package/commonjs → commonjs}/Dropdown/Dropdown.js.map +0 -0
- /package/{package/commonjs → commonjs}/ExternalLink/ExternalLink.js +0 -0
- /package/{package/commonjs → commonjs}/ExternalLink/ExternalLink.js.map +0 -0
- /package/{package/commonjs → commonjs}/Gantt/Accessories.js +0 -0
- /package/{package/commonjs → commonjs}/Gantt/Accessories.js.map +0 -0
- /package/{package/commonjs → commonjs}/Gantt/GanttInnerElementType.js +0 -0
- /package/{package/commonjs → commonjs}/Gantt/GanttInnerElementType.js.map +0 -0
- /package/{package/commonjs → commonjs}/Gantt/types.js +0 -0
- /package/{package/commonjs → commonjs}/Gantt/types.js.map +0 -0
- /package/{package/commonjs → commonjs}/Grid/helper.js +0 -0
- /package/{package/commonjs → commonjs}/Grid/helper.js.map +0 -0
- /package/{package/commonjs → commonjs}/Grid/timer.js +0 -0
- /package/{package/commonjs → commonjs}/Grid/timer.js.map +0 -0
- /package/{package/commonjs → commonjs}/HelloWave/HelloWave.js +0 -0
- /package/{package/commonjs → commonjs}/HelloWave/HelloWave.js.map +0 -0
- /package/{package/commonjs → commonjs}/Hoverable/Hoverable.js +0 -0
- /package/{package/commonjs → commonjs}/Hoverable/Hoverable.js.map +0 -0
- /package/{components → commonjs}/Icons/README.md +0 -0
- /package/{components → commonjs}/Icons/icon-categories.json +0 -0
- /package/{package/commonjs → commonjs}/Icons/index.js +0 -0
- /package/{package/commonjs → commonjs}/Icons/index.js.map +0 -0
- /package/{components → commonjs}/Icons/real-icon-mapping.json +0 -0
- /package/{components → commonjs}/Icons/selection.json +0 -0
- /package/{package/commonjs → commonjs}/Image/Image.js +0 -0
- /package/{package/commonjs → commonjs}/Image/Image.js.map +0 -0
- /package/{components → commonjs}/Input/FOCUS_FIX_SUMMARY.md +0 -0
- /package/{components → commonjs}/Input/FOCUS_ISSUE_ANALYSIS.md +0 -0
- /package/{components → commonjs}/Input/README.md +0 -0
- /package/{package/commonjs → commonjs}/Layout/index.js +0 -0
- /package/{package/commonjs → commonjs}/Layout/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/LineChart/index.js +0 -0
- /package/{package/commonjs → commonjs}/LineChart/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Loading/Loading.js +0 -0
- /package/{package/commonjs → commonjs}/Loading/Loading.js.map +0 -0
- /package/{components → commonjs}/Loading/README.md +0 -0
- /package/{package/commonjs → commonjs}/MessageBox/MessageBox.js +0 -0
- /package/{package/commonjs → commonjs}/MessageBox/MessageBox.js.map +0 -0
- /package/{package/commonjs → commonjs}/MultiSelector/MultiSelector.js +0 -0
- /package/{package/commonjs → commonjs}/MultiSelector/MultiSelector.js.map +0 -0
- /package/{components → commonjs}/MultiSelector/README.md +0 -0
- /package/{package/commonjs → commonjs}/MultiSelector/index.js +0 -0
- /package/{package/commonjs → commonjs}/MultiSelector/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Navigation/Navigation.js +0 -0
- /package/{package/commonjs → commonjs}/Notification/Notification.js +0 -0
- /package/{package/commonjs → commonjs}/Notification/Notification.js.map +0 -0
- /package/{components → commonjs}/Notification/README.md +0 -0
- /package/{package/commonjs → commonjs}/Notification/index.js +0 -0
- /package/{package/commonjs → commonjs}/Notification/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/NumericInput/NumericInput.js.map +0 -0
- /package/{package/commonjs → commonjs}/Overlay/Overlay.js +0 -0
- /package/{package/commonjs → commonjs}/Overlay/Overlay.js.map +0 -0
- /package/{components → commonjs}/Pagination/BACKGROUND_COLOR.md +0 -0
- /package/{components → commonjs}/Pagination/DROPDOWN_IMPROVEMENTS.md +0 -0
- /package/{components → commonjs}/PieChart/BACKWARD_COMPATIBILITY.md +0 -0
- /package/{components → commonjs}/PieChart/BUGFIX_EMPTY_DATA.md +0 -0
- /package/{package/commonjs → commonjs}/PieChart/GroupedLegend.js +0 -0
- /package/{package/commonjs → commonjs}/PieChart/GroupedLegend.js.map +0 -0
- /package/{components → commonjs}/PieChart/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{components → commonjs}/PieChart/NestedPieChart.README.md +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.js +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.js.map +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.types.js +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.types.js.map +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.utils.js +0 -0
- /package/{package/commonjs → commonjs}/PieChart/NestedPieChart.utils.js.map +0 -0
- /package/{package/commonjs → commonjs}/PieChart/index.js +0 -0
- /package/{package/commonjs → commonjs}/PieChart/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Popover/Popover.js +0 -0
- /package/{package/commonjs → commonjs}/Popover/Popover.js.map +0 -0
- /package/{package/commonjs → commonjs}/Quantity/Quantity.js +0 -0
- /package/{package/commonjs → commonjs}/Quantity/Quantity.js.map +0 -0
- /package/{components → commonjs}/Quantity/README.md +0 -0
- /package/{package/commonjs → commonjs}/Quantity/index.js +0 -0
- /package/{package/commonjs → commonjs}/Quantity/index.js.map +0 -0
- /package/{components → commonjs}/ReasonModal/README.md +0 -0
- /package/{package/commonjs → commonjs}/ReasonModal/ReasonModal.js +0 -0
- /package/{package/commonjs → commonjs}/ReasonModal/ReasonModal.js.map +0 -0
- /package/{package/commonjs → commonjs}/ReasonModal/index.js +0 -0
- /package/{package/commonjs → commonjs}/ReasonModal/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/ScanButton/ScanButton.js +0 -0
- /package/{package/commonjs → commonjs}/ScanButton/ScanButton.js.map +0 -0
- /package/{components → commonjs}/SearchInput/README.md +0 -0
- /package/{package/commonjs → commonjs}/SearchInput/index.js +0 -0
- /package/{package/commonjs → commonjs}/SearchInput/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Shell/Shell.js +0 -0
- /package/{package/commonjs → commonjs}/Shell/Shell.js.map +0 -0
- /package/{package/commonjs → commonjs}/Shell/styles.js +0 -0
- /package/{package/commonjs → commonjs}/Shell/styles.js.map +0 -0
- /package/{package/commonjs → commonjs}/StatisticCard/index.js +0 -0
- /package/{package/commonjs → commonjs}/StatisticCard/index.js.map +0 -0
- /package/{components → commonjs}/StatisticsTable/PLACEHOLDER_FEATURE.md +0 -0
- /package/{components → commonjs}/StatisticsTable/README.md +0 -0
- /package/{components → commonjs}/StatisticsTable/SORTING_FEATURE.md +0 -0
- /package/{components → commonjs}/StatisticsTable/STATS_CELL_CLICK.md +0 -0
- /package/{package/commonjs → commonjs}/StatisticsTable/StatisticsTable.js +0 -0
- /package/{components → commonjs}/StatisticsTable/VIRTUAL_SCROLLING.md +0 -0
- /package/{package/commonjs → commonjs}/StatisticsTable/index.js +0 -0
- /package/{package/commonjs → commonjs}/StatisticsTable/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Tab/TapasTab.js +0 -0
- /package/{package/commonjs → commonjs}/Tab/TapasTab.js.map +0 -0
- /package/{package/commonjs → commonjs}/Tab/index.js +0 -0
- /package/{package/commonjs → commonjs}/Tab/index.js.map +0 -0
- /package/{components → commonjs}/TabTitle/README.md +0 -0
- /package/{package/commonjs → commonjs}/TabTitle/TabTitle.js +0 -0
- /package/{package/commonjs → commonjs}/TabTitle/TabTitle.js.map +0 -0
- /package/{package/commonjs → commonjs}/TabTitle/index.js +0 -0
- /package/{package/commonjs → commonjs}/TabTitle/index.js.map +0 -0
- /package/{components → commonjs}/TableColumnHeader/README.md +0 -0
- /package/{package/commonjs → commonjs}/TableColumnHeader/TableColumnHeader.js +0 -0
- /package/{package/commonjs → commonjs}/TableColumnHeader/TableColumnHeader.js.map +0 -0
- /package/{package/commonjs → commonjs}/TableColumnHeader/index.js +0 -0
- /package/{package/commonjs → commonjs}/TableColumnHeader/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/Task/Task.js +0 -0
- /package/{package/commonjs → commonjs}/Task/Task.js.map +0 -0
- /package/{package/commonjs → commonjs}/Task/type.js +0 -0
- /package/{package/commonjs → commonjs}/Task/type.js.map +0 -0
- /package/{package/commonjs → commonjs}/Text/Text.js +0 -0
- /package/{package/commonjs → commonjs}/Text/Text.js.map +0 -0
- /package/{package/commonjs → commonjs}/TextArea/TextArea.js +0 -0
- /package/{package/commonjs → commonjs}/TextArea/TextArea.js.map +0 -0
- /package/{package/commonjs → commonjs}/Theme/themed.d.js +0 -0
- /package/{package/commonjs → commonjs}/Theme/themed.d.js.map +0 -0
- /package/{package/commonjs → commonjs}/Toast/Toast.js +0 -0
- /package/{package/commonjs → commonjs}/Toast/Toast.js.map +0 -0
- /package/{components → commonjs}/UserSwitcher/README.md +0 -0
- /package/{package/commonjs → commonjs}/UserSwitcher/UserSwitcher.js +0 -0
- /package/{package/commonjs → commonjs}/UserSwitcher/UserSwitcher.js.map +0 -0
- /package/{package/commonjs → commonjs}/UserSwitcher/index.js +0 -0
- /package/{package/commonjs → commonjs}/UserSwitcher/index.js.map +0 -0
- /package/{components → commonjs}/WebViewBridge/OPTIMIZATION_SUMMARY.md +0 -0
- /package/{components → commonjs}/WebViewBridge/README.md +0 -0
- /package/{package/commonjs → commonjs}/WebViewBridge/index.js +0 -0
- /package/{package/commonjs → commonjs}/WebViewBridge/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/WebViewBridge/useWebViewBridge.js +0 -0
- /package/{package/commonjs → commonjs}/WebViewBridge/useWebViewBridge.js.map +0 -0
- /package/{components → commonjs}/WordCloud/README.md +0 -0
- /package/{package/commonjs → commonjs}/WordCloud/WordCloud.js +0 -0
- /package/{package/commonjs → commonjs}/WordCloud/WordCloud.js.map +0 -0
- /package/{package/commonjs → commonjs}/WordCloud/index.js +0 -0
- /package/{package/commonjs → commonjs}/WordCloud/index.js.map +0 -0
- /package/{package/commonjs → commonjs}/common.js +0 -0
- /package/{package/commonjs → commonjs}/common.js.map +0 -0
- /package/{package/commonjs → commonjs}/package.json +0 -0
- /package/{package/module → module}/Alert/Alert.js.map +0 -0
- /package/{package/module → module}/AnimatedNavItem/AnimatedNavItem.js +0 -0
- /package/{package/module → module}/AnimatedNavItem/AnimatedNavItem.js.map +0 -0
- /package/{package/commonjs → module}/AnimatedNavItem/README.md +0 -0
- /package/{package/module → module}/AnimatedNavItem/index.js +0 -0
- /package/{package/module → module}/AnimatedNavItem/index.js.map +0 -0
- /package/{package/module → module}/BarChart/index.js +0 -0
- /package/{package/module → module}/BarChart/index.js.map +0 -0
- /package/{package/module → module}/Button/Button.js +0 -0
- /package/{package/module → module}/Button/Button.js.map +0 -0
- /package/{package/module → module}/Button/react-native-hoverable.d.js +0 -0
- /package/{package/module → module}/Button/react-native-hoverable.d.js.map +0 -0
- /package/{package/module → module}/Calendar/Calendar.base.js +0 -0
- /package/{package/module → module}/Calendar/Calendar.base.js.map +0 -0
- /package/{package/module → module}/Calendar/Calendar.js +0 -0
- /package/{package/module → module}/Calendar/Calendar.js.map +0 -0
- /package/{package/module → module}/Calendar/CustomRange.js +0 -0
- /package/{package/module → module}/Calendar/CustomRange.js.map +0 -0
- /package/{package/module → module}/Calendar/DaySelector.js +0 -0
- /package/{package/module → module}/Calendar/DaySelector.js.map +0 -0
- /package/{package/module → module}/Calendar/MonthSelector.js +0 -0
- /package/{package/module → module}/Calendar/MonthSelector.js.map +0 -0
- /package/{package/module → module}/Calendar/WeekDaySelector.js +0 -0
- /package/{package/module → module}/Calendar/WeekDaySelector.js.map +0 -0
- /package/{package/module → module}/Calendar/helper.js +0 -0
- /package/{package/module → module}/Calendar/helper.js.map +0 -0
- /package/{package/module → module}/Calendar/local.js +0 -0
- /package/{package/module → module}/Calendar/local.js.map +0 -0
- /package/{package/module → module}/CheckBox/GroupCheckBox.js +0 -0
- /package/{package/module → module}/CheckBox/GroupCheckBox.js.map +0 -0
- /package/{package/module → module}/ComboChart/index.js +0 -0
- /package/{package/module → module}/ComboChart/index.js.map +0 -0
- /package/{package/commonjs → module}/DEPENDENCY_WARNINGS.md +0 -0
- /package/{package/commonjs → module}/DataCell/README.md +0 -0
- /package/{package/module → module}/DataCell/index.js +0 -0
- /package/{package/module → module}/DataCell/index.js.map +0 -0
- /package/{package/module → module}/DataTable/DataTable.js +0 -0
- /package/{package/module → module}/DataTable/index.js +0 -0
- /package/{package/module → module}/DataTable/index.js.map +0 -0
- /package/{package/module → module}/DeviceSelectionModal/DeviceSelectionModal.js +0 -0
- /package/{package/module → module}/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -0
- /package/{package/module → module}/DraggableFlatList/DraggableFlatList.js +0 -0
- /package/{package/module → module}/DraggableFlatList/DraggableFlatList.js.map +0 -0
- /package/{package/module → module}/Drawer/Drawer.js +0 -0
- /package/{package/module → module}/Drawer/Drawer.js.map +0 -0
- /package/{package/commonjs → module}/Drawer/SCROLLVIEW_FIX.md +0 -0
- /package/{package/module → module}/Dropdown/Dropdown.js.map +0 -0
- /package/{package/module → module}/ExternalLink/ExternalLink.js +0 -0
- /package/{package/module → module}/ExternalLink/ExternalLink.js.map +0 -0
- /package/{package/module → module}/Gantt/Accessories.js +0 -0
- /package/{package/module → module}/Gantt/Accessories.js.map +0 -0
- /package/{package/module → module}/Gantt/GanttInnerElementType.js +0 -0
- /package/{package/module → module}/Gantt/GanttInnerElementType.js.map +0 -0
- /package/{package/module → module}/Gantt/types.js +0 -0
- /package/{package/module → module}/Gantt/types.js.map +0 -0
- /package/{package/module → module}/Grid/helper.js +0 -0
- /package/{package/module → module}/Grid/helper.js.map +0 -0
- /package/{package/module → module}/Grid/timer.js +0 -0
- /package/{package/module → module}/Grid/timer.js.map +0 -0
- /package/{package/module → module}/HelloWave/HelloWave.js +0 -0
- /package/{package/module → module}/HelloWave/HelloWave.js.map +0 -0
- /package/{package/module → module}/Hoverable/Hoverable.js +0 -0
- /package/{package/module → module}/Hoverable/Hoverable.js.map +0 -0
- /package/{package/commonjs → module}/Icons/README.md +0 -0
- /package/{package/commonjs → module}/Icons/icon-categories.json +0 -0
- /package/{package/module → module}/Icons/index.js +0 -0
- /package/{package/module → module}/Icons/index.js.map +0 -0
- /package/{package/commonjs → module}/Icons/real-icon-mapping.json +0 -0
- /package/{package/commonjs → module}/Icons/selection.json +0 -0
- /package/{package/module → module}/Image/Image.js +0 -0
- /package/{package/module → module}/Image/Image.js.map +0 -0
- /package/{package/commonjs → module}/Input/FOCUS_FIX_SUMMARY.md +0 -0
- /package/{package/commonjs → module}/Input/FOCUS_ISSUE_ANALYSIS.md +0 -0
- /package/{package/commonjs → module}/Input/README.md +0 -0
- /package/{package/module → module}/Layout/index.js +0 -0
- /package/{package/module → module}/Layout/index.js.map +0 -0
- /package/{package/module → module}/LineChart/index.js +0 -0
- /package/{package/module → module}/LineChart/index.js.map +0 -0
- /package/{package/module → module}/Loading/Loading.js +0 -0
- /package/{package/module → module}/Loading/Loading.js.map +0 -0
- /package/{package/commonjs → module}/Loading/README.md +0 -0
- /package/{package/module → module}/MessageBox/MessageBox.js +0 -0
- /package/{package/module → module}/MessageBox/MessageBox.js.map +0 -0
- /package/{package/module → module}/MultiSelector/MultiSelector.js +0 -0
- /package/{package/module → module}/MultiSelector/MultiSelector.js.map +0 -0
- /package/{package/commonjs → module}/MultiSelector/README.md +0 -0
- /package/{package/module → module}/MultiSelector/index.js +0 -0
- /package/{package/module → module}/MultiSelector/index.js.map +0 -0
- /package/{package/module → module}/Navigation/Navigation.js +0 -0
- /package/{package/module → module}/Notification/Notification.js +0 -0
- /package/{package/module → module}/Notification/Notification.js.map +0 -0
- /package/{package/commonjs → module}/Notification/README.md +0 -0
- /package/{package/module → module}/Notification/index.js +0 -0
- /package/{package/module → module}/Notification/index.js.map +0 -0
- /package/{package/module → module}/NumericInput/NumericInput.js.map +0 -0
- /package/{package/module → module}/Overlay/Overlay.js +0 -0
- /package/{package/module → module}/Overlay/Overlay.js.map +0 -0
- /package/{package/commonjs → module}/Pagination/BACKGROUND_COLOR.md +0 -0
- /package/{package/commonjs → module}/Pagination/DROPDOWN_IMPROVEMENTS.md +0 -0
- /package/{package/commonjs → module}/PieChart/BACKWARD_COMPATIBILITY.md +0 -0
- /package/{package/commonjs → module}/PieChart/BUGFIX_EMPTY_DATA.md +0 -0
- /package/{package/module → module}/PieChart/GroupedLegend.js +0 -0
- /package/{package/module → module}/PieChart/GroupedLegend.js.map +0 -0
- /package/{package/commonjs → module}/PieChart/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{package/commonjs → module}/PieChart/NestedPieChart.README.md +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.js +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.js.map +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.types.js +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.types.js.map +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.utils.js +0 -0
- /package/{package/module → module}/PieChart/NestedPieChart.utils.js.map +0 -0
- /package/{package/module → module}/PieChart/index.js +0 -0
- /package/{package/module → module}/PieChart/index.js.map +0 -0
- /package/{package/module → module}/Popover/Popover.js +0 -0
- /package/{package/module → module}/Popover/Popover.js.map +0 -0
- /package/{package/module → module}/Quantity/Quantity.js +0 -0
- /package/{package/module → module}/Quantity/Quantity.js.map +0 -0
- /package/{package/commonjs → module}/Quantity/README.md +0 -0
- /package/{package/module → module}/Quantity/index.js +0 -0
- /package/{package/module → module}/Quantity/index.js.map +0 -0
- /package/{package/commonjs → module}/ReasonModal/README.md +0 -0
- /package/{package/module → module}/ReasonModal/ReasonModal.js +0 -0
- /package/{package/module → module}/ReasonModal/ReasonModal.js.map +0 -0
- /package/{package/module → module}/ReasonModal/index.js +0 -0
- /package/{package/module → module}/ReasonModal/index.js.map +0 -0
- /package/{package/module → module}/ScanButton/ScanButton.js +0 -0
- /package/{package/module → module}/ScanButton/ScanButton.js.map +0 -0
- /package/{package/commonjs → module}/SearchInput/README.md +0 -0
- /package/{package/module → module}/SearchInput/index.js +0 -0
- /package/{package/module → module}/SearchInput/index.js.map +0 -0
- /package/{package/module → module}/Shell/Shell.js +0 -0
- /package/{package/module → module}/Shell/Shell.js.map +0 -0
- /package/{package/module → module}/Shell/styles.js +0 -0
- /package/{package/module → module}/Shell/styles.js.map +0 -0
- /package/{package/module → module}/StatisticCard/index.js +0 -0
- /package/{package/module → module}/StatisticCard/index.js.map +0 -0
- /package/{package/commonjs → module}/StatisticsTable/PLACEHOLDER_FEATURE.md +0 -0
- /package/{package/commonjs → module}/StatisticsTable/README.md +0 -0
- /package/{package/commonjs → module}/StatisticsTable/SORTING_FEATURE.md +0 -0
- /package/{package/commonjs → module}/StatisticsTable/STATS_CELL_CLICK.md +0 -0
- /package/{package/module → module}/StatisticsTable/StatisticsTable.js +0 -0
- /package/{package/commonjs → module}/StatisticsTable/VIRTUAL_SCROLLING.md +0 -0
- /package/{package/module → module}/StatisticsTable/index.js +0 -0
- /package/{package/module → module}/StatisticsTable/index.js.map +0 -0
- /package/{package/module → module}/Tab/TapasTab.js +0 -0
- /package/{package/module → module}/Tab/TapasTab.js.map +0 -0
- /package/{package/module → module}/Tab/index.js +0 -0
- /package/{package/module → module}/Tab/index.js.map +0 -0
- /package/{package/commonjs → module}/TabTitle/README.md +0 -0
- /package/{package/module → module}/TabTitle/TabTitle.js +0 -0
- /package/{package/module → module}/TabTitle/TabTitle.js.map +0 -0
- /package/{package/module → module}/TabTitle/index.js +0 -0
- /package/{package/module → module}/TabTitle/index.js.map +0 -0
- /package/{package/commonjs → module}/TableColumnHeader/README.md +0 -0
- /package/{package/module → module}/TableColumnHeader/TableColumnHeader.js +0 -0
- /package/{package/module → module}/TableColumnHeader/TableColumnHeader.js.map +0 -0
- /package/{package/module → module}/TableColumnHeader/index.js +0 -0
- /package/{package/module → module}/TableColumnHeader/index.js.map +0 -0
- /package/{package/module → module}/Task/Task.js +0 -0
- /package/{package/module → module}/Task/Task.js.map +0 -0
- /package/{package/module → module}/Task/type.js +0 -0
- /package/{package/module → module}/Task/type.js.map +0 -0
- /package/{package/module → module}/Text/Text.js +0 -0
- /package/{package/module → module}/Text/Text.js.map +0 -0
- /package/{package/module → module}/TextArea/TextArea.js +0 -0
- /package/{package/module → module}/TextArea/TextArea.js.map +0 -0
- /package/{package/module → module}/Theme/themed.d.js +0 -0
- /package/{package/module → module}/Theme/themed.d.js.map +0 -0
- /package/{package/module → module}/Toast/Toast.js +0 -0
- /package/{package/module → module}/Toast/Toast.js.map +0 -0
- /package/{package/commonjs → module}/UserSwitcher/README.md +0 -0
- /package/{package/module → module}/UserSwitcher/UserSwitcher.js +0 -0
- /package/{package/module → module}/UserSwitcher/UserSwitcher.js.map +0 -0
- /package/{package/module → module}/UserSwitcher/index.js +0 -0
- /package/{package/module → module}/UserSwitcher/index.js.map +0 -0
- /package/{package/commonjs → module}/WebViewBridge/OPTIMIZATION_SUMMARY.md +0 -0
- /package/{package/commonjs → module}/WebViewBridge/README.md +0 -0
- /package/{package/module → module}/WebViewBridge/index.js +0 -0
- /package/{package/module → module}/WebViewBridge/index.js.map +0 -0
- /package/{package/module → module}/WebViewBridge/useWebViewBridge.js +0 -0
- /package/{package/module → module}/WebViewBridge/useWebViewBridge.js.map +0 -0
- /package/{package/commonjs → module}/WordCloud/README.md +0 -0
- /package/{package/module → module}/WordCloud/WordCloud.js +0 -0
- /package/{package/module → module}/WordCloud/WordCloud.js.map +0 -0
- /package/{package/module → module}/WordCloud/index.js +0 -0
- /package/{package/module → module}/WordCloud/index.js.map +0 -0
- /package/{package/module → module}/common.js +0 -0
- /package/{package/module → module}/common.js.map +0 -0
- /package/{package/typescript → typescript}/Alert/Alert.d.ts +0 -0
- /package/{package/typescript → typescript}/Alert/Alert.d.ts.map +0 -0
- /package/{package/typescript → typescript}/AnimatedNavItem/AnimatedNavItem.d.ts +0 -0
- /package/{package/typescript → typescript}/AnimatedNavItem/AnimatedNavItem.d.ts.map +0 -0
- /package/{package/typescript → typescript}/AnimatedNavItem/index.d.ts +0 -0
- /package/{package/typescript → typescript}/AnimatedNavItem/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/BarChart/BarChart.d.ts +0 -0
- /package/{package/typescript → typescript}/BarChart/index.d.ts +0 -0
- /package/{package/typescript → typescript}/BarChart/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Button/Button.d.ts +0 -0
- /package/{package/typescript → typescript}/Button/Button.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/Calendar.base.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/Calendar.base.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/Calendar.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/Calendar.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/ConcreteTimeSelector.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/DaySelector.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/DaySelector.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/MonthSelector.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/MonthSelector.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/TimeSelector.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/WeekDaySelector.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/WeekDaySelector.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/helper.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/helper.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Calendar/local.d.ts +0 -0
- /package/{package/typescript → typescript}/Calendar/local.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Card/Card.d.ts +0 -0
- /package/{package/typescript → typescript}/CheckBox/CheckBox.d.ts +0 -0
- /package/{package/typescript → typescript}/CheckBox/CheckBoxItem.d.ts +0 -0
- /package/{package/typescript → typescript}/CheckBox/GroupCheckBox.d.ts +0 -0
- /package/{package/typescript → typescript}/CheckBox/GroupCheckBox.d.ts.map +0 -0
- /package/{package/typescript → typescript}/CircularProgress/CircularProgress.d.ts +0 -0
- /package/{package/typescript → typescript}/Collapsible/Collapsible.d.ts +0 -0
- /package/{package/typescript → typescript}/ComboChart/ComboChart.d.ts +0 -0
- /package/{package/typescript → typescript}/ComboChart/index.d.ts +0 -0
- /package/{package/typescript → typescript}/ComboChart/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/DataCell/DataCell.d.ts +0 -0
- /package/{package/typescript → typescript}/DataCell/index.d.ts +0 -0
- /package/{package/typescript → typescript}/DataCell/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/DataTable/DataTable.d.ts +0 -0
- /package/{package/typescript → typescript}/DataTable/DataTable.d.ts.map +0 -0
- /package/{package/typescript → typescript}/DataTable/index.d.ts +0 -0
- /package/{package/typescript → typescript}/DataTable/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/DeviceSelectionModal/DeviceSelectionModal.d.ts +0 -0
- /package/{package/typescript → typescript}/DeviceSelectionModal/DeviceSelectionModal.d.ts.map +0 -0
- /package/{package/typescript → typescript}/DraggableFlatList/DraggableFlatList.d.ts +0 -0
- /package/{package/typescript → typescript}/DraggableFlatList/DraggableFlatList.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Drawer/Drawer.d.ts +0 -0
- /package/{package/typescript → typescript}/Drawer/Drawer.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Dropdown/CustomDropdown.d.ts +0 -0
- /package/{package/typescript → typescript}/Dropdown/Dropdown.d.ts +0 -0
- /package/{package/typescript → typescript}/Dropdown/Dropdown.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Dropdown/InputDropdown.d.ts +0 -0
- /package/{package/typescript → typescript}/ExternalLink/ExternalLink.d.ts +0 -0
- /package/{package/typescript → typescript}/ExternalLink/ExternalLink.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Gantt/Accessories.d.ts +0 -0
- /package/{package/typescript → typescript}/Gantt/Accessories.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Gantt/Gantt.d.ts +0 -0
- /package/{package/typescript → typescript}/Gantt/GanttInnerElementType.d.ts +0 -0
- /package/{package/typescript → typescript}/Gantt/GanttInnerElementType.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Gantt/types.d.ts +0 -0
- /package/{package/typescript → typescript}/Gantt/types.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Grid/FixedSizeGrid.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/Grid.base.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/StaticFixedSizeGrid.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/VariableSizeGrid.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/helper.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/helper.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Grid/timer.d.ts +0 -0
- /package/{package/typescript → typescript}/Grid/timer.d.ts.map +0 -0
- /package/{package/typescript → typescript}/HelloWave/HelloWave.d.ts +0 -0
- /package/{package/typescript → typescript}/HelloWave/HelloWave.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Hoverable/Hoverable.d.ts +0 -0
- /package/{package/typescript → typescript}/Hoverable/Hoverable.d.ts.map +0 -0
- /package/{package/typescript → typescript}/IconText/IconText.d.ts +0 -0
- /package/{package/typescript → typescript}/Icons/TapasIconExpo.d.ts +0 -0
- /package/{package/typescript → typescript}/Icons/index.d.ts +0 -0
- /package/{package/typescript → typescript}/Icons/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Image/Image.d.ts +0 -0
- /package/{package/typescript → typescript}/Image/Image.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Image/PreviewImg.d.ts +0 -0
- /package/{package/typescript → typescript}/Input/Input.d.ts +0 -0
- /package/{package/typescript → typescript}/Layout/Layout.d.ts +0 -0
- /package/{package/typescript → typescript}/Layout/index.d.ts +0 -0
- /package/{package/typescript → typescript}/Layout/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/LineChart/LineChart.d.ts +0 -0
- /package/{package/typescript → typescript}/LineChart/index.d.ts +0 -0
- /package/{package/typescript → typescript}/LineChart/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/ListItem/ListItem.d.ts +0 -0
- /package/{package/typescript → typescript}/Loading/Loading.d.ts +0 -0
- /package/{package/typescript → typescript}/Loading/Loading.d.ts.map +0 -0
- /package/{package/typescript → typescript}/MessageBox/MessageBox.d.ts +0 -0
- /package/{package/typescript → typescript}/MessageBox/MessageBox.d.ts.map +0 -0
- /package/{package/typescript → typescript}/MultiSelector/MultiSelector.d.ts +0 -0
- /package/{package/typescript → typescript}/MultiSelector/MultiSelector.d.ts.map +0 -0
- /package/{package/typescript → typescript}/MultiSelector/index.d.ts +0 -0
- /package/{package/typescript → typescript}/MultiSelector/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Navigation/Navigation.d.ts +0 -0
- /package/{package/typescript → typescript}/Navigation/Navigation.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Notification/Notification.d.ts +0 -0
- /package/{package/typescript → typescript}/Notification/Notification.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Notification/index.d.ts +0 -0
- /package/{package/typescript → typescript}/Notification/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/NumericInput/NumericInput.d.ts +0 -0
- /package/{package/typescript → typescript}/NumericInput/NumericInput.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Overlay/Overlay.d.ts +0 -0
- /package/{package/typescript → typescript}/Overlay/Overlay.d.ts.map +0 -0
- /package/{package/typescript → typescript}/PieChart/GroupedLegend.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/GroupedLegend.d.ts.map +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.d.ts.map +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.types.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.types.d.ts.map +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.utils.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/NestedPieChart.utils.d.ts.map +0 -0
- /package/{package/typescript → typescript}/PieChart/PieChart.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/index.d.ts +0 -0
- /package/{package/typescript → typescript}/PieChart/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Popover/Popover.d.ts +0 -0
- /package/{package/typescript → typescript}/Popover/Popover.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Progress/Progress.d.ts +0 -0
- /package/{package/typescript → typescript}/Quantity/Quantity.d.ts +0 -0
- /package/{package/typescript → typescript}/Quantity/Quantity.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Quantity/index.d.ts +0 -0
- /package/{package/typescript → typescript}/Quantity/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/RadioButton/RadioButton.d.ts +0 -0
- /package/{package/typescript → typescript}/ReasonModal/ReasonModal.d.ts +0 -0
- /package/{package/typescript → typescript}/ReasonModal/ReasonModal.d.ts.map +0 -0
- /package/{package/typescript → typescript}/ReasonModal/index.d.ts +0 -0
- /package/{package/typescript → typescript}/ReasonModal/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/ScanButton/ScanButton.d.ts +0 -0
- /package/{package/typescript → typescript}/ScanButton/ScanButton.d.ts.map +0 -0
- /package/{package/typescript → typescript}/SearchInput/SearchInput.d.ts +0 -0
- /package/{package/typescript → typescript}/SearchInput/index.d.ts +0 -0
- /package/{package/typescript → typescript}/SearchInput/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/SheetTitle/SheetTitle.d.ts +0 -0
- /package/{package/typescript → typescript}/Shell/Shell.d.ts +0 -0
- /package/{package/typescript → typescript}/Shell/Shell.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Shell/styles.d.ts +0 -0
- /package/{package/typescript → typescript}/Shell/styles.d.ts.map +0 -0
- /package/{package/typescript → typescript}/StatisticCard/index.d.ts +0 -0
- /package/{package/typescript → typescript}/StatisticCard/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/StatisticsTable/StatisticsTable.d.ts +0 -0
- /package/{package/typescript → typescript}/StatisticsTable/StatisticsTable.d.ts.map +0 -0
- /package/{package/typescript → typescript}/StatisticsTable/index.d.ts +0 -0
- /package/{package/typescript → typescript}/StatisticsTable/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Status/Status.d.ts +0 -0
- /package/{package/typescript → typescript}/Steps/Steps.d.ts +0 -0
- /package/{package/typescript → typescript}/Tab/TapasTab.d.ts +0 -0
- /package/{package/typescript → typescript}/Tab/TapasTab.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Tab/index.d.ts +0 -0
- /package/{package/typescript → typescript}/Tab/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/TabTitle/TabTitle.d.ts +0 -0
- /package/{package/typescript → typescript}/TabTitle/TabTitle.d.ts.map +0 -0
- /package/{package/typescript → typescript}/TabTitle/index.d.ts +0 -0
- /package/{package/typescript → typescript}/TabTitle/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/TableColumnHeader/TableColumnHeader.d.ts +0 -0
- /package/{package/typescript → typescript}/TableColumnHeader/TableColumnHeader.d.ts.map +0 -0
- /package/{package/typescript → typescript}/TableColumnHeader/index.d.ts +0 -0
- /package/{package/typescript → typescript}/TableColumnHeader/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Task/Task.d.ts +0 -0
- /package/{package/typescript → typescript}/Task/Task.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Task/type.d.ts +0 -0
- /package/{package/typescript → typescript}/Task/type.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Text/Text.d.ts +0 -0
- /package/{package/typescript → typescript}/Text/Text.d.ts.map +0 -0
- /package/{package/typescript → typescript}/TextArea/TextArea.d.ts +0 -0
- /package/{package/typescript → typescript}/TextArea/TextArea.d.ts.map +0 -0
- /package/{package/typescript → typescript}/Timeline/Timeline.d.ts +0 -0
- /package/{package/typescript → typescript}/Toast/Toast.d.ts +0 -0
- /package/{package/typescript → typescript}/Toast/Toast.d.ts.map +0 -0
- /package/{package/typescript → typescript}/UserSwitcher/UserSwitcher.d.ts +0 -0
- /package/{package/typescript → typescript}/UserSwitcher/UserSwitcher.d.ts.map +0 -0
- /package/{package/typescript → typescript}/UserSwitcher/index.d.ts +0 -0
- /package/{package/typescript → typescript}/UserSwitcher/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/WebViewBridge/WebViewBridge.d.ts +0 -0
- /package/{package/typescript → typescript}/WebViewBridge/index.d.ts +0 -0
- /package/{package/typescript → typescript}/WebViewBridge/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/WebViewBridge/useWebViewBridge.d.ts +0 -0
- /package/{package/typescript → typescript}/WebViewBridge/useWebViewBridge.d.ts.map +0 -0
- /package/{package/typescript → typescript}/WordCloud/WordCloud.d.ts +0 -0
- /package/{package/typescript → typescript}/WordCloud/WordCloud.d.ts.map +0 -0
- /package/{package/typescript → typescript}/WordCloud/index.d.ts +0 -0
- /package/{package/typescript → typescript}/WordCloud/index.d.ts.map +0 -0
- /package/{package/typescript → typescript}/common/bridgelessUtils.d.ts +0 -0
- /package/{package/typescript → typescript}/common/bridgelessUtils.d.ts.map +0 -0
- /package/{package/typescript → typescript}/common.d.ts +0 -0
- /package/{package/typescript → typescript}/common.d.ts.map +0 -0
|
@@ -0,0 +1,975 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.handleNativeWebViewMessage = exports.default = exports.createWebViewInjectedScript = exports.WebViewBridge = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
/**
|
|
12
|
+
* WebViewBridge - WebView/iframe 通信桥接组件
|
|
13
|
+
*
|
|
14
|
+
* 用于 RN Web 模块与 tapas-sys 底座之间的通信
|
|
15
|
+
* - Android/iOS: 使用 WebView postMessage/onMessage
|
|
16
|
+
* - Web: 使用 iframe window.postMessage/onMessage
|
|
17
|
+
*
|
|
18
|
+
* 自动检测运行环境并适配相应的通信方式
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** Extended Window interface for React Native WebView bridge */
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* tapas-sys 消息格式
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 检测当前运行环境
|
|
29
|
+
*/
|
|
30
|
+
const detectEnvironment = () => {
|
|
31
|
+
if (typeof window === 'undefined') {
|
|
32
|
+
return 'unknown';
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
// 🔧 修复:使用与 checkRunningPlatform 完全一致的逻辑
|
|
36
|
+
// 1. 首先检查是否是 iframe
|
|
37
|
+
const isIframe = window.self !== window.top;
|
|
38
|
+
if (isIframe) {
|
|
39
|
+
return 'iframe';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 2. 然后检查是否是 WebView(通过 userAgent)
|
|
43
|
+
const isWebView = /WebView|wv/i.test(navigator.userAgent);
|
|
44
|
+
if (isWebView) {
|
|
45
|
+
return 'webview';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 3. 如果是 React Native 环境(非 Web),默认是 webview
|
|
49
|
+
if (_reactNative.Platform.OS !== 'web') {
|
|
50
|
+
return 'webview';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 4. 默认 Web 环境视为 browser,但这里我们返回 'iframe' 以保持兼容性
|
|
54
|
+
return 'iframe';
|
|
55
|
+
} catch (e) {
|
|
56
|
+
// 错误时,如果是 React Native 环境,默认是 webview
|
|
57
|
+
if (_reactNative.Platform.OS !== 'web') {
|
|
58
|
+
return 'webview';
|
|
59
|
+
}
|
|
60
|
+
return 'iframe';
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* WebViewBridge 组件
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Base64 编码/解码工具函数
|
|
69
|
+
* 符合 tapas-sys 的解析格式
|
|
70
|
+
*/
|
|
71
|
+
const encodeBase64 = str => {
|
|
72
|
+
try {
|
|
73
|
+
// 浏览器环境:使用 btoa
|
|
74
|
+
if (typeof window !== 'undefined') {
|
|
75
|
+
// 处理 Unicode 字符
|
|
76
|
+
return window.btoa(unescape(encodeURIComponent(str)));
|
|
77
|
+
}
|
|
78
|
+
// Node.js 环境:使用 Buffer
|
|
79
|
+
if (typeof Buffer !== 'undefined') {
|
|
80
|
+
return Buffer.from(str, 'utf-8').toString('base64');
|
|
81
|
+
}
|
|
82
|
+
// 降级方案:尝试全局 btoa
|
|
83
|
+
if (typeof btoa !== 'undefined') {
|
|
84
|
+
return btoa(unescape(encodeURIComponent(str)));
|
|
85
|
+
}
|
|
86
|
+
throw new Error('Base64 编码不可用');
|
|
87
|
+
} catch (e) {
|
|
88
|
+
console.warn('WebViewBridge: Base64 编码失败,使用原始字符串', e);
|
|
89
|
+
return str;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const decodeBase64 = str => {
|
|
93
|
+
try {
|
|
94
|
+
// 浏览器环境:使用 atob
|
|
95
|
+
if (typeof window !== 'undefined') {
|
|
96
|
+
// 处理 Unicode 字符
|
|
97
|
+
return decodeURIComponent(escape(window.atob(str)));
|
|
98
|
+
}
|
|
99
|
+
// Node.js 环境:使用 Buffer
|
|
100
|
+
if (typeof Buffer !== 'undefined') {
|
|
101
|
+
return Buffer.from(str, 'base64').toString('utf-8');
|
|
102
|
+
}
|
|
103
|
+
// 降级方案:尝试全局 atob
|
|
104
|
+
if (typeof atob !== 'undefined') {
|
|
105
|
+
return decodeURIComponent(escape(atob(str)));
|
|
106
|
+
}
|
|
107
|
+
throw new Error('Base64 解码不可用');
|
|
108
|
+
} catch (e) {
|
|
109
|
+
console.warn('WebViewBridge: Base64 解码失败,返回原始字符串', e);
|
|
110
|
+
return str;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 日志工具函数
|
|
116
|
+
*/
|
|
117
|
+
const createLogger = (debug, logLevel) => {
|
|
118
|
+
const levels = ['none', 'error', 'warn', 'info', 'debug'];
|
|
119
|
+
const currentLevelIndex = levels.indexOf(logLevel);
|
|
120
|
+
const shouldLog = level => {
|
|
121
|
+
const levelIndex = levels.indexOf(level);
|
|
122
|
+
return levelIndex >= 0 && levelIndex <= currentLevelIndex;
|
|
123
|
+
};
|
|
124
|
+
return {
|
|
125
|
+
error: (...args) => {
|
|
126
|
+
if (shouldLog('error')) {
|
|
127
|
+
console.error('[WebViewBridge]', ...args);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
warn: (...args) => {
|
|
131
|
+
if (shouldLog('warn')) {
|
|
132
|
+
console.warn('[WebViewBridge]', ...args);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
info: (...args) => {
|
|
136
|
+
if (shouldLog('info')) {
|
|
137
|
+
console.log('[WebViewBridge]', ...args);
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
debug: (...args) => {
|
|
141
|
+
if (debug && shouldLog('debug')) {
|
|
142
|
+
console.log('[WebViewBridge DEBUG]', ...args);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 验证消息来源(origin)
|
|
150
|
+
*/
|
|
151
|
+
const validateOrigin = (origin, allowedOrigins, strictOriginCheck, logger) => {
|
|
152
|
+
// 如果没有设置 allowedOrigins,不进行验证(开发环境)
|
|
153
|
+
if (!allowedOrigins || allowedOrigins.length === 0) {
|
|
154
|
+
logger.debug('Origin 验证已禁用(allowedOrigins 为空)');
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 如果没有 origin(某些环境可能没有),根据 strictOriginCheck 决定
|
|
159
|
+
if (!origin) {
|
|
160
|
+
if (strictOriginCheck) {
|
|
161
|
+
logger.warn('消息没有 origin 信息,且 strictOriginCheck=true,拒绝消息');
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
logger.warn('消息没有 origin 信息,但 strictOriginCheck=false,允许消息');
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// 检查 origin 是否在白名单中
|
|
169
|
+
const isAllowed = allowedOrigins.some(allowed => {
|
|
170
|
+
// 支持通配符匹配(如 'https://*.example.com')
|
|
171
|
+
if (allowed.includes('*')) {
|
|
172
|
+
const pattern = allowed.replace(/\*/g, '.*');
|
|
173
|
+
const regex = new RegExp(`^${pattern}$`);
|
|
174
|
+
return regex.test(origin);
|
|
175
|
+
}
|
|
176
|
+
return origin === allowed;
|
|
177
|
+
});
|
|
178
|
+
if (!isAllowed) {
|
|
179
|
+
if (strictOriginCheck) {
|
|
180
|
+
logger.error(`消息来源 ${origin} 不在白名单中,拒绝消息。白名单:`, allowedOrigins);
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
logger.warn(`消息来源 ${origin} 不在白名单中,但 strictOriginCheck=false,允许消息。白名单:`, allowedOrigins);
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
logger.debug(`消息来源 ${origin} 验证通过`);
|
|
187
|
+
return true;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 验证消息的 from 字段
|
|
192
|
+
*/
|
|
193
|
+
const validateFrom = (messageFrom, allowedFrom, logger) => {
|
|
194
|
+
if (!allowedFrom || allowedFrom.length === 0) {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
if (!messageFrom) {
|
|
198
|
+
logger.warn('消息没有 from 字段,但设置了 allowedFrom,拒绝消息');
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
const isAllowed = allowedFrom.includes(messageFrom);
|
|
202
|
+
if (!isAllowed) {
|
|
203
|
+
logger.warn(`消息 from 字段 ${messageFrom} 不在白名单中,拒绝消息。白名单:`, allowedFrom);
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
logger.debug(`消息 from 字段 ${messageFrom} 验证通过`);
|
|
207
|
+
return true;
|
|
208
|
+
};
|
|
209
|
+
const WebViewBridge = exports.WebViewBridge = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
210
|
+
from,
|
|
211
|
+
onMessage,
|
|
212
|
+
onError,
|
|
213
|
+
initPayload,
|
|
214
|
+
autoInit = true,
|
|
215
|
+
initMessageType = 'init',
|
|
216
|
+
enableBase64 = true,
|
|
217
|
+
showPlaceholder = true,
|
|
218
|
+
style,
|
|
219
|
+
testID,
|
|
220
|
+
allowedOrigins,
|
|
221
|
+
strictOriginCheck = false,
|
|
222
|
+
allowedFrom,
|
|
223
|
+
messageFilter,
|
|
224
|
+
debug = false,
|
|
225
|
+
logLevel = 'warn'
|
|
226
|
+
}, ref) => {
|
|
227
|
+
const environmentRef = (0, _react.useRef)(detectEnvironment());
|
|
228
|
+
const messageIdCounterRef = (0, _react.useRef)(0);
|
|
229
|
+
const initSentRef = (0, _react.useRef)(false);
|
|
230
|
+
const messageHandlersRef = (0, _react.useRef)(new Map());
|
|
231
|
+
const loggerRef = (0, _react.useRef)(createLogger(debug, logLevel));
|
|
232
|
+
const cleanupFunctionsRef = (0, _react.useRef)([]);
|
|
233
|
+
|
|
234
|
+
// 更新 logger 当 debug 或 logLevel 改变时
|
|
235
|
+
(0, _react.useEffect)(() => {
|
|
236
|
+
loggerRef.current = createLogger(debug, logLevel);
|
|
237
|
+
}, [debug, logLevel]);
|
|
238
|
+
|
|
239
|
+
// 🔧 组件挂载时立即输出日志,确认组件已加载
|
|
240
|
+
(0, _react.useEffect)(() => {
|
|
241
|
+
loggerRef.current.info('🚀 [WebViewBridge] 组件已挂载', {
|
|
242
|
+
from,
|
|
243
|
+
environment: environmentRef.current,
|
|
244
|
+
autoInit,
|
|
245
|
+
debug,
|
|
246
|
+
logLevel,
|
|
247
|
+
hasWindow: typeof window !== 'undefined',
|
|
248
|
+
hasReactNativeWebView: typeof window !== 'undefined' && !!window.ReactNativeWebView
|
|
249
|
+
});
|
|
250
|
+
}, []);
|
|
251
|
+
|
|
252
|
+
// 生成唯一消息 ID
|
|
253
|
+
const generateMessageId = (0, _react.useCallback)(() => {
|
|
254
|
+
messageIdCounterRef.current += 1;
|
|
255
|
+
return `msg_${Date.now()}_${messageIdCounterRef.current}`;
|
|
256
|
+
}, []);
|
|
257
|
+
|
|
258
|
+
// 将 WebViewMessage 转换为 tapas-sys 格式
|
|
259
|
+
const convertToTapasSysFormat = (0, _react.useCallback)(message => {
|
|
260
|
+
const tapasMessage = {
|
|
261
|
+
operate: message.type,
|
|
262
|
+
from: message.from
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
// 处理 payload
|
|
266
|
+
if (message.payload !== undefined && message.payload !== null) {
|
|
267
|
+
// 如果 payload 是对象且包含 action 字段,提取 action
|
|
268
|
+
if (typeof message.payload === 'object' && !Array.isArray(message.payload) && 'action' in message.payload) {
|
|
269
|
+
tapasMessage.action = message.payload.action;
|
|
270
|
+
// data 包含 payload 的其他字段(排除 action)
|
|
271
|
+
const {
|
|
272
|
+
action: _action,
|
|
273
|
+
...rest
|
|
274
|
+
} = message.payload;
|
|
275
|
+
tapasMessage.data = Object.keys(rest).length > 0 ? rest : undefined;
|
|
276
|
+
} else {
|
|
277
|
+
// 否则,整个 payload 作为 data,action 使用 operate
|
|
278
|
+
tapasMessage.action = message.type;
|
|
279
|
+
tapasMessage.data = message.payload;
|
|
280
|
+
}
|
|
281
|
+
} else {
|
|
282
|
+
// 如果没有 payload,action 使用 operate
|
|
283
|
+
tapasMessage.action = message.type;
|
|
284
|
+
}
|
|
285
|
+
return tapasMessage;
|
|
286
|
+
}, []);
|
|
287
|
+
|
|
288
|
+
// 将 tapas-sys 格式转换为 WebViewMessage
|
|
289
|
+
const convertFromTapasSysFormat = (0, _react.useCallback)(tapasMessage => {
|
|
290
|
+
const message = {
|
|
291
|
+
type: tapasMessage.operate,
|
|
292
|
+
from: tapasMessage.from
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// 构建 payload
|
|
296
|
+
if (tapasMessage.data !== undefined) {
|
|
297
|
+
// 如果有 action 且 action 不等于 operate,将 action 合并到 payload
|
|
298
|
+
if (tapasMessage.action && tapasMessage.action !== tapasMessage.operate) {
|
|
299
|
+
message.payload = {
|
|
300
|
+
action: tapasMessage.action,
|
|
301
|
+
...(typeof tapasMessage.data === 'object' && tapasMessage.data !== null && !Array.isArray(tapasMessage.data) ? tapasMessage.data : {
|
|
302
|
+
data: tapasMessage.data
|
|
303
|
+
})
|
|
304
|
+
};
|
|
305
|
+
} else {
|
|
306
|
+
// 否则直接使用 data 作为 payload
|
|
307
|
+
message.payload = tapasMessage.data;
|
|
308
|
+
}
|
|
309
|
+
} else if (tapasMessage.action && tapasMessage.action !== tapasMessage.operate) {
|
|
310
|
+
// 只有 action,没有 data
|
|
311
|
+
message.payload = {
|
|
312
|
+
action: tapasMessage.action
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
return message;
|
|
316
|
+
}, []);
|
|
317
|
+
|
|
318
|
+
// 解析消息(支持 base64 解码)
|
|
319
|
+
const parseMessage = (0, _react.useCallback)(data => {
|
|
320
|
+
try {
|
|
321
|
+
// 尝试 base64 解码
|
|
322
|
+
let decodedData = data;
|
|
323
|
+
if (enableBase64) {
|
|
324
|
+
try {
|
|
325
|
+
decodedData = decodeBase64(data);
|
|
326
|
+
loggerRef.current.debug('Base64 解码成功');
|
|
327
|
+
} catch (e) {
|
|
328
|
+
// 如果 base64 解码失败,尝试直接解析 JSON
|
|
329
|
+
// 可能是未加密的消息
|
|
330
|
+
loggerRef.current.debug('Base64 解码失败,尝试直接解析 JSON', e);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// 解析 JSON
|
|
335
|
+
const parsed = typeof decodedData === 'string' ? JSON.parse(decodedData) : decodedData;
|
|
336
|
+
|
|
337
|
+
// 判断是 tapas-sys 格式还是 WebViewMessage 格式
|
|
338
|
+
let message;
|
|
339
|
+
if (parsed.operate !== undefined) {
|
|
340
|
+
// tapas-sys 格式:{ operate, action, data, from }
|
|
341
|
+
message = convertFromTapasSysFormat(parsed);
|
|
342
|
+
} else {
|
|
343
|
+
// WebViewMessage 格式:{ type, payload, from }
|
|
344
|
+
message = {
|
|
345
|
+
type: parsed.type || 'unknown',
|
|
346
|
+
payload: parsed.payload !== undefined ? parsed.payload : parsed,
|
|
347
|
+
timestamp: parsed.timestamp || Date.now(),
|
|
348
|
+
id: parsed.id,
|
|
349
|
+
from: parsed.from
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
loggerRef.current.debug('消息解析成功:', message);
|
|
353
|
+
return message;
|
|
354
|
+
} catch (e) {
|
|
355
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
356
|
+
loggerRef.current.error('消息解析失败', error, '原始数据:', data);
|
|
357
|
+
if (onError) {
|
|
358
|
+
onError(error, {
|
|
359
|
+
type: 'parse'
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
}, [enableBase64, onError, convertFromTapasSysFormat]);
|
|
365
|
+
|
|
366
|
+
// 统一消息格式
|
|
367
|
+
const normalizeMessage = (0, _react.useCallback)(rawMessage => {
|
|
368
|
+
let data = null;
|
|
369
|
+
|
|
370
|
+
// 🔧 修复:优先检查是否是 tapas-sys 格式({ operate, action, data })
|
|
371
|
+
// 这对于 webviewmessage 事件特别重要,因为 event.detail 直接是 tapas-sys 格式
|
|
372
|
+
if (rawMessage && typeof rawMessage === 'object' && rawMessage.operate !== undefined) {
|
|
373
|
+
loggerRef.current.debug('检测到 tapas-sys 格式消息,直接转换:', rawMessage);
|
|
374
|
+
return convertFromTapasSysFormat(rawMessage);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// WebView 环境:消息通常在 data 字段中
|
|
378
|
+
if (environmentRef.current === 'webview') {
|
|
379
|
+
if (typeof rawMessage === 'string') {
|
|
380
|
+
data = rawMessage;
|
|
381
|
+
} else if (rawMessage?.nativeEvent?.data) {
|
|
382
|
+
data = rawMessage.nativeEvent.data;
|
|
383
|
+
} else if (rawMessage?.data) {
|
|
384
|
+
data = rawMessage.data;
|
|
385
|
+
} else {
|
|
386
|
+
// 直接是对象:检查是 WebViewMessage 格式
|
|
387
|
+
return {
|
|
388
|
+
type: rawMessage?.type || 'unknown',
|
|
389
|
+
payload: rawMessage?.payload || rawMessage,
|
|
390
|
+
timestamp: rawMessage?.timestamp || Date.now(),
|
|
391
|
+
id: rawMessage?.id,
|
|
392
|
+
from: rawMessage?.from
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
} else if (environmentRef.current === 'iframe') {
|
|
396
|
+
// iframe 环境:消息在 event.data.payload 中(tapas-sys 返回格式:{ source, target, payload })
|
|
397
|
+
// 如果 rawMessage 是字符串,说明已经提取了 payload(在 messageHandler 中已处理)
|
|
398
|
+
if (typeof rawMessage === 'string') {
|
|
399
|
+
data = rawMessage;
|
|
400
|
+
} else if (rawMessage?.data?.payload) {
|
|
401
|
+
// 处理 { source, target, payload } 格式(降级情况)
|
|
402
|
+
data = rawMessage.data.payload;
|
|
403
|
+
} else if (rawMessage?.data) {
|
|
404
|
+
// 降级:直接使用 event.data
|
|
405
|
+
data = rawMessage.data;
|
|
406
|
+
} else {
|
|
407
|
+
// 直接是对象:检查是 WebViewMessage 格式
|
|
408
|
+
return {
|
|
409
|
+
type: rawMessage?.type || 'unknown',
|
|
410
|
+
payload: rawMessage?.payload || rawMessage,
|
|
411
|
+
timestamp: rawMessage?.timestamp || Date.now(),
|
|
412
|
+
id: rawMessage?.id,
|
|
413
|
+
from: rawMessage?.from
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
} else {
|
|
417
|
+
// 未知环境:尝试通用解析
|
|
418
|
+
return {
|
|
419
|
+
type: rawMessage?.type || 'unknown',
|
|
420
|
+
payload: rawMessage?.payload || rawMessage,
|
|
421
|
+
timestamp: Date.now(),
|
|
422
|
+
from: rawMessage?.from
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// 解析字符串数据
|
|
427
|
+
if (data) {
|
|
428
|
+
const parsed = parseMessage(data);
|
|
429
|
+
if (parsed) {
|
|
430
|
+
return parsed;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// 降级:返回原始数据
|
|
435
|
+
return {
|
|
436
|
+
type: 'raw',
|
|
437
|
+
payload: data || rawMessage,
|
|
438
|
+
timestamp: Date.now()
|
|
439
|
+
};
|
|
440
|
+
}, [parseMessage, convertFromTapasSysFormat]);
|
|
441
|
+
|
|
442
|
+
// 发送消息
|
|
443
|
+
const sendMessage = (0, _react.useCallback)((type, payload) => {
|
|
444
|
+
try {
|
|
445
|
+
const message = {
|
|
446
|
+
type,
|
|
447
|
+
payload,
|
|
448
|
+
timestamp: Date.now(),
|
|
449
|
+
id: generateMessageId(),
|
|
450
|
+
from: from // 添加 from 字段
|
|
451
|
+
};
|
|
452
|
+
loggerRef.current.debug('准备发送消息(内部格式):', message);
|
|
453
|
+
|
|
454
|
+
// 转换为 tapas-sys 格式
|
|
455
|
+
const tapasMessage = convertToTapasSysFormat(message);
|
|
456
|
+
loggerRef.current.debug('转换为 tapas-sys 格式:', tapasMessage);
|
|
457
|
+
|
|
458
|
+
// 将消息对象转为 JSON 字符串
|
|
459
|
+
const messageJson = JSON.stringify(tapasMessage);
|
|
460
|
+
|
|
461
|
+
// 根据配置决定是否进行 base64 编码
|
|
462
|
+
const messageToSend = enableBase64 ? encodeBase64(messageJson) : messageJson;
|
|
463
|
+
if (typeof window === 'undefined') {
|
|
464
|
+
const error = new Error('window 对象不存在,无法发送消息');
|
|
465
|
+
loggerRef.current.error(error.message);
|
|
466
|
+
if (onError) {
|
|
467
|
+
onError(error, {
|
|
468
|
+
type: 'send'
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
let sent = false;
|
|
474
|
+
|
|
475
|
+
// 优先尝试 React Native WebView 的 postMessage(适用于 Android/iOS WebView)
|
|
476
|
+
if (window.ReactNativeWebView) {
|
|
477
|
+
try {
|
|
478
|
+
window.ReactNativeWebView.postMessage(messageToSend);
|
|
479
|
+
loggerRef.current.debug('通过 ReactNativeWebView.postMessage 发送成功');
|
|
480
|
+
sent = true;
|
|
481
|
+
return true;
|
|
482
|
+
} catch (e) {
|
|
483
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
484
|
+
loggerRef.current.warn('ReactNativeWebView.postMessage 失败', error);
|
|
485
|
+
if (onError) {
|
|
486
|
+
onError(error, {
|
|
487
|
+
type: 'send'
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// 降级:使用 window.parent.postMessage(适用于 iframe 和 Web WebView)
|
|
494
|
+
if (!sent && window.parent && window.parent !== window) {
|
|
495
|
+
try {
|
|
496
|
+
window.parent.postMessage(messageToSend, '*');
|
|
497
|
+
loggerRef.current.debug('通过 window.parent.postMessage 发送成功');
|
|
498
|
+
sent = true;
|
|
499
|
+
return true;
|
|
500
|
+
} catch (e) {
|
|
501
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
502
|
+
loggerRef.current.warn('window.parent.postMessage 失败', error);
|
|
503
|
+
if (onError) {
|
|
504
|
+
onError(error, {
|
|
505
|
+
type: 'send'
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// 最后尝试:直接使用 window.postMessage(某些特殊场景)
|
|
512
|
+
if (!sent && typeof window.postMessage === 'function') {
|
|
513
|
+
try {
|
|
514
|
+
// 注意:某些浏览器可能不支持直接调用 window.postMessage
|
|
515
|
+
// 这里仅作为最后的降级方案
|
|
516
|
+
window.postMessage(messageToSend, '*');
|
|
517
|
+
loggerRef.current.debug('通过 window.postMessage 发送成功');
|
|
518
|
+
sent = true;
|
|
519
|
+
return true;
|
|
520
|
+
} catch (e) {
|
|
521
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
522
|
+
loggerRef.current.warn('window.postMessage 失败', error);
|
|
523
|
+
if (onError) {
|
|
524
|
+
onError(error, {
|
|
525
|
+
type: 'send'
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
if (!sent) {
|
|
531
|
+
const error = new Error(`所有消息发送方式都失败,当前环境: ${environmentRef.current}`);
|
|
532
|
+
loggerRef.current.error(error.message);
|
|
533
|
+
if (onError) {
|
|
534
|
+
onError(error, {
|
|
535
|
+
type: 'send'
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
return false;
|
|
539
|
+
}
|
|
540
|
+
return true;
|
|
541
|
+
} catch (e) {
|
|
542
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
543
|
+
loggerRef.current.error('发送消息时发生未知错误', error);
|
|
544
|
+
if (onError) {
|
|
545
|
+
onError(error, {
|
|
546
|
+
type: 'send'
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
}, [generateMessageId, from, enableBase64, onError, convertToTapasSysFormat]);
|
|
552
|
+
|
|
553
|
+
// 消息处理函数
|
|
554
|
+
const handleMessage = (0, _react.useCallback)((rawMessage, eventOrigin) => {
|
|
555
|
+
try {
|
|
556
|
+
// Origin 验证(仅 iframe 环境)
|
|
557
|
+
if (environmentRef.current === 'iframe' && eventOrigin !== undefined) {
|
|
558
|
+
const isValidOrigin = validateOrigin(eventOrigin, allowedOrigins, strictOriginCheck, loggerRef.current);
|
|
559
|
+
if (!isValidOrigin) {
|
|
560
|
+
const error = new Error(`消息来源 ${eventOrigin} 验证失败`);
|
|
561
|
+
loggerRef.current.error(error.message);
|
|
562
|
+
if (onError) {
|
|
563
|
+
onError(error, {
|
|
564
|
+
type: 'origin'
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
const normalizedMessage = normalizeMessage(rawMessage);
|
|
571
|
+
if (!normalizedMessage) {
|
|
572
|
+
loggerRef.current.warn('消息标准化失败,忽略消息');
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// 验证 from 字段
|
|
577
|
+
if (!validateFrom(normalizedMessage.from, allowedFrom, loggerRef.current)) {
|
|
578
|
+
loggerRef.current.warn('消息 from 字段验证失败,忽略消息');
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// 消息过滤器
|
|
583
|
+
if (messageFilter && !messageFilter(normalizedMessage)) {
|
|
584
|
+
loggerRef.current.debug('消息被过滤器拒绝,忽略消息');
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
loggerRef.current.debug('处理消息:', normalizedMessage);
|
|
588
|
+
|
|
589
|
+
// 调用外部监听器
|
|
590
|
+
if (onMessage) {
|
|
591
|
+
try {
|
|
592
|
+
onMessage(normalizedMessage);
|
|
593
|
+
} catch (e) {
|
|
594
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
595
|
+
loggerRef.current.error('onMessage 回调执行错误', error);
|
|
596
|
+
if (onError) {
|
|
597
|
+
onError(error, {
|
|
598
|
+
type: 'receive'
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// 调用注册的处理器
|
|
605
|
+
messageHandlersRef.current.forEach(handler => {
|
|
606
|
+
try {
|
|
607
|
+
handler(normalizedMessage);
|
|
608
|
+
} catch (e) {
|
|
609
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
610
|
+
loggerRef.current.error('消息处理器执行错误', error);
|
|
611
|
+
if (onError) {
|
|
612
|
+
onError(error, {
|
|
613
|
+
type: 'receive'
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
} catch (e) {
|
|
619
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
620
|
+
loggerRef.current.error('处理消息时发生未知错误', error);
|
|
621
|
+
if (onError) {
|
|
622
|
+
onError(error, {
|
|
623
|
+
type: 'receive'
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}, [onMessage, normalizeMessage, allowedOrigins, strictOriginCheck, allowedFrom, messageFilter, onError]);
|
|
628
|
+
|
|
629
|
+
// 清理函数
|
|
630
|
+
const cleanup = (0, _react.useCallback)(() => {
|
|
631
|
+
loggerRef.current.debug('清理所有监听器和资源');
|
|
632
|
+
cleanupFunctionsRef.current.forEach(cleanupFn => {
|
|
633
|
+
try {
|
|
634
|
+
cleanupFn();
|
|
635
|
+
} catch (e) {
|
|
636
|
+
loggerRef.current.error('清理函数执行错误', e);
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
cleanupFunctionsRef.current = [];
|
|
640
|
+
messageHandlersRef.current.clear();
|
|
641
|
+
}, []);
|
|
642
|
+
|
|
643
|
+
// 注册消息监听(优化:基于验证通过的 demo 实现)
|
|
644
|
+
(0, _react.useEffect)(() => {
|
|
645
|
+
loggerRef.current.info('🔧 [WebViewBridge] 开始注册消息监听器', {
|
|
646
|
+
environment: environmentRef.current,
|
|
647
|
+
hasWindow: typeof window !== 'undefined',
|
|
648
|
+
hasReactNativeWebView: typeof window !== 'undefined' && !!window.ReactNativeWebView
|
|
649
|
+
});
|
|
650
|
+
if (typeof window === 'undefined') {
|
|
651
|
+
loggerRef.current.warn('⚠️ [WebViewBridge] window 不存在,无法注册监听器');
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
const cleanupFunctions = [];
|
|
655
|
+
|
|
656
|
+
// ✅ 优化:基于验证通过的 demo,所有环境都需要注册以下监听器
|
|
657
|
+
// 1. webviewmessage 自定义事件(Bridgeless 兼容,tapas-sys 优先使用)
|
|
658
|
+
// 2. message 标准事件(官方标准方式)
|
|
659
|
+
|
|
660
|
+
// 1. 监听 webviewmessage 自定义事件(优先方式,Bridgeless 兼容)
|
|
661
|
+
const customEventHandler = event => {
|
|
662
|
+
loggerRef.current.info('🔔 [WebViewBridge] 收到 webviewmessage 自定义事件', {
|
|
663
|
+
detail: event.detail,
|
|
664
|
+
type: typeof event.detail
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
// event.detail 是消息对象(tapas-sys 发送的格式)
|
|
668
|
+
// 直接传递给 handleMessage,normalizeMessage 会处理格式转换
|
|
669
|
+
try {
|
|
670
|
+
handleMessage(event.detail, window.location.origin);
|
|
671
|
+
} catch (e) {
|
|
672
|
+
loggerRef.current.error('处理 webviewmessage 事件失败', e);
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
window.addEventListener('webviewmessage', customEventHandler);
|
|
676
|
+
cleanupFunctions.push(() => {
|
|
677
|
+
window.removeEventListener('webviewmessage', customEventHandler);
|
|
678
|
+
});
|
|
679
|
+
loggerRef.current.info('✅ [WebViewBridge] webviewmessage 事件监听器已注册');
|
|
680
|
+
|
|
681
|
+
// 2. 监听 message 标准事件(官方标准方式)
|
|
682
|
+
const messageHandler = event => {
|
|
683
|
+
loggerRef.current.info('🔔 [WebViewBridge] 收到 message 事件', {
|
|
684
|
+
data: event.data,
|
|
685
|
+
type: typeof event.data,
|
|
686
|
+
origin: event.origin
|
|
687
|
+
});
|
|
688
|
+
try {
|
|
689
|
+
// ✅ 优化:根据 demo 验证,event.data 是字符串(JSON.stringify 后的结果)
|
|
690
|
+
// tapas-sys 使用 window.postMessage(JSON.stringify(message), '*') 发送
|
|
691
|
+
if (event.data && typeof event.data === 'string') {
|
|
692
|
+
// 直接传递字符串给 handleMessage,parseMessage 会处理解析
|
|
693
|
+
loggerRef.current.debug('🔔 [WebViewBridge] 提取 event.data(字符串)', event.data);
|
|
694
|
+
handleMessage(event.data, event.origin);
|
|
695
|
+
} else if (event.data && typeof event.data === 'object') {
|
|
696
|
+
// iframe 环境可能收到对象格式 { source, target, payload }
|
|
697
|
+
if (environmentRef.current === 'iframe' && event.data.payload) {
|
|
698
|
+
loggerRef.current.debug('🔔 [WebViewBridge] iframe 环境:提取 payload', event.data.payload);
|
|
699
|
+
handleMessage(event.data.payload, event.origin);
|
|
700
|
+
} else {
|
|
701
|
+
// 降级:传递整个 event.data
|
|
702
|
+
handleMessage(event.data, event.origin);
|
|
703
|
+
}
|
|
704
|
+
} else {
|
|
705
|
+
// 降级:传递整个 event
|
|
706
|
+
handleMessage(event, event.origin);
|
|
707
|
+
}
|
|
708
|
+
} catch (e) {
|
|
709
|
+
loggerRef.current.error('处理 message 事件失败', e);
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// 根据环境注册 message 事件监听器
|
|
714
|
+
if (environmentRef.current === 'iframe') {
|
|
715
|
+
// iframe 环境:使用 window.addEventListener("message")
|
|
716
|
+
window.addEventListener('message', messageHandler);
|
|
717
|
+
cleanupFunctions.push(() => {
|
|
718
|
+
window.removeEventListener('message', messageHandler);
|
|
719
|
+
});
|
|
720
|
+
loggerRef.current.info('✅ [WebViewBridge] iframe message 事件监听器已注册 (window)');
|
|
721
|
+
} else if (environmentRef.current === 'webview') {
|
|
722
|
+
// WebView 环境:根据平台注册
|
|
723
|
+
const isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.userAgent.includes('Mac') && 'ontouchend' in document;
|
|
724
|
+
if (isIOS) {
|
|
725
|
+
// iOS: 使用 window.addEventListener("message")
|
|
726
|
+
window.addEventListener('message', messageHandler);
|
|
727
|
+
cleanupFunctions.push(() => {
|
|
728
|
+
window.removeEventListener('message', messageHandler);
|
|
729
|
+
});
|
|
730
|
+
loggerRef.current.info('✅ [WebViewBridge] iOS message 事件监听器已注册 (window)');
|
|
731
|
+
} else {
|
|
732
|
+
// Android: 同时监听 window 和 document(双重保障)
|
|
733
|
+
// 1. window.document.addEventListener("message") - tapas-sys 可能使用
|
|
734
|
+
// 2. window.addEventListener("message") - React Native WebView 标准方式
|
|
735
|
+
|
|
736
|
+
if (window.document && typeof window.document.addEventListener === 'function') {
|
|
737
|
+
window.document.addEventListener('message', messageHandler);
|
|
738
|
+
cleanupFunctions.push(() => {
|
|
739
|
+
if (window.document && typeof window.document.removeEventListener === 'function') {
|
|
740
|
+
window.document.removeEventListener('message', messageHandler);
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
loggerRef.current.info('✅ [WebViewBridge] Android message 事件监听器已注册 (document)');
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
// 同时监听 window(备用)
|
|
747
|
+
window.addEventListener('message', messageHandler);
|
|
748
|
+
cleanupFunctions.push(() => {
|
|
749
|
+
window.removeEventListener('message', messageHandler);
|
|
750
|
+
});
|
|
751
|
+
loggerRef.current.info('✅ [WebViewBridge] Android message 事件监听器已注册 (window, 备用)');
|
|
752
|
+
}
|
|
753
|
+
} else {
|
|
754
|
+
// 未知环境:使用 window.addEventListener("message") 作为降级
|
|
755
|
+
window.addEventListener('message', messageHandler);
|
|
756
|
+
cleanupFunctions.push(() => {
|
|
757
|
+
window.removeEventListener('message', messageHandler);
|
|
758
|
+
});
|
|
759
|
+
loggerRef.current.info('✅ [WebViewBridge] 未知环境 message 事件监听器已注册 (window, 降级)');
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// 保存清理函数
|
|
763
|
+
const cleanupFn = () => {
|
|
764
|
+
cleanupFunctions.forEach(fn => {
|
|
765
|
+
try {
|
|
766
|
+
fn();
|
|
767
|
+
} catch (e) {
|
|
768
|
+
loggerRef.current.error('清理监听器失败', e);
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
cleanupFunctionsRef.current.push(cleanupFn);
|
|
773
|
+
loggerRef.current.info('✅ [WebViewBridge] 所有消息监听器已注册完成');
|
|
774
|
+
return cleanupFn;
|
|
775
|
+
}, [handleMessage]);
|
|
776
|
+
|
|
777
|
+
// 发送初始化消息(在 window.onload 完成后自动发送)
|
|
778
|
+
(0, _react.useEffect)(() => {
|
|
779
|
+
if (autoInit && !initSentRef.current && from) {
|
|
780
|
+
const sendInitMessage = () => {
|
|
781
|
+
if (!initSentRef.current) {
|
|
782
|
+
loggerRef.current.info('🚀 [WebViewBridge] 自动发送初始化消息', {
|
|
783
|
+
type: initMessageType,
|
|
784
|
+
from,
|
|
785
|
+
environment: environmentRef.current
|
|
786
|
+
});
|
|
787
|
+
sendMessage(initMessageType, initPayload);
|
|
788
|
+
initSentRef.current = true;
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
// 🔧 改进:优先检测 React Native WebView 环境
|
|
793
|
+
const isReactNativeWebView = typeof window !== 'undefined' && window.ReactNativeWebView !== undefined;
|
|
794
|
+
if (isReactNativeWebView) {
|
|
795
|
+
// React Native WebView 环境:延迟发送,确保 WebView 完全加载
|
|
796
|
+
loggerRef.current.debug('🔍 [WebViewBridge] 检测到 React Native WebView 环境,延迟发送 INIT');
|
|
797
|
+
setTimeout(sendInitMessage, 500); // 延迟 500ms 确保 WebView 完全加载
|
|
798
|
+
} else if (typeof window !== 'undefined') {
|
|
799
|
+
// Web 环境(iframe 或浏览器)
|
|
800
|
+
if (typeof document !== 'undefined' && (document.readyState === 'complete' || document.readyState === 'interactive')) {
|
|
801
|
+
// 文档已经加载完成,使用 setTimeout 确保在下一个事件循环中执行
|
|
802
|
+
loggerRef.current.debug('🔍 [WebViewBridge] 文档已加载完成,立即发送 INIT');
|
|
803
|
+
setTimeout(sendInitMessage, 0);
|
|
804
|
+
} else if (typeof document !== 'undefined') {
|
|
805
|
+
// 等待 window.onload 事件
|
|
806
|
+
loggerRef.current.debug('🔍 [WebViewBridge] 等待文档加载完成');
|
|
807
|
+
const handleLoad = () => {
|
|
808
|
+
sendInitMessage();
|
|
809
|
+
window.removeEventListener('load', handleLoad);
|
|
810
|
+
};
|
|
811
|
+
window.addEventListener('load', handleLoad);
|
|
812
|
+
|
|
813
|
+
// 也监听 DOMContentLoaded 作为备选(某些情况下可能更快)
|
|
814
|
+
const handleDOMContentLoaded = () => {
|
|
815
|
+
// 延迟一点确保所有初始化完成
|
|
816
|
+
setTimeout(sendInitMessage, 10);
|
|
817
|
+
document.removeEventListener('DOMContentLoaded', handleDOMContentLoaded);
|
|
818
|
+
};
|
|
819
|
+
if (document.readyState === 'loading') {
|
|
820
|
+
document.addEventListener('DOMContentLoaded', handleDOMContentLoaded);
|
|
821
|
+
}
|
|
822
|
+
return () => {
|
|
823
|
+
window.removeEventListener('load', handleLoad);
|
|
824
|
+
if (typeof document !== 'undefined') {
|
|
825
|
+
document.removeEventListener('DOMContentLoaded', handleDOMContentLoaded);
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
} else {
|
|
829
|
+
// document 不存在,但 window 存在(某些特殊环境)
|
|
830
|
+
loggerRef.current.debug('🔍 [WebViewBridge] document 不存在,延迟发送 INIT');
|
|
831
|
+
setTimeout(sendInitMessage, 100);
|
|
832
|
+
}
|
|
833
|
+
} else {
|
|
834
|
+
// 非 Web 环境(纯 React Native),直接发送
|
|
835
|
+
loggerRef.current.debug('🔍 [WebViewBridge] 非 Web 环境,延迟发送 INIT');
|
|
836
|
+
setTimeout(sendInitMessage, 100);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return undefined;
|
|
840
|
+
}, [autoInit, initMessageType, initPayload, sendMessage, from]);
|
|
841
|
+
|
|
842
|
+
// 组件卸载时清理
|
|
843
|
+
(0, _react.useEffect)(() => {
|
|
844
|
+
return () => {
|
|
845
|
+
cleanup();
|
|
846
|
+
};
|
|
847
|
+
}, [cleanup]);
|
|
848
|
+
|
|
849
|
+
// 暴露方法给父组件
|
|
850
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
851
|
+
sendMessage,
|
|
852
|
+
getEnvironment: () => environmentRef.current,
|
|
853
|
+
cleanup
|
|
854
|
+
}), [sendMessage, cleanup]);
|
|
855
|
+
|
|
856
|
+
// 渲染占位 DOM(确保组件有实体)
|
|
857
|
+
if (!showPlaceholder) {
|
|
858
|
+
return null;
|
|
859
|
+
}
|
|
860
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
861
|
+
style: [styles.container, style],
|
|
862
|
+
testID: testID,
|
|
863
|
+
pointerEvents: "none"
|
|
864
|
+
});
|
|
865
|
+
});
|
|
866
|
+
WebViewBridge.displayName = 'WebViewBridge';
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* 原生 WebView 消息注入辅助函数
|
|
870
|
+
* 在 WebView 的 injectedJavaScript 中使用,用于接收原生消息
|
|
871
|
+
*/
|
|
872
|
+
const createWebViewInjectedScript = () => {
|
|
873
|
+
return `
|
|
874
|
+
(function() {
|
|
875
|
+
// 创建全局事件总线(如果不存在)
|
|
876
|
+
if (typeof window.__WebViewBridgeEventBus === 'undefined') {
|
|
877
|
+
window.__WebViewBridgeEventBus = {
|
|
878
|
+
listeners: {},
|
|
879
|
+
on: function(event, handler) {
|
|
880
|
+
if (!this.listeners[event]) {
|
|
881
|
+
this.listeners[event] = [];
|
|
882
|
+
}
|
|
883
|
+
this.listeners[event].push(handler);
|
|
884
|
+
},
|
|
885
|
+
off: function(event, handler) {
|
|
886
|
+
if (this.listeners[event]) {
|
|
887
|
+
this.listeners[event] = this.listeners[event].filter(h => h !== handler);
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
emit: function(event, data) {
|
|
891
|
+
if (this.listeners[event]) {
|
|
892
|
+
this.listeners[event].forEach(handler => {
|
|
893
|
+
try {
|
|
894
|
+
handler(data);
|
|
895
|
+
} catch (e) {
|
|
896
|
+
console.error('WebViewBridge: 事件处理器错误', e);
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// 监听 React Native WebView 的消息
|
|
905
|
+
// Android: 使用 window.document.addEventListener("message")
|
|
906
|
+
// iOS: 使用 window.addEventListener("message")
|
|
907
|
+
// 为了兼容性,同时监听两个事件
|
|
908
|
+
|
|
909
|
+
// 判断是否运行在 iOS 下
|
|
910
|
+
const isIOS = /iPad|iPhone|iPod/.test(navigator.platform) ||
|
|
911
|
+
(navigator.userAgent.includes('Mac') && 'ontouchend' in document);
|
|
912
|
+
|
|
913
|
+
if (window.ReactNativeWebView) {
|
|
914
|
+
if (isIOS) {
|
|
915
|
+
// iOS: 使用 window.addEventListener("message")
|
|
916
|
+
window.addEventListener('message', function(event) {
|
|
917
|
+
if (window.__WebViewBridgeEventBus) {
|
|
918
|
+
window.__WebViewBridgeEventBus.emit('message', event);
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
} else {
|
|
922
|
+
// Android: 使用 window.document.addEventListener("message")(tapas-sys 使用)
|
|
923
|
+
if (window.document && typeof window.document.addEventListener === 'function') {
|
|
924
|
+
window.document.addEventListener('message', function(event) {
|
|
925
|
+
if (window.__WebViewBridgeEventBus) {
|
|
926
|
+
window.__WebViewBridgeEventBus.emit('message', event);
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
// 同时监听 window.addEventListener("message") 作为备用
|
|
931
|
+
window.addEventListener('message', function(event) {
|
|
932
|
+
if (window.__WebViewBridgeEventBus) {
|
|
933
|
+
window.__WebViewBridgeEventBus.emit('message', event);
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
} else {
|
|
938
|
+
// 非 ReactNativeWebView 环境:监听 postMessage(备用方案)
|
|
939
|
+
window.addEventListener('message', function(event) {
|
|
940
|
+
if (window.__WebViewBridgeEventBus) {
|
|
941
|
+
window.__WebViewBridgeEventBus.emit('message', event);
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
})();
|
|
946
|
+
true; // 确保脚本返回 true
|
|
947
|
+
`;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* 处理原生 WebView 消息
|
|
952
|
+
* 在 WebView 的 onMessage 回调中调用此函数
|
|
953
|
+
*/
|
|
954
|
+
exports.createWebViewInjectedScript = createWebViewInjectedScript;
|
|
955
|
+
const handleNativeWebViewMessage = (event, onMessage) => {
|
|
956
|
+
try {
|
|
957
|
+
const data = event.nativeEvent?.data || event.data || event;
|
|
958
|
+
const message = typeof data === 'string' ? JSON.parse(data) : data;
|
|
959
|
+
onMessage(message);
|
|
960
|
+
} catch (e) {
|
|
961
|
+
console.error('WebViewBridge: 解析原生消息失败', e);
|
|
962
|
+
}
|
|
963
|
+
};
|
|
964
|
+
exports.handleNativeWebViewMessage = handleNativeWebViewMessage;
|
|
965
|
+
const styles = _reactNative.StyleSheet.create({
|
|
966
|
+
container: {
|
|
967
|
+
width: 0,
|
|
968
|
+
height: 0,
|
|
969
|
+
position: 'absolute',
|
|
970
|
+
opacity: 0,
|
|
971
|
+
pointerEvents: 'none'
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
var _default = exports.default = WebViewBridge;
|
|
975
|
+
//# sourceMappingURL=WebViewBridge.js.map
|