UNPKG

@livelike/react-native

Version:

LiveLike React Native package

282 lines (167 loc) 14 kB
## 1.0.3 (December 4, 2024) Added support for `LLSocialEmbedWidget` widget. ## 1.0.3 (December 4, 2024) ### What's New: - Added support for `LLSocialEmbedWidget` widget. ## 1.0.2 (November 27, 2024) ### Fixes: - update JS SDK version that contains updated non vulnerable dependencies ## 1.0.1 (November 26, 2024) ### Fixes: - updated JS SDK version that contains updated non vulnerable dependencies & update vulnerable dependencies to fixed version. ## 1.0.0 (March 14, 2024) ### What's New: - stable release of react-native sdk ### Fixes: - added a fix to show reward items earned by the user on prediction followup widgets and remove showing reward items for prediction widgets. ## 0.0.1-alpha.28 (December 20, 2023) ### What’s new: - introduced `useFonts` hook which would return `setFonts` function that could be used by integrators to set their custom font family. Integrators has to set corresponding font for each typeface i.e set font for regular, bold, italic, semi bold etc. - introduced `LLText` component which is used in every component instead of `Text` to get applied custom fonts. - introduced `useCustomFontStyle` hook which returns an evaluated styles for `Text` based Component based on fontWeight and fontStyle, these tweaked style are needed because of platform (IOS & Android) limitation for custom fonts. - introduced `useFontFamily` hook which returns an evaluated fontFamily based on fontWeight and fontStyle. ## 0.0.1-alpha.27 (December 7, 2023) ### What’s new: - added a feature to enable users to view all previous chat messages by clicking the `Load Previous Messages` button in `LLChat` component. (Requires RN version `0.72.x` or higher to use this feature, since it uses `maintainVisibleContentPosition` property of `Flatlist` react-native component which is only available for all devices post `0.72.x` release) - added a feature to unblock a mistakenly blocked chat message user in `LLChat` component. - added a feature to display error banner if a user reports a reported chat message in `LLChat` component. ## 0.0.1-alpha.26 (December 6, 2023) ### What's New: - added `formatMessageTimestamp` prop to `LLChatMessageItemHeader ` component that is used by `LLChat`, this would enable integrators to provide a custom function that could override default timestamp formatter. ## 0.0.1-alpha.25 (November 30, 2023) ### Fixes: - added a fix to `LLChatMessageComposer` to pass `sender_image_url` in `sendChatMessage` for Sticker and gif messages. ## 0.0.1-alpha.24 (November 20, 2023) ### What's new: - internal type documentation package update resulting in [new UI](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useInit) for type documentation. ## 0.0.1-alpha.23 (November 16, 2023) What’s New: - added feature to allow integrators to inject their own Analytics provider. It will have a track function which takes two parameters, Event name and track Object associated with that event. Refer [react native analytics](https://docs.livelike.com/docs/react-native-analytics) for details. - introduced [useAnalytics](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useAnalytics) hook to enable integrators to set custom analytics provider. - introduced [useChatMessageMenuItemActions](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useChatMessageMenuItemActions) hook. This actions returns functions which are executed when user clicks moderation menu items. - introduced [useDebounce](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useDebounce) hook which returns a function that delays the execution of provided function until a provided time period. - introduced [useTrackKeyboardEffect](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useTrackKeyboardEffect) which attaches event listener to keyboard and executes `trackEvent` function when the keyboard is selected and hidden. - introduced [useUserReactionActions](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useUserReactionActions) hook. This hook returns functions which are executed when user add or remove reactions. - introduced [useWidgetInteractedAnalytics](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useWidgetInteractedAnalytics) hook. It is used to track `Widget Interacted` analytics event. - introduced [useWidgetSubmitAction](https://livelike-doc-redirect-url.herokuapp.com/react-native?keyword=useWidgetSubmitAction) hook, enabling the tracking of `Widget Submitted` analytics events and managing widget interaction submit action. It internally calls `createWidgetInteractionAction` to ensure analytics tracking is called upon successful resolution. ## 0.0.1-alpha.22 (November 2, 2023) ### Fixes: - updated JS SDK version that contains updated non vulnerable dependencies & devDependencies package version. ## 0.0.1-alpha.21 (October 30, 2023) ### Fixes: - fix `LLWidgets` component not showing widget rewards for all widgets in interactive timeline mode. - fix `LLNumberPredictionWidget` showing incorrect user input number when number prediction is submitted and widget detail is fetched post submission. ## 0.0.1-alpha.20 (October 26, 2023) What’s new: - introduced the `userAvatarUrl` property to the `LLChat` component, enabling integrators to set avatars by providing an avatar image URL. - introduced `useChatRoomState` hook that is same as `useChatMessages` hook to align the hook name with its functionality. (`useChatMessages` is now deprecated and will be removed in future version.) Fixes: - fix issue in widget UI reward item animation causing an error when user earns more than one reward items. ## 0.0.1-alpha.19 (September 21, 2023) ### Fixes: - fix vulnerable dependency package of `@livelike/javascript`. ## 0.0.1-alpha.18 (August 22, 2023) ### What's New? - added `styles` and `onPress` prop to widget submit button component that would enable integrators to customise submit button styles and add custom onPress logic. ## 0.0.1-alpha.17 (July 13, 2023) ### Fixes: - fix popup mode behaviour for `LLWidgets` to render widget one after another when multiple widgets are published at the same time. ## 0.0.1-alpha.16 (July 7, 2023) ### Fixes: - fix `LLWidgets` popup mode showing all published widget when mode is changed from interactive timeline. ## 0.0.1-alpha.15 (June 26, 2023) ### Fixes: - fix issue in expired widget UI rendered as interactable when expired widget is remounted. ## 0.0.1-alpha.14 (June 20, 2023) ### Fixes: - fix poll widget vote percentage exceeding 100% and result bar UI rendering beyond container when user continuously changes poll options. ## 0.0.1-alpha.13 (June 7, 2023) ### What's New? - few disruptive changes as part of renaming component and enums. - renamed internal used core widget container component from `LLWidget` to `LLCoreWidget` where its responsible for loading widget details and rendering widget UI - renamed internal component `LLTimelineWidget` to more cohesive name as `LLWidget` which is used by `LLWidgets`. - renamed `LLWidgets` component `TimelineWidgetComponent` prop name to `WidgetComponent`. - renamed `WidgetTimelineMode` enum to `WidgetMode`. - renamed enum value from `WidgetMode.INTERACTIVE` to `WidgetMode.INTERACTIVE_TIMELINE`. - added `interactiveTimeout` and `onInteractiveTimeout` props to followup based widgets. ### Fixes: - fix prediction followup UI when rendered in `LLWidgets` with popup mode. - fix auto hiding prediction and its followup widget when interactive time is elapsed as part of `LLWidgets` in popup mode. ## 0.0.1-alpha.12 (May 31, 2023) ### What's New: - added alert based widget and related components namely `LLAlertWidget`, `LLAlertWidgetBody`, `LLAlertWidgetDetail` and `LLAlertWidgetLink`. Refer [LLAlertWidget](https://docs.livelike.com/docs/react-native-llalertwidget) docs for more details. - added text ask widget and related components namely `LLTextAskWidget`, `LLTextAskWidgetBody`, `LLTextAskWidgetInput`, `LLTextAskWidgetActionInfo` and `LLTextAskWidgetSubmitButton`. Refer [LLTextAskWidget](https://docs.livelike.com/docs/react-native-lltextaskwidget) docs for more details. ### Fixes: - fix prediction widget UI where incorrect followup widget is displayed when using `inlineFollowUp` prop or widget UI gets in disabled state even when no follow up is published. ## 0.0.1-alpha.11 (May 25, 2023) ### What's New: - updated `@livelike/javascript` dependencies to `0.0.1-alpha.14` that has critical fix for `addWidgetListener` API. - added `DismissIconComponent` prop to `LLWidgetHeader` to customise dismiss icon. ### Fixes: - minor fix to reflect proper UI phase for mutli interaction based widgets when now UI phase transition from `SUBMITTING` to `INTERACTIVE` (instead of `SUBMITTED`). - minor fix for `ResultBarComponent` used by result based widgets to render `View` instead of `Text` that would enable to set styles like borderRadius etc. ## 0.0.1-alpha.10 (May 19, 2023) ### What;s New: - added timeline based container widgets namely `LLWidgets`, `LLTimelineWidget` and related components. Refer [LLWidgets](https://docs.livelike.com/docs/react-native-llwidgets) docs for more details. - introduced `CheerCountComponent` and `CheerCountComponentStyles` prop for `LLCheerMeterWidget`. ## 0.0.1-alpha.9 (May 4, 2023) ### What's New? - Added cheer meter widget related components namely: `LLCheerMeterWidget`, `LLCheerMeterWidgetBody`, `LLCheerMeterWidgetOption`, and `LLCheerMeterWidgetResult`. Refer react native [LLCheerMeterWidget](https://docs.livelike.com/docs/react-native-llcheermeterwidget) docs. - exported few common component used by Widgets such as `LLWidget`, `LLVoteWidgetBody`, `LLWidgetOption`, `LLWidgetOptionResultBar`, `LLWidgetVoteOption`, `LLWidgetChoiceOption` to extend customisation of widget components. ### Fixes: - fixed excessive callback issue faced when reward animation was active. ## 0.0.1-alpha.8 (April 27, 2023) ### What’s New: - introduce `sliderUIComponentProps` as a new prop which could be passed to `LLEmojiSlider` component to customise Slider UI component (i.e Slider component from [react-native-slider](https://github.com/miblanchard/react-native-slider). ### Fixes: - fix `LLQuizWidget` crash issue when submit button is pressed with no selected option. - fix `LLWidgetHeader` text width when widget is non dismissible. - fix submit button pressed background color. - fix `LLChat` autoscroll issue when component is unmounted before list gets auto scrolled to bottom. - fix `LLWidgetHeader` timer position. ## 0.0.1-alpha.7 (April 11, 2023) ### What’s New: - Added base widget components namely `LLWidget`, `LLWidgetHeader`, `LLWidgetOption`, `LLWidgetFooter` and various base child components which could be reused and customised. - Added stand alone widget namely `LLPollWidget`, `LLQuizWidget`, `LLPredictionWidget`, `LLPredictionFollowWidget`, `LLNumberPredictionWidget`, `LLNumberPredictionFollowUpWidget` and `LLEmojiSliderWidget`. Refer [react native widgets](https://docs.livelike.com/docs/react-native-widgets) docs for further details. - Added widget base hooks like `useWidget`, `useWidgetInteractions`, `useWidgetUIPhase`, `useLoadWidgetEffect`, `useWidgetInteractiveTimeout`, `useWidgetExpiryEffect`, `usePredictionClaimRewardEffect`, `useWidgetRewards`, `useWidgetSponsors`, `useIsWidgetDisabled`, etc. in case there’s a need to define custom presentational component but reuse our stock UI state logic. ## 0.0.1-alpha.6 (February 13, 2023) ### What's New? - introduce and expose `LThemeAssets` for documentation - update `@livelike/javascript` peer dependency to `0.0.1-alpha.3` ### Fixes: - reaction picker image icon size ## 0.0.1-alpha.5 (February 3, 2023) ### What's new: - introduced new hooks and refactored existing ones to let integrators easily reuse our component state. - enable customisation of `LLGifHeader`, `LLStickerPack`, `LLBasePicker`. - align UI components styles based on updated Stock UX design. - introduced new component - `LLThemeSwitch`, `LLMessageListEmptyComponent`. - improved rendering performance by moving from maintaining top level state to micro store based implementation (approach similar to nanostores). ### Fixes: - chat message list auto scrolling issue in different scenarios for eg: when keyboard is shown or hidden. - empty message list error in `react-native 0.71.x` - null entries error in gif picker - keyboard offset issue in IOS (integrators are now required to wrap `LLChat` component with `SafeAreaView` and `KeyboardAvoidingView`, refer `LLChat` docs for details) ## 0.0.1-alpha.4 (January 13, 2023) ### Fixes: - Fix chat UI rendering issue in Android with "JSC" compiler. ## 0.0.1-alpha.3 (January 13, 2023) - Added new components: `LLBasePicker`, `LLStickerPicker`, `LLChatMessageMenu`, `LLChatMessageMenuOption`, `LLChatBanner`, `LLChatBannerItem`, `LLGifPicker`, `LLGifPickerHeader`, `LLReactionPicker`, `LLReactionPickerItem`, `LLReactionCounts` and `LLReactionCountsDetail` - Added new hooks: `useStickerPack`, `useStickerPicker`, `useMessageItemPopover`, `useBanner`, `useGifPicker`, `useReactions`, `useUserReactions`, `useStyles` and `useTheme` - Added `LLChat` Stock UI functionalities to: - add a sticker message - add a GIF message - react to message - delete own message - block user profile - display banner for moderation based success or failure responses - Added support for light/dark theme - Improved Stock UI/UX for Chat Composer and Chat Messages - Added possibility for fully customisable integration ## 0.0.1-alpha.2 (December 21, 2022) - fix missing assets for commonjs and ES module bundle ## 0.0.1-alpha.1 (December 21, 2022) - fix alpha release package missing components files and folders ## 0.0.1-alpha.0 (December 21, 2022) - initial react-native package release - introduces `LLChat` stock UI component