Skip to content

shinyMobile 0.8.0

Compare
Choose a tag to compare
@DivadNojnarg DivadNojnarg released this 11 Jan 16:50
· 605 commits to master since this release

shinyMobile 0.8.0

This release is to addresse the following reverse dependency issue with shiny. Moreover, it also starts the road to v1.0.0 (later this year).

Soft Deprecations

  • f7AddMessages() will become updateF7Messages() in future release
  • f7HideNavbar() and f7ShowNavbar() will be replaced by updateF7Navbar()
  • f7ShowPopup() will become updateF7Popup()
  • f7checkBox() will become f7Checkbox()
  • f7checkBoxGroup() will become f7CheckboxGroup()
  • f7ValidateInput() will become validateF7Input()
  • f7InsertTab() and f7RemoveTab() will becomes insertF7Tab() and removeF7Tab(),
    respectively
  • f7ShowPreloader() and f7HidePreloader() will become showF7Preloader() and
    hideF7Preloader(), respectively.
  • f7Popover() and f7PopoverTarget() replaced by addF7Popover() and toggleF7Popover()
  • create_manifest() is going to be replaced by the workflow described here: https://unleash-shiny.rinterface.com/mobile-pwa.html#charpente-and-pwa-tools

Breaking changes

Inputs

  • updateF7Fabs(): inputId becomes id

Layout

  • f7Appbar(): left_panel becomes leftPanel and right_panel rightPanel
  • f7Init() removed. Now pass it through the f7Page() options
  • f7Navbar(): left_panel becomes leftPanel and right_panel rightPanel
  • f7Panel() and updateF7Panel(): inputId becomes id
  • f7InsertTab() and f7RemoveTab(): inputId becomes id

Cards

  • f7ExpandableCard() and f7Card(): img becomes image
  • f7SocialCard(): author_img becomes image

Lists

  • f7ListItem(): url becomes href
  • f7VirtualListItem(): url becomes href
  • updateF7VirtualList(): old_index and new_index become oldIndex and newIndex, respectively

Interactions

  • session not mandatory in f7Toast(), updateF7Progress(), ... and has been
    swapped at the end of the parameters for more convenience
  • f7Dialog(): inputId becomes id
  • updateF7Sheet(): inputId becomes id

Buttons

  • f7Link(): external has been removed from (much simpler), src becomes href
  • f7Button(): src becomes href

Others

  • session swapped to the end in f7Gauge() and not mandatory. Default to shiny::getDefaultReactiveDomain()
  • f7Chip(): icon_status becomes iconStatus, img becomes image
  • inputId becomes id in f7Accordion() and updateF7Accordion()
  • Remove f7ProgressInf() (useless)
  • Change f7Swiper() API. New options parameter
  • f7PhotoBrowser() is now called from the shiny server function. See help, id and
    label have been removed
  • id mandatory for f7Searchbar()

Major changes

  • New updateF7Entity()
  • New updateF7ActionSheet()
  • New addF7Tooltip() and updateF7Tooltip() to generate tooltips from the server
  • New allowPWA parameter in f7Page() so that we doesn't oblige users to create a PWA
  • f7Page() has a new options parameter as replacement of f7Init(). Much simpler to handle
  • update framework7 from 5.5.0 to 5.7.14
  • add f7Menu(), f7MenuItem(), f7MenuDropdown(), f7MenuDropdownDivider() and updateF7MenuDropdown(): special buttons and dropdown elements, behaving like action buttons

Minor changes

  • app instance accessible from anywhere is JS code
  • New ... parameter for f7PhotoBrowser()
  • Add choices to updateF7SmartSelect(): thanks @Edireito
  • Add disconnect toast if shiny:disconnect occurs. Gives ability to reload or reconnect

Bug fixes

  • Fix #128 and #140: workerId issue in url. Thanks @Tixierae and @ppagnone.
  • Fix #104: f7Picker cannot have NULL value. Prevents JS from breaking. Thanks @Seyphaton
  • Correcting an internal use of htmltools::attachDependencies() in create_app_ui